/* HandoverAI Workspace. Ink on white, one blue, Geist. The flow canvas is the one loud thing on each
   page; everything around it is quiet: hairlines, small type, no decoration that does not say something. */
@font-face { font-family: "Geist"; src: url(/fonts/Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0f1a26; --ink-2: #2b3744; --text-2: #4f5b68; --muted: #6b7682; --faint: #98a1ab;
  --blue: #2f6bd4; --blue-text: #2a62c4; --blue-tint: #e8f0fb; --blue-soft: #d5e3f8;
  --paper: #f6f8fb; --grey-tint: #eef1f5; --line: rgba(15, 26, 38, 0.12); --line-soft: rgba(15, 26, 38, 0.07);
  --green: #1f9a66; --green-tint: #e3f4ea; --amber: #d9731c; --amber-tint: #fdf0e2; --red: #c93b3b; --red-tint: #fbe9e9; --violet: #7a5ad8; --violet-tint: #eeeafa;
  --shadow: 0 1px 2px rgba(15, 26, 38, 0.06), 0 10px 28px rgba(23, 50, 92, 0.08); --shadow-lift: 0 2px 4px rgba(15, 26, 38, 0.08), 0 18px 44px rgba(23, 50, 92, 0.18);
  --font: "Geist", system-ui, "Segoe UI", Helvetica, Arial, sans-serif; --r: 14px; --side: 236px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; } ul, ol { padding: 0; list-style: none; }
h1 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 500; line-height: 1.3; }
a { color: inherit; } a.plain { text-decoration: none; } a.plain:hover { color: var(--blue-text); }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
svg.ic, .btn svg, .menu svg, .side-toggle svg, .ib svg, .fc-chip svg, .tabs svg, .fc-tools svg, .fc-add svg, .fc-add-col svg, .fc-newphase svg, .fc-first svg, .fc-grip, .chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .num { font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; }
.person { display: flex; gap: 8px; align-items: flex-start; } .person .avatar { margin-top: 1px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; align-content: start; }
.loading { color: var(--muted); padding: 40px; }

