/* ============================================================
   PRDone — design system v2
   Archetype: Readwise-Reader-grade annotated reading canvas
   inside Attio-calm workspace chrome. Editorial identity:
   serif display + warm stone neutrals + one petrol-teal accent
   ("deep lagoon") reserved for the annotation layer, selection,
   and primary affordances. Structure comes from hairlines and
   whitespace, not boxes.

   Theming: semantic tokens only. Light is the :root default;
   dark applies via prefers-color-scheme when no data-theme
   attribute is set, and via [data-theme="dark"] when the user
   chose explicitly (persisted to localStorage prdone:theme).
   ============================================================ */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #f6f5f2;          /* app canvas */
  --surface: #ffffff;     /* raised panels, cards, modals */
  --paper: #fbfaf7;       /* the document reading canvas */
  --sunken: #efeee9;      /* wells, code chips, rails-within-panels */
  --hover: rgba(28, 27, 23, 0.05);
  --hover-strong: rgba(28, 27, 23, 0.085);

  /* ink */
  --ink: #1c1b18;
  --ink-2: #504d46;
  --muted: #8a867d;
  --faint: #b5b1a7;

  /* lines */
  --line: #eae8e2;
  --line-2: #dcd8cf;

  /* accent — deep lagoon (petrol teal); the product's highlighter */
  --accent: #0b6d7f;
  --accent-deep: #08525f;
  --accent-soft: #cde8ec;
  --accent-faint: #eef6f7;
  --accent-ring: rgba(11, 109, 127, 0.3);

  /* solid (primary buttons, toasts) */
  --solid: #1c1b18;
  --solid-ink: #ffffff;
  --solid-hover: #000000;

  /* document annotation layer */
  --hl-blend: multiply;                    /* dims paper under light text-on-light */
  --hl-bg: rgba(14, 138, 160, 0.13);
  --hl-bg-on: rgba(14, 138, 160, 0.24);
  --hl-line: rgba(14, 138, 160, 0.45);
  --hl-line-on: rgba(11, 109, 127, 0.8);
  --hl-dot: rgba(14, 138, 160, 0.5);

  /* status vocabulary (fixed semantics) */
  --st-todo: #a19d95;
  --st-wip: #2563eb;
  --st-done: #15803d;
  --st-gap: #dc2626;
  --st-rework: #9a6a06;
  --st-todo-soft: #edebe6;
  --st-wip-soft: #e4ecfd;
  --st-done-soft: #def0e3;
  --st-gap-soft: #fbe3e3;
  --st-rework-soft: #f5ecd3;

  /* markdown internals */
  --md-ink: #2b2925;
  --md-code-bg: #f0ede7;
  --md-pre-bg: #24221f;
  --md-pre-ink: #f2efe8;
  --md-th-bg: #f2f0ea;

  /* type */
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* shape + depth */
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(28, 27, 23, 0.05), 0 8px 24px -12px rgba(28, 27, 23, 0.12);
  --shadow-lg: 0 2px 6px rgba(28, 27, 23, 0.06), 0 32px 64px -24px rgba(28, 27, 23, 0.28);
}

/* Dark tokens. Two selectors on purpose (the spec of this theme system):
   1. OS preference applies when the user hasn't chosen ("system" mode
      leaves the attribute off), 2. explicit choice via data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg: #171614;
    --surface: #201e1b;
    --paper: #1c1a18;
    --sunken: #131211;
    --hover: rgba(236, 235, 230, 0.06);
    --hover-strong: rgba(236, 235, 230, 0.1);

    --ink: #ecebe6;
    --ink-2: #b6b2a9;
    --muted: #8b877e;
    --faint: #5f5c54;

    --line: #2b2926;
    --line-2: #3b3833;

    --accent: #45c4d8;
    --accent-deep: #8adeeb;
    --accent-soft: #123f47;
    --accent-faint: #1a2e31;
    --accent-ring: rgba(69, 196, 216, 0.38);

    --solid: #ecebe6;
    --solid-ink: #171614;
    --solid-hover: #ffffff;

    --hl-blend: screen;                    /* lifts dark paper, keeps light text light */
    --hl-bg: rgba(69, 196, 216, 0.15);
    --hl-bg-on: rgba(69, 196, 216, 0.28);
    --hl-line: rgba(69, 196, 216, 0.5);
    --hl-line-on: rgba(138, 222, 235, 0.9);
    --hl-dot: rgba(69, 196, 216, 0.55);

    --st-todo: #86827a;
    --st-wip: #6aa2f7;
    --st-done: #4cc272;
    --st-gap: #ef6f65;
    --st-rework: #d9a43e;
    --st-todo-soft: #2b2a27;
    --st-wip-soft: #1d2b45;
    --st-done-soft: #16351f;
    --st-gap-soft: #40201d;
    --st-rework-soft: #3a2d10;

    --md-ink: #d8d4cb;
    --md-code-bg: #2b2823;
    --md-pre-bg: #121110;
    --md-pre-ink: #e7e4dc;
    --md-th-bg: #242220;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #171614;
  --surface: #201e1b;
  --paper: #1c1a18;
  --sunken: #131211;
  --hover: rgba(236, 235, 230, 0.06);
  --hover-strong: rgba(236, 235, 230, 0.1);

  --ink: #ecebe6;
  --ink-2: #b6b2a9;
  --muted: #8b877e;
  --faint: #5f5c54;

  --line: #2b2926;
  --line-2: #3b3833;

  --accent: #45c4d8;
  --accent-deep: #8adeeb;
  --accent-soft: #123f47;
  --accent-faint: #1a2e31;
  --accent-ring: rgba(69, 196, 216, 0.38);

  --solid: #ecebe6;
  --solid-ink: #171614;
  --solid-hover: #ffffff;

  --hl-blend: screen;
  --hl-bg: rgba(69, 196, 216, 0.15);
  --hl-bg-on: rgba(69, 196, 216, 0.28);
  --hl-line: rgba(69, 196, 216, 0.5);
  --hl-line-on: rgba(138, 222, 235, 0.9);
  --hl-dot: rgba(69, 196, 216, 0.55);

  --st-todo: #86827a;
  --st-wip: #6aa2f7;
  --st-done: #4cc272;
  --st-gap: #ef6f65;
  --st-rework: #d9a43e;
  --st-todo-soft: #2b2a27;
  --st-wip-soft: #1d2b45;
  --st-done-soft: #16351f;
  --st-gap-soft: #40201d;
  --st-rework-soft: #3a2d10;

  --md-ink: #d8d4cb;
  --md-code-bg: #2b2823;
  --md-pre-bg: #121110;
  --md-pre-ink: #e7e4dc;
  --md-th-bg: #242220;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
