:root{
  --bg:#F2F4F7; --panel:#FFFFFF; --ink:#0E1A2E; --muted:#556175; --line:#D6DCE5; --soft:#E9EDF3;
  --hdr:#0E1A2E; --hdr-ink:#FFFFFF; --hdr-muted:#AAB4C5;
  --gold:#E8A93A; --gold-ink:#0E1A2E; --blue:#1F6FB0; --blue-soft:#E3EEF8;
  --ok:#1C8A57; --warn:#B26F06; --bad:#C0342A; --miss:#8A94A6;
  --ok-soft:#E1F2E8; --warn-soft:#FBEFD9; --bad-soft:#FBE4E2;
  --design:#8A94A6;
  --font:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --tap:56px; --radius:12px; --bw:1px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]):not(.sun){
    --bg:#0A0F17; --panel:#141C29; --ink:#E8ECF2; --muted:#9BA6B8; --line:#263246; --soft:#1B2536;
    --hdr:#05080D; --blue:#62A6E3; --blue-soft:#15263A;
    --ok:#3FC184; --warn:#E6A63C; --bad:#F06B60; --miss:#7C879A;
    --ok-soft:#10291D; --warn-soft:#2C2311; --bad-soft:#331715; --design:#6E7A8E;
  }

}
:root[data-theme="dark"]:not(.sun){
  --bg:#0A0F17; --panel:#141C29; --ink:#E8ECF2; --muted:#9BA6B8; --line:#263246; --soft:#1B2536;
  --hdr:#05080D; --blue:#62A6E3; --blue-soft:#15263A;
  --ok:#3FC184; --warn:#E6A63C; --bad:#F06B60; --miss:#7C879A;
  --ok-soft:#10291D; --warn-soft:#2C2311; --bad-soft:#331715; --design:#6E7A8E;
}
:root.sun{
  --bg:#FFFFFF; --panel:#FFFFFF; --ink:#000000; --muted:#1F1F1F; --line:#000000; --soft:#EEEEEE;
  --hdr:#000000; --hdr-muted:#FFFFFF; --gold:#FFC21A; --blue:#0047B3; --blue-soft:#DCE8FF;
  --ok:#006B2E; --warn:#8A4B00; --bad:#B00000; --miss:#444444; --design:#555555;
  --ok-soft:#D8F5E2; --warn-soft:#FFE9C2; --bad-soft:#FFD9D6; --bw:2px;
}
:root.sun body{font-size:18px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.45;-webkit-text-size-adjust:100%;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
h1:where(:not(#office, #office *)){font-size:1.5rem;margin:6px 0 10px}
h2:where(:not(#office, #office *)){font-size:1.25rem;margin:0}
button:where(:not(#office, #office *)),input:where(:not(#office, #office *)),select:where(:not(#office, #office *)){font:inherit;color:inherit}
.muted:where(:not(#office, #office *)){color:var(--muted)}
.small:where(:not(#office, #office *)){font-size:.85rem}
.num:where(:not(#office, #office *)),.mono:where(:not(#office, #office *)){font-family:var(--mono);font-variant-numeric:tabular-nums}
:focus-visible:where(:not(#office, #office *)){outline:3px solid var(--gold);outline-offset:2px}
.top:where(:not(#office, #office *)){position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;background:var(--hdr);color:var(--hdr-ink);padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px}
.top-title:where(:not(#office, #office *)){display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.top-title .logo:where(:not(#office, #office *)){width:34px;height:34px;border-radius:8px}
.top-title b:where(:not(#office, #office *)){display:block;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-title span:where(:not(#office, #office *)){display:block;font-size:.78rem;color:var(--hdr-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn:where(:not(#office, #office *)){min-width:var(--tap);height:var(--tap);border:0;background:transparent;color:inherit;font-size:1.7rem;border-radius:10px;cursor:pointer}
.icon-btn.dark:where(:not(#office, #office *)){color:var(--ink)}
main:where(:not(#office, #office *)){max-width:720px;margin:0 auto;padding:12px 14px}
.card:where(:not(#office, #office *)){background:var(--panel);border:var(--bw) solid var(--line);border-radius:var(--radius);padding:16px}
.card.tight:where(:not(#office, #office *)){padding:10px 12px}
.stack:where(:not(#office, #office *)){display:grid;gap:12px}
.row-between:where(:not(#office, #office *)){display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.btn:where(:not(#office, #office *)){min-height:48px;padding:10px 16px;border-radius:10px;border:var(--bw) solid var(--line);background:var(--panel);font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.btn.primary:where(:not(#office, #office *)){background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.btn.big:where(:not(#office, #office *)){min-height:var(--tap);font-size:1.1rem;width:100%}
.btn.small:where(:not(#office, #office *)){min-height:36px;padding:4px 12px;font-size:.85rem}
.btn:disabled:where(:not(#office, #office *)){opacity:.5}
.fld:where(:not(#office, #office *)){display:block;font-weight:700;font-size:.9rem;margin-bottom:12px}
.fld input:where(:not(#office, #office *)),.fld select:where(:not(#office, #office *)){display:block;width:100%;margin-top:4px;min-height:var(--tap);padding:10px 12px;border-radius:10px;border:var(--bw) solid var(--line);background:var(--panel);font-weight:400;font-size:1.05rem}
.msg:where(:not(#office, #office *)){min-height:1.2em;margin:10px 0 0}
.msg.err:where(:not(#office, #office *)){color:var(--bad)}
.msg.good:where(:not(#office, #office *)){color:var(--ok)}
.switch:where(:not(#office, #office *)){display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}
.switch input:where(:not(#office, #office *)){width:26px;height:26px;accent-color:var(--blue)}
.switch.big:where(:not(#office, #office *)){font-weight:700}
.blast-card:where(:not(#office, #office *)){display:block;width:100%;text-align:left;background:var(--panel);border:var(--bw) solid var(--line);border-radius:var(--radius);padding:14px;cursor:pointer}
.blast-card b:where(:not(#office, #office *)){font-size:1.15rem}
.blast-card .bar:where(:not(#office, #office *)){margin-top:8px}
.stages:where(:not(#office, #office *)){display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;margin-bottom:10px}
.stages button:where(:not(#office, #office *)){min-height:var(--tap);border-radius:10px;border:var(--bw) solid var(--line);background:var(--panel);font-weight:800;font-size:1rem;cursor:pointer}
.stages button[aria-selected="true"]:where(:not(#office, #office *)){background:var(--blue);border-color:var(--blue);color:#fff}
.seg:where(:not(#office, #office *)){display:inline-flex;border:var(--bw) solid var(--line);border-radius:10px;overflow:hidden}
.seg button:where(:not(#office, #office *)){min-height:44px;padding:0 16px;border:0;background:var(--panel);font-weight:700;cursor:pointer}
.seg button[aria-pressed="true"]:where(:not(#office, #office *)){background:var(--ink);color:var(--bg)}
.progress:where(:not(#office, #office *)){display:grid;gap:4px;margin-bottom:10px}
.pg:where(:not(#office, #office *)){display:grid;grid-template-columns:70px 1fr 64px;gap:8px;align-items:center;font-size:.9rem}
.pg b:where(:not(#office, #office *)){text-align:right;font-family:var(--mono)}
.bar:where(:not(#office, #office *)){height:10px;background:var(--soft);border-radius:5px;overflow:hidden}
.bar i:where(:not(#office, #office *)){display:block;height:100%;width:0;background:var(--blue);border-radius:5px;transition:width .3s}
.bar i.gold:where(:not(#office, #office *)){background:var(--gold)}
.bar i.red:where(:not(#office, #office *)){background:var(--bad)}
@media (prefers-reduced-motion:reduce){.bar i:where(:not(#office, #office *)){transition:none}
}
.map-card:where(:not(#office, #office *)){margin-top:10px;overflow:auto;-webkit-overflow-scrolling:touch}
#map:where(:not(#office, #office *)){display:block;width:100%;min-width:520px;height:auto;touch-action:manipulation}
#map text:where(:not(#office, #office *)){font-family:var(--mono);font-size:11px;fill:var(--muted)}
#map g.hole:where(:not(#office, #office *)){cursor:pointer}
.hole-grid:where(:not(#office, #office *)){display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin-top:10px}
.hole-grid button:where(:not(#office, #office *)){min-height:var(--tap);border-radius:10px;border:2px solid var(--line);background:var(--panel);font-family:var(--mono);font-weight:700;font-size:1rem;cursor:pointer;position:relative}
.hole-grid button.ok:where(:not(#office, #office *)){border-color:var(--ok);background:var(--ok-soft)}
.hole-grid button.warn:where(:not(#office, #office *)){border-color:var(--warn);background:var(--warn-soft)}
.hole-grid button.bad:where(:not(#office, #office *)){border-color:var(--bad);background:var(--bad-soft)}
.hole-grid button.ready:where(:not(#office, #office *)){border-color:var(--blue);background:var(--blue-soft)}
.hole-grid button.pend:where(:not(#office, #office *)){border-style:dashed}
.hole-grid button .q:where(:not(#office, #office *)){position:absolute;top:3px;right:5px;font-size:.7rem}
.legend:where(:not(#office, #office *)){display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.85rem;color:var(--muted);margin-top:8px}
.legend span:where(:not(#office, #office *)){display:inline-flex;align-items:center;gap:6px}
.legend svg:where(:not(#office, #office *)){width:16px;height:16px}
.sheet-bg:where(:not(#office, #office *)){position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:30}
.sheet:where(:not(#office, #office *)){position:fixed;left:0;right:0;bottom:0;z-index:31;background:var(--panel);border-radius:18px 18px 0 0;padding:14px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:94vh;overflow:auto;max-width:720px;margin:0 auto;border-top:var(--bw) solid var(--line)}
.sheet-head:where(:not(#office, #office *)){display:flex;justify-content:space-between;align-items:center}
.sheet-head h2:where(:not(#office, #office *)){font-size:1.6rem;font-family:var(--mono)}
.design:where(:not(#office, #office *)){margin:2px 0 12px;color:var(--muted);font-size:.95rem}
.design b:where(:not(#office, #office *)){color:var(--ink);font-family:var(--mono)}
.stepper:where(:not(#office, #office *)){margin-bottom:14px}
.stepper label:where(:not(#office, #office *)){display:block;font-weight:700;margin-bottom:4px}
.stepper > div:where(:not(#office, #office *)){display:grid;grid-template-columns:var(--tap) 1fr var(--tap);gap:8px}
.stepper button:where(:not(#office, #office *)){height:var(--tap);border-radius:10px;border:var(--bw) solid var(--line);background:var(--soft);font-size:1.8rem;font-weight:700;cursor:pointer}
.stepper input:where(:not(#office, #office *)){height:var(--tap);text-align:center;font-size:1.5rem;font-family:var(--mono);border-radius:10px;border:2px solid var(--line);background:var(--panel);width:100%;min-width:0}
.photo-row:where(:not(#office, #office *)){display:flex;gap:10px;align-items:center;margin:6px 0 12px}
.photo-row img:where(:not(#office, #office *)){height:64px;border-radius:8px;border:var(--bw) solid var(--line)}
.result:where(:not(#office, #office *)){padding:12px 14px;border-radius:10px;font-weight:700;margin-bottom:12px}
.result.ok:where(:not(#office, #office *)){background:var(--ok-soft);color:var(--ok)}
.result.warn:where(:not(#office, #office *)){background:var(--warn-soft);color:var(--warn)}
.result.bad:where(:not(#office, #office *)){background:var(--bad-soft);color:var(--bad)}
.sheet-actions:where(:not(#office, #office *)){display:grid;grid-template-columns:1fr 1fr;gap:10px}
.syncbar:where(:not(#office, #office *)){position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;align-items:center;gap:10px;background:var(--panel);border-top:var(--bw) solid var(--line);padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px));font-size:.9rem}
.syncbar span:where(:not(#office, #office *)){flex:1}
.syncbar i:where(:not(#office, #office *)){width:12px;height:12px;border-radius:50%;background:var(--miss);flex:none}
.syncbar.on i:where(:not(#office, #office *)){background:var(--ok)}
.syncbar.wait i:where(:not(#office, #office *)){background:var(--warn)}
.syncbar.off i:where(:not(#office, #office *)){background:var(--bad)}
.pill:where(:not(#office, #office *)){display:inline-block;padding:2px 10px;border-radius:99px;font-size:.78rem;font-weight:800}
.pill.ok:where(:not(#office, #office *)){background:var(--ok-soft);color:var(--ok)}
.pill.warn:where(:not(#office, #office *)){background:var(--warn-soft);color:var(--warn)}
.pill.bad:where(:not(#office, #office *)){background:var(--bad-soft);color:var(--bad)}
.pill.pend:where(:not(#office, #office *)){background:var(--soft);color:var(--muted)}
.pill.ready:where(:not(#office, #office *)){background:var(--blue-soft);color:var(--blue)}
.check-list:where(:not(#office, #office *)){list-style:none;margin:0;padding:0}
.check-list li:where(:not(#office, #office *)){display:flex;gap:10px;padding:10px 0;border-bottom:var(--bw) solid var(--line)}
.ic:where(:not(#office, #office *)){flex:none;width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800}
.ic.ok:where(:not(#office, #office *)){background:var(--ok)}
.ic.warn:where(:not(#office, #office *)){background:var(--warn)}
.ic.bad:where(:not(#office, #office *)){background:var(--bad)}
.issue:where(:not(#office, #office *)){display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:var(--bw) solid var(--line)}
.demo-banner:where(:not(#office, #office *)){background:var(--gold);color:var(--gold-ink);text-align:center;font-size:.8rem;font-weight:800;padding:4px}


h1:where(:not(#office, #office *)),h2:where(:not(#office, #office *)){font-family:"Outfit",var(--font);letter-spacing:.005em}
