
/*
  Owl Role design system — Plane-grade dark, crisp and low-chrome.
  Neutral base is a near-black cool grey (H 286). The product accent is
  owl-amber (H 77) — the brand mark's own gold, promoted to the primary accent
  so the UI reads warm and distinctive rather than default-SaaS-blue. Warmth is
  used with restraint: focus halos, selection, active nav, and primary actions.
  Depth comes from value + hairline borders + soft shadow, not blur.
*/
:root {
  --bg-0: oklch(0.165 0.006 286);
  --bg-1: oklch(0.202 0.008 286);
  --bg-2: oklch(0.224 0.008 286);
  --bg-3: oklch(0.250 0.011 286);
  --border-subtle: oklch(0.262 0.008 286);
  --border: oklch(0.304 0.012 286);

  --text-hi: oklch(0.929 0.004 286);
  --text-mid: oklch(0.712 0.014 286);
  --text-lo: oklch(0.538 0.015 286);

  /* Product accent is indigo-violet (H 288) — Linear's register: lively and
     premium, clearly not the default SaaS blue nor the rejected gold. Drives
     primary actions, focus, active nav, selection. The semantic status colours
     below are kept VIVID so the board reads in colour, never greyscale. */
  --accent: oklch(0.62 0.2 288);
  --accent-hover: oklch(0.67 0.19 288);
  --accent-press: oklch(0.56 0.2 287);
  --accent-fg: oklch(0.99 0.014 288);
  --accent-soft: oklch(0.62 0.2 288 / 0.18);
  --accent-glow: oklch(0.62 0.2 288 / 0.35);

  --brand-gold: oklch(0.81 0.15 82);
  --brand-gold-soft: oklch(0.81 0.15 82 / 0.18);

  --success: oklch(0.72 0.19 152);
  --warning: oklch(0.76 0.17 62);
  --danger: oklch(0.64 0.22 27);
  --info: oklch(0.66 0.19 256);

  --shadow-pop: 0 10px 30px -10px oklch(0 0 0 / 0.6), 0 2px 6px oklch(0 0 0 / 0.4);

  --dur-fast: 120ms;
  --dur: 170ms;
  --dur-slow: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Inter Variable", system-ui, sans-serif;
  --display: "Space Grotesk Variable", "Inter Variable", system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", ui-monospace, monospace;

  --edge-hi: inset 0 1px 0 oklch(1 0 0 / 0.035);
  --elev-1: 0 1px 2px oklch(0 0 0 / 0.45);
  --elev-2: 0 10px 34px -14px oklch(0 0 0 / 0.72), 0 2px 6px -2px oklch(0 0 0 / 0.5);

  /* interaction: translucent hover overlays (work on any surface) + soft focus halo */
  --hover: oklch(1 0 0 / 0.045);
  --hover-strong: oklch(1 0 0 / 0.08);
  --focus-glow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent-glow);
}

:root[data-theme="light"] {
  --bg-0: oklch(0.99 0.003 286);
  --bg-1: oklch(0.975 0.004 286);
  --bg-2: oklch(0.955 0.006 286);
  --bg-3: oklch(0.93 0.007 286);
  --border-subtle: oklch(0.91 0.006 286);
  --border: oklch(0.86 0.008 286);

  --text-hi: oklch(0.24 0.015 286);
  --text-mid: oklch(0.44 0.013 286);
  --text-lo: oklch(0.58 0.012 286);

  /* light: indigo-violet, darkened for contrast on white; light text on it. */
  --accent: oklch(0.52 0.2 288);
  --accent-hover: oklch(0.46 0.2 288);
  --accent-press: oklch(0.42 0.19 287);
  --accent-fg: oklch(0.99 0.014 288);
  --accent-soft: oklch(0.52 0.2 288 / 0.14);
  --accent-glow: oklch(0.52 0.2 288 / 0.26);

  --brand-gold: oklch(0.64 0.14 80);
  --brand-gold-soft: oklch(0.64 0.14 80 / 0.16);

  --success: oklch(0.55 0.17 150);
  --warning: oklch(0.58 0.17 55);
  --danger: oklch(0.55 0.2 25);
  --info: oklch(0.55 0.13 245);

  --shadow-pop: 0 12px 32px -12px oklch(0.5 0.02 286 / 0.2), 0 2px 8px oklch(0.5 0.02 286 / 0.12);

  --edge-hi: inset 0 1px 0 oklch(1 0 0 / 0.9);
  --elev-1: 0 1px 2px oklch(0.5 0.02 286 / 0.12);
  --elev-2: 0 10px 30px -14px oklch(0.5 0.02 286 / 0.2), 0 2px 6px -2px oklch(0.5 0.02 286 / 0.12);

  --hover: oklch(0 0 0 / 0.045);
  --hover-strong: oklch(0 0 0 / 0.075);
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-hi);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Text fields + rich editors carry their own single-border focus ring; suppress
   the offset outline so it never stacks into a separated double border. */
input:focus-visible, textarea:focus-visible, select:focus-visible, [contenteditable]:focus-visible, .ProseMirror:focus-visible { outline: none; }

/* Checkboxes: real styled controls with a hover cue + neutral checked state
   (native ones had no hover affordance and read blue on some platforms). */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; margin: 0; border-radius: 4px; border: 1.5px solid var(--border); background: var(--bg-1); display: inline-grid; place-content: center; cursor: pointer; flex: none; transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
input[type="checkbox"]:hover { border-color: var(--text-lo); background: var(--bg-2); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ""; width: 4px; height: 8px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 2px; }

/* Reusable hover affordance for rows/actions on varied surfaces. */
.hoverable { border-radius: 6px; transition: background var(--dur-fast), color var(--dur-fast); }
.hoverable:hover { background: var(--hover); }
.font-display { font-family: var(--display); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
kbd { font-family: var(--mono); font-size: 10px; color: var(--text-mid); background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 1px 5px; line-height: 1.6; }

/* shell: icon rail | sidebar | main */
.app { display: grid; grid-template-columns: 56px 244px 1fr; height: 100vh; overflow: hidden; background: var(--bg-0); }

/* app rail (Plane-style workspace apps) */
.rail { background: var(--bg-1); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 0 14px; min-height: 0; }
.rail-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; transition: background var(--dur-fast); }
.rail-mark:hover { background: var(--bg-2); }
.rail-mark .owl { width: 26px; height: 26px; }
.rail-apps { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 50px; padding: 7px 0 5px; border-radius: 10px; color: var(--text-lo); text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.rail-btn:hover { background: var(--bg-2); color: var(--text-mid); }
.rail-btn .ricon { width: 32px; height: 22px; display: grid; place-items: center; border-radius: 7px; transition: background var(--dur-fast); }
.rail-btn svg { width: 19px; height: 19px; }
.rail-btn .rl { font-size: 9.5px; font-weight: 500; letter-spacing: 0.005em; }
.rail-btn.active { color: var(--accent); }
.rail-btn.active .ricon { background: var(--accent-soft); }

.sidebar { background: var(--bg-1); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 9px; margin: 8px 8px 2px; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: inherit; transition: background var(--dur-fast); }
.brand:hover { background: var(--bg-2); }
.ws-badge { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--border-subtle); font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--text-hi); }
.brand .wordmark { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--text-hi); }
.brand .chev { margin-left: auto; color: var(--text-lo); }
.owl { width: 24px; height: 24px; flex: none; }
.search-btn { margin: 4px 10px 8px; display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); padding: 6px 9px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--text-lo); font-size: 12.5px; transition: border-color var(--dur), color var(--dur); }
.search-btn:hover { border-color: var(--border); color: var(--text-mid); }
.search-btn .k { margin-left: auto; }
.nav { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 8px 12px; }
.nav-group { margin-top: 12px; }
.nav-group > .label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lo); padding: 4px 8px; }
.nav-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border-radius: 6px; color: var(--text-mid); font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-item:hover { background: var(--bg-2); color: var(--text-hi); }
.nav-item.active { background: var(--bg-3); color: var(--text-hi); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; color: var(--text-lo); flex: none; transition: color var(--dur-fast); }
.nav-item:hover svg { color: var(--text-mid); }
.nav-item.active svg { color: var(--accent); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--text-lo); font-variant-numeric: tabular-nums; }
.nav-item .dot-badge { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* project tree (Plane sidebar) */
.nav-proj { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; color: var(--text-mid); font-size: 13px; font-weight: 500; text-align: left; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-proj:hover { background: var(--bg-2); color: var(--text-hi); }
.nav-proj .twist { color: var(--text-lo); flex: none; transition: transform var(--dur-fast); }
.nav-proj.open .twist { transform: rotate(90deg); }
.nav-proj .pj { width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 9.5px; font-weight: 700; color: var(--text-hi); background: var(--bg-3); border: 1px solid var(--border-subtle); }
.nav-proj .pj-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Standalone initial/icon badge for list rows (projects, teamspaces) — mirrors
   .nav-proj .pj so a bare letter or emoji renders as a centered rounded chip. */
.pj-badge { width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 9.5px; font-weight: 700; color: var(--text-hi); background: var(--bg-3); border: 1px solid var(--border-subtle); }
/* Teamspace icon chip: a lucide glyph, uploaded image, or legacy emoji — sized by the
   TeamIcon component's inline width/height. Never renders an initial letter. */
.team-ico { flex: none; display: grid; place-items: center; border-radius: 5px; overflow: hidden; color: var(--text-hi); background: var(--bg-3); border: 1px solid var(--border-subtle); font-family: var(--display); font-weight: 700; line-height: 1; }
.team-ico svg { color: var(--text-hi); }
.team-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-sub { position: relative; margin: 1px 0 4px 17px; padding-left: 10px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--border-subtle); }
.nav-subitem { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--text-mid); font-size: 12.5px; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-subitem:hover { background: var(--bg-2); color: var(--text-hi); }
.nav-subitem.active { background: var(--bg-3); color: var(--text-hi); }
.nav-subitem svg { width: 14px; height: 14px; color: var(--text-lo); flex: none; transition: color var(--dur-fast); }
.nav-subitem.active svg { color: var(--accent); }
/* team sub-tree: a "Projects" sub-heading + deeper-indented project rows, so the
   team's projects read as their own group rather than siblings of the pages. */
.nav-sublabel { padding: 8px 8px 2px 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-lo); }
.nav-subitem.nav-nested { padding-left: 20px; }
.nav-see-all { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-top: 2px; border-radius: 6px; color: var(--text-lo); font-size: 12px; font-weight: 500; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-see-all:hover { background: var(--bg-2); color: var(--accent); }

.side-user { border-top: 1px solid var(--border-subtle); padding: 9px 12px; display: flex; align-items: center; gap: 9px; }

/* topbar */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: transparent; }
.topbar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-0); }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-mid); }
.crumb .here { color: var(--text-hi); font-weight: 500; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--text-mid); transition: background var(--dur-fast), color var(--dur-fast); }
.icon-btn:hover { background: var(--bg-2); color: var(--text-hi); }
.icon-btn svg { width: 16px; height: 16px; }