#root { height: 100%; }
button { font-family: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* icons render inline mid-cap everywhere */
.ic { flex: none; display: inline-block; vertical-align: -3px; }

/* ---------- kit: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 13px;
  line-height: 20px; white-space: nowrap;
  transition: border-color .12s, background .12s, color .12s, transform .05s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn .ic { color: var(--muted); }
.btn:hover .ic { color: var(--ink-2); }
.btn-primary { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.btn-primary:hover { background: var(--solid-hover); border-color: var(--solid-hover); }
.btn-primary .ic, .btn-primary:hover .ic { color: var(--solid-ink); opacity: .85; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--ink); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; line-height: 18px; }
.btn:disabled, .btn-primary:disabled {
  background: var(--sunken); border-color: var(--line); color: var(--faint);
  cursor: not-allowed; box-shadow: none;
}
.btn:disabled .ic { color: var(--faint); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); padding: 0;
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
kbd {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 4.5px; background: var(--surface);
}

/* mono section label — the "wall label" */
.klabel {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
}

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; border: none; background: none; padding: 0; color: var(--ink); }
.brand-word {
  font-family: var(--font-display); font-weight: 650; font-size: 15.5px; letter-spacing: -0.012em;
}
.brand-mark { flex: none; display: block; }

/* ============================================================
   SHELL: persistent left rail + main
   ============================================================ */
.shell { display: flex; height: 100vh; }
.rail {
  width: 232px; flex: none; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--bg);
  transition: width .16s ease;
}
.shell.is-collapsed .rail { width: 60px; }
.rail-head { display: flex; align-items: center; gap: 9px; padding: 14px 14px 10px; min-height: 52px; }
.rail-head .brand { min-width: 0; flex: 1; }
.rail-head .brand-word { white-space: nowrap; overflow: hidden; }
.rail-collapse { margin-left: auto; width: 24px; height: 24px; color: var(--faint); }
.rail-collapse:hover { color: var(--ink); }
.shell.is-collapsed .rail-head { justify-content: center; padding: 14px 0 10px; }
.shell.is-collapsed .brand-word, .shell.is-collapsed .rail-collapse { display: none; }
.shell.is-collapsed .rail-head .brand { flex: none; cursor: pointer; }

.rail-nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; }
.rail-sec {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 16px 10px 5px;
}
.rail-sec .klabel { font-size: 10px; }
.rail-sec-btn { border: none; background: none; padding: 0; width: 20px; height: 20px; border-radius: 5px; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.rail-sec-btn:hover { background: var(--hover); color: var(--ink); }
.rail-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: none; background: none; text-align: left;
  padding: 6px 10px; border-radius: 7px; color: var(--ink-2);
  font-size: 13px; font-weight: 500; line-height: 20px; min-width: 0;
  transition: background .1s, color .1s;
}
.rail-item:hover { background: var(--hover); color: var(--ink); }
.rail-item.is-active { background: var(--hover-strong); color: var(--ink); font-weight: 550; }
.rail-item.is-active .rail-ic { color: var(--accent); }
.rail-ic { flex: none; display: inline-flex; color: var(--muted); width: 16px; justify-content: center; }
.rail-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-meta { flex: none; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail-item.is-soon { color: var(--faint); cursor: default; }
.rail-item.is-soon:hover { background: none; color: var(--faint); }
.rail-item.is-soon .rail-ic { color: var(--faint); }
.soon-tag {
  flex: none; font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
}
.rail-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rail-dot.is-on { background: var(--st-done); box-shadow: 0 0 0 3px var(--st-done-soft); }
.rail-dot.is-off { background: transparent; border: 1.5px dashed var(--faint); }
.rail-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.shell.is-collapsed .rail-label, .shell.is-collapsed .rail-meta,
.shell.is-collapsed .rail-sec, .shell.is-collapsed .soon-tag,
.shell.is-collapsed .rail-projects { display: none; }
.shell.is-collapsed .rail-item { justify-content: center; padding: 8px 0; }
.shell.is-collapsed .rail-dot { display: none; }

/* rail footer: theme control + account */
.rail-foot { flex: none; border-top: 1px solid var(--line); padding: 10px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.theme-seg {
  display: flex; gap: 2px; padding: 2px; border-radius: 8px;
  background: var(--sunken); border: 1px solid var(--line); align-self: stretch;
}
.theme-seg-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 24px; border: none; border-radius: 6px; background: transparent;
  color: var(--muted); padding: 0; transition: background .12s, color .12s;
}
.theme-seg-btn:hover { color: var(--ink); }
.theme-seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.shell.is-collapsed .theme-seg { flex-direction: column; }
.rail-account {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: none; background: none; text-align: left; padding: 5px 6px;
  border-radius: 7px; min-width: 0;
}
.rail-account:hover { background: var(--hover); }
.rail-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--accent-faint); border: 1px solid var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 11.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rail-account-email { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell.is-collapsed .rail-account { justify-content: center; padding: 5px 0; }
.shell.is-collapsed .rail-account-email { display: none; }
.account-wrap { position: relative; }

/* main area */
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.shell-main.is-flush { overflow: hidden; }

/* menus (shared) */
.menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.mini-menu {
  position: absolute; z-index: 41; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px;
}
.mini-menu.opens-up { bottom: calc(100% + 6px); left: 0; }
.mini-menu.opens-down { top: calc(100% + 6px); right: 0; }
.mini-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: none; background: none; padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--ink-2);
}
.mini-menu-item:hover { background: var(--hover); color: var(--ink); }
.mini-menu-item b { color: var(--ink); font-weight: 550; }
.mini-menu-item .ic { color: var(--muted); }
.mini-menu-sub { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mini-menu-item.is-stacked { display: block; }
.account-email { padding: 8px 11px 9px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }

/* mobile top bar + drawer */
.mobile-bar { display: none; }
.rail-backdrop { display: none; }

/* ============================================================
   PAGES (Overview, Project, Composer, Agent)
   ============================================================ */
.page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 40px 36px 96px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.page-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 650;
  letter-spacing: -0.015em; line-height: 1.2; margin: 0;
}
.page-sub { color: var(--muted); font-size: 13px; margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-top: 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 12px; }
.section-head:first-child { margin-top: 0; }