/* Shell */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 0.2s ease; }
.side-collapsed { --side: 68px; }
.side { position: sticky; top: 0; z-index: 5; height: 100vh; border-right: 1px solid var(--line-soft); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 22px; background: #fff; }
.brand-block { display: grid; gap: 4px; padding: 0 10px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.brand { display: flex; text-decoration: none; min-width: 0; }
.brand-mark { display: none; width: 24px; height: 24px; }
.side-toggle { flex: none; width: 30px; height: 30px; margin-right: -8px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.side-toggle svg { width: 18px; height: 18px; } .side-toggle:hover { background: var(--paper); color: var(--ink); }
.brand-logo { height: 22px; width: auto; }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.menu { display: grid; gap: 2px; }
.menu a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: 14.5px; }
.menu a:hover { background: var(--paper); color: var(--ink); }
.menu a.on { background: var(--grey-tint); color: var(--ink); font-weight: 500; }
.menu a.on svg { color: var(--blue); }
.count { margin-left: auto; display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 500; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; position: relative; display: grid; gap: 6px; }
.menu-search { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin-bottom: 4px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-size: 14.5px; width: 100%; text-align: left; } .menu-search:hover { background: var(--paper); color: var(--ink); } .menu-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; } .menu-search kbd { margin-left: auto; }
kbd { font: inherit; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.tenant-logo { max-height: 26px; max-width: 168px; display: block; }
.powered { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); padding: 2px 12px 0; } .powered svg { width: 14px; height: 14px; }
.modal { position: fixed; inset: 0; background: rgba(15, 26, 38, 0.35); display: grid; justify-items: center; align-content: start; padding: 12vh 16px 0; z-index: 100; } .modal[hidden] { display: none; }
.modal-box { width: min(640px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); overflow: hidden; }
.search-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); } .search-in svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; color: var(--muted); flex: none; } .search-in input { flex: 1; border: 0; font-size: 16px; outline: none; background: none; min-width: 0; }
.search-res { max-height: 60vh; overflow: auto; padding: 6px; } .search-hint { padding: 14px 12px; color: var(--muted); font-size: 13.5px; }
.sr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: inherit; } .sr.on, .sr:hover { background: var(--paper); } .sr .kind { font-size: 11.5px; color: var(--muted); padding-top: 3px; } .sr b { font-weight: 500; display: block; font-size: 14px; } .sr small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.help-box { padding: 18px 22px 20px; display: grid; gap: 12px; } .help-box h2 { font-size: 16px; } .help-box table { font-size: 13.5px; border-collapse: collapse; } .help-box td { padding: 5px 0; vertical-align: top; } .help-box td:first-child { width: 130px; color: var(--muted); }
.toolbar .readonly { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); max-width: 360px; line-height: 1.35; } .toolbar .readonly svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card.access { margin-bottom: 20px; }
.doc-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; } .doc-tools .spacer { flex: 1; }
.doc-page { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 56px 64px; max-width: 920px; margin: 0 auto; box-shadow: var(--shadow); }
.sop { font-size: 14px; line-height: 1.55; color: var(--ink); } .sop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; } .sop-org { font-weight: 500; } .sop-kind { color: var(--muted); font-size: 12.5px; margin-top: 2px; } .sop-num { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; } .sop-num span { font-weight: 400; color: var(--muted); font-size: 12.5px; } .sop-logo { height: 28px; width: auto; }
.sop h1 { font-size: 24px; margin-bottom: 16px; } .sop h2 { font-size: 16px; margin: 28px 0 10px; } .sop h3 { font-size: 13.5px; margin: 14px 0 6px; }
.sop-kv { width: 100%; border-collapse: collapse; } .sop-kv th { text-align: left; width: 26%; font-weight: 400; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 13px; } .sop-kv td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sop-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; } .sop-table th, .sop-table td { border: 1px solid var(--line-soft); padding: 6px 8px; vertical-align: top; text-align: left; overflow-wrap: anywhere; } .sop-table th { background: var(--grey-tint); font-weight: 500; }
.sop ul { padding-left: 18px; display: grid; gap: 4px; } .sop-fig { margin: 8px 0 16px; } .sop-fig img { width: 100%; border: 1px solid var(--line-soft); border-radius: 8px; } .sop-fig figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; } .sop-foot { margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
@media print { .side, .doc-tools, .toasts, .modal { display: none !important; } .app { display: block; } .main { padding: 0; } .doc-page { border: 0; box-shadow: none; padding: 0; max-width: none; } .sop h2 { break-after: avoid; } .sop-table tr, .sop-fig { break-inside: avoid; } @page { margin: 18mm 16mm; } }
.actor-label { font-size: 12px; color: var(--muted); padding: 0 12px; }
.actor { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.actor:hover { border-color: var(--line); background: var(--paper); }
.actor .who { display: grid; min-width: 0; line-height: 1.25; }
.actor .who b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actor .who small { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.actor .chev { margin-left: auto; color: var(--muted); width: 16px; height: 16px; }
.actor-menu { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; z-index: 60; max-height: 70vh; overflow: auto; }
.actor-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 8px; border: 0; background: none; border-radius: 9px; font-size: 13.5px; }
.actor-menu button:hover { background: var(--paper); } .actor-menu button.on { background: var(--blue-tint); }
.actor-menu small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grey-tint); color: var(--ink-2); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: 0.01em; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; } .avatar.admin { background: var(--ink); color: #fff; }
.avatar.c1 { background: #dbe8fb; color: #1f4e9c; } .avatar.c2 { background: #dff3e8; color: #176a46; } .avatar.c3 { background: #fbe8d6; color: #8f4a0d; } .avatar.c4 { background: #ebe5fa; color: #4f3a9c; } .avatar.c5 { background: #fbe1e1; color: #8e2626; } .avatar.c6 { background: #e2f0f5; color: #175a70; } .avatar.c7 { background: #f3e9d8; color: #6f5312; }
.main { padding: 26px 32px 80px; min-width: 0; }
@media (min-width: 901px) {
  .side-collapsed .side { padding: 18px 10px 16px; gap: 18px; }
  .side-collapsed .brand-row { flex-direction: column; align-items: center; gap: 10px; }
  .side-collapsed .brand-block { padding: 0; } .side-collapsed .brand-logo, .side-collapsed .brand-sub { display: none; } .side-collapsed .brand-mark { display: block; } .side-collapsed .side-toggle { margin: 0; }
  .side-collapsed .menu a { justify-content: center; padding: 11px 0; } .side-collapsed .menu a span:not(.count) { display: none; }
  .side-collapsed .count { position: absolute; top: 4px; right: 5px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  .side-collapsed .actor-label { display: none; } .side-collapsed .actor { padding: 6px; justify-content: center; border-color: transparent; } .side-collapsed .actor .who, .side-collapsed .actor .chev { display: none; }
  .side-collapsed .actor-menu { right: auto; width: 280px; }
  .side-collapsed .menu-search { justify-content: center; padding: 11px 0; } .side-collapsed .menu-search span, .side-collapsed .menu-search kbd { display: none; } .side-collapsed .tenant-logo, .side-collapsed .powered { display: none; }
}
@media (max-width: 900px) {
  .side-toggle { display: none; }
  .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 16px; }
  .menu { display: flex; flex-wrap: wrap; gap: 2px; } .menu a span:not(.count) { display: none; } .menu a { padding: 8px; } .side-foot { margin-left: auto; width: 240px; } .actor-label { display: none; } .main { padding: 18px 16px 60px; }
}

/* Page framing */
.page-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.page-head .lead { color: var(--text-2); max-width: 64ch; margin-top: 6px; font-size: 14.5px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--text-2); } .crumbs a:hover { color: var(--blue-text); } .crumbs svg { width: 14px; height: 14px; color: var(--faint); }
.section { margin-top: 32px; } .section > h2 { margin-bottom: 14px; } .section > h2 .small { font-weight: 400; color: var(--muted); margin-left: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-size: 14px; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: #243244; } .btn svg { width: 16px; height: 16px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { border-color: var(--ink); background: #fff; }
.btn.soft { background: var(--grey-tint); color: var(--ink); border-color: transparent; } .btn.soft:hover { background: #e3e8ee; }
.btn.accent { background: var(--blue); border-color: var(--blue); } .btn.accent:hover { background: #2a5fbd; }
.btn.danger { background: #fff; color: var(--red); border-color: var(--line); } .btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 5px 12px; font-size: 13px; } .btn.sm svg { width: 14px; height: 14px; }
.btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); }
.ib:hover { background: var(--grey-tint); color: var(--ink); } .ib[disabled] { opacity: 0.35; pointer-events: none; }
.ib.framed { border-color: var(--line); background: #fff; }

/* Pills, chips, dots */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--grey-tint); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.pill.blue { background: var(--blue-tint); color: var(--blue-text); } .pill.green { background: var(--green-tint); color: var(--green); } .pill.amber { background: var(--amber-tint); color: var(--amber); } .pill.red { background: var(--red-tint); color: var(--red); } .pill.violet { background: var(--violet-tint); color: var(--violet); } .pill.ink { background: var(--ink); color: #fff; }
.pill.outline { background: #fff; border: 1px solid var(--line); font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; } .dot.blue { background: var(--blue); } .dot.green { background: var(--green); } .dot.amber { background: var(--amber); } .dot.red { background: var(--red); } .dot.violet { background: var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips span { background: var(--grey-tint); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.bar { height: 6px; background: var(--grey-tint); border-radius: 3px; width: 80px; overflow: hidden; display: inline-block; vertical-align: middle; } .bar i { display: block; height: 100%; background: var(--blue); }
.score { display: inline-flex; gap: 3px; vertical-align: middle; } .score i { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-tint); } .score i.on { background: var(--blue); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 4px 0 22px; }
.stats div { display: grid; gap: 0; } .stats b { font-weight: 500; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; } .stats span { font-size: 12.5px; color: var(--muted); }

/* Search and filters */
.search { position: relative; } .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; }
.search input { width: 260px; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); } .filter button .num { color: var(--muted); } .filter button.on .num { color: rgba(255, 255, 255, 0.7); }

/* Map: team lanes with cards and handover arrows drawn over them */
.map { position: relative; }
.map-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.map-links path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity 0.15s; }
.map-links path.hot { opacity: 1; }
.map.hovering .wfc:not(.hot) { opacity: 0.5; }
.map-links .mk { fill: var(--violet); }
.lane-team { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.lane-team:first-of-type { border-top: 0; padding-top: 6px; }
.lane-side { display: grid; gap: 10px; align-content: start; position: sticky; top: 20px; }
.lane-side h2 { font-size: 16px; } .lane-side .people { display: flex; flex-wrap: wrap; gap: 4px; }
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.wfc { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; padding: 8px 8px 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, opacity 0.15s; min-width: 0; }
.wfc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.wfc.hot { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), var(--shadow); }
.wfc .foot .links { display: inline-flex; align-items: center; gap: 3px; color: var(--violet); }
.wfc.quiet { background: var(--paper); box-shadow: none; }
.wfc .title { font-size: 14.5px; line-height: 1.3; padding: 11px 12px; border-radius: 10px; background: var(--grey-tint); color: var(--ink); margin-bottom: 2px; }
.wfc.quiet .title { background: #e4e8ee; }
.wfc .owner, .wfc .foot { margin: 0 8px; } .wfc .mini { margin: 0 8px; width: calc(100% - 16px); }
.wfc .owner { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.wfc .mini { display: block; width: 100%; height: auto; color: var(--ink-2); }
.wfc .foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.wfc .foot .pill { font-size: 11.5px; padding: 1px 8px; }
.wfc .alert { position: absolute; top: 10px; right: 10px; }
.map-list .table td { vertical-align: middle; }
@media (max-width: 1100px) { .lane-team { grid-template-columns: 1fr; gap: 12px; } .lane-side { position: static; } }

/* Workflow page */
.wf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; margin-bottom: 20px; }
.wf-head .who { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-top: 10px; }
.wf-head .pills { margin-top: 12px; }
.pop { position: relative; }
.pop-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; z-index: 30; }
.pop-menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
.pop-menu button:hover { background: var(--paper); } .pop-menu button.danger { color: var(--red); } .pop-menu button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
/* In the editor the canvas and the form panel share one height; the panel scrolls inside. */
.stage.edit { --edit-h: max(520px, calc(100vh - 200px)); grid-template-columns: minmax(0, 1fr) 360px; }
.stage.edit .insp { height: var(--edit-h); max-height: none; }
.stage.view { display: block; position: relative; }
/* Canvas and panel share one height so their bottoms line up; the panel scrolls inside when its questions run long. */
.stage.review-stage { --review-h: max(480px, calc(100vh - 300px)); grid-template-columns: minmax(0, 1fr) 320px; }
.review-stage .insp { height: var(--review-h); max-height: none; }
.stage-canvas { position: relative; min-width: 0; }
.insp.float { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 328px; max-height: none; border-color: var(--line); box-shadow: var(--shadow-lift); z-index: 8; }
.stage.view.has-insp .fc-tools { right: 352px; }
.edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.edit-bar .dirty { font-size: 12.5px; color: var(--muted); } .edit-bar .dirty b { color: var(--amber); font-weight: 500; }
.edit-bar .spacer { flex: 1; }
.edit-bar input.note { flex: 1; min-width: 160px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; }
.banner { background: var(--blue-tint); border-radius: 12px; padding: 11px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.banner.warn { background: var(--amber-tint); } .banner.ok { background: var(--green-tint); } .banner.bad { background: var(--red-tint); }
@media (max-width: 1250px) { .wf-head { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .stage, .stage.edit, .stage.review-stage { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .insp.float { position: static; width: auto; margin-top: 12px; box-shadow: none; } .stage.view.has-insp .fc-tools { right: 12px; } }

/* Inspector */
.insp { border: 1px solid var(--line-soft); border-radius: var(--r); background: #fff; display: grid; gap: 14px; align-content: start; padding: 16px 18px; min-height: 200px; max-height: calc(100vh - 120px); overflow: auto; position: sticky; top: 16px; }
.insp .kicker + h3, .insp .head + h3 { margin-top: -4px; }
.insp .head { display: flex; align-items: center; gap: 8px; } .insp .head .kicker { font-size: 12.5px; color: var(--muted); } .insp .head .ib { margin-left: auto; }
.insp h3 { font-size: 16px; line-height: 1.3; text-wrap: balance; }
.insp .kv { display: grid; grid-template-columns: 1fr; gap: 10px; } .insp .kv > div { display: grid; gap: 2px; } .insp .kv dt, .insp .kv .k { font-size: 12px; color: var(--muted); } .insp .kv dd, .insp .kv .v { font-size: 14px; }
.insp .field { display: grid; gap: 4px; }
.insp .field label { font-size: 12px; color: var(--muted); }
.insp input, .insp textarea, .insp select { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; }
.insp input:focus, .insp textarea:focus, .insp select:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.insp textarea { min-height: 64px; resize: vertical; } .insp textarea.tall { min-height: 110px; }
.insp .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.insp .ba { display: grid; gap: 6px; } .insp .ba .before { text-decoration: line-through; color: var(--red); background: var(--red-tint); padding: 4px 8px; border-radius: 6px; font-size: 13px; } .insp .ba .after { background: var(--green-tint); padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.insp .verdict { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; background: var(--paper); } .insp .verdict.automate { background: var(--blue-tint); } .insp .verdict.assist { background: var(--green-tint); }
.insp .empty-note { color: var(--muted); font-size: 13.5px; }
.insp .sec { font-size: 12px; color: var(--muted); margin-bottom: 4px; } .insp .detail { font-size: 14px; line-height: 1.5; }
.insp .facts { display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: 12px; }
.insp .facts .f { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line-soft); align-items: start; } .insp .facts .f:first-child { border-top: 0; }
.insp .facts .k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding-top: 1px; } .insp .facts .k svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.insp .facts .v { font-size: 13.5px; line-height: 1.45; } .insp .facts .src { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.insp .rule { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 13.5px; line-height: 1.45; } .insp .rule svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--text-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.insp .stepnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.insp .sn { display: flex; align-items: center; gap: 6px; text-align: left; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; font-size: 12.5px; line-height: 1.3; color: var(--ink); min-width: 0; } .insp .sn:hover { background: var(--paper); border-color: var(--line); }
.insp .sn span { display: grid; gap: 1px; min-width: 0; } .insp .sn small { font-size: 11px; color: var(--muted); } .insp .sn svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; } .insp .sn.next { justify-content: space-between; } .insp .sn.next span { text-align: right; justify-items: end; }
.insp .list { display: grid; gap: 6px; } .insp .list li { padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 13.5px; }

/* Jump list in the approvals inspector */
.jumps { display: grid; gap: 4px; }
.jump { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line-soft); background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 13px; }
.jump:hover { border-color: var(--line); background: var(--paper); }
/* The flow canvas */
.fc { position: relative; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--paper); background-image: radial-gradient(rgba(15, 26, 38, 0.16) 1px, transparent 1px); background-size: 22px 22px; overflow: hidden; user-select: none; touch-action: none; cursor: grab; outline-offset: -2px; }
.fc.panning { cursor: grabbing; } .fc.edit { cursor: default; } .fc.edit .fc-world { cursor: grab; } .fc.edit.panning .fc-world { cursor: grabbing; }
.fc-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.fc-edges { position: absolute; left: 0; top: 0; overflow: visible; color: rgba(15, 26, 38, 0.55); }
.fc-band { fill: rgba(15, 26, 38, 0.035); } .fc-band.alt { fill: rgba(47, 107, 212, 0.045); }
.fc-edge { fill: none; stroke: currentColor; stroke-width: 1.6; } .fc-edge.ho { stroke: var(--violet); stroke-opacity: 0.8; color: var(--violet); } .fc-edge.dashed { stroke-dasharray: 4 5; }
.fc-cond { fill: #fff; stroke: var(--amber); stroke-width: 1.6; }
.fc-nodes { position: absolute; left: 0; top: 0; }
.fc-node { position: absolute; left: 0; top: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; box-shadow: 0 1px 2px rgba(15, 26, 38, 0.05), 0 4px 14px rgba(23, 50, 92, 0.07); transition: box-shadow 0.15s, border-color 0.15s; display: grid; gap: 7px; font-size: 13.5px; line-height: 1.4; }
.fc.dragging-any .fc-node, .fc.dragging-any .fc-phase, .fc.dragging-any .fc-newphase { transition: transform 0.22s cubic-bezier(.2,.8,.2,1); }
.fc.view .fc-node, .fc.diff .fc-node { cursor: pointer; } .fc.edit .fc-node.step { cursor: grab; }
.fc-node:hover { border-color: rgba(15, 26, 38, 0.3); }
.fc-node.selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), 0 6px 18px rgba(23, 50, 92, 0.12); }
.fc-node.dragging { transition: none; cursor: grabbing; z-index: 20; box-shadow: var(--shadow-lift); transform-origin: center; }
.fc.dragging-any .fc-node:not(.dragging) { pointer-events: none; }
.fc-placeholder { position: absolute; left: 0; top: 0; border: 2px dashed var(--blue); border-radius: 12px; background: var(--blue-tint); opacity: 0.6; transition: transform 0.22s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.fc-row { display: flex; align-items: flex-start; gap: 9px; }
.fc-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.fc-title { font-weight: 500; font-size: 14px; line-height: 1.35; min-width: 0; flex: 1; }
.fc-grip { margin-left: auto; color: var(--faint); width: 16px; height: 16px; margin-top: 2px; }
.fc-detail { color: var(--text-2); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-chip { display: inline-flex; align-items: flex-start; gap: 5px; padding: 3px 8px 3px 7px; border-radius: 10px; font-size: 11.5px; line-height: 1.3; background: var(--grey-tint); color: var(--text-2); max-width: 100%; text-align: left; }
.fc-chip svg { width: 12px; height: 12px; margin-top: 1px; }
.fc-chip.when { background: var(--amber-tint); color: var(--amber); } .fc-chip.art { background: var(--violet-tint); color: var(--violet); } .fc-chip.note { background: #fff; border: 1px dashed var(--line); }
.fc-node.start, .fc-node.end { border-radius: 24px; padding: 13px 22px; gap: 2px; text-align: left; }
.fc-node.start { border-color: var(--green); background: #fff; } .fc-node.start .fc-k { color: var(--green); }
.fc-node.end { border-color: var(--ink); background: var(--ink); color: #fff; } .fc-node.end .fc-k { color: rgba(255, 255, 255, 0.65); }
.fc-node.start.blank, .fc-node.end.blank { border-style: dashed; } .fc-node.end.blank { background: #fff; color: var(--ink); } .fc-node.end.blank .fc-k { color: var(--muted); }
.insp .ai-draft { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; background: var(--paper); } .insp .ai-draft summary { font-weight: 500; color: var(--ink); } .insp .ai-draft textarea { background: #fff; }
.fc-k { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.fc-t { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* The tab outline is the shape itself: a coloured body clipped to the arrow, with a white inner layer 1px smaller. A CSS border would be cut off along the point. */
.fc-node.handoff { border: 0; background: var(--violet); box-shadow: none; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 10px; padding: 14px 33px 14px 17px; }
.fc-node.handoff::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: #fff; border-radius: 9px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.fc-node.handoff.in { clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); padding: 14px 17px 14px 33px; }
.fc-node.handoff.in::before { clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.fc-node.handoff:hover { background: #5b3fc2; } .fc-node.handoff.selected { background: var(--blue); box-shadow: none; }
.fc-node.handoff.added { background: var(--green); box-shadow: none; } .fc-node.handoff.changed { background: var(--amber); box-shadow: none; }
.fc-node.handoff .fc-diff { top: 8px; right: 30px; } .fc-node.handoff.in .fc-diff { right: 14px; }
.fc-node.handoff .fc-k { color: var(--violet); } .fc-node.handoff a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 2px; }
.fc-node.handoff .fc-chip { justify-self: start; }
.fc-verdict { justify-self: start; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--grey-tint); color: var(--text-2); }
.fc-verdict.automate { background: var(--blue); color: #fff; } .fc-verdict.assist { background: var(--green-tint); color: var(--green); }
.fc-node.v-automate { border-color: var(--blue); } .fc-node.v-assist { border-color: var(--green); }
.fc-diff { position: absolute; top: -10px; right: 12px; font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; color: #fff; background: var(--ink); letter-spacing: 0.02em; }
.fc-diff.added { background: var(--green); } .fc-diff.changed { background: var(--amber); } .fc-diff.removed { background: var(--red); }
.fc-node.added { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); } .fc-node.changed { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.fc-node.removed { border-color: var(--red); border-style: dashed; opacity: 0.75; background: #fff; } .fc-node.removed .fc-title, .fc-node.removed .fc-t { text-decoration: line-through; text-decoration-color: var(--red); } .fc-node.removed .fc-n { background: var(--red); }
.fc-node.handoff.removed { clip-path: none; border: 1px dashed var(--red); background: #fff; padding: 13px 15px; } .fc-node.handoff.removed::before { display: none; } .fc-node.handoff.removed .fc-diff { top: -10px; right: 12px; }
.fc-phase { position: absolute; left: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 20px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fc-phase-name { padding: 2px 8px; border-radius: 6px; margin-left: -8px; } .fc.edit .fc-phase-name { cursor: text; } .fc.edit .fc-phase-name:hover, .fc-phase-name:focus { background: #fff; outline: 1px solid var(--line); color: var(--ink); }
.fc-add-col { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; } .fc-add-col:hover { color: var(--blue); border-color: var(--blue); } .fc-add-col svg { width: 13px; height: 13px; }
.fc-add { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.12s; z-index: 5; }
.fc-add svg { width: 12px; height: 12px; } .fc:hover .fc-add { opacity: 0.9; } .fc-add:hover { color: #fff; background: var(--blue); border-color: var(--blue); opacity: 1 !important; }
.fc-newphase { position: absolute; left: 0; top: 0; width: 180px; border: 1.5px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.fc-newphase:hover, .fc-newphase.hot { border-color: var(--blue); color: var(--blue); background: rgba(232, 240, 251, 0.6); }
.fc-first { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px dashed var(--line); background: #fff; color: var(--text-2); font-size: 13.5px; width: 236px; justify-content: center; } .fc-first:hover { border-color: var(--blue); color: var(--blue); }
.fc-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); z-index: 6; }
.fc-tools button { width: 30px; height: 30px; border: 0; background: none; border-radius: 7px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; } .fc-tools button:hover { background: var(--grey-tint); color: var(--ink); } .fc-tools svg { width: 15px; height: 15px; }
.fc-hint { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); z-index: 6; pointer-events: none; }
.fc-hint:empty { display: none; }
.fc { touch-action: none; }

/* Step shapes. Clipped shapes draw their outline as a coloured body with a white inner layer, like the handover tab. */
.fc-node.k-wait { border-radius: 999px; padding: 13px 22px; }
.fc-node.k-approval { border-left-width: 5px; border-left-color: var(--green); }
.fc-node.k-decision, .fc-node.k-document { border: 0; background: var(--line); box-shadow: none; }
.fc-node.k-decision::before, .fc-node.k-document::before { content: ''; position: absolute; inset: 1px; z-index: -1; background: #fff; }
.fc-node.k-decision, .fc-node.k-decision::before { clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); border-radius: 6px; } .fc-node.k-decision { padding: 13px 26px; }
.fc-node.k-document, .fc-node.k-document::before { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); border-radius: 10px; }
.fc-node.k-document::after { content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, var(--line) 50%, var(--line) calc(50% + 1px), var(--grey-tint) calc(50% + 1px)); }
.fc-node.k-decision.selected, .fc-node.k-document.selected { background: var(--blue); } .fc-node.k-decision.added, .fc-node.k-document.added { background: var(--green); } .fc-node.k-decision.changed, .fc-node.k-document.changed { background: var(--amber); }
.fc-node.k-decision:hover, .fc-node.k-document:hover { background: rgba(15, 26, 38, 0.3); }
.fc-menu { position: absolute; z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; }
.fc-menu button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); } .fc-menu button:hover { background: var(--paper); } .fc-menu button.danger { color: var(--red); }
.fc-menu-sec { font-size: 11.5px; color: var(--muted); padding: 8px 10px 2px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.fc-menu-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 6px 4px; } .fc-menu-row button { padding: 4px 9px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 12px; } .fc-menu-row button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatches { display: flex; gap: 6px; align-items: center; min-height: 36px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; } .sw.on { box-shadow: 0 0 0 2px var(--ink); } .sw.none { background: #fff; position: relative; } .sw.none::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: var(--red); transform: rotate(-45deg); }
.fc-menu-row .sw { width: 20px; height: 20px; border-radius: 50%; padding: 0; }
.sw.blue { background: #2f6bd4; }
.fc-node.c-blue { background: #e8f0fb; border-color: #2f6bd4; } .fc-node.c-blue .fc-n { background: #2f6bd4; } .fc-node.c-blue.k-approval { border-left-color: #2f6bd4; }
.fc-node.c-blue.k-decision, .fc-node.c-blue.k-document { background: #2f6bd4; } .fc-node.c-blue.k-decision::before, .fc-node.c-blue.k-document::before { background: #e8f0fb; }
.sw.green { background: #1f9a66; }
.fc-node.c-green { background: #e3f4ea; border-color: #1f9a66; } .fc-node.c-green .fc-n { background: #1f9a66; } .fc-node.c-green.k-approval { border-left-color: #1f9a66; }
.fc-node.c-green.k-decision, .fc-node.c-green.k-document { background: #1f9a66; } .fc-node.c-green.k-decision::before, .fc-node.c-green.k-document::before { background: #e3f4ea; }
.sw.amber { background: #d9731c; }
.fc-node.c-amber { background: #fdf0e2; border-color: #d9731c; } .fc-node.c-amber .fc-n { background: #d9731c; } .fc-node.c-amber.k-approval { border-left-color: #d9731c; }
.fc-node.c-amber.k-decision, .fc-node.c-amber.k-document { background: #d9731c; } .fc-node.c-amber.k-decision::before, .fc-node.c-amber.k-document::before { background: #fdf0e2; }
.sw.red { background: #c93b3b; }
.fc-node.c-red { background: #fbe9e9; border-color: #c93b3b; } .fc-node.c-red .fc-n { background: #c93b3b; } .fc-node.c-red.k-approval { border-left-color: #c93b3b; }
.fc-node.c-red.k-decision, .fc-node.c-red.k-document { background: #c93b3b; } .fc-node.c-red.k-decision::before, .fc-node.c-red.k-document::before { background: #fbe9e9; }
.sw.violet { background: #7a5ad8; }
.fc-node.c-violet { background: #eeeafa; border-color: #7a5ad8; } .fc-node.c-violet .fc-n { background: #7a5ad8; } .fc-node.c-violet.k-approval { border-left-color: #7a5ad8; }
.fc-node.c-violet.k-decision, .fc-node.c-violet.k-document { background: #7a5ad8; } .fc-node.c-violet.k-decision::before, .fc-node.c-violet.k-document::before { background: #eeeafa; }
.sw.grey { background: #6b7a8c; }
.fc-node.c-grey { background: #eef1f5; border-color: #6b7a8c; } .fc-node.c-grey .fc-n { background: #6b7a8c; } .fc-node.c-grey.k-approval { border-left-color: #6b7a8c; }
.fc-node.c-grey.k-decision, .fc-node.c-grey.k-document { background: #6b7a8c; } .fc-node.c-grey.k-decision::before, .fc-node.c-grey.k-document::before { background: #eef1f5; }
.fc-lbl rect { fill: #fff; stroke: var(--line); } .fc-lbl text { font-size: 11px; font-weight: 500; fill: var(--text-2); }
.fc-export-menu { position: absolute; right: 12px; bottom: 60px; top: auto; left: auto; z-index: 9; min-width: 180px; }
.fc-leg { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px 1px 6px; }
.fc-leg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.fc-leg.added::before { background: var(--green); } .fc-leg.changed::before { background: var(--amber); } .fc-leg.removed::before { background: var(--red); } .fc-leg.automate::before { background: var(--blue); } .fc-leg.assist::before { background: var(--green); }
@media (prefers-reduced-motion: reduce) { .fc-node, .fc-placeholder, .fc-add, .wfc { transition: none; } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin: 28px 0 20px; }
.tabs button { border: 0; background: none; padding: 9px 14px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--ink); } .tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.tabs button .num { color: var(--muted); font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; } .seg button.on { background: var(--ink); color: #fff; } .seg button svg { width: 14px; height: 14px; }

/* Content blocks */
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card.lift { box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; } .card h3 a:hover { color: var(--blue-text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } @media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.list { display: grid; gap: 8px; } .list li { padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 14px; background: #fff; }
.kv { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 10px 18px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.prose p { margin-bottom: 10px; max-width: 72ch; } .prose p:last-child { margin-bottom: 0; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); display: grid; gap: 10px; justify-items: center; }
.empty .btn { margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; } .table a { text-decoration: none; color: var(--ink); } .table a:hover { color: var(--blue-text); }
.table tr.rowlink { cursor: pointer; } .table tr.rowlink:hover td { background: var(--paper); }
.twrap { overflow-x: auto; }
.diff { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.diff td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; } .diff tr:last-child td { border-bottom: 0; }
.diff .k { white-space: nowrap; color: var(--muted); width: 1%; font-size: 12.5px; } .diff .k b { display: block; color: var(--ink); font-weight: 500; }
.diff .before { background: var(--red-tint); } .diff .after { background: var(--green-tint); } .diff .before:empty, .diff .after:empty { background: transparent; }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; } .field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.field textarea { min-height: 80px; resize: vertical; } .field textarea.tall { min-height: 220px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 720px) { .cols2 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; } .check input { width: 16px; height: 16px; accent-color: var(--blue); }

/* Changes */
.change-form { display: grid; gap: 14px; }
.drop { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 6px; background: var(--paper); }
.drop textarea { width: 100%; min-height: 220px; border: 0; background: #fff; border-radius: 10px; padding: 14px 16px; font-size: 14px; resize: vertical; }
.drop textarea:focus { outline: 2px solid var(--blue); }
.radio-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-pills label { position: relative; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; background: #fff; }
.radio-pills label:hover { border-color: var(--ink); }
.radio-pills label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.radio-pills label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.radio-pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.steps-bar { display: flex; align-items: center; gap: 0; margin: 4px 0 20px; flex-wrap: wrap; }
.steps-bar .st { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.steps-bar .st i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.steps-bar .st i svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps-bar .st.done { color: var(--ink); } .steps-bar .st.done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps-bar .st.now { color: var(--blue-text); font-weight: 500; } .steps-bar .st.now i { border-color: var(--blue); color: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.steps-bar .st.bad i { border-color: var(--red); color: var(--red); }
.steps-bar .ln { width: 36px; height: 1px; background: var(--line); margin: 0 10px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 212, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(47, 107, 212, 0); } }
.impact { display: grid; gap: 8px; }
.impact .row-i { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.impact .row-i.yes { border-color: rgba(47, 107, 212, 0.35); } .impact .row-i.no { opacity: 0.7; }
.impact .why { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.log { background: var(--grey-tint); border-radius: 10px; padding: 12px 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; max-height: 240px; overflow: auto; color: var(--text-2); }

/* Approvals: list on the left, the selected proposal on the right */
/* The queue of proposals is one line of tabs under the names of their changes; the flow below keeps the full width. */
.rqueue-wrap { margin-bottom: 18px; }
.rq-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--muted); } .rq-toggle b { color: var(--ink); font-weight: 500; } .rq-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; } .rq-toggle:hover { color: var(--ink); }
.rqueue-wrap.closed .rq-toggle svg { transform: rotate(-90deg); } .rqueue-wrap.closed .rqueue { display: none; }
.rqueue { display: grid; grid-template-columns: minmax(160px, max-content) minmax(0, 1fr); gap: 8px 20px; align-items: center; margin-top: 10px; }
.rq-h { font-size: 12px; color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid var(--line-soft); }
.rq-label { font-size: 13.5px; color: var(--ink); max-width: 320px; display: grid; gap: 1px; min-width: 0; } .rq-label, .rq-label small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rq-label small { font-size: 12px; color: var(--muted); }
.rq-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-tab { display: inline-flex; align-items: baseline; gap: 8px; max-width: 360px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: #fff; font-size: 13px; color: var(--ink); } .rq-tab .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rq-tab small { color: var(--muted); white-space: nowrap; font-size: 11.5px; } .rq-tab:hover { border-color: var(--line); }
.rq-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); } .rq-tab.on small { color: rgba(255, 255, 255, 0.7); }
.rdetail { display: grid; gap: 16px; min-width: 0; }
.rdetail .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; }
.rdetail .head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; padding-top: 4px; }
.insp .why-sm { font-size: 13px; line-height: 1.5; color: var(--text-2); } .insp .why-sm .k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 1300px) { .rdetail .head { grid-template-columns: 1fr; } .rdetail .head-actions { justify-content: flex-start; padding-top: 0; } }
.q { background: var(--amber-tint); border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.q svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--amber); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.why { background: var(--paper); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.notebox { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); } .notebox textarea { width: 100%; min-height: 70px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }


/* History timeline */
.timeline { display: grid; gap: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .nav { display: flex; align-items: center; gap: 6px; } .pager .ib svg { width: 16px; height: 16px; }
.tl { display: grid; grid-template-columns: 150px 20px minmax(0, 1fr); gap: 0 14px; padding: 10px 0; position: relative; }
.tl .when { font-size: 12.5px; color: var(--muted); text-align: right; padding-top: 2px; }
.tl .mark { display: grid; justify-items: center; } .tl .mark::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 6px; z-index: 1; } .tl .mark::after { content: ""; width: 1px; flex: 1; background: var(--line); position: absolute; top: 24px; bottom: -10px; }
.tl:last-child .mark::after { display: none; }
.tl.grey .mark::before { background: var(--faint); } .tl.green .mark::before { background: var(--green); } .tl.amber .mark::before { background: var(--amber); } .tl.red .mark::before { background: var(--red); }
.tl .what { font-size: 14px; } .tl .what small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 720px) { .tl { grid-template-columns: 20px minmax(0, 1fr); } .tl .when { display: none; } }

/* Report */
.summary { columns: 2; column-gap: 40px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 1100px; padding: 4px 0 8px; }
@media (max-width: 900px) { .summary { columns: 1; } }
.defs { max-width: 940px; } .def { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 24px; padding: 13px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.def:last-child { border-bottom: 1px solid var(--line-soft); } .def .k { font-size: 14px; font-weight: 500; line-height: 1.4; } .def .k.muted { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; } .def .v { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.def .k.person { display: flex; gap: 8px; align-items: center; }
.defs.num .def { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
@media (max-width: 760px) { .def { grid-template-columns: 1fr; gap: 4px; } }
.start-head { display: flex; gap: 10px; align-items: flex-start; } .start-head .avatar { margin-top: 1px; } .start-head h3 { min-width: 0; }
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.lane { border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line-soft); background: var(--paper); }
.lane.now { background: var(--blue-tint); } .lane.next { background: #e6f5f1; } .lane.later { background: var(--violet-tint); }
.lane h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.lane .item { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; display: grid; gap: 6px; }
.lane .item select { font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; }
.lane .item.done { opacity: 0.65; }
.rank { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.rank .n { font-size: 18px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 90; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lift); display: flex; gap: 8px; align-items: center; }
.toast .act { margin-left: 4px; background: rgba(255, 255, 255, 0.16); color: #fff; border: 0; border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 500; } .toast .act:hover { background: rgba(255, 255, 255, 0.28); }
.toast svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast.err { background: var(--red); }
details.v summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.kbd { font: 11.5px ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); }

/* Interviews: rounds, people, generation */
.menu a.locked { opacity: 0.45; }
.prog { display: inline-flex; width: 110px; height: 6px; border-radius: 3px; background: var(--grey-tint); overflow: hidden; vertical-align: middle; } .prog i { display: block; height: 100%; } .prog .g { background: var(--green); } .prog .b { background: var(--blue); }
.strip { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: var(--r); font-size: 14px; } .strip b { font-weight: 500; font-size: 18px; margin-right: 4px; letter-spacing: -0.01em; }
.spin { width: 14px; height: 14px; border: 2px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; } @keyframes spin { to { transform: rotate(360deg); } }
.banner { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--paper); font-size: 14px; margin-bottom: 18px; } .banner.warn { background: var(--amber-tint); } .banner svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; } .banner.warn svg { color: var(--amber); } .banner .spin { flex: none; margin-top: 3px; } .banner .spin + span { flex: 1; }
.ppl td { padding: 4px 8px 4px 0; border-bottom: 0; } .ppl th { padding-right: 8px; } .ppl input { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: #fff; } .ppl input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; } .ppl .ib { width: 30px; height: 30px; } .ppl td:last-child { width: 36px; text-align: center; }
.rform .check { align-items: flex-start; } .rform .check input { margin-top: 4px; flex: none; }
.dialog-box { padding: 0; width: min(760px, 100%); } .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); } .dialog-head h2 { font-size: 15px; } .dialog-body iframe { width: 100%; height: 70vh; border: 0; display: block; }
.rec { display: grid; gap: 14px; } .rec-card { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 12px; } .rec-card h3 { font-size: 15px; }
.rec-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; font-size: 13.5px; margin: 0; } .rec-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; } .rec-facts dd { margin: 0; }
.rec-list { display: grid; gap: 4px; font-size: 13.5px; padding-left: 18px; margin: 4px 0 0; } ol.rec-list { list-style: decimal; } ul.rec-list { list-style: disc; }
.evid { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.tx { display: grid; gap: 8px; max-height: 70vh; overflow: auto; font-size: 13.5px; padding: 12px 14px; background: var(--paper); border-radius: 12px; margin: 0; } .tx .line { display: grid; grid-template-columns: 46px 1fr; gap: 10px; } .tx .t { color: var(--faint); font-size: 12px; padding-top: 1px; } .tx .ai { color: var(--text-2); } .tx .ai::before { content: "HandoverAI "; color: var(--blue-text); font-weight: 500; font-size: 12px; }

/* Files on the change form */
.drop.over { border-color: var(--blue); background: var(--blue-tint); }
.drop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 8px 10px; } .drop-head .small { max-width: 60ch; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; } .chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; max-width: 100%; } .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; } .chip.err { border-color: var(--red); color: var(--red); } .chip.busy { color: var(--muted); }
.chip button { border: 0; background: none; padding: 0; display: inline-flex; color: var(--muted); cursor: pointer; } .chip button:hover { color: var(--ink); }

/* AI report: the leaderboard */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stats button { border: 1px solid var(--line-soft); background: #fff; border-radius: 12px; padding: 10px 14px 9px; display: grid; gap: 1px; text-align: left; min-width: 118px; } .stats button b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; } .stats button span { font-size: 12.5px; color: var(--muted); } .stats button:hover { border-color: var(--ink); } .stats button.on { border-color: var(--ink); background: var(--grey-tint); }
.lb-head, .lb summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 292px 330px 60px; gap: 16px; align-items: center; }
.lb summary .pills { justify-content: flex-start; }
.lb-head { padding: 6px 0 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 500; } .lb-head .crit small { font-size: 10.5px; }
.lb { border-bottom: 1px solid var(--line-soft); } .lb summary { list-style: none; padding: 11px 0; cursor: pointer; } .lb summary::-webkit-details-marker { display: none; } .lb summary:hover { background: var(--paper); } .lb[open] summary { background: var(--paper); }
.lb .n { font-size: 18px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; } .lb[open] .n { color: var(--blue-text); }
.lb .who { display: grid; gap: 1px; min-width: 0; } .lb .who a { text-decoration: none; } .lb .who a:hover { color: var(--blue-text); }
.crit { display: flex; gap: 12px; } .crit .c { display: grid; gap: 3px; justify-items: center; min-width: 40px; } .crit small { font-size: 10px; color: var(--faint); letter-spacing: 0.02em; text-transform: uppercase; }
.pips { display: inline-flex; gap: 2px; } .pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-tint); } .pips i.on { background: var(--blue); } .pips.risk i.on { background: var(--amber); }
.lb .score { font-size: 18px; font-weight: 500; text-align: right; letter-spacing: -0.01em; } .lb .score small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 1px; }
.lb-body { padding: 10px 0 24px 50px; display: grid; gap: 20px; } .lb-body h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; } .lb-body h5 { font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 12px 0 3px; } .lb-body p { font-size: 14px; line-height: 1.5; }
.lead-s { font-size: 15px; color: var(--ink-2); max-width: 82ch; }
.lb-scores { display: grid; gap: 9px; } .lb-scores li { display: grid; grid-template-columns: 108px auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; } .lb-scores .k { color: var(--ink); } .lb-scores .pips { margin-top: 6px; } .lb-scores .note { color: var(--text-2); }
.lb-steps { display: grid; gap: 9px; } .lb-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px 8px; align-items: start; font-size: 13.5px; } .lb-steps .n2 { color: var(--muted); font-variant-numeric: tabular-nums; } .lb-steps .why { grid-column: 2 / 4; color: var(--text-2); font-size: 13px; }
.lb-approach { background: var(--paper); border-radius: var(--r); padding: 14px 16px 16px; } .lb-approach h4 { color: var(--ink); font-size: 14px; } .lb-approach ul { padding-left: 18px; list-style: disc; font-size: 13.5px; display: grid; gap: 3px; margin-top: 2px; }
.lb-cautions { padding-left: 18px; list-style: disc; font-size: 13.5px; display: grid; gap: 5px; color: var(--ink-2); }
@media (max-width: 1100px) { .lb-head, .lb summary { grid-template-columns: 30px minmax(0, 1fr) auto 50px; } .lb summary .pills { justify-content: flex-end; } .lb-head .crit, .lb summary .crit { display: none; } .lb-body { padding-left: 0; } }

/* Signed-in line above the role switcher */
.signed { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 12px 6px; min-width: 0; } .signed img { width: 18px; height: 18px; border-radius: 50%; flex: none; } .signed span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .signed button { border: 0; background: none; padding: 0; color: var(--blue-text); font-size: 12px; cursor: pointer; flex: none; } .signed button:hover { text-decoration: underline; }
.side-collapsed .signed { display: none; }

/* The assessment before it is bought: the real workflows, verdicts veiled, a card over them. */
.lock-wrap { position: relative; margin-top: 8px; }
.lock-peek { pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000 58%, transparent 100%); mask-image: linear-gradient(#000 58%, transparent 100%); padding-bottom: 24px; }
.lock-peek .veil { filter: blur(5px); opacity: 0.75; }
.lock-peek .lb summary { cursor: default; } .lock-peek .lb summary:hover { background: none; }
.lock-peek .stats button.veil b { color: var(--muted); }
.lock-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(15, 26, 38, 0.35), 0 2px 10px rgba(15, 26, 38, 0.06); padding: 30px 34px 28px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.lock-card h2 { font-size: 21px; margin: 2px 0 0; letter-spacing: -0.01em; } .lock-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; } .lock-card p.small { color: var(--muted); }
.lock-card .btn { margin-top: 8px; } .lock-card .hint { margin-top: -2px; }
.lock-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; } .lock-badge svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.what .card h3 { font-size: 15.5px; margin: 0; } .what .card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.linkish { background: none; border: 0; padding: 0; margin: 0; color: var(--blue-text); text-decoration: underline; cursor: pointer; font: inherit; }
.tabs button .lk { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.tab-lock .lock-peek { min-height: 320px; }
.lock-card.compact { width: min(470px, calc(100% - 32px)); padding: 22px 26px 22px; gap: 8px; } .lock-card.compact h2 { font-size: 18px; } .lock-card.compact p { font-size: 14px; }

/* The guided tour: a cut-out around the sidebar item, a card beside it, the page behind. */
.tour-block { position: fixed; inset: 0; z-index: 199; }
.tour-spot { position: fixed; z-index: 200; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 26, 38, 0.55); pointer-events: none; transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease; }
.tour-card { position: fixed; z-index: 201; width: min(430px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); padding: 18px 22px 18px; display: grid; gap: 10px; transition: top 0.25s ease, left 0.25s ease; }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(540px, calc(100vw - 32px)); padding: 28px 32px 24px; }
.tour-card.aside::before { content: ''; position: absolute; left: -7px; top: var(--arrow, 24px); width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.tour-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; } .tour-top .ib svg { width: 16px; height: 16px; }
.tour-card h2 { font-size: 20px; margin: 0; letter-spacing: -0.01em; } .tour-card.center h2 { font-size: 24px; }
.tour-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tour-card .lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 3px; }
.tour-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; } .tour-foot .grow { flex: 1; }
.dots { display: flex; gap: 5px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-tint); } .dots i.on { background: var(--blue); }
.tour-card.below::before, .tour-card.above::before { content: ''; position: absolute; left: 26px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.tour-card.below::before { top: -7px; } .tour-card.above::before { bottom: -7px; }
.tour-hint { font-size: 12.5px !important; color: var(--muted) !important; }