/* overflow-x:hidden is the shell-level backstop: no page can scroll sideways. Wide widgets
   (tables, code) must carry their own overflow-x:auto so they scroll internally, not clip. */
.content { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; }
/* Free-text blocks (update/comment bodies, descriptions) must break long words + URLs so they
   wrap inside their column instead of forcing it wider than the page. */
.ub, .upd .ub, .desc, .rt, .es { overflow-wrap: anywhere; }
/* Rendered code blocks scroll internally under the shell clip instead of being cut off. */
.content pre, .ProseMirror pre { overflow-x: auto; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 28px 60px; }

/* person */
.person { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.av { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: oklch(0.99 0.01 270); }
.av.lg { width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
.person .nm { font-size: 12.5px; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .you { font-size: 10px; color: var(--text-lo); }

/* status + priority */
.sdot { display: inline-block; vertical-align: middle; width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px currentColor; background: transparent; }
/* issue-row extras: parent breadcrumb (inside the title) + linked-PR count chip */
.crumb { color: var(--text-lo); font-weight: 400; }
.prc { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 11px; color: var(--text-lo); font-variant-numeric: tabular-nums; }
.prc svg { width: 11px; height: 11px; color: var(--text-lo); }
.ccrumb { font-size: 11.5px; color: var(--text-lo); margin-top: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdot.filled { background: currentColor; }
.s-backlog { color: var(--text-lo); } .s-todo { color: var(--info); } .s-prog { color: var(--brand-gold); } .s-review { color: var(--warning); } .s-done { color: var(--success); } .s-canceled { color: var(--text-lo); }
.pri { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.pri i { width: 3px; border-radius: 1px; background: var(--text-lo); display: block; }
.pri i:nth-child(1){ height: 4px; } .pri i:nth-child(2){ height: 7px; } .pri i:nth-child(3){ height: 10px; }
.pri.p0 i { background: var(--border); }
.pri.p1 i:nth-child(2), .pri.p1 i:nth-child(3) { background: var(--border); }
.pri.p2 i:nth-child(3) { background: var(--border); }
.pri.urgent i { background: var(--danger); }

/* buttons + labels */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-hi); transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
.btn:hover { background: var(--bg-3); border-color: var(--border); }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-glow); }
.btn svg { width: 14px; height: 14px; }
.btn.primary, .btn-primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; font-weight: 600; }
.btn.primary:hover, .btn-primary:hover { background: var(--accent-hover); }
.btn.primary:active, .btn-primary:active { background: var(--accent-press); }
.btn.primary:focus-visible, .btn-primary:focus-visible { outline: none; box-shadow: var(--focus-glow); }
.btn.danger { background: var(--danger); color: oklch(0.99 0.01 25); border-color: transparent; font-weight: 600; }
.btn.danger:hover { filter: brightness(1.06); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-mid); }
.btn.ghost:hover { background: var(--hover); color: var(--text-hi); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
/* Disabled controls must READ as unavailable, never as an active button that no-ops. */
button:disabled, .btn:disabled, .btn[disabled], [aria-disabled="true"] { cursor: not-allowed; }
.btn:disabled, .btn[disabled] { opacity: 0.5; }
.btn:disabled:hover, .btn[disabled]:hover { background: var(--bg-2); transform: none; }
.btn.primary:disabled:hover, .btn.primary[disabled]:hover { background: var(--accent); }
.btn.danger:disabled:hover, .btn.danger[disabled]:hover { filter: none; }
.lbl { --lc: var(--text-lo); display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: color-mix(in oklab, var(--lc) 13%, var(--bg-2)); border: 1px solid color-mix(in oklab, var(--lc) 26%, var(--border-subtle)); color: color-mix(in oklab, var(--lc) 52%, var(--text-mid)); }
.lbl .ldot { width: 6px; height: 6px; border-radius: 50%; background: var(--lc); }

/* dashboard */
.hi { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.sub { color: var(--text-mid); font-size: 13px; margin-top: 3px; }
.week { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat .sv { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text-hi); }
.stat .sl { font-size: 10.5px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .bar { width: 116px; height: 4px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.sec-head h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-lo); }
.sec-head .n { font-size: 11px; color: var(--text-lo); background: var(--bg-2); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.sec-head .more { margin-left: auto; }
.panel { border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; background: var(--bg-1); }
.irow { display: flex; align-items: center; gap: 11px; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); transition: background var(--dur-fast); cursor: pointer; text-decoration: none; color: inherit; }
.irow:last-child { border-bottom: none; }
.irow:hover { background: var(--bg-2); }
.irow.selected { background: var(--accent-soft); }
.irow .key { font-family: var(--mono); font-size: 11.5px; color: var(--text-lo); width: 60px; flex: none; }
.irow .title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow .meta { display: flex; align-items: center; gap: 12px; flex: none; }
.irow .proj { font-size: 11.5px; color: var(--text-lo); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow .when { font-size: 11.5px; color: var(--text-lo); width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.review-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); }
.review-row:last-child { border-bottom: none; }
.review-row .rc { flex: 1; min-width: 0; }
.review-row .rt { font-size: 13px; color: var(--text-hi); }
.review-row .rm { font-size: 11.5px; color: var(--text-lo); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.review-row .acts { display: flex; gap: 6px; }
.upd { padding: 13px 14px; border-bottom: 1px solid var(--border-subtle); }
.upd:last-child { border-bottom: none; }
.upd .uh { display: flex; align-items: center; gap: 8px; }
.upd .ut { color: var(--text-lo); font-size: 11.5px; margin-left: auto; }
.upd .ub { color: var(--text-mid); font-size: 12.5px; margin: 7px 0 8px; line-height: 1.55; }
.upd .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 11.5px; color: var(--text-mid); }
.chip .gh { color: var(--text-lo); }
.chip .st { width: 7px; height: 7px; border-radius: 50%; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 14px; text-align: center; color: var(--text-lo); }
.empty svg { width: 26px; height: 26px; color: var(--text-lo); opacity: 0.7; }
.empty .et { font-size: 13px; color: var(--text-mid); }
.empty .es { font-size: 12px; }

/* tracker */
.tk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tk-head .tt { font-family: var(--display); font-size: 17px; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: 7px; padding: 2px; }
.seg button { padding: 3px 11px; border-radius: 5px; font-size: 12px; color: var(--text-mid); font-weight: 500; transition: background var(--dur-fast), color var(--dur-fast); }
.seg button.on { background: var(--bg-3); color: var(--text-hi); box-shadow: 0 1px 2px oklch(0 0 0 / 0.3); }
.filters { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font-size: 12px; color: var(--text-mid); border: 1px solid transparent; transition: background var(--dur-fast), color var(--dur-fast); }
.fbtn:hover { background: var(--bg-2); color: var(--text-hi); }
.fbtn svg { width: 13px; height: 13px; color: var(--text-lo); }
.group-head { display: flex; align-items: center; gap: 9px; padding: 9px 6px 7px; }
.group-head .gn { font-size: 12.5px; font-weight: 600; color: var(--text-hi); }
.group-head .gc { font-size: 11px; color: var(--text-lo); font-variant-numeric: tabular-nums; }
.group-head .plus { margin-left: auto; }
.trow { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 7px; cursor: pointer; transition: background var(--dur-fast); text-decoration: none; color: inherit; }
.trow:hover { background: var(--bg-2); }
.trow.selected { background: var(--accent-soft); }
.trow .key { font-family: var(--mono); font-size: 11.5px; color: var(--text-lo); width: 62px; flex: none; }
.trow .title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .rt { display: flex; align-items: center; gap: 10px; flex: none; }
.trow .when { color: var(--text-lo); font-size: 11.5px; font-family: var(--mono); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--bg-1); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 8px; min-height: 220px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col-head .cn { font-size: 12.5px; font-weight: 600; }
.col-head .cc { font-size: 11px; color: var(--text-lo); }
.card { background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: 7px; padding: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast); text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--border); transform: translateY(-1px); box-shadow: var(--elev-1); }
.card .ck { font-family: var(--mono); font-size: 11px; color: var(--text-lo); }
.card .ctitle { font-size: 12.5px; margin: 5px 0 9px; line-height: 1.4; }
.card .cf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .cf .subc { margin-left: auto; font-size: 11px; color: var(--text-lo); display: inline-flex; align-items: center; gap: 4px; }