/* inline rename (project & PRD titles) */
.rename-wrap { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.rename-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rename-wrap .rename-btn { opacity: 0; flex: none; width: 24px; height: 24px; transition: opacity .12s; }
.rename-wrap:hover .rename-btn, .rename-wrap .rename-btn:focus-visible { opacity: 1; }
.rename-input {
  font: inherit; letter-spacing: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 7px;
  padding: 2px 8px; min-width: 0;
}
.rename-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.page-title .rename-input { width: min(560px, 66vw); }
.ws-title .rename-input { width: min(340px, 38vw); }

/* ---------- overview: stat strip (de-boxed) ---------- */
.stat-strip {
  display: flex; gap: 0; margin: 26px 0 6px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-tile { flex: 1; padding: 18px 22px 16px; min-width: 0; }
.stat-tile:first-child { padding-left: 0; }
.stat-tile + .stat-tile { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-display); font-size: 27px; font-weight: 650;
  letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-of { font-size: 15px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-tile.is-attn .stat-num { color: var(--st-rework); }
.stat-tile.is-alert .stat-num { color: var(--st-gap); }

/* ---------- overview: recents ---------- */
.recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.recent-card {
  display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.recent-card:hover { border-color: var(--line-2); }
.recent-card .ic { color: var(--muted); }
.recent-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.recent-title { font-weight: 550; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- overview: project rows (de-boxed pipeline list) ---------- */
.proj-list { border-top: 1px solid var(--line); }
.proj-row {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  border: none; background: none; padding: 15px 8px 15px 2px;
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .1s;
}
.proj-row:hover { background: var(--hover); }
.proj-row-main { flex: 1; min-width: 0; }
.proj-row-name { font-weight: 550; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-row-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proj-row-meta .ic { color: var(--faint); }
.proj-row-flags { flex: none; display: flex; align-items: center; gap: 6px; }
.flag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  border-radius: 99px; padding: 2px 8px; line-height: 16px;
}
.flag-pill.is-gap { color: var(--st-gap); background: var(--st-gap-soft); }
.flag-pill.is-q { color: var(--st-rework); background: var(--st-rework-soft); }
.proj-row-progress { flex: none; width: 190px; display: flex; flex-direction: column; gap: 6px; }
.role-badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: 1px 6px; border-radius: 4px; background: var(--accent-faint); color: var(--accent);
  border: 1px solid var(--accent-soft);
}

/* inline project creation (replaces the modal) */
.inline-create {
  display: flex; align-items: center; gap: 8px; padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}
.inline-create input {
  flex: 1; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--ink); background: var(--surface);
}
.inline-create input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

/* status meter (stacked proportions) */
.statusbar { display: flex; flex-direction: column; gap: 7px; }
.statusbar-track, .progress-track {
  display: flex; height: 4px; border-radius: 99px; overflow: hidden;
  background: var(--st-todo-soft);
}
.statusbar-track .seg, .progress-track .seg { height: 100%; }
.statusbar-label { font-size: 12px; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.statusbar-label .muted { font-weight: 450; }

/* ---------- project page: PRD rows ---------- */
.prd-list { border-top: 1px solid var(--line); }
.prd-row {
  display: flex; align-items: center; gap: 18px; padding: 14px 10px 14px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer; position: relative;
  transition: background .12s;
}
.prd-row:hover { background: var(--hover); }
.prd-row-icon {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  margin-left: 6px;
}
.prd-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prd-row-title { font-weight: 550; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-row-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.prd-row-progress { flex: none; width: 220px; display: flex; flex-direction: column; gap: 6px; }
.prd-row-progress .statusbar-label { font-size: 11.5px; }
.prd-row-state { font-size: 12px; color: var(--muted); }
.prd-row-state.err { color: var(--st-gap); }
.prd-row-side { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--faint); min-width: 96px; } /* fixed slot so progress bars align across rows */
.prd-row .icon-btn.del { opacity: 0; }
.prd-row:hover .icon-btn.del { opacity: 1; }
.empty-card {
  text-align: center; padding: 56px 24px 60px; border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg); color: var(--muted); background: transparent;
}
.project-danger { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.project-danger .btn { color: var(--st-gap); }
.project-danger .btn:hover { background: var(--st-gap-soft); }

/* sources */
.source-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.source-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  border-radius: 99px; padding: 3px 11px 3px 9px; font-size: 12px; background: var(--surface);
  color: var(--ink-2);
}
.source-chip .ic { color: var(--muted); }
.source-chip a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.source-chip a:hover { color: var(--accent); }
.source-x { border: none; background: none; color: var(--faint); cursor: pointer; font-size: 11px; padding: 0 1px; display: inline-flex; }
.source-x:hover { color: var(--ink); }

/* ============================================================
   COMPOSER PAGE (New PRD / Import — was two modals)
   ============================================================ */
.composer { max-width: 1080px; }
.composer-back { margin-bottom: 14px; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 26px; }
.composer-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.composer-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.side-block { display: flex; flex-direction: column; gap: 9px; }
.side-block-sub { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.composer-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.composer textarea.composer-body { min-height: 380px; font-size: 13px; line-height: 1.6; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.field input, .field textarea {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; font-family: var(--font-sans);
  font-size: 13.5px; color: var(--ink); background: var(--surface); width: 100%;
}
.field textarea { min-height: 220px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.pdf-file-input { display: none; }
.btn-attach {
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--ink-2);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; padding: 4px 9px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-attach:hover:not(:disabled) { border-color: var(--faint); color: var(--ink); }
.btn-attach:disabled { opacity: .5; cursor: default; }

.import-row { display: flex; gap: 8px; }
.import-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); background: var(--surface);
}
.import-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.import-row input::placeholder { color: var(--faint); }
.import-dirs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.import-dirs .chip { border: 1px solid var(--line-2); background: var(--surface); }
.import-files { display: flex; flex-direction: column; }
.import-file-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.import-file-row:last-child { border-bottom: none; }
.import-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 12px; }
.import-crumb { font-family: var(--font-mono); font-size: 11px; color: var(--muted); word-break: break-all; }
.link-btn { border: none; background: none; padding: 0; color: var(--accent); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--accent-deep); }

/* ============================================================
   AGENT PAGE (was a modal)
   ============================================================ */
.agent-hero { display: flex; align-items: center; gap: 12px; }
.agent-state-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; margin-top: 28px; }
.agent-can { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.agent-can b { color: var(--ink); font-weight: 550; }
.agent-mint-row { display: flex; gap: 8px; }
.agent-mint-row input {
  flex: 1; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--ink); background: var(--surface);
}
.agent-mint-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.agent-minted { border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 16px; background: var(--accent-faint); }
.agent-minted-title { font-weight: 550; font-size: 13px; margin-bottom: 10px; color: var(--accent-deep); }
.agent-cmd-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.agent-token, .agent-cmd {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
}
.agent-examples { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.agent-examples code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.agent-token-list { display: flex; flex-direction: column; }
.agent-token-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.agent-token-row:last-child { border-bottom: none; }
.agent-token-name { flex: 1; font-weight: 550; }
.analyze-free {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: var(--st-done-soft); color: var(--st-done); border-radius: 4px; padding: 1.5px 5px;
}

/* ============================================================
   WORKSPACE (PRD detail)
   ============================================================ */
.detail { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ws-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 14px; height: 49px; border-bottom: 1px solid var(--line);
  background: var(--bg); flex: none; z-index: 5;
}
.ws-head-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.crumb { color: var(--faint); font-size: 13px; user-select: none; }
.crumb-link {
  border: none; background: none; color: var(--muted); font-size: 13px; font-weight: 500;
  cursor: pointer; padding: 3px 7px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px; max-width: 26vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none;
}
.crumb-link:hover { color: var(--ink); background: var(--hover); }
.crumb-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-title {
  font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 34vw; padding-left: 3px;
}
.ws-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.proto-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 250px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 5px 11px;
  font-size: 12.5px; background: var(--surface); color: var(--ink-2); line-height: 18px;
}
.proto-chip .ic { color: var(--muted); }
.proto-chip .u { color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-chip .u:hover { color: var(--accent); }
.proto-chip.empty { color: var(--muted); border-style: dashed; cursor: pointer; background: transparent; }
.proto-chip.empty:hover { color: var(--ink-2); border-color: var(--faint); }
.questions-chip {
  border-color: transparent; color: var(--st-rework); background: var(--st-rework-soft);
  font-weight: 550;
}
.questions-chip:hover { border-color: var(--st-rework); }
.questions-chip .ic { color: var(--st-rework); }
.reanalyze-wrap { position: relative; }

.workspace { display: flex; flex: 1; min-height: 0; }
.col-resize { flex: none; width: 7px; cursor: col-resize; position: relative; z-index: 4; background: transparent; }
.col-resize::before { content: ''; position: absolute; inset: 0; margin: auto; width: 1px; background: var(--line); transition: background .15s, width .1s; }
.col-resize:hover::before, body.col-resizing .col-resize::before { background: var(--accent); width: 2px; }
body.col-resizing { cursor: col-resize; user-select: none; }

/* ---------- requirements sidebar ---------- */
.sidebar { width: 340px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.side-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.side-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.side-title { font-weight: 600; font-size: 13px; letter-spacing: -0.005em; }
.side-title .n { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.collapse-all { background: none; border: none; color: var(--muted); font-size: 11.5px; font-weight: 500; cursor: pointer; padding: 2px 5px; border-radius: 5px; }
.collapse-all:hover { color: var(--ink); background: var(--hover); }
.progress-track { margin-bottom: 8px; height: 5px; }
.progress-label { font-size: 12px; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chip {
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; line-height: 18px;
  transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { background: var(--hover); }
.chip.is-active { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.chip .n { font-family: var(--font-mono); font-size: 10.5px; opacity: .7; }

.req-list { overflow-y: auto; flex: 1; padding: 6px 8px 24px; }
.req-item {
  display: flex; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  align-items: flex-start; position: relative;
}
.req-item:hover { background: var(--hover); }
.req-item.is-active { background: var(--accent-faint); }
.req-item.is-active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2.5px;
  border-radius: 2px; background: var(--accent);
}
.req-num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--faint); min-width: 20px; text-align: right; padding-top: 2px; font-variant-numeric: tabular-nums; }
.req-item.is-active .req-num { color: var(--accent); }
.req-body { min-width: 0; flex: 1; }
.req-head { display: flex; align-items: baseline; gap: 7px; }
.req-item-title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.req-item.is-active .req-item-title { color: var(--accent-deep); font-weight: 550; }
.req-frac { flex: none; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--muted); }
.req-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; }
.req-clip { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.req-clip .ic { color: var(--faint); }
.req-group { padding-bottom: 2px; }
.req-group-head {
  position: sticky; top: 0; z-index: 1; width: 100%;
  display: flex; align-items: center; gap: 7px; padding: 10px 10px 5px;
  background: var(--bg); border: none; cursor: pointer;
  color: var(--muted);
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .08em;
}
.req-group-head:hover { color: var(--ink); }
.req-group-name { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-group-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--faint); font-weight: 500; }
.req-chevron { display: inline-flex; transition: transform .15s; color: var(--faint); }
.req-chevron.is-collapsed { transform: rotate(-90deg); }
.side-kbd-hint { padding: 8px 16px 10px; display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 11px; border-top: 1px solid var(--line); }

/* ---------- document ---------- */
.doc-scroll { flex: 1; overflow-y: auto; min-width: 0; background: var(--paper); border-right: 1px solid var(--line); }
.doc-inner { position: relative; max-width: 780px; margin: 0 auto; padding: 48px 48px 180px; }

/* annotation layer — overlays above the text; per-theme blend keeps the
   text legible: multiply dims light paper, screen lifts dark paper. */
.doc-highlights { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hl-covered {
  position: absolute; border-radius: 2px; pointer-events: auto; cursor: pointer;
  background: var(--hl-bg); box-shadow: inset 0 -1.5px 0 var(--hl-line);
  mix-blend-mode: var(--hl-blend); transition: background .12s, box-shadow .12s;
}
.hl-covered:hover, .hl-covered.is-on { background: var(--hl-bg-on); box-shadow: inset 0 -2px 0 var(--hl-line-on); }
.hl-cite {
  position: absolute; transform: translate(3px, -6px); pointer-events: auto; cursor: pointer;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; line-height: 1;
  color: var(--accent-deep); background: var(--accent-soft); border: none; border-radius: 4px;
  padding: 2px 4px; opacity: .85; transition: opacity .12s, background .12s, color .12s;
}
.hl-cite:hover, .hl-cite.is-on { opacity: 1; background: var(--accent); color: var(--paper); }
.hl-cite::after { content: ''; position: absolute; inset: -8px; } /* hit area ≥ 24px without growing the chip */
.hl-dotted { position: absolute; pointer-events: auto; cursor: pointer; border-bottom: 1.5px dotted var(--hl-dot); }

/* rendered markdown — the reading canvas */
.markdown { position: relative; z-index: 2; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.75; color: var(--md-ink); }
.markdown > *:first-child { margin-top: 0; }
.markdown h1, .markdown h2, .markdown h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
.markdown h1 { font-size: 28px; font-weight: 650; margin: 40px 0 18px; }
.markdown h2 { font-size: 21px; font-weight: 650; margin: 40px 0 12px; }
.markdown h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.markdown h4, .markdown h5, .markdown h6 {
  font-family: var(--font-mono); font-weight: 600; margin: 24px 0 8px; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.markdown p { margin: 0 0 16px; }
.markdown ul, .markdown ol { margin: 0 0 16px; padding-left: 26px; }
.markdown li { margin: 6px 0; }
.markdown a { color: var(--accent); }
.markdown strong { font-weight: 600; color: var(--ink); }
.markdown blockquote { margin: 0 0 16px; padding: 4px 18px; border-left: 2.5px solid var(--line-2); color: var(--ink-2); font-style: italic; }
.markdown code { font-family: var(--font-mono); font-size: 0.8em; background: var(--md-code-bg); padding: 2px 6px; border-radius: 5px; }
.markdown pre { background: var(--md-pre-bg); color: var(--md-pre-ink); padding: 16px 18px; border-radius: 9px; overflow-x: auto; margin: 0 0 18px; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); }
.markdown pre code { background: none; padding: 0; color: inherit; font-size: 13px; }
.markdown table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-family: var(--font-sans); font-size: 13.5px; }
.markdown th, .markdown td { border: 1px solid var(--line-2); padding: 8px 11px; text-align: left; }
.markdown th { background: var(--md-th-bg); font-weight: 600; font-size: 12.5px; }
.markdown hr { border: none; border-top: 1px solid var(--line-2); margin: 32px 0; }
.markdown img { max-width: 100%; border-radius: 8px; }

/* ---------- right pane: shared panel chrome ---------- */
.inspector, .panel {
  width: 380px; flex: none; border-left: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; min-height: 0;
}
.panel-head { display: flex; align-items: center; gap: 8px; padding: 13px 14px 12px 18px; border-bottom: 1px solid var(--line); flex: none; }
.panel-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.panel-title .ic { color: var(--st-rework); }
.panel-scroll { overflow-y: auto; padding: 16px 18px 32px; flex: 1; }
.panel-foot { flex: none; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; align-items: center; background: var(--paper); }
.panel-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }

/* inspector */
.insp-head { display: flex; align-items: center; gap: 8px; padding: 13px 14px 12px 18px; border-bottom: 1px solid var(--line); flex: none; }
.insp-num {
  font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.insp-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex: 1; font-weight: 600; }
.insp-scroll { overflow-y: auto; padding: 18px 18px 32px; }
.insp-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em; margin: 0 0 14px; }
.insp-detail { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.insp-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 9px;
}
.status-control { position: relative; display: inline-block; margin: 0 0 20px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 6px 11px;
  font-size: 12.5px; font-weight: 550; background: var(--surface);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-pill .status-frac { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; opacity: .75; }
.status-pill .caret { display: inline-flex; opacity: .55; }
.status-menu {
  position: absolute; top: calc(100% + 5px); left: 0; right: auto; min-width: 210px; z-index: 41;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px;
}
.status-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; border: none; background: none;
  padding: 7px 9px; border-radius: 6px; font-size: 13px; font-weight: 450; color: var(--ink-2); text-align: left;
}
.status-menu-item:hover { background: var(--hover); }
.status-menu-item.is-current { font-weight: 600; color: var(--ink); }
.status-menu-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-menu-label { flex: 1; }
.status-menu-item .check { color: var(--accent); display: inline-flex; }

