:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --line: #e3e7ee;
  --line-2: #d4dae4;
  --text: #1d2433;
  --text-2: #4b5567;
  --muted: #7a8496;
  --accent: #2c5cc5;
  --accent-soft: #e9effc;
  --accent-text: #23489b;
  --ok: #2f8f5b;
  --warn: #b7791f;
  --alert: #c8372d;
  --alert-soft: #fdeeed;
  --col-todo: #8a94a6;
  --col-progress: #2c5cc5;
  --col-client: #8a6d3b;
  --col-darya: #6b4fbb;
  --col-done: #2f8f5b;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.muted { color: var(--muted); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid;
  place-items: center; font-weight: 700; font-size: 14px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.updated { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sources { display: flex; gap: 4px; }
.src-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.src-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.src-dot.bad i { background: var(--warn); }
.src-dot.off i { background: var(--line-2); }
.btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg); }
.icon-btn { border: 0; background: transparent; color: var(--text-2); width: 34px; height: 34px; border-radius: 6px; cursor: pointer; display: none; place-items: center; }

/* layout */
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 264px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  padding: 12px 10px 24px; position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto; }
.nav-item, .client-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px;
  color: var(--text-2); font-size: 14px; }
.nav-item:hover, .client-link:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav-item.active, .client-link.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.side-search { padding: 12px 4px 6px; }
.side-search input, .filters input, .filters select { width: 100%; height: 32px; border: 1px solid var(--line-2);
  border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 10px 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.client-link .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-link .cnt { display: inline-flex; gap: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.client-link .cnt .n { color: var(--muted); min-width: 22px; text-align: right; }
.client-link .cnt .d { min-width: 22px; text-align: center; border-radius: 999px; padding: 0 6px;
  background: transparent; color: transparent; }
.client-link .cnt .d.on { background: #efeafb; color: var(--col-darya); font-weight: 600; }
.scrim { display: none; }
.main { flex: 1; min-width: 0; padding: 20px 24px 48px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* page header */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; line-height: 1.2; margin: 0; font-weight: 650; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-head .links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { padding: 8px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab .c { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .f { width: 190px; }
.filters .f.search { width: 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.on { background: var(--accent-soft); border-color: #c8d6f6; color: var(--accent-text); }
.chip.off { opacity: .55; }
.count-note { color: var(--muted); font-size: 13px; margin-left: auto; }

/* board */
.board { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(200px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.column { background: #eef1f5; border-radius: var(--radius); padding: 8px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.col-head i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.col-head .n { margin-left: auto; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.cards { display: flex; flex-direction: column; gap: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; box-shadow: var(--shadow); }
.card .t { color: var(--text); font-size: 13.5px; line-height: 1.35; display: block; overflow-wrap: anywhere; }
.card .t:hover { color: var(--accent-text); }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.ref.monday { font-family: var(--font); }
.owner { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.av { width: 18px; height: 18px; border-radius: 50%; background: #dfe5ef; color: var(--text-2); font-size: 10px; font-weight: 600;
  display: inline-grid; place-items: center; flex: none; }
.av.agent { background: #e6eefc; color: var(--accent-text); border-radius: 5px; }
.due { white-space: nowrap; }
.due.over { color: var(--alert); font-weight: 600; }
.due.today { color: var(--warn); font-weight: 600; }
.pri { white-space: nowrap; }
.pri b { display: inline-block; width: 3px; height: 9px; margin-right: 1px; border-radius: 1px; background: var(--line-2); vertical-align: -1px; }
.pri b.f { background: var(--text-2); }
.pri.urgent b.f { background: var(--alert); }
.tag { font-size: 11.5px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.card .xl { font-size: 12px; }
.more { width: 100%; margin-top: 6px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2);
  border-radius: 6px; padding: 6px; cursor: pointer; font-size: 12.5px; }
.more:hover { background: var(--surface); }
.col-empty { color: var(--muted); font-size: 12.5px; padding: 6px 6px 10px; }

/* overview */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { font-size: 12.5px; color: var(--muted); }
.tile .v { font-size: 26px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile.alert .v { color: var(--alert); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 14px; margin: 0; font-weight: 650; }
.panel-head .n { color: var(--muted); font-size: 13px; }
.panel-head .r { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.panel-body { padding: 4px 0; }
.panel-empty { padding: 14px 16px; color: var(--muted); font-size: 13px; }
.grp { padding: 8px 16px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; }
.grp a { color: var(--text-2); }
.grp .n { color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 6px 16px; border-top: 1px solid #f0f2f6; align-items: baseline; }
.row:first-child { border-top: 0; }
.row .t { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.row .t a { color: var(--text); }
.row .t a:hover { color: var(--accent-text); }
.row .side { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.row .sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.show-all { display: block; width: 100%; text-align: left; padding: 8px 16px; border: 0; border-top: 1px solid var(--line);
  background: transparent; color: var(--accent-text); cursor: pointer; font-size: 13px; }

table.sum { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sum th, table.sum td { padding: 8px 12px; text-align: right; border-top: 1px solid #f0f2f6; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.sum th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
table.sum th:first-child, table.sum td:first-child { text-align: left; }
table.sum td.z { color: #c3c9d4; }
table.sum td.alert { color: var(--alert); font-weight: 600; }
table.sum td.next { text-align: left; color: var(--text-2); white-space: normal; min-width: 150px; }
.table-wrap { overflow-x: auto; }

/* calls */
.call { padding: 10px 16px; border-top: 1px solid #f0f2f6; }
.call:first-child { border-top: 0; }
.call-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.call-when { font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 150px; font-size: 13px; }
.call-title { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.call-links { display: flex; gap: 10px; font-size: 12.5px; }
.call details { margin-top: 6px; }
.call summary { cursor: pointer; color: var(--accent-text); font-size: 13px; list-style: none; }
.call summary::-webkit-details-marker { display: none; }
.call summary::before { content: "+ "; }
.call details[open] summary::before { content: "- "; }
.todo-list { margin: 8px 0 4px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 6px; }
.todo-list li { display: grid; grid-template-columns: 1fr 140px; gap: 12px; padding: 6px 10px; border-top: 1px solid #f0f2f6; font-size: 13px; }
.todo-list li:first-child { border-top: 0; }
.todo-list li .who { color: var(--text-2); font-size: 12.5px; }
.todo-list .hd { background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ai-group { margin: 8px 0 0; }
.ai-group h4 { margin: 0 0 2px; font-size: 12.5px; color: var(--text-2); }
.ai-group ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text); }
.overview-text { white-space: pre-wrap; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.label-sm { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.badge-today { font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; }

.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 6px;
  padding: 8px 12px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }

/* login */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; box-shadow: var(--shadow); }
.login-card .brand-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
.login-card h1 { font-size: 20px; margin: 14px 0 2px; }
.login-card form { margin-top: 18px; display: grid; gap: 8px; }
.login-card label { font-size: 13px; color: var(--text-2); }
.login-card input { height: 40px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 12px; font: inherit; font-size: 15px; }
.login-card button { height: 40px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; margin-top: 6px; }
.err { color: var(--alert); font-size: 13px; margin: 0; }

/* responsive */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sources { display: none; }
}
@media (max-width: 860px) {
  .icon-btn { display: grid; }
  .sidebar { position: fixed; left: 0; top: 52px; z-index: 40; transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: 0 8px 24px rgba(20, 30, 50, .15); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 52px 0 0 0; background: rgba(20, 30, 50, .25); z-index: 35; }
  .main { padding: 16px 16px 40px; }
  .board { display: flex; flex-direction: column; overflow: visible; }
  .column { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .f, .filters .f.search { width: calc(50% - 4px); }
  .count-note { margin-left: 0; width: 100%; }
  .updated { display: none; }
  .brand span:last-child { font-size: 15px; white-space: nowrap; }
  .brand .long { display: none; }
  .panel-head { flex-wrap: wrap; }
  .panel-head .r { margin-left: 0; width: 100%; }
  .todo-list li { grid-template-columns: 1fr; gap: 2px; }
  .call-when { min-width: 0; }
  .page-head .links { margin-left: 0; }
}
@media (max-width: 420px) {
  .top-right .btn { padding: 0 8px; }
}

/* ================================================================ GeeksBrain panel (v1, 25 Nov 2026) */
.layout .sidebar { width: 232px; }
.nav-item { position: relative; }
.nav-item svg { flex: none; }
.nav-item.sub { padding-left: 34px; font-size: 13px; }
.nav-item .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: absolute; left: 20px; top: 50%; margin-top: -3px; }
.nav-count { margin-left: auto; font-size: 12px; min-width: 22px; text-align: center; border-radius: 999px; padding: 0 6px; color: var(--col-darya); background: #efeafb; font-weight: 600; }
.nav-count:empty { display: none; }
.nav-count.alert { color: var(--alert); background: var(--alert-soft); }
.side-foot { margin: 18px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.live-dot.warn i { background: var(--warn); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-text); }
.btn:disabled { opacity: .55; cursor: default; }
.small { font-size: 12.5px; }
.pad { padding: 10px 16px; }
.alert-text { color: var(--alert); font-weight: 600; }
.main { max-width: 1440px; }

/* today */
.since, .queue { margin-bottom: 22px; }
.since-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 10px; }
.since-head h2 { font-size: 16px; margin: 0; font-weight: 650; }
.since-head .btn { margin-left: auto; }
.since-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.since-grid .panel { margin-bottom: 0; }
.q-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.q-client { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.q-client h3 { margin: 0; font-size: 15px; font-weight: 650; }
.q-client h3 a { color: var(--text); }
.q-sum { color: var(--text-2); font-size: 13px; }
.q-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-top: 1px solid #f0f2f6; align-items: start; }
.q-item:first-of-type { border-top: 0; }
.kind { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.kind.k-send { color: var(--accent-text); background: var(--accent-soft); border-color: #c8d6f6; }
.kind.k-decide { color: var(--col-darya); background: #f3effc; border-color: #ddd3f5; }
.q-title { font-weight: 600; overflow-wrap: anywhere; }
.q-q { color: var(--text-2); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.q-after { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ref-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.q-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 170px; }
.opts { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--text); }
.opts li { margin: 2px 0; }
.opts li.rec { font-weight: 600; }
.rec-tag { font-size: 11px; font-weight: 600; color: var(--ok); }
details.prep { margin-top: 6px; }
details.prep summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 6px 0; }

/* clients by department */
.dept-chips { margin-bottom: 14px; }
.chip .c { color: var(--muted); font-size: 12px; }
.cl-legend { display: grid; grid-template-columns: 220px 132px 1fr; gap: 12px; padding: 6px 16px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #f0f2f6; }
.cl-row { border-top: 1px solid #f0f2f6; }
.cl-row:first-child { border-top: 0; }
.cl-head { width: 100%; display: grid; grid-template-columns: 220px 132px 1fr; gap: 12px; align-items: center; padding: 9px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--text); }
.cl-row.open .cl-head { background: var(--surface-2); }
.cl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-counts { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; font-variant-numeric: tabular-nums; }
.cnt { text-align: center; font-size: 12.5px; border-radius: 999px; padding: 1px 0; }
.cnt.d { color: var(--col-darya); background: #f3effc; font-weight: 600; }
.cnt.o { color: var(--alert); font-weight: 600; }
.cnt.s { color: var(--warn); font-weight: 600; }
.cnt.z { color: #c3c9d4; }
.cl-line { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-items { padding: 0 0 8px; background: var(--surface-2); }
.cl-items .row { border-top-color: #e9ecf2; }
.cl-links { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 0; }
.quiet { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 16px; font-size: 13px; }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.proj-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.proj-card:hover { text-decoration: none; border-color: var(--line-2); }
.proj-card.pinned { border-color: #c8d6f6; box-shadow: inset 3px 0 0 var(--accent); }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-name { font-weight: 650; font-size: 15px; }
.pin-tag { font-size: 11px; color: var(--accent-text); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; margin-left: auto; }
.pc-desc { color: var(--text-2); font-size: 13px; margin: 6px 0 10px; min-height: 36px; }
.pc-prog { display: flex; align-items: center; gap: 8px; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pc-meta .over, .over { color: var(--alert); font-weight: 600; }
.pc-err { font-size: 12px; color: var(--warn); margin-top: 6px; }
.bar { flex: 1; height: 6px; background: #e8ecf2; border-radius: 999px; overflow: hidden; display: inline-block; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.pct { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 34px; }
.proj-strip { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.ps { display: flex; flex-direction: column; gap: 4px; }
.ps .k { font-size: 12px; color: var(--muted); }
.ps b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ps:first-child { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps:first-child .k { width: 100%; }
table.tasks { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tasks th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 12px; }
table.tasks td { padding: 7px 12px; border-top: 1px solid #f0f2f6; vertical-align: top; }
table.tasks td.tt { min-width: 220px; overflow-wrap: anywhere; }
table.tasks td.tt a { color: var(--text); }
table.tasks .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.tasks tr.bad td:first-child { color: var(--alert); font-weight: 600; }
table.tasks tr.bad td:nth-child(2) { color: var(--alert); }
table.tasks tr.done td { color: var(--muted); }
.st { font-size: 12px; white-space: nowrap; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.st-in_progress { color: var(--accent-text); background: var(--accent-soft); border-color: #c8d6f6; }
.st-blocked { color: var(--warn); background: #fdf6ea; border-color: #f0dfbf; }
.st-done { color: var(--ok); }
.tl { padding: 12px 16px; }
.tl-row { display: grid; grid-template-columns: 240px 1fr; gap: 12px; align-items: center; min-height: 28px; }
.tl-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; height: 20px; background: #f3f5f8; border-radius: 4px; }
.tl-bar { position: absolute; top: 5px; height: 10px; border-radius: 999px; background: var(--accent); opacity: .75; }
.tl-bar.done { background: var(--ok); }
.tl-today { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--col-darya); opacity: .5; }
.tl-row.axis .tl-track { background: transparent; height: 16px; font-size: 11px; color: var(--muted); }
.tl-row.axis .tl-track span { position: absolute; top: 0; white-space: nowrap; }

/* calls */
.call-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 2px 12px; padding: 9px 16px; border-top: 1px solid #f0f2f6; color: var(--text); }
.call-row:hover { background: var(--surface-2); text-decoration: none; }
.call-row .call-title { font-weight: 600; }
.call-row .call-client { color: var(--text-2); font-size: 13px; text-align: right; }
.call-row .call-meta { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.call-page textarea, .chat-input textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; background: var(--surface); color: var(--text); }
.row-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chat-thread { padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--accent-soft); border-color: #c8d6f6; }
.msg-head { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-2); margin-bottom: 3px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.chat-input { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.overview-text.pad { margin-top: 0; }

/* geeks360 pages */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pg.broken { border-color: #f2c9c5; }
.pg-shot { display: block; aspect-ratio: 16 / 10; background: #eef1f5; border-bottom: 1px solid var(--line); overflow: hidden; }
.pg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.noshot { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12.5px; }
.pg-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pg-top { display: flex; align-items: center; gap: 8px; }
.pg-url { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.pg-what { font-size: 12.5px; color: var(--text-2); }
.pg-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.pg-act { margin-top: auto; padding-top: 6px; min-height: 34px; display: flex; align-items: center; }
.pg-act .rm { color: var(--muted); }
.pg-act .rm:hover { color: var(--text); }
.req { font-size: 12.5px; color: var(--col-darya); }
.st-pill { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.st-pill.live { color: var(--ok); }
.st-pill.broken { color: var(--alert); background: var(--alert-soft); border-color: #f2c9c5; }
.st-pill.stale, .st-pill.archived { color: var(--muted); }
.st-pill.locked { color: var(--col-client); }
.st-pill.muted-pill { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.filters .f.search.wide { width: 360px; }

/* hub */
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tool { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; }
.tool:hover { text-decoration: none; color: var(--text); background: var(--surface-2); }
.tool.dead { color: var(--alert); border-color: #f2c9c5; }
.sec-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--text); min-height: 86px; align-content: flex-start; }
.tile-link:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.tile-link.dead { border-color: #f2c9c5; }
.tl-n { font-weight: 600; }
.tl-d { width: 100%; color: var(--text-2); font-size: 12.5px; }

@media (max-width: 1100px) {
  .since-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .q-item { grid-template-columns: 56px minmax(0, 1fr); }
  .q-act { grid-column: 2; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cl-legend { display: none; }
  .cl-head { grid-template-columns: minmax(0, 1fr) 132px; }
  .cl-line { grid-column: 1 / -1; white-space: normal; }
  .call-row { grid-template-columns: minmax(0, 1fr); }
  .call-row .call-client { text-align: left; }
  .call-row .call-meta { grid-column: 1; }
  .tl-row { grid-template-columns: 110px 1fr; }
  .filters .f.search.wide { width: 100%; }
  .proj-grid, .page-grid, .tile-grid { grid-template-columns: minmax(0, 1fr); }
  table.tasks td.tt { min-width: 180px; }
  .since-head .btn { margin-left: 0; }
  .live-dot { display: none; }
}

/* today cards (gate design, section 3) */
.kind.k-do { color: var(--text); }
.kind.k-look { color: var(--text-2); }
.q-action { margin-top: 4px; font-size: 14px; color: var(--text); }
.urg { font-size: 11px; font-weight: 600; color: var(--alert); background: var(--alert-soft); border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.q-item.urgent { box-shadow: inset 3px 0 0 var(--alert); }
.opts-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opt { font: inherit; font-size: 13px; text-align: left; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; max-width: 100%; }
.opt:hover { background: var(--surface-2); }
.opt.rec { border-color: #b9d8c6; }
.opt.chosen { background: var(--accent-soft); border-color: #c8d6f6; color: var(--accent-text); font-weight: 600; }
.opt .rec-tag { margin-left: 6px; }
.ans-state { margin-top: 8px; font-size: 12.5px; color: var(--ok); }
.q-chat { margin-top: 8px; }
.q-chat summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; }
.q-chat summary::-webkit-details-marker { display: none; }
.q-chat summary:hover { color: var(--text-2); }
.q-chat textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; resize: vertical; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-3 .panel { margin-bottom: 16px; }
td.yn { white-space: nowrap; }
.yn-b { font: inherit; font-size: 12px; height: 26px; min-width: 40px; padding: 0 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; }
.yn-b:first-child { border-radius: 6px 0 0 6px; }
.yn-b:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.yn-b.on.yes { background: #e7f4ec; color: var(--ok); border-color: #b9d8c6; font-weight: 600; }
.yn-b.on.no { background: var(--surface-2); color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.q-item { grid-template-columns: 104px minmax(0, 1fr) auto; }
.q-item .kind { text-transform: none; letter-spacing: 0; font-size: 12px; }
.q-body, .q-title, .q-action, .q-q, .row .sub span { min-width: 0; overflow-wrap: anywhere; }
.opt { white-space: normal; }
@media (max-width: 860px) {
  .q-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .q-item .kind { justify-self: start; padding: 2px 8px; }
  .q-act { grid-column: 1; }
}

table.tasks .ref, .row .ref { white-space: nowrap; }

details.more-wait { border-top: 1px solid #f0f2f6; }
details.more-wait > summary { cursor: pointer; padding: 10px 16px; font-size: 13px; color: var(--text-2); list-style: none; }
details.more-wait > summary::-webkit-details-marker { display: none; }
details.more-wait > summary::before { content: "+ "; }
details.more-wait[open] > summary::before { content: "- "; }
details.more-wait[open] > summary { border-bottom: 1px solid #f0f2f6; }

/* ================================================================ visual language v2 (26 Nov 2026): client tiles, icons, one color per type */
:root {
  --t-send: #2f62d0; --t-send-bg: #eaf0fc;
  --t-decide: #7350c4; --t-decide-bg: #f1ecfb;
  --t-do: #0f8a73; --t-do-bg: #e6f5f1;
  --t-look: #b26d0e; --t-look-bg: #fbf1e2;
  --s-red: #d9473f; --s-amber: #e3a21f; --s-green: #35a46b;
}
.ic { flex: none; display: inline-block; vertical-align: middle; }
.t-send { --c: var(--t-send); --cb: var(--t-send-bg); }
.t-decide { --c: var(--t-decide); --cb: var(--t-decide-bg); }
.t-do { --c: var(--t-do); --cb: var(--t-do-bg); }
.t-look { --c: var(--t-look); --cb: var(--t-look-bg); }
.t-wait { --c: var(--t-decide); --cb: var(--t-decide-bg); }
.t-late { --c: var(--s-red); --cb: #fdecea; }
.t-stuck { --c: #a86a00; --cb: #fbf1dc; }
.t-open { --c: var(--text-2); --cb: #eef1f5; }
.t-done { --c: var(--s-green); --cb: #e7f5ed; }
.c-wait { color: var(--t-decide); } .c-late { color: var(--s-red); } .c-stuck { color: #a86a00; }

.today-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 16px; }
.today-head h1 { font-size: 28px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.th-date { color: var(--text-2); font-size: 15px; }
.src-note, .legend { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend .ic { margin-left: 8px; }

/* since strip */
.since-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.snum { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; }
.snum b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.snum span { font-size: 13.5px; }
.snum:hover { border-color: var(--line-2); }
.snum.on { border-color: #c8d6f6; background: var(--accent-soft); color: var(--accent-text); }
.since-strip .seen { margin-left: auto; }
.since-body { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; margin-bottom: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.sg { padding: 10px 16px; }
.sg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sg-head b { font-size: 14.5px; }
.sg-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.sg-more { padding-left: 34px; }

/* calls strip */
.calls-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: thin; }
.calls-strip.empty { color: var(--muted); font-size: 13px; gap: 8px; }
.cs-ic { color: var(--muted); }
.cs-item { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; max-width: 360px; }
.cs-item:hover { text-decoration: none; border-color: var(--line-2); }
.cs-item.past { opacity: .55; }
.cs-time { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); }
.cs-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* section title */
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 10px 0 12px; }
.sec-title h2 { font-size: 18px; margin: 0; font-weight: 650; }
.sec-title .muted { font-size: 13px; }

/* logos */
.logo { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo img { width: 72%; height: 72%; object-fit: contain; position: relative; z-index: 1; }
.logo b { position: absolute; font-size: 13px; color: var(--text-2); font-weight: 650; }
.logo:not(.ini) { background: hsl(var(--h, 220) 45% 93%); }
.logo:not(.ini) b { color: hsl(var(--h, 220) 40% 32%); }
.logo img { opacity: 0; }
.logo.ok { background: #fff; }
.logo.ok img { opacity: 1; }
.logo.ok b { visibility: hidden; }
.logo.ini { background: hsl(var(--h) 45% 93%); border-color: hsl(var(--h) 35% 85%); }
.logo.ini b { color: hsl(var(--h) 40% 32%); position: static; }
.logo[style*="width:22px"] b, .logo[style*="width:24px"] b { font-size: 10px; }
.logo[style*="width:22px"], .logo[style*="width:24px"] { border-radius: 7px; }

/* client tiles */
.tile-grid2 { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ctile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); min-width: 0; }
.ctile:hover { border-color: var(--line-2); }
.ctile:focus-visible, .ir-main:focus-visible, .snum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ct-top { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; }
.ct-name { font-size: 17px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.ct-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 8px; border-radius: 8px; background: var(--cb); color: var(--c); }
.tb b { font-size: 14px; font-variant-numeric: tabular-nums; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.sdot.red { background: var(--s-red); } .sdot.amber { background: var(--s-amber); } .sdot.green { background: var(--s-green); } .sdot.grey { background: #c9cfd9; }

/* client panel and item rows */
.cpanel { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0 8px; }
.cp-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 18px 10px; }
.cp-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.cp-sum { color: var(--text-2); font-size: 13.5px; }
.cp-link { font-size: 13px; margin-left: 4px; }
.cp-head .cp-link:first-of-type { margin-left: auto; }
.icon-x { margin-left: 8px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-x:hover { background: var(--bg); color: var(--text); }
.cp-rows { border-top: 1px solid #f0f2f6; }
.irow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid #f0f2f6; }
.irow.link { color: var(--text); }
.irow.link:hover { text-decoration: none; background: var(--surface-2); }
.ir-main { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 18px; cursor: pointer; min-width: 0; }
.ir-line { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.ir-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ir-chev { color: #b4bccb; display: inline-flex; transition: transform .15s ease; }
.irow.open .ir-chev { transform: rotate(180deg); }
.row-ok { color: var(--s-green); display: inline-flex; }
.tchip { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: var(--cb, #eef1f5); color: var(--c, var(--text-2)); }
.tchip.sm { width: 24px; height: 24px; border-radius: 7px; }
.due-tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--s-red); background: #fdecea; border-radius: 6px; padding: 1px 7px; vertical-align: 1px; }
.due-tag.soft { color: var(--text-2); background: #eef1f5; font-weight: 500; }
.ir-act { padding: 0 18px 0 8px; }
.act { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 1px solid transparent; background: var(--c); color: #fff; }
.act:hover { text-decoration: none; filter: brightness(.95); }
.ir-more { grid-column: 1 / -1; padding: 2px 18px 16px 64px; }
.ir-title { font-weight: 600; font-size: 14px; }
.ir-ask { margin-top: 4px; font-size: 14px; color: var(--text); }
.ir-ctx { margin-top: 4px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ir-chat textarea { width: 100%; margin-top: 10px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; }
.ir-src { margin-left: auto; font-size: 12px; color: var(--muted); }
.prep-c { padding: 8px 18px 2px; }
.prep-c summary { cursor: pointer; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.prep-c summary::-webkit-details-marker { display: none; }
.prep-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--text-2); }
.prep-row a { margin-left: auto; font-size: 12px; }

/* quiet clients */
.quiet-wrap { margin: 6px 0 20px; }
.quiet-wrap > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; padding: 6px 0; list-style: none; }
.quiet-wrap > summary::-webkit-details-marker { display: none; }
.quiet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: #eef1f5; color: var(--text-2); font-size: 13px; }
.qchip:hover { text-decoration: none; color: var(--text); }
.qchip .logo { filter: grayscale(1); opacity: .8; }
.empty-ok { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--s-green); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; font-size: 15px; }
.dept-sec { margin-bottom: 8px; }

/* projects tiles */
.pc-top .sdot { margin: 0 0 0 4px; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-prog .bar { height: 8px; }

@media (max-width: 860px) {
  .today-head h1 { font-size: 24px; }
  .src-note, .legend { margin-left: 0; width: 100%; }
  .tile-grid2 { gap: 10px; }
  .ctile { padding: 12px; border-radius: 14px; gap: 8px; }
  .ct-name { font-size: 15.5px; }
  .tb { height: 26px; padding: 0 7px; }
  .irow { grid-template-columns: minmax(0, 1fr); }
  .ir-main { padding: 12px 12px 6px 14px; }
  .ir-act { padding: 0 14px 12px 60px; }
  .ir-more { padding: 2px 14px 14px 14px; }
  .cp-head { padding: 12px 14px 10px; }
  .cp-head .cp-link:first-of-type { margin-left: 0; }
  .icon-x { margin-left: auto; }
  .since-strip .seen { margin-left: 0; }
  .snum { height: 40px; padding: 0 12px; }
  .since-body { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ir-chev { transition: none; } }

.cs-time { white-space: nowrap; }
.act { background: var(--cb); color: var(--c); border-color: transparent; }
.act:hover { background: var(--c); color: #fff; filter: none; }
.irow.late .tchip { box-shadow: inset 0 0 0 1.5px var(--s-red); }
@media (min-width: 861px) { .act { min-width: 172px; justify-content: center; } }

.old-tag { display: inline-block; margin-left: 6px; font-size: 11.5px; color: var(--muted); background: #eef1f5; border-radius: 6px; padding: 1px 7px; vertical-align: 1px; }
.pr-txt { display: flex; flex-direction: column; min-width: 0; }
.pr-why { font-size: 12px; color: var(--muted); }

/* gate mode: Готовится rows, prep-only tiles, removed list */
.ctile.prep-only { background: #f7f8fa; }
.ctile.prep-only .ct-name { color: var(--text-2); }
.t-prep { --c: var(--muted); --cb: #eef1f5; font-size: 12.5px; }
.prep-row.g { align-items: flex-start; }
.prep-row.g .btn { margin-left: auto; flex: none; }
.pr-why b { font-weight: 600; color: var(--text-2); }
.removed-wrap { margin: 18px 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.removed-wrap > summary { cursor: pointer; color: var(--text-2); font-size: 14px; padding: 12px 16px; list-style: none; }
.removed-wrap > summary::-webkit-details-marker { display: none; }
.removed-wrap[open] > summary { border-bottom: 1px solid #f0f2f6; }
.rm-fail { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--text-2); font-size: 13.5px; border-bottom: 1px solid #f0f2f6; }
.rm-fail a { margin-left: auto; font-size: 13px; }
.rm-group { padding: 10px 16px 4px; border-bottom: 1px solid #f0f2f6; }
.rm-row { display: grid; grid-template-columns: 178px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 6px 0; font-size: 13.5px; }
.rm-txt { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.reason { justify-self: start; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #eef1f5; color: var(--text-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.r-ждём-клиента, .r-ждём-команду { background: #fbf1dc; color: #8a5a00; }
.r-дубль, .r-уже-отвечено, .r-уже-сделано { background: #e7f5ed; color: #1f7a4d; }
.r-работа-агента, .r-решит-PM-по-правилам { background: #eaf0fc; color: var(--accent-text); }
.rm-back { font-size: 12.5px; color: var(--s-green); }
@media (max-width: 860px) {
  .rm-row { grid-template-columns: minmax(0, 1fr); }
  .prep-row.g { flex-wrap: wrap; }
  .prep-row.g .btn { margin-left: 34px; }
}

/* today_filter "verdicts": three folded strips under the queue */
.tf-strips { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.tf-strips .tf-strip { margin: 0; }
.tf-strip > summary { display: flex; align-items: center; gap: 10px; }
.tf-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: #eef1f5; color: var(--text-2); flex: none; }
.tf-lbl { font-weight: 600; color: var(--text); }
.tf-n { font-weight: 600; color: var(--muted); font-size: 13.5px; }
.tf-chev { margin-left: auto; display: inline-flex; color: var(--muted); transition: transform .15s; }
.tf-strip[open] .tf-chev { transform: rotate(180deg); }
.tf-strip[open] > summary { border-bottom: 0; }
.tf-note { padding: 0 16px 10px 56px; margin-top: -4px; font-size: 13px; color: var(--muted); border-bottom: 1px solid #f0f2f6; }
.tf-strip:not([open]) .tf-note { display: none; }
.tf-row .pr-txt { flex: 1; overflow-wrap: anywhere; }
.tf-row a { flex: none; }
.tf-unver .irow:last-child { border-bottom: 0; }
.tf-strip .rm-group:last-child { border-bottom: 0; }
.tf-strip .rm-row { grid-template-columns: 104px minmax(0, 1fr) auto; }
.tf-strip .rm-txt a, .tf-row a { white-space: nowrap; }
@media (max-width: 860px) {
  .tf-strip .rm-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tf-strip .rm-row + .rm-row { border-top: 1px solid #f0f2f6; padding-top: 10px; }
  .tf-strip .rm-row .btn { justify-self: start; }
  .tf-note { padding-left: 16px; margin-top: 0; }
  .tf-row { flex-wrap: wrap; }
  .tf-row a { margin-left: 34px; }
}
@media (prefers-reduced-motion: reduce) { .tf-chev { transition: none; } }

/* ---------------------------------------------------------------- GeeksPM project page: needs strip, station map */
.pm {
  --pm-ok: #2f8f5b; --pm-ok-soft: #e5f3eb; --pm-ok-text: #1f6b42;
  --pm-sh: #2c5cc5; --pm-sh-soft: #e9effc; --pm-sh-text: #23489b;
  --pm-wk: #c27c12; --pm-wk-soft: #fcf1dc; --pm-wk-text: #7d4f0a;
  --pm-you: #6b4fbb; --pm-you-deep: #4f3591; --pm-you-soft: #efeafb;
  --pm-off: #98a1b1; --pm-off-soft: #eef0f4; --pm-off-text: #5b6475;
  max-width: 1180px;
}
.pm-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin-bottom: 16px; }
.pm-head h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.pm-sub { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.pm-upd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pm-upd.pm-slack { margin-left: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pm-stale { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.pm-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.pm-sec-h h2 { margin: 0; font-size: 18px; font-weight: 650; }
.pm-sec-h h3 { margin: 0; font-size: 15px; font-weight: 650; }

/* needs strip: the loudest thing on the page */
.needs-band { background: var(--pm-you-deep); color: #fff; border-radius: 14px; padding: 16px 18px 18px; margin-bottom: 26px;
  box-shadow: 0 6px 18px rgba(79, 53, 145, .22); }
.needs-band.all-answered { background: #5f5480; box-shadow: none; }
.nb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nb-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.nb-head h2 { margin: 0; font-size: 21px; font-weight: 700; }
.nb-n { min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; background: #fff; color: var(--pm-you-deep);
  font-weight: 700; font-size: 15px; display: inline-grid; place-items: center; }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.need { display: flex; gap: 14px; background: #fff; color: var(--text); border-radius: 10px; padding: 16px; }
.nd-ic { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--pm-you-soft); color: var(--pm-you); display: grid; place-items: center; }
.nd-body { min-width: 0; flex: 1; }
.nd-body h3 { margin: 2px 0 6px; font-size: 17px; line-height: 1.3; font-weight: 650; }
.nd-line { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 4px; color: var(--text-2); font-size: 14px; }
.nd-line .ic { margin-top: 2px; color: var(--pm-you); }
.nd-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 10px;
  border: 2px solid var(--pm-you); background: var(--pm-you); color: #fff; font-size: 15px; font-weight: 650; cursor: pointer; }
.nd-btn:hover { background: var(--pm-you-deep); border-color: var(--pm-you-deep); }
.nd-btn:focus-visible, .stn-btn:focus-visible, .tg-btn:focus-visible, .pm-more summary:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.nd-btn:disabled { opacity: .55; cursor: default; }
.need.answered .nd-btn { background: #fff; color: var(--pm-you-deep); border-color: #d6cdee; }
.need.answered .nd-btn.chosen { background: var(--pm-ok); border-color: var(--pm-ok); color: #fff; }
.need.answered .nd-ic { background: var(--pm-ok-soft); color: var(--pm-ok); }
.nd-status { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.nd-status.ok { color: var(--pm-ok-text); font-weight: 600; }
.nd-status.fail { color: var(--alert); font-weight: 600; }
.ic.spin { animation: pm-spin 1s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.needs-calm { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; margin-bottom: 26px;
  background: var(--pm-ok-soft); color: var(--pm-ok-text); font-size: 17px; font-weight: 600; }

/* the station map: one line, seven stops */
.pm-map { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; margin-bottom: 26px; }
.map-lede { margin: -4px 0 14px; color: var(--text-2); font-size: 15px; }
.line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.stn { position: relative; min-width: 0; }
.stn-btn { width: 100%; background: none; border: 0; padding: 0 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  text-align: center; color: var(--text); border-radius: 10px; font: inherit; }
.here-tag { height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; margin-bottom: 8px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--pm-you-deep); position: relative; white-space: nowrap; }
.here-tag:empty { background: none; }
.here-tag:not(:empty)::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--pm-you-deep); }
.dot { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pm-off-soft); color: var(--pm-off-text); border: 4px solid var(--pm-off); }
.stn-txt { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; min-width: 0; }
.stn-name { font-weight: 650; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.stn-state { display: inline-block; text-align: center; font-size: 12.5px; line-height: 1.35; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--pm-off-soft); color: var(--pm-off-text); }
.stn-state i { display: inline-block; vertical-align: 1px; margin-right: 5px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* the connecting line, from this stop's center to the next one */
.stn:not(:last-child)::after { content: ""; position: absolute; top: 65px; left: calc(50% + 32px); right: calc(-50% + 32px); height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #c9cfd9 0 10px, transparent 10px 16px); }
.stn.past::after { background: var(--pm-ok); }
.s-ok .dot { background: var(--pm-ok-soft); color: var(--pm-ok); border-color: var(--pm-ok); }
.s-ok .stn-state { background: var(--pm-ok-soft); color: var(--pm-ok-text); }
.s-shadow .dot { background: var(--pm-sh-soft); color: var(--pm-sh); border-color: var(--pm-sh); border-style: dashed; }
.s-shadow .stn-state { background: var(--pm-sh-soft); color: var(--pm-sh-text); }
.s-work .dot { background: var(--pm-wk-soft); color: var(--pm-wk); border-color: var(--pm-wk); }
.s-work .stn-state { background: var(--pm-wk-soft); color: var(--pm-wk-text); }
.s-you .dot { background: var(--pm-you); color: #fff; border-color: var(--pm-you-deep); width: 76px; height: 76px; margin: -6px 0; animation: pm-pulse 2.2s ease-out infinite; }
.s-you .stn-state { background: var(--pm-you); color: #fff; }
.stn.s-you .stn-name { color: var(--pm-you-deep); }
@keyframes pm-pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 79, 187, .5); } 70% { box-shadow: 0 0 0 16px rgba(107, 79, 187, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 79, 187, 0); } }
.stn-btn:hover .dot { transform: scale(1.04); }
.stn.sel .stn-name { text-decoration: underline 3px; text-underline-offset: 5px; }
.stn-txt .stn-state { order: -1; }
.stn-inline { display: none; }
.stn-detail { position: relative; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.stn-detail::before { content: ""; position: absolute; top: -8px; left: var(--x); margin-left: -8px; width: 14px; height: 14px; background: var(--surface-2);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.sd-head { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.sd { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.sd div { min-width: 0; }
.sd dt { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.sd dd { margin: 0; font-size: 15px; line-height: 1.4; }
.sd-you dd { color: var(--pm-you-deep); font-weight: 700; }
.sd-you.none dd { color: var(--muted); font-weight: 400; }

/* today tiles and next steps */
.pm-today, .pm-next { margin-bottom: 26px; }
.tiles-row { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dtile { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 34px 12px 12px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.3; font-weight: 500; }
.dt-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.dtile.ok .dt-ic { background: var(--pm-ok-soft); color: var(--pm-ok); }
.dtile.work { background: var(--pm-wk-soft); border-color: #f0dcb4; padding-right: 12px; }
.dtile.work .dt-ic { background: #fff; color: var(--pm-wk); }
.dt-mark { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--pm-ok); color: #fff; display: grid; place-items: center; }
.row-cap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pm-wk-text); margin: 14px 0 8px; }
.next-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.next-strip li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 0; font-size: 14px; font-weight: 500; line-height: 1.3; }
.next-strip li:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2); transform: rotate(45deg); }
.nn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface);
  border: 2px solid var(--line-2); color: var(--text-2); }
.next-strip li:first-child .nn { background: var(--pm-you); border-color: var(--pm-you); color: #fff; }

/* details: open tasks by station */
.pm-more { border-top: 1px solid var(--line); padding-top: 6px; }
.pm-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 4px; font-size: 16px; font-weight: 650; list-style: none; border-radius: 8px; }
.pm-more summary::-webkit-details-marker { display: none; }
.pm-more summary .ic { transform: rotate(-90deg); transition: transform .15s; }
.pm-more[open] summary .ic { transform: none; }
.pm-more summary .muted { font-weight: 400; font-size: 13px; }
.pm-more-body { padding: 8px 0 0; }
.tgroups { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 6px; }
.tg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tg-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--text); text-align: left; border-radius: 10px; }
.tg-btn:disabled { cursor: default; color: var(--muted); }
.tg-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--pm-off-soft); color: var(--pm-off-text); }
.tg.s-ok .tg-ic { background: var(--pm-ok-soft); color: var(--pm-ok); }
.tg.s-shadow .tg-ic { background: var(--pm-sh-soft); color: var(--pm-sh); }
.tg.s-work .tg-ic { background: var(--pm-wk-soft); color: var(--pm-wk); }
.tg.s-you .tg-ic { background: var(--pm-you-soft); color: var(--pm-you); }
.tg-name { flex: 1; min-width: 0; font-weight: 600; }
.tg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pm-off); flex: none; }
.tg.s-ok .tg-dot { background: var(--pm-ok); } .tg.s-shadow .tg-dot { background: var(--pm-sh); } .tg.s-work .tg-dot { background: var(--pm-wk); } .tg.s-you .tg-dot { background: var(--pm-you); }
.tg-n { min-width: 34px; text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; }
.tg-btn .ic:last-child { color: var(--muted); }
.tg.open .tg-btn .ic:last-child { transform: rotate(180deg); }
.tk-list { list-style: none; margin: 0; padding: 0 12px 10px 54px; display: grid; gap: 2px; }
.tk { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); }
.tk > .ic { margin-top: 2px; }
.tk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-line { color: var(--text); font-size: 14px; }
.tk-ref { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tk-ref.solo { font-size: 13px; }
.tk-late { flex: none; font-size: 12px; font-weight: 600; color: var(--alert); background: var(--alert-soft); border-radius: 999px; padding: 1px 8px; }
.docs-row { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-link { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; }
.pm-oldlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 18px; }
.pm-oldlinks a { color: var(--muted); }
.pm-old { margin-top: 8px; }

@media (max-width: 760px) {
  .pm-head h1 { font-size: 23px; }
  .pm-upd { margin-left: 0; }
  .needs-band { padding: 14px 12px 14px; border-radius: 12px; }
  .nb-cards { grid-template-columns: minmax(0, 1fr); }
  .need { padding: 14px 12px; gap: 12px; }
  .nd-ic { width: 44px; height: 44px; }
  .nd-btn { flex: 1 1 auto; }
  .pm-map { padding: 14px 12px 8px; }
  /* the line runs top to bottom on a phone */
  .line { grid-template-columns: minmax(0, 1fr); }
  .stn-btn { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 8px 6px; }
  .here-tag { display: none; }
  .stn.here .stn-txt::before { content: attr(data-here); align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--pm-you-deep); border-radius: 999px; padding: 1px 9px; }
  .dot { width: 52px; height: 52px; flex: none; }
  .s-you .dot { width: 60px; height: 60px; margin: 0 -4px; }
  .stn-txt { align-items: flex-start; margin-top: 0; }
  .stn:not(:last-child)::after { top: 34px; bottom: -34px; left: 31px; right: auto; width: 6px; height: auto;
    background: repeating-linear-gradient(180deg, #c9cfd9 0 10px, transparent 10px 16px); }
  .stn.past::after { background: var(--pm-ok); }
  .stn-txt .stn-state { order: 0; }
  .stn.sel .stn-name { text-decoration: none; }
  .stn-inline { display: block; position: relative; z-index: 1; margin: 0 0 10px 70px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
  .stn-detail { display: none; }
  .sd { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tiles-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dtile { flex-direction: column; align-items: flex-start; padding: 10px 10px 12px; font-size: 13.5px; }
  .dtile.work { padding-right: 10px; }
  .pm-more summary .muted { display: none; }
  .next-strip { grid-template-columns: minmax(0, 1fr); }
  .next-strip li { padding: 6px 0; }
  .next-strip li:not(:last-child)::after { display: none; }
  .tk-list { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-you .dot, .ic.spin { animation: none; }
  .pm-more summary .ic { transition: none; }
}

/* language switch RU | EN in the top bar */
.lang-sw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; flex: none; }
.lang-sw button { border: 0; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  min-width: 34px; height: 28px; padding: 0 8px; cursor: pointer; }
.lang-sw button + button { border-left: 1px solid var(--line-2); }
.lang-sw button.on { background: var(--accent-soft); color: var(--accent-text); }
.lang-sw button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 480px) {
  .topbar { gap: 8px; }
  .top-right { gap: 6px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .lang-sw button { min-width: 30px; padding: 0 6px; }
}

/* GeeksPM decisions: checklist lines, recommended option, card link, discussion */
.nd-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.nd-list li { display: flex; gap: 7px; align-items: flex-start; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.nd-list li .ic { flex: none; margin-top: 2px; color: var(--pm-you); }
.nd-list li.ask { color: var(--text); font-weight: 600; }
.nd-btn.rec { box-shadow: 0 0 0 2px #f2b705 inset; }
.nd-rec { font-size: 11px; font-weight: 700; text-transform: lowercase; background: #f2b705; color: #2b2300; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.nd-notready { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); background: #ece8f5; border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.nd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; font-size: 13.5px; }
.nd-card { color: var(--pm-you-deep); }
/* per-item chat thread (Today rows and decisions) */
.thread { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.th-list { max-height: 360px; overflow-y: auto; padding: 8px 10px; display: grid; gap: 8px; }
.th-msg { max-width: 92%; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.th-msg.ag { background: #f3f1f8; justify-self: start; }
.th-msg.me { background: #e6f0ff; justify-self: end; }
.th-who { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; gap: 8px; margin-bottom: 2px; }
.th-who span { font-weight: 400; color: var(--muted); }
.th-body { overflow-wrap: anywhere; color: var(--text); }
.th-body .md-ul { margin: 2px 0; padding-left: 18px; }
.th-body .md-ul li { margin: 1px 0; }
.th-body li.md-box { list-style: none; margin-left: -18px; display: flex; gap: 6px; }
.th-body .md-cb { flex: none; width: 14px; height: 14px; margin-top: 3px; border: 1.5px solid var(--muted); border-radius: 3px; font-size: 11px; line-height: 12px; text-align: center; color: var(--ok); }
.th-body .md-h { font-weight: 650; margin-top: 4px; }
.th-body code { font-size: 12.5px; background: rgba(0,0,0,.06); border-radius: 4px; padding: 0 4px; }
.th-body a { color: var(--pm-you-deep, #3b2f7a); }
.th-wait, .th-empty { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 2px; }
.th-more { justify-self: center; font-size: 12.5px; }
.th-box { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line-2); padding: 8px; }
.th-box textarea { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; }
@media (max-width: 600px) { .th-box { flex-direction: column; align-items: stretch; } .th-msg { max-width: 100%; } }
.need .th-box { flex-direction: column; align-items: stretch; }