/* skeleton */
.sk { border-radius: 6px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-row { display: flex; align-items: center; gap: 11px; padding: 8px; }

/* command palette */
.scrim { position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; z-index: 50; animation: fadein var(--dur); }
.scrim.open { display: flex; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* page-change entrance (keyed by top-level section) + board/list crossfade */
.page-swap { animation: page-in var(--dur) var(--ease-out); }
.view-swap { animation: fade var(--dur) var(--ease-out); }
.palette { margin-top: 12vh; width: 560px; max-width: 92vw; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--elev-2); overflow: hidden; animation: pop var(--dur) var(--ease-out); }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.pal-input svg { width: 17px; height: 17px; color: var(--text-lo); }
.pal-input input { flex: 1; background: none; border: none; outline: none; color: var(--text-hi); font-size: 15px; }
.pal-input input::placeholder { color: var(--text-lo); }
.pal-body { max-height: 340px; overflow-y: auto; padding: 6px; }
.pal-group { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lo); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; color: var(--text-mid); text-decoration: none; }
.pal-item svg { width: 15px; height: 15px; color: var(--text-lo); }
.pal-item .pl { flex: 1; color: var(--text-hi); font-size: 13px; }
.pal-item.sel, .pal-item:hover { background: var(--accent-soft); color: var(--accent); }
.pal-item.sel .pl, .pal-item:hover .pl { color: var(--text-hi); }
.pal-item.sel svg, .pal-item:hover svg { color: var(--accent); }

/* reusable list search field (list screens: projects, teamspaces, cycles, …) */
.list-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border-subtle); min-width: 200px; transition: border-color var(--dur); }
.list-search:focus-within { border-color: var(--accent); }
.list-search svg { width: 15px; height: 15px; color: var(--text-lo); flex: none; }
.list-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-hi); font-size: 13px; }
.list-search input::placeholder { color: var(--text-lo); }
.ls-clear { display: grid; place-items: center; color: var(--text-lo); flex: none; }
.ls-clear:hover { color: var(--text-hi); }

/* "Show more" — reveals the next window of a long list */
.show-more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 2px 0; padding: 7px 12px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--text-mid); font-size: 12.5px; font-weight: 500; transition: border-color var(--dur), color var(--dur); }
.show-more:hover { border-color: var(--border); color: var(--text-hi); }
.show-more svg { width: 14px; height: 14px; color: var(--text-lo); }

/* docs tree: hover "+" to add a sub-page */
.doc-add { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 5px; color: var(--text-lo); }
.doc-add:hover { background: var(--bg-3); color: var(--text-hi); }
.doc-add svg { width: 13px; height: 13px; }

/* @/# mention autocomplete */
.mention-wrap { position: relative; }
.mention-pop { position: absolute; left: 8px; bottom: calc(100% + 6px); width: 300px; max-width: calc(100% - 16px); max-height: 244px; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--elev-2); padding: 5px; z-index: 60; }
.mention-hd { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lo); padding: 6px 8px 4px; }
.mention-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 6px; text-align: left; color: var(--text-mid); }
.mention-item svg { width: 13px; height: 13px; color: var(--text-lo); flex: none; }
.mention-item.sel, .mention-item:hover { background: var(--accent-soft); color: var(--text-hi); }
.mention-item.sel svg { color: var(--accent); }
.mention-item .mi-ic { width: 13px; flex: none; color: var(--text-lo); font-size: 13px; font-weight: 600; text-align: center; line-height: 1; }
.mention-item.sel .mi-ic { color: var(--accent); }
.mention-item .mi-label { font-size: 13px; color: var(--text-hi); flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-item .mi-sub { font-size: 12px; color: var(--text-lo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mref { color: var(--accent); text-decoration: none; font-weight: 500; }
.mref:hover { text-decoration: underline; }
.mment { color: var(--accent); font-weight: 500; }

/* comment attachments — rendered under a comment body */
.cattach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cattach-img { display: block; line-height: 0; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.cattach-img img { display: block; max-width: 240px; max-height: 190px; object-fit: cover; }
.cattach-file { display: inline-flex; align-items: center; gap: 7px; max-width: 260px; padding: 6px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-2); color: var(--text-mid); font-size: 12.5px; text-decoration: none; transition: border-color var(--dur-fast), color var(--dur-fast); }
.cattach-file:hover { border-color: var(--accent); color: var(--text-hi); }
.cattach-file svg { color: var(--text-lo); flex: none; }
.cattach-file .af-name { color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cattach-file .af-size { color: var(--text-lo); flex: none; }

/* composer attach control — paperclip + pending file chips */
.attach-btn { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--text-mid); background: transparent; transition: background var(--dur-fast), color var(--dur-fast); }
.attach-btn:hover { background: var(--bg-3); color: var(--text-hi); }
.attach-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-2); font-size: 12px; color: var(--text-hi); max-width: 200px; }
.attach-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip-size { color: var(--text-lo); font-size: 11px; flex: none; }
.attach-chip button { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; color: var(--text-lo); flex: none; }
.attach-chip button:hover { background: var(--bg-3); color: var(--text-hi); }
.attach-note { font-size: 11.5px; color: var(--warning); align-self: center; }

/* Wiki sidebar — the doc tree in place of the app nav (AppShell sidebar slot) */
.docs-side { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 2px 0 6px; }
.docs-side-head { display: flex; align-items: center; gap: 8px; padding: 6px 14px 8px; }
.docs-space-wrap { position: relative; flex: 1; min-width: 0; }
.docs-space { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border-radius: 8px; transition: background var(--dur-fast); }
.docs-space:hover { background: var(--bg-2); }
.docs-space-ic { color: var(--text-lo); flex: none; }
.docs-space-labels { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; line-height: 1.18; }
.docs-space-eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lo); }
.docs-space-name { font-size: 13.5px; font-weight: 600; color: var(--text-hi); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-space-chev { color: var(--text-lo); flex: none; }
.docs-space-backdrop { position: fixed; inset: 0; z-index: 40; background: transparent; border: none; cursor: default; }
.docs-space-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; min-width: 232px; max-width: 280px; max-height: 320px; overflow-y: auto; padding: 5px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--elev-2); }
.docs-space-menu-hd { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-lo); padding: 5px 8px 6px; }
.docs-space-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--text-mid); text-decoration: none; font-size: 13px; }
.docs-space-item:hover { background: var(--bg-3); color: var(--text-hi); }
.docs-space-item.active { color: var(--text-hi); }
.docs-space-item svg { color: var(--text-lo); flex: none; }
.docs-space-item.active svg { color: var(--accent); }
.docs-space-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-space-check { color: var(--accent); flex: none; }
.doc-newbtn { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; color: var(--text-mid); background: var(--bg-2); border: 1px solid var(--border-subtle); transition: background var(--dur-fast), color var(--dur-fast); }
.doc-newbtn:hover { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, var(--border-subtle)); }
.docs-side-filter { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 6px 9px; background: var(--bg-2); border: 1px solid var(--border-subtle); border-radius: 7px; }
.docs-side-filter svg { color: var(--text-lo); flex: none; }
.docs-side-filter input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-hi); font-size: 12.5px; }
.docs-side-tree { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 8px; }
.docs-side-empty { color: var(--text-lo); font-size: 12.5px; padding: 6px 8px; }
.docs-row { display: flex; align-items: center; gap: 6px; border-radius: 6px; }
.docs-chev { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 4px; color: var(--text-lo); }
.docs-chev-spacer { width: 16px; flex: none; }
.docs-row-link { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 5px 6px; color: var(--text-mid); text-decoration: none; font-size: 13px; font-weight: 500; border-radius: 6px; transition: background var(--dur-fast), color var(--dur-fast); }
.docs-row-link:hover { color: var(--text-hi); background: var(--bg-2); }
.docs-row-link.active { color: var(--text-hi); background: var(--accent-soft); }
.docs-row-link svg { color: var(--text-lo); flex: none; }
.docs-row-link.active svg { color: var(--accent); }
.docs-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-row-trail { font-size: 11px; color: var(--text-lo); flex: none; }
.docs-row-add { display: flex; flex: none; opacity: 0; transition: opacity var(--dur-fast); }
.docs-row:hover .docs-row-add { opacity: 1; }
.docs-row-children { margin-left: 15px; padding-left: 8px; border-left: 1px solid var(--border-subtle); }

