/* Anticode's calm workspace: the dashboard, Settings and the builder as flat, quiet surfaces (the owner's brief,
   2026-11-11: laid out like Manus, in Anticode's own type, mark and words). Loaded last on those pages, so it only
   restyles; behaviour stays in the scripts. Dark only (src/… data-theme="dark").

   Tokens (contrast against --c-main, #1e1e1e):
     --c-side  #171717  the sidebar and the builder's chrome
     --c-main  #1e1e1e  the work area
     --c-card  #262626  cards, the composer, menus
     --c-hover #2e2e2e  a row or card under the pointer
     --c-sel   #333333  the current row
     text #ededed 14.6:1 · body #cfcfcf 11.1:1 · muted #a3a3a3 7.1:1
   No glass and no backdrop: surfaces are told apart by fill. What's picked is a lighter fill and a tick, never a
   blue outline. Labelled controls are rounded rectangles (10px), not pills; only icon buttons and switches are round.
   Motion is short fades and the menus' own pop; nothing bounces, blurs in or loops. */

/* scoped to the app's own surfaces: index.html is also the public homepage, which keeps its own look */
body.dash, body.sp, body.calm, .build {
  --c-side: #171717; --c-main: #1e1e1e; --c-card: #262626; --c-hover: #2e2e2e; --c-sel: #333333;
  --ground: var(--c-side); --surface: var(--c-card); --raised: var(--c-hover);
  --text: #ededed; --body: #cfcfcf; --muted: #a3a3a3;
  --c-edge: #333333; --r-control: 10px;
  /* the greys the rules below used to spell out: the well behind the composer, a ring round a floating surface, a
     control that's off, a quiet button, a command palette, and the main button with the ink on it */
  --c-well: #1a1a1a; --c-ring: #3a3a3a; --c-ring-2: #444444; --c-off: #3a3a3a; --c-off-text: #7c7c7c;
  --c-quiet: #2a2a2a; --c-quiet-hover: #343434; --c-pop: #232323; --c-go: #ededed; --c-on-go: #171717;
  /* type: the home page's face for everything, headings too (no serif anywhere: the owner's rule) */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);
  font-family: var(--font);
}
/* pages with no sidebar (sign-in, Data, Code, Engineer) sit on the work-area grey */
body.calm { --ground: var(--c-main); background: var(--c-main); }
:is(.dash .view, .dash .onb, .sp, .calm) h1, :is(.dash .view, .dash .onb) .view-h, .dash .greet, .sp .sp-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

/* ---------------- the dashboard frame: a flat sidebar beside a flat work area ---------------- */
body.dash { background: var(--c-side); }
.dash { --panel: var(--c-main); --pop-bg: var(--c-card); --nav-on: var(--c-sel); --seg-on: var(--c-sel); --side-w: 208px;
  --sh-panel: none; --sh-comp: none; --sh-shelf: none; --sh-pill: none; }
.dash .backdrop, .dash .panel-backdrop, .dash .acen { display: none; }
.dash .app { padding: 0; }
.dash .panel { border-radius: 0; background: var(--c-main); box-shadow: none; }
.dash .panel-scroll > .view { zoom: 1; font-size: 100%; }
@media (min-width: 821px) {
  html:not(.in-desk) .dash .app { padding-left: 0; }
  html:not(.in-desk) .dash .side { margin: 0; padding: 8px 8px 10px; border-radius: 0; background: var(--c-side);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  html:not(.in-desk) .dash.is-collapsed .side { margin: 0; align-self: stretch; height: auto; max-height: none; border-radius: 0; background: var(--c-side); box-shadow: none; }
}
@media (max-width: 820px) { .dash .side { background: var(--c-side); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* the sidebar: plain rows, a soft fill for the current one */
.dash .snav > a, .dash .snav > button { height: 32px; gap: 9px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--body); }
.dash .side svg.ic { width: 16px; height: 16px; }
.dash .ws-btn { height: 34px; font-size: 13.5px; }
.dash .recent-list a { height: 28px; font-size: 13px; }
.dash .acct-btn { font-size: 13.5px; }
.dash .snav > [aria-current="page"] { background: var(--c-sel); color: var(--text); box-shadow: none; }
.dash .snav .hl { border-radius: 10px; background: var(--c-hover); }
.dash .ws-btn { border-radius: 10px; box-shadow: none; }
.dash .ws-btn:hover, .dash .recent-list a:hover, .dash .acct-btn:hover { background: var(--c-hover); }
.dash .recent-list { overflow-x: hidden; }
.dash .recent-list a { border-radius: 10px; }
.dash .recents-head { font-size: 12.5px; color: var(--muted); }
.dash .kbd { box-shadow: none; background: var(--c-card); }
/* the plan, said plainly, with one way up (the builder's sidebar carries the same chip) */
.dash .beta.plan-chip, body .build .wsnav-beta.plan-chip { display: flex; align-items: center; width: fit-content; max-width: 100%; height: 32px; margin: 0 0 4px; padding: 0; overflow: visible;
  border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--c-edge); font-size: 13px; }
.dash .beta.plan-chip[hidden], body .build .wsnav-beta.plan-chip[hidden] { display: none; }
.dash .beta.plan-chip::before, body .build .wsnav-beta.plan-chip::before { display: none; }
.plan-chip .plan-name { padding: 0 11px; color: var(--muted); white-space: nowrap; }
.plan-chip .plan-up { position: relative; align-self: stretch; padding: 0 13px 0 11px; border-radius: 0 999px 999px 0; font: inherit; font-weight: 600; color: #6aa2ff; white-space: nowrap; }
.plan-chip .plan-up::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--c-edge); }
.plan-chip .plan-up:hover { background: var(--c-hover); }
.dash .acct-plan, .dash .team-badge, .dash .snav-new, .dash .snav-count { border-radius: 6px; }