/* checklist */
.checklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checklist-frac { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--muted); text-transform: none; }
.checklist { display: flex; flex-direction: column; gap: 1px; margin: 0 0 20px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 7px; cursor: pointer; margin: 0 -8px; }
.check-item:hover { background: var(--hover); }
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.check-item:hover .check-box { border-color: var(--faint); }
.check-box::after { content: '✓'; color: var(--surface); font-size: 10.5px; font-weight: 800; opacity: 0; transform: scale(.5); transition: opacity .12s, transform .12s; }
.check-item.is-done .check-box { background: var(--st-done); border-color: var(--st-done); }
.check-item.is-done .check-box::after { opacity: 1; transform: scale(1); }
.check-item input:focus-visible + .check-box { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.check-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.check-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.check-item.is-done .check-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check-hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.insp-actions { display: flex; gap: 8px; align-items: center; }
.anchor-quote { font-family: var(--font-serif); font-style: italic; color: var(--ink-2); font-size: 13px; line-height: 1.6; border-left: 2.5px solid var(--accent-soft); padding: 2px 0 2px 12px; margin-top: 8px; }
.insp-note-muted { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* questions panel (was a modal) */
.clar-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.clar-item:first-child { padding-top: 4px; }
.clar-item:last-child { border-bottom: none; }
.clar-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.clar-q { font-size: 13.5px; font-weight: 550; color: var(--ink); line-height: 1.45; }
.clar-why { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.clar-answer { width: 100%; min-height: 60px; resize: vertical; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); }
.clar-answer:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.clar-answer::placeholder { color: var(--faint); }
.clar-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* audit review panel (was a modal) */
.audit-sub { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.audit-bulk { display: flex; gap: 6px; margin: 12px 0 10px; }
.audit-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .12s, background .12s; margin-bottom: 8px; }
.audit-item:hover { border-color: var(--line-2); }
.audit-item.is-on { border-color: var(--accent-ring); background: var(--accent-faint); }
.audit-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.audit-item .check-box { margin-top: 1px; }
.audit-item.is-on .check-box { background: var(--st-done); border-color: var(--st-done); }
.audit-item.is-on .check-box::after { opacity: 1; transform: scale(1); }
.audit-item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.audit-item-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.audit-cat { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); background: var(--accent-faint); border: 1px solid var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.audit-item-title { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.audit-sub-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.audit-detail { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.audit-anchor { font-family: var(--font-serif); font-style: italic; font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 9px; }
.audit-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--solid); color: var(--solid-ink); padding: 10px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 60;
}

/* ---------- centered states ---------- */
.state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px; }
.state-title { font-family: var(--font-display); font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.state-sub { color: var(--muted); max-width: 46ch; font-size: 13.5px; line-height: 1.6; }
.spinner { width: 26px; height: 26px; border: 2.5px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--st-gap); font-size: 13px; }
.loading { padding: 64px; text-align: center; color: var(--muted); font-size: 13px; }

/* analyze paths (pending PRD) */
.analyze-paths { display: grid; grid-template-columns: repeat(2, minmax(260px, 330px)); gap: 12px; margin-top: 10px; }
.analyze-path { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; text-align: left; align-items: flex-start; }
.analyze-path.is-primary { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-faint); }
.analyze-path-title { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.analyze-path-title .ic { color: var(--accent); }
.analyze-path-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.analyze-prompt { font-family: var(--font-mono); font-size: 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; }

/* ---------- modals (only right-sized ones remain: share, prototype) ----------
   NOTE: no backdrop-filter on fixed overlays (macOS Chromium black-composite bug). */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(12, 11, 10, 0.45);
  display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px; z-index: 50;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; display: flex; flex-direction: column; max-height: 82vh; overflow: hidden;
  border: 1px solid var(--line);
}
.modal-narrow { max-width: 440px; }
.modal-head { padding: 16px 20px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; }
.modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; font-size: 13.5px; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; align-items: center; background: var(--paper); }

