@font-face { font-family: Bidon; src: url(/fonts/Bidon.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Adobe Hebrew"; src: url(/fonts/AdobeHebrew-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 100 900; src: url(/fonts/Inter-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 100 900; src: url(/fonts/Inter-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f3f5f8; --panel: #ffffff; --ink: #16202b; --soft: #556272; --faint: #667385; --line: #e1e6ec;
  --accent: #047bc1; --orange: #fb3d03; --orange-ink: #c43100; --accent-ink: #03639c; --accent-soft: #e6f2fa; --on-accent: #ffffff;
  --ok: #197a49; --wait: #8f5c06; --wait-soft: #fbf1dc; --bad: #c62828; --bad-soft: #fdecea; --plan: #8f9bab;
  --shadow: 0 1px 2px rgba(22, 32, 43, 0.06), 0 4px 14px rgba(22, 32, 43, 0.06);
  --st-none: #c62828; --st-sent: #a86f00; --st-neg: #d4560f; --st-agreed: #047bc1; --st-ssigned: #138a8a; --st-signed: #197a49;
  --r: 8px;
  --display: Bidon, "Arial Narrow", sans-serif;
  --title: "Adobe Hebrew", Georgia, serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
}
:root.dark {
  color-scheme: dark;
  --bg: #1a222d; --panel: #232d3a; --ink: #e9eef4; --soft: #a9b6c5; --faint: #94a2b4; --line: #344153;
  --accent: #5ab4ea; --orange-ink: #ff8f66; --accent-ink: #7cc4f0; --accent-soft: #1f3a4f; --on-accent: #10202c;
  --ok: #5fd093; --wait: #f0b84a; --wait-soft: #3d3421; --bad: #ff8a80; --bad-soft: #44272a; --plan: #7f8ea0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 18px rgba(0, 0, 0, 0.22);
  --st-none: #ff8a80; --st-sent: #f0b84a; --st-neg: #ff9e5e; --st-agreed: #5ab4ea; --st-ssigned: #4fc9c0; --st-signed: #5fd093;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.6; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.app { display: grid; grid-template-columns: 228px minmax(0, 1fr) 344px; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span { font-family: var(--display); font-size: 17px; line-height: 1.05; letter-spacing: 0.01em; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--soft); font-weight: 600; text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.nav .sub { padding-left: 34px; font-weight: 500; }
.nav .sub[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 700; }
.nav .count { margin-left: auto; background: var(--bad); color: var(--panel); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 0 7px; }
.nav .count.calm { background: var(--accent); color: var(--on-accent); }
.nav-note { padding: 8px 10px 0; font-size: 12px; color: var(--faint); }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 0 8px; font-size: 13px; color: var(--soft); }
.side-foot .seg { justify-self: start; }
.disp { display: flex; gap: 8px; align-items: flex-start; }
.disp b { font-weight: 600; display: block; color: var(--ink); }
.disp.off b { color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.who a { font-weight: 600; }

.main { padding: 22px 26px 30px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--bad-soft); color: var(--bad); border-radius: var(--r); padding: 10px 14px; font-weight: 600; }
.alert + .alert { margin-top: 10px; }
.alert span { color: var(--ink); font-weight: 400; }
.alert.lost { background: var(--wait-soft); color: var(--wait); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: 0.005em; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.32em; }
h1 .dot { width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--orange); display: inline-block; }
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 3px; }
.verdict b { font-weight: 700; font-size: 17px; }
.verdict .up { color: var(--ok); } .verdict .down { color: var(--bad); }
.verdict span { color: var(--soft); }
h2 { font-family: var(--title); font-weight: 400; font-size: 21px; line-height: 1.15; }
h3 { font-family: var(--title); font-weight: 400; font-size: 19px; line-height: 1.15; }
.sect { display: grid; gap: 12px; }
.sect-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); }
.empty { padding: 16px; color: var(--soft); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-weight: 600; font-size: 14px; border-left: 1px solid var(--line); min-height: 34px; color: var(--soft); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg.small button { padding: 4px 10px; min-height: 30px; font-size: 13px; }

.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.num { padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.num:first-child { border-left: 0; }
.num .k { font-size: 13px; color: var(--soft); font-weight: 600; }
.num .v { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.num .d { font-size: 13px; font-weight: 600; color: var(--soft); }
.num .d.up { color: var(--ok); } .num .d.down { color: var(--wait); } .num .d.none { font-weight: 500; }
.src { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.src .k { font-size: 13px; color: var(--soft); font-weight: 600; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; }
.stack i { display: block; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.ic { width: 18px; height: 18px; display: block; flex: none; }
.plat { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.plat a, .plat span { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--bg); color: var(--soft); text-decoration: none; border: 1px solid var(--line); white-space: nowrap; }
.plat a { color: var(--accent-ink); border-color: var(--accent); }
.plat a:hover { background: var(--accent-soft); }
.track { display: inline-flex; align-items: center; gap: 3px; }
.track i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); display: block; }
.track i.ok { background: var(--ok); } .track i.bad { background: var(--bad); } .track i.warn { background: var(--wait); } .track i.next { background: var(--plan); } .track i.run { background: var(--accent); }

.lanes { display: grid; gap: 14px; }
.lane { padding: 14px 16px; display: grid; gap: 12px; }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lane-head h3 { font-family: var(--body); font-weight: 700; font-size: 16px; }
.lane-head .v { font-weight: 700; }
.lane-head .d { font-weight: 600; font-size: 13px; color: var(--soft); }
.lane-head .d.up { color: var(--ok); } .lane-head .d.down { color: var(--wait); }
.lane-head .plat { margin-left: auto; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.step { display: grid; justify-items: center; align-content: start; gap: 4px; position: relative; text-align: center; background: transparent; border: 0; padding: 4px 2px; border-radius: 6px; min-width: 0; }
.step:hover { background: var(--accent-soft); }
.step::before { content: ""; position: absolute; z-index: 0; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step.ok::before { background: var(--ok); }
.step .ic { position: relative; z-index: 1; background: var(--panel); border-radius: 50%; }
.step b { font-size: 13px; font-weight: 600; }
.step span { font-size: 12px; color: var(--soft); }
.step.bad b, .step.bad span { color: var(--bad); }
.step.warn b { color: var(--wait); }
.step.next b { color: var(--soft); }

.day-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.day-h b { color: var(--ink); font-size: 14px; font-weight: 700; }
.day-h.today b { color: var(--accent-ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-right: 16px; border-top: 1px solid var(--line); }
.row:hover { background: var(--accent-soft); }
.row-main { display: grid; grid-template-columns: 50px 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0 9px 16px; border: 0; background: transparent; text-align: left; width: 100%; }
.row .t { font-weight: 600; color: var(--soft); font-size: 14px; }
.row .name { font-weight: 600; min-width: 0; }
.row .why { display: block; font-weight: 400; font-size: 13px; color: var(--soft); }
.row.bad .name { color: var(--bad); } .row.bad .why { color: var(--ink); }
.row.warn .name { color: var(--wait); } .row.warn .why { color: var(--ink); }
.row.ok .name { font-weight: 500; color: var(--soft); }
.row .end { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.more { display: block; width: 100%; text-align: left; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent-ink); font-weight: 600; font-size: 14px; }

.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 600; flex-wrap: wrap; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wd { border-left: 1px solid var(--line); min-height: 200px; display: grid; align-content: start; }
.wd:first-child { border-left: 0; }
.wd-h { padding: 10px 10px 8px; font-size: 13px; font-weight: 700; color: var(--soft); border-bottom: 1px solid var(--line); }
.wd.today .wd-h { color: var(--accent-ink); box-shadow: inset 0 3px 0 var(--accent); }
.wi { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; padding: 7px 10px; font-size: 13px; text-align: left; background: transparent; border: 0; width: 100%; }
.wi:hover { background: var(--accent-soft); }
.wi .ic { width: 15px; height: 15px; margin-top: 2px; }
.wi b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.wi span span { color: var(--soft); font-size: 12px; }
.wi.ok b { font-weight: 500; color: var(--soft); }
.wi.bad b { color: var(--bad); } .wi.warn b { color: var(--wait); }
.wd .none { padding: 10px; font-size: 13px; color: var(--faint); }

.rail { border-left: 1px solid var(--line); padding: 22px 16px 30px; display: grid; gap: 16px; align-content: start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.rcard { padding: 14px; display: grid; gap: 10px; }
.rcard.hot { background: var(--bad-soft); box-shadow: none; }
.rcard > h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rcard > h3 small { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--soft); }
.rcard.hot > h3 small { color: var(--bad); }
.rcard p { font-size: 14px; overflow-wrap: anywhere; }
.dim { color: var(--soft); font-size: 13px; }
.need { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--bad) 22%, transparent); }
.need:first-of-type { border-top: 0; padding-top: 0; }
.need-more { justify-self: start; }
.need .ttl { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 14px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: 14px; min-height: 36px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; }
.tick { width: 20px; height: 20px; border: 2px solid var(--plan); border-radius: 5px; background: transparent; padding: 0; margin-top: 1px; }
.tick:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); }
.task .late { color: var(--bad); font-weight: 700; }
.task .urgent { color: var(--bad); font-weight: 700; }
.form { display: grid; gap: 8px; }
.form label { font-size: 13px; font-weight: 600; color: var(--soft); display: grid; gap: 4px; }
.form input, .form select, .form textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 38px; width: 100%; font-weight: 400; color: var(--ink); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.log { display: grid; gap: 8px; font-size: 13px; }
.log div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.log time { color: var(--faint); font-weight: 600; }

.claude { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--panel); border: 0; border-radius: 6px; padding: 9px 14px; font-weight: 600; margin: 0 8px; min-height: 38px; }
.scrim { position: fixed; inset: 0; background: rgba(10, 16, 24, 0.28); z-index: 19; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--panel); box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2); padding: calc(18px + env(safe-area-inset-top, 0px)) 22px 22px; display: flex; flex-direction: column; gap: 14px; z-index: 20; overflow-y: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-top span { font-size: 13px; font-weight: 600; color: var(--soft); }
.dbody { display: grid; gap: 14px; align-content: start; }
.dbody h2 { font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.3; }
.dbody .st { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.dbody .st.bad { color: var(--bad); } .dbody .st.warn { color: var(--wait); } .dbody .st.ok { color: var(--ok); }
.dbody p { overflow-wrap: anywhere; }
.dbody dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 10px; font-size: 14px; }
.dbody dt { color: var(--soft); font-weight: 600; }
.dbody dd { margin: 0; overflow-wrap: anywhere; }
.hist { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.hist time { color: var(--faint); font-weight: 600; }
.posts { list-style: none; display: grid; gap: 0; font-size: 14px; }
.posts li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts b { font-weight: 600; display: block; }
.chat-top { display: flex; gap: 8px; align-items: center; position: sticky; top: 0; background: var(--panel); padding-bottom: 6px; z-index: 1; }
.chat-top select { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; min-height: 36px; color: var(--ink); }
.chat-ro { font-size: 13px; color: var(--wait); font-weight: 600; }
.msg.sys { background: none; padding: 0; justify-self: center; text-align: center; }
.chat { flex: 1; display: grid; gap: 10px; align-content: start; overflow-y: auto; min-height: 120px; padding-right: 4px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 10px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.msg.me { justify-self: end; background: var(--accent-soft); }
.msg small { display: block; color: var(--faint); font-weight: 600; margin-top: 4px; white-space: normal; }
.chat-form { display: grid; gap: 8px; }
.chat-form textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; min-height: 76px; resize: vertical; width: 100%; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 30; max-width: calc(100vw - 32px); font-weight: 500; }
.toast.bad { background: var(--bad); }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
.gate { max-width: 440px; margin: 12vh auto; padding: 26px; display: grid; gap: 14px; }

@media (max-width: 1240px) {
  .app { grid-template-columns: 208px minmax(0, 1fr); }
  .rail { grid-column: 2; grid-row: 1; position: static; max-height: none; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 22px 26px 22px; }
  .main { grid-column: 2; }
  .side { grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); gap: 12px; padding: 12px; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .sub { padding-left: 10px; }
  .nav-note { display: none; }
  .side-foot { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .claude { margin: 0; }
  .main { grid-column: 1; grid-row: auto; padding: 16px 14px 20px; order: 2; }
  .rail { display: contents; }
  .rail > div { padding: 0 14px 16px; order: 3; }
  .rail > div:empty { display: none; }
  body:has(#needs .rcard:not(.calm)):not([data-page="home"]) .rail > :is(#tasks, #needs) { order: 1; padding-top: 16px; padding-bottom: 0; }
  .num { border-left: 0; border-top: 1px solid var(--line); }
  .num:first-child { border-top: 0; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .wd { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .steps { grid-auto-flow: row; gap: 2px; }
  .step { grid-template-columns: 22px minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; padding: 6px 4px; }
  .step::before { display: none; }
  .lane-head .plat { margin-left: 0; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-right: 0; }
  .row-main { grid-template-columns: 44px 20px minmax(0, 1fr); }
  .row .end { justify-content: flex-start; padding: 0 16px 9px 90px; }
  .row .end:empty { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer { animation: slide 0.18s ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.page { display: grid; gap: 22px; align-content: start; min-width: 0; }
.pickers { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; width: 100%; }
.pickers label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: var(--soft); }
.pickers select { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 30px 6px 10px; min-height: 36px; max-width: 100%; }
.stage-line { font-size: 13px; color: var(--soft); }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-bottom: 1px solid var(--line); }
.tabs button { text-align: left; background: transparent; border: 0; border-left: 1px solid var(--line); border-bottom: 3px solid transparent; padding: 12px 16px 11px; display: grid; gap: 2px; align-content: start; color: var(--ink); }
.tabs button:first-child { border-left: 0; }
.tabs button:hover { background: var(--accent-soft); }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); }
.tabs .k { font-size: 13px; color: var(--soft); font-weight: 600; }
.tabs .v { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tabs .d { font-size: 13px; font-weight: 600; color: var(--soft); }
.tabs .d.up { color: var(--ok); } .tabs .d.down { color: var(--wait); }
.chart { padding: 18px 16px 14px; display: grid; gap: 12px; }
.chart-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--soft); }
.chart-title b { color: var(--ink); font-weight: 600; }
.cols { position: relative; height: 210px; margin-top: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.col { position: relative; min-width: 0; }
.col .top { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; padding: 0 4px; background: var(--panel); text-align: center; font-size: 12px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.col.pick .top { color: var(--ink); font-size: 13px; }
.col .bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(56px, 100%); display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; }
.col.pick .bar { outline: 2px solid var(--ink); outline-offset: 2px; }
.col.vs .bar { outline: 2px dashed var(--ink); outline-offset: 2px; }
.col.vs .top { color: var(--ink); }
.col .bar i { display: block; width: 100%; flex: none; }
.base { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.base span { text-align: center; font-size: 12px; color: var(--soft); font-weight: 600; }
.base span.pick { color: var(--ink); }
.usual { position: absolute; left: 0; right: 0; z-index: 0; border-top: 2px dashed var(--soft); pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trio .num .s { font-size: 12px; color: var(--soft); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.plats { padding: 8px 16px 12px; display: grid; }
.prow { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4.2em 5em; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prow .bar i { display: block; height: 100%; }
.prow .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.prow .p { text-align: right; color: var(--soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.live { padding: 6px 16px 12px; display: grid; }
.live .clip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; }
.live .clip + .clip { border-top: 1px solid var(--line); }
.live .clip b { font-weight: 700; }
.live .clip .t { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.live .clip small { grid-column: 1 / -1; color: var(--soft); font-size: 12px; }
.card-head { padding: 14px 16px 0; display: grid; gap: 4px; }
.card-head p { font-size: 13px; color: var(--soft); }
.foot-note { font-size: 13px; color: var(--soft); max-width: 75ch; }
@media (max-width: 760px) {
  .pickers { margin-left: 0; width: 100%; }
  .pickers label { flex: 1 1 140px; }
  .cols, .base { gap: 4px; }
  .col .top { font-size: 11px; }
  .col.pick .top { font-size: 12px; }
  .prow { grid-template-columns: 7.5em minmax(0, 1fr) 3.8em 4.6em; gap: 8px; }
}
#res-body, #rep-body { display: grid; gap: 22px; min-width: 0; }
#res-body .stage-line { margin-bottom: -10px; }
:lang(km) { font-family: "Noto Sans Khmer", "Khmer OS System", "Khmer UI", "Leelawadee UI", var(--body); line-height: 1.75; }
.rep-title { display: grid; gap: 6px; }
.rep-collect { margin-left: auto; }
.verdict .down { color: var(--bad); font-weight: 600; }
.threads { display: grid; padding-top: 6px; }
.thread { padding: 14px 16px 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); min-width: 0; }
.thread:first-child { border-top: 0; }
.thread .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; font-size: 13px; color: var(--soft); }
.pf { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.pf::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pf); }
.said { display: grid; gap: 2px; overflow-wrap: anywhere; }
.said .who { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.said .who b { font-weight: 700; }
.said .who time { font-size: 13px; color: var(--faint); font-weight: 600; }
.reply { margin-left: 10px; padding-left: 14px; border-left: 2px solid var(--accent); display: grid; gap: 5px; max-width: 68ch; }
.reply .as { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.reply .text { background: var(--accent-soft); padding: 9px 12px; border-radius: 0 10px 10px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread.posted .reply, .thread.approved .reply, .thread.posting .reply { border-left-color: var(--line); }
.thread.redrafting .reply .text { opacity: 0.6; }
.reply textarea, .fb textarea { background: var(--bg); border: 1px solid var(--accent); border-radius: 6px; padding: 9px 11px; min-height: 84px; resize: vertical; width: 100%; }
.thread .state { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.thread .state.bad { color: var(--ink); }
.thread .state.bad b { color: var(--bad); }
.thread .btns { margin-left: 26px; }
.fb { margin-left: 26px; display: grid; gap: 6px; max-width: 68ch; }
.fb label { font-size: 13px; font-weight: 600; color: var(--soft); }
.posted { list-style: none; display: grid; padding: 6px 16px 6px; }
.posted li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.posted li:first-child { border-top: 0; }
.posted .ic { margin-top: 2px; }
.posted .text { color: var(--soft); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .rep-collect { margin-left: 0; }
  .reply { margin-left: 4px; padding-left: 10px; }
  .thread .btns, .fb { margin-left: 0; }
}
#page { display: grid; min-width: 0; }
.row .t small { display: block; font-weight: 500; font-size: 12px; }
.seg button .n { font-weight: 500; opacity: 0.8; margin-left: 2px; }
.jl .row .end .btn { min-height: 30px; padding: 4px 10px; font-size: 13px; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); min-height: 38px; }
label.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.tick.on { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--panel); }
.tick.ro { display: inline-block; cursor: not-allowed; opacity: 0.6; }
.drawer .td-edit { border-top: 1px solid var(--line); padding-top: 14px; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.row .end a { font-size: 13px; font-weight: 600; }
.row .end .btn { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.card.list > .card-head { padding: 14px 16px 10px; }
.page [id$="-body"] { display: grid; gap: 22px; align-content: start; min-width: 0; }
.wb-up { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.verdict .down .ic, .wb-up .ic { width: 16px; height: 16px; }
.verdict .down { display: inline-flex; align-items: center; gap: 6px; }
.wb-table { overflow-x: auto; }
.wb-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wb-table th, .wb-table td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.wb-table thead th { font-size: 12px; color: var(--soft); font-weight: 600; border-top: 0; }
.wb-table th[scope=row], .wb-table thead th:first-child { text-align: left; white-space: normal; overflow-wrap: anywhere; font-weight: 600; padding-left: 16px; }
.wb-table td:last-child, .wb-table th:last-child { padding-right: 16px; }
.wb-table th[scope=row] small { display: block; font-size: 12px; font-weight: 500; color: var(--soft); }
.page [id$="-body"] > * { min-width: 0; }
.msg.claude-said { white-space: normal; }
.msg.claude-said p { margin: 0 0 6px; }
.msg.claude-said ul { margin: 2px 0 6px; padding-left: 18px; display: grid; gap: 2px; }

.av { --av: var(--plan); width: 26px; height: 26px; border-radius: 50%; background: var(--av); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; letter-spacing: 0; }
.av.sm { width: 22px; height: 22px; font-size: 11px; }
.av.xs { width: 18px; height: 18px; font-size: 10px; }
.pdot { --c: var(--plan); width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

.td-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 4px 12px 4px 5px; min-height: 34px; font-size: 14px; font-weight: 600; color: var(--soft); }
.pchip:first-child { padding-left: 12px; }
.pchip b { font-weight: 700; color: var(--ink); font-size: 13px; }
.pchip:hover { border-color: var(--accent); }
.pchip.on { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.pchip.on b { color: var(--panel); }
.td-proj select { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 30px 6px 14px; min-height: 34px; }

.wk { display: grid; grid-template-columns: 1.1fr repeat(7, minmax(0, 1fr)) 1fr 1fr; overflow: hidden; }
.wk-cell { display: grid; grid-template-rows: auto auto 1fr auto; gap: 2px; padding: 12px 10px 12px; border-left: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; min-height: 112px; position: relative; }
.wk-cell:first-child { border-left: 0; }
.wk-cell:hover { background: var(--accent-soft); }
.wk-l { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-s { font-size: 12px; color: var(--soft); font-weight: 600; min-height: 1.2em; }
.wk-n { font-size: 28px; font-weight: 700; line-height: 1; align-self: end; letter-spacing: -0.02em; }
.wk-dots { display: flex; flex-wrap: wrap; gap: 3px; min-height: 8px; }
.wk-dots i { --c: var(--plan); width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wk-dots i.u { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--bad); }
.wk-cell.empty .wk-n { color: var(--line); }
.wk-cell.edge { background: color-mix(in srgb, var(--bg) 55%, var(--panel)); }
.wk-cell.today { box-shadow: inset 0 3px 0 var(--accent); }
.wk-cell.today .wk-l { color: var(--accent-ink); }
.wk-cell.late:not(.empty) { background: var(--bad-soft); }
.wk-cell.late:not(.empty) .wk-l, .wk-cell.late:not(.empty) .wk-n { color: var(--bad); }

.td-add { padding: 6px 6px 12px; display: grid; gap: 8px; }
.td-new { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 12px 12px; font-size: 17px; font-weight: 500; color: var(--ink); border-radius: 0; }
.td-new:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.td-new::placeholder { color: var(--faint); }
.td-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 2px 10px; }
.td-opts fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.td-opts legend { float: left; font-size: 12px; font-weight: 700; color: var(--soft); margin-right: 6px; padding: 0; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; min-height: 30px; font-size: 13px; font-weight: 600; color: var(--soft); cursor: pointer; background: var(--panel); }
.opt input[type=radio], .opt input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.flag:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.opt.date { padding: 0 4px 0 8px; }
.opt.date input { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); min-height: 28px; }
.td-go { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.agenda { padding: 4px 0 0; }
.ag + .ag { border-top: 1px solid var(--line); }
.ag-h { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 6px; font-family: var(--body); font-size: 14px; }
.ag-h b { font-weight: 700; }
.ag-h span { color: var(--soft); font-size: 13px; font-weight: 600; }
.ag-h small { margin-left: auto; color: var(--soft); font-size: 13px; font-weight: 700; }
.ag.today .ag-h b { color: var(--accent-ink); }
.ag.late .ag-h b, .ag.late .ag-h small { color: var(--bad); }
.ag ul, .td-donelist { list-style: none; margin: 0; padding: 0 0 8px; }
.ag-none { padding: 2px 18px 14px 54px; color: var(--soft); font-size: 14px; }
.td-task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 18px; }
.td-task:hover { background: var(--accent-soft); }
.td-text { border: 0; background: transparent; padding: 0; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.td-text .flag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bad); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-right: 8px; vertical-align: 2px; }
.td-text .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--soft); }
.td-text .pj { display: inline-flex; align-items: center; gap: 6px; }
.td-text .late { color: var(--bad); font-weight: 700; }
.td-text .sep { color: var(--line); }
.td-end { display: flex; align-items: center; gap: 10px; }
.td-link { font-size: 13px; font-weight: 600; }
.td-task.done .td-text { color: var(--soft); text-decoration: line-through; font-weight: 500; }
.td-task.done .td-text .meta { text-decoration: none; }
.td-donelist { border-top: 1px solid var(--line); padding-top: 6px; }
.agenda > .more { border-top: 1px solid var(--line); }
.drawer .td-edit { border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 1240px) { .wk { grid-template-columns: repeat(5, minmax(0, 1fr)); } .wk-cell:nth-child(5n + 1) { border-left: 0; } .wk-cell:nth-child(n + 6) { border-top: 1px solid var(--line); } .wk-cell { min-height: 92px; } }
@media (max-width: 760px) {
  .wk-cell { padding: 8px 5px; min-height: 76px; }
  .wk-l { font-size: 12px; text-overflow: clip; }
  .wk-n { font-size: 22px; }
  .td-opts { gap: 10px; }
  .td-go { margin-left: 0; width: 100%; justify-content: space-between; }
  .td-task { padding: 10px 14px; gap: 12px; }
  .ag-h { padding: 14px 14px 6px; }
  .ag-none { padding-left: 48px; }
}
.td-add:not(:focus-within):has(.td-new:placeholder-shown) .td-opts { display: none; }
.td-add:not(:focus-within):has(.td-new:placeholder-shown) { padding-bottom: 6px; }
.td-add:not(:focus-within):has(.td-new:placeholder-shown) .td-new { border-bottom-color: transparent; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { --pc: var(--accent); background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-width: 0; position: relative; overflow: hidden; }
.tile.t-podcast { grid-column: span 2; }
.tile-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.tile-head h2 { font-size: 22px; }
.tile-head h2 a { color: var(--ink); text-decoration: none; }
.tile-head h2 a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.tile-alert { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wait); }
.tile-alert .ic { width: 15px; height: 15px; }
.tile-big { display: grid; gap: 2px; }
.tile-big b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tile-big span { font-size: 13px; color: var(--soft); font-weight: 600; }
.tile-big .up { color: var(--ok); } .tile-big .down { color: var(--bad); }
.tile-next { font-size: 13px; color: var(--soft); align-self: end; }
.tile-next b { color: var(--ink); font-weight: 600; }
.tile-foot { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
.tile-foot .linkbtn { font-size: 13px; }
.tile-foot .late { color: var(--bad); }

.mini-lanes { display: grid; gap: 6px; align-content: start; }
.mini-lane { display: grid; grid-template-columns: 92px auto minmax(0, 1fr); align-items: center; gap: 10px 18px; font-size: 13px; font-weight: 600; }
.mini-v { font-size: 13px; font-weight: 500; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-v b { color: var(--ink); font-weight: 700; }
.mini-v .up { color: var(--ok); font-weight: 600; } .mini-v .down { color: var(--wait); font-weight: 600; }
.tile-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.mini-track { display: flex; align-items: center; }
.mini-track i { width: 12px; height: 12px; border-radius: 50%; background: var(--plan); flex: none; position: relative; }
.mini-track i + i { margin-left: 18px; }
.mini-track i + i::before { content: ""; position: absolute; right: 12px; top: 5px; width: 18px; height: 2px; background: var(--line); }
.mini-track i.ok { background: var(--ok); } .mini-track i.bad { background: var(--bad); } .mini-track i.warn { background: var(--wait); } .mini-track i.run { background: var(--accent); }
.mini-track i.next { background: var(--panel); box-shadow: inset 0 0 0 2px var(--plan); }

.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.ticks i { height: 16px; border-radius: 3px; background: var(--plan); }
.ticks i.ok { background: var(--ok); } .ticks i.run { background: var(--accent); } .ticks i.bad { background: var(--bad); } .ticks i.warn { background: var(--wait); }
.ticks i.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plan); }
.ticks i.hold { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.ticks-base { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); font-weight: 600; margin-top: -4px; }
.spark { width: 100%; height: 48px; display: block; }
.sup-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.sup-dots i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.legend.mini { font-size: 12px; gap: 2px 10px; }

.hm-week ul { list-style: none; margin: 0; padding: 0 0 6px; }
.hm-week .card-head { padding: 16px 18px 6px; }
.hm-foot { padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.verdict b.down { color: var(--bad); }

@media (max-width: 1240px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile.t-podcast { grid-column: auto; } .mini-lanes { gap: 10px; } .mini-lane { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .mini-track { grid-column: 1 / -1; grid-row: 2; } .mini-v { grid-column: 2; grid-row: 1; text-align: right; } .mini-track i + i { margin-left: 12px; } .mini-track i + i::before { width: 12px; } }

.rs .card-head { padding: 16px 18px 4px; }
.rs-wrap { overflow-x: auto; padding: 8px 10px 4px; }
.rs-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; }
.rs-table thead th { font-size: 12px; font-weight: 700; color: var(--soft); text-align: center; padding: 6px 4px 10px; white-space: nowrap; }
.rs-table tbody th { text-align: left; font-size: 14px; font-weight: 700; padding: 0 12px 0 8px; white-space: nowrap; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.rs-wrap .rs-table tbody th { box-shadow: -10px 0 0 var(--panel), 10px 0 10px -8px rgba(0, 0, 0, 0.18); }
.rs-table td { padding: 3px; text-align: center; border-top: 1px solid var(--line); }
.rs-table tbody tr:first-child td { border-top: 0; }
.rs-table tbody tr:first-child th { border-top: 0; }
.rs-table tbody th { border-top: 1px solid var(--line); height: 58px; }
.rs-table td button { width: 100%; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: transparent; border-radius: 6px; padding: 4px 2px; font-size: 12px; font-weight: 600; color: var(--soft); }
.rs-table td button:hover { background: var(--accent-soft); }
.rs-table td.bad button { background: var(--bad-soft); color: var(--bad); }
.rs-table td.warn button { background: var(--wait-soft); color: var(--wait); }
.rs-table td.ok button span { color: var(--soft); font-weight: 500; }
.rs-none { color: var(--line); font-size: 18px; }
.rs-out .sq { display: grid; grid-template-columns: repeat(4, 10px); gap: 3px; justify-content: center; }
.rs-out .sq i { width: 10px; height: 10px; border-radius: 2px; background: var(--plan); display: block; }
.rs-out .sq i.ok { background: var(--ok); } .rs-out .sq i.bad { background: var(--bad); } .rs-out .sq i.warn { background: var(--wait); } .rs-out .sq i.run { background: var(--accent); }
.rs-out .sq i.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plan); }
.rs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.rs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rs-legend .ic { width: 15px; height: 15px; }
.jl-all .sect-head h2 { margin-right: auto; }
.page > div, .page > section, .page > div > * { min-width: 0; }

.verdict b.warnc { color: var(--wait); }
.bc .card-head { padding: 16px 18px 6px; }
.bc-wrap { overflow-x: auto; padding: 6px 18px 4px; }
.bc-grid { position: relative; min-width: 620px; display: grid; gap: 10px; padding: 18px 0 6px; }
.bc-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; }
.bc-name { font-weight: 700; font-size: 14px; }
.bc-cells { display: grid; gap: 4px; min-height: 44px; align-items: stretch; }
.bc-head .bc-cells { min-height: 0; }
.bc-head span { font-size: 12px; font-weight: 700; color: var(--soft); text-align: center; display: grid; line-height: 1.2; }
.bc-head span small { font-weight: 600; color: var(--faint); font-size: 11px; }
.bc-b { grid-row: 1; border: 0; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; min-height: 44px; padding: 0 2px; }
.bc-b:hover { filter: brightness(1.08); box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.bc-b.ok, .bc-k.ok { background: var(--ok); }
.bc-b.run, .bc-k.run { background: var(--accent); }
.bc-b.bad, .bc-k.bad { background: var(--bad); }
.bc-b.warn, .bc-k.warn { background: var(--wait); }
.bc-b.unk, .bc-k.unk { background: repeating-linear-gradient(135deg, var(--wait) 0 6px, color-mix(in srgb, var(--wait) 72%, var(--panel)) 6px 12px); }
.bc-b.next { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--plan); }
.bc-k.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plan); }
.bc-b.hold { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: line-through; }
.bc-k.hold { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
:root.dark .bc-b.ok, :root.dark .bc-b.run, :root.dark .bc-b.bad, :root.dark .bc-b.warn, :root.dark .bc-b.unk { color: var(--on-accent); }
.bc-now { position: absolute; top: 0; bottom: 0; left: calc(144px + (100% - 144px) * var(--x) / 100); width: 2px; background: var(--orange); pointer-events: none; }
.bc-now span { position: absolute; top: -2px; left: 6px; font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; }
.bc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.bc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bc-k { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }

.iv-need { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.iv-need-t { border: 0; background: transparent; padding: 0; text-align: left; display: grid; gap: 1px; min-width: 0; }
.iv-need-t b { font-size: 15px; }
.iv-need-t span { font-size: 13px; color: var(--soft); }
.iv-need.bad .iv-need-t span { color: var(--bad); font-weight: 600; }
.iv-amt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.iv-client .card-head { padding: 16px 18px 6px; }
.iv-table th[scope=row] button { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; }
.iv-table th[scope=row] button:hover { color: var(--accent-ink); text-decoration: underline; }
.iv-table td.st { text-align: left; white-space: normal; }
.iv-table td.st .ic { display: inline-block; vertical-align: -4px; width: 16px; height: 16px; margin-right: 6px; }
.iv-table td.st span { font-size: 13px; color: var(--soft); }
.iv-table tr.bad td.st span { color: var(--bad); font-weight: 600; }
.iv-table .amt { text-align: right; font-weight: 700; }
.iv-table td:nth-child(2) { text-align: left; color: var(--soft); }
@media (max-width: 760px) { .iv-need { grid-template-columns: 20px minmax(0, 1fr) auto; } .iv-need .btns { grid-column: 2 / -1; } .bc-row { grid-template-columns: 96px minmax(0, 1fr); } .bc-now { left: calc(108px + (100% - 108px) * var(--x) / 100); } }
.iv-table th[scope=row] { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { .iv-table th:nth-child(2), .iv-table td:nth-child(2) { display: none; } .iv-table td.st .ic { display: none; } }
.bc-name { position: sticky; left: 0; z-index: 2; background: var(--panel); align-self: stretch; display: flex; align-items: center; }
.bc-wrap .bc-name { box-shadow: -18px 0 0 var(--panel), 10px 0 10px -8px rgba(0, 0, 0, 0.18); }
.bc-hint { display: none; margin: 0; padding: 0 18px 8px; font-size: 12px; color: var(--soft); }
@media (max-width: 760px) { .bc-hint { display: block; } }
.wb-table .iv-table thead th { text-align: left; }
.wb-table .iv-table thead th.amt { text-align: right; }

.wb-hero { display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2.2fr); gap: 8px 28px; padding: 22px 22px 0; }
.wb-lead { display: grid; align-content: start; gap: 6px; }
.wb-big { display: grid; gap: 4px; }
.wb-big b { font-size: 68px; font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.wb-big span { font-size: 15px; font-weight: 600; color: var(--soft); }
.wb-delta { font-weight: 700; font-size: 15px; }
.wb-delta.up { color: var(--ok); } .wb-delta.down { color: var(--wait); }
.wb-range { font-size: 13px; color: var(--soft); margin-top: auto; }
.wb-chart-box { display: grid; gap: 6px; min-width: 0; }
.wb-svg { width: 100%; height: 190px; display: block; overflow: visible; }
.wb-bar { fill: var(--accent); }
.wb-bar:hover { fill: var(--accent-ink); }
.wb-shown { fill: none; stroke: var(--plan); stroke-width: 2; stroke-dasharray: 4 4; stroke-linejoin: round; }
.wb-axis { stroke: var(--line); stroke-width: 1; }
.wb-x { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--soft); }
.wb-key { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--soft); }
.wb-key span { display: inline-flex; align-items: center; gap: 6px; }
.wb-key i { display: inline-block; width: 14px; height: 10px; }
.wb-key .k-click { background: var(--accent); border-radius: 2px; }
.wb-key .k-shown { height: 0; border-top: 2px dashed var(--plan); }
.wb-smalls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px -22px 0; border-top: 1px solid var(--line); }
.wb-small { padding: 14px 22px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.wb-small:first-child { border-left: 0; }
.wb-small .k { font-size: 13px; font-weight: 600; color: var(--soft); }
.wb-small b { font-size: 24px; font-weight: 700; }
.wb-small .d { font-size: 13px; font-weight: 600; color: var(--soft); }
.wb-small .d.up { color: var(--ok); } .wb-small .d.down { color: var(--wait); }
.wl .card-head { padding: 16px 18px 6px; }
.wl ol { list-style: none; margin: 0; padding: 4px 0 10px; }
.wl li { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "t n" "b b" "s s"; gap: 3px 10px; padding: 9px 18px; }
.wl li + li { border-top: 1px solid var(--line); }
.wl-t { grid-area: t; min-width: 0; display: grid; }
.wl-t a, .wl-t span { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-t a { color: var(--ink); text-decoration: none; }
.wl-t a:hover { color: var(--accent-ink); text-decoration: underline; }
.wl-t small { font-size: 12px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-n { grid-area: n; text-align: right; font-size: 15px; }
.wl-bar { grid-area: b; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.wl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.wl-s { grid-area: s; font-size: 12px; color: var(--soft); }
@media (max-width: 1240px) { .wb-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .wb-hero { padding: 18px 16px 0; } .wb-big b { font-size: 56px; } .wb-smalls { grid-template-columns: minmax(0, 1fr); margin: 12px -16px 0; } .wb-small { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; } .wb-small:first-child { border-top: 0; } .wb-svg { height: 150px; } }

.cm-dot { --sc: var(--plan); width: 10px; height: 10px; border-radius: 50%; background: var(--sc); display: inline-block; flex: none; }
.cm-strip .num .k { display: flex; align-items: center; gap: 7px; }
.cm-strip .num:first-child { border-left: 0; }
.cm-bar i { min-width: 0; }

.tm .card-head { padding: 16px 18px 6px; }
.tm-wrap { padding: 6px 18px 14px; }
.tm-row { display: grid; grid-template-columns: 104px repeat(4, minmax(0, 1fr)) minmax(140px, 1fr); }
.tm-row + .tm-row { border-top: 1px solid var(--line); }
.tm-headrow { border-bottom: 1px solid var(--line); }
.tm-headrow + .tm-row { border-top: 0; }
.tm-st { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--soft); padding: 4px 8px 10px 0; }
.tm-st:not(:first-child) { padding-left: 8px; }
.tm-product { font-size: 15px; padding: 14px 8px 14px 0; align-self: center; }
.tm-cell { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 12px 8px; min-width: 0; }
.tm-buy { border-left: 1px solid var(--line); padding-left: 14px; }
.tm-chip { --sc: var(--plan); width: 100%; display: grid; gap: 1px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 9px; text-align: left; color: var(--ink); min-width: 0; cursor: pointer; }
.tm-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.tm-chip b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-chip small { font-size: 12px; color: var(--soft); }
.tm-due { font-size: 12px; font-weight: 600; color: var(--soft); line-height: 1.3; }
.tm-due.today, .tm-due.late { color: var(--orange-ink); }
.tm-due.soon { color: var(--accent-ink); }
.tm-chip.plain { font-weight: 600; color: var(--soft); cursor: default; }
.tm-buyer { font-size: 13px; font-weight: 600; color: var(--ink); padding: 2px 0 2px 16px; position: relative; white-space: nowrap; }
.tm-buyer::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; border: 2px solid var(--soft); box-sizing: border-box; }

.cm-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.cm-who.none { color: var(--faint); font-weight: 500; }
.cm-watch { padding-bottom: 8px; }
.cm-watch .card-head { padding: 16px 18px 4px; }
.cm-watch ul { margin: 0; padding: 6px 18px 8px; list-style: none; columns: 2 300px; column-gap: 28px; font-size: 14px; }
.cm-watch ul li { break-inside: avoid; margin-bottom: 14px; }
.cm-watch li { padding-left: 14px; border-left: 3px solid var(--orange); }
.cm-watch li b { font-weight: 700; }
.cm-watch li span { color: var(--soft); }
.cm-product { font-weight: 600; color: var(--soft); font-size: 13px; }
.cm-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 4px 0 0; font-size: 13px; }
.cm-facts dt { color: var(--soft); font-weight: 600; }
.cm-facts dd { margin: 0; min-width: 0; overflow-wrap: break-word; }
.cm-facts dd small { color: var(--faint); }
.cm-stage { --sc: var(--plan); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; margin: 0; padding: 7px 10px; border-radius: 6px; background: var(--bg); }
.cm-stage b { font-weight: 700; }
.cm-stage span { color: var(--soft); flex-basis: 100%; padding-left: 18px; }

.cm-page { display: grid; gap: 18px; }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-col { padding-bottom: 6px; }
.cm-col .card-head, .cm-lois .card-head, .cm-deals .card-head, .gr .card-head, .gr-leads .card-head, .cm-files .card-head, .cm-cclock .card-head { padding: 16px 18px 8px; }
.cm-owes { list-style: none; margin: 0; padding: 0; }
.cm-owes > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 10px 18px; }
.cm-owes > li + li { border-top: 1px solid var(--line); }
.cm-owes > li.cm-tw { grid-template-columns: minmax(0, 1fr) 168px; }
.cm-owes > li.late, .cm-owes > li.close { box-shadow: inset 3px 0 0 var(--bad); }
.cm-owes > li.today, .cm-owes > li.call { box-shadow: inset 3px 0 0 var(--orange-ink); }
.cm-owes > li.remind { box-shadow: inset 3px 0 0 var(--wait); }
.cm-ow-main { border: 0; background: transparent; padding: 0; text-align: left; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 9px; align-items: center; color: var(--ink); min-width: 0; cursor: pointer; font-size: 14px; }
.cm-ow-main.nodot { grid-template-columns: minmax(0, 1fr); }
.cm-ow-main.nodot .cm-ow-text { grid-column: 1; }
.cm-ow-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cm-ow-name b { font-weight: 700; }
.cm-ow-name small { font-size: 12px; color: var(--faint); font-weight: 600; }
.cm-ow-text { grid-column: 2; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-ow-main:hover b { color: var(--accent-ink); text-decoration: underline; }
.cm-meta { display: grid; justify-items: end; gap: 4px; align-self: start; }
.cm-when { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--soft); }
.cm-when.late, .cm-when.close { color: var(--bad); }
.cm-when.today, .cm-when.call { color: var(--orange-ink); }
.cm-when.remind { color: var(--wait); }
.cm-when.soon { color: var(--accent-ink); }
.cm-clock { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.cm-clock small { font-size: 12px; color: var(--faint); }
.chase { --tc: var(--accent); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: center; width: 100%; height: 14px; }
.chase i { height: 6px; border-radius: 1px; background: var(--line); }
.chase i.m { height: 14px; }
.chase i.on { background: var(--tc); }
.chase.remind { --tc: var(--wait); }
.chase.call { --tc: var(--orange-ink); }
.chase.close { --tc: var(--bad); }
.cm-rest { font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 4px; }
.cm-rest b { color: var(--ink); }
.cm-pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-lois { padding-bottom: 6px; }
.cm-lois ul { list-style: none; margin: 0; padding: 0; }
.cm-loi { display: grid; grid-template-columns: minmax(0, 1fr) 80px 132px; gap: 4px 14px; align-items: center; padding: 9px 18px; }
.cm-loi + .cm-loi { border-top: 1px solid var(--line); }
.cm-loi-main { border: 0; background: none; padding: 0; text-align: left; display: grid; gap: 1px; color: var(--ink); cursor: pointer; min-width: 0; }
.cm-loi-main b { font-size: 14px; }
.cm-loi-main span { font-size: 13px; color: var(--soft); }
.cm-loi-main:hover b { color: var(--accent-ink); text-decoration: underline; }
.cm-loi-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cm-loi-bar i { display: block; height: 100%; background: var(--ok); }
.cm-loi.soon .cm-loi-bar i { background: var(--wait); }
.cm-loi.expired .cm-loi-bar i { background: var(--bad); }
.cm-loi-left { display: grid; text-align: right; }
.cm-loi-left b { font-size: 14px; }
.cm-loi-left small { font-size: 12px; color: var(--faint); }
.cm-loi.soon .cm-loi-left b { color: var(--wait); }
.cm-loi.expired .cm-loi-left b { color: var(--bad); }
.cm-cclock { padding-bottom: 10px; }
.cm-cclock ul { padding: 0 18px; }
.cm-cclock li.late span { color: var(--bad); font-weight: 600; }
.cm-mon-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cm-mon-head > div { display: grid; gap: 4px; }
.cm-monday { padding-bottom: 12px; }
.cm-mon-text summary { padding: 0 18px; font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.cm-monday pre { margin: 0; padding: 8px 18px 4px; font-family: var(--body); font-size: 13px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }

.cm-code { font-size: 13px; font-weight: 600; color: var(--faint); }
.cm-clockline { font-size: 14px; display: grid; gap: 1px; padding: 8px 10px; border-radius: 6px; background: var(--bg); margin: 0; }
.cm-clockline small { color: var(--faint); font-size: 12px; }
.cm-clockline.us.late b, .cm-clockline.them.close b { color: var(--bad); }
.cm-clockline.them.remind b { color: var(--wait); }
.cm-next b { font-weight: 700; }
.cm-next span { color: var(--soft); }
.cm-quick .btn { font-size: 13px; min-height: 32px; padding: 4px 10px; }
.cm-warn { color: var(--wait); font-weight: 600; }
.cm-dsec { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.cm-dsec h3, .cm-formh { font-family: var(--body); font-size: 14px; font-weight: 700; }
.cm-dsec h3 span { color: var(--soft); font-weight: 600; }
.cm-formh { border-top: 1px solid var(--line); padding-top: 12px; }
.cm-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cm-tick { width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 0; background: none; padding: 5px 4px; text-align: left; font-size: 14px; color: var(--ink); border-radius: 5px; }
.cm-tick:hover { background: var(--bg); }
.cm-tick .box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--plan); position: relative; }
.cm-tick[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); }
.cm-tick[aria-pressed="true"] .box::after, .pf-tick[aria-pressed="true"]::after { content: ""; position: absolute; border: solid var(--panel); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cm-tick[aria-pressed="true"] .box::after { left: 4px; top: 0; width: 5px; height: 10px; }
.cm-tick small { font-size: 12px; color: var(--faint); }
.cm-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.cm-hist li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.cm-hist time { color: var(--faint); }
.cm-hist span { overflow-wrap: anywhere; }
.cm-hist small { color: var(--faint); }
.cm-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.cm-form small { font-weight: 500; color: var(--faint); }
.cm-checks { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.cm-checks legend { font-size: 13px; font-weight: 600; color: var(--soft); padding: 0 4px; }
.form .cm-checks label, .form .cm-check1 { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); font-size: 14px; }
.form .cm-checks input, .form .cm-check1 input { width: auto; min-height: 0; }
.cm-drift { display: grid; gap: 8px; }
.cm-drift-t { color: var(--ink); font-weight: 400; }
.cm-drift-t b { color: var(--bad); }
.cm-drift summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.cm-drift pre { max-height: 260px; overflow: auto; background: var(--panel); color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; font-weight: 400; margin: 6px 0 0; }
.alert code { font-weight: 700; }
.gate-why { color: var(--bad); font-weight: 600; overflow-wrap: anywhere; }
.cm-note { font-size: 13px; color: var(--soft); padding: 0 2px; }

.tm-grades { font-size: 12px; font-weight: 700; color: var(--bad); line-height: 1.3; }
.tm-chip.unfit { border-style: dashed; border-left-style: solid; opacity: 0.85; }
.cm-gradewarn { font-size: 13px; padding: 8px 10px; border-radius: 6px; background: var(--bad-soft); color: var(--ink); margin: 0; }
.cm-gradewarn b { color: var(--bad); }
.tm-deal { font-size: 12px; font-weight: 700; color: var(--ok); }
.tm-loi { width: 100%; display: grid; gap: 1px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 9px; color: var(--ink); cursor: pointer; min-width: 0; }
.tm-loi:hover { border-color: var(--accent); background: var(--accent-soft); }
.tm-loi b { font-size: 13px; }
.tm-loi span { font-size: 12px; color: var(--soft); }
.tm-loi .tm-left { font-weight: 700; color: var(--ok); }
.tm-loi.soon .tm-left { color: var(--wait); }
.tm-loi.expired .tm-left { color: var(--bad); }
.cm-deals { padding-bottom: 8px; }
.cm-tablewrap { overflow-x: auto; padding: 0 18px 6px; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-table th { text-align: left; font-size: 12px; color: var(--soft); font-weight: 700; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cm-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cm-table tr:last-child td { border-bottom: 0; }
.cm-table .n { text-align: right; }
.cm-table td small { display: block; color: var(--faint); font-size: 12px; }
.cm-table tr.lost td { color: var(--faint); }
.cm-table tr.soon td.n { color: var(--wait); font-weight: 700; }
.cm-table tr.expired td.n { color: var(--bad); font-weight: 700; }
.cm-strip .num .d.down { color: var(--wait); }

.pf-wrap { padding: 2px 18px 12px; overflow-x: auto; }
.pf-grid { display: grid; min-width: 640px; }
.pf-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(10, minmax(44px, 1fr)) 52px; align-items: center; }
.pf-row + .pf-row { border-top: 1px solid var(--line); }
.pf-head { font-size: 12px; font-weight: 700; color: var(--soft); align-items: end; }
.pf-head span { padding: 0 1px 8px; text-align: center; line-height: 1.2; font-size: 11px; hyphens: auto; }
.pf-head span:first-child { text-align: left; }
.pf-name { display: grid; gap: 1px; padding: 9px 8px 9px 0; min-width: 0; }
.pf-open { border: 0; background: none; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: var(--ink); cursor: pointer; text-align: left; font-size: 14px; min-width: 0; }
.pf-open b { font-weight: 700; overflow-wrap: anywhere; }
.pf-open small { font-size: 12px; color: var(--faint); font-weight: 600; }
.pf-open:hover b { color: var(--accent-ink); text-decoration: underline; }
.pf-stage { font-size: 12px; color: var(--soft); padding-left: 17px; }
.pf-gap { display: block; font-size: 12px; color: var(--wait); padding-left: 17px; line-height: 1.3; }
.pf-cell { display: grid; place-items: center; padding: 6px 0; }
.pf-tick { width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; position: relative; }
.pf-tick:hover { border-color: var(--accent); }
.pf-tick[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.pf-tick[aria-pressed="true"]::after { left: 8px; top: 3px; width: 7px; height: 13px; border-width: 0 3px 3px 0; }
.pf-cl { display: none; min-width: 0; font-size: 13px; color: var(--soft); cursor: pointer; overflow-wrap: anywhere; }
.pf-n { font-size: 13px; color: var(--soft); display: grid; gap: 4px; justify-items: end; padding-left: 8px; }
.pf-n b { color: var(--ink); font-size: 15px; }
.pf-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: var(--ok); }
.cm-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cm-party { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; align-content: start; min-width: 0; }
.cm-party-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cm-party h3 { font-family: var(--body); font-size: 16px; font-weight: 700; }
.cm-party h3 .linkbtn { color: var(--ink); text-decoration: none; font-size: 16px; }
.cm-party h3 .linkbtn:hover { color: var(--accent-ink); text-decoration: underline; }
.cm-party .cm-facts .cm-dot { vertical-align: -1px; margin-right: 2px; }

.gr-board { padding: 2px 18px 8px; }
.gr-row { display: grid; grid-template-columns: 150px minmax(0, 2fr) minmax(0, 1.2fr); gap: 10px 16px; align-items: center; padding: 14px 0; }
.gr-row + .gr-row { border-top: 1px solid var(--line); }
.gr-prod { display: grid; gap: 2px; }
.gr-prod b { font-size: 15px; }
.gr-prod span { font-size: 12px; color: var(--soft); }
.gr-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gr-slot { --sc: var(--plan); display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 8px; border: 2px solid var(--sc); background: var(--panel); color: var(--ink); min-height: 58px; align-content: center; cursor: pointer; min-width: 0; }
.gr-slot b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-slot span { font-size: 12px; color: var(--soft); }
.gr-slot.filled { background: var(--sc); color: var(--on-accent); }
.gr-slot.filled span { color: var(--on-accent); }
.gr-slot.open { border-style: dashed; border-color: var(--plan); cursor: default; background: transparent; }
.gr-slot.open b { color: var(--soft); }
.gr-slot:not(.open):hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.gr-more { display: grid; gap: 6px; font-size: 13px; justify-items: start; }
.gr-more .k { font-size: 12px; color: var(--soft); font-weight: 700; }
.gr-more .linkbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.gr-advice { font-size: 13px; font-weight: 600; }
.gr-advice.ok { color: var(--ok); }
.gr-advice.wait { color: var(--wait); }
.gr-advice.bad { color: var(--bad); }
.gr-leads { padding-bottom: 6px; }
.gr-status { font-size: 12px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.gr-status.talking { color: var(--accent-ink); }
.gr-status.won { color: var(--ok); }
.gr-status.dropped { color: var(--faint); }

@media (max-width: 1240px) {
  .cm-cols, .cm-pair { grid-template-columns: minmax(0, 1fr); }
  .gr-row { grid-template-columns: 130px minmax(0, 1fr); }
  .gr-more { grid-column: 2; }
}
@media (max-width: 760px) {
  .cm-owes > li { padding: 10px 14px; }
  .cm-mon-text summary { padding: 0 14px; }
  .cm-owes > li.cm-tw { grid-template-columns: minmax(0, 1fr); }
  .cm-col .card-head, .cm-lois .card-head, .cm-deals .card-head, .gr .card-head, .gr-leads .card-head, .cm-files .card-head, .cm-cclock .card-head { padding: 14px 14px 8px; }
  .cm-mon-head { flex-wrap: wrap; }
  .cm-loi { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 14px; }
  .cm-loi-bar { grid-column: 1 / -1; grid-row: 2; }
  .cm-monday pre { padding: 4px 14px 14px; }
  .cm-tablewrap { padding: 0 14px 6px; }
  .pf-wrap { padding: 2px 14px 10px; overflow: visible; }
  .pf-grid { min-width: 0; }
  .pf-head { display: none; }
  .pf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 10px 0 12px; }
  .pf-name { grid-row: 1; grid-column: 1; padding: 0 0 4px; }
  .pf-n { grid-row: 1; grid-column: 2; align-self: start; padding: 0 0 4px; }
  .pf-cell { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 0; min-width: 0; }
  .pf-cl { display: block; }
  .cm-parties { grid-template-columns: minmax(0, 1fr); }
  .gr-board { padding: 0 14px 8px; }
  .gr-row { grid-template-columns: minmax(0, 1fr); }
  .gr-more { grid-column: auto; }
}
@media (max-width: 760px) {
  .cm-strip .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-strip .num { border-left: 0; border-top: 1px solid var(--line); }
  .cm-strip .num:nth-child(-n + 2) { border-top: 0; }
  .cm-strip .num:nth-child(even) { border-left: 1px solid var(--line); }
  .cm-who > span:not(.av) { display: none; }
  .tm-wrap { padding: 0 14px 10px; }
  .tm-headrow { display: none; }
  .tm-row { grid-template-columns: minmax(0, 1fr); padding: 6px 0 10px; }
  .tm-product { padding: 8px 0 2px; }
  .tm-cell { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; padding: 4px 0; gap: 4px 10px; }
  .tm-cell:empty { display: none; }
  .tm-cell::before { content: attr(data-stage); font-size: 12px; font-weight: 700; color: var(--soft); padding-top: 7px; grid-column: 1; grid-row: 1 / span 4; }
  .tm-cell > * { grid-column: 2; }
  .tm-buy { border-left: 0; padding-left: 0; }
}
.nav .subs { display: contents; }
@media (min-width: 761px) {
  .nav a:not(.on) + .subs { display: none; }
}
@media (max-width: 760px) {
  .nav .subs { display: flex; flex-wrap: wrap; gap: 2px 4px; grid-column: 1 / -1; margin: -2px 0 6px 10px; padding-left: 8px; border-left: 2px solid var(--accent-soft); }
  .nav .subs .sub { padding: 6px 10px; }
  .nav a { min-height: 40px; }
  .side:not(.open) .nav > a, .side:not(.open) .nav > .subs, .side:not(.open) .side-foot { display: none; }
  .side:not(.open) .nav > a.on + .subs { display: flex; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 8px; border-left: 0; scrollbar-width: none; }
  .side:not(.open) .nav > a.on + .subs .sub { flex: none; }
  .side:not(.open) .nav:not(:has(a.on + .subs)) { display: none; }
  .nav { grid-auto-flow: row dense; }
}

.ic-line { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-bar { display: flex; align-items: center; gap: 10px; }
.chat-attach { display: inline-flex; align-items: center; gap: 6px; }
.chat-hint { flex: 1; min-width: 0; font-size: 12px; color: var(--faint); line-height: 1.35; }
.cf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cf { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.cf img, .cf-doc { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; display: grid; place-items: center; background: var(--panel); color: var(--soft); }
.cf-name { min-width: 0; display: grid; font-size: 13px; }
.cf-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-name small { color: var(--faint); }
.cf-x { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; }
.cf-x:hover { background: var(--accent-soft); color: var(--ink); }
.drawer.dropping { outline: 3px dashed var(--accent); outline-offset: -8px; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; white-space: normal; }
.msg > div + .msg-files { margin-top: 8px; }
.msg-img { display: block; border-radius: 6px; overflow: hidden; line-height: 0; }
.msg-img img { display: block; max-width: 100%; max-height: 180px; width: auto; height: auto; }
.msg-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 13px; text-decoration: none; max-width: 100%; }
.msg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file small { color: var(--faint); flex: none; }
@media (max-width: 480px) { .chat-hint { display: none; } }
.chat-bar .primary { margin-left: auto; }

.loader { width: 100%; min-height: calc(100vh - 52px); display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--soft); font-size: 14px; font-weight: 600; text-align: center; animation: loader-in 0.2s ease 0.15s both; }
.loader.small { min-height: 180px; gap: 10px; }
.spin { width: 52px; height: 52px; display: block; }
.loader.small .spin { width: 36px; height: 36px; }
.spin-track, .spin-arc { fill: none; stroke-width: 4; }
.spin-track { stroke: var(--line); }
.spin-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 28 72; }
.spin-dot { fill: var(--orange); }
.spin-turn { transform-origin: 24px 24px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .spin-turn { animation: loader-pulse 1.6s ease-in-out infinite; } }
@media (max-width: 1240px) { .loader { min-height: 55vh; } }
@media (max-width: 760px) { .loader { min-height: 60vh; } }
.col.sofar .bar { outline: 2px dashed var(--soft); outline-offset: 2px; }
.col.sofar.pick .bar { outline: 2px dashed var(--ink); }
.base span small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); line-height: 1.2; }
.col .top small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); line-height: 1.1; }

.cmm-mode { background: var(--wait-soft); color: var(--ink); border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.cmm-mode b { color: var(--wait); }
.cmm-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.cmm-side { padding: 8px 0; }
.cmm-chats { list-style: none; margin: 0; padding: 0; }
.cmm-chat { width: 100%; display: grid; gap: 1px; text-align: left; border: 0; background: none; padding: 9px 14px; color: var(--ink); position: relative; border-left: 3px solid transparent; }
.cmm-chat:hover { background: var(--bg); }
.cmm-chat.on { background: var(--accent-soft); border-left-color: var(--accent); }
.cmm-chat b { font-size: 14px; padding-right: 28px; }
.cmm-chat span { font-size: 12px; color: var(--soft); font-weight: 600; }
.cmm-chat small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmm-chat .count { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 0 7px; background: var(--accent); color: var(--on-accent); }
.cmm-main { padding: 16px 18px; display: grid; gap: 14px; min-width: 0; }
.cmm-thead { display: grid; gap: 2px; }
.cmm-thead p { font-size: 13px; color: var(--soft); }
.cmm-msgs, .cmm-drafts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmm-msgs { max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.cmm-msg { display: grid; gap: 2px; max-width: 78%; }
.cmm-msg div { background: var(--bg); border-radius: 10px; padding: 7px 11px; font-size: 14px; }
.cmm-msg.us { justify-self: end; }
.cmm-msg.us div { background: var(--accent-soft); }
.cmm-msg b { font-size: 12px; color: var(--soft); }
.cmm-msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.cmm-msg time { font-size: 11px; color: var(--faint); }
.cmm-msg.us time { justify-self: end; }
.cmm-draft { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.cmm-dhead { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.cmm-dhead span { color: var(--soft); }
.cmm-draft pre { margin: 0; font-family: var(--body); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmm-why { color: var(--bad); font-weight: 600; font-size: 13px; }
.cmm-file { display: inline-flex; gap: 6px; align-items: baseline; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: var(--bg); justify-self: start; }
.cmm-file small { color: var(--faint); font-weight: 500; }
.cmm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.cmm-checks .blk { color: var(--bad); }
.cmm-checks .blk b { font-weight: 700; }
.cmm-checks .wrn { color: var(--wait); }
.cmm-checks .wrn label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.cmm-checks .ok { color: var(--ok); }
.cmc-form { display: grid; gap: 10px; }
.cmc-form label { font-weight: 600; font-size: 13px; }
.cmc-form textarea { width: 100%; font: inherit; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); resize: vertical; }
.cmc-limit { font-size: 12px; margin: 6px 0 0; }
.cmm-wait { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; }
.cmm-wait b { font-size: 16px; }
.cmm-compose { border-top: 1px solid var(--line); padding-top: 12px; }
.cmm-tpl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.cmm-attach { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmm-livebox { display: grid; gap: 6px; font-size: 13px; }
.cmm-outbox { padding-bottom: 8px; }
.cmm-ours { padding: 16px 18px; display: grid; gap: 10px; margin-top: 18px; }
.cmm-ours .card-head { padding: 0; }
.cmm-ours p.dim { margin: 0; font-size: 12px; }
.cmm-outbox .card-head { padding: 16px 18px 8px; }
.cmm-outbox ul { list-style: none; margin: 0; padding: 0 18px; display: grid; }
.cmm-outbox li { display: grid; grid-template-columns: 110px 160px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.cmm-outbox li:first-child { border-top: 0; }
.cmm-outbox li span { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmm-outbox li time { color: var(--faint); }
.cmm-outbox li.failed b, .cmm-outbox li.unknown b, .cmm-outbox li.expired b { color: var(--bad); }
.cmm-outbox li.sent b { color: var(--ok); }
@media (max-width: 1240px) { .cmm-grid { grid-template-columns: minmax(0, 1fr); } .cmm-msg { max-width: 92%; } }
@media (max-width: 760px) { .cmm-outbox li { grid-template-columns: 90px minmax(0, 1fr); } .cmm-outbox li span, .cmm-outbox li time { grid-column: 2; } .cmm-main { padding: 14px; } }

.tg-conn { padding: 16px 18px; display: grid; gap: 12px; }
.tg-conn .card-head { padding: 0; }
.tg-login { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.tg-login > div { flex: 1 1 260px; min-width: 0; }
.tg-qr { width: 220px; height: 220px; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.tg-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.tg-pass { max-width: 360px; }
.tg-warn { color: var(--wait); margin: 0; }
.tg-dialogs { padding: 16px 18px; display: grid; gap: 12px; }
.tg-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.tg-dialogs .card-head { padding: 0; }
.tg-filter { display: grid; gap: 4px; font-size: 13px; font-weight: 600; max-width: 360px; }
.tg-dlist { list-style: none; margin: 0; padding: 0; display: grid; max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line); }
.tg-dlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tg-dlist li span { display: grid; min-width: 0; }
.tg-dlist li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-dlist li small { color: var(--soft); font-size: 12px; }
.tg-chats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tg-chat { padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.tg-chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tg-chat-head h3 { margin: 0; }
.tg-link { display: grid; gap: 8px; }
.tg-link label { display: grid; gap: 3px; font-size: 13px; font-weight: 600; }
.tg-link select, .tg-filter input { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; min-height: 36px; max-width: 100%; }
.tg-members h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.tg-members h4 .cm-warn { display: block; font-size: 12px; }
.tg-members ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tg-m { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tg-m.unknown span { color: var(--wait); font-weight: 600; }
.tg-m small { color: var(--soft); }
.tg-m label { display: flex; gap: 6px; align-items: center; }
.tg-times { margin: 0; font-size: 12px; }
.cmm-suggest { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; margin: 12px 0; }
.cmm-suggest.idle { border: 0; padding: 0; }
.cmm-suggest h3 { margin: 0; font-size: 15px; }
.cmm-suggest h3 small { font-family: var(--body); font-size: 12px; color: var(--soft); font-weight: 400; margin-left: 6px; }
.cmm-suggest-text { white-space: pre-wrap; margin: 0; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.cmm-suggest p { margin: 0; }
.tm-due em { font-style: normal; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) {
  .cm-table thead { display: none; }
  .cm-table, .cm-table tbody, .cm-table tr, .cm-table td { display: block; width: 100%; }
  .cm-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .cm-table tr:last-child { border-bottom: 0; }
  .cm-table td { padding: 0; border: 0; }
  .cm-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--soft); }
  .cm-table td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .cm-table td:first-child::before { display: none; }
  .cm-table .n { text-align: left; }
}
[id^="cm"][id$="-alerts"]:empty { display: none; }
.need-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 1240px) and (min-width: 761px) { .need-why { -webkit-line-clamp: 2; } }

.menu-btn { display: none; }
@media (max-width: 760px) {
  .side { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 12px; max-height: 100vh; overflow-y: auto; }
  .brand { padding: 0; gap: 8px; min-width: 0; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 15px; }
  .claude { grid-row: 1; grid-column: 2; min-height: 40px; padding: 8px 14px; }
  .menu-btn { grid-row: 1; grid-column: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 66px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 14px; }
  .nav, .side-foot { grid-column: 1 / -1; }
  .app :is(input, select, textarea), #drawer :is(input, select, textarea) { font-size: 16px; }
  .linkbtn, .side-foot a, .btns > a:not(.btn), .src .k a, .tile-head h2 a, .iv-table th button, .iv-table a, .pf-open, summary, .wl-t a { min-height: 32px; display: inline-flex; align-items: center; }
  .plat a { min-height: 28px; display: inline-flex; align-items: center; }
  .tick { width: 26px; height: 26px; }
  .plat a, .plat span, .col .top, .col .top small, .base span small, .bc-head span small, .bc-now span { font-size: 12px; }
}