/* side sheet */
.sheet-scrim { position: fixed; inset: 0; background: oklch(0 0 0 / 0.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: none; z-index: 40; }
.sheet-scrim.open { display: block; animation: fadein var(--dur); }
.sheet { position: fixed; top: 8vh; left: 50%; transform: translate(-50%, 0); width: 640px; max-width: 94vw; max-height: 84vh; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--elev-2); z-index: 45; display: flex; flex-direction: column; overflow: hidden; }
.sheet.open { animation: sheet-pop var(--dur) var(--ease-out); }
@keyframes sheet-pop { from { opacity: 0; transform: translate(-50%, 10px) scale(0.985); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.sheet-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.sheet-top .key { font-family: var(--mono); font-size: 12px; color: var(--text-lo); }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 18px 40px; }
/* Group the modal body into clearly-separated sections, Linear-style. */
.sheet-body .act, .sheet-body .rel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.sheet h1 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.props { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin: 18px 0 20px; align-items: center; }
.props .pk { font-size: 12px; color: var(--text-lo); }
.props .pv { font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.pick { display: inline-flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 6px; transition: background var(--dur-fast); }
.pick:hover { background: var(--bg-3); }
.desc { color: var(--text-mid); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.sub-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-lo); margin: 20px 0 8px; }
.subtask { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12.5px; color: var(--text-mid); border-bottom: 1px solid var(--border-subtle); }
.comment { display: flex; gap: 9px; padding: 12px 0; }
.comment .cbody { flex: 1; }
.comment .cmeta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.comment .ctime { font-size: 11px; color: var(--text-lo); }
.comment .ctxt { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; }
.composer { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text-lo); font-size: 12.5px; margin-top: 6px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.composer:hover { border-color: var(--border); }
.composer:focus-within { border-color: var(--accent); }

/* dropdown menu */
.menu { position: absolute; z-index: 60; min-width: 200px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--elev-2); padding: 5px; display: none; animation: pop var(--dur-fast) var(--ease-out); }
.menu.open { display: block; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; font-size: 12.5px; color: var(--text-mid); width: 100%; text-align: left; transition: background var(--dur-fast), color var(--dur-fast); }
.menu-item:hover { background: var(--bg-3); color: var(--text-hi); }
.menu-item .chk { margin-left: auto; color: var(--accent); opacity: 0; }
.menu-item.on .chk { opacity: 1; }
.menu-sep { height: 1px; background: var(--border-subtle); margin: 5px 2px; }
.menu-item.danger { color: var(--danger); }

/* modal */
.modal-scrim { position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; z-index: 70; animation: fadein var(--dur); }
.modal-scrim.open { display: flex; }
.modal { margin-top: 12vh; width: 540px; max-width: 92vw; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--elev-2); overflow: hidden; animation: pop var(--dur) var(--ease-out); }
.modal.sm { width: 400px; }
.modal-body { padding: 18px 18px 6px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); margin-top: 14px; }
.modal-foot .sp { flex: 1; }
.modal h3 { font-size: 15px; font-weight: 600; }
.modal p.mp { font-size: 12.5px; color: var(--text-mid); margin-top: 5px; line-height: 1.55; }

/* toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 9px; padding: 9px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--elev-2); font-size: 12.5px; color: var(--text-hi); animation: toastin var(--dur) var(--ease-out); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast .tc { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); }
.toast .tc svg { width: 12px; height: 12px; }

/* chat stream (updates) */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 24px; border-bottom: 1px solid var(--border-subtle); }
.chat-head .ct { font-weight: 600; font-size: 14px; }
.chat-head .cs { font-size: 12px; color: var(--text-lo); }
.chat-stream { flex: 1; overflow-y: auto; padding: 14px 18px 10px; display: flex; flex-direction: column; }
.day-div { display: flex; align-items: center; gap: 12px; margin: 14px 4px 12px; color: var(--text-lo); font-size: 11px; font-weight: 600; }
.day-div::before, .day-div::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.msg { display: flex; gap: 10px; padding: 4px 12px 5px; border-radius: 8px; position: relative; }
.msg:hover { background: color-mix(in oklab, var(--text-hi) 4%, transparent); }
.msg .mav { width: 30px; flex: none; }
.msg .mav .av { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.msg .mbody { flex: 1; min-width: 0; }
.msg .mhead { display: flex; align-items: baseline; gap: 8px; }
.msg .mname { font-weight: 600; font-size: 13px; }
.msg .mtime { font-size: 11px; color: var(--text-lo); }
.msg .mtext { font-size: 13px; color: var(--text-mid); line-height: 1.55; }
.workcard { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 11px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-1); max-width: 360px; text-decoration: none; }
.workcard > svg { width: 15px; height: 15px; color: var(--text-lo); flex: none; }
.workcard .wt { font-size: 12.5px; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workcard .wsub { font-size: 11px; color: var(--text-lo); margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); flex: none; }
.reacts { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; height: 24px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-2); font-size: 12px; color: var(--text-mid); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.react:hover { border-color: var(--border); }
.react.on { border-color: color-mix(in oklab, var(--accent) 55%, var(--border)); background: var(--accent-soft); color: var(--accent); }
.react .rn { font-variant-numeric: tabular-nums; font-size: 11px; }
.thread { display: inline-flex; align-items: center; gap: 8px; margin-top: 7px; padding: 4px 10px 4px 5px; border-radius: 8px; cursor: pointer; width: fit-content; transition: background var(--dur-fast); }
.thread:hover { background: var(--bg-2); }
.thread .tl { font-size: 12px; color: var(--accent); font-weight: 500; }
.thread .tt { font-size: 11px; color: var(--text-lo); }
.chat-composer { flex: none; padding: 10px 18px 16px; }
.composer-rel { position: relative; }
.composer-box2 { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-1); box-shadow: var(--elev-1); overflow: hidden; transition: border-color var(--dur-fast); }
.composer-box2:focus-within { border-color: var(--accent); box-shadow: var(--elev-1); }
.composer-box2 .cin { padding: 11px 14px 3px; color: var(--text-hi); font-size: 13.5px; }
.composer-box2 .cbar { display: flex; align-items: center; gap: 1px; padding: 5px 8px 7px; }
.composer-box2 .cbar .sp { flex: 1; }
.send { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.send:hover { background: var(--accent-hover); }
.send svg { width: 16px; height: 16px; }

/* shared page helpers */
.page-title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.muted { color: var(--text-lo); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Grid tracks default to min-width:auto, so wide row content (e.g. a long project name in a
   .meta) would force a column past 1fr and overflow the page. Let columns shrink so children
   truncate instead. */
.grid-2 > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--text-lo); font-weight: 500; }
.field .inp, .inp, .field-input { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; font-size: 13px; color: var(--text-hi); width: 100%; }
.field .inp::placeholder, .inp::placeholder, .field-input::placeholder { color: var(--text-lo); }
.inp:focus-visible, .field-input:focus-visible { border-color: var(--accent); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 18px; }
.tab { padding: 8px 12px; font-size: 13px; color: var(--text-mid); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tab.on { color: var(--text-hi); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text-hi); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-lo); padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); }
.table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border-subtle); }
.table tr:hover td { background: var(--bg-2); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


[data-theme="dark"] {
  --bg-0: oklch(0.165 0.006 286);
  --bg-1: oklch(0.202 0.008 286);
  --bg-2: oklch(0.224 0.008 286);
  --bg-3: oklch(0.250 0.011 286);
  --border-subtle: oklch(0.262 0.008 286);
  --border: oklch(0.304 0.012 286);

  --text-hi: oklch(0.929 0.004 286);
  --text-mid: oklch(0.712 0.014 286);
  --text-lo: oklch(0.538 0.015 286);

  /* Product accent is indigo-violet (H 288) — Linear's register: lively and
     premium, clearly not the default SaaS blue nor the rejected gold. Drives
     primary actions, focus, active nav, selection. The semantic status colours
     below are kept VIVID so the board reads in colour, never greyscale. */
  --accent: oklch(0.62 0.2 288);
  --accent-hover: oklch(0.67 0.19 288);
  --accent-press: oklch(0.56 0.2 287);
  --accent-fg: oklch(0.99 0.014 288);
  --accent-soft: oklch(0.62 0.2 288 / 0.18);
  --accent-glow: oklch(0.62 0.2 288 / 0.35);

  --brand-gold: oklch(0.81 0.15 82);
  --brand-gold-soft: oklch(0.81 0.15 82 / 0.18);

  --success: oklch(0.72 0.19 152);
  --warning: oklch(0.76 0.17 62);
  --danger: oklch(0.64 0.22 27);
  --info: oklch(0.66 0.19 256);

  --shadow-pop: 0 10px 30px -10px oklch(0 0 0 / 0.6), 0 2px 6px oklch(0 0 0 / 0.4);

  --dur-fast: 120ms;
  --dur: 170ms;
  --dur-slow: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --sans: "Inter Variable", system-ui, sans-serif;
  --display: "Space Grotesk Variable", "Inter Variable", system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", ui-monospace, monospace;

  --edge-hi: inset 0 1px 0 oklch(1 0 0 / 0.035);
  --elev-1: 0 1px 2px oklch(0 0 0 / 0.45);
  --elev-2: 0 10px 34px -14px oklch(0 0 0 / 0.72), 0 2px 6px -2px oklch(0 0 0 / 0.5);

  /* interaction: translucent hover overlays (work on any surface) + soft focus halo */
  --hover: oklch(1 0 0 / 0.045);
  --hover-strong: oklch(1 0 0 / 0.08);
  --focus-glow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent-glow);
}
[data-theme="light"] {
  --bg-0: oklch(0.99 0.003 286);
  --bg-1: oklch(0.975 0.004 286);
  --bg-2: oklch(0.955 0.006 286);
  --bg-3: oklch(0.93 0.007 286);
  --border-subtle: oklch(0.91 0.006 286);
  --border: oklch(0.86 0.008 286);

  --text-hi: oklch(0.24 0.015 286);
  --text-mid: oklch(0.44 0.013 286);
  --text-lo: oklch(0.58 0.012 286);

  /* light: indigo-violet, darkened for contrast on white; light text on it. */
  --accent: oklch(0.52 0.2 288);
  --accent-hover: oklch(0.46 0.2 288);
  --accent-press: oklch(0.42 0.19 287);
  --accent-fg: oklch(0.99 0.014 288);
  --accent-soft: oklch(0.52 0.2 288 / 0.14);
  --accent-glow: oklch(0.52 0.2 288 / 0.26);

  --brand-gold: oklch(0.64 0.14 80);
  --brand-gold-soft: oklch(0.64 0.14 80 / 0.16);

  --success: oklch(0.55 0.17 150);
  --warning: oklch(0.58 0.17 55);
  --danger: oklch(0.55 0.2 25);
  --info: oklch(0.55 0.13 245);

  --shadow-pop: 0 12px 32px -12px oklch(0.5 0.02 286 / 0.2), 0 2px 8px oklch(0.5 0.02 286 / 0.12);

  --edge-hi: inset 0 1px 0 oklch(1 0 0 / 0.9);
  --elev-1: 0 1px 2px oklch(0.5 0.02 286 / 0.12);
  --elev-2: 0 10px 30px -14px oklch(0.5 0.02 286 / 0.2), 0 2px 6px -2px oklch(0.5 0.02 286 / 0.12);

  --hover: oklch(0 0 0 / 0.045);
  --hover-strong: oklch(0 0 0 / 0.075);
}