/* share dialog */
.invite-row { display: flex; gap: 8px; margin: 4px 0; }
.invite-row input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; font-family: var(--font-sans); font-size: 13.5px; color: var(--ink); background: var(--surface); }
.invite-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.invite-row select { border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 10px; font-size: 13px; font-family: inherit; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.member-row:last-child { border-bottom: none; }
.member-email { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.member-role { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* ---------- evidence thread ---------- */
.evidence-section { margin-top: 24px; }
.evidence-head { display: flex; align-items: center; gap: 8px; }
.evidence-frac { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; letter-spacing: 0; line-height: 16px; }
.evidence-loading { font-size: 12px; color: var(--muted); padding: 2px 0 10px; }
.evidence-empty { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 2px 0 12px; }

.evidence-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.evidence-item { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ev-thumb { width: 56px; height: 56px; flex: none; border-radius: 7px; object-fit: cover; border: 1px solid var(--line-2); background: var(--surface); cursor: zoom-in; transition: transform .1s, box-shadow .12s; }
.ev-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.ev-thumb-note { display: flex; align-items: center; justify-content: center; cursor: default; color: var(--faint); }
.ev-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; padding-right: 18px; }
.ev-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ev-note.muted { font-style: italic; }
.ev-meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.ev-by { display: inline-flex; align-items: center; gap: 4px; }
.ev-by.is-agent { color: var(--accent-deep); font-weight: 600; }
.ev-enlarge { border: none; background: none; color: var(--accent); font-weight: 600; font-size: 10.5px; padding: 0; margin-left: 2px; cursor: pointer; font-family: var(--font-mono); }
.ev-enlarge:hover { text-decoration: underline; }
.ev-del { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; opacity: 0; }
.evidence-item:hover .ev-del { opacity: .7; }
.evidence-item .ev-del:hover { opacity: 1; }

.evidence-composer { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 10px 8px; background: var(--surface); transition: border-color .12s, box-shadow .12s, background .12s; }
.evidence-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.evidence-composer.is-drag { border-color: var(--accent); background: var(--accent-faint); }
.ev-preview-wrap { position: relative; align-self: flex-start; }
.ev-preview { display: block; max-height: 120px; max-width: 100%; border-radius: 7px; border: 1px solid var(--line-2); }
.ev-preview-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--solid); color: var(--solid-ink); font-size: 11px; line-height: 1; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; }
.ev-cap { width: 100%; min-height: 44px; resize: none; border: none; background: transparent; padding: 2px 4px 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--ink); }
.ev-cap:focus { outline: none; }
.ev-cap::placeholder { color: var(--faint); }
.ev-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-file-input { display: none; }
.ev-tools { display: flex; align-items: center; gap: 2px; }
.ev-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; border: none; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.ev-icon-btn:hover { background: var(--hover); color: var(--ink); }
.ev-icon-btn svg { width: 16px; height: 16px; }
.ev-send { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: none; background: var(--solid); color: var(--solid-ink); cursor: pointer; transition: background .12s, transform .05s; }
.ev-send:hover:not(:disabled) { background: var(--solid-hover); }
.ev-send:active:not(:disabled) { transform: translateY(1px); }
.ev-send:disabled { background: var(--line-2); color: var(--muted); cursor: default; }
.ev-send svg { width: 14px; height: 14px; }
.ev-send-spin { width: 13px; height: 13px; border: 2px solid rgba(128,128,128,.45); border-top-color: var(--solid-ink); border-radius: 50%; animation: spin .7s linear infinite; }
.evidence-err { margin-top: 8px; font-size: 12px; }

