/* Tolou HQ Focus. One neutral scale, one pool-teal accent, light by default. */
:root {
  --canvas: #FBFBFA; --side: #F3F3F1; --surface: #FFFFFF; --surface-2: #F6F6F4; --surface-3: #EFEFEC;
  --line: #E5E5E1; --line-2: #EEEEEB;
  --ink: #111113; --ink-2: #4A4A52; --ink-3: #6B6B74; --ink-4: #9A9AA2;
  --acc: #0A7F7A; --acc-hover: #086C68; --acc-ink: #FFFFFF; --acc-soft: #E5F3F2; --acc-text: #07706B; --acc-line: #9BD1CD;
  --ok: #1E7F48; --ok-soft: #E4F3EA; --warn: #9C5A00; --warn-soft: #FBF0DE; --bad: #BF3328; --bad-soft: #FBE9E7;
  --c1: #2F74B5; --c2: #4F5BD5; --c3: #C98316; --c4: #C24D76; --c5: #6B6B74;
  --t1: #E7F0F9; --t2: #E9EBFB; --t3: #FAF0DD; --t4: #F9E7EE; --t5: #EDEDEF;
  --c6: #1D8A52; --t6: #E2F3E9;
  --data: #3F3F46; --data-soft: rgba(63, 63, 70, 0.07);
  --shadow-1: 0 1px 2px rgba(17, 17, 19, 0.04);
  --shadow-2: 0 8px 28px rgba(17, 17, 19, 0.12), 0 2px 6px rgba(17, 17, 19, 0.06);
  --scrim: rgba(17, 17, 19, 0.32);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --side-w: 252px; --top-h: 56px;
  color-scheme: light;
}
[data-theme="dark"] {
  --canvas: #0D0D0F; --side: #09090B; --surface: #151518; --surface-2: #1B1B1F; --surface-3: #232328;
  --line: #2A2A30; --line-2: #212126;
  --ink: #F3F3F5; --ink-2: #B9B9C1; --ink-3: #92929B; --ink-4: #6B6B74;
  --acc: #3FD1C5; --acc-hover: #67DDD4; --acc-ink: #03201D; --acc-soft: rgba(63, 209, 197, 0.12); --acc-text: #5FDBD1; --acc-line: rgba(63, 209, 197, 0.45);
  --ok: #4ACB82; --ok-soft: rgba(74, 203, 130, 0.12); --warn: #F0B24E; --warn-soft: rgba(240, 178, 78, 0.12); --bad: #FF7468; --bad-soft: rgba(255, 116, 104, 0.12);
  --c1: #72B4EE; --c2: #8D96F6; --c3: #F0B24E; --c4: #F283A8; --c5: #92929B;
  --t1: rgba(114, 180, 238, 0.15); --t2: rgba(141, 150, 246, 0.16); --t3: rgba(240, 178, 78, 0.15); --t4: rgba(242, 131, 168, 0.15); --t5: rgba(255, 255, 255, 0.08);
  --c6: #5ACB8B; --t6: rgba(90, 203, 139, 0.14);
  --data: #D4D4D8; --data-soft: rgba(212, 212, 216, 0.08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --scrim: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--font); font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; caret-color: var(--acc); }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--acc-soft); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
.num, td.r { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- icons */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }
.i.xs { width: 14px; height: 14px; }
.tile { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.tile .i { width: 15px; height: 15px; stroke-width: 2; }
.tile.g1 { background: var(--t1); color: var(--c1); }
.tile.g2 { background: var(--t2); color: var(--c2); }
.tile.g3 { background: var(--t3); color: var(--c3); }
.tile.g4 { background: var(--t4); color: var(--c4); }
.tile.g5 { background: var(--t5); color: var(--ink-2); }
.tile.g6 { background: var(--t6); color: var(--c6); }
.tile.lg { width: 40px; height: 40px; border-radius: 11px; }
.tile.lg .i { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.side-top { padding: 14px 12px 8px; }
.ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; width: 100%; text-align: left; }
.ws:hover { background: var(--surface-3); }
.ws img, .ws .ph-av { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; object-position: 50% 18%; background: var(--surface-3); }
.ws .n { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.ws .s { font-size: 12.5px; color: var(--ink-3); line-height: 1.2; }
.search-btn { margin: 8px 0 2px; width: 100%; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--ink-3); font-size: 13.5px; box-shadow: var(--shadow-1); }
.search-btn:hover { border-color: var(--ink-4); color: var(--ink-2); }
.search-btn .grow { text-align: left; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; font-weight: 500; line-height: 1; font-family: var(--font); }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-g { margin-top: 14px; }
.nav-g:first-child { margin-top: 4px; }
.nav-h { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 6px 8px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; position: relative; transition: background-color 0.12s, color 0.12s; }
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.nav a .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.count.hot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); display: inline-grid; place-items: center; }
.side-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: grid; gap: 8px; }
.side-foot .live { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding: 0 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); flex: none; }
.by { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 12.5px; color: var(--ink-3); }
.by b { color: var(--ink-2); font-weight: 650; letter-spacing: -0.01em; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 24px 0 28px; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); min-width: 0; flex: 1; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .i { width: 14px; height: 14px; color: var(--ink-4); }
.btn.menu-btn { display: none; }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 32px 72px; }