/* ---------- owlrole.com page ---------- */
:root { --sans: "Inter", system-ui, sans-serif; --display: "Space Grotesk", "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; }
html, body { height: auto; }
body { background: var(--bg-0); color: var(--text-hi); }
a { color: inherit; text-decoration: none; }
.w-foot a:hover, .w-signin:hover { color: var(--text-hi); }
/* product illustrations are pictures, not controls */
.w-shot, .w-feed, .w-step .panel, .w-board, .w-pipe { pointer-events: none; user-select: none; }
.w { min-height: 100vh; }
.w-logo { height: 28px; width: auto; display: block; }
.w-brand.sm .w-logo { height: 20px; }
/* ---------- icons ---------- */
svg.i { width: 16px; height: 16px; flex: none; }
svg.xs { width: 13px; height: 13px; flex: none; }
svg.gl { width: 18px; height: 18px; flex: none; }

/* ---------- the website (container-sized so one markup fills both frames) ---------- */
.w { container-type: inline-size; font-size: 14px; }
.w .owl { width: 26px; height: 26px; flex: none; }
.w-sp { flex: 1; }
.w-head { display: flex; align-items: center; gap: 8px; max-width: 1104px; margin: 0 auto; padding: 18px 32px; }
.w-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.w-brand.sm { font-size: 14px; } .w-brand.sm .owl { width: 20px; height: 20px; }
.w .btn { font-size: 13px; padding: 7px 14px; }
.w .btn.w-big { font-size: 14px; padding: 10px 18px; border-radius: 8px; }
.w .btn.sm { font-size: 12px; padding: 4px 10px; }

.w-hero { max-width: 1104px; margin: 0 auto; padding: 72px 32px 0; text-align: center; }
.w-hero h1 { margin: 0 auto; font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; max-width: 19ch; text-wrap: balance; }
.w-lede { margin: 18px auto 0; max-width: 58ch; color: var(--text-mid); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.w-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.w-fine { margin: 12px 0 0; color: var(--text-lo); font-size: 12.5px; }

.w-shot { margin: 56px auto 0; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-0); box-shadow: var(--elev-2), var(--edge-hi); overflow: hidden; }
.w-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-1); font-size: 12.5px; }
.w-ws { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.w-crumb { color: var(--text-lo); }
.w-shot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; padding: 20px; }
.w-sh { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.w-ct { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.w-pad { padding: 14px; }
.w-hours { display: flex; align-items: baseline; gap: 8px; }
.w-hours b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.w-hours span { color: var(--text-lo); font-size: 12.5px; }
.w-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 92px; margin-top: 14px; }
.w-days span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.w-days i { display: block; width: 100%; max-width: 30px; border-radius: 4px; background: color-mix(in oklab, var(--accent) 55%, var(--bg-2)); }
.w-days .today i { background: var(--accent); }
.w-days em { font-style: normal; font-size: 11px; color: var(--text-lo); font-family: var(--mono); }
.w-amt { font-size: 12px; color: var(--text-mid); }
.w-side .irow svg { color: var(--text-lo); }

.w-sec { max-width: 1104px; margin: 0 auto; padding: 112px 32px 0; }
.w-sec h2, .w-close h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
.w-sec p, .w-close p { color: var(--text-mid); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.w-sec-h { max-width: 640px; margin-bottom: 32px; }
.w-sec-h p { margin: 12px 0 0; }
.w-eb { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 14px; }
.w-eb svg { color: var(--brand-gold); }
.w-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.w-split.rev .w-copy { order: 2; }
.w-copy p { margin: 14px 0 0; max-width: 46ch; }
.w-copy .mono { white-space: nowrap; font-size: 0.92em; }
.w-ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.w-ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--text-mid); font-size: 14px; line-height: 1.5; }
.w-ticks svg { margin-top: 3px; color: var(--success); }