/* lightbox — no backdrop-filter (fixed overlay) */
.lightbox-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(14, 13, 12, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 5vh 5vw; }
.lightbox-img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); background: #fff; cursor: default; }
.lightbox-foot { max-width: 760px; text-align: center; display: flex; flex-direction: column; gap: 7px; }
.lightbox-cap { color: #f6f5f2; font-size: 14px; line-height: 1.5; }
.lightbox-meta { display: flex; align-items: center; justify-content: center; gap: 7px; color: rgba(246,245,242,.6); font-family: var(--font-mono); font-size: 11px; }
.lightbox-open { color: rgba(246,245,242,.85); text-decoration: underline; }
.lightbox-close { position: fixed; top: 18px; right: 20px; width: 38px; height: 38px; border-radius: 10px; border: none; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,.24); }

/* ============================================================
   LOGIN / LANDING
   ============================================================ */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.login::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
}
.login-theme { position: fixed; top: 16px; right: 16px; z-index: 5; }
.login-theme .theme-seg { width: 108px; background: var(--surface); }
.login-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 520px) 400px;
  gap: 72px; align-items: center; max-width: 1040px; width: 100%;
}
.login-pitch { display: flex; flex-direction: column; gap: 22px; }
.login-pitch .brand-word { font-size: 17px; }
.login-title {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 650;
  line-height: 1.12; letter-spacing: -0.022em; margin: 0;
}
.login-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 52ch; margin: 0; }

