/* FDES Agent Hub. Design: a navy sidebar (lime marks the page you are on), content on a lightly tinted sheet where white
   panels, tables and cards stand out; FDES navy for actions,
   lime only for "done/healthy", red only for real problems. Light and dark: the system setting, or the person's choice
   (html[data-theme], set by hub.js). Type scale 12/13/14/16/24; buttons at least 36px and never wrapping. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --bg: #E4EAF1; --sheet: #F1F4F8; --panel: #FFFFFF; --surface2: #F7F9FB; --hover: #EAEEF3;
    --fg: #0F1B2D; --muted: #56627A; --line: #E1E6ED; --line-strong: #D0D7E1;
    --side-bg: #13263D; --side-fg: #C3CFDD; --side-strong: #FFFFFF; --side-muted: #8397AF; --side-hover: rgba(255, 255, 255, .07);
    --side-active: rgba(133, 194, 38, .16); --side-line: rgba(255, 255, 255, .1); --side-field: rgba(255, 255, 255, .08);
    --accent: #1E4065; --accent-soft: #E8EEF6; --on-accent: #FFFFFF; --link: #1E4F86;
    --live: #1E4065; --live-soft: #E8EEF6;
    --wait: #8A4F00; --wait-soft: #FFF2D6; --good: #2F7A16; --good-soft: #E9F6E0; --bad: #B42318; --bad-soft: #FEECEB;
    --code: #F1F3F6; --lime: #85C226; --track: #DDE1E7;
    --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 20px rgba(15, 27, 45, .05);
    --font: "Geist", "Segoe UI", system-ui, sans-serif; --mono: "Geist Mono", Consolas, monospace;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #070B10; --sheet: #0B1118; --panel: #111923; --surface2: #151E29; --hover: #1A2431;
    --fg: #E8EDF3; --muted: #98A4B3; --line: #1F2934; --line-strong: #2A3644;
    --side-bg: #0C1826; --side-fg: #A9B7C8; --side-strong: #FFFFFF; --side-muted: #6F829A; --side-hover: rgba(255, 255, 255, .06);
    --side-active: rgba(149, 209, 58, .14); --side-line: rgba(255, 255, 255, .08); --side-field: rgba(255, 255, 255, .06);
    --accent: #3A78C2; --accent-soft: rgba(58, 120, 194, .16); --on-accent: #FFFFFF; --link: #8DB9EB;
    --live: #8DB9EB; --live-soft: rgba(141, 185, 235, .12);
    --wait: #F2C46B; --wait-soft: rgba(242, 196, 107, .12); --good: #8FD16A; --good-soft: rgba(143, 209, 106, .12); --bad: #F59C93; --bad-soft: rgba(245, 156, 147, .12);
    --code: #18212B; --lime: #95D13A; --track: #243040; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #070B10; --sheet: #0B1118; --panel: #111923; --surface2: #151E29; --hover: #1A2431;
        --fg: #E8EDF3; --muted: #98A4B3; --line: #1F2934; --line-strong: #2A3644;
        --side-bg: #0C1826; --side-fg: #A9B7C8; --side-strong: #FFFFFF; --side-muted: #6F829A; --side-hover: rgba(255, 255, 255, .06);
        --side-active: rgba(149, 209, 58, .14); --side-line: rgba(255, 255, 255, .08); --side-field: rgba(255, 255, 255, .06);
        --accent: #3A78C2; --accent-soft: rgba(58, 120, 194, .16); --on-accent: #FFFFFF; --link: #8DB9EB;
        --live: #8DB9EB; --live-soft: rgba(141, 185, 235, .12);
        --wait: #F2C46B; --wait-soft: rgba(242, 196, 107, .12); --good: #8FD16A; --good-soft: rgba(143, 209, 106, .12); --bad: #F59C93; --bad-soft: rgba(245, 156, 147, .12);
        --code: #18212B; --lime: #95D13A; --track: #243040; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
        color-scheme: dark;
    }
}
/* The logo for the theme in use. */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: inline; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 30px; margin: 0; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1:focus { outline: none; }
h2 { font-size: 15px; line-height: 22px; margin: 28px 0 10px; font-weight: 600; }
h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 18px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the frame: sidebar + sheet */
.shell { min-height: 100vh; display: flex; align-items: stretch; background: linear-gradient(to right, var(--side-bg) 240px, var(--bg) 240px); }   /* the menu's navy runs the full page height */
.sidebar { flex: 0 0 240px; width: 240px; position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px;
    background: var(--side-bg); color: var(--side-fg); scrollbar-color: var(--side-line) transparent; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--side-strong); font-weight: 600; font-size: 15px; }