/* ---------------------------------------------------------------- page heading */
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ph .grow { flex: 1; min-width: 260px; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.022em; font-weight: 650; margin: 0; text-wrap: balance; }
.ph p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; max-width: 72ch; }
h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.sect { margin-top: 32px; }
.sect-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sect-h h2 { flex: 1; }
.mut { color: var(--ink-3); }
.mut2 { color: var(--ink-2); }
.small { font-size: 13px; }
.src { font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- buttons, chips, controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.btn .i { width: 16px; height: 16px; }
.btn.pri { background: var(--acc); color: var(--acc-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn.pri:hover { background: var(--acc-hover); }
.btn.sec { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.btn.sec:hover { border-color: var(--ink-4); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn.pri:disabled:hover { background: var(--acc); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.acc { background: var(--acc-soft); color: var(--acc-text); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.out { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 9px; gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 40px; font-size: 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.switch { position: relative; width: 36px; height: 22px; flex: none; display: inline-block; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; width: 36px; height: 22px; border-radius: 11px; background: var(--line); cursor: pointer; transition: background 0.15s; display: block; }
.switch input:checked { background: var(--acc); }
.switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.switch input:checked + span { transform: translateX(14px); }
.toggle-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; height: 32px; padding: 0 6px 0 10px; border-radius: 8px; }
.toggle-row:hover { background: var(--surface-3); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 0 12px; height: 38px; font-size: 14.5px; box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.err { color: var(--bad); font-size: 13px; margin: 6px 0 0; }

/* ---------------------------------------------------------------- panels and grids */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); min-height: 52px; }
.panel-h h2 { flex: 1; min-width: 0; }
.panel-h .sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.panel-b { padding: 18px; }
.panel-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 20px; }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 20px; align-content: start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* the metric strip: one bordered band, cells split by hairlines */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); margin-bottom: 20px; overflow: hidden; }
.metric { padding: 16px 18px 14px; min-width: 0; position: relative; }
.metric + .metric { border-left: 1px solid var(--line-2); }
.metric .k { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.metric .v { font-size: 28px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric .d { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.metric .spark { position: absolute; right: 16px; top: 42px; width: 88px; height: 32px; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-3); }
.tag { font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; line-height: 17px; }

/* ---------------------------------------------------------------- lists */
.rows > * + * { border-top: 1px solid var(--line-2); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 56px; }
a.item:hover, button.item:hover { background: var(--surface-2); }
button.item { width: 100%; text-align: left; }
.item .t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.item .m { font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.item .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { width: 46px; flex: none; text-align: left; align-self: flex-start; padding-top: 1px; }
.when b { display: block; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.when span { display: block; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; border-radius: 0 0 12px 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 0 14px; height: 38px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 18px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 18px; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: inherit; height: 38px; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--ink); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover td { background: var(--surface-2); }
.tbl .t { font-weight: 600; }
.tbl .m { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.tbl .wrap { white-space: normal; min-width: 240px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.cell-song { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.art { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-3); flex: none; }
.art.lg { width: 104px; height: 104px; border-radius: 14px; }
.art.ph { display: grid; place-items: center; color: var(--ink-4); }
.art.lg.ph .i { width: 32px; height: 32px; }
.show-sm { display: none !important; }
.props { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.minibar { width: 64px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; flex: none; }
.minibar i { display: block; height: 100%; background: var(--data); border-radius: 3px; opacity: 0.75; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12.5px; font-weight: 650; background: var(--surface-3); color: var(--ink); font-variant-numeric: tabular-nums; }
.dash { color: var(--ink-4); }

/* ---------------------------------------------------------------- decisions */
.dec { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 18px; }
.dec .n { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 650; display: grid; place-items: center; margin-top: 1px; }
.dec .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.dec .t a:hover { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dec .m { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.dec .meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dec .acts { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- inbox */
.inbox { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); height: calc(100vh - var(--top-h)); }
.inbox-list { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.inbox-tools { padding: 14px 16px 12px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.inbox-tools .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
.inbox-tools .seg button { padding: 0 8px; gap: 4px; font-size: 12.5px; }
.inbox-tools .seg button .count { font-size: 11.5px; }
.inbox-scroll { overflow-y: auto; flex: 1; }
.ib { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px 16px; width: 100%; text-align: left; border-bottom: 1px solid var(--line-2); position: relative; transition: background-color 0.12s; }
.ib:hover { background: var(--surface-2); }
.ib[aria-selected="true"] { background: var(--acc-soft); }
.ib[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--acc); }
.ib .t { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ib .m { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ib.leaving { animation: leave 0.2s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-12px); } }
.inbox-detail { overflow-y: auto; min-height: 0; background: var(--canvas); }
.detail { max-width: 780px; margin: 0 auto; padding: 28px 36px 64px; }
.detail h1 { font-size: 24px; margin-top: 10px; }
.detail .lead { font-size: 16px; color: var(--ink-2); margin: 10px 0 0; max-width: 68ch; }
.detail .sect { margin-top: 28px; }
.action-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1); }
.action-bar .hint { margin-left: auto; display: flex; gap: 12px; color: var(--ink-3); font-size: 12px; align-items: center; }
.action-bar .hint span { display: inline-flex; gap: 5px; align-items: center; }
.brief { display: grid; grid-template-columns: 160px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; margin: 0; }
.brief dt, .brief dd { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line-2); }
.brief dt { font-size: 13px; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.brief dd { font-size: 14.5px; line-height: 1.5; }
.brief dt:nth-last-child(2), .brief dd:last-child { border-bottom: 0; }
.evid { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.evid li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.evid li .chip { flex: none; }
.decline-box { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.draft { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.done-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; margin: 20px 0 8px; flex-wrap: wrap; }
.done-banner.later { background: var(--surface-3); color: var(--ink-2); }
.done-banner.no { background: var(--bad-soft); color: var(--bad); }
.done-banner .grow { color: var(--ink); font-weight: 500; }
.media-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.media-detail video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }

/* ---------------------------------------------------------------- charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .cross { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .pt { fill: var(--surface); stroke: var(--data); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--canvas); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; box-shadow: var(--shadow-2); transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 0.12s; z-index: 5; }
.tip b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.tip.on { opacity: 1; }
.chart-empty { height: 220px; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 5px; background: var(--data); opacity: 0.8; transform-origin: left; animation: grow 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes grow { from { transform: scaleX(0); } }
.hbar em { font-style: normal; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 6px 0 14px; }
.stack-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.meter i.on { background: var(--data); }
.wave { position: relative; padding-top: 22px; }
.wave svg { display: block; width: 100%; height: 96px; }
.wave .mk { position: absolute; top: 18px; height: 100px; border-left: 1.5px dashed var(--acc); }
.wave .mk span { position: absolute; top: -18px; left: -1px; font-size: 11.5px; font-weight: 600; color: var(--acc-text); white-space: nowrap; }
.wave-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- media */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.clip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.clip video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; display: block; }
.clip .cb { padding: 12px 14px 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.clip .cb .t { font-weight: 600; font-size: 14px; }
.clip .cb p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.clip .cf { padding: 0 14px 14px; display: flex; gap: 6px; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .dow { font-size: 12px; color: var(--ink-3); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.cal .day { min-height: 108px; padding: 6px 6px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; align-items: stretch; transition: background-color 0.12s; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .dn { color: var(--ink-4); }
.cal .day:hover { background: var(--surface-2); }
.cal .day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--acc); }
.cal .dn { font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.cal .day.today .dn { background: var(--acc); color: var(--acc-ink); }
.ev { font-size: 12px; font-weight: 500; padding: 1px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.ev.post { background: var(--t1); color: var(--c1); }
.ev.deadline { background: var(--t3); color: var(--warn); }
.ev.release { background: var(--t2); color: var(--c2); }
.ev.moment { background: var(--t4); color: var(--c4); }
.ev.more { color: var(--ink-3); background: none; }
.dotk { width: 8px; height: 8px; border-radius: 3px; flex: none; display: inline-block; }
.dotk.post { background: var(--c1); } .dotk.deadline { background: var(--c3); } .dotk.release { background: var(--c2); } .dotk.moment { background: var(--c4); }

/* ---------------------------------------------------------------- integrations, crew */
.ints { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.int { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.int .hd { display: flex; align-items: center; gap: 12px; }
.int .hd .t { font-weight: 600; font-size: 14.5px; }
.int .hd .m { font-size: 12.5px; color: var(--ink-3); }
.logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; flex: none; }
.logo i { width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; display: block; }
.logo .mono { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.02em; }
.int p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.int .need { font-size: 12.5px; color: var(--ink-3); }
.int .ft { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; flex: none; }
.av.g1 { background: var(--t1); color: var(--c1); }
.av.g2 { background: var(--t2); color: var(--c2); }
.av.g3 { background: var(--t3); color: var(--c3); }
.av.g4 { background: var(--t4); color: var(--c4); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.status.working i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.status.waiting i { background: var(--warn); }
.status.done i { background: var(--c2); }

/* ---------------------------------------------------------------- pipeline */
.pipe { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.pipe div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.pipe div.has { background: var(--surface); border-color: var(--line); }
.pipe b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pipe span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pipe div.focus { border-color: var(--acc-line); background: var(--acc-soft); }
.pipe div.focus span { color: var(--acc-text); }

/* ---------------------------------------------------------------- empty, skeleton, banners */
.empty { padding: 36px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty .tile { margin-bottom: 6px; }
.empty h3 { font-size: 15.5px; }
.empty p { margin: 0; color: var(--ink-3); font-size: 14px; max-width: 46ch; }
.empty .row { margin-top: 8px; justify-content: center; }
.locked { display: flex; gap: 14px; align-items: center; padding: 18px; }
.sk { background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .chart .line.draw, .hbar .track i, .ib.leaving { animation: none; stroke-dashoffset: 0; } }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.banner.acc { background: var(--acc-soft); border-color: transparent; color: var(--acc-text); }
.offline { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 90; box-shadow: var(--shadow-2); }

/* ---------------------------------------------------------------- overlays */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; animation: fade 0.16s ease-out; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--canvas); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); z-index: 70; display: flex; flex-direction: column; animation: slidein 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
.drawer-h { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-h h2 { flex: 1; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-f { border-top: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); flex: none; background: var(--surface); }
.composer { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; background: var(--surface); box-shadow: var(--shadow-1); }
.composer:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.composer textarea { flex: 1; border: 0; background: none; resize: none; min-height: 28px; max-height: 140px; line-height: 1.5; padding: 4px 0; font-size: 14.5px; outline: none; }
.suggest { display: grid; gap: 8px; margin-top: 14px; }
.suggest button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.suggest button:hover { border-color: var(--acc-line); color: var(--ink); }
.msg-q { margin: 22px 0 12px; display: flex; justify-content: flex-end; }
.msg-q:first-child { margin-top: 0; }
.msg-q span { background: var(--surface-3); padding: 9px 13px; border-radius: 12px 12px 4px 12px; font-size: 14.5px; max-width: 85%; }
.msg-a { display: grid; gap: 12px; }
.msg-a .reply { font-size: 15px; line-height: 1.6; margin: 0; }
.msg-a .brief { grid-template-columns: 110px minmax(0, 1fr); }
.msg-a .brief dd { font-size: 14px; }
.palette { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); z-index: 80; overflow: hidden; animation: pop 0.16s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pop { from { transform: translate(-50%, -6px) scale(0.985); opacity: 0; } }
.palette .pi { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); }
.palette input { flex: 1; border: 0; background: none; font-size: 16px; outline: none; height: 100%; color: var(--ink); }
.palette .pl { max-height: 380px; overflow-y: auto; padding: 6px; }
.palette .pg { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 10px 4px; }
.palette .po { display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 40px; border-radius: 8px; width: 100%; text-align: left; font-size: 14.5px; }
.palette .po .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette .po[aria-selected="true"] { background: var(--surface-3); }
.palette .pempty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.palette .pf { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.palette .pf span { display: inline-flex; gap: 6px; align-items: center; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); background: var(--ink); color: var(--canvas); padding: 10px 10px 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; z-index: 95; box-shadow: var(--shadow-2); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { color: var(--acc-line); font-weight: 600; padding: 4px 6px; border-radius: 6px; }
[data-theme="dark"] #toast button { color: var(--acc-ink); }

/* drop builder */
.drop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.choices button:hover { border-color: var(--ink-4); }
.choices button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-text); }
.phone { border-radius: 34px; padding: 10px; background: #0E0E10; box-shadow: var(--shadow-2); position: sticky; top: 76px; }
.phone .scr { border-radius: 26px; background: #F2EEE6; color: #151515; padding: 40px 22px 26px; min-height: 520px; }
.phone .k { font-size: 14px; letter-spacing: -0.01em; color: #2A2A2A; font-weight: 650; }
.phone .h { font-size: 27px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 10px 0 8px; }
.phone .s { font-size: 14.5px; color: #3A3A3A; margin-bottom: 20px; line-height: 1.45; }
.phone .in { background: #FFF; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 12px; height: 46px; display: flex; align-items: center; padding: 0 14px; color: #6A6A6A; font-size: 15px; margin-bottom: 8px; }
.phone .go { background: #151515; color: #FFF; border-radius: 12px; height: 48px; display: grid; place-items: center; font-weight: 600; margin-top: 6px; }
.phone .fine { font-size: 11px; color: #5E5E5E; margin-top: 12px; line-height: 1.45; }

/* lock and boot */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.lock-card { width: 100%; max-width: 380px; }
.lock-card .mark { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-weight: 650; letter-spacing: -0.01em; }
.lock-card h1 { font-size: 24px; margin-bottom: 6px; }
.lock-card form { margin-top: 22px; display: grid; gap: 10px; }
.lock-card .btn { width: 100%; height: 40px; }
.boot-side { padding: 18px 14px; display: grid; gap: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .drop-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { position: static; max-width: 340px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-2); }
  .side.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .top { padding: env(safe-area-inset-top) 10px 0; height: calc(var(--top-h) + env(safe-area-inset-top)); }
  .content { padding: 20px 16px calc(56px + env(safe-area-inset-bottom)); }
  h1 { font-size: 23px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .metric .spark { display: none; }
  .metric .v { font-size: 24px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: calc(100vh - var(--top-h)); }
  .inbox.has-sel .inbox-list { display: none; }
  .inbox:not(.has-sel) .inbox-detail { display: none; }
  .inbox-list { border-right: 0; }
  .detail { padding: 16px 16px 48px; }
  .action-bar .hint { display: none; }
  .brief, .msg-a .brief { grid-template-columns: minmax(0, 1fr); }
  .brief dt { border-bottom: 0; padding-bottom: 0; background: transparent; }
  .brief dd { padding-top: 2px; }
  .cal .day { min-height: 58px; padding: 4px; align-items: center; }
  .cal .ev { display: none; }
  .cal .day.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
  .cal .dow { padding: 8px 4px; text-align: center; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbar { grid-template-columns: 92px minmax(0, 1fr) 36px; }
  .btn { height: 40px; }
  .btn.sm { height: 34px; }
  .dec { grid-template-columns: 22px minmax(0, 1fr); }
  .dec .acts { grid-column: 2; }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cell-song { min-width: 0; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
  .media-detail { grid-template-columns: minmax(0, 1fr); }
  .media-detail video { max-width: 260px; }
}

/* ================================================================ the team you can see (team.js) */
.count.live { display: inline-flex; align-items: center; gap: 6px; }
.count.live .pulse-dot { width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--ok-soft); }
.face { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; box-shadow: 0 0 0 1px var(--line); }
.face.xs { width: 20px; height: 20px; }
.face.sm { width: 26px; height: 26px; }
.face.lg { width: 64px; height: 64px; }
.av.xs { width: 20px; height: 20px; font-size: 9px; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; }
.owner { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 2px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); max-width: 100%; }
.owner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner:hover { background: var(--surface-3); color: var(--ink); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: 0.18s; } .typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.btn.glass { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.btn.glass:hover { background: var(--surface); }
.oc-faces { display: flex; }
.oc-faces .face, .oc-faces .av { box-shadow: 0 0 0 2px var(--surface); }
.oc-faces > * + * { margin-left: -7px; }

/* Home: the office card */
.team-card { overflow: hidden; }
.office-card { position: relative; display: block; height: 176px; overflow: hidden; background: #DCE6E8; }
.office-card .oc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.office-card:hover .oc-img { transform: scale(1.03); }
.office-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 14, 0) 30%, rgba(8, 12, 14, 0.72)); }
.oc-over { position: absolute; left: 16px; right: 60px; bottom: 14px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.oc-over .oc-faces { margin-bottom: 8px; }
.oc-over .oc-faces .face { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); background: #E9E6E0; }
.oc-t { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.oc-m { font-size: 12.5px; color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.oc-go { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.wa-row { border-top: 1px solid var(--line-2); }
.wa-row:hover { background: var(--surface-2); }

/* Office */
.office-page { position: relative; height: calc(100vh - var(--top-h)); overflow: hidden; background: #0A1C1E; }
.office { position: absolute; inset: 0; }
.office-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; cursor: grab; }
.office-canvas:active { cursor: grabbing; }
.office-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.olabel { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; gap: 7px; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; background: rgba(255, 255, 255, 0.94); color: #111113; font: 600 12.5px/1 var(--font); white-space: nowrap; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); backdrop-filter: blur(8px); }
.olabel small { display: none; font-weight: 500; opacity: 0.6; }
.olabel.waiting::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D99A2B; }
.olabel.working::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1E9E5A; }
.olabel.hover, .olabel.on { background: #111113; color: #fff; }
.olabel.on small, .olabel.hover small { display: inline; }
.olabel.you { background: var(--acc); color: var(--acc-ink); pointer-events: none; }
.olabel.you small { display: inline; opacity: 0.8; }
.obubble { position: absolute; left: 0; top: 0; max-width: 230px; padding: 7px 11px; border-radius: 12px 12px 12px 4px; background: #fff; color: #1D1D1F; font: 500 13px/1.35 var(--font); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.obubble.on { opacity: 1; }
.office-hint { position: absolute; left: 16px; bottom: 16px; z-index: 3; max-width: min(560px, calc(100% - 420px)); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 14px; border-radius: 12px; background: rgba(10, 14, 16, 0.62); color: rgba(255, 255, 255, 0.86); font-size: 13px; line-height: 1.4; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.office-hint b { color: #fff; font-weight: 650; }
.office-hint .near { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; color: #111113; font-weight: 650; }
.office-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: #0A1C1E; transition: opacity 0.55s ease; }
.office-load.gone { opacity: 0; pointer-events: none; }
.office-load img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(0.9); }
.ol-card { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: rgba(255, 255, 255, 0.86); font-size: 14px; max-width: 460px; padding: 22px 26px; border-radius: 16px; background: rgba(10, 14, 16, 0.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ol-card b { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.ol-bar { width: 220px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; margin-top: 8px; }
.ol-bar i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width 0.3s; }
.office-load.ofail .ol-card span { line-height: 1.5; }
.office-load.ofail .ol-card .btn.glass { color: var(--ink); }
.o-top { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 5; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.o-top > * { pointer-events: auto; }
.o-hud { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; }
.o-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(10, 14, 16, 0.58); color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.o-pill i { width: 7px; height: 7px; border-radius: 50%; }
.o-pill i.working { background: #3CCB7F; } .o-pill i.waiting { background: #F0B24E; } .o-pill i.done { background: #9AA3F7; }
.o-pill .i { opacity: 0.8; }
.o-tools { display: flex; gap: 6px; align-items: flex-start; }
.o-panel { position: absolute; right: 16px; top: 62px; max-height: calc(100% - 78px); width: 360px; z-index: 5; overflow-y: auto; padding: 20px; border-radius: 16px; background: color-mix(in srgb, var(--canvas) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: slidein 0.24s cubic-bezier(0.16, 1, 0.3, 1); }
.o-panel.mini { top: auto; bottom: 16px; width: auto; max-width: 380px; padding: 12px 14px; overflow: visible; }
.o-intro { display: flex; align-items: center; gap: 12px; }
.o-intro .t { font-weight: 600; font-size: 14px; }
.o-intro .m { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }

/* one agent: in the office panel or the drawer */
.ag-head { display: flex; gap: 14px; align-items: flex-end; }
.ag-pic { width: 96px; height: 116px; flex: none; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: end center; }
.ag-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ag-head h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; }
.ag-role { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.ag-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); font-style: italic; }
.ag-dl { display: grid; grid-template-columns: 112px minmax(0, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line-2); }
.ag-dl dt, .ag-dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; }
.ag-dl dt { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.ag-talk { display: grid; gap: 10px; margin: 16px 0 12px; }
.ag-talk:empty { margin: 16px 0 0; }
.ag-q { display: flex; justify-content: flex-end; }
.ag-q span { background: var(--acc-soft); color: var(--ink); padding: 8px 12px; border-radius: 12px 12px 4px 12px; font-size: 14px; max-width: 88%; }
.ag-a { display: flex; gap: 8px; align-items: flex-start; }
.ag-a p { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.ag-drawer .drawer-b { padding-top: 22px; }

/* Team: the roster */
.seg-wrap { max-width: 100%; }
.seg-wrap .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-wrap .seg::-webkit-scrollbar { display: none; }
.seg-wrap .seg button { flex: none; }
.dept-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.person { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s; }
.person:hover { border-color: var(--ink-4); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.person .pp { position: relative; height: 148px; background: radial-gradient(120% 90% at 50% 100%, var(--surface-3), var(--surface-2) 70%); display: grid; place-items: end center; overflow: hidden; }
.person .pp img { height: 140px; width: auto; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.person:hover .pp img { transform: translateY(-3px) scale(1.02); }
.person .status.pill { position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 8px; border-radius: 11px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); font-size: 12px; box-shadow: 0 0 0 1px var(--line-2); }
.person .pb { display: grid; gap: 1px; padding: 12px 14px 14px; min-width: 0; }
.person .pn { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.person .pr { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.person .pt { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* agents who walk along the bottom of the page */
.agent-strip { position: fixed; left: 0; bottom: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.agent-strip.on { opacity: 1; }
.astrip-bubble { position: fixed; z-index: 51; transform: translate(-50%, 6px); max-width: min(300px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px 12px 12px 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.35; text-align: left; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.astrip-bubble.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.astrip-bubble.side { transform: translate(0, 6px); } .astrip-bubble.side.on { transform: none; }
.astrip-bubble b { font-weight: 650; font-size: 13px; }
.astrip-bubble span { color: var(--ink-2); }
.astrip-bubble:hover { border-color: var(--acc-line); }
.astrip-bubble.quiet { padding: 5px 11px; border-radius: 12px; }

/* WhatsApp: a working phone */
.wa-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.wa-device-col { position: sticky; top: calc(var(--top-h) + 20px); }
.wa-phone { width: 360px; margin: 0 auto; padding: 11px; border-radius: 52px; background: #1A1A1C; box-shadow: 0 0 0 1.5px #3A3A3E, 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 12px 24px -12px rgba(0, 0, 0, 0.25); }
.wa-screen { --wa-bg: #EFE7DD; --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-ink: #111B21; --wa-sub: #667781; --wa-bar: #F6F5F3; --wa-acc: #008069; --wa-tick: #53BDEB; --wa-chip: #FFFFFF;
  height: 700px; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; background: var(--wa-bg); color: var(--wa-ink); font-size: 14px; position: relative; }
[data-theme="dark"] .wa-screen { --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-ink: #E9EDEF; --wa-sub: #8696A0; --wa-bar: #1F2C33; --wa-acc: #00A884; --wa-chip: #202C33; }
.wa-statusbar { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 34px; background: var(--wa-bar); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wa-island { width: 104px; height: 30px; border-radius: 16px; background: #000; }
.wa-sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.wa-sig i { width: 3px; border-radius: 1px; background: currentColor; }
.wa-sig i:nth-child(1) { height: 4px; } .wa-sig i:nth-child(2) { height: 6px; } .wa-sig i:nth-child(3) { height: 9px; } .wa-sig i:nth-child(4) { height: 12px; }
.wa-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px 8px; background: var(--wa-bar); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.wa-back { color: var(--wa-acc); display: grid; place-items: center; }
.wa-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.wa-name { font-weight: 650; font-size: 15.5px; line-height: 1.2; }
.wa-st { font-size: 12.5px; color: var(--wa-sub); }
.wa-body { flex: 1; overflow-y: auto; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1.2px); background-size: 14px 14px; }
[data-theme="dark"] .wa-body { background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.2px); }
.wa-body::-webkit-scrollbar { display: none; }
.wa-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.wa-day span { background: var(--wa-in); color: var(--wa-sub); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1); }
.wa-msg { display: flex; flex-direction: column; max-width: 86%; margin-top: 4px; animation: wa-in 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } }
.wa-msg.hq { align-self: flex-start; }
.wa-msg.me { align-self: flex-end; }
.wa-b { position: relative; padding: 7px 9px 8px 10px; border-radius: 9px; background: var(--wa-in); box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); line-height: 1.42; font-size: 14.2px; overflow-wrap: anywhere; }
.wa-msg.hq .wa-b { border-top-left-radius: 2px; }
.wa-msg.me .wa-b { background: var(--wa-out); border-top-right-radius: 2px; }
.wa-msg.err .wa-b { box-shadow: inset 3px 0 0 #E2584A, 0 1px 0.5px rgba(0, 0, 0, 0.13); }
.wa-b b { font-weight: 650; }
.wa-hi { font-weight: 600; }
.wa-sub { color: var(--wa-sub); font-size: 13px; }
.wa-t { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 10px; font-size: 11px; color: var(--wa-sub); font-variant-numeric: tabular-nums; }
.wa-tick .i { width: 16px; height: 16px; color: var(--wa-tick); stroke-width: 2; }
.wa-typing { padding: 10px 14px; }
.wa-btns { display: grid; gap: 3px; margin-top: 3px; }
.wa-btns button { height: 38px; border-radius: 9px; background: var(--wa-in); color: var(--wa-acc); font-weight: 600; font-size: 14px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wa-btns button:hover:not(:disabled) { filter: brightness(0.97); }
.wa-btns button:disabled { color: var(--wa-sub); cursor: default; }
.wa-chips { flex: none; display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; background: var(--wa-bg); }
.wa-chips::-webkit-scrollbar { display: none; }
.wa-chips button { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--wa-chip); color: var(--wa-acc); font-size: 13px; font-weight: 600; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); white-space: nowrap; }
.wa-compose { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 26px; background: var(--wa-bg); }
.wa-compose input { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 20px; padding: 0 16px; background: var(--wa-in); color: var(--wa-ink); font-size: 15px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); outline: none; }
.wa-compose input::placeholder { color: var(--wa-sub); }
.wa-send { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wa-acc); color: #fff; }
.wa-send .i { stroke-width: 2.2; }
.wa-note { text-align: center; margin: 14px auto 0; max-width: 340px; }
.step-n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chk { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-4); }

@media (prefers-reduced-motion: reduce) { .typing i, .wa-msg, .o-panel { animation: none; } .person, .person .pp img, .office-card .oc-img { transition: none; } }
@media (max-width: 1180px) {
  .wa-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-device-col { position: static; }
}
@media (max-width: 900px) {
  .office-page { height: calc(100vh - var(--top-h) - env(safe-area-inset-top)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top)); }
  .o-top { left: 10px; right: 10px; top: 10px; }
  .o-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 62%; border-radius: 18px; padding: 16px; background: var(--canvas); z-index: 6; }
  .o-panel.mini { display: none; }
  .office-hint { left: 10px; right: 10px; bottom: 10px; max-width: none; font-size: 12.5px; }
  .o-pill { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .ag-pic { width: 76px; height: 92px; }
  .ag-dl { grid-template-columns: minmax(0, 1fr); }
  .ag-dl dt { border-bottom: 0; padding-bottom: 0; }
  .ag-dl dd { padding-top: 2px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .person .pp { height: 124px; }
  .person .pp img { height: 118px; }
  .wa-phone { width: min(360px, 100%); padding: 9px; border-radius: 46px; }
  .wa-screen { height: 640px; border-radius: 38px; }
  .office-card { height: 160px; }
}

/* Team: the org chart, who reports to whom */
.team-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.team-bar .seg .i { width: 14px; height: 14px; }
.org-trace { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 30px; font-size: 13px; color: var(--ink-3); }
.org-trace .tr-p { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 3px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap; }
.org-trace .tr-p b { color: var(--ink); font-weight: 650; }
.org-trace .tr-r { color: var(--ink-3); }
.org-trace .tr-a { display: inline-grid; color: var(--ink-4); }
.org-trace .tr-a .i { width: 14px; height: 14px; }
.org-scroll { position: relative; overflow-x: auto; overflow-y: hidden; margin: 0 -12px; padding: 10px 12px 6px; container-type: inline-size; }
.org-scroll.pannable { cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.org-scroll.panning { cursor: grabbing; user-select: none; }
.org { position: relative; min-width: 940px; display: flex; flex-direction: column; align-items: center; }
.org-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.org-lines .e { fill: none; stroke: var(--ink-4); stroke-opacity: 0.55; stroke-width: 1.5; transition: opacity 0.2s; }
.org-lines .e.hot { stroke: var(--ink); stroke-opacity: 1; stroke-width: 2; }
.org-lines .e-live, .lg-flow path { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.01 10; animation: org-up 1.6s linear infinite; transition: opacity 0.2s; }
@keyframes org-up { to { stroke-dashoffset: 10.01; } }
.org.tracing .e-live { opacity: 0.2; }

/* one person on the chart */
.onode { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); border-radius: 12px; transition: background-color 0.12s, border-color 0.15s, box-shadow 0.2s, opacity 0.2s; }
.onode .ot { display: grid; gap: 1px; min-width: 0; }
.onode .ot b { font-weight: 650; font-size: 14px; letter-spacing: -0.01em; line-height: 1.25; }
.onode .ot > span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; text-wrap: balance; }
.onode .ot .status { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.onode .ot .src { margin-top: 3px; }
.on-face { position: relative; flex: none; display: grid; }
.onode .face, .onode .av { width: 26px; height: 26px; font-size: 10.5px; }
.on-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); box-shadow: 0 0 0 2px var(--org-bg, var(--surface)); }
.onode.working .on-dot { background: var(--ok); }
.onode.waiting .on-dot { background: var(--warn); }
.onode.done .on-dot { background: var(--c2); }
.onode.you, .onode.chief, .onode.staff, .onode.lead { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.onode.you:hover, .onode.chief:hover, .onode.staff:hover, .onode.lead:hover { border-color: var(--ink-4); box-shadow: var(--shadow-2); }
.onode.m:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.onode.you.chain, .onode.chief.chain, .onode.staff.chain, .onode.lead.chain { border-color: var(--ink); }
.onode.m.chain { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.onode.you { padding: 9px 10px 9px 9px; border-radius: 14px; gap: 12px; }
.onode.you .chip { margin-left: 4px; }
.you-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 16px; }
.you-av.xs { width: 20px; height: 20px; font-size: 10px; }

/* the Manager's Office: Sol, with the office staff beside */
.og { width: fit-content; max-width: 100%; margin-top: 34px; padding: 12px 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); --org-bg: var(--surface-2); }
.og-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.og-h b { color: var(--ink); font-weight: 650; }
.og-row { display: flex; justify-content: center; align-items: center; gap: 72px; margin-top: 10px; }
.onode.chief { flex-direction: column; text-align: center; gap: 8px; padding: 16px 24px 14px; min-width: 248px; border-radius: 16px; }
.onode.chief .ot { justify-items: center; }
.onode.chief .ot b { font-size: 18px; letter-spacing: -0.02em; }
.onode.chief .face, .onode.chief .av { width: 60px; height: 60px; font-size: 19px; }
.onode.staff { padding: 10px 14px 10px 10px; width: 214px; }
.onode.staff .face, .onode.staff .av { width: 36px; height: 36px; font-size: 13px; }

/* the seven departments, one lead each */
.org-depts { width: 100%; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 10px; margin-top: 44px; align-items: start; }
.odept { --org-bg: var(--surface-2); min-width: 0; padding: 8px 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.od-h { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 8px; font-size: 13px; font-weight: 650; line-height: 1.25; }
.od-h .count { padding-left: 2px; }
.onode.lead { width: 100%; flex-direction: column; text-align: center; gap: 7px; padding: 14px 8px 12px; }
.onode.lead .ot { justify-items: center; }
.onode.lead .face, .onode.lead .av { width: 44px; height: 44px; font-size: 15px; }
.od-m { display: grid; gap: 2px; margin: 8px 0 0 18px; }
.onode.m { width: 100%; padding: 6px; gap: 9px; align-items: flex-start; border-radius: 10px; }
.onode.m .ot b { font-size: 13.5px; }
.onode.m .ot > span { color: var(--ink-3); }
.org[data-f="working"] .onode:not(.working):not(.you), .org[data-f="waiting"] .onode:not(.waiting):not(.you), .org[data-f="done"] .onode:not(.done):not(.you),
.org[data-f="working"] .e:not(.working), .org[data-f="waiting"] .e:not(.waiting), .org[data-f="done"] .e:not(.done) { opacity: 0.32; }
.org[data-f="waiting"] .e-live, .org[data-f="done"] .e-live { opacity: 0.2; }
.org-legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.org-legend .status { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-flow { display: inline-flex; align-items: center; gap: 8px; }
.ag-kids { display: flex; flex-wrap: wrap; gap: 2px 4px; }

/* medium screens: the same chart, a little denser */
@container (max-width: 1100px) {
  .org-depts { gap: 6px; }
  .odept { padding: 6px 6px 8px; }
  .od-h { gap: 6px; font-size: 12.5px; padding: 0 2px 6px; }
  .od-h .tile { width: 22px; height: 22px; }
  .onode.lead { padding: 12px 6px 10px; }
  .onode.lead .face, .onode.lead .av { width: 40px; height: 40px; }
  .od-m { margin-left: 12px; }
  .onode.m { gap: 7px; padding: 5px 4px; }
  .onode.m .face, .onode.m .av { width: 22px; height: 22px; font-size: 9.5px; }
  .onode.m .ot b { font-size: 13px; }
  .onode .ot > span { font-size: 12px; }
  .og-row { gap: 56px; }
}

/* narrow screens: the same chart as a tree, top to bottom */
.org[data-mode="narrow"] { min-width: 0; }
.org[data-mode="narrow"] .og { width: 100%; margin-top: 28px; padding: 12px 12px 16px; }
.org[data-mode="narrow"] .og-line { display: none; }
.org[data-mode="narrow"] .og-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.org[data-mode="narrow"] .onode.chief { grid-column: 1 / -1; order: -1; min-width: 0; width: 100%; }
.org[data-mode="narrow"] .onode.staff { width: auto; min-width: 0; padding: 8px 10px 8px 8px; gap: 8px; }
.org[data-mode="narrow"] .onode.staff .face, .org[data-mode="narrow"] .onode.staff .av { width: 30px; height: 30px; }
.org[data-mode="narrow"] .org-depts { grid-template-columns: minmax(0, 1fr); width: calc(100% - 28px); margin: 30px 0 0 28px; gap: 12px; }
.org[data-mode="narrow"] .od-h { min-height: 32px; }
.org[data-mode="narrow"] .onode.lead { flex-direction: row; text-align: left; padding: 10px 12px 10px 10px; gap: 12px; }
.org[data-mode="narrow"] .onode.lead .ot { justify-items: start; }
.org[data-mode="narrow"] .onode.you .chip { display: none; }

/* the org chart over the office */
.o-tools .btn.glass[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: transparent; }
.office-page.charting .o-panel, .office-page.charting .office-hint { display: none; }
.o-org { position: absolute; left: 16px; right: 16px; top: 62px; bottom: 16px; z-index: 6; display: flex; flex-direction: column; border-radius: 16px; background: color-mix(in srgb, var(--canvas) 95%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; animation: o-rise 0.26s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes o-rise { from { opacity: 0; transform: translateY(10px); } }
.o-org-h { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px 10px 18px; border-bottom: 1px solid var(--line-2); }
.o-org-h > .tile { margin-top: 2px; }
.o-org-h h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; margin: 1px 0 4px; }
.o-org-b { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 18px; }

@media (prefers-reduced-motion: reduce) { .org-lines .e-live, .lg-flow path { animation: none; } .o-org { animation: none; } .onode { transition: none; } }
@media (max-width: 900px) {
  .o-org { left: 8px; right: 8px; top: 50px; bottom: 8px; border-radius: 18px; background: var(--canvas); }
  .o-org-b { padding: 6px 12px 14px; }
  .team-bar { align-items: stretch; }
}

/* Dear Mama HQ: episode numbers and ad previews */
.ep-n{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:650;font-size:14px;background:var(--surface-2);color:var(--ink-2);border:1px solid var(--line)}
.ad-mock{border-radius:14px;padding:18px 18px 20px;background:linear-gradient(160deg,#151a1d,#0d1012);color:#f3f4f6;border:1px solid var(--line)}
.ad-mock .ad-k{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9aa3ab}
.ad-mock .ad-h{font-size:20px;font-weight:650;letter-spacing:-.01em;margin:8px 0 6px}
.ad-mock .ad-t{margin:0 0 14px;color:#c8cdd2;font-size:14px;line-height:1.5}
.ad-mock .ad-cta{display:inline-block;padding:8px 14px;border-radius:999px;background:var(--acc);color:var(--acc-ink, #fff);font-size:13px;font-weight:600}
