/* Vonsol Command, Round 4: every page in the Round 3 look (Bento light + calm Mission Control + Command panel). */
:root {
  --bg: #F2F4F7; --panel: #FFFFFF; --panel-2: #F4F6FA; --text: #0E1A2B; --muted: #66758A; --line: #E5E9EF; --line-strong: #C9D3E0;
  --accent: #0A2240; --accent-2: #D4A72C; --accent-text: #0A2240; --on-accent: #fff; --gold: #C9A227; --gold-ink: #8A6D12; --gold-soft: #FBF5E3;
  --warn: #D2453A; --caution: #D98E1F; --ok: #1F9461; --track: #EBEEF3; --info: #2F6FD6;
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --radius: 20px; --gap: 16px; --btn-radius: 999px; --pill-radius: 999px;
  --kpi-font: 800 34px/1 var(--font); --card-title-font: 700 15px/1.25 var(--font);
  --tab-on-bg: #0A2240; --tab-on-text: #fff; --hover-shadow: 0 10px 30px rgba(14,26,43,.08); --edit-bg: #FFFBEF;
  --panel-w: 420px; color-scheme: light;
}
body { min-height: 100vh; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }

/* Review strip (not part of the app) */
.review { position: relative; z-index: 90; }
.review .in { gap: 6px 10px; }
.review .views { display: inline-flex; gap: 2px; align-items: center; background: #F1F3F6; border-radius: 8px; padding: 2px; }
.review .views b { font-weight: 600; color: #777; padding: 0 6px 0 4px; }
.review .views button { border: 0; background: transparent; border-radius: 6px; padding: 4px 9px; font: 600 12px/1.3 Inter, system-ui, sans-serif; color: #555; }
.review .views button[aria-pressed="true"] { background: #0A2240; color: #fff; }
.review .links a { font-weight: 600; }

/* Layout */
.app { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: calc(100vh - 38px); transition: margin-right .28s ease; }
.rail { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0; z-index: 20; }
.rail .mark { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px; }
.rail a { width: 64px; padding: 8px 0 6px; border-radius: 14px; display: grid; justify-items: center; gap: 3px; color: var(--muted); text-decoration: none; position: relative; font-size: 10.5px; font-weight: 700; }
.rail a svg { width: 22px; height: 22px; }
.rail a.on { background: var(--accent); color: #fff; }
.rail a:hover:not(.on) { background: var(--panel-2); color: var(--text); }
.rail a .n { position: absolute; top: 3px; right: 8px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.rail .spacer { flex: 1; }
.rail .more { display: none; }
.main { padding: 0 max(28px, env(safe-area-inset-right, 0px)) 56px 28px; min-width: 0; }

/* Top bar */
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.topbar img { height: 20px; width: auto; }
.topbar .title { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line); }
.search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--muted); font-size: 14px; text-align: left; }
.search kbd { margin-left: auto; font: 600 11px/1 var(--font); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.tb-btns { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--text); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.m-search { display: none; }
.cmd-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.cmd-btn i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.cmd-btn b { background: var(--gold); color: var(--accent); font-size: 11px; border-radius: 10px; padding: 2px 7px; }
.me { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 0; flex: none; }

/* Page header */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 14px 0 20px; flex-wrap: wrap; }
.ph > div:first-child { min-width: 0; flex: 1; }
.ph .eyebrow, .when { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .1em; text-transform: uppercase; }
.ph h1 { margin: 2px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.ph p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 64ch; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.crumb:hover { color: var(--text); }

/* Home hero */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 14px 0 20px; }
.hero > div:first-child { flex: 1; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero h1 span { color: var(--muted); }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 62ch; }
.brief-link { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; text-align: left; max-width: 380px; }
.brief-link .num { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.brief-link b { display: block; font-size: 14px; }
.brief-link small { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .hero { flex-wrap: wrap; } }

/* Vital signs + live strip */
.vitals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.vital { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 3px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.vital:hover { border-color: var(--line-strong); box-shadow: var(--hover-shadow); }
.vital span { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.vital b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vital small { color: var(--muted); font-size: 12px; }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); flex: none; }
.lamp.warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.lamp.cau { background: var(--caution); box-shadow: 0 0 0 4px color-mix(in srgb, var(--caution) 18%, transparent); }
.live { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 16px; margin-bottom: 22px; font-size: 13px; overflow: hidden; }
.live .tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--warn); display: flex; align-items: center; gap: 6px; flex: none; }
.live .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: pulse 1.6s infinite; }
.track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.track-in { display: flex; gap: 36px; white-space: nowrap; width: max-content; animation: scroll 70s linear infinite; color: var(--muted); }
.track-in b { color: var(--text); font-weight: 700; }
.live button { flex: none; border: 0; background: var(--panel-2); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--text); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Dashboards (Round 4 additions) */
.w { box-shadow: 0 1px 2px rgba(14,26,43,.04); }
.w.is-kpi { background: linear-gradient(160deg, #fff 55%, #F6F8FC); }
.w[data-w="kpi-owed"] { background: #0A2240; color: #fff; border-color: #0A2240; --text: #fff; --muted: #A9B8CC; --accent: #E2B847; --line: #22385A; }
.w[data-w="kpi-owed"] .w-tools button { color: #0A2240; }
.w[data-w="kpi-overdue"] .kpi b { color: var(--warn); }
.decisions li { background: var(--gold-soft); border-left-color: var(--accent-2); }
.tabs { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs .t-ic { font-size: 11px; opacity: .7; }
.tabs .t-star { color: var(--gold); font-size: 12px; }
.tabs button[aria-selected="true"] .t-star { color: var(--gold); }
.dash-bar { flex-wrap: nowrap; }
.dash-bar .tabs { min-width: 0; }
.bar-actions { flex: none; flex-wrap: nowrap; }
.dash-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.dash-info .kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.dash-info .kind.co { background: #EEF2F8; border-color: #D8E0EC; }
.dash-info .kind.mine { background: var(--gold-soft); border-color: #F0E2B6; color: var(--gold-ink); }
.dash-info .lnk { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.dash-info .upd { display: inline-flex; gap: 8px; align-items: center; background: #EAF1FC; color: #1F4E9A; border-radius: 10px; padding: 5px 10px; font-weight: 600; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(14,26,43,.14); padding: 6px; min-width: 264px; display: grid; }
.menu button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; display: grid; gap: 1px; }
.menu button small { font-weight: 500; color: var(--muted); font-size: 12px; }
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--warn); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: var(--gap); border-radius: 16px; font-size: 14px; background: #EAF1FC; color: #1F3F73; border: 1px solid #D3E1F7; }
.notice.gold { background: var(--gold-soft); color: #5E4A0C; border-color: #F0E2B6; }
.notice b { color: inherit; }
.notice .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.w-tools .mv { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; font-size: 13px; font-weight: 700; min-width: 30px; height: 30px; color: var(--muted); }
.lock-note { font-size: 12px; color: var(--muted); }

/* Generic blocks */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card > h2, .sec-h { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card > h2 small, .sec-h small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.stack-g { display: grid; gap: var(--gap); }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #34445A; display: inline-flex; gap: 7px; align-items: center; }
.chips button b { font-size: 11px; background: var(--panel-2); color: var(--muted); border-radius: 9px; padding: 1px 7px; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button[aria-pressed="true"] b { background: rgba(255,255,255,.18); color: #fff; }
.seg { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { border: 0; background: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg .on { background: var(--accent); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #E8EEF7; color: var(--accent); flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; }
.avatar.ai { background: var(--accent); color: #fff; }
.avatar.gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag-s { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.tag-s.hot { background: #FBE9E7; color: var(--warn); }
.tag-s.cau { background: #FCF1DF; color: #A4660C; }
.tag-s.ok { background: #E7F4EE; color: var(--ok); }
.tag-s.ai { background: var(--gold-soft); color: var(--gold-ink); }
.tag-s.blue { background: #EAF1FC; color: #1F4E9A; }
.tag-s.navy { background: var(--accent); color: #fff; }
.empty-s { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }

/* Task list (My Work, project, person) */
.qadd { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 16px; margin-bottom: 14px; }
.qadd input { flex: 1; border: 0; outline: none; font-size: 15px; min-width: 0; background: transparent; padding: 6px 0; }
.qadd select { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.task:hover { border-color: var(--line-strong); box-shadow: var(--hover-shadow); }
.task .chk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); background: #fff; margin-top: 1px; display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 900; padding: 0; }
.task .chk:hover { border-color: var(--ok); color: var(--ok); }
.task.done { opacity: .5; }
.task.done .chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.done b { text-decoration: line-through; }
.task b { display: block; font-size: 15px; line-height: 1.35; }
.task .meta { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 5px; font-size: 13px; color: var(--muted); }
.task .meta .due.hot { color: var(--warn); font-weight: 700; }
.task .next { margin-top: 7px; font-size: 13px; color: #34445A; }
.task .next em { font-style: normal; font-weight: 700; color: var(--gold-ink); }
.task .side { display: grid; justify-items: end; gap: 6px; }
.task .side .avatar { width: 30px; height: 30px; font-size: 11px; }
.task.decision { border-left: 4px solid var(--gold); }

/* Projects */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; display: grid; gap: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--hover-shadow); transform: translateY(-1px); }
.pcard .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pcard h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.pcard .stage { font-size: 12px; color: var(--muted); }
.pcard .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pcard .nums div { background: var(--panel-2); border-radius: 12px; padding: 8px 10px; }
.pcard .nums b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.pcard .nums small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pcard .note { font-size: 13px; color: #34445A; }
.pcard .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.health.good { background: #E7F4EE; color: var(--ok); } .health.watch { background: #FCF1DF; color: #A4660C; } .health.risk { background: #FBE9E7; color: var(--warn); }
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--gap); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat small { color: var(--muted); font-size: 12px; }
.miles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.miles li { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; padding: 9px 0; font-size: 14px; position: relative; }
.miles li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; margin-top: 5px; }
.miles li.done::before { background: var(--ok); border-color: var(--ok); }
.miles li.next::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.miles small { color: var(--muted); }
.openitems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.openitems div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.openitems b { font-size: 20px; display: block; }
.openitems small { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Team */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.person:hover { border-color: var(--line-strong); box-shadow: var(--hover-shadow); }
.person .top { display: flex; gap: 12px; align-items: center; }
.person h3 { margin: 0; font-size: 16px; }
.person .role { font-size: 13px; color: var(--muted); }
.person .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.person .nums b { display: block; font-size: 20px; }
.person .nums small { font-size: 11px; color: var(--muted); font-weight: 700; }
.person .now { font-size: 13px; color: #34445A; background: var(--panel-2); border-radius: 12px; padding: 9px 11px; }

/* Requests */
.req { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; }
.req .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.req b { font-size: 15px; line-height: 1.35; }
.req p { margin: 0; font-size: 13px; color: #34445A; }
.req .dates { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.req .dates s { color: var(--muted); }
.req .dates strong { color: var(--text); }
.req .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.req .btns button { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.req.done { opacity: .55; }

/* Files */
.drop { border: 2px dashed var(--line-strong); border-radius: 18px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #FAFBFD; margin-bottom: var(--gap); font-size: 14px; color: var(--muted); }
.drop b { color: var(--text); }
.ftable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ftable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); }
.ftable td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ftable tr:last-child td { border-bottom: 0; }
.ftable small { color: var(--muted); display: block; font-size: 12px; }
.ficon { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; margin-right: 10px; vertical-align: middle; flex: none; }
.ficon.pdf { background: #FBE9E7; color: var(--warn); } .ficon.dwg { background: #EAF1FC; color: #1F4E9A; } .ficon.xls { background: #E7F4EE; color: var(--ok); } .ficon.img { background: #F1EEF9; color: #5B47A8; } .ficon.doc { background: #EEF2F8; color: var(--accent); }
.fname { display: flex; align-items: center; }
.src { font-size: 12px; font-weight: 700; color: var(--muted); }

/* Agents */
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.agent { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.agent.main-ag { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.agent .top { display: flex; gap: 12px; align-items: center; }
.agent .top > div { flex: 1; min-width: 0; }
.agent h3 { margin: 0; font-size: 17px; }
.agent .role { font-size: 13px; color: var(--muted); }
.agent .doing { display: flex; gap: 10px; align-items: center; font-size: 14px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.agent .rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.agent .rules h4 { margin: 0 0 5px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agent .rules ul { margin: 0; padding-left: 16px; display: grid; gap: 3px; color: #34445A; }
.agent .nums { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.agent .nums b { color: var(--text); font-size: 15px; }

/* Admin + settings */
.tbl2 { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl2 th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl2 td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl2 tr:last-child td { border-bottom: 0; }
.tbl2 small { color: var(--muted); display: block; font-size: 12px; }
.tbl2 .who { display: flex; align-items: center; gap: 10px; }
.tbl2 .who .avatar { width: 32px; height: 32px; font-size: 11px; }
.tbl2 .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tbl2 .acts button { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.chipset { display: flex; flex-wrap: wrap; gap: 4px; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matrix th, .matrix td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix th { font-size: 12px; color: var(--muted); font-weight: 700; }
.matrix .yes { color: var(--ok); font-weight: 800; }
.matrix .start { display: inline-flex; gap: 4px; align-items: center; background: var(--gold-soft); color: var(--gold-ink); padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.matrix .no { color: var(--line-strong); }
.scroll-x { overflow-x: auto; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow b { display: block; font-size: 14px; }
.setrow small { color: var(--muted); font-size: 13px; }
.setrow select, .setrow input[type="time"] { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; max-width: 220px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: var(--line-strong); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tool:last-child { border-bottom: 0; }
.tool .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tool > div { flex: 1; min-width: 0; }
.tool b { display: block; }
.tool small { color: var(--muted); font-size: 13px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); font-size: 13px; }
.log small { display: block; color: var(--muted); font-size: 12px; }

/* Drawers (task detail, assign, widget detail, library) */
.drawer { position: fixed; inset: 0; background: rgba(5, 12, 24, .38); z-index: 85; display: flex; justify-content: flex-end; }
.drawer .dr-in { width: min(520px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: max(20px, env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) 24px; box-shadow: -10px 0 40px rgba(0,0,0,.18); animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dr-head small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dr-head h3 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.01em; line-height: 1.25; }
.dr-sec { margin: 18px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts div { background: var(--panel-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.facts small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nextbox { background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #5E4A0C; }
.conv { display: grid; gap: 10px; }
.conv .c { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; }
.conv .c .avatar { width: 30px; height: 30px; font-size: 10px; }
.conv .c b { font-size: 13px; }
.conv .c time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.conv .c p { margin: 2px 0 0; color: #34445A; }
.reply { display: flex; gap: 8px; margin-top: 12px; }
.reply input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flist li { display: flex; align-items: center; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.flist .ficon { width: 28px; height: 28px; font-size: 9px; }
.dr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ho-form { display: grid; gap: 8px; background: var(--panel-2); border-radius: 14px; padding: 12px; margin-top: 10px; }
.ho-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ho-form select, .ho-form input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; width: 100%; }
.checks { display: grid; gap: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--accent); background: #F3F6FB; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.checks small { color: var(--muted); margin-left: auto; font-size: 12px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.field input, .field select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font-size: 15px; color: var(--text); font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Search overlay */
.search-ov { position: fixed; inset: 0; z-index: 95; background: rgba(5,12,24,.38); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-box { width: min(620px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.25); overflow: hidden; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font-size: 17px; outline: none; }
.sresults { max-height: 60vh; overflow-y: auto; padding: 8px; }
.sresults a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; }
.sresults a:hover, .sresults a.on { background: var(--panel-2); }
.sresults small { color: var(--muted); display: block; font-size: 12px; }
.sresults h5 { margin: 10px 12px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* More sheet (phones) */
.sheet { position: fixed; inset: 0; z-index: 88; background: rgba(5,12,24,.38); display: flex; align-items: flex-end; }
.sheet .sh-in { width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px max(20px, env(safe-area-inset-bottom, 0px)); animation: up .22s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet nav a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--panel-2); text-decoration: none; font-weight: 700; font-size: 13px; }
.sheet nav a svg { width: 24px; height: 24px; }

/* Command panel (from Round 3) */
.scrim { position: fixed; inset: 0; background: rgba(10,20,35,.28); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 70; }
.cpanel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--panel-w); max-width: 100vw; background: #fff; border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(14,26,43,.12); transform: translateX(102%); transition: transform .28s ease; z-index: 80; display: grid; grid-template-rows: auto auto 1fr; visibility: hidden; }
body.panel-open .cpanel { transform: none; visibility: visible; }
body.panel-open .scrim { opacity: 1; pointer-events: auto; }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 10px 20px; }
.cp-head .ttl { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.cp-head .ttl i { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.cp-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.cp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 18px 0 20px; padding: 4px; background: var(--panel-2); border-radius: 14px; }
.cp-tabs button { border: 0; background: transparent; border-radius: 10px; padding: 9px 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.cp-tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.cp-tabs .dot-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; margin-left: 6px; padding: 0 5px; }
.cp-body { overflow-y: auto; padding: 18px max(18px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) 20px; }
.bf-date { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .08em; text-transform: uppercase; }
.bf-h { margin: 4px 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bf-short { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #34445A; }
.bf-short b { color: var(--text); }
.bf-short mark { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; padding: 0 3px; border-radius: 4px; }
.bf-sec { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calls { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.calls li { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
.calls li.done { opacity: .55; }
.calls .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.calls .top .hot { color: var(--warn); font-weight: 700; }
.calls strong { font-size: 15px; line-height: 1.35; }
.calls p { margin: 0; font-size: 13px; color: var(--muted); }
.calls p em { font-style: normal; font-weight: 700; color: var(--text); }
.calls .btns { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.calls .btns button { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.moved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #34445A; }
.moved li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.moved li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); font-weight: 800; font-size: 11px; }
.moved li.alert::before { content: "!"; background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.al-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.al-top button { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13px; padding: 4px 0; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.alerts li.unread { background: #F7F9FD; border-color: #D9E2EE; }
.alerts .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.ic.money { background: #E7F4EE; color: var(--ok); } .ic.late { background: #FBE9E7; color: var(--warn); } .ic.bid { background: #E8EEF7; color: var(--accent); } .ic.ai { background: var(--gold-soft); color: var(--gold-ink); } .ic.team { background: #F1EEF9; color: #5B47A8; }
.alerts b { display: block; font-size: 14px; line-height: 1.3; }
.alerts small { color: var(--muted); font-size: 12px; }
.alerts time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.alerts .ud { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; margin-left: 6px; vertical-align: 1px; }
.alerts li:not(.unread) .ud { display: none; }
.pane.chat { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 12px; }
.agents-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.agents-pick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.agents-pick button i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.agents-pick button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.agent-about { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.thread { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; overflow-y: auto; overflow-x: hidden; min-height: 220px; }
.thread .msg.from-me { align-self: flex-end; }
.msg { overflow-wrap: break-word; max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.from-them { background: var(--panel-2); border-top-left-radius: 6px; }
.msg.from-me { background: var(--accent); color: #fff; border-top-right-radius: 6px; }
.msg .who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 3px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg .acts button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.typing { color: var(--muted); font-size: 13px; }
.starters { display: flex; gap: 6px; flex-wrap: wrap; }
.starters button { border: 1px dashed var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; color: #34445A; }
.composer { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line-strong); border-radius: 18px; padding: 8px 8px 8px 14px; background: #fff; }
.composer textarea { flex: 1; border: 0; resize: none; font: 400 16px/1.45 var(--font); min-height: 22px; max-height: 120px; outline: none; padding: 4px 0; background: transparent; }
.composer .send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 16px; flex: none; }
.composer .attach { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); font-size: 16px; flex: none; }

/* Wide screens: the panel pushes the page over instead of covering it */
@media (min-width: 1320px) {
  body.panel-open .app { margin-right: var(--panel-w); }
  body.panel-open .scrim { opacity: 0; pointer-events: none; }
  .cpanel { box-shadow: -8px 0 30px rgba(14,26,43,.06); }
}
@media (max-width: 1200px) {
  .vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .search, .topbar .title { display: none; }
  .m-search { display: grid; }
  .tb-btns { margin-left: auto; }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2, .cols-3, .agrid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 60; flex-direction: row; justify-content: space-around; padding: 6px max(6px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14,26,43,.05); }
  .rail .mark, .rail .spacer, .rail .desk { display: none; }
  .rail .more { display: grid; }
  .rail a { width: auto; flex: 1; max-width: 76px; font-size: 11px; padding: 7px 0 5px; }
  .rail a.on { background: transparent; color: var(--accent); }
  .rail a.on svg { background: var(--accent); color: #fff; border-radius: 10px; padding: 3px; width: 30px; height: 26px; }
  .rail a .n { right: 14%; }
  .main { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 110px max(16px, env(safe-area-inset-left, 0px)); }
  .topbar { gap: 8px; padding: max(12px, env(safe-area-inset-top, 0px)) 0 8px; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar img { height: 15px; }
  .tb-btns { gap: 6px; }
  .icon-btn, .me { width: 38px; height: 38px; }
  .cmd-btn { height: 38px; padding: 0 11px; }
  .cmd-btn span { display: none; }
  .hero { padding: 8px 0 16px; gap: 14px; }
  .hero p { font-size: 15px; }
  .brief-link { max-width: none; width: 100%; }
  .vitals { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px 2px; }
  .vitals::-webkit-scrollbar { display: none; }
  .vital { scroll-snap-align: start; }
  .live { display: none; }
  .ph { padding: 8px 0 16px; gap: 12px; }
  .ph .acts { width: 100%; }
  .ph .acts > * { flex: 1; }
  .dash-bar { flex-wrap: wrap; }
  .dash-bar .tabs { width: 100%; }
  .bar-actions { width: 100%; }
  .bar-actions > * { flex: 1; }
  .bar-actions .menu-wrap > button { width: 100%; }
  .menu { left: auto; right: 0; min-width: min(300px, calc(100vw - 32px)); }
  .pgrid, .people { grid-template-columns: 1fr; }
  .statrow { gap: 8px; }
  .stat b { font-size: 20px; }
  .task { grid-template-columns: 24px minmax(0, 1fr); padding: 13px 14px; }
  .task .side { grid-column: 2; display: flex; justify-items: start; justify-content: flex-start; gap: 6px; }
  .task .side .avatar { display: none; }
  .qadd select { display: none; }
  .ftable thead { display: none; }
  .ftable tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ftable td { border: 0; padding: 0; }
  .ftable td.hide-m { display: none; }
  .tbl2.resp thead { display: none; }
  .tbl2.resp tr { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl2.resp td { border: 0; padding: 0; }
  .tbl2.resp .acts { justify-content: flex-start; }
  .agent .rules { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .drawer .dr-in { width: 100%; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .search-ov { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .w-tools .sz { display: none; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  :root { --panel-w: 100vw; }
}
@media (hover: none) { .open-hint { display: none; } }
.me { text-decoration: none; }
@media (min-width: 761px) {
  .rail { overflow-y: auto; scrollbar-width: none; gap: 2px; padding: 14px 0; }
  .rail::-webkit-scrollbar { display: none; }
  .rail a { padding: 7px 0 5px; flex: none; }
  .rail .mark { margin-bottom: 8px; flex: none; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .rail a { font-size: 0; gap: 0; padding: 9px 0; }
  .rail a .n { font-size: 10px; }
}
.dash-info .kind + span { margin-left: -4px; }
/* Inside the phone frames on mobile.html: leave room for the status bar */
body.framed .topbar { padding-top: 46px; }
body.framed .cp-head { padding-top: 48px; }
body.framed .drawer .dr-in { padding-top: 50px; }
body.framed .search-ov { padding-top: 50px; }