/* menus and pop-ups: one solid card colour */

/* ---------------- home: a question, where to start, and the composer at the foot of the first screen ---------------- */
.dash .view-home:not([hidden]) { display: block; padding: 0; }
.dash .home-main { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100dvh; padding: 0 clamp(16px, 4vw, 48px) 28px; }
/* the connectors link sits top right, out of the way, as a plan or credits chip would */
.dash .home-main > .connect { position: absolute; top: 14px; right: 16px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--c-card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; font-size: 13px; }
.dash .home-main > .connect:hover { background: var(--c-hover); }
.dash .greet { order: 1; margin: auto 0 28px; padding-top: 72px; font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; line-height: 1.15;
  letter-spacing: -0.015em; color: var(--text); text-align: center; }
.dash .greet .w, .dash .greet span { color: inherit; }

/* where to start: one card per kind of build, each with its own mark. They pick what the composer builds for */
/* six cards on one row inside the 780px column: what it's for (startup, automation), what it's built for, a template */
/* the picked card: a lighter fill and a tick in its corner (specific enough to beat base.css's shared selected rule) */
/* the headline's own tints (anticode.css .rw): rose for a startup, pistachio for automation */

/* on a phone: two even columns, the template card across both */
@media (max-width: 600px) {
}

/* the composer, laid out as Manus lays out its own: an outer frame whose top strip says who it's built with and which
   model, and the box you type in set into it; a ringed plus on the left, dictate and send on the right */
.dash .dcomp { order: 4; display: block; width: 100%; max-width: 768px; margin-top: 40px; margin-bottom: auto; padding: 0; border-radius: 22px; background: var(--c-well);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--c-edge); }
/* the prompt box itself sits at the middle of the screen, the greeting above it (the owner, 2026-11-17): a spacer under
   the box as tall as the greeting's block above it, less the top bar, so the auto margins centre the box rather than
   the greeting and box together. Sized from the greeting's own font-size, so it holds as the type scales */
@media (min-width: 821px) { .dash .home-main::after { content: ""; order: 5; flex: 0 0 calc(112px + 1.15 * clamp(30px, 2.8vw, 40px)); } }
.dash .dcomp::after, .dash .dcomp::before { display: none; }
.dash .dcomp:focus-within { background: var(--c-well); box-shadow: inset 0 0 0 1px var(--c-edge); }
.dash .dcomp-top { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; }
.dash .dcomp-top :is(.team-btn, .effort-btn) { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 999px; background: none; box-shadow: none;
  font-size: 13.5px; font-weight: 500; color: var(--body); }
.dash .dcomp-top :is(.team-btn, .effort-btn):hover { background: var(--c-hover); color: var(--text); }
.dash .dcomp-top .ic { width: 16px; height: 16px; }
.dash .dcomp-box { display: grid; gap: 6px; padding: 14px 12px 12px; border-radius: calc(18px + 12px); background: var(--c-card); box-shadow: 0 0 0 1px var(--c-ring); }
.dash .dcomp:focus-within .dcomp-box { box-shadow: 0 0 0 1px #4a4a4a; }
.dash .dcomp textarea { min-height: 60px; padding: 2px 6px; font-size: 16px; line-height: 1.5; }
.dash .dcomp textarea::placeholder { color: #7c7c7c; }
:root .dash .dcomp .dcomp-plus { width: 34px; height: 34px; background: none; box-shadow: inset 0 0 0 1px var(--c-ring-2); color: var(--body); }
:root .dash .dcomp .dcomp-plus:hover { background: var(--c-hover); }
.dash .dcomp #mic { width: 34px; height: 34px; }
.dash .dcomp .send-btn { width: 34px; height: 34px; border-radius: 50%; }
.dash .dcomp .send-btn:disabled { background: var(--c-off); color: var(--c-off-text); box-shadow: none; }
/* send stays in its place, greyed, until there is something to send (the script hides it while dictate shows) */
.dash .dcomp .send-btn[hidden] { display: inline-grid; }
/* the composer sits at the foot of the screen, so its menus open upwards */
.dash .dcomp .dmenu.up { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; --origin: bottom left; }
.dash .vh { order: 6; }

/* below the first screen: templates and recent work, then the at-a-glance cards */
.dash .shelf { max-width: 1040px; margin: 8px auto 0; padding: 18px; border-radius: calc(19px + 18px); background: var(--c-card); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.dash .view-home > .shelf { width: calc(100% - 2 * clamp(16px, 4vw, 48px)); }
/* the three at-a-glance cards (public/home-rail.js) as small chips in the top left corner, where Manus keeps its
   model chip: Open editor, the visitor count, and Autopilot with its switch. Their art, notes and charts are hidden;
   the full pages are a click away */
.dash .view-home { position: relative; }
.dash .home-rail { position: absolute; top: 14px; left: 16px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; width: auto; max-width: calc(100% - 260px); margin: 0; padding: 0; }
.dash .home-rail .rail-card { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--c-card); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 13px; container: none; }
.dash .home-rail :is(.rail-art, .rail-copy > h2, .rail-copy > p, .rail-range, .rail-note, .brain-bars, .auto-intro, .auto-list, .auto-pro, .auto-sky, .brain-ch, .rail-head h2) { display: none; }
.dash .home-rail .rail-card:hover { background: var(--c-hover); }
.dash .home-rail .rail-copy { display: contents; }
.dash .home-rail :is(.rail-btn, .rail-link) { display: inline-flex; align-items: center; gap: 6px; height: auto; min-height: 0; padding: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 600; color: var(--text); }
.dash .home-rail :is(.rail-btn, .rail-link)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dash .home-rail :is(.rail-btn, .rail-link) .ic { display: none; }
.dash .home-rail .rail-head { min-height: 0; gap: 6px; }
.dash .home-rail .rail-head .ic { width: 15px; height: 15px; }
/* Business Brain: its name, then the visitors figure alone */
.dash .home-rail .rail-brain .rail-head h2 { display: block; font-size: 13px; font-weight: 600; }
.dash .home-rail .brain-stats { display: flex; gap: 0; margin: 0; }
.dash .home-rail .brain-stats > div:not(:first-child), .dash .home-rail .brain-stats dt { display: none; }
.dash .home-rail .brain-stats dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash .home-rail .brain-stats dd::after { content: " visitors"; font-weight: 500; }
/* Autopilot: the bolt, the link and the switch (the switch stays above the link's click area) */
.dash .home-rail .rail-auto { position: relative; }
.dash .home-rail .rail-auto .rail-head { order: 2; }
.dash .home-rail .rail-auto .rail-head .ic { display: none; }
.dash .home-rail .rail-auto .sr-switch { position: relative; z-index: 1; transform: scale(0.8); }
.dash .home-rail .rail-auto .rail-link { order: 1; }
.dash .home-rail .rail-auto .rail-link::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--bolt) center / contain no-repeat; mask: var(--bolt) center / contain no-repeat; }
.dash .home-rail .rail-editor .rail-btn::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--pen-ic) center / contain no-repeat; mask: var(--pen-ic) center / contain no-repeat; }
.dash .home-rail { --bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M11 2.5 4.5 11.2h5L9 17.5l6.5-8.7h-5z'/%3E%3C/svg%3E");
  --pen-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 3.5l3 3L7 16H4v-3z'/%3E%3C/svg%3E"); }
.dash .home-rail .rail-card { position: relative; }
/* a narrow screen: the chips sit in a row under the composer instead */
@media (max-width: 1099px) {
  .dash .home-rail { position: static; justify-content: center; max-width: none; margin: 20px auto 40px; padding: 0 16px; }
}

/* ---------------- every other dashboard view: flat cards on the work area ---------------- */
.dash .view:not(.view-home) { padding-top: 28px; }
.dash :is(.pcard, .card, .gr-panel, .intel-card, .team-card) { box-shadow: none; }
.dash .view-grow, .dash .view-library, .dash .view-projects, .dash .view-intel { --glass-read: var(--c-main); }
:root .dash .panel-scroll > .view:not(.view-home) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }


/* ---------------- Settings (/settings, and the same sections in the dashboard's pop-up) ---------------- */
body.sp { background: var(--c-main); }
.sp .sp-bar { background: var(--c-main); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.sp .sp-nav a, .dash .sp-nav a { border-radius: 10px; }
.sp .sp-nav a:hover, .dash .sp-nav a:hover { background: var(--c-hover); }
.sp .sp-nav a[aria-current], .dash .sp-nav a[aria-current] { background: var(--c-sel); }
.sp .sp-search, .dash .sp-search { background: var(--c-card); box-shadow: none; }
:is(.sp, .dash) :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea):not(#dprompt) { background-color: var(--c-card); box-shadow: none; }

/* ---------------- the builder (index.html #build): the sidebar, then the chat and the preview on one flat surface.
   Its stylesheets load after this one, so these rules carry the body's weight to win on equal terms ---------------- */
body .build, body .build.ws { background: var(--c-main); }
body .build.ws > .wsnav, body .build > nav.wsnav { background: var(--c-side); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body .build .stage, body .build.ws .stage { background-color: var(--c-main); background-image: none; }
body .build .blueprint { background: none; }
body .build:not([data-native]) .device { background: var(--c-card); }
body .build .msg-user { background: var(--c-card); }
body .build .ask { background: var(--c-card); border-radius: 20px; box-shadow: none; }
body .build.ws > .rail { background: var(--c-main); }

/* ---------------- shapes: buttons are pills (the owner, 2026-11-12: "add more pills to buttons"); what is not a
   button keeps a rounded rectangle: fields, tabs and their tracks, rows in a menu or the sidebar, tiles, tags.
   Icon buttons and switches are round. ---------------- */
:is(.dash, .sp, .calm, .build) :is(.btn, .connect, .pick-btn, .lib-back, .rail-btn, .auto-get, .eas-btn, .convo-other, .toast button, .insp-btn,
  .code-revert, .edit-toggle, .in-suggest button, .ads-feed-cta, .ads-range-btn, .conn-add, .team-btn, .effort-btn, .onb-go, .onb-later, .onb-skip,
  .m-btn, .follow, .pc-stop, .pc-feed-btn, .ab-chips button, .wroute-btn) { border-radius: 999px; }
:is(.dash, .sp, .calm, .build) .split-main { border-radius: 999px 0 0 999px; }
:is(.dash, .sp, .calm, .build) .split-more { border-radius: 0 999px 999px 0; }
:is(.dash, .sp, .calm, .build) :is(.icon-btn, .ws-icon) { border-radius: 50%; }
.dash .recents-head { border-radius: 9px; }
.dash :is(.tabs, .lib-tabs, .seg2) { border-radius: 11px; }
.dash :is(.tabs button, .tab-pill, .lib-tabs button, .seg2 button, .dp-tabpill, .cm-sort button) { border-radius: 8px; }
.dash .card-thumb .badge { left: 14px; bottom: 14px; border-radius: calc(24px - 14px); }
:is(.sp, .dash) :is(.mfa-this, .sr-scope) { border-radius: 6px; }
@media (max-width: 820px) { :is(.sp, .dash) .sp-nav a { border-radius: 9px; } }
body .build :is(.wsnav-links a, .wsnav-recents a) { border-radius: 9px; }
body .build :is(.wsnav-me-plan, .thumb .cap span, .frame-label .pill, .run-row .tag, .mx-tag, .mg-chips li) { border-radius: 6px; }
body .build :is(.mseg, .m-tabs, .pc-switch, .tr-filter, .mx-filter) { border-radius: 11px; }
body .build :is(.mseg-pill, .mseg button, .m-tabs button, .pc-switch button, .tr-filter button, .mx-filter button) { border-radius: 8px; }
body .build :is(.ab-field, .ab-scope select, .ab-start-q, .mg-fit, .win-url) { border-radius: 9px; }

/* ---------------- what's selected is never a blue outline ---------------- */
.dash .greet .sel-box { display: none; }
:is(.sp, .dash) .sp-card[aria-checked="true"] .sp-shot, :is(.sp, .dash) .sp-card:has(input:checked) .sp-shot { box-shadow: 0 0 0 2px var(--text); }
:is(.sp, .dash) .sp-swatch:has(input:checked) .sp-dot { box-shadow: 0 0 0 2px var(--c-main), 0 0 0 4px var(--text); }
body .build .ask-point.is-on { color: var(--text); background: var(--c-sel); box-shadow: none; }
body .build .frame.is-sel .frame-shot { box-shadow: 0 0 0 2px #d6d6d6, 0 18px 50px -24px rgba(0, 0, 0, .6); }
body .build .dock button[aria-pressed="true"] .tile { background: var(--c-sel); box-shadow: none; }

/* ---------------- motion: short fades and the menus' own pop; nothing bounces, blurs in or loops ---------------- */
@keyframes calm-in { from { opacity: 0; } }
.dash.is-entering .side, .dash.is-entering .panel { animation: none; }
.dash .view:not([hidden]) > * { animation: calm-in 160ms ease-out backwards; }
.dash .card, .dash .shelf .card { animation: calm-in 160ms ease-out backwards; animation-delay: 0s; }
.dash :is(.gr-panel:not([hidden]), .view-grow .view-ads:not([hidden])) { animation: calm-in 160ms ease-out both; }
.dash .snav-new .tw, .dash .snav > [aria-current="page"] .nav-ic, .dash #nav-grow:hover .nav-ic, .dash .lib-tabs button[aria-selected="true"],
.dash .btn-primary.dp-ringing, .dash .gr-step-row > input:checked, .dash .shelf-pick.is-open .pick-menu button,
.dash .cchip { animation: none; }
body .build .chips button { border-radius: 999px; }
body .build .msg-user { border-radius: 14px; }

/* ---------------- start modes: a starting card opens a panel of ideas and templates right above the composer
   (dashboard.js openMode). Layout and motion follow the owner's recording of 2026-11-11, measured frame by frame:
   opening, the cards go at once and the panel fades in over 150ms while the new heading sharpens in over 320ms and
   faint wireframes come up behind; closing, the heading sharpens back in 150ms and the cards follow it 35ms apart,
   130ms each. Nothing moves further than 4px. ---------------- */
.dash .home-main { isolation: isolate; }
.dash .greet-sub { order: 1; margin: 0 0 auto; padding: 0 0 28px; max-width: 56ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-align: center; }
/* the mode's chip in the composer, with its way out */
/* faint wireframes behind an open mode */
@media (prefers-reduced-motion: reduce) {
  .dash .home-main :is(.greet, .greet-sub) { animation: none; }
}
@media (max-width: 600px) {
}

/* ---------------- menus and pop-ups, after the owner's second recording of 2026-11-11 (30 fps, read frame by frame):
   a compact card with a thin edge and tight rows; it fades in over 120ms and out over 100ms while settling 4px
   toward the button that opened it. No scale and no bounce. ---------------- */
:is(.dash, .sp, .calm, .build) .menu { --pop-shift: -4px; padding: 5px; border-radius: 12px; background: var(--c-card); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--c-ring), 0 14px 36px -10px rgba(0, 0, 0, 0.65); }
:is(.dash, .sp, .calm, .build) .menu.up { --pop-shift: 4px; }
:is(.dash, .sp, .calm, .build) .menu.pop { transform-origin: center; }
:is(.dash, .sp, .calm, .build) .menu.pop:not(.is-open) { opacity: 0; transform: translateY(var(--pop-shift)); transition: opacity 100ms ease-in, transform 100ms ease-in, visibility 0s linear 100ms; }
:is(.dash, .sp, .calm, .build) .menu.pop.is-open { transform: none; transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s; }
.dash .dmenu { gap: 0; }
.dash .dmenu > button, .dash .dmenu > a, .dash #plus-conns > button, .dash .dmenu .mgroup > button { min-height: 32px; padding: 4px 8px; gap: 9px; border-radius: 7px; font-size: 13.5px; }
.dash .dmenu > button b, .dash .dmenu > a b, .dash .dmenu .mgroup > button b { font-size: 13.5px; font-weight: 500; }
.dash .dmenu > button:hover, .dash .dmenu > a:hover, .dash .dmenu > button:focus-visible { background: var(--c-sel); }
.dash .dmenu .ic { width: 16px; height: 16px; }
.dash #plus-conns > :is(button, a) { display: flex; align-items: center; width: 100%; text-align: left; color: var(--body); }
.dash #plus-conns > :is(button, a):hover { background: var(--c-sel); color: var(--text); }
.dash .menu-label { padding: 7px 8px 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.dash .dmenu .msearch { margin: 2px 0 4px; border-radius: 7px; }
.dash .ws-head { padding: 8px 8px 10px; }
.dash .ws-meter { border-radius: 9px; }
/* the search palette and the dialogs: the same card and edge, and a fade with no scale */
.dash .cmdk, .dash .scrim > .conn { background: var(--c-pop); box-shadow: inset 0 0 0 1px var(--c-ring), 0 24px 60px -16px rgba(0, 0, 0, 0.7); }
.dash .scrim .cmdk { transform: translateY(-4px); transition: opacity 120ms ease-out, transform 120ms ease-out; }
.dash .scrim.is-open .cmdk { transform: none; }
/* tooltips drawn by title attributes stay the browser's; the kbd hint matches the card */

/* ---------------- switches: a filled track, as in the recording; on is light, never blue ---------------- */
:is(.dash, .sp, .calm, .build) .sr-switch { width: 34px; height: 20px; background: #4a4a4a; box-shadow: none; }
:is(.dash, .sp, .calm, .build) .sr-switch::before { top: 3px; left: 3px; width: 14px; height: 14px; background: #ededed; }
:is(.dash, .sp, .calm, .build) .sr-switch:hover { box-shadow: none; background: #575757; }
:is(.dash, .sp, .calm, .build) .sr-switch:checked { background: #ededed; box-shadow: none; }
:is(.dash, .sp, .calm, .build) .sr-switch:checked::before { translate: 14px 0; background: #171717; }
:is(.dash, .sp, .calm, .build) .sr-switch:checked:hover { background: #ffffff; box-shadow: none; }
:is(.dash, .sp, .calm, .build) .sr-switch:disabled { opacity: 0.5; }
.dash .home-rail .rail-auto .sr-switch { transform: none; }
.dash .grow-toggle { width: 34px; height: 20px; background: #4a4a4a; }
.dash .gr-switch input { width: 34px; height: 20px; background: #4a4a4a; }
.dash .gr-switch input::after { top: 3px; left: 3px; width: 14px; height: 14px; background: #ededed; }
.dash .gr-switch input:checked { background: #ededed; }
.dash .gr-switch input:checked::after { translate: 14px 0; background: #171717; }

/* ---------------- every dashboard view on the same margins and title size ---------------- */
.dash .panel-scroll > .view:not(.view-home) { width: 100%; max-width: 1120px; margin-inline: auto; padding: 32px clamp(16px, 4vw, 48px) 72px; }
.dash .view:not(.view-home) :is(h1, .view-h, h2.ph-title) { font-size: 26px; line-height: 1.2; }
.dash .empty { gap: 8px; padding: 72px 16px; }
.dash .empty h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.dash .empty .btn { margin-top: 10px; }

/* ---------------- the last blue rings: pricing's picked plan, the builder's suggested step and Publish ---------------- */
:is(.dash, .sp, .calm, .build) .pr-hi { box-shadow: inset 0 0 0 1.5px #5a5a5a; }
body .build .sugg[data-kind="approval"], body .build .sugg:hover { box-shadow: inset 0 0 0 1px #4a4a4a; }
body .build.ws .wbar-end #publish, body .build.ws .wbar-end #publish:not(:disabled):hover { background: var(--c-go); color: var(--c-on-go); box-shadow: none; }
body .build.ws .wbar-end #publish:not(:disabled):hover { background: #ffffff; }
body .build.ws .wbar-end #publish:disabled { background: var(--c-off); color: var(--c-off-text); }
body .build .wsnav-recents a[aria-current="page"] .wsnav-dot { background: var(--text); }

/* sign-in (login.html) keeps its own greys and sizes, measured from the owner's recording: public/signin.css */
.calm .auth-card h1 { font-size: clamp(26px, 2.4vw, 32px); }
.calm :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) { border-radius: 10px; }

/* ---------------- buttons that take you to a page are pills, as Linear draws its own (the owner's "Sign up"
   reference, 2026-11-12: 32px tall, 14px at each side, 13.5px medium, a light fill with dark text). They are the
   links drawn as buttons (a.btn); buttons that act on the page are pills too, at their own sizes. The quiet ones
   are the same pill in a dark fill. ---------------- */
:is(.dash, .sp, .calm, .build) a.btn { min-height: 32px; height: 32px; padding: 0 14px; gap: 6px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1;
  background: var(--c-quiet); background-image: none; color: var(--text); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(.dash, .sp, .calm, .build) a.btn:hover { background: var(--c-quiet-hover); box-shadow: none; }
:is(.dash, .sp, .calm, .build) a.btn.btn-primary { background: var(--c-go); color: var(--c-on-go); }
:is(.dash, .sp, .calm, .build) a.btn.btn-primary:hover { background: #ffffff; }
:is(.dash, .sp, .calm, .build) a.btn .ic { width: 15px; height: 15px; }
:is(.dash, .sp, .calm, .build) a.btn:active { scale: 0.98; }

/* ---------------- icons and the send button (2026-11-12, the owner asked for more professional ones). The set itself
   is redrawn in scripts/icons.mjs: plain rounded frames, closed rings, arrowheads at 45 degrees. Here the app draws
   them with a 1.5 line, and send is a solid light disc with a heavier arrow, greyed until there is something to send
   and never blue. ---------------- */
:is(.dash, .sp, .calm, .build) :is(svg.ic, svg.i) { stroke-width: 1.25; }
.dash .dcomp .send-btn, body .build .send-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--c-go); color: var(--c-on-go); box-shadow: none; animation: none; }
.dash .dcomp .send-btn :is(.ic, .i), body .build .send-btn :is(.ic, .i) { width: 18px; height: 18px; stroke-width: 2; }
.dash .dcomp .send-btn:not(:disabled):hover, body .build .send-btn:not(:disabled):hover { background: #ffffff; }
.dash .dcomp .send-btn:disabled, body .build .send-btn:disabled { background: var(--c-off); color: var(--c-off-text); }
@media (pointer: coarse) { .dash .dcomp .send-btn, body .build .send-btn { width: 44px; height: 44px; } }

/* ---------------- sidebar text, one step smaller (the owner's ask, 2026-11-12).
   On a wide screen only: in the phone's drawer the rows keep their size, where they're read at arm's length and tapped.
   Rows keep their heights, so nothing gets harder to hit; the smallest text here is 11px (apple-design: desktop minimum 10). ---------------- */
@media (min-width: 821px) {
  /* the dashboard's sidebar */
  .dash .snav > a, .dash .snav > button, .dash .ws-btn, .dash .acct-btn { font-size: 12.5px; }
  .dash .recent-list a { font-size: 12px; }
  .dash .recents-head { font-size: 11.5px; }
  .dash .beta.plan-chip, body .build .wsnav-beta.plan-chip { font-size: 12px; }
  .dash .side .acct-plan { font-size: 11px; }
  /* the builder's sidebar, to match */
  body .build .wsnav-ws, body .build .wsnav-links a, body .build .wsnav-me, body .build .wsnav-beta-in b { font-size: 12.5px; }
  body .build .wsnav-recents a, body .build .wsnav-empty { font-size: 12px; }
  body .build .wsnav-h, body .build .wsnav-beta-in span { font-size: 11.5px; }
  body .build .wsnav-me-plan { font-size: 11px; }
}

/* ---------------- the dashboard's sidebar, drawn as the builder's (the owner, 2026-11-13: "make the sidebar of the
   dashboard, look like the sidebar of builder"). Measured from the builder's .wsnav (public/workspace.css): 232px
   wide and not zoomed, 34px rows in regular weight, a 36px workspace row, 30px recents, and the builder's hollow
   marker in place of a coloured dot. The row you are on takes the builder's quiet fill, not a solid one.
   Wide screens only: the phone's drawer and the collapsed rail keep their own sizes. ---------------- */
@media (min-width: 821px) {
  html:not(.in-desk) .dash:not(.is-collapsed) { --side-w: 232px; }
  html:not(.in-desk) .dash:not(.is-collapsed) .side { zoom: 1; padding: 0 8px 8px; gap: 6px; }
  .dash:not(.is-collapsed) .side-top { height: 40px; padding: 0 0 0 6px; }
  .dash:not(.is-collapsed) .ws-btn { height: 36px; border-radius: 13px; font-weight: 500; }
  .dash:not(.is-collapsed) .snav > a, .dash:not(.is-collapsed) .snav > button { height: 34px; gap: 10px; font-weight: 400; }
  .dash:not(.is-collapsed) .snav > [aria-current="page"] { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
  .dash:not(.is-collapsed) .side svg.ic { width: 16px; height: 16px; stroke-width: 1.25; }
  .dash:not(.is-collapsed) .recents-head { height: 28px; }
  .dash:not(.is-collapsed) .recent-list a { height: 30px; gap: 10px; border-radius: 9px; }
  .dash:not(.is-collapsed) .recent-list a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .dash:not(.is-collapsed) .acct-btn { height: 40px; }
}
/* a project in Recents is marked as in the builder: a small hollow diamond, the same for every project */
.dash .recent-list .dot { width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: none; box-shadow: inset 0 0 0 1.4px var(--muted); }

/* a template's two choices, on the card itself (public/dashboard.js openTplPick): flat pills over a dimmed screenshot */
.dash .card.is-picking .card-thumb { z-index: 2; }
.dash .card.is-picking .card-thumb .tpl-shot { transform: none; }
.dash .tpl-pick { position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 8px; padding: 12px;
  border-radius: inherit; background: rgba(10, 10, 10, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tpl-pick-in 160ms var(--ease) both; }
.dash .tpl-pick :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color var(--t-1) var(--ease); }
.dash .tpl-pick .tpl-pick-use { background: #ededed; color: #111; }
.dash .tpl-pick .tpl-pick-use:hover { background: #fff; }
.dash .tpl-pick .tpl-pick-view { background: rgba(255, 255, 255, 0.14); color: #fff; }
.dash .tpl-pick .tpl-pick-view:hover { background: rgba(255, 255, 255, 0.24); }
.dash .tpl-pick .ic { width: 14px; height: 14px; }
.dash .tpl-pick :is(button, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes tpl-pick-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dash .tpl-pick { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .dash .tpl-pick { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 10, 10, 0.86); } }

/* ================= the home page's look, in the dashboard and the builder =================
   The owner, 2026-11-13: "make the builder and dashboard pages look and feel like the home page, including the
   petite pill styles". Measured from the home page as it is served (public/anticode.css) and carried over as tokens,
   so the layouts above don't change: only what they are set in.

     type     Plus Jakarta Sans throughout, headings at 500 with the home page's -0.022em
     colour   a dark a step lighter than the home page's near-black, with no tint: every value has equal red, green
              and blue. #08090a was carried over first; the owner, 2026-11-14: "instead of making it back to being
              grey, make it lighter", then "remove the blue tint" (the cool cast the home page's greys carry).
              2026-11-24, "make it look more like claude": the greys of Claude's own composer, sampled from the owner's
              screenshot (page #191919, box #303030 on a #404040 edge, words #efefef, labels #9c9c9c). The cool
              colorway of 2026-11-23 was dropped for it.
     ground   #191919  the work area, 15.3:1 under the text
     side     #1d1d1d  the sidebar and the builder's chrome
     card     #252525  cards, menus
     hover    #2b2b2b  · selected #313131 · ring #363636
     box      #303030  the prompt box, a 1px #404040 edge (#575757 while typing); placeholder #999999, 4.6:1 on it
     text     #efefef
     body     #d4d4d4
     muted    #9c9c9c  4.7:1 on a selected row, more on every darker surface

   The petite pill is the home page's: Sign up in its header and the ideas under its box are 32px tall with 12px at
   each side and 13px type. Every labelled pill here takes that size; on a touch screen it keeps a 44px hit height.
   What isn't a pill (tabs, fields, rows, tiles) keeps its rounded rectangle and only takes the same 32px and 13px.
   Settings, sign-in, the Engineer, Code and the CMS take it too (the owner, 2026-11-14: "make sure all page styles
   match"): one ground, one typeface and one pill on every page of the app. The home page keeps its own. */
body.dash, body.sp, body.calm, .build {
  --c-main: #191919; --c-side: #1d1d1d; --c-card: #252525; --c-hover: #2b2b2b; --c-sel: #313131; --c-edge: #363636;
  --c-well: #1d1d1d; --c-ring: #363636; --c-ring-2: #404040; --c-off: #313131; --c-off-text: #9c9c9c;
  --c-quiet: #2b2b2b; --c-quiet-hover: #363636; --c-pop: #202020; --c-go: #e8e8e8; --c-on-go: #08090a;
  --c-box: #303030; --c-box-edge: #404040; --c-box-edge-on: #575757; --c-box-ph: #999999;
  --text: #efefef; --body: #d4d4d4; --muted: #9c9c9c; --btn-soft-text: #f2f2f2;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --font-display: var(--font);
  --pill-h: 32px; --pill-pad: 12px; --pill-fs: 13px;
}
/* the builder sits inside the public page's body, whose reading colour is the home page's cool grey: without this it
   would inherit that one instead of its own */
.build { color: var(--body); }
:is(.dash .view, .dash .onb) :is(h1, .view-h), .dash .greet, .dash .empty h2, .sp .sp-title, .sp .sp-page-h, .calm :is(h1, h2) { font-weight: 500; letter-spacing: -0.022em; }
.dash .greet-sub, .dash .view > :is(.lead, .view-sub), .dash .gr-lead { letter-spacing: -0.011em; }

/* the petite pill: buttons */
:is(.dash, .sp, .calm, .build) :is(.btn.btn-sm, a.btn):not(.btn-icon), .dash .home-main > .connect, body .build :not(.frame-acts) > .m-btn {
  min-height: var(--pill-h); padding-inline: var(--pill-pad); font-size: var(--pill-fs); }
:is(.dash, .sp, .calm, .build) a.btn:not(.btn-icon) { height: var(--pill-h); }
.dash .home-main > .connect { height: var(--pill-h); padding-inline: 8px var(--pill-pad); }
/* the three chips in the dashboard's top corner */
.dash .home-rail .rail-card { min-height: var(--pill-h); padding-inline: var(--pill-pad); }
.dash .home-rail :is(.rail-btn, .rail-link), .dash .home-rail .rail-brain .rail-head h2 { font-weight: 500; }
/* the chips in the chat: the ideas under the home page's box, with room for a second line */
body .build .chips :is(button, a) { min-height: var(--pill-h); padding: 5px var(--pill-pad); font-size: var(--pill-fs); color: var(--body); }
body .build .chips :is(button, a):hover { color: var(--text); }
/* tabs and the builder's modes: the same height and type, in their own shape */
.dash :is(.tabs button, .lib-tabs button) { min-height: var(--pill-h); height: var(--pill-h); padding-inline: var(--pill-pad); font-size: var(--pill-fs); }
body .build .mseg button { min-height: var(--pill-h); padding-inline: 12px 14px; font-size: var(--pill-fs); font-weight: 500; }
body .build .mseg button .i { width: 15px; height: 15px; }
@media (pointer: coarse) {
  :is(.dash, .sp, .calm, .build) .btn.btn-sm:not(.btn-icon), .dash .home-main > .connect, body .build :not(.frame-acts) > .m-btn, body .build .chips :is(button, a),
  .dash :is(.tabs button, .lib-tabs button), body .build .mseg button { min-height: 44px; }
  .dash .home-main > .connect, .dash :is(.tabs button, .lib-tabs button) { height: 44px; }
  .dash .home-rail .rail-card { min-height: 44px; }
}

/* ---------------- a faint outline on buttons (the owner, 2026-11-18: "add a slight outline like claude code to almost
   every button") ----------------
   One hairline, drawn as an inset outline so it takes no room and follows each button's own corners, in a tenth of
   the ink. Named button styles only (a rule for every <button> also caught controls that are buttons underneath, such
   as setup's step bars): the app's buttons, icon buttons and pills, the dashboard box's bar, and the builder's box and
   chips. Rows in menus, lists and the sidebar, tabs and segments stay plain. Keyboard focus keeps its own ring. */
body.dash, body.sp, body.calm, .build { --c-line: color-mix(in srgb, var(--text) 11%, transparent); }
:is(.dash, .sp, .calm, .build) :is(.btn, .icon-btn, .m-btn, .dbar-btn, .team-btn, .effort-btn, .env-folder, .use-more, .acct-gear,
  .pick-btn, .ws-resend, .open-build, .voice-btn):not(:focus-visible, :disabled, [hidden], [role^="menuitem"], [role="tab"]),
:is(.dash .home-main > .connect, .dash .home-rail .rail-card, body .build .chips :is(button, a), body .build .ask > .btn-icon):not(:focus-visible, :disabled) {
  outline: 1px solid var(--c-line); outline-offset: -1px;
}

/* ---------------- the sidebar, as a coding agent's (the owner, 2026-11-18: "make anticode's sidebar and icons look
   nearly identical to claude code, from collapsing recents, to projects replaced with Startups") ----------------
   Rows of 14px words in full ink beside 18px icons, a quiet fill on hover and a firmer one on the page you're on;
   Startups carries a small Beta tag; Recents folds away from its heading, whose chevron always shows, and its rows are
   plain names. The same on the dashboard (.side) and in the builder (.wsnav). Contrast: --text on the sidebar
   (--c-side #171717) 15.8:1, --muted 7.2:1. */
body.dash:not(.is-collapsed) .side .snav, body .build .wsnav-links { gap: 2px; }
body.dash:not(.is-collapsed) .side .snav > :is(a, button), body .build .wsnav-links a {
  height: 34px; gap: 12px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 400; color: var(--text); box-shadow: none;
}
body.dash:not(.is-collapsed) .side .snav > :is(a, button) > .ic, body .build .wsnav-links a > .wsnav-ic { width: 18px; height: 18px; flex: none; color: var(--text); }
body.dash:not(.is-collapsed) .side .snav > :is(a, button):hover, body .build .wsnav-links a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
body.dash:not(.is-collapsed) .side .snav > [aria-current="page"], body .build .wsnav-links a[aria-current="page"] { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
body.dash:not(.is-collapsed) .side .snav .hl { display: none; }
:is(body.dash:not(.is-collapsed) .side, body .build .wsnav) .snav-tag { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.5; }
body.dash:not(.is-collapsed) .side .snav .kbd[hidden] { display: none; }
/* Recents: a heading that folds the list, its chevron always there */
body.dash .side .recents-head, body .build .wsnav-h.recents-head {
  display: flex; align-items: center; gap: 4px; width: auto; height: 28px; margin: 14px 0 2px; padding: 0 10px; border-radius: 8px;
  background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer;
}
body.dash .side .recents-head:hover, body .build .wsnav-h.recents-head:hover { color: var(--body); }
:is(body.dash .side .recents-head, body .build .wsnav-h.recents-head) .chev { width: 14px; height: 14px; opacity: 1; transition: transform 200ms var(--ease, ease); }
:is(body.dash .side .recents-head, body .build .wsnav-h.recents-head)[aria-expanded="true"] .chev { transform: none; }
:is(body.dash .side .recents-head, body .build .wsnav-h.recents-head)[aria-expanded="false"] .chev { transform: rotate(-90deg); }
/* the app turns an open list's chevron upward by redrawing it (dashboard.css .chev path): Recents keeps it pointing
   down when open and turns it right when folded, as a coding agent's does */
body.dash .side .recents-head[aria-expanded] > .chev path { d: path("M6 8l4 4 4-4"); }
body .build .wsnav-recents[hidden] { display: none; }
/* its rows: the name alone, in full ink */
body.dash .side .rc-row .dot, body .build .wsnav-recents .wsnav-dot { display: none; }
body.dash .side .rc-row > a, body .build .wsnav-recents a { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--text); }
body.dash .side .rc-row > a:hover, body .build .wsnav-recents a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
/* collapsed to the icon rail: icons alone, centred in their cells, the tag and the labels out of the way */
body.dash.is-collapsed .side .snav-tag { display: none; }
body.dash.is-collapsed .side .snav > :is(a, button) { gap: 0; color: var(--text); box-shadow: none; }
body.dash.is-collapsed .side .snav > :is(a, button) > .ic { width: 20px; height: 20px; color: var(--text); }
body.dash.is-collapsed .side .snav > :is(a, button):hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
body.dash.is-collapsed .side .snav > [aria-current="page"] { background: color-mix(in srgb, var(--text) 9%, transparent); }
body.dash.is-collapsed .side .snav .hl { display: none; }
/* hovered or focused, an icon in the rail says what it is: its own label (hidden for the eye, read by screen readers
   all along) shows in a small tag to its right (the owner, 2026-11-18) */
body.dash.is-collapsed .side :is(.snav > a, .snav > button, .ws-btn, .acct-btn) { position: relative; }
body.dash.is-collapsed .side :is(.snav > a, .snav > button):is(:hover, :focus-visible) > span:first-of-type,
body.dash.is-collapsed .side .ws-btn:is(:hover, :focus-visible) > .ws-name,
body.dash.is-collapsed .side .acct-btn:is(:hover, :focus-visible) > .acct-name {
  left: calc(100% + 10px); top: 50%; z-index: 30; width: auto; height: auto; margin: 0; padding: 6px 10px; overflow: visible; clip-path: none;
  border-radius: 8px; background: var(--c-pop, #232323); color: var(--text); box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
  font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none;
  transform: translateY(-50%); animation: rail-tip 120ms ease-out both;
}
@keyframes rail-tip { from { opacity: 0; transform: translate(-4px, -50%); } }
@media (prefers-reduced-motion: reduce) { body.dash.is-collapsed .side :is(.snav > a, .snav > button, .ws-btn, .acct-btn) > :is(span, .ws-name, .acct-name) { animation: none; } }
@media (prefers-reduced-motion: reduce) { :is(body.dash .side .recents-head, body .build .wsnav-h.recents-head) .chev { transition: none; } }