.w-pair { display: grid; gap: 14px; }
.w-view { padding: 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-1); }
.w-view.mine { border-color: color-mix(in oklab, var(--accent) 45%, var(--border-subtle)); background: color-mix(in oklab, var(--accent) 6%, var(--bg-1)); }
.w-vh { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 10px; }
.w-view .panel { background: var(--bg-0); }
.w-view .upd .ub { margin-bottom: 0; }
.w-note { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--text-mid); }
.w-note svg { color: var(--accent); }
.w-note .mono { font-size: 11.5px; }
.w-col { min-width: 0; }
.lbl.ok { --lc: var(--success); } .lbl.warn { --lc: var(--warning); } .lbl.info { --lc: var(--info); }
.w-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.w-ph b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.w-ph span:not(.lbl):not(.ldot) { display: block; font-size: 12.5px; color: var(--text-lo); margin-top: 2px; }
.w-prog { height: 6px; border-radius: 4px; background: var(--bg-3); margin-top: 14px; overflow: hidden; }
.w-prog i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.w-prog-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-lo); }
.w .person.sm .nm { font-size: 12px; color: var(--text-mid); }
.w .person.sm .av { width: 18px; height: 18px; font-size: 9.5px; border-radius: 6px; }
.w-side .upd { padding: 11px 13px; }
.w-side .upd .ub { margin: 5px 0 0; }
.w-feed .panel { box-shadow: var(--elev-2); }
.w-cav { display: flex; margin-top: 8px; }
.w-cav .av { width: 18px; height: 18px; font-size: 9.5px; }
.w-doc-h { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.w-doc-h svg { color: var(--text-lo); }
.w-doc-l { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--text-mid); }
.w-doc-l svg { color: var(--success); }
.w-doc-l.todo svg { color: var(--text-lo); }
.w-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.w-wc { padding: 22px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-1); }
.w-wi { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.w-wi svg { width: 18px; height: 18px; }
.w-wc h3 { margin: 16px 0 0; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.w-wc p { margin: 6px 0 0; font-size: 14px; }
.w-also { margin-top: 18px; font-size: 13px; color: var(--text-lo); }
/* AI assistants section (JM-384) */
.w-ai-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.w-ai-links .btn { min-height: 40px; }
.w-ai .panel { display: grid; gap: 12px; padding: 18px; box-shadow: var(--elev-2); }
.w-ai-q { justify-self: end; max-width: 86%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: var(--bg-3); color: var(--text-hi); font-size: 14px; line-height: 1.5; }
.w-ai-tool { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-mid); font-size: 12.5px; }
.w-ai-tool svg { color: var(--success); }
.w-ai-a { max-width: 92%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; border: 1px solid var(--border-subtle); color: var(--text-mid); font-size: 14px; line-height: 1.55; }
.w-ai-a b { color: var(--text-hi); font-weight: 600; }

.w-loop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.w-step { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-1); }
.w-step:nth-child(1) { grid-column: span 2; } .w-step.wide { grid-column: span 4; }
.w-step .panel { background: var(--bg-0); }
.w-sn { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; }
.w-sn .mono { font-size: 11.5px; color: var(--text-lo); font-weight: 500; }
.w-fl { font-size: 11px; color: var(--text-lo); margin-bottom: 4px; }
.w-in { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); font-size: 13px; }
.w-frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.w-frow.end { justify-content: flex-end; }
.w-frow .chip svg { color: var(--text-lo); }
.w-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.w-board .col { min-height: 0; padding: 6px; background: var(--bg-0); }
.w-board .card { margin-bottom: 6px; padding: 8px; }
.w-board .card .ctitle { margin: 3px 0 0; font-size: 12px; }
.w-tsh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w-ts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 6px; text-align: center; font-size: 11px; color: var(--text-lo); }
.w-ts b { padding: 6px 0; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--text-hi); font-weight: 500; font-size: 12.5px; }
.w-tot { margin-right: auto; font-weight: 600; }
.w-inv-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; margin-bottom: 10px; }
.w-inv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 12.5px; color: var(--text-mid); padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.w-inv .mono { text-align: right; color: var(--text-hi); }
.w-inv-t { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-size: 12.5px; color: var(--text-lo); }
.w-inv-t b { font-size: 18px; color: var(--text-hi); }

.w-pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-1); }
.w-pc { display: flex; flex-direction: column; gap: 6px; }
.w-pch { font-size: 12px; font-weight: 600; color: var(--text-mid); padding: 2px 2px 6px; display: flex; gap: 6px; }
.w-cand { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-0); }
.w-cand.on { border-color: color-mix(in oklab, var(--accent) 50%, var(--border-subtle)); }
.w-cand .nm { font-size: 12.5px; font-weight: 500; }
.w-ans { font-size: 11.5px; color: var(--text-lo); display: inline-flex; align-items: center; gap: 5px; }
.w-ans.ok { color: var(--success); }

.w-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.w-tile { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-1); font-weight: 500; font-size: 14px; box-shadow: var(--edge-hi); }

.w-close { max-width: 1104px; margin: 112px auto 0; padding: 64px 32px; text-align: center; border-top: 1px solid var(--border-subtle); }
.w-close p { margin: 12px 0 26px; }
.w-foot { display: flex; align-items: center; gap: 20px; max-width: 1104px; margin: 0 auto; padding: 22px 32px 30px; border-top: 1px solid var(--border-subtle); color: var(--text-lo); font-size: 12.5px; }

@container (max-width: 640px) {
  .w-head { padding: 14px 20px; }
  .w-start { display: none; }
  .w-hero { padding: 40px 20px 0; text-align: left; }
  .w-hero h1 { font-size: 36px; margin: 0; }
  .w-lede { font-size: 16px; margin-left: 0; }
  .w-ctas { flex-direction: column; align-items: stretch; }
  .w-ctas .btn { justify-content: center; min-height: 46px; }
  .w-shot { margin-top: 36px; border-radius: 10px; }
  .w-shot-in { grid-template-columns: 1fr; padding: 12px; }
  .w-side { display: none; }
  .w-shot .irow .pri { display: none; }
  .w-shot .irow { gap: 9px; padding: 8px 10px; }
  .w-shot .irow .key { width: auto; }
  .w-bar kbd { display: none; }
  .w-shot .irow:nth-child(n+4) { display: none; }
  .w-sec { padding: 72px 20px 0; }
  .w-sec h2, .w-close h2 { font-size: 27px; }
  .w-split { grid-template-columns: 1fr; gap: 28px; }
  .w-split.rev .w-copy { order: 0; }
  .w-loop { grid-template-columns: 1fr; }
  .w-step, .w-step.wide, .w-step:nth-child(1) { grid-column: auto; }
  .w-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-board .col:nth-child(n+3) { display: none; }
  .w-pipe { grid-template-columns: 1fr; }
  .w-ai-links .btn { flex: 1 1 100%; justify-content: center; min-height: 46px; }
  .w-who { grid-template-columns: 1fr; }
  .w-shot .irow .meta .when { display: none; }
  .w-shot .irow:nth-child(n+4) { display: flex; }
  .w-ph b { font-size: 15px; }
  .w-close { margin-top: 72px; padding: 48px 20px; text-align: left; }
  .w-close .btn { width: 100%; justify-content: center; min-height: 46px; }
  .w-foot { flex-wrap: wrap; gap: 10px 18px; padding: 20px; }
  .w-foot .w-sp { flex-basis: 100%; height: 0; }
}

/* ================= owlrole.com site chrome (JM-385) ================= */
/* Marketing grounds are pure white; panels keep the light theme's tinted greys. */
[data-theme="light"] { --bg-0: #ffffff; }
html { scroll-behavior: smooth; }
body { background: #fff; }
.s-page { min-height: 100vh; display: flex; flex-direction: column; }
.s-page main { flex: 1; }
.s-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header: fixed height, never resizes on scroll */
.s-head { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border-subtle); }
.s-head-in { display: flex; align-items: center; gap: 8px; max-width: 1104px; height: 64px; margin: 0 auto; padding: 0 32px; }
.s-head .w-brand { margin-right: 20px; min-height: 44px; }
.s-nav { display: flex; gap: 4px; }
.s-nav a, .s-mnav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--text-mid); font-size: 14px; font-weight: 500; text-decoration: none; transition: color var(--dur-fast), background var(--dur-fast); }
.s-nav a:hover { color: var(--text-hi); background: var(--bg-1); }
.s-nav a[aria-current="page"] { color: var(--text-hi); background: var(--bg-1); }
.s-head .btn { min-height: 38px; }
.s-signin { color: var(--text-mid); }
.s-menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--text-hi); cursor: pointer; }
.s-menu-btn svg { width: 22px; height: 22px; }
.s-menu-btn svg + svg, .s-menu-btn[aria-expanded="true"] svg:first-child { display: none; }
.s-menu-btn[aria-expanded="true"] svg + svg { display: block; }
.s-mnav { display: grid; gap: 2px; padding: 8px 20px 20px; border-top: 1px solid var(--border-subtle); background: #fff; }
.s-mnav[hidden] { display: none; }
.s-mnav a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 16px; padding: 0 8px; }
.s-mnav a[aria-current="page"] { color: var(--text-hi); }
.s-mnav .btn { margin-top: 10px; justify-content: center; min-height: 48px; }

/* footer */
.s-foot { margin-top: 96px; border-top: 1px solid var(--border-subtle); background: var(--bg-1); }
.s-foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1104px; margin: 0 auto; padding: 48px 32px 28px; }
.s-fbrand p { margin: 12px 0 0; max-width: 26ch; color: var(--text-mid); font-size: 13.5px; line-height: 1.55; }
.s-fcol { display: grid; align-content: start; gap: 2px; }
.s-fcol h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-lo); }
.s-fcol a { display: flex; align-items: center; min-height: 34px; color: var(--text-mid); font-size: 14px; text-decoration: none; }
.s-fcol a:hover { color: var(--text-hi); }
.s-foot-base { max-width: 1104px; margin: 0 auto; padding: 18px 32px 28px; border-top: 1px solid var(--border-subtle); color: var(--text-lo); font-size: 12.5px; }

/* the home page keeps its own sections; its old closing rule is replaced by the footer */
.s-home .w-close { margin-bottom: 0; }