/* the product in one paragraph: a live-looking annotated PRD passage */
.login-demo {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px 18px; box-shadow: var(--shadow); position: relative;
}
.login-demo-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.demo-para { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.8; color: var(--md-ink); margin: 0; }
.demo-hl {
  background: var(--hl-bg); box-shadow: inset 0 -1.5px 0 var(--hl-line);
  border-radius: 2px; padding: 1px 2px; mix-blend-mode: var(--hl-blend);
}
.demo-cite {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; line-height: 1;
  color: var(--accent-deep); background: var(--accent-soft); border-radius: 4px;
  padding: 2px 4px; vertical-align: super; margin-left: 2px;
}
.demo-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 550;
  border-radius: 99px; padding: 2.5px 10px;
}
.demo-status-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.demo-status-note { font-size: 11.5px; color: var(--muted); }

.login-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 36px 36px 28px;
  width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.login-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.login-card-sub { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: -6px; }
.login-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.google-btn { width: 100%; margin-top: 6px; padding: 9px 20px; font-size: 13.5px; font-weight: 550; justify-content: center; }
.google-btn svg { width: 16px; height: 16px; flex: none; }
.login-points { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; width: 100%; }
.login-points li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.login-points b { color: var(--ink); font-weight: 550; }
.login-point-ic { flex: none; color: var(--accent); margin-top: 1px; }
.login-foot { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* agent chip (workspace/pending affordances) */
.agent-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px dashed var(--accent-ring); border-radius: 99px; padding: 4px 12px;
  background: var(--surface); color: var(--accent-deep); font-size: 12.5px; font-weight: 550;
  transition: background .12s, border-color .12s; line-height: 20px;
}
.agent-chip:hover { background: var(--accent-faint); border-color: var(--accent); }
.agent-chip.is-connected { border-style: solid; border-color: var(--line-2); color: var(--ink-2); }
.agent-chip.is-connected:hover { background: var(--hover); border-color: var(--faint); }
.agent-chip.is-connected .agent-live { width: 7px; height: 7px; border-radius: 50%; background: var(--st-done); box-shadow: 0 0 0 3px var(--st-done-soft); }

