/* responsive-override.css - additive responsive layer (his 21 Sep 2026 spec).
   Breakpoints: content cap 1440px, 1024-1440 full, 768-1023 condensed,
   under 767 single column + Link Manager table as cards. Zero data loss:
   every cell stays visible as a labelled row. */
@media (min-width:1440px){
  .shell, main{max-width:1440px !important; margin-left:auto !important; margin-right:auto !important}
}
@media (min-width:768px) and (max-width:1023px){
  .link-filters{flex-wrap:wrap}
  .projects{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media (max-width:900px){
  .link-manager h1{font-size:clamp(20px,6vw,28px)}
  .link-filters{flex-direction:column; align-items:stretch}
  .link-filters label{width:100%}
  .link-table-wrap{border:0; background:transparent; overflow:visible}
  .link-manager table, .link-manager table thead, .link-manager table tbody,
  .link-manager table tr, .link-manager table td{display:block; width:100%}
  .link-manager table{min-width:0} /* 22 Sep 2:55 PM: bundle min-width:1100px pushed value column off-screen on mobile (his "Links are still missing") */
  .link-manager table thead{display:none}
  .link-manager table tbody tr{background:var(--panel,rgba(255,255,255,.03)); border:1px solid rgba(140,160,150,.25); border-radius:12px; margin-bottom:10px; padding:6px 12px}
  .link-manager table td{display:flex; justify-content:space-between; gap:14px; border:0; border-bottom:1px solid rgba(140,160,150,.18); padding:8px 2px; text-align:right; word-break:break-word}
  .link-manager table td:last-child{border-bottom:0}
  .link-manager table td::before{content:attr(data-th); color:#9caea4; font-size:11px; text-transform:uppercase; letter-spacing:.06em; text-align:left; flex:0 0 34%}
}
.gh-cell a{color:var(--mint2,#6ee7b7)}
.gh-cell .gh-mirror{opacity:.75; font-size:12px}

/* 22 Sep: thinkers hero mobile compaction (owner: "crop it short and resize it") + clipping guard */
@media (max-width:767px){
  .thinkers-page-head{padding:16px 0 12px}
  .thinkers-page-head h1{font-size:clamp(26px,7.5vw,34px);line-height:1.15;overflow-wrap:anywhere}
  .thinkers-page-head small{white-space:normal;overflow:visible;text-overflow:clip}
  .thinkers-page-head p{font-size:13px;margin-top:6px}
  section.thinkers iframe{border-radius:0 !important}
}

/* 22 Sep: thinkers demo seamless with page (owner: "integrated not separate boxes") */
section.thinkers{background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}

/* 22 Sep: GLASS layout background (owner directive 2:24 PM IST - the Link Manager hero green-glass look
   as the layout background on every page). Opt-in via ?glass=1 for review; default flip on approval. */
html[data-glass="1"] body{
  background-color:#090b10;
  background-image:
    radial-gradient(circle at 85% -5%, rgba(10,132,255,.16), rgba(0,0,0,0) 42%),
    radial-gradient(circle at -10% 30%, rgba(16,185,129,.07), rgba(0,0,0,0) 38%),
    linear-gradient(165deg, rgba(14,68,48,.42), rgba(9,11,16,0) 46%);
}
html[data-glass="1"][data-theme="light"] body{
  background-color:#edece1;
  background-image:
    radial-gradient(circle at 85% -5%, rgba(4,120,87,.12), rgba(0,0,0,0) 42%),
    radial-gradient(circle at -10% 30%, rgba(4,120,87,.06), rgba(0,0,0,0) 38%),
    linear-gradient(165deg, rgba(178,214,196,.55), rgba(237,236,225,0) 46%);
}

/* 22 Sep: thinkers full-bleed (owner: "extend it full screen no borders required") */
section.thinkers{padding:0 !important;margin-top:16px !important}

/* 22 Sep: GLASS alignment to the Link Manager benchmark (owner 2:34 PM IST: "Link manager layout and
   layout background is the benchmark... Boxed edges no transparent layout like link manager. Also the curve";
   2:35 PM: "Need round corners"). LM ramp: panels rgba(18,18,18,.82)/#121212, border #262626, radius 18-24,
   inputs near-black radius 12; light: rgba(255,255,255,.74)/#e2e8f0. */
html[data-glass="1"] section.bugmanager-native{background:transparent !important}
html[data-glass="1"] header.thinkers-page-head{background:rgba(18,18,18,.82) !important;border:1px solid #262626 !important;border-radius:24px !important;margin:0 12px !important}
html[data-glass="1"] main.view-dashboard section.summary,
html[data-glass="1"] main.view-dashboard section.workflow,
html[data-glass="1"] main.view-dashboard article.project-card,
html[data-glass="1"] main.view-dashboard section.suggestions,
html[data-glass="1"] section.bugmanager-native div.card,
html[data-glass="1"] section.bugmanager-native div.table-wrap{background:rgba(18,18,18,.82) !important;border-color:#262626 !important}
html[data-glass="1"] main.view-dashboard section.summary,
html[data-glass="1"] main.view-dashboard section.suggestions{border-radius:18px !important}
html[data-glass="1"] section.bugmanager-native div.card,
html[data-glass="1"] section.bugmanager-native div.table-wrap{border-radius:18px !important}
html[data-glass="1"] section.bugmanager-native input,
html[data-glass="1"] section.bugmanager-native select,
html[data-glass="1"] main.view-dashboard select,
html[data-glass="1"] main.view-dashboard .wbss-bar{background:rgba(0,0,0,.5) !important;border-color:#262626 !important;border-radius:12px !important}
html[data-glass="1"] main.view-dashboard .wbss-chip{border-color:#262626 !important}
html[data-glass="1"] section.bugmanager-native th{background:rgba(24,24,24,.6) !important}
html[data-glass="1"][data-theme="light"] header.thinkers-page-head{background:rgba(255,255,255,.74) !important;border-color:#e2e8f0 !important}
html[data-glass="1"][data-theme="light"] main.view-dashboard section.summary,
html[data-glass="1"][data-theme="light"] main.view-dashboard section.workflow,
html[data-glass="1"][data-theme="light"] main.view-dashboard article.project-card,
html[data-glass="1"][data-theme="light"] main.view-dashboard section.suggestions,
html[data-glass="1"][data-theme="light"] section.bugmanager-native div.card,
html[data-glass="1"][data-theme="light"] section.bugmanager-native div.table-wrap{background:rgba(255,255,255,.74) !important;border-color:#e2e8f0 !important}
html[data-glass="1"][data-theme="light"] section.bugmanager-native input,
html[data-glass="1"][data-theme="light"] section.bugmanager-native select,
html[data-glass="1"][data-theme="light"] main.view-dashboard select,
html[data-glass="1"][data-theme="light"] main.view-dashboard .wbss-bar{background:rgba(248,250,252,.85) !important;border-color:#e2e8f0 !important}
html[data-glass="1"][data-theme="light"] main.view-dashboard .wbss-chip{border-color:#e2e8f0 !important}
html[data-glass="1"][data-theme="light"] section.bugmanager-native th{background:rgba(241,245,249,.7) !important}

/* 22 Sep: feature-map close button (owner: "add a feature list close button"); 2:48 PM: pin INSIDE the panel header row, aligned with panel padding - fixed positioning floated it over the panel edge on mobile */
.wb-fm-close{position:static;margin-left:auto;align-self:flex-start;flex:0 0 auto;width:36px;height:36px;border-radius:12px;border:1px solid #262626;background:rgba(18,18,18,.92);color:#eefcf5;font-size:15px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.wb-fm-close:hover{border-color:#0A84FF;color:#0A84FF}
html[data-theme="light"] .wb-fm-close{background:rgba(255,255,255,.94);border-color:#e2e8f0;color:#13241c}
html[data-theme="light"] .wb-fm-close:hover{border-color:#007AFF;color:#007AFF}

/* 22 Sep: scroll-screenshot support (owner 2:39 PM IST) - no inner scroll boxes, page flows as one document */
.office-floor{height:auto !important;max-height:none !important;overflow:visible !important}

/* 2026-09-28 02:36 IST: note-card right-edge clip (Dwight pixel-check on the /thinkers/ repair preview): unbreakable source ids (wamid...) and long URLs overflowed the note card (detail dialog measured 794px content in a 594px box). Wrap-anywhere inside note cards, detail dialog + list cards. */
dialog.detail>article,dialog.detail>article h2,dialog.detail>article p,dialog.detail>article small,dialog.detail>article section,dialog.detail>article a,dialog.detail>article button,section.thinkers .welcome-note h3,section.thinkers .welcome-note p{overflow-wrap:anywhere;word-break:break-word;min-width:0;max-width:100%}

/* 1 Dec 2026: readability + alignment pass (owner via main 15:51 IST: light/dark text visible,
   fix all alignment and orientation issues for complete workboard pages). Preview branch only. */

/* a) mobile overflow guards (dashboard cards ran to x=571 on a 390 screen) */
@media (max-width:700px){
  .project-card, article.card{max-width:100%; min-width:0}
  .project-card *{min-width:0; overflow-wrap:anywhere}
  .wbss-chip{white-space:normal}
  body{overflow-x:hidden}
}

/* b) dashboard "Active projects" heading + Sort/Filter panel: stack on mobile */
.section-head{flex-wrap:wrap}
@media (max-width:700px){
  .section-head{flex-direction:column; align-items:flex-start; gap:6px; margin:40px 0 16px}
  .wbss-bar{width:100%; flex-wrap:wrap}
}

/* c) Bug Manager ledger stays inside the screen (was ~2000px wide, desktop too) */
.bugmanager-native{max-width:100%; min-width:0}
.bugmanager-native .table-wrap{overflow-x:auto; max-width:100%}
.bugmanager-native .toolbar, .bugmanager-native .topbar, .bugmanager-native .bm-head{flex-wrap:wrap; max-width:100%}

/* d) Link Manager mobile: value column gets the space, URLs wrap, names stay whole */
@media (max-width:900px){
  .link-manager table td{flex-wrap:wrap; word-break:normal}
  .link-manager table td>:last-child{flex:1 1 60%; min-width:0}
  .link-manager table td a{overflow-wrap:anywhere; word-break:break-word}
  .link-manager table td time{overflow-wrap:anywhere}
}

/* e) Link Manager header row wraps instead of clipping */
.link-manager>header{flex-wrap:wrap; row-gap:12px}
.link-manager>header>aside{margin-left:auto}
@media (max-width:700px){ .link-manager>header>aside{margin-left:0} }

/* f) nav pill text no longer clips on mobile (was 117px text in a 67px box) */
@media (max-width:767px){
  .page-switch a{white-space:normal; line-height:1.25; text-align:center}
}

/* g) contrast pass, light mode (cream #edece1): accent text to WCAG 4.5:1 */
html[data-theme="light"] .page-foot a,
html[data-theme="light"] .card a,
html[data-theme="light"] .test-builds a{color:#007AFF}
html[data-theme="light"] .link-manager>header>aside b,
html[data-theme="light"] .link-manager footer b,
html[data-theme="light"] .link-manager footer code{color:#065f46}
html[data-theme="light"] .bugmanager-native{--warn:#92400e}
html[data-theme="light"] .link-action.implemented,
html[data-theme="light"] .link-action.keep{background:#007AFF; color:#fff}
html[data-theme="light"] .page-switch a.active{background:#007AFF; color:#fff}
html[data-theme="light"] .page-foot{color:#4f5a4b}
html[data-theme="light"] .card>header b{color:#065f46}
html[data-theme="light"] .wbss-count{color:#334155}
html[data-theme="light"] .card>footer time{color:#4f5a4b}

/* g) contrast pass, dark mode: timestamps and sort counts */
html[data-theme="dark"] .card>footer time,
html[data-theme="dark"] .wbss-count{color:#a9b6c6}

/* 1 Dec 2026 (2): Link Manager GitHub/GitLab cells - no per-letter breaks, links stack */
.link-manager td.gh-cell{min-width:110px; word-break:normal; overflow-wrap:normal}
.link-manager td.gh-cell a{display:inline-block; word-break:normal; overflow-wrap:normal}
@media (max-width:767px){ .link-manager td.gh-cell{min-width:0} }

/* 1 Dec 2026 (3): Link Manager table scrolls inside its panel when columns exceed the box */
.link-table-wrap{overflow-x:auto}

/* 1 Dec 2026 (4): verification round 2 - audit findings on the preview */

/* 1) Test build log panel follows the theme: light card + dark text in light mode; dark card unchanged in dark mode */
html[data-theme="light"] .test-builds article{background:#ffffff; border-color:var(--line); color:#20251e}
html[data-theme="light"] .test-builds article :where(h2,h3,h4,p,span,b,strong,time,header,li){color:#20251e}
html[data-theme="light"] .test-builds article :where(small){color:#6c6c70}
html[data-theme="light"] .test-builds article a{color:#007AFF}

/* 2) Sort/Filter bar matches the theme in both modes; chips readable on the cream chip */
html[data-theme="light"] .wbss-bar{background:#f5f2e6; border-color:#e2e8f0; color:#3a3428}
html[data-theme="dark"] .wbss-bar{background:rgba(18,18,18,.85); border-color:#262626}
.wbss-chip{color:#064e3b}
html[data-theme="dark"] .wbss-count{color:#a9b6c6}

/* 3) Link Manager columns: GitLab cell like GitHub, header decoration no longer counts as overflow */
.link-manager td.gl-cell{min-width:110px; word-break:normal; overflow-wrap:normal}
.link-manager td.gl-cell a{display:inline-block; word-break:normal; overflow-wrap:normal}
.link-manager>header:after{right:0}

/* 4) Link Manager link text to WCAG in light mode */
html[data-theme="light"] .link-manager a{color:#007AFF}
html[data-theme="light"] .gh-cell a, html[data-theme="light"] .gl-cell a{color:#007AFF}

/* 6) Bug Manager chips to 4.5:1+ in light; scroll cue + frozen Bug ID column */
html[data-theme="light"] .bugmanager-native{--warn:#78350f; --err:#b91c1c; --ok:#007AFF}
.bugmanager-native .table-wrap, .link-table-wrap{
  background:
    linear-gradient(to right, var(--surface, #121212) 30%, rgba(0,0,0,0)),
    linear-gradient(to right, rgba(0,0,0,0), var(--surface, #121212) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) 100% 0;
  background-repeat:no-repeat;
  background-color:var(--surface, #121212);
  background-size:44px 100%, 44px 100%, 16px 100%, 16px 100%;
  background-attachment:local, local, scroll, scroll;
}
@media (max-width:700px){
  .bugmanager-native table.ledger th:first-child,
  .bugmanager-native table.ledger td:first-child{position:sticky; left:0; background:var(--surface, #121212); z-index:2; box-shadow:8px 0 12px -8px rgba(0,0,0,.35)}
}

/* 7+9) mobile nav: brand link no longer clipped; pills share one even row */
@media (max-width:767px){
  .shell>nav{flex-wrap:wrap}
  .shell>nav>a{max-width:none; overflow:visible; white-space:normal; min-width:0; flex:1 1 auto}
  .shell>nav .page-switch{flex:1 1 100%; max-width:none; order:5}
  .shell>nav .page-switch a{flex:1 1 0; min-width:0}
}

/* 8) dark-mode contrast: implemented/keep chips */
html[data-theme="dark"] .link-action.implemented,
html[data-theme="dark"] .link-action.keep{background:#007AFF; color:#fff}

/* 1 Dec 2026 (5): verification round 3 - audit re-check findings on the preview */

/* A) mobile nav (all pages): two readable rows - brand + DARK on row 1, all pills share a full-width row 2 */
@media (max-width:767px){
  .shell>nav{display:flex; flex-wrap:wrap; height:auto; min-height:0; padding:12px 0; gap:8px}
  .shell>nav>div{display:contents}
  .shell>nav>a{flex:1 1 auto; min-width:0; max-width:none; overflow:visible; white-space:nowrap}
  .shell>nav .theme-toggle{flex:0 0 auto; margin-left:auto}
  .shell>nav .page-switch{flex:1 1 100%; order:5; max-width:none; overflow:visible; flex-wrap:wrap}
  .shell>nav .page-switch a{flex:1 1 0; min-width:0; white-space:nowrap; text-align:center; font-size:11px; padding:7px 6px}
}
/* A2) folder cards: keep the white paper layers inside the coloured top (no white notch) */
.folder-papers span{inset:10px 6px auto; transform:rotate(-1.2deg)}
.folder-papers span:nth-child(2){inset:14px 14px auto 3px; transform:rotate(1.4deg)}
.folder-papers span:nth-child(3){inset:21px 4px auto 10px; transform:rotate(-.4deg)}

/* C) dashboard light contrast: WHY REMOVED, completed tick, hero subtitle */
html[data-theme="light"] section.suggestions li.rejected em strong{color:#b91c1c}
html[data-theme="light"] section.completed article i{color:#ffffff}
html[data-theme="light"] .shell.view-dashboard .hero>p{color:#6c6c70}

/* D) bug manager light: Major chip + tab labels to 4.5:1 */
html[data-theme="light"] .bugmanager-native{--orange:#9a3412; --orange-bg:rgba(154,52,18,.10)}
html[data-theme="light"] .bugmanager-native .tab{color:#6c6c70}

/* E) dark: active nav pill keeps white-on-green everywhere */
html[data-theme="dark"] .page-switch a.active{background:#007AFF; color:#ffffff}

/* 1 Dec 2026 (6): verification round 4 - audit re-check on 306ac88 */

/* 2) folder card notch (mobile light): square the tab's top-left corner so the white card
   body never shows through the tab's rounded-corner cutout */
.folder:before{border-top-left-radius:0}

/* 3) bug manager light: status preset chips (Open/Holding/Resolved) + ledger meta line to 4.5:1 */
html[data-theme="light"] .bugmanager-native .preset{color:#6c6c70}
html[data-theme="light"] .bugmanager-native .table-meta{color:#6c6c70}
/* 3b) regression fix: round-3's .tab colour rule also hit the ACTIVE tab (white-on-green became
   #6c6c70-on-green = 1.45). Active tab + active preset keep white on the green fill. */
html[data-theme="light"] .bugmanager-native .tab.active,
html[data-theme="light"] .bugmanager-native .preset.active{color:#ffffff}
/* 3c) bug manager light: footer ledger line (was --muted #667060 = 4.37) */
html[data-theme="light"] .bugmanager-native .footer{color:#6c6c70}

/* 4) dashboard light: BOARD UPDATED + STATE / BUILD / NEXT small-caps labels to 4.5:1 */
html[data-theme="light"] .section-head span{color:#6c6c70}
html[data-theme="light"] .hero aside{color:#6c6c70}

/* 6) completed outputs: section background follows the page in both modes (no white/dark band) */
.completed{background:transparent}

/* 7) mobile Link Manager: category + action pills stay compact and centred
   (my round-1 td>:last-child stretch was expanding them with text stuck right) */
@media (max-width:900px){
  .link-manager table td>span.link-cat,
  .link-manager table td>span.link-action{flex:0 0 auto; text-align:center}
}

/* 1 Dec 2026 (7): verification round 5 - audit re-check on e704e50 */

/* 1) thinkers header band: the light group rule paints .thinkers-page-head var(--surface) (white slab
   on the beige page). Transparent like the dashboard hero, both themes; keep the hairline bottom border. */
.thinkers-page-head{background:transparent}

/* 2) folder notch at tablet/mobile: at <=768 the bundle clips the :before tab (overflow:hidden) and the
   visible "tab" is the :after stacked-paper shadow - a square stripe against the card's 12px rounded
   top-left corner leaves a page-coloured wedge. Square the card corner under the tab at every width. */
.folder{border-top-left-radius:0}

/* 5) bug manager light: chip-grey text (Low/Trivial/Rejected/Highest fallback) 4.45 -> >=4.5 */
html[data-theme="light"] .bugmanager-native{--grey:#6c6c70}

/* 6) dashboard light: "Finished work stays visible..." (.completed>p was --muted #667060 = 4.37) */
html[data-theme="light"] .completed>p{color:#6c6c70}

/* 3) tablet header (768-900): brand was clipped at 90px ("L · LAKSHAN / WOR"); show it whole, vertically centred with the pills and theme button */
@media (min-width:768px){
  .shell>nav{align-items:center}
  .shell>nav>a{max-width:none; overflow:visible; white-space:nowrap; flex:0 0 auto}
}

/* 2b) folder cards light: body takes the folder colour like dark mode (white body + coloured tab made the visible notch) */
html[data-theme="light"] .view-thinkers .folder{background:var(--f)}

/* 5b) bug manager light: info chip (To be Tested) 4.50 -> comfortably above 4.5 */
html[data-theme="light"] .bugmanager-native{--info:#1d4ed8}
/* 3c) tablet Link Manager stacked cells: wrapped description/notes line up right with their value */
@media (max-width:900px){ .link-manager table td>*{text-align:right} }

/* 1 Dec 2026 (8): verification round 6 */
/* 2) thinkers page subtitle, light: --muted #667060 = 4.37 -> 4.5+ */
html[data-theme="light"] .thinkers-page-head>p{color:#6c6c70}
/* 4) thinkers note cards: long unbroken text (URLs, ids) wraps inside the card at every width */
section.thinkers .notes article, section.thinkers .notes article *{overflow-wrap:anywhere; word-break:break-word; min-width:0; max-width:100%}

/* 1 Dec 2026 (9): Thinkers filter + sort (preview). Sort select, In use / Unused / All chips, source select. */
.tk-controls{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 18px}
.tk-field{display:flex; align-items:center; gap:8px; margin:0}
.tk-field span{font:700 10px ui-monospace,monospace; letter-spacing:.08em; color:var(--muted)}
.tk-field select{min-height:40px; max-width:100%; padding:0 34px 0 14px; border:1px solid var(--line); border-radius:12px; background-color:var(--surface); color:var(--text); font:inherit; font-size:14px}
.tk-field select:focus-visible,.tk-chip:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.tk-chips{display:flex; flex-wrap:wrap; gap:8px}
.tk-chip{min-height:40px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); font:inherit; font-size:14px; display:inline-flex; align-items:center; gap:8px; cursor:pointer}
.tk-chip i{font:700 11px ui-monospace,monospace; font-style:normal; opacity:.85}
.tk-chip.active{background:#007AFF; border-color:#007AFF; color:#ffffff}
.tk-chip.active i{opacity:1}
.tk-empty{flex:1 1 100%; margin:4px 0 0; color:var(--muted); font-size:14px}
html[data-theme="light"] .tk-field span{color:#6c6c70}
html[data-theme="light"] .tk-empty{color:#6c6c70}
@media (max-width:767px){
  .tk-controls{gap:10px}
  .tk-field{flex:1 1 100%}
  .tk-field select{flex:1 1 auto; min-width:0; width:100%}
  .tk-chips{flex:1 1 100%}
  .tk-chip,.tk-field select{min-height:44px}
  .tk-chip{flex:1 1 0; justify-content:center; padding:0 8px}
}

/* 1 Dec 2026 (10): Thinkers note cards keep their pastel background in dark theme, so the text stays dark (was inheriting the dark-theme light text, 1.3:1). Existing since 0ab8a54. */
html[data-theme="dark"] .welcome-note,
html[data-theme="dark"] .welcome-note .note-top,
html[data-theme="dark"] .welcome-note .note-top b,
html[data-theme="dark"] .welcome-note .note-top span,
html[data-theme="dark"] .welcome-note small,
html[data-theme="dark"] .welcome-note h3,
html[data-theme="dark"] .welcome-note p,
html[data-theme="dark"] .welcome-note label,
html[data-theme="dark"] .welcome-note strong,
html[data-theme="dark"] .welcome-note button,
html[data-theme="dark"] .welcome-note button b{color:#20251e!important}
/* hit areas */
section.thinkers .folder-head>button{min-height:44px; min-width:44px; padding-top:14px; padding-bottom:14px; display:inline-flex; align-items:center}
section.thinkers .welcome-note button{min-height:44px; align-items:center}