/* ---------- shared page parts ---------- */
.s-wrap { max-width: 1104px; margin: 0 auto; padding: 0 32px; }
.s-hero { max-width: 1104px; margin: 0 auto; padding: 72px 32px 8px; }
.s-hero.center { text-align: center; }
.s-eb { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-mid); }
.s-eb svg { width: 15px; height: 15px; color: var(--brand-gold); }
.s-hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 50px; line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.s-hero.center h1 { margin: 0 auto; }
.s-hero .s-lede { margin: 18px 0 0; max-width: 60ch; color: var(--text-mid); font-size: 17.5px; line-height: 1.6; text-wrap: pretty; }
.s-hero.center .s-lede { margin-left: auto; margin-right: auto; }
.s-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.s-hero.center .s-ctas { justify-content: center; }
.s-sec { max-width: 1104px; margin: 96px auto 0; padding: 0 32px; scroll-margin-top: 84px; }
.s-sec-h { max-width: 640px; margin-bottom: 36px; }
.s-sec-h h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
.s-sec-h p { margin: 12px 0 0; color: var(--text-mid); font-size: 16px; line-height: 1.6; }
.s-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.s-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-link svg { width: 15px; height: 15px; }

/* anchor chips (features) */
.s-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.s-chips a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: 999px; background: #fff; color: var(--text-mid); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.s-chips a:hover { color: var(--text-hi); border-color: var(--border); }
.s-chips svg { width: 15px; height: 15px; color: var(--accent); }

/* feature group: copy left, items right */
.s-group { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 56px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.s-group-h .s-eb { margin-bottom: 10px; }
.s-group-h h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.s-group-h p { margin: 12px 0 0; color: var(--text-mid); font-size: 15.5px; line-height: 1.6; }
.s-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.s-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.s-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.s-ico svg { width: 18px; height: 18px; }
.s-item h3 { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--text-hi); }
.s-item p { margin: 6px 0 0; color: var(--text-mid); font-size: 14px; line-height: 1.55; }
.s-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; grid-column: 1 / -1; }
.s-logo { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--border-subtle); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; color: var(--text-hi); }
.s-logo svg { width: 20px; height: 20px; }

/* closing band */
.s-band { max-width: 1104px; margin: 112px auto 0; padding: 0 32px; }
.s-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--border-subtle); }
.s-band h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.s-band p { margin: 8px 0 0; color: var(--text-mid); font-size: 15px; }

/* ---------- pricing ---------- */
.s-plans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; max-width: 920px; margin: 48px auto 0; padding: 0 32px; }
.s-plan { padding: 30px 30px 28px; border: 1px solid var(--border-subtle); border-radius: 16px; background: #fff; box-shadow: var(--elev-2); }
.s-plan.alt { background: var(--bg-1); box-shadow: none; }
.s-plan h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-mid); }
.s-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.s-price b { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-hi); }
.s-price span { color: var(--text-mid); font-size: 14px; }
.s-plan > p { margin: 10px 0 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.55; }
.s-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.s-ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-hi); font-size: 14px; line-height: 1.5; }
.s-ticks svg { width: 16px; height: 16px; margin-top: 2px; color: var(--success); }
.s-plan .btn { margin-top: 26px; width: 100%; justify-content: center; min-height: 44px; font-size: 14px; }
.s-faq { max-width: 760px; margin: 96px auto 0; padding: 0 32px; }
.s-faq h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; }
.s-faq details { border-top: 1px solid var(--border-subtle); }
.s-faq details:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.s-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; color: var(--text-hi); }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary svg { flex: none; width: 18px; height: 18px; color: var(--text-lo); transition: transform var(--dur); }
.s-faq details[open] summary svg { transform: rotate(45deg); }
.s-faq details p { margin: 0 0 18px; color: var(--text-mid); font-size: 15px; line-height: 1.65; max-width: 64ch; }

/* ---------- guides index ---------- */
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.s-card { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; overflow: hidden; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast); }
.s-card:hover { border-color: var(--border); box-shadow: var(--elev-2); transform: translateY(-2px); }
.s-card-art { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg-1); border-bottom: 1px solid var(--border-subtle); color: var(--accent); }
.s-card-art svg { width: 40px; height: 40px; }
.s-card-art .s-pair { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--text-hi); }
.s-card-art .s-pair svg { width: 22px; height: 22px; color: var(--text-lo); }
.s-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.s-meta { display: flex; gap: 10px; color: var(--text-lo); font-size: 12.5px; font-weight: 500; }
.s-card h2 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--text-hi); }
.s-card p { margin: 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.55; }
.s-card .s-link { margin-top: auto; padding-top: 8px; }