/* ---------- onboarding ---------- */
.onboard { max-width: 760px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 18px; }
.onboard-title { font-family: var(--font-display); font-size: 34px; font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.onboard-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 58ch; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.onboard-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 9px;
}
.onboard-num {
  width: 24px; height: 24px; border-radius: 7px; background: var(--accent-faint); color: var(--accent);
  border: 1px solid var(--accent-soft);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.onboard-step-title { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.onboard-step-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.onboard-ctas { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.onboard-foot { color: var(--muted); font-size: 12px; }
.onboard-step-btn { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.onboard-step-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-faint); }

/* empty states */
.empty-title { font-family: var(--font-display); font-size: 17px; font-weight: 650; color: var(--ink); }
.empty-sub { max-width: 46ch; margin: 8px auto 0; line-height: 1.6; font-size: 13px; }
.empty-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.empty-agent { margin-top: 24px; font-size: 12px; line-height: 1.8; }
.empty-agent code { font-family: var(--font-mono); font-size: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .inspector, .panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: var(--shadow-lg); max-width: 92vw; }
  .sidebar { width: 280px; }
  .login-grid { grid-template-columns: 1fr; gap: 36px; max-width: 520px; }
  .login-demo { display: none; }
  .composer-grid { grid-template-columns: 1fr; gap: 28px; }
  .composer-side { position: static; }
  .agent-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  /* rail becomes a drawer behind a top bar */
  .shell { flex-direction: column; height: auto; min-height: 100vh; }
  .shell.is-workspace { height: 100vh; }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 45; width: 260px !important;
    transform: translateX(-102%); transition: transform .18s ease; box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--line-2);
  }
  .shell.drawer-open .rail { transform: translateX(0); }
  .rail-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(12,11,10,.4); }
  .shell.is-collapsed .rail { width: 260px !important; }
  .shell.is-collapsed .rail-label, .shell.is-collapsed .rail-meta, .shell.is-collapsed .rail-sec,
  .shell.is-collapsed .soon-tag, .shell.is-collapsed .rail-projects, .shell.is-collapsed .rail-account-email { display: flex; }
  .shell.is-collapsed .rail-sec { display: flex; }
  .shell.is-collapsed .rail-item { justify-content: flex-start; padding: 6px 10px; }
  .shell.is-collapsed .rail-account { justify-content: flex-start; padding: 5px 6px; }
  .shell.is-collapsed .theme-seg { flex-direction: row; }
  .mobile-bar {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px;
    border-bottom: 1px solid var(--line); background: var(--bg); flex: none;
    position: sticky; top: 0; z-index: 20;
  }

  /* touch targets ≥ 44px (WCAG 2.5.5) */
  .mobile-bar .icon-btn { width: 44px; height: 44px; }
  .rail-item { min-height: 44px; }
  .rail-sec-btn { width: 36px; height: 36px; }
  .rail-account { min-height: 44px; }
  .theme-seg-btn { min-height: 38px; }
  .rail-collapse { width: 40px; height: 40px; }
  .hl-cite::after { inset: -12px; }
  .shell-main { overflow: visible; }
  .shell-main.is-flush { overflow: hidden; flex: 1; min-height: 0; }

  .page { padding: 24px 18px 72px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-actions { flex-wrap: wrap; }
  .onboard-steps { grid-template-columns: 1fr; }
  .stat-strip { flex-direction: column; }
  .stat-tile + .stat-tile { border-left: none; border-top: 1px solid var(--line); }
  .stat-tile { padding: 12px 0; }
  .proj-row { flex-wrap: wrap; gap: 10px; }
  .proj-row-progress { width: 100%; order: 3; }
  .prd-row { flex-wrap: wrap; gap: 10px; }
  .prd-row-progress { width: 100%; order: 3; padding-left: 46px; }
  .analyze-paths { grid-template-columns: 1fr; }

  /* workspace stacks: document on top, requirements list below;
     the inspector/panels already overlay (see 980px rule) */
  .workspace { flex-direction: column; }
  .doc-scroll { flex: none; height: 52vh; border-right: none; border-bottom: 1px solid var(--line); }
  .sidebar { width: auto !important; flex: 1; }
  .col-resize { display: none; }
  .doc-inner { padding: 28px 20px 80px; }
  .ws-head { padding: 0 10px; height: 44px; }
  .ws-title { max-width: 34vw; }
  .crumb-link { max-width: 24vw; }
  .proto-chip { display: none; }
  .side-kbd-hint { display: none; }
  .login { padding: 24px 16px; }
  .login-card { padding: 28px 22px 24px; }
  .composer-foot { flex-wrap: wrap; }
}

@media (hover: none) {
  .rename-wrap .rename-btn, .prd-row .icon-btn.del, .ev-del { opacity: 1; }
}