/* BrightPath Facility Services · bold, high contrast, keyboard first */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/demos/brightpath-facility/fonts/outfit-latin.woff2) format('woff2'); }
:root {
  --ink: #0b0b0b; --ink2: #1b1b1a; --paper: #fff; --wash: #f4f4f0; --wash2: #e9e9e3; --hair: #d7d7cf; --mute: #5d5d57;
  --lime: #c6ff1f; --lime2: #ecffb3; --lime3: #f6ffd9; --coral: #ff5a43; --coral2: #ffb4a8; --coralw: #fff0ed; --coralink: #b3240e;
  --b: 2px solid var(--ink); --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gut: 32px; --hdr: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--lime); }
.dark :focus-visible, .mapcard :focus-visible, .fx :focus-visible { outline-color: var(--lime); box-shadow: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 10px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 14px; font-weight: 700; z-index: 200; }
.skip:focus { left: 8px; }
.ic { flex: none; display: inline-block; vertical-align: -3px; }
.bad { color: var(--coralink); } .b { font-weight: 700; } .mute { color: var(--mute); } .tiny { font-size: 12.5px; color: var(--mute); margin: 6px 0; }
.num { text-align: right; white-space: nowrap; }
.hid { font-size: 12px; color: var(--mute); border: 1px dashed var(--hair); padding: 0 5px; }

/* ---------- banner and chrome ---------- */
.banner { background: var(--ink); color: #f2f2ec; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 44px 6px 16px; position: relative; }
.banner p { margin: 0; text-align: center; }
.banner a { color: var(--lime); font-weight: 600; margin-left: 10px; text-underline-offset: 3px; }
.banner .iconbtn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #fff; width: 28px; height: 28px; border: 0; }
.chrome { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.top { height: var(--hdr); display: flex; align-items: center; gap: 20px; padding: 0 var(--gut); border-bottom: var(--b); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.bn { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1; display: flex; flex-direction: column; }
.bn small { font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }
.cmd { position: relative; flex: 1; max-width: 760px; margin: 0 auto; }
.cmd input { width: 100%; height: 44px; border: var(--b); background: var(--wash); padding: 0 80px 0 44px; font-size: 15px; border-radius: 0; }
.cmd input::placeholder { color: #75756e; }
.cmd input:focus { background: #fff; outline: none; box-shadow: 0 0 0 4px var(--lime); }
.cmd-ic { position: absolute; left: 14px; top: 13px; pointer-events: none; }
.cmd-k { position: absolute; right: 10px; top: 10px; font: 600 12px var(--mono); border: 1.5px solid var(--ink); padding: 2px 7px; background: #fff; pointer-events: none; }
.cmd-pop { position: absolute; left: 0; right: 0; top: 50px; background: #fff; border: var(--b); max-height: min(70vh, 560px); overflow: auto; z-index: 60; padding: 6px 0; box-shadow: 8px 8px 0 var(--ink); }
.pg { padding: 4px 0; }
.pgh { font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 6px 16px 4px; }
.pi { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 16px; }
.pi span { flex: 1; min-width: 0; }
.pi b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi small { color: var(--mute); font-size: 12.5px; }
.pi kbd { font: 12px var(--mono); opacity: 0; }
.pi[aria-selected=true], .pi:hover { background: var(--lime); }
.pi[aria-selected=true] kbd { opacity: 1; }
.nores { padding: 14px 16px; color: var(--mute); margin: 0; }
.hacts { display: flex; align-items: center; gap: 8px; flex: none; }
.hbtn { position: relative; height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: var(--b); background: #fff; padding: 0 10px; font-weight: 600; }
.hbtn:hover { background: var(--ink); color: #fff; }
.hbtn.ask { background: var(--lime); }
.hbtn.ask:hover { background: var(--ink); color: var(--lime); }
.hbtn.mob { display: none; }
.badge { position: absolute; top: -8px; right: -8px; background: var(--coral); color: var(--ink); font: 700 11px var(--mono); min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); padding: 0 4px; }
.role { display: flex; align-items: center; gap: 10px; border: var(--b); background: #fff; height: 42px; padding: 0 10px 0 4px; text-align: left; }
.role:hover { background: var(--wash); }
.rn { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 13.5px; }
.rn small { font-weight: 400; color: var(--mute); font-size: 11.5px; }
.av { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--font); background: var(--ink); color: #fff; flex: none; }
.av.r-owner { background: var(--lime); color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.av.r-ops { background: var(--ink); color: var(--lime); }
.av.r-supervisor { background: #fff; color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.av.r-cleaner { background: var(--wash2); color: var(--ink); }
.av.r-client { background: var(--coral); color: var(--ink); }
.av.ai { background: var(--lime); color: var(--ink); }
.sections { display: flex; align-items: stretch; border-bottom: var(--b); padding: 0 calc(var(--gut) - 10px); height: 48px; background: #fff; }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sections ul::-webkit-scrollbar { display: none; }
.sections li { flex: none; display: flex; }
.sections a, .sections .morewrap button { display: flex; align-items: center; gap: 7px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; border: 0; background: none; position: relative; white-space: nowrap; }
.sections a:hover, .sections .morewrap button:hover { background: var(--wash); }
.sections a.on, .sections .morewrap button.on { background: var(--ink); color: #fff; }
.sections a.on kbd { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.sections kbd { font: 600 10.5px var(--mono); border: 1.5px solid var(--hair); color: var(--mute); padding: 0 4px; min-width: 17px; text-align: center; }
.nbadge { background: var(--coral); color: var(--ink); font: 700 10.5px var(--mono); padding: 0 5px; border: 1.5px solid var(--ink); }
.navnote { display: flex; align-items: center; gap: 10px; padding-left: 12px; flex: none; }
.live { font: 600 12.5px var(--mono); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.live i, .livebadge i { width: 8px; height: 8px; background: var(--lime); outline: 2px solid var(--ink); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.kb { width: 28px; height: 28px; border: var(--b); background: #fff; font: 700 13px var(--mono); padding: 0; }
.kb:hover { background: var(--lime); }
.tabbar { display: none; }

/* ---------- menus and overlays ---------- */
.menu { position: absolute; z-index: 120; background: #fff; border: var(--b); min-width: 240px; padding: 6px; box-shadow: 6px 6px 0 var(--ink); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; justify-content: space-between; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; text-decoration: none; font-weight: 600; }
.menu a:hover, .menu button:hover, .menu a:focus, .menu button:focus { background: var(--lime); outline: none; box-shadow: none; }
.menu kbd { font: 11px var(--mono); color: var(--mute); }
.mh { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin: 6px 10px 4px; }
.rm { justify-content: flex-start !important; }
.rm span:last-child { display: flex; flex-direction: column; font-weight: 400; }
.rm b { font-weight: 700; } .rm small { color: var(--mute); font-size: 12px; }
.rm.on { background: var(--wash); }
.ov { position: fixed; inset: 0; z-index: 100; }
.scrim { position: absolute; inset: 0; background: rgba(11, 11, 11, 0.38); opacity: 0; transition: opacity 0.18s; }
.ov.in .scrim { opacity: 1; }
.panel { position: absolute; background: #fff; display: flex; flex-direction: column; outline: none; }
.ov-drawer .panel { top: 0; right: 0; bottom: 0; width: min(620px, 100%); border-left: var(--b); transform: translateX(30px); opacity: 0; transition: transform 0.2s, opacity 0.2s; }
.ov-drawer.wide .panel { width: min(820px, 100%); }
.ov-drawer.narrow .panel { width: min(460px, 100%); }
.ov-modal .panel { left: 50%; top: 10vh; transform: translate(-50%, 12px); width: min(580px, calc(100% - 32px)); max-height: 80vh; border: var(--b); box-shadow: 10px 10px 0 var(--ink); opacity: 0; transition: transform 0.18s, opacity 0.18s; }
.ov-sheet .panel { left: 0; right: 0; bottom: 0; max-height: 86vh; border-top: var(--b); transform: translateY(30px); opacity: 0; transition: transform 0.2s, opacity 0.2s; }
.ov-palette .panel { left: 0; right: 0; top: 0; bottom: 0; }
.ov.in .panel { transform: none; opacity: 1; }
.ov-modal.in .panel { transform: translate(-50%, 0); }
.ph { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: var(--b); }
.ph > div { flex: 1; min-width: 0; }
.ph h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ph .sub { margin: 4px 0 0; }
.pb { padding: 18px 22px 28px; overflow: auto; flex: 1; }
.iconbtn { width: 36px; height: 36px; border: var(--b); background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; font-weight: 700; font-size: 18px; }
.iconbtn:hover { background: var(--lime); }
.iconbtn.dark { background: #1a1a19; color: #fff; border-color: #444; }
.iconbtn.dark:hover { background: var(--lime); color: var(--ink); }
.iconbtn.sm { width: 26px; height: 26px; border-width: 1.5px; }
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100% - 40px)); }
.toast { background: var(--ink); color: #fff; padding: 11px 14px; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; transform: translateY(10px); opacity: 0; transition: all 0.2s; border-left: 6px solid var(--lime); }
.toast.bad { border-left-color: var(--coral); }
.toast.in { transform: none; opacity: 1; }
.tk { color: var(--lime); } .toast.bad .tk { color: var(--coral); }
.tip { position: fixed; z-index: 160; display: none; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 10px; max-width: 280px; line-height: 1.4; }
.tip .bad { color: var(--coral2); }

/* ---------- page ---------- */
main { outline: none; }
.page { max-width: 1400px; margin: 0 auto; padding: 28px var(--gut) 80px; }
.page.wide { max-width: 1680px; }
.narrowp { max-width: 980px; }
.hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hd h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.hd .sub { max-width: 720px; margin: 8px 0 0; }
.hd-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px; color: var(--mute); }
.eyebrow.lime { color: var(--lime); }
.sub { color: var(--mute); }
.back { display: inline-block; margin-bottom: 14px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ink); }
.card { border: var(--b); background: #fff; padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.card.dark { background: var(--ink); color: #f4f4ee; border-color: var(--ink); }
.card.dark .sub { color: #9a9a92; }
.card.flush { padding: 0; }
.ch { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ch h2 { font-size: 19px; font-weight: 700; }
.ch .sub { font-size: 13px; flex: 1; min-width: 150px; }
.ch .more { font-weight: 600; font-size: 13.5px; margin-left: auto; }
.h3 { font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.g2 .span2 { grid-column: 1 / -1; }
.g-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.g-hero > * { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; } .row.gap { gap: 10px; }
.sp { flex: 1; }
.mt { margin-top: 16px; }
.big2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* buttons, chips, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: var(--b); background: #fff; padding: 9px 16px; font-weight: 600; text-decoration: none; line-height: 1.2; white-space: nowrap; border-radius: 0; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.lime { background: var(--lime); }
.btn.lime:hover { background: var(--ink); color: var(--lime); }
.btn.coral { background: var(--coral); }
.btn.ghost { border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); background: var(--wash); color: var(--ink); }
.btn.sm { padding: 5px 11px; font-size: 13.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: #fff; color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: var(--b); background: #fff; padding: 5px 12px; font-weight: 600; font-size: 13.5px; border-radius: 999px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.chip b { font: 600 11.5px var(--mono); color: var(--mute); }
.chip:hover { background: var(--wash); }
.chip.on { background: var(--ink); color: #fff; }
.chip.on b { color: var(--lime); }
.chip.dark { background: #1a1a19; color: #ddd; border-color: #3a3a37; }
.chip.dark.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pill { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #fff; }
.st-done { background: var(--lime); } .st-onsite { background: var(--lime2); } .st-enroute { background: #fff; } .st-scheduled { background: var(--wash); border-color: var(--hair); color: var(--mute); }
.st-late { background: var(--coral); } .st-missed { background: var(--ink); color: var(--coral); } .st-gap { background: var(--coralw); border-style: dashed; border-color: var(--coral); color: var(--coralink); }
.tk-New { background: var(--coral2); } .tk-Inprogress { background: var(--lime2); } .tk-Resolved { background: var(--wash); border-color: var(--hair); color: var(--mute); }
.q-Draft { background: var(--wash); } .q-Sent { background: #fff; } .q-Accepted, .q-Scheduled { background: var(--lime2); } .q-Completed, .q-Invoiced { background: var(--lime); } .q-Lost { background: var(--wash); color: var(--mute); text-decoration: line-through; border-color: var(--hair); }
.tt { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border: 1.5px solid var(--ink); white-space: nowrap; }
.tt-medical { background: var(--ink); color: #fff; } .tt-school { background: var(--lime2); } .tt-gym { background: var(--wash2); } .tt-retail { border-style: dashed; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; font: 700 13px var(--mono); border: 1.5px solid var(--ink); padding: 0 4px; }
.sc-good { background: var(--lime); } .sc-mid { background: #fff; } .sc-bad { background: var(--coral); }
.tr { font-weight: 700; margin-left: 6px; color: var(--mute); } .tr.down { color: var(--coralink); } .tr.up { color: var(--ink); }
.nd { display: inline-flex; gap: 2px; }
.nd i { font: 600 9.5px var(--mono); width: 14px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: #b9b9b0; border: 1px solid var(--hair); }
.nd i.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.crewtag { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; font: 800 12px var(--mono); background: var(--ink); color: var(--lime); padding: 0 5px; flex: none; }
.crewtag.sm { height: 21px; min-width: 28px; font-size: 11px; }
.crewtag.bad { background: var(--coral); color: var(--ink); }
.cellb { display: block; font-weight: 600; } .cells { display: block; color: var(--mute); font-size: 12.5px; }
.kind { font-weight: 600; } .k-Complaint { color: var(--coralink); }
.pri { font: 700 12px var(--mono); } .p-High { background: var(--coral); padding: 1px 5px; } .p-Low { color: var(--mute); }
.sla { font: 600 12.5px var(--mono); white-space: nowrap; } .sla.warn { background: var(--coral2); padding: 1px 5px; } .sla.bad { background: var(--coral); padding: 1px 5px; }
.clip { display: block; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mute); }
.pcell { display: flex; gap: 10px; align-items: center; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: var(--b); margin-bottom: 20px; }
.kpi { padding: 16px 18px; border-right: var(--b); border-bottom: var(--b); margin: 0 -2px -2px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kl { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--mute); }
.kv { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.ks { font-size: 12.5px; color: var(--mute); }
.kpi.dark { background: var(--ink); color: #fff; } .kpi.dark .kl, .kpi.dark .ks { color: #a7a79f; } .kpi.dark .kv { color: var(--lime); }
.kpi.warn { background: var(--coralw); } .kpi.warn .kv { color: var(--coralink); }

/* charts */
.chart { width: 100%; min-height: 40px; }
.chart svg { display: block; overflow: visible; }
.ax text { font: 11px var(--mono); }
.hb-l { font-size: 12.5px; fill: var(--ink); } a .hb-l:hover { text-decoration: underline; }
.hb-v { font: 600 11.5px var(--mono); fill: var(--ink); } .hb-v.bad { fill: var(--coralink); }
.hm-l { font: 10.5px var(--mono); fill: var(--mute); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; margin-top: 8px; color: var(--mute); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.legend.dark { color: #a7a79f; }
.donutwrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dn-v { font-size: 34px; font-weight: 800; } .dn-l { font: 11px var(--mono); fill: var(--mute); text-transform: uppercase; }
.dlegend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 150px; }
.dlegend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.dlegend i { width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.dlegend b { margin-left: auto; font-family: var(--mono); }
.tmini { display: flex; flex-direction: column; text-decoration: none; padding: 16px; }
.tm-h { display: flex; justify-content: space-between; align-items: baseline; }
.tm-h b { font-size: 22px; }
.tm-map { flex: 1; min-height: 230px; margin: 8px -4px; }
.tm-c { display: flex; gap: 6px; flex-wrap: wrap; }
.tmc { flex: 1; min-width: 56px; padding: 6px 8px; border: 1.5px solid #3a3a37; font-size: 11.5px; color: #a7a79f; display: flex; flex-direction: column; }
.tmc b { font-size: 20px; color: #fff; }
.tmc-done b, .tmc-onsite b { color: var(--lime); } .tmc-late b, .tmc-gap b { color: var(--coral); }
.tmini:hover { outline: 4px solid var(--lime); outline-offset: -4px; }
.worklist .alist { margin: 0 -22px; }
.vstrip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: 4px 0 6px; }
.vq { aspect-ratio: 1; background: var(--ink); }
.vq.q1 { background: var(--coral2); } .vq.q2 { background: var(--coral); }

/* lists */
.alist { list-style: none; margin: 0; padding: 0; }
.alist li a { display: flex; gap: 12px; align-items: center; padding: 11px 22px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.alist li a:hover { background: var(--wash); }
.alist li a > span:nth-child(2) { flex: 1; min-width: 0; }
.alist b { display: block; font-weight: 600; } .alist small { color: var(--mute); }
.alist li.read { opacity: 0.6; }
.dot { width: 12px; height: 12px; flex: none; background: var(--coral); border: 2px solid var(--ink); }
.dot.warn { background: var(--coral2); }
.plain { list-style: none; margin: 0; padding: 0; }
.lirow { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.lirow > span:first-child { min-width: 0; }
.lirow small { display: block; color: var(--mute); font-size: 12.5px; }
.lirow.prob { border-left: 4px solid var(--coral); padding-left: 10px; }
.plain.small .lirow { padding: 7px 0; }
.rl { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--hair); }
.rl:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 34px 16px; color: var(--mute); }
.empty h2, .empty h3 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.empty.big { padding: 80px 16px; }
.empty-mark { width: 48px; height: 48px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border: var(--b); background: var(--lime); color: var(--ink); }
.simnote { font-size: 12px; color: var(--mute); margin: 14px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.card.dark .simnote { color: #8f8f88; }

/* segmented */
.segsw { display: inline-flex; border: var(--b); align-items: stretch; }
.segsw button { border: 0; background: #fff; padding: 7px 13px; font-weight: 600; font-size: 13.5px; border-left: 2px solid var(--ink); }
.segsw button:first-of-type { border-left: 0; }
.segsw .lbl + button { border-left: 2px solid var(--ink); }
.segsw button[aria-pressed=true] { background: var(--ink); color: var(--lime); }
.segsw .lbl { font: 700 11px var(--mono); text-transform: uppercase; color: var(--mute); padding: 0 10px; display: flex; align-items: center; background: var(--wash); }

/* tables */
.dt { margin-bottom: 20px; }
.dt-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.dt-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 200px; }
.dt-search .ic { position: absolute; left: 11px; }
.dt-search input { width: 100%; height: 38px; border: var(--b); padding: 0 12px 0 36px; background: #fff; border-radius: 0; }
.dt-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.dt-right { display: flex; gap: 8px; align-items: center; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.sel select, .form select { height: 38px; border: var(--b); background: #fff; padding: 0 30px 0 10px; border-radius: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; max-width: 100%; }
.dt-bulk { display: flex; gap: 10px; align-items: center; background: var(--lime); border: var(--b); padding: 8px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.dt-wrap { border: var(--b); overflow-x: auto; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); padding: 10px 12px; border-bottom: var(--b); white-space: nowrap; background: var(--wash); }
.tbl th.num { text-align: right; }
.th { border: 0; background: none; font: inherit; text-transform: inherit; color: inherit; padding: 0; letter-spacing: inherit; }
.th:hover { color: var(--ink); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.clk { cursor: pointer; }
.tbl tr.clk:hover td { background: var(--wash); }
.tbl tr[aria-selected=true] td { background: var(--lime3); }
.tbl .ck { width: 38px; }
.tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ink); }
.card > .tbl { margin: 0 -22px -20px; width: calc(100% + 44px); }
.card > .tbl th:first-child, .card > .tbl td:first-child { padding-left: 22px; }
.tbl.lines tfoot td { padding: 7px 12px; text-align: right; border: 0; }
.tbl.lines tfoot td:first-child { text-align: right; color: var(--mute); }
.tbl.lines tfoot .tot td { font-weight: 800; font-size: 17px; color: var(--ink); border-top: var(--b); }
.dt-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; font: 12.5px var(--mono); color: var(--mute); flex-wrap: wrap; gap: 8px; }
.pager { display: flex; gap: 10px; align-items: center; }
.perm td.c, .perm th.c { text-align: center; }
.tog { display: inline-flex; position: relative; }
.tog input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.tog span { width: 44px; height: 24px; border: var(--b); background: #fff; position: relative; }
.tog span::after { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: var(--ink); transition: left 0.15s; }
.tog input:checked + span { background: var(--lime); }
.tog input:checked + span::after { left: 23px; }
.tog input:disabled + span { opacity: 0.5; }
.tog input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* notes */
.note { display: flex; gap: 10px; align-items: flex-start; border: var(--b); padding: 12px 14px; margin-bottom: 14px; background: var(--wash); }
.note p { margin: 0; flex: 1; }
.note.bad { background: var(--coralw); border-color: var(--coral); }
.anote { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--ink); border-left: 8px solid var(--lime); padding: 10px 14px; margin-bottom: 16px; background: var(--lime3); }
.anote p { margin: 0; flex: 1; }
.anote.slim { padding: 7px 10px 7px 12px; align-items: center; font-size: 14px; }
.anote .ic { margin-top: 2px; }

/* site page */
.pipe { display: flex; align-items: center; gap: 0; margin-bottom: 18px; flex-wrap: wrap; border: var(--b); }
.pst { flex: 1; min-width: 110px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; border-right: 2px solid var(--ink); color: var(--mute); }
.pst span { font: 700 11px var(--mono); width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; }
.pst.past { color: var(--ink); background: var(--wash); }
.pst.cur { background: var(--ink); color: #fff; }
.pst.cur span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pipe .btn { margin: 6px; }
.pipe.sm .pst { min-width: 80px; padding: 7px 9px; font-size: 12.5px; }
.tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: var(--b); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; font-weight: 600; text-decoration: none; border: 0; background: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a b, .tabs button b { font: 700 11px var(--mono); background: var(--coral); padding: 0 5px; }
.tabs [aria-selected=true] { background: var(--ink); color: #fff; }
.tabs a:hover, .tabs button:hover { background: var(--wash); }
.tabs [aria-selected=true]:hover { background: var(--ink); }
.kv2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin: 0; }
.kv2 dt { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.kv2 dd { margin: 2px 0 0; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; }
.notes li { border-left: 4px solid var(--lime); padding: 4px 0 4px 10px; margin-bottom: 8px; }
.notes p { margin: 0; } .notes small { color: var(--mute); }
.inl { display: flex; gap: 8px; }
.inl input { flex: 1; min-width: 0; height: 36px; border: var(--b); padding: 0 10px; border-radius: 0; }
.files { list-style: none; padding: 0; margin: 0 0 12px; }
.files li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.files b { display: block; } .files small { color: var(--mute); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.scope { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.room { border: 1.5px solid var(--ink); padding: 12px 14px; }
.room h3 { font-size: 15px; display: flex; justify-content: space-between; margin-bottom: 8px; }
.room .cnt { font: 700 12px var(--mono); background: var(--ink); color: var(--lime); padding: 1px 6px; }
.room ul { list-style: none; padding: 0; margin: 0; }
.room li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.freq { font: 600 10.5px var(--mono); text-transform: uppercase; white-space: nowrap; }
.f-nightly { color: var(--ink); } .f-weekly { color: var(--mute); } .f-monthly { color: #9a9a92; }
.tl { list-style: none; margin: 0; padding: 0 0 0 6px; }
.tl li { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--hair); }
.tl li:last-child::before { display: none; }
.tl-d { width: 12px; height: 12px; background: var(--ink); flex: none; margin-top: 5px; }
.tl li:first-child .tl-d { background: var(--lime); outline: 2px solid var(--ink); }
.tl p { margin: 0; } .tl small { color: var(--mute); font: 12px var(--mono); }

/* tonight */
.segbar { display: flex; border: var(--b); margin-bottom: 18px; overflow: hidden; }
.seg { border: 0; border-right: 2px solid var(--ink); background: #fff; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; min-width: 72px; }
.seg:last-child { border-right: 0; }
.seg b { font-size: 26px; line-height: 1; } .seg span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.seg-done { background: var(--lime); } .seg-onsite { background: var(--lime2); } .seg-scheduled { background: var(--wash); } .seg-late { background: var(--coral); } .seg-gap { background: var(--coralw); }
.seg.on { outline: 4px solid var(--ink); outline-offset: -6px; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.mapcard { background: #0d0d0c; color: #eee; border: var(--b); position: relative; display: flex; flex-direction: column; }
.maptools { display: flex; justify-content: space-between; gap: 10px; padding: 12px; flex-wrap: wrap; position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }
.maptools > * { pointer-events: auto; }
.chips.dark { gap: 6px; }
.zoomb { display: flex; gap: 6px; }
.mapbox { height: min(72vh, 680px); min-height: 420px; }
.mapbox svg { display: block; width: 100%; height: 100%; }
.citylbl { pointer-events: none; }
.st .pulse { animation: pulse 1.6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(2.2); } }
.st .spin { animation: spin 6s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.st:focus { outline: none; } .st:focus .dot { stroke: #fff; stroke-width: 3; }
.maplegend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 14px; border-top: 1px solid #2a2a28; font-size: 12px; color: #b9b9b0; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-done { background: var(--lime); } .lg-onsite { background: var(--lime); box-shadow: 0 0 0 3px rgba(198, 255, 31, 0.35); } .lg-enroute { border: 2px solid #fff; } .lg-scheduled { border: 2px solid #8b8b85; } .lg-late { background: var(--coral); } .lg-gap { border: 2px dashed var(--coral); } .lg-crew { border-radius: 0; background: #f5f5f0; width: 16px; }
.replay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 2px solid #2a2a28; flex-wrap: wrap; }
.replay label { font: 700 11px var(--mono); text-transform: uppercase; color: #b9b9b0; letter-spacing: 0.06em; }
.replay input { flex: 1; min-width: 160px; accent-color: var(--lime); }
.replay output { font: 700 14px var(--mono); color: var(--lime); min-width: 70px; }
.livebadge { display: inline-flex; gap: 7px; align-items: center; font: 700 12px var(--mono); color: var(--lime); }
.tside { border: var(--b); background: #fff; max-height: calc(min(72vh, 680px) + 110px); display: flex; flex-direction: column; min-height: 0; }
.tside .tabs { margin: 0; }
.tside .tabs button { flex: 1; justify-content: center; }
.tside .tabs button b { background: var(--wash2); }
.vlist, .clist { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.vrow button, .clist button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--hair); background: #fff; padding: 10px 14px; }
.vrow button:hover, .clist button:hover { background: var(--wash); }
.vrow.prob button { background: var(--coralw); }
.vmain { flex: 1; min-width: 0; }
.vmain b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmain small { color: var(--mute); font-size: 12.5px; }
.vdot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }
.v-done { background: var(--lime); } .v-onsite { background: var(--lime2); } .v-enroute { background: #fff; } .v-scheduled { background: var(--wash2); border-color: var(--hair); } .v-late, .v-missed { background: var(--coral); } .v-gap { border-style: dashed; border-color: var(--coral); }
.clist button.prob { border-left: 5px solid var(--coral); }
.clist button.sel { background: var(--lime3); }
.prog { display: block; height: 5px; background: var(--wash2); margin-top: 6px; }
.prog i { display: block; height: 100%; background: var(--ink); }
.cnt { font: 700 13px var(--mono); }
.vsteps { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--b); margin-bottom: 16px; }
.vs { padding: 10px 12px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; color: var(--mute); }
.vs:last-child { border-right: 0; }
.vs span { width: 12px; height: 12px; border: 2px solid currentColor; margin-bottom: 6px; }
.vs.on { color: var(--ink); } .vs.on span { background: var(--lime); border-color: var(--ink); }
.vs b { font-size: 13px; } .vs small { font: 600 13px var(--mono); }
.pick { list-style: none; padding: 0; margin: 0; border: var(--b); }
.pick li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.pick li:last-child { border-bottom: 0; }
.pick b { display: block; } .pick small { color: var(--mute); font-size: 12.5px; }
.route { list-style: none; padding: 0; margin: 0; }
.route li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.route li > span:nth-child(2) { font: 600 12px var(--mono); width: 66px; }
.route li b { flex: 1; font-weight: 600; }
.route li.cur { background: var(--lime3); }

/* schedule */
.schtools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.g-sched { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.sched-wrap { padding: 0; overflow: auto; max-height: 78vh; }
.daytabs { display: none; }
.sched { display: grid; grid-template-columns: 170px repeat(var(--days), minmax(118px, 1fr)); min-width: 1000px; }
.sh { position: sticky; top: 0; z-index: 2; background: var(--wash); border-bottom: var(--b); border-right: 1px solid var(--hair); padding: 9px 10px; font-size: 13px; white-space: nowrap; }
.sh.corner { left: 0; z-index: 3; font: 700 11px var(--mono); text-transform: uppercase; color: var(--mute); }
.sh.today { background: var(--ink); color: #fff; }
.gapn { font: 700 10.5px var(--mono); background: var(--coral); color: var(--ink); padding: 0 4px; margin-left: 4px; }
.crewcell { position: sticky; left: 0; z-index: 1; background: #fff; display: flex; gap: 9px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--hair); border-right: var(--b); }
.crewcell b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 108px; }
.crewcell small { color: var(--mute); font-size: 11.5px; }
.crewcell.focus { background: var(--lime3); }
.crewcell.gaprow { background: var(--coralw); }
.cell { border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); padding: 5px; display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
.cell.short { background: var(--coralw); box-shadow: inset 0 0 0 2px var(--coral); }
.cell.over { background: var(--lime2); box-shadow: inset 0 0 0 2px var(--ink); }
.cell.nodrop { background: repeating-linear-gradient(45deg, #fff, #fff 6px, var(--wash) 6px, var(--wash) 12px); }
.gapcell { background: var(--coralw); }
.cl-h { display: flex; justify-content: space-between; font: 600 10.5px var(--mono); color: var(--mute); }
.shortb { border: 1.5px solid var(--ink); background: var(--coral); font: 700 11px var(--font); padding: 2px 5px; text-align: left; }
.sc { border: 1.5px solid var(--ink); background: #fff; padding: 4px 6px 4px 4px; font-size: 12px; line-height: 1.2; display: grid; grid-template-columns: auto 1fr; column-gap: 3px; cursor: grab; user-select: none; }
.sc:hover { background: var(--lime3); }
.sc .grip { grid-row: span 2; color: #a9a9a1; display: flex; align-items: center; }
.sc .grip .ic { width: 12px; height: 14px; }
.scn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc small { color: var(--mute); font: 10.5px var(--mono); }
.sc.t-medical { border-left: 4px solid var(--ink); } .sc.t-school { border-left: 4px solid var(--lime); } .sc.t-gym { border-left: 4px solid #8b8b85; }
.sc.gap { border: 2px dashed var(--coral); background: #fff; grid-template-columns: 1fr; }
.sc.dragging { opacity: 0.4; }
.coverage .lirow { align-items: flex-start; }
.coverage .btn { flex: none; }

/* inspections and forms */
.photos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.photos figure { margin: 0; width: 140px; border: 1.5px solid var(--ink); }
.photos svg { display: block; width: 100%; }
.photos figcaption { font: 11px var(--mono); padding: 3px 6px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; align-items: center; }
.checks li span { font: 700 10.5px var(--mono); text-transform: uppercase; padding: 1px 6px; border: 1.5px solid var(--ink); width: 44px; text-align: center; }
.checks li.pass span { background: var(--lime); } .checks li.fail span { background: var(--coral); }
.checks li.fail { font-weight: 600; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea { border: var(--b); padding: 9px 11px; background: #fff; border-radius: 0; font-weight: 400; font-size: 15px; width: 100%; }
.form select { width: 100%; }
.form textarea { resize: vertical; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.filled, .form .filled { background: var(--lime2) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.ilist { border: var(--b); max-height: 340px; overflow: auto; margin-bottom: 12px; }
.iitem { flex-direction: row !important; align-items: center; gap: 10px !important; padding: 8px 10px; border-bottom: 1px solid var(--hair); margin: 0 !important; font-weight: 400 !important; cursor: pointer; position: relative; }
.iitem input { position: absolute; opacity: 0; }
.pf { width: 44px; height: 22px; flex: none; border: 1.5px solid var(--ink); background: var(--lime); position: relative; }
.pf::after { content: 'PASS'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 10px var(--mono); }
.iitem input:checked + .pf { background: var(--coral); }
.iitem input:checked + .pf::after { content: 'FAIL'; }
.iitem input:checked ~ span:last-child { font-weight: 600; }
.iitem input:focus-visible + .pf { outline: 3px solid var(--ink); outline-offset: 2px; }
.scorebar { display: flex; align-items: center; justify-content: space-between; border: var(--b); padding: 10px 14px; margin-bottom: 14px; }
.scorebar b { font-size: 30px; font-weight: 800; padding: 0 8px; }
.scorebar b.sc-good { background: var(--lime); } .scorebar b.sc-bad { background: var(--coral); }
.photorow { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.photorow canvas { width: 180px; height: 120px; border: var(--b); background: var(--wash); }
.slabar { border: var(--b); position: relative; padding: 10px 12px; margin-bottom: 14px; overflow: hidden; }
.slabar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime2); }
.slabar.warn span { background: var(--coral2); } .slabar.bad span { background: var(--coral); }
.slabar b, .slabar small { position: relative; display: block; }
.slabar small { color: var(--ink); opacity: 0.75; }
.mail { border: var(--b); margin-bottom: 14px; }
.mail header { background: var(--wash); padding: 8px 12px; border-bottom: 1px solid var(--hair); }
.mail header small { color: var(--mute); }
.mail p { padding: 12px; margin: 0; white-space: pre-wrap; }
.inl2 { flex-direction: row !important; align-items: center; margin: 0 !important; }
.inl2 select { width: auto; }
.minilv { display: inline-flex; gap: 3px; height: 26px; align-items: flex-end; }
.minilv i { width: 9px; background: var(--ink); }
.minilv i.bad { background: var(--coral); }
.lvl { display: block; width: 110px; height: 10px; border: 1.5px solid var(--ink); }
.lvl i { display: block; height: 100%; background: var(--ink); }
.lvl i.bad { background: var(--coral); }
.weekhrs { display: grid; grid-template-columns: repeat(8, 1fr); border: var(--b); margin-bottom: 14px; }
.weekhrs div { padding: 10px 8px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; }
.weekhrs span { font: 700 11px var(--mono); color: var(--mute); } .weekhrs b { font: 700 16px var(--mono); }
.weekhrs .tot { background: var(--ink); color: #fff; } .weekhrs .tot b { color: var(--lime); }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 20px; }
.people li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.people li > span:nth-child(2) { flex: 1; min-width: 0; }
.people b { display: block; } .people small { color: var(--mute); font-size: 12.5px; }
.setrow { flex-direction: row !important; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); margin: 0 !important; }
.setrow small { display: block; font-weight: 400; color: var(--mute); }

/* quotes wizard */
.wsteps { display: flex; list-style: none; padding: 0; margin: 0 0 16px; border: var(--b); }
.wsteps li { flex: 1; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--mute); border-right: 2px solid var(--ink); }
.wsteps li:last-child { border-right: 0; }
.wsteps span { font: 700 11px var(--mono); width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; }
.wsteps li.past { color: var(--ink); background: var(--wash); }
.wsteps li.cur { background: var(--ink); color: #fff; }
.wsteps li.cur span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.who { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.who legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.radio { flex-direction: row !important; align-items: center; gap: 8px !important; border: var(--b); padding: 9px 12px; margin: 0 !important; cursor: pointer; }
.radio input { accent-color: var(--ink); width: 17px; height: 17px; }
.radio:has(input:checked) { background: var(--lime2); }
.lineed { border: var(--b); margin-bottom: 12px; }
.le-h, .le { display: grid; grid-template-columns: minmax(0, 3fr) 90px 54px 96px 100px 36px; gap: 8px; align-items: center; padding: 8px 10px; }
.le-h { background: var(--wash); font: 700 11px var(--mono); text-transform: uppercase; color: var(--mute); border-bottom: var(--b); }
.le { border-bottom: 1px solid var(--hair); }
.le input { border: 1.5px solid var(--ink); padding: 6px 8px; width: 100%; min-width: 0; border-radius: 0; background: #fff; }
.le.filled { box-shadow: none; } .le.filled input { background: var(--lime2); }
.le .u { font: 12px var(--mono); color: var(--mute); }
.le .amt { font-family: var(--mono); text-align: right; }
.le .iconbtn { width: 30px; height: 30px; }
.pad { padding: 14px; margin: 0; }
.totals { margin-left: auto; max-width: 380px; border: var(--b); margin-top: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--hair); gap: 12px; }
.totals div span { color: var(--mute); font-size: 13.5px; }
.totals b { font-family: var(--mono); }
.totals .tot { background: var(--ink); color: #fff; border: 0; } .totals .tot span { color: #ddd; } .totals .tot b { color: var(--lime); font-size: 19px; }
.err { color: var(--coralink); font-weight: 700; min-height: 1.4em; margin: 6px 0 0; }
.success { text-align: center; padding: 40px 24px; }
.success h2 { font-size: 28px; margin-bottom: 8px; }
.success .row { justify-content: center; }
.okmark { width: 64px; height: 64px; margin: 0 auto 14px; background: var(--lime); border: var(--b); display: flex; align-items: center; justify-content: center; }
.okmark .ic { width: 34px; height: 34px; }
.paste { border: var(--b); border-left: 8px solid var(--lime); padding: 10px 14px; margin-bottom: 18px; background: var(--lime3); }
.paste summary { font-weight: 700; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.paste textarea { width: 100%; margin-top: 10px; border: var(--b); padding: 9px 11px; font: 13px/1.45 var(--mono); background: #fff; resize: vertical; border-radius: 0; }
.found { border: var(--b); background: #fff; padding: 10px 12px; margin-top: 10px; }
.found ul { list-style: none; padding: 0; margin: 6px 0 0; }
.found li { padding: 4px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.found li span { font: 700 11px var(--mono); text-transform: uppercase; color: var(--mute); display: inline-block; width: 90px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; background: var(--ink); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 0.2; transform: translateY(-3px); } }

/* invoices / xero */
.xero { border-left: 10px solid var(--lime); }
.xh { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.xh h2 { font-size: 24px; display: flex; gap: 10px; align-items: center; }
.okdot { width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--ink); }
.syncprog { border: var(--b); height: 34px; position: relative; margin: 14px 0 0; }
.syncprog span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); transition: width 0.25s; }
.syncprog b { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; font: 600 13px var(--mono); }
.xstats { display: flex; gap: 0; margin-top: 14px; border: var(--b); }
.xstats button { flex: 1; border: 0; border-right: 2px solid var(--ink); background: #fff; padding: 10px 14px; text-align: left; display: flex; flex-direction: column; font-weight: 600; font-size: 13px; }
.xstats button:last-child { border-right: 0; }
.xstats b { font-size: 26px; line-height: 1.1; }
.xstats button.bad { background: var(--coralw); color: var(--coralink); }
.xstats button:hover { background: var(--wash); }
.xmap { margin-top: 12px; }
.xmap summary { font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.sync { font: 600 12px var(--mono); white-space: nowrap; }
.s-Synced::before { content: '\25A0 '; color: #7ca300; } .s-Pending::before { content: '\25A1 '; } .s-Needsattention { background: var(--coral); padding: 1px 5px; }
.invdoc { border: var(--b); padding: 18px; margin-bottom: 14px; }
.ivh { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ivh > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.ivh > div:first-child small { grid-column: 2; color: var(--mute); }
.ivn { text-align: right; } .ivn b { font-size: 20px; display: block; } .ivn small { color: var(--mute); }
.invdoc .tbl { border: 1.5px solid var(--ink); }

/* activity */
.actday h2 { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin: 22px 0 8px; }
.act { list-style: none; padding: 0; margin: 0; border: var(--b); }
.act li { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hair); align-items: flex-start; }
.act li:last-child { border-bottom: 0; }
.act p { margin: 0; } .act small { font: 12px var(--mono); color: var(--mute); }
.act a { text-underline-offset: 3px; }

/* client portal */
.phead { display: flex; justify-content: space-between; margin-bottom: 18px; }
.pbrand { display: flex; gap: 12px; align-items: center; }
.pmark { width: 44px; height: 44px; background: var(--coral); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; border: var(--b); }
.pbrand b { display: block; font-size: 17px; } .pbrand small { color: var(--mute); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 20px; }
.psite .ch { justify-content: space-between; }
.doc { white-space: pre-wrap; font: 14px/1.6 var(--font); margin: 0; }

/* AI */
.aisum .sumtext { font-size: 17px; line-height: 1.6; margin: 0; }
.aisum .sumtext a { font-weight: 600; text-underline-offset: 3px; }
.aisum .ch h2 { display: flex; gap: 8px; align-items: center; }
.typing::after { content: ''; display: inline-block; width: 9px; height: 1.05em; background: var(--ink); vertical-align: -2px; margin-left: 2px; animation: blink 0.8s infinite; }
.warns { margin-bottom: 20px; }
.wh { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.wh h2 { font-size: 19px; display: flex; gap: 8px; align-items: center; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.warn { border: var(--b); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; border-top: 8px solid var(--coral); }
.warn.done { border-top-color: var(--lime); opacity: 0.85; }
.wk { display: flex; justify-content: space-between; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; color: var(--mute); }
.conf { padding: 1px 6px; border: 1.5px solid var(--ink); color: var(--ink); }
.c-likely { background: var(--coral); } .c-possible { background: var(--coral2); }
.warn h3 { font-size: 16px; line-height: 1.3; }
.warn h3 a { text-decoration: none; } .warn h3 a:hover { text-decoration: underline; }
.warn details summary, .sug details summary { font-weight: 700; cursor: pointer; font-size: 13.5px; }
.warn details p, .sug details p { font-size: 13.5px; color: var(--mute); margin: 6px 0 0; }
.warn .btn { align-self: flex-start; margin-top: auto; }
.wdone { font-weight: 600; margin: auto 0 0; display: flex; gap: 6px; align-items: center; }
.reptext { width: 100%; border: var(--b); padding: 14px; font: 13.5px/1.6 var(--mono); resize: vertical; border-radius: 0; background: #fff; }
.ai-tabs a b { background: var(--coral); color: var(--ink); }

/* assistant panel */
.as-launch { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--lime); border: 2px solid var(--ink); padding: 12px 18px; font-weight: 700; font-size: 15px; box-shadow: 5px 5px 0 var(--lime); }
.as-launch:hover { background: var(--lime); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.as-launch .badge { top: -10px; right: -10px; }
body.as-open .as-launch { display: none; }
.asst { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; z-index: 90; background: #fff; border-left: var(--b); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.22s; }
body.as-open .asst { transform: none; }
.as-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.as-h div { flex: 1; display: flex; flex-direction: column; }
.as-h b { font-size: 18px; } .as-full { color: var(--lime); font-size: 12.5px; font-weight: 600; }
.as-mark { width: 34px; height: 34px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.as-h .iconbtn { background: transparent; color: #fff; border-color: #555; }
.as-h .iconbtn:hover { background: var(--lime); color: var(--ink); }
.as-tabs { display: flex; border-bottom: var(--b); }
.as-tabs button { flex: 1; border: 0; border-right: 1px solid var(--hair); background: #fff; padding: 10px 4px; font-weight: 600; font-size: 13.5px; }
.as-tabs button:last-child { border-right: 0; }
.as-tabs button[aria-selected=true] { background: var(--lime); }
.as-tabs b { font: 700 10.5px var(--mono); background: var(--coral); padding: 0 4px; }
.as-body { flex: 1; overflow: auto; min-height: 0; display: flex; flex-direction: column; }
.as-f { font-size: 11.5px; color: var(--mute); padding: 8px 14px; border-top: 1px solid var(--hair); }
.ai-root { min-height: 560px; display: flex; flex-direction: column; }
.ai-root .as-chat { height: 68vh; min-height: 520px; }
.as-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.as-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--wash); }
.as-msg { max-width: 100%; }
.as-msg.me { align-self: flex-end; max-width: 86%; }
.as-msg.me p { margin: 0; background: var(--ink); color: #fff; padding: 9px 12px; font-weight: 500; }
.as-msg.ai { background: #fff; border: var(--b); padding: 11px 13px; }
.as-txt { line-height: 1.55; }
.as-txt a { font-weight: 600; text-underline-offset: 2px; }
.as-why { font-size: 12.5px; color: var(--mute); margin: 8px 0 0; border-left: 3px solid var(--coral); padding-left: 8px; }
.as-tbl { overflow-x: auto; margin-top: 10px; border: 1.5px solid var(--ink); }
.as-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.as-tbl th { text-align: left; font: 700 10.5px var(--mono); text-transform: uppercase; background: var(--wash); padding: 6px 8px; border-bottom: 1.5px solid var(--ink); }
.as-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--hair); }
.as-tbl .score { height: 20px; min-width: 28px; font-size: 11.5px; }
.as-chart { margin-top: 10px; }
.as-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.as-menu { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.as-grp p { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin: 0 0 6px; }
.as-grp.ctx { background: var(--lime3); padding: 8px; border: 1.5px dashed var(--ink); }
.as-grp, .as-follow { display: flex; flex-wrap: wrap; gap: 6px; }
.as-grp p { width: 100%; }
.as-follow { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--hair); }
.as-chip { border: 1.5px solid var(--ink); background: #fff; padding: 5px 10px; font-size: 13px; font-weight: 500; text-align: left; border-radius: 999px; }
.as-chip:hover { background: var(--lime); }
.as-follow .as-chip { background: var(--lime3); }
.as-in { border-top: var(--b); padding: 10px 14px; background: #fff; display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; }
.as-in input { height: 38px; border: 1.5px dashed var(--hair); background: var(--wash); padding: 0 10px; font-size: 13px; width: 100%; min-width: 0; border-radius: 0; }
.as-in .tiny { grid-column: 1 / -1; margin: 0; }
.as-pad { padding: 14px; }
.sug { border: var(--b); padding: 12px 14px; margin-bottom: 12px; background: #fff; border-left: 8px solid var(--lime); }
.sug h3 { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.sug .ben { font-size: 13.5px; margin: 8px 0; }
.sug.done { border-left-color: var(--ink); background: var(--wash); }
.sug.dismissed { opacity: 0.6; border-left-color: var(--hair); }
.sug.focus { outline: 4px solid var(--lime); }
.sdone { font-weight: 600; margin: 8px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.drafts { list-style: none; padding: 0; margin: 0; }
.drafts button { width: 100%; text-align: left; border: var(--b); background: #fff; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.drafts button:hover { background: var(--lime3); }
.drafts button.sent { background: var(--wash); }
.drafts .dk { font: 700 10.5px var(--mono); text-transform: uppercase; color: var(--mute); }
.drafts small { color: var(--mute); }
.as-draft { width: 100%; border: var(--b); padding: 10px; font: 13.5px/1.55 var(--font); resize: vertical; margin: 6px 0 4px; border-radius: 0; }
.as-act { list-style: none; padding: 0; margin: 0; }
.as-act li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.as-act .t { font: 700 12px var(--mono); width: 70px; flex: none; padding-top: 2px; }
.as-act p { margin: 0 0 3px; font-size: 14px; }
.as-act small { font: 600 11.5px var(--mono); }
.as-act small.wait { color: var(--coralink); } .as-act small.ok::before { content: '\2713 '; }

/* field app */
.fieldwrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.fieldinfo { padding-top: 30px; }
.fieldinfo h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px; }
.fieldinfo .sel { margin-top: 18px; }
.phone { width: 390px; height: 800px; border: 10px solid var(--ink); border-radius: 44px; position: relative; overflow: hidden; background: #0d0d0c; box-shadow: 14px 14px 0 var(--lime); }
.notch { position: absolute; top: 8px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%); background: var(--ink); border-radius: 14px; z-index: 3; }
.fx { height: 100%; display: flex; flex-direction: column; color: #f4f4ee; font-size: 15px; }
.fx-top { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; border-bottom: 1px solid #2c2c2a; }
.fx-top > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.fx-top small { color: #9a9a92; font-size: 12px; }
.fx-crew { font: 800 14px var(--mono); background: var(--lime); color: var(--ink); padding: 6px 8px; }
.fx-clock { font: 700 14px var(--mono); color: var(--lime); }
.fx-main { flex: 1; overflow: auto; padding: 16px; }
.fx-hero p { color: #9a9a92; font-size: 13px; margin: 0 0 4px; }
.fx-hero h2 { font-size: 24px; line-height: 1.15; margin-bottom: 12px; }
.fx-hero small { color: #9a9a92; }
.fx-prog { height: 8px; background: #2a2a28; margin: 8px 0; }
.fx-prog i { display: block; height: 100%; background: var(--lime); }
.fx-big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; margin: 16px 0; border: 0; background: var(--lime); color: var(--ink); font-size: 18px; font-weight: 800; padding: 12px; }
.fx-big.on { background: #fff; }
.fx-big:disabled { background: #2a2a28; color: #8f8f88; cursor: not-allowed; font-size: 15px; }
.fx-done { text-align: center; padding: 24px; border: 2px solid var(--lime); margin: 16px 0; color: var(--lime); }
.fx-h { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #9a9a92; margin: 18px 0 8px; }
.fx-route { list-style: none; margin: 0; padding: 0; }
.fx-route li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #2c2c2a; }
.fx-t { font: 700 13px var(--mono); width: 70px; color: #9a9a92; }
.fx-n { flex: 1; min-width: 0; } .fx-n b { display: block; font-weight: 600; } .fx-n small { color: #9a9a92; font-size: 12px; }
.fx-route li.done .fx-n b { text-decoration: line-through; color: #8f8f88; }
.fx-route li.done .fx-s { color: var(--lime); }
.fx-route li.cur { background: #1a1a19; box-shadow: inset 4px 0 0 var(--lime); padding-left: 8px; }
.fx-quick { display: flex; gap: 10px; margin: 14px 0; align-items: center; }
.fx-quick button { flex: 1; min-height: 50px; border: 2px solid #444; background: #1a1a19; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fx-quick span { flex: 1; font-size: 13px; color: #9a9a92; } .fx-quick span.bad { color: var(--coral); }
.fx-back { border: 0; background: none; color: var(--lime); font-weight: 700; padding: 4px 0; margin-bottom: 8px; }
.fx-title { font-size: 22px; line-height: 1.2; }
.fx-sub { color: #9a9a92; font-size: 13px; margin: 4px 0 10px; }
.fx-card { border: 1.5px solid #3a3a37; padding: 10px 12px; margin-bottom: 10px; }
.fx-card b { font: 700 11px var(--mono); text-transform: uppercase; color: #9a9a92; } .fx-card p { margin: 3px 0 0; }
.fx-card.warn { border-color: var(--coral); }
.fx-gps { display: flex; gap: 10px; align-items: center; padding: 12px; background: #1a1a19; font-size: 14px; }
.fx-gps.ok { color: var(--lime); }
.fx-checks { list-style: none; padding: 0; margin: 0; }
.fx-checks button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #2c2c2a; background: none; color: #f4f4ee; padding: 12px 2px; min-height: 52px; font-size: 15px; }
.fx-checks .bx { width: 28px; height: 28px; border: 2px solid #666; flex: none; display: flex; align-items: center; justify-content: center; }
.fx-checks button.on { color: #8f8f88; }
.fx-checks button.on .bx { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.fx-cam { width: 100%; height: auto; background: #1a1a19; border: 2px solid #3a3a37; display: block; }
.fx-mid { width: 100%; min-height: 50px; margin: 10px 0; border: 2px solid var(--lime); background: none; color: var(--lime); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fx-lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: #c9c9c1; margin-bottom: 10px; }
.fx-lbl select, .fx-lbl textarea { background: #1a1a19; color: #fff; border: 2px solid #3a3a37; padding: 10px; font-size: 15px; border-radius: 0; }
.fx-sig { width: 100%; height: auto; background: #f4f4ee; display: block; touch-action: none; }
.fx-chk { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 44px; }
.fx-chk input { width: 22px; height: 22px; accent-color: var(--lime); }
.lowgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lowgrid button { border: var(--b); background: #fff; padding: 12px; text-align: left; min-height: 64px; display: flex; flex-direction: column; }
.lowgrid button.on { background: var(--coral); }
.lowgrid small { color: var(--mute); } .lowgrid button.on small { color: var(--ink); }

/* tour, shortcuts, palette sheet */
.tour-ring { position: fixed; z-index: 180; border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--lime), 0 0 0 9999px rgba(11, 11, 11, 0.35); pointer-events: none; transition: all 0.2s; }
.tour-pop { position: fixed; z-index: 181; width: min(360px, calc(100% - 20px)); background: #fff; border: var(--b); padding: 16px 18px; box-shadow: 8px 8px 0 var(--lime); }
.tour-pop h3 { font-size: 19px; margin-bottom: 6px; }
.tstep { font: 700 11px var(--mono); color: var(--mute); margin-bottom: 4px; }
.tour-offer { position: fixed; left: 20px; bottom: 20px; z-index: 75; width: 300px; background: var(--ink); color: #fff; padding: 16px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); }
.tour-offer p { color: #c9c9c1; font-size: 14px; }
.tour-offer .btn.ghost { color: #fff; border-color: #555; }
.skgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sk { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.sk kbd { font: 600 11.5px var(--mono); border: 1.5px solid var(--ink); padding: 1px 6px; background: var(--wash); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mgrid a, .mgrid button { border: var(--b); padding: 12px; font-weight: 600; text-decoration: none; background: #fff; text-align: left; }
.mgrid .on { background: var(--lime); }
.palm { display: flex; gap: 10px; padding: 12px; border-bottom: var(--b); }
.pal-in { flex: 1; display: flex; align-items: center; gap: 8px; border: var(--b); padding: 0 10px; }
.pal-in input { border: 0; height: 42px; flex: 1; outline: none; font-size: 16px; min-width: 0; }
.pal-res { overflow: auto; flex: 1; }

/* ---------- responsive ---------- */
@media (min-width: 1200px) { body.as-open #view, body.as-open .chrome, body.as-open .banner { margin-right: 420px; } }
@media (max-width: 1280px) { .bn small { display: none; } .rn { display: none; } }
@media (max-width: 1180px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .tside { max-height: 520px; }
  .g-sched { grid-template-columns: minmax(0, 1fr); }
  .navnote .live { display: none; }
}
@media (max-width: 1000px) {
  :root { --gut: 22px; }
  .g2, .g-hero { grid-template-columns: minmax(0, 1fr); }
  .fieldwrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fieldinfo { padding-top: 0; }
  .cmd-k { display: none; }
}
@media (max-width: 720px) {
  :root { --gut: 16px; --hdr: 56px; }
  body { padding-bottom: 70px; font-size: 15px; }
  .banner { font-size: 12px; justify-content: flex-start; padding-right: 40px; }
  .banner a { margin-left: 6px; }
  .top { gap: 10px; }
  .bn { font-size: 17px; }
  .cmd, .sections { display: none; }
  .hacts { margin-left: auto; gap: 6px; }
  .hbtn { height: 38px; min-width: 38px; padding: 0 8px; }
  .hbtn.mob { display: inline-flex; }
  .hbtn.ask span { display: none; }
  .role { height: 38px; padding: 0 4px; gap: 4px; }
  .role > .ic { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; color: #c9c9c1; text-decoration: none; font-size: 11px; font-weight: 600; background: none; border: 0; }
  .tabbar a.on { color: var(--ink); background: var(--lime); }
  .as-launch { bottom: 82px; right: 14px; padding: 10px 14px; font-size: 14px; }
  .toasts { bottom: 82px; left: 12px; }
  .asst { width: 100%; border-left: 0; z-index: 110; }
  .page { padding: 20px var(--gut) 40px; }
  .hd { margin-bottom: 16px; }
  .hd h1 { font-size: 32px; }
  .hd-acts { width: 100%; }
  .hd-acts .segsw { width: 100%; } .hd-acts .segsw button { flex: 1; padding: 7px 4px; }
  .card { padding: 16px; }
  .card > .tbl { margin: 0 -16px -16px; width: calc(100% + 32px); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 12px; } .kv { font-size: 26px; }
  .dt-search { flex: 1 1 100%; }
  .dt-right { width: 100%; } .dt-right .sel { flex: 1; } .dt-right .sel select { width: 100%; }
  .dt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .dt-chips .chip { flex: none; }
  .dt-wrap { border: 0; overflow: visible; background: none; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: var(--b); margin-bottom: 10px; background: #fff; padding: 6px 0; position: relative; }
  .tbl td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; align-items: center; }
  .tbl td::before { content: attr(data-label); font: 700 10.5px var(--mono); text-transform: uppercase; color: var(--mute); text-align: left; flex: none; }
  .tbl td:not([data-label])::before { content: none; }
  .tbl td:first-child[data-label] { text-align: left; display: block; padding-top: 6px; }
  .tbl td:first-child[data-label]::before { display: none; }
  .tbl td.ck { position: absolute; right: 4px; top: 6px; width: auto; padding: 4px; }
  .tbl td.ck::before { content: none; }
  .tbl.lines tfoot { display: block; } .tbl.lines tfoot tr { display: flex; justify-content: space-between; border: 0; margin: 0; padding: 0; } .tbl.lines tfoot td { display: block; width: auto; }
  .card > .tbl { margin: 0; width: 100%; }
  .card > .tbl th:first-child, .card > .tbl td:first-child { padding-left: 12px; }
  .clip { max-width: 200px; }
  .segbar { flex-wrap: wrap; } .seg { flex: 1 1 30% !important; border-bottom: 2px solid var(--ink); }
  .mapbox { height: 420px; min-height: 0; }
  .maptools { position: static; padding: 10px; }
  .replay label { width: 100%; }
  .g-sched .sched-wrap { max-height: none; overflow: visible; }
  .daytabs { display: flex; overflow-x: auto; border-bottom: var(--b); position: sticky; top: 0; background: #fff; z-index: 4; }
  .daytabs button { flex: none; border: 0; border-right: 1px solid var(--hair); background: #fff; padding: 9px 12px; font-weight: 700; display: flex; flex-direction: column; font-size: 13px; }
  .daytabs button small { font-weight: 400; color: var(--mute); }
  .daytabs button[aria-selected=true] { background: var(--ink); color: var(--lime); }
  .sched { min-width: 0; grid-template-columns: 120px minmax(0, 1fr); }
  .sched .sh:not(.corner) { display: none; }
  .sched .sh.corner { display: none; }
  .sched .cell { display: none; }
  .sd-0 .d0, .sd-1 .d1, .sd-2 .d2, .sd-3 .d3, .sd-4 .d4, .sd-5 .d5, .sd-6 .d6 { display: flex; }
  .crewcell { position: static; }
  .crewcell b { max-width: 70px; }
  .pipe .pst { min-width: 50%; border-bottom: 2px solid var(--ink); }
  .vsteps { grid-template-columns: 1fr; } .vs { border-right: 0; border-bottom: 2px solid var(--ink); }
  .wsteps li { font-size: 0; justify-content: center; } .wsteps li span { font-size: 11px; } .wsteps li.cur { font-size: 13px; }
  .le-h { display: none; }
  .le { grid-template-columns: 1fr 1fr 36px; }
  .le input[data-k=desc] { grid-column: 1 / -1; }
  .le .u { display: none; }
  .totals { max-width: none; }
  .xstats b { font-size: 20px; }
  .weekhrs { grid-template-columns: repeat(4, 1fr); }
  .skgrid { grid-template-columns: 1fr; }
  .phone { width: 100%; height: auto; min-height: 70vh; border: 0; border-radius: 0; box-shadow: none; }
  .notch { display: none; }
  .page.field { padding: 0; }
  .field .fieldinfo { padding: 16px; }
  .field.asCleaner .fieldinfo { display: none; }
  .fieldwrap { gap: 0; }
  .fx-top { padding-top: 14px; }
  .ai-root .as-chat { height: 72vh; }
  .tour-offer { left: 12px; right: 12px; width: auto; bottom: 82px; }
  .ov-drawer .panel, .ov-drawer.wide .panel { width: 100%; border-left: 0; }
  .ph { padding: 14px 16px; } .pb { padding: 14px 16px 24px; }
  .people { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.tside .tabs { flex: none; }
.seg { min-width: 96px; }
.tour-offer .btn.ghost { background: transparent; }
.tour-offer .btn.ghost:hover { background: #fff; color: var(--ink); }
.banner .iconbtn { background: transparent; }
.vstrip { grid-template-columns: repeat(21, 1fr); }
.sc small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-chat { overflow: hidden; }
.as-log { min-height: 0; }
.ai-root .as-chat { height: min(70vh, 720px); }
.ai-root .as-chat { flex: none; }
.form .sel { flex-direction: row; align-items: center; }
[hidden] { display: none !important; }
.as-tabs button { white-space: nowrap; }
@media (max-width: 720px) {
  .tbl td.ck + td { display: block; text-align: left; padding-right: 44px; padding-top: 6px; }
  .tbl td.ck + td::before { display: none; }
  .as-launch span:not(.badge) { display: none; }
  .as-launch { padding: 12px; }
  .as-tabs button { font-size: 12.5px; padding: 10px 2px; }
}