/* ---------- guide article ---------- */
.s-crumbs { display: flex; gap: 8px; align-items: center; color: var(--text-lo); font-size: 13px; }
.s-crumbs a { color: var(--text-mid); text-decoration: none; }
.s-crumbs a:hover { color: var(--text-hi); }
.s-art-head { max-width: 1104px; margin: 0 auto; padding: 48px 32px 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.s-art-head h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.s-art-head .s-lede { margin: 16px 0 0; color: var(--text-mid); font-size: 17px; line-height: 1.6; }
.s-art-head .s-meta { margin-top: 16px; }
.s-art { max-width: 1104px; margin: 56px auto 0; padding: 0 32px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
.s-toc { position: sticky; top: 88px; font-size: 13.5px; }
.s-toc p { margin: 0 0 10px; color: var(--text-lo); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.s-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border-subtle); }
.s-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-mid); text-decoration: none; }
.s-toc a:hover { color: var(--text-hi); border-left-color: var(--accent); }
.s-prose { min-width: 0; max-width: 740px; color: var(--text-mid); font-size: 16px; line-height: 1.7; }
.s-prose section { scroll-margin-top: 84px; padding-top: 8px; margin-bottom: 44px; }
.s-prose h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-hi); }
.s-prose h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-hi); }
.s-prose p { margin: 0 0 14px; }
.s-prose strong { color: var(--text-hi); font-weight: 600; }
.s-prose ul, .s-prose ol { margin: 0 0 16px; padding-left: 22px; }
.s-prose li { margin: 6px 0; }
.s-prose li::marker { color: var(--text-lo); }
.s-prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.s-prose code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--bg-1); border: 1px solid var(--border-subtle); color: var(--text-hi); overflow-wrap: anywhere; }
.s-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; padding: 26px 0; border-top: 1px solid var(--border-subtle); }
.s-step.solo { grid-template-columns: 1fr; }
.s-step:first-of-type { border-top: 0; padding-top: 4px; }
.s-step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.s-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.s-step > div > :last-child { margin-bottom: 0; }
.s-fig { margin: 0; }
.s-fig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border-subtle); box-shadow: var(--elev-2); }
.s-fig figcaption { margin-top: 10px; color: var(--text-lo); font-size: 12.5px; line-height: 1.5; }
.s-note { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent); font-size: 15px; }
.s-note b { display: block; margin-bottom: 4px; color: var(--text-hi); font-size: 14px; }
.s-note p:last-child { margin-bottom: 0; }
.s-copy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 16px; padding: 7px 7px 7px 14px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--border); }
.s-copy span { color: var(--text-lo); font-size: 12.5px; }
.s-copy code.s-copy-v { background: none; border: 0; padding: 0; font-size: 14px; color: var(--accent); }
.s-copy button { min-height: 36px; min-width: 64px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-hi); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.s-related { max-width: 1104px; margin: 24px auto 0; padding: 0 32px; }
.s-related h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.s-related .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* guide illustrations (light) */
.ga-card { border-radius: 16px; background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--elev-2); overflow: hidden; font-size: 14px; }
.ga-top { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-1); font-size: 12.5px; color: var(--text-lo); }
.ga-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.ga-top b { margin-left: 6px; color: var(--text-mid); font-weight: 600; }
.ga-chat { display: grid; gap: 12px; padding: 18px 16px 20px; }
.ga-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; }
.ga-msg.you { justify-self: end; background: var(--bg-2); color: var(--text-hi); border-bottom-right-radius: 4px; }
.ga-msg.ai { justify-self: start; border: 1px solid var(--border-subtle); color: var(--text-mid); border-bottom-left-radius: 4px; }
.ga-msg b { color: var(--text-hi); font-weight: 600; }
.ga-mention { color: var(--accent); font-weight: 600; }
.ga-tool { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-mid); font-size: 12.5px; }
.ga-tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.ga-tool code { font-family: var(--mono); font-size: 12px; color: var(--text-lo); }
.ga-form { display: grid; gap: 14px; padding: 18px 16px; }
.ga-form h4 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text-hi); }
.ga-field { display: grid; gap: 6px; }
.ga-field > span { font-size: 12px; color: var(--text-lo); }
.ga-input { padding: 9px 11px; border-radius: 9px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-hi); overflow-wrap: anywhere; }
.ga-input.mono { font-family: var(--mono); font-size: 12.5px; color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ga-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-seg span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; color: var(--text-mid); }
.ga-seg span.on { border-color: var(--accent); color: var(--text-hi); background: var(--accent-soft); }
.ga-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ga-b { padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text-mid); }
.ga-b.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.ga-rows { display: grid; border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.ga-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 11px; font-size: 13px; color: var(--text-mid); border-top: 1px solid var(--border-subtle); }
.ga-row:first-child { border-top: 0; }
.ga-row em { font-style: normal; color: var(--text-lo); font-size: 12px; }
.ga-tick { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.ga-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-hi); }
.ga-badge { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.ga-remember { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-lo); }
.ga-remember i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); }
.ga-flow { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) 88px minmax(0, 1fr); align-items: center; margin: 4px 0 8px; }
.ga-node { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.ga-node.accent { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ga-node b { color: var(--text-hi); font-size: 15px; }
.ga-node span { color: var(--text-lo); font-size: 12.5px; line-height: 1.35; }
.ga-link { display: grid; justify-items: center; gap: 6px; color: var(--text-mid); font-size: 12px; }
.ga-link i { position: relative; display: block; width: 64px; height: 2px; background: var(--accent); }
.ga-link i::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--accent); border-right: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .s-nav, .s-signin, .s-start { display: none; }
  .s-menu-btn { display: inline-flex; }
  .s-head-in { padding: 0 20px; height: 60px; }
  .s-hero, .s-sec, .s-wrap, .s-band, .s-plans, .s-faq, .s-art, .s-art-head, .s-related { padding-left: 20px; padding-right: 20px; }
  .s-hero { padding-top: 48px; }
  .s-hero h1 { font-size: 36px; }
  .s-sec { margin-top: 72px; }
  .s-sec-h h2, .s-group-h h2 { font-size: 26px; }
  .s-group { grid-template-columns: 1fr; gap: 24px; }
  .s-items { grid-template-columns: 1fr; gap: 22px; }
  .s-plans { grid-template-columns: 1fr; }
  .s-cards, .s-related .s-cards { grid-template-columns: 1fr; }
  .s-art-head { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .s-art-head h1 { font-size: 34px; }
  .s-art { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .s-toc { position: static; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-1); }
  .s-toc ol { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .s-toc a { padding: 9px 0; margin: 0; border: 0; min-height: 44px; display: flex; align-items: center; }
  .s-step { grid-template-columns: 1fr; }
  .s-band-in { padding: 28px 22px; }
  .s-foot-in { grid-template-columns: 1fr 1fr; padding: 40px 20px 20px; gap: 28px 20px; }
  .s-fbrand { grid-column: 1 / -1; }
  .s-foot-base { padding: 16px 20px 24px; }
}
@media (max-width: 560px) {
  .ga-flow { grid-template-columns: 1fr; }
  .ga-link { padding: 6px 0; grid-auto-flow: column; align-items: center; gap: 10px; }
  .ga-link i { width: 2px; height: 24px; }
  .ga-link i::after { right: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .s-copy { grid-template-columns: minmax(0, 1fr) auto; }
  .s-copy span { grid-column: 1 / -1; }
  .s-ctas .btn { flex: 1 1 100%; justify-content: center; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- guides index: blog layout with covers and filters (JM-388) ---------- */
.s-gl-head { max-width: 1104px; margin: 0 auto; padding: 64px 32px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.s-gl-head h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.s-gl-head p { margin: 14px 0 0; max-width: 52ch; color: var(--text-mid); font-size: 17px; line-height: 1.6; }
.s-filters { display: flex; flex-wrap: wrap; gap: 6px; max-width: 1104px; margin: 32px auto 0; padding: 0 32px; }
.s-filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-subtle); background: #fff; color: var(--text-mid); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.s-filters button:hover { color: var(--text-hi); border-color: var(--border); }
.s-filters button[aria-pressed="true"] { background: var(--text-hi); border-color: var(--text-hi); color: #fff; }
.s-gl { max-width: 1104px; margin: 28px auto 0; padding: 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.s-post { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.s-post[hidden] { display: none; }
.s-post.feat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }
.s-post-body { display: flex; flex-direction: column; gap: 8px; }
.s-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.s-post h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; color: var(--text-hi); text-wrap: balance; }
.s-post.feat h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; }
.s-post p { margin: 0; color: var(--text-mid); font-size: 15px; line-height: 1.55; }
.s-post.feat p { font-size: 17px; }
.s-post .s-meta { margin-top: 4px; }
.s-post:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.s-post:hover .cv-win { transform: translateY(-3px); }
.s-gl-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--text-mid); text-align: center; }

/* covers: a product window floating on a soft colour field, cropped at the bottom */
.cv { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; padding: 26px 26px 0; display: flex; align-items: flex-start; justify-content: center; border: 1px solid oklch(0 0 0 / 0.04); }
.s-post.feat .cv { aspect-ratio: 16 / 9.5; padding: 36px 40px 0; }
.cv-violet { background: linear-gradient(160deg, oklch(0.95 0.035 288), oklch(0.90 0.06 288)); }
.cv-teal { background: linear-gradient(160deg, oklch(0.96 0.03 185), oklch(0.91 0.055 185)); }
.cv-gold { background: linear-gradient(160deg, oklch(0.97 0.035 85), oklch(0.92 0.07 80)); }
.cv-blue { background: linear-gradient(160deg, oklch(0.96 0.03 245), oklch(0.91 0.055 250)); }
.cv-rose { background: linear-gradient(160deg, oklch(0.96 0.025 355), oklch(0.92 0.05 355)); }
.cv-win { width: 100%; max-width: 440px; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 18px 40px -16px oklch(0.3 0.06 286 / 0.35), 0 2px 6px oklch(0.3 0.03 286 / 0.08); overflow: hidden; transition: transform var(--dur) var(--ease-out); pointer-events: none; user-select: none; font-size: 12px; }
.cv-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-lo); font-size: 11.5px; }
.cv-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.cv-bar b { margin-left: 6px; color: var(--text-mid); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-in { padding: 12px; display: grid; gap: 8px; }
.cv-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--text-hi); font-size: 12px; white-space: nowrap; overflow: hidden; }
.cv-row > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.cv-row em { margin-left: auto; font-style: normal; color: var(--text-lo); font-size: 11px; }
.cv-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-lo); }
.cv-dot.prog { border-color: var(--info); background: conic-gradient(var(--info) 50%, transparent 0); }
.cv-dot.rev { border-color: var(--brand-gold); background: var(--brand-gold); }
.cv-dot.done { border-color: var(--success); background: var(--success); }
.cv-av { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; }
.cv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cv-col { display: grid; gap: 6px; align-content: start; padding: 7px; border-radius: 8px; background: var(--bg-1); }
.cv-col > b { font-size: 10.5px; font-weight: 600; color: var(--text-lo); }
.cv-card { padding: 7px 8px; border-radius: 7px; background: #fff; border: 1px solid var(--border-subtle); font-size: 11px; line-height: 1.35; color: var(--text-hi); }
.cv-msg { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-subtle); color: var(--text-mid); font-size: 11.5px; line-height: 1.45; }
.cv-msg b { color: var(--text-hi); }
.cv-msg.you { justify-self: end; max-width: 86%; background: var(--bg-2); border-color: transparent; color: var(--text-hi); }
.cv-pill { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-subtle); font-size: 11px; color: var(--text-mid); }
.cv-pill svg { width: 12px; height: 12px; color: var(--success); }
.cv-prog { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cv-prog i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cv-btn { justify-self: end; padding: 5px 10px; border-radius: 7px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 600; }
.cv-vote { flex: none; display: grid; place-items: center; min-width: 30px; padding: 2px 0; border-radius: 6px; border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 700; color: var(--accent); }
.cv-logo svg { width: 16px; height: 16px; }
.cv-doc h5 { margin: 0; font-family: var(--display); font-size: 15px; color: var(--text-hi); }
.cv-line { height: 7px; border-radius: 4px; background: var(--bg-2); }
.cv-split { display: grid; grid-template-columns: 34% 1fr; gap: 10px; }
.cv-tree { display: grid; gap: 5px; align-content: start; font-size: 11px; color: var(--text-mid); }
.cv-tree span { padding: 4px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tree span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cv-tree span.sub { padding-left: 16px; }

@media (max-width: 900px) {
  .s-gl-head { padding: 44px 20px 0; }
  .s-gl-head h1 { font-size: 36px; }
  .s-filters { padding: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .s-filters button { flex: none; }
  .s-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px; gap: 32px 20px; }
  .s-post.feat { grid-template-columns: 1fr; gap: 20px; }
  .s-post.feat h2 { font-size: 27px; }
}
@media (max-width: 600px) {
  .s-gl { grid-template-columns: 1fr; }
  .cv { padding: 20px 20px 0; }
}