.sidebar .logo-light { display: none; }
.sidebar .logo-dark { display: inline; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; }
.sidesearch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: var(--side-field); color: var(--side-muted); margin: 0; }
.sidesearch input { border: 0; background: transparent; padding: 0; height: 34px; outline: none; color: var(--side-strong); font-size: 13px; }
.sidesearch input::placeholder { color: var(--side-muted); }
.sidesearch input:focus-visible { outline: none; }
.sidesearch:focus-within { border-color: var(--lime); }
.sidebar .menutoggle, .sidebar .menubtn { display: none; }
.navbody { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.mainnav { display: flex; flex-direction: column; gap: 18px; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navgroup-label { font-size: 12px; font-weight: 600; color: var(--side-muted); padding: 0 10px 4px; }
.mainnav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--side-fg); font-size: 14px; }
.mainnav a:hover { background: var(--side-hover); color: var(--side-strong); text-decoration: none; }
.mainnav a.active { background: var(--side-active); color: var(--side-strong); font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.mainnav a.active svg { color: var(--lime); }
.mainnav a:focus-visible, .sidebar .iconbtn:focus-visible, .brand:focus-visible { outline-color: var(--lime); }
.mainnav a .grow { flex: 1; }
.navcount { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--side-field); color: var(--side-strong); font-variant-numeric: tabular-nums; }
.navcount.warn { background: #F2A93B; color: #13263D; }
.sidefoot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 6px 4px; border-top: 1px solid var(--side-line); position: sticky; bottom: 0; background: var(--side-bg); }
.sidefoot .avatar { background: var(--side-field); border-color: var(--side-line); color: var(--side-strong); }
.sidefoot .who a { color: var(--side-strong); }
.sidefoot .who .role { color: var(--side-muted); }
.sidebar .iconbtn { background: transparent; border-color: var(--side-line); color: var(--side-fg); }
.sidebar .iconbtn:hover { color: var(--side-strong); border-color: var(--side-muted); }
.avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; line-height: 18px; }
.who a { color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .role { color: var(--muted); font-size: 12px; line-height: 16px; }
.who form { margin: 0; }
.iconbtn { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.iconbtn:hover { color: var(--fg); border-color: var(--line-strong); }
.workspace { flex: 1; min-width: 0; padding: 8px; display: flex; flex-direction: column; }
.sheet { flex: 1; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.page { width: 100%; max-width: 1680px; margin-inline: auto; padding: 28px 40px 40px; }
.page:has(> .ov) { padding: 0; max-width: none; height: 100%; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 10px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 900px) {
    .shell { flex-direction: column; background: var(--bg); }
    .sidebar { position: static; width: auto; height: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; }
    .sidebar .menubtn { display: inline-flex; margin-left: auto; }
    .navbody { display: none; flex-basis: 100%; }
    .menutoggle:checked ~ .navbody { display: flex; }
    .sidesearch { flex-basis: 100%; }
    .workspace { padding: 0 8px 8px; }
    .page { padding: 20px 18px 32px; }
}

/* ------------------------------------------------------------------ buttons and forms */
.btn { font: inherit; font-size: 14px; font-weight: 500; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--line-strong); background: var(--surface2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-outline { color: var(--bad); border-color: var(--bad-soft); background: var(--panel); }
.btn.danger-outline:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--hover); color: var(--fg); }
.btn.small { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 9px; }
.btn.big { height: 40px; padding: 0 16px; }
.linkbtn { background: none; border: none; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--fg); width: 100%; }
input, select { height: 38px; padding-block: 0; }
input[type="checkbox"], input[type="radio"] { height: auto; width: auto; accent-color: var(--accent); }
textarea { resize: vertical; line-height: 20px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label { font-size: 13px; color: var(--muted); }
.formgrid { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 10px 16px; align-items: center; max-width: 760px; }
@media (max-width: 560px) { .formgrid { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters select { width: auto; min-width: 160px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.checks label { color: var(--fg); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.checks input { width: auto; }
.validation-message, .error { color: var(--bad); }
.formgrid label.inline { color: var(--fg); display: flex; gap: 8px; align-items: center; }
.formgrid label.inline input { width: auto; }
label.inline { display: inline-flex; gap: 8px; align-items: center; }
label.inline input { width: auto; }
input.grow { flex: 1 1 260px; }

/* ------------------------------------------------------------------ panels and messages */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-top: 20px; box-shadow: var(--shadow); }
.panel h2 { margin-top: 0; }
details.panel > summary { cursor: pointer; color: var(--muted); font-weight: 500; }
.flash { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-weight: 500; }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.banner.stop { background: var(--bad-soft); color: var(--bad); }
.confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 10px; }
.secret { background: var(--wait-soft); border-radius: 12px; padding: 18px 22px; margin-bottom: 18px; }
.secret h2 { margin-top: 0; }
.select { user-select: all; overflow-wrap: anywhere; }
.empty { color: var(--muted); background: var(--surface2); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px 18px; margin: 0; }
.callbtn { display: inline-flex; }

/* Tiles (reports, usage) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile .num { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.tile .lbl { color: var(--muted); font-size: 13px; }
a.tile { color: var(--fg); }
a.tile:hover { border-color: var(--line-strong); text-decoration: none; }
.tile-alert { background: var(--wait-soft); border-color: transparent; }
.tile-alert .num { color: var(--wait); }
.usage { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel); }
.usage-good strong { color: var(--good); }
.usage-wait { background: var(--wait-soft); border-color: transparent; }
.usage-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--muted); font-size: 12px; line-height: 16px; white-space: nowrap; background: var(--surface2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 400; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin: 0 0 4px 6px; }

/* ------------------------------------------------------------------ status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; font-weight: 600; padding: 1px 8px; border-radius: 6px; white-space: nowrap; background: var(--hover); color: var(--muted); }
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-wait { background: var(--wait-soft); color: var(--wait); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 999px; display: inline-block; background: var(--track); }
.dot.good { background: var(--good); } .dot.wait { background: var(--wait); } .dot.bad { background: var(--bad); } .dot.live { background: var(--accent); }
.badge { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 999px; background: var(--wait-soft); color: var(--wait); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; }
.kind { font-size: 12px; line-height: 18px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--hover); color: var(--muted); white-space: nowrap; }
.kind-client_meeting { background: var(--wait-soft); color: var(--wait); }
.kind-brainstorm, .kind-team_meeting { background: var(--accent-soft); color: var(--link); }

/* ------------------------------------------------------------------ details, events, conversations */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 0 0 18px; }
.facts dt { font-size: 12px; line-height: 16px; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
pre.block { font-family: var(--mono); font-size: 13px; background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 16px; max-height: 420px; }
pre.block.error { color: var(--bad); }
.events { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ev { display: grid; grid-template-columns: 9.5rem 6.5rem minmax(0, 1fr); gap: 2px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.ev:last-child { border-bottom: none; }
.ev .t { color: var(--muted); font-size: 12px; }
.ev .k { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ev .tool { grid-column: 3; color: var(--link); font-size: 13px; }
.ev .s { grid-column: 3; overflow-wrap: anywhere; }
.ev details { grid-column: 3; }
.ev-hub .s { color: var(--link); font-weight: 500; }
.ev-result .s { font-weight: 600; }
.ev-warning { background: var(--wait-soft); }
.ev-warning .s { color: var(--wait); font-weight: 500; }
@media (max-width: 640px) { .ev { grid-template-columns: 1fr; } .ev .tool, .ev .s, .ev details { grid-column: 1; } }
.newdiscussion { margin-bottom: 20px; }
.discussions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.discussion { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.discussion .dhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.discussion details summary { cursor: pointer; color: var(--link); font-size: 13px; }
.discussion .msgbody { white-space: pre-wrap; margin-top: 6px; }
.discussion .row { margin-top: 2px; }
.mom { font-size: 14px; }
.mom h1, .mom h2, .mom h3 { margin: 14px 0 6px; font-size: 15px; }
.mom table { border-collapse: collapse; margin: 6px 0; display: block; overflow-x: auto; }
.mom td, .mom th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.transcript { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.transcript li { overflow-wrap: anywhere; }
.transcript li.lead .strong { color: var(--link); }
.projectpick summary { cursor: pointer; color: var(--link); font-size: 13px; }
.projectpick label.inline { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; white-space: nowrap; }
.approval { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.approval-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.approval .row input { flex: 1; min-width: 220px; width: auto; }
.account { max-width: 680px; }
.stack { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.stack .btn { align-self: flex-start; margin-top: 10px; }
ul.plain, ol.steps { margin: 6px 0 12px; padding-left: 20px; max-width: 900px; }
ul.plain li, ol.steps li { margin: 6px 0; line-height: 22px; }
#voice-try { flex: 1 1 320px; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; }
table.edit input { width: 100%; min-width: 120px; }
ul.error { margin: 10px 0; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80ch; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.msg-lead { background: var(--accent-soft); border-color: transparent; }
.msg-team { margin-left: 40px; }
.msg-staff { background: var(--surface2); }
.msghead { font-size: 13px; margin-bottom: 4px; }
.msgbody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.rich { overflow-wrap: anywhere; }
div.rich { font-size: 14px; }
div.rich > :first-child { margin-top: 0; }
div.rich > :last-child { margin-bottom: 0; }
div.rich p { margin: 0 0 8px; }
div.rich h1, div.rich h2, div.rich h3 { margin: 12px 0 6px; font-size: 14px; font-weight: 600; }
div.rich ul, div.rich ol { margin: 0 0 8px; padding-left: 22px; }
div.rich li { margin: 2px 0; }
div.rich table { border-collapse: collapse; margin: 6px 0 10px; display: block; overflow-x: auto; }
div.rich td, div.rich th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rich code { font-family: var(--mono); font-size: 0.92em; background: var(--code); border-radius: 4px; padding: 1px 5px; }
.msg details summary { cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.meetinglines { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow-y: auto; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mline { max-width: 85ch; padding: 8px 12px; border-radius: 10px; background: var(--panel); }
.mline-lead { background: var(--accent-soft); }
.mline-requester, .mline-deputy, .mline-staff { margin-left: auto; }
.mline-hub { color: var(--muted); font-size: 13px; background: transparent; }
.meetingbar { position: sticky; bottom: 0; background: var(--panel); padding-block: 10px; }
.meetingbar textarea { width: 100%; }
.command { white-space: pre-wrap; word-break: break-all; background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; gap: 10px; align-items: baseline; }

/* ------------------------------------------------------------------ sign-in */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.login .brand { padding: 0 0 18px; }
.login h1 { margin-bottom: 4px; }
.login form { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.login .btn { margin-top: 12px; height: 40px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }

/* ------------------------------------------------------------------ overview */
.ov { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100%; }
.ov-main { flex: 999 1 600px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 36px; }
.ov-rail { flex: 1 1 300px; max-width: 360px; min-width: 0; border-left: 1px solid var(--line); background: transparent; border-radius: 0 16px 16px 0; padding: 32px 24px; display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 1100px) { .ov-rail { max-width: none; border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; } }
.ov-head { display: flex; flex-direction: column; gap: 6px; }
.ov-summary { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; line-height: 20px; }
.ov-summary a { color: var(--live); background: var(--live-soft); border: 1px solid transparent; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; }
.ov-summary a:hover { text-decoration: none; border-color: currentColor; }
.ov-summary a.wait { color: var(--wait); background: var(--wait-soft); }
.ov-summary a.good { color: var(--good); background: var(--good-soft); }
.ov-summary a.bad { color: var(--bad); background: var(--bad-soft); }
.ov-section { display: flex; flex-direction: column; gap: 12px; }
.ov-section > h2 { margin: 0; font-size: 13px; line-height: 18px; display: flex; align-items: center; gap: 8px; }
.ov-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.ov-hero { padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.ov-item { display: flex; gap: 14px; align-items: center; }
.ov-hero .ov-item { align-items: flex-start; }
.ov-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: var(--hover); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.ov-hero .ov-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
.ov-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-text .t { font-weight: 500; }
.ov-hero .ov-text .t { font-weight: 600; font-size: 16px; line-height: 22px; }
.ov-text .m { color: var(--muted); font-size: 13px; line-height: 18px; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 54px; }
.ov-row { padding: 12px 16px; min-height: 64px; }
.ov-row + .ov-row { border-top: 1px solid var(--line); }
.ov-done { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 500; }
.ov-calm { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--good-soft); }
.ov-calm .ok { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 999px; background: var(--good); color: var(--panel); display: inline-flex; align-items: center; justify-content: center; }
.ov-team { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ov-team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ov-team-head .name { font-weight: 600; font-size: 15px; line-height: 22px; }
.ov-team-head .vm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ov-team-head .spacer { flex: 1; }
.ov-agent { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ov-agent .who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.ov-agent .who .n { font-weight: 600; }
.ov-agent .who .n span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.ov-agent .who .d { font-size: 13px; line-height: 18px; color: var(--muted); }
.ov-agent .who .d.wait { color: var(--wait); font-weight: 500; }
.ov-agent .who .d.bad { color: var(--bad); font-weight: 500; }
.ov-agent .time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.agent-av { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--fg); }
.agent-av.lead { background: #1E4065; color: #FFFFFF; }
.agent-av.dev { background: var(--good-soft); color: var(--good); }
.agent-av.chk { background: var(--wait-soft); color: var(--wait); }
.ov-wait td { vertical-align: middle; }
.ov-wait .whocell { display: flex; align-items: center; gap: 10px; }
.ov-wait .whoicon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 999px; background: var(--hover); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.ov-maya { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--side-bg); color: var(--side-strong); border: 1px solid var(--side-line); box-shadow: var(--shadow); }
.ov-maya .ov-text .m { color: var(--side-fg); }
.ov-maya .maya-av { background: #1E4065; }
.ov-maya .maya-av.free { box-shadow: 0 0 0 3px var(--side-bg), 0 0 0 5px var(--lime); }
.ov-maya .maya-av.busy { box-shadow: 0 0 0 3px var(--side-bg), 0 0 0 5px #8DB9EB; }
.ov-maya .btn.primary { background: var(--lime); border-color: var(--lime); color: #13263D; font-weight: 600; }
.ov-maya .btn:not(.primary) { background: transparent; border-color: var(--side-line); color: var(--side-strong); }
.ov-maya .top { display: flex; align-items: center; gap: 12px; }
.maya-av { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px; background: #1E4065; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--track); }
.maya-av.busy { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent); }
.maya-av.free { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--good); }
.ov-maya h2 { margin: 0; font-size: 15px; line-height: 22px; }
.ov-maya .btns { display: flex; gap: 8px; }
.ov-maya .btns .btn:first-child { flex: 1; }
.ov-list { display: flex; flex-direction: column; gap: 14px; }
.ov-list .it { display: flex; gap: 12px; }
.ov-list .when { flex: 0 0 56px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-list .when.now { color: var(--link); font-weight: 600; }
.ov-list .what { display: flex; flex-direction: column; min-width: 0; }
.ov-list .what .t { font-weight: 500; color: var(--fg); }
.ov-list .what .m { font-size: 13px; line-height: 18px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter > span { display: block; height: 6px; border-radius: 999px; background: var(--good); }
.meter.wait > span { background: var(--wait); }
.meter.bad > span { background: var(--bad); }

#blazor-error-ui { color-scheme: light only; background: #FFF2D6; color: #3A2B00; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: 10px 20px; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 8px; }
.blazor-error-boundary { background: var(--bad); padding: 16px; color: #fff; }
.blazor-error-boundary::after { content: "This part of the page failed to load."; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ lists of conversations, toolbars, side panels */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.searchfield { flex: 1 1 340px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); margin: 0; }
.searchfield:focus-within { border-color: var(--accent); }
.searchfield input { border: 0; background: transparent; padding: 0; height: 36px; flex: 1; min-width: 0; outline: none; }
.segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.segmented button { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.segmented button:hover { color: var(--fg); }
.segmented button.on { background: var(--panel); color: var(--fg); font-weight: 500; box-shadow: var(--shadow); }
.convgroup { margin-bottom: 22px; }
.convgroup-head { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.convgroup-head h2 { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.conv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.conv-row .ov-text { flex: 1 1 260px; }
.conv-row .ov-text .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; }
.conv-row .ov-text .t a { color: var(--fg); }
.ov-icon.live { background: var(--good-soft); color: var(--good); }
.conv-kept { display: flex; flex-wrap: wrap; gap: 6px; }
.conv-kept a.pill:hover { text-decoration: none; filter: brightness(.97); }
.conv-time { color: var(--muted); font-size: 13px; min-width: 44px; text-align: right; }
.conv-summary { padding-left: 46px; }
.conv-summary summary { cursor: pointer; color: var(--link); font-size: 13px; }
.discussion .confirm { margin-left: 46px; }
.hit { margin-left: 46px; padding: 8px 12px; border-radius: 10px; background: var(--surface2); }
.rowmenu { position: relative; }
.rowmenu > summary { list-style: none; font-size: 18px; line-height: 1; }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(8, 12, 17, .16); }
.rowmenu .menu .btn, .rowmenu .menu .callbtn .btn { justify-content: flex-start; width: 100%; }
.rowmenu .menu .callbtn { display: block; }
.tablewrap:has(.rowmenu[open]) { overflow: visible; }
.btn.danger-text { color: var(--bad); }
.scrim { position: fixed; inset: 0; background: rgba(8, 12, 17, .32); z-index: 40; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: 440px; max-width: calc(100vw - 16px); z-index: 41; display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(8, 12, 17, .24); }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.drawer-head h2 { margin: 0 0 4px; font-size: 18px; }
.drawer-head p { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.drawer-body label { margin-top: 10px; font-weight: 500; color: var(--fg); }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ actions page */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split-main { flex: 3 1 520px; min-width: 0; }
.split-side { flex: 2 1 280px; min-width: 0; max-width: 420px; }
.act-row .ov-item { flex-wrap: nowrap; }
.act-row .ov-text { flex: 1 1 auto; }
.act-owner { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.act-owner .agent-av { width: 26px; height: 26px; flex-basis: 26px; font-size: 11px; }
.act-due { flex: 0 0 auto; text-align: right; }
@media (max-width: 720px) { .act-row .ov-item { flex-wrap: wrap; } .act-row .ov-text { flex-basis: calc(100% - 40px); } }
.act-edit { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: end; }
.act-edit label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.act-edit .row { grid-column: 1 / -1; }
@media (max-width: 720px) { .act-edit { grid-template-columns: 1fr; } }
.tick { width: 22px; height: 22px; flex: 0 0 22px; padding: 0; border-radius: 999px; border: 1.5px solid var(--muted); background: transparent; color: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tick:hover { border-color: var(--good); color: var(--good); }
.tick.on { border-color: var(--good); background: var(--good); color: var(--panel); }
.struck { text-decoration: line-through; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 4px var(--good-soft); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .t { font-weight: 500; }

/* ------------------------------------------------------------------ sign-in: brand panel and a focused form */
.bare:has(.signin) { display: block; padding: 0; }
.signin { width: 100%; min-height: 100vh; justify-self: stretch; align-self: stretch; display: grid; grid-template-columns: minmax(420px, 42%) 1fr; background: var(--panel); }
.signin-brand { position: relative; overflow: hidden; background: #13304F; color: #FFFFFF; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.signin-logo { height: 40px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.signin-pitch { position: relative; z-index: 1; max-width: 460px; }
.signin-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A9D86A; }
.signin-pitch h2 { margin: 0 0 28px; font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -.02em; }
.signin-pitch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.signin-pitch li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 22px; color: #D5E0EC; }
.signin-pitch li strong { color: #FFFFFF; font-weight: 600; }
.signin-dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #A9D86A; display: inline-flex; align-items: center; justify-content: center; }
.signin-legal { position: relative; z-index: 1; margin: 0; font-size: 13px; color: #9FB3CA; }
.signin-arcs { position: absolute; right: -150px; bottom: -110px; width: 640px; height: 640px; pointer-events: none; }
.signin-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 24px; gap: 24px; }
.signin-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 8px; }
.signin-card h1 { font-size: 28px; line-height: 34px; }
.signin-card > .muted { margin: 0 0 18px; }
.signin-mobilebrand { display: none; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-bottom: 24px; }
.signin-mobilebrand img { height: 28px; }
.signin-form { display: flex; flex-direction: column; gap: 8px; }
.signin-form label { font-size: 13px; font-weight: 500; color: var(--fg); margin-top: 8px; }
.signin-form input { height: 44px; font-size: 15px; background: var(--panel); border-color: var(--line-strong); }
.signin-code { letter-spacing: .3em; font-family: var(--mono); font-size: 20px !important; text-align: center; }
.signin-password { position: relative; }
.signin-password input { padding-right: 72px; }
.signin-show { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--hover); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.signin-show.on { color: var(--fg); }
.signin-submit { height: 46px; margin-top: 18px; font-size: 15px; width: 100%; }
.signin-error { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; font-weight: 500; }
.signin-help { margin: 18px 0 0; }
.signin-secure { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
.signin-foot { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
    .signin { grid-template-columns: 1fr; }
    .signin-brand { display: none; }
    .signin-mobilebrand { display: flex; }
}

/* ------------------------------------------------------------------ page header and folded help */
.pagehead-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pagehead-text p { margin: 4px 0 0; color: var(--muted); }
.pagehead-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagehelp { margin: -10px 0 20px; font-size: 13px; line-height: 19px; color: var(--muted); }
.pagehelp > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 500; list-style: none; }
.pagehelp > summary::-webkit-details-marker { display: none; }
.pagehelp-body { margin-top: 10px; max-width: 900px; padding: 12px 16px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); }
.pagehelp-body p { margin: 0 0 8px; }
.pagehelp-body p:last-child { margin-bottom: 0; }

/* Delivery page: header with the one "Now" line, progress stages, tabs, and the overview's two columns. */
.dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.dhead-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 520px; }
.dhead-text .eyebrow { margin: 0; font-size: 13px; color: var(--muted); }
.dhead-text h1 { margin: 0; text-wrap: balance; }
.dhead-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.now { margin: 4px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; max-width: 900px; }
.now-wait { background: var(--wait-soft); border-color: transparent; }
.now-bad { background: var(--bad-soft); border-color: transparent; }
.now-good { background: var(--good-soft); border-color: transparent; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; padding: 0; }
.stage { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 0 0; border-top: 4px solid var(--line); margin-right: 6px; }
.stage-name { font-weight: 600; font-size: 14px; }
.stage-sub { font-size: 13px; color: var(--muted); }
.stage-done { border-top-color: var(--good); }
.stage-now { border-top-color: var(--accent); }
.stage-now .stage-name { color: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 12px; line-height: 18px; text-align: center; color: var(--muted); font-weight: 500; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dmain, .dside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dgrid .panel { margin: 0; }
.dgrid .panel h2 { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outgroup { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.outgroup > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.outgroup > summary::-webkit-details-marker { display: none; }
.outgroup > summary::before { content: "▸"; color: var(--muted); font-size: 12px; transition: transform .15s; }
.outgroup[open] > summary::before { transform: rotate(90deg); }
.files { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.files .sub { font-size: 12px; }
.latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.latest li { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.latest li:first-child { border-top: 0; padding-top: 0; }
.latest details > summary { cursor: pointer; color: var(--fg); }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.facts-1 { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.fold { margin-top: 18px; }
.fold > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 1100px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .outgroup > summary::before { transition: none; } }
.changes { margin: 6px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.danger-panel { border-color: var(--bad); }
.danger-panel label { display: block; margin: 12px 0 6px; }

/* ------------------------------------------------------------------ delivery Team tab */
.tm-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.tm-metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.tm-metric b { font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-metric span { color: var(--muted); font-size: 13px; }
.tm-section { margin-top: 24px; }
.tm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tm-head h2, .tm-panel h2 { font-size: 16px; line-height: 22px; margin: 0; }
.tm-boardwrap, .tm-tlwrap { overflow-x: auto; }
.tm-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; }
.tm-col { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.tm-colhead { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 2px 4px; }
.tm-empty { padding: 4px; }
.tm-card { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--fg); text-decoration: none; }
.tm-card:hover { border-color: var(--line-strong); background: var(--hover); }
.tm-card.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tm-cardtop { display: flex; align-items: center; gap: 6px; }
.tm-badge { margin-left: auto; }
.tm-title { font-weight: 500; font-size: 13px; line-height: 18px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-progress { height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.tm-progress span { display: block; height: 100%; background: var(--accent); }
.tm-av { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tm-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.tm-split .tm-panel { margin-top: 24px; }
.tm-points { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.tm-points li > span { display: block; }
.tm-sugs { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tm-sugs li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tm-sugs li:last-child { border-bottom: none; }
.tm-panel textarea { width: 100%; margin-top: 6px; }
.tm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tm-shot { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--fg); text-decoration: none; }
.tm-shot img { width: 100%; height: 140px; object-fit: contain; background: #fff; border-radius: 6px; }
.tm-pdf { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border-radius: 6px; font-weight: 600; color: var(--muted); }
.tm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 12px; }
.tm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tm-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.tm-ln { width: 14px; height: 2px; display: inline-block; }
.tm-tl { display: grid; grid-template-columns: 170px 1fr; min-width: 720px; padding-top: 18px; }
.tm-name { height: 56px; display: flex; align-items: center; gap: 8px; }
.tm-name > span:last-child { display: flex; flex-direction: column; line-height: 16px; }
.tm-track { position: relative; border-left: 1px solid var(--line); }
.tm-lane { position: absolute; left: 0; right: 0; height: 56px; border-bottom: 1px dashed var(--line); }
.tm-bar { position: absolute; top: 16px; height: 24px; border-radius: 6px; font-size: 11px; line-height: 24px; padding: 0 6px; overflow: hidden; white-space: nowrap; color: var(--fg); }
.tm-bar.done, .tm-sw.done { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); }
.tm-bar.live, .tm-sw.live { background: var(--live-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tm-bar.wait, .tm-sw.wait { background: var(--wait-soft); box-shadow: inset 0 0 0 1px var(--wait); }
.tm-bar.bad, .tm-sw.bad { background: var(--bad-soft); box-shadow: inset 0 0 0 1px var(--bad); }
.tm-arrow { position: absolute; width: 2px; margin-left: -1px; opacity: .8; }
.tm-tick { position: absolute; top: -18px; bottom: 0; border-left: 1px solid var(--line); }
.tm-tick span { position: absolute; top: 0; left: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tm-now { position: absolute; right: 0; top: -18px; bottom: 0; border-right: 2px solid var(--lime); }
@media (max-width: 700px) { .tm-tl { grid-template-columns: 120px 1fr; } .tm-sugs li { flex-direction: column; } }
.livesteps { list-style: none; margin: 6px 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; }
.livesteps li:first-child { color: var(--fg); font-weight: 500; }
.livesteps li:not(:first-child) { color: var(--muted); }
.livesteps li.said span:last-child { font-style: italic; }
.tm-live { margin-top: 20px; }
.tm-livegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.tm-liveone { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }
.tm-propimgs { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
