/* UnitCue landing v2 — the page and its stage. Ivory paper, graphite ink, white surfaces; lime only for what is
   picked (a chip, the unit open, a differing row's bar). IBM Plex self-hosted. No gradients, no stock photos. */
@font-face{font-family:"IBM Plex Sans";src:url(fonts/IBMPlexSans-var-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url(fonts/IBMPlexMono-400-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url(fonts/IBMPlexMono-500-latin.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap}

:root{
  --graphite:#222723; --ivory:#F2F0E8; --lime:#D4E870; --white:#FFFFFF;
  --deep:#1A1E1B; --muted:#5F635C; --muted-2:#6E736D; --line:#D8D3C4; --line-2:#B9B3A2; --line-soft:#ECEAE2; --surface-2:#E9E6DC; --sand:#EEECE3;
  --lime-ink:#4F6A0E;
  --sans:"IBM Plex Sans",Arial,sans-serif; --mono:"IBM Plex Mono",Consolas,monospace;
  --head-h:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--head-h) + 8px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
body{margin:0;font-family:var(--sans);color:var(--graphite);background:var(--ivory);-webkit-font-smoothing:antialiased;font-size:17px;line-height:1.55}
img{max-width:100%;display:block}
h1,h2,h3,h4,p{margin:0}
a{color:inherit}
.skip{position:absolute;left:-999px;top:8px;background:var(--graphite);color:var(--ivory);padding:10px 14px;border-radius:8px;z-index:100}
.skip:focus{left:16px}
:focus-visible{outline:3px solid var(--graphite);outline-offset:2px}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.no-js .js-only{display:none!important}

/* ------------------------------------------------------------------ page buttons */
.btn{font:inherit;font-weight:600;font-size:15px;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 18px;border-radius:10px;border:1.5px solid var(--graphite);background:var(--white);color:var(--graphite);text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--sand)}
.btn.primary{background:var(--graphite);color:var(--ivory)}
.btn.primary:hover{background:var(--deep)}
.btn.big{font-size:16px;padding:12px 22px;min-height:50px}
.btn.small{min-height:40px;font-size:14px;padding:8px 14px}
.btn[aria-pressed="true"]{background:var(--lime)}

/* ------------------------------------------------------------------ header */
.site-head{position:sticky;top:0;z-index:50;height:var(--head-h);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 40px;background:var(--ivory);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:22px;letter-spacing:-.02em}
.brand svg{width:30px;height:30px}
.brand b{font-weight:600}
.head-nav{display:flex;align-items:center;gap:22px}
.head-link{text-decoration:none;font-size:15px;color:var(--muted)}
.head-link:hover{color:var(--graphite);text-decoration:underline}

/* ------------------------------------------------------------------ the story: copy left, the stage right */
.story{max-width:1440px;margin:0 auto;padding:0 40px}
.kicker{font-size:13px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:14px;display:flex;align-items:center;gap:10px}
.kicker .no{font-family:var(--mono);font-weight:500;letter-spacing:0;color:var(--graphite);border:1.5px solid var(--graphite);border-radius:6px;padding:1px 6px;font-size:12px}
h1{font-size:clamp(40px,5.2vw,72px);line-height:1.02;letter-spacing:-.035em;font-weight:700}
h2{font-size:clamp(28px,2.9vw,40px);line-height:1.1;letter-spacing:-.025em;font-weight:700;margin-bottom:18px}
.p-copy p+p{margin-top:12px}
.lede{font-size:clamp(18px,1.5vw,21px);line-height:1.5;color:#3A403B;max-width:34em}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.stage-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:15px}
.stage-ctl .muted{flex-basis:100%}
.try{font-size:15px;color:var(--muted);margin-top:18px!important;padding-left:14px;border-left:3px solid var(--line-2)}
.current-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.demo-line{font-size:13px;line-height:1.45;color:var(--muted);text-align:center;margin-top:12px}
.phone-only{display:none}
figure{margin:0}
.still img{width:100%;height:auto;border-radius:16px;border:1px solid var(--line);background:var(--white)}
.still.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* desk, JavaScript on: one sticky stage */
@media (min-width:1024px){
  .story{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:56px}
  .panel{min-height:88vh;display:flex;flex-direction:column;justify-content:center;padding:72px 0}
  .panel.hero{min-height:calc(100vh - var(--head-h));padding-top:40px}
  .js .p-stage{display:none}
  .stage-col{position:relative}
  .stage-sticky{position:sticky;top:max(calc(var(--head-h) + 18px),calc(var(--head-h) + (100vh - var(--head-h) - var(--sh,600px)) / 2));padding-bottom:24px}
  .panel>.p-head{margin-bottom:24px}
  .js.ready .panel>.p-copy,.js.ready .panel>.p-head{transition:opacity .35s}
  .js.ready .panel:not(.on)>.p-copy,.js.ready .panel:not(.on)>.p-head{opacity:.42}
  /* without JavaScript: each panel is its copy beside its still */
  .no-js .story{display:block}
  .no-js .stage-col{display:none}
  .no-js .panel{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);column-gap:56px;align-content:center}
  .no-js .panel>.p-head,.no-js .panel>.p-copy{grid-column:1}
  .no-js .panel>.p-stage{grid-column:2;grid-row:1 / span 2;align-self:center}
  .no-js .panel.hero>.p-head{align-self:end}
}
@media (max-width:1023px){
  .site-head{padding:0 16px}
  .story{padding:0 16px}
  .stage-col{display:none}
  .panel{padding:48px 0 40px;border-bottom:1px solid var(--line);display:flex;flex-direction:column}
  .panel>.p-stage{order:1;margin-bottom:26px}
  .panel>.p-copy{order:2}
  .panel.hero>.p-head{order:0;margin-bottom:22px}
  .panel.hero{padding-top:28px}
  .p-stage.live>.still{display:none}
  .desk-only{display:none}.phone-only{display:inline}
}
@media (max-width:640px){
  .head-link{display:none}
  .site-head .btn{min-height:42px;padding:8px 14px;font-size:14px}
  body{font-size:16px}
  .still.pair{grid-template-columns:1fr 1fr;gap:8px}
  .ctas .btn{flex:1 1 auto}
}

/* ------------------------------------------------------------------ bands after the story */
.band{padding:104px 40px;border-top:1px solid var(--line)}
.wrap{max-width:1180px;margin:0 auto}
.band h2{max-width:22em}
.needs{background:var(--white)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:56px;margin-top:36px}
.col h3{font-size:14px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}
.col>.muted{margin-top:18px;font-size:15px;max-width:30em}
.checks,.hears{list-style:none;margin:0;padding:0}
.checks li{display:flex;align-items:center;gap:14px;font-size:20px;font-weight:600;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.checks li::before{content:"";flex:none;width:24px;height:24px;border-radius:6px;border:2px solid var(--graphite);background:no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23222723' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hears li{display:grid;grid-template-columns:minmax(0,13em) minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line-soft);font-size:17px}
.hears b{font-weight:600}
.hears span{color:#3A403B}
.facts{background:var(--ivory)}
.fact-grid{list-style:none;margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:2px solid var(--graphite)}
.fact-grid li{padding:26px 24px 30px 0;border-bottom:1px solid var(--line)}
.fact-grid b{display:block;font-size:clamp(40px,4.4vw,60px);font-weight:700;letter-spacing:-.03em;line-height:1}
.fact-grid span{display:block;margin-top:10px;color:#3A403B;max-width:15em}
.contact{background:var(--white)}
.contact .lede{margin-bottom:28px}
.reach{display:flex;flex-wrap:wrap;gap:14px}
.slot{display:flex;flex-direction:column;gap:4px;min-width:280px;padding:16px 20px;border:1px solid var(--line-2);border-radius:12px;background:var(--ivory);color:inherit;text-decoration:none}
a.slot:hover,a.slot:focus-visible{border-color:var(--graphite)}
.slot-k{font-weight:700;font-size:18px}
.slot-v{font-family:var(--mono);font-size:14px;color:var(--graphite);overflow-wrap:anywhere}
a.slot:hover .slot-v{text-decoration:underline}
.faq{margin-top:64px;max-width:820px}
.faq h3{font-size:14px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:600;font-size:19px;padding:18px 32px 18px 0;list-style:none;position:relative;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:4px;top:14px;font-size:24px;font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 0 20px;color:#3A403B;max-width:42em}
@media (max-width:860px){
  .band{padding:64px 16px}
  .cols{grid-template-columns:1fr;gap:40px}
  .hears li{grid-template-columns:1fr;gap:2px}
  .fact-grid{grid-template-columns:1fr 1fr}
  .fact-grid li{padding-right:12px}
  .slot{min-width:0;flex:1 1 100%}
}

/* ------------------------------------------------------------------ footer */
.site-foot{background:var(--graphite);color:var(--ivory);padding:48px 40px 40px}
.foot-brand{display:flex;align-items:center;gap:10px;font-size:22px;letter-spacing:-.02em}
.foot-brand svg{width:30px;height:30px}
.foot-brand b{font-weight:600}
.foot-brand .slogan{font-size:16px;color:#C9CBC3;letter-spacing:0;margin-left:6px}
.foot-line{margin-top:18px;max-width:46em;color:#C9CBC3;font-size:15px}
.site-foot .demo-line{color:#A2A69E;text-align:left;margin-top:14px}
@media (max-width:640px){.site-foot{padding:40px 16px}.foot-brand{flex-wrap:wrap}}

/* ================================================================== THE STAGE (the app's own look) */
.stage-fit{position:relative;width:100%}
.stage-fit>.stage{position:absolute;top:0;left:calc((100% - 820px * var(--k,1)) / 2);width:820px;height:560px;transform:scale(var(--k,1));transform-origin:0 0}
.stage{--bg:#F2F0E8;--surface:#FFFFFF;--surface-2:#E9E6DC;--line:#D8D3C4;--line-2:#B9B3A2;--text:#222723;--muted:#6E736D;
  position:relative;overflow:hidden;background:var(--bg);color:var(--text);border:1px solid #CFCABA;border-radius:18px;box-shadow:0 30px 60px -40px rgba(34,39,35,.55);
  font-size:13px;line-height:1.4;font-family:var(--sans);text-align:left}
.stage button{font:inherit;color:inherit}
.stage .muted{color:var(--muted)}
.stage .small{font-size:11.5px}
.stage .mono{font-family:var(--mono);font-weight:500}
.stage h3,.stage h4{margin:0}
.stage .btn{font-size:12.5px;font-weight:500;min-height:30px;padding:4px 11px;border-radius:8px;border:1px solid var(--line-2);background:var(--surface);gap:4px}
.stage .btn:hover{background:var(--surface-2)}
.stage .btn.small{min-height:28px;font-size:12px;padding:3px 10px}
.stage .btn.primary{background:var(--text);border-color:var(--text);color:var(--bg);font-weight:600}
.stage .btn.ghost{border-color:transparent;background:none}
.stage .btn.seg.on,.stage .cmp-toggle.on{border-color:var(--text);background:var(--lime);color:var(--text);font-weight:600}
.stage .btn[disabled]{opacity:.45;cursor:default}
.stage .chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;min-height:28px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:12.5px;cursor:pointer;white-space:nowrap}
.stage .chip .n{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.stage .chip.on{border-color:var(--text);background:var(--lime);font-weight:600}
.stage .chip.on .n{color:var(--text)}
.stage .chip.zero{opacity:.7}
.stage span.chip{cursor:default;min-height:0;padding:1px 7px;background:var(--surface-2)}
.stage input{font:inherit;font-size:12.5px;width:104px;min-height:28px;padding:3px 8px;border:1px solid var(--line-2);border-radius:7px;background:var(--surface);color:var(--text)}
.stage input.on{background:var(--lime);border-color:var(--text);font-weight:600}
.stage select{font:inherit;font-size:12px;min-height:26px;border:1px solid var(--line-2);border-radius:7px;background:var(--surface);color:var(--text);padding:1px 4px}

.app-bar{position:absolute;left:0;right:0;top:0;height:44px;background:var(--text);color:var(--bg);display:flex;align-items:center;gap:30px;padding:0 18px;z-index:5}
.lockup{display:flex;align-items:center;gap:7px;font-size:17px;letter-spacing:-.02em}
.lockup svg{width:20px;height:20px}
.lockup b{font-weight:600}
.app-nav{display:flex;gap:4px}
.app-nav button{border:0;background:none;color:#C9CCC4;font-size:13px;padding:5px 12px;border-radius:999px;cursor:pointer}
.app-nav button.on{background:var(--lime);color:var(--text);font-weight:600}
.screen{position:absolute;left:0;right:0;top:44px;bottom:0;transition:opacity .17s}
.screen.out{opacity:0}
.stage[data-state="detour"] .app-bar,.stage[data-state="detour"] .tabbar{display:none}
.stage[data-state="detour"] .screen{top:0;bottom:0}
.live-note{position:absolute;left:12px;bottom:12px;z-index:30;padding:6px 11px;border-radius:8px;background:var(--surface-2);border:1px solid var(--line);font-size:12.5px;opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s;pointer-events:none;max-width:70%}
.live-note.on{opacity:1;transform:none}
.fly-layer{position:absolute;inset:0;pointer-events:none;z-index:40}
.fly{position:absolute;font-weight:600;font-size:19px;background:var(--lime);color:var(--text);padding:0 5px;border-radius:5px;white-space:nowrap;box-shadow:0 6px 16px rgba(34,39,35,.25)}

/* --- Find */
.find{position:absolute;inset:0;display:flex;flex-direction:column;gap:6px;padding:9px 16px 10px}
.ask-band{display:flex;align-items:baseline;gap:10px;flex:none}
.ask-who{font-size:12px;color:var(--muted);flex:none}
.ask{font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.ask .ph{padding-bottom:2px;background:linear-gradient(var(--line-2),var(--line-2)) 0 100%/100% 2px no-repeat;transition:background-size .3s}
.ask .ph.done{background:linear-gradient(var(--lime),var(--lime)) 0 100%/100% 6px no-repeat}
.ask .pn{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--text);color:var(--bg);font-size:10px;font-style:normal;font-weight:700;margin:0 2px 0 3px;vertical-align:4px}
.facets{flex:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px 14px 8px}
.facet-h{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:2px 0 3px}
.facet{display:flex;align-items:center;gap:6px;min-height:36px;border-bottom:1px solid #F0EEE7}
.facet .ft{width:104px;flex:none;font-weight:600;font-size:13px}
.facet .fv{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.facet-count{display:flex;align-items:center;gap:12px;background:var(--surface-2);border-radius:8px;padding:5px 10px;margin-top:7px;font-size:13px}
.fc-count b{font-size:21px;font-weight:700;letter-spacing:-.02em;margin-right:2px;vertical-align:-1px}
.hist{display:flex;gap:6px;align-items:baseline;color:var(--muted);font-size:13px;margin-left:auto}
.hist s{color:#9EA19A}
.hist b{color:var(--text);font-size:14px}
.facet-sort{margin-left:auto;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px}
.hist+.facet-sort{margin-left:10px}
.find-status{font-size:12px;color:var(--muted);flex:none}
.results{flex:1;min-height:0;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.urow{display:flex;align-items:center;gap:10px;padding:7px 12px;border-bottom:1px solid var(--line)}
.urow:last-child{border-bottom:0}
.urow .dot{width:9px;height:9px;border-radius:50%;flex:none}
.urow .main{flex:1;min-width:0}
.urow .l1{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.urow .l1 .mono{font-weight:600}
.urow .st{font-weight:600;font-size:12.5px;color:var(--ink)}
.urow .l2{font-size:11.5px}
.row-price{flex:none;white-space:nowrap;font-size:12.5px;font-variant-numeric:tabular-nums}
.row-actions{display:flex;gap:6px;flex:none}
.cmp-tray{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 8px 5px 10px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.cmp-tray[hidden]{display:none}
.cmp-pins{display:flex;align-items:center;gap:4px;font-size:12px}
.cmp-pins i{font-style:normal;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--text);color:var(--bg);font-size:10.5px;font-weight:700}
.cmp-n{margin-left:4px;color:var(--muted)}

/* --- the project: map and card */
.mv{position:absolute;inset:0;display:flex;flex-direction:column}
.proj-strip+.mv-top{display:none}
.proj-strip{flex:none;display:flex;align-items:center;gap:22px;padding:7px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.ps-name{display:flex;flex-direction:column;line-height:1.2}
.ps-name b{font-size:15px}
.ps-name .muted{font-size:11.5px}
.ps-n{display:flex;align-items:baseline;gap:5px}
.ps-n .num{font-family:var(--mono);font-size:20px;font-weight:600}
.ps-cl{margin-left:auto;display:flex;flex-direction:column;font-size:11.5px;text-align:right}
.mv-top{flex:none;display:flex;align-items:baseline;gap:10px;padding:6px 16px 0;background:var(--surface)}
.mv-title{font-size:15px;font-weight:600}
.mv-title .chip{font-size:11px;vertical-align:1px}
.mv-dev{font-size:11.5px}
.mv-tools{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px 11px;padding:6px 16px 7px;background:var(--surface);border-bottom:1px solid var(--line)}
.tool{display:flex;align-items:center;gap:6px}
.tool .tl{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tool.off{opacity:.5}
.tool.off .btn{cursor:default}
.seg-row{display:flex;gap:3px;flex-wrap:wrap}
.stage .btn.seg{min-height:26px;padding:2px 9px;font-size:12px}
.tool.count{margin-left:auto;font-size:11.5px;color:var(--muted);white-space:nowrap}
.mv-body{flex:1;min-height:0;display:flex;position:relative}
.mv-map{flex:1;min-width:0;position:relative;background:#DAD6C8;overflow:hidden}
.mv-map svg.plan{position:absolute;inset:0;width:100%;height:100%;display:block}
.plan-img{filter:saturate(.5)}
path.u.live{cursor:pointer}
path.u.live:hover{stroke-width:2.6}
.map-hint{position:absolute;left:10px;bottom:10px;padding:4px 9px;border-radius:7px;background:rgba(255,255,255,.94);border:1px solid var(--line);font-size:11.5px;color:var(--muted)}
.legend{position:absolute;right:10px;bottom:10px;z-index:3;min-width:120px;max-width:200px;background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:12px;box-shadow:0 10px 30px rgba(34,39,35,.12)}
.legend .lt{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:11px;margin-bottom:3px;text-align:left;cursor:default}
.legend .lsum{display:none}
.legend .asof{font-size:10.5px;color:var(--muted);margin:-1px 0 3px}
.legend .li{display:flex;align-items:center;gap:6px;min-height:22px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.legend button.li{width:calc(100% + 8px);padding:1px 4px;margin:0 -4px;border:0;border-radius:5px;background:none;font-size:12px;text-align:left;cursor:pointer}
.legend button.li:hover{background:var(--surface-2)}
.legend .li.on{font-weight:700}
.legend .li.off{opacity:.45}
.legend .li.on i{box-shadow:0 0 0 2px var(--text)}
.legend .li.all{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.legend .hint{margin-top:3px;font-size:10.5px;color:var(--muted)}
.three{position:absolute;inset:0;cursor:grab;background:#E3DFD3;touch-action:pan-y}
.three.drag{cursor:grabbing}
.three-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
.three-step{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.94);font-size:24px;line-height:1;cursor:pointer}
.three-step.prev{left:8px}.three-step.next{right:8px}

.mv-panel{width:318px;flex:none;overflow:auto;background:var(--surface);border-left:1px solid var(--line);padding:0 14px 16px;position:relative}
.card-head{display:flex;align-items:center;gap:8px;position:sticky;top:0;background:var(--surface);padding:8px 0 7px;border-bottom:1px solid var(--line);z-index:2}
.card-head .close{min-height:28px;padding:2px 8px;font-size:16px}
.card-head .code{flex:1;font-size:14.5px;font-weight:600;white-space:nowrap}
.status-wrap{display:inline-flex;flex-direction:column;align-items:flex-end;gap:1px}
.badge.status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:1px 8px;font-size:11.5px;font-weight:600;background:var(--t);color:var(--c)}
.badge.status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--d);flex:none}
.badge.status.unknown{border:1px dashed var(--line-2);background:transparent}
.status-wrap .asof{font-size:10.5px;white-space:nowrap}
.place{font-size:12px;color:var(--muted);margin:6px 0 0}
.card-hero{position:relative;margin-top:8px;height:150px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.card-hero>img,.card-hero>svg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.tabs{display:flex;gap:5px;margin-top:7px}
.stage .tab{flex:1;justify-content:center;display:flex;align-items:center;min-height:28px;font-size:12px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface);cursor:pointer}
.stage .tab.on{border-color:var(--text);background:var(--lime);font-weight:600}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.stat{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:5px 6px;text-align:center}
.stat .num{font-family:var(--mono);font-size:16px;font-weight:600}
.stat .muted{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em}
.price-box{margin-top:7px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.plans{display:grid;gap:1px}
.plan{display:flex;justify-content:space-between;gap:10px;padding:2px 4px;margin:0 -4px;border-radius:5px;font-size:12.5px}
.plan b{font-family:var(--mono);font-weight:500}
.plan.base b{font-weight:700}
.plan.moved{animation:moved 2.4s ease-out}
@keyframes moved{0%,35%{box-shadow:inset 0 0 0 1.5px var(--text);background:var(--surface)}100%{box-shadow:inset 0 0 0 1.5px transparent;background:transparent}}
.cmp-row{margin-top:8px;display:flex;gap:6px}
.mv-panel h4{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 0 5px}
.details{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;margin:0;font-size:12px}
.details dt{color:var(--muted)}.details dd{margin:0;text-align:right}
.sheet-handle,.sheet-more{display:none}
.loc-svg{background:#DAD6C8}

/* --- Compare */
.cmp-page{position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;padding:10px 16px 12px}
.cmp-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex:none}
.cmp-title{font-size:20px;font-weight:700;letter-spacing:-.02em}
.cmp-share{display:flex;gap:6px}
.tablewrap{flex:1;min-height:0;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.cmp-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12.5px}
.cmp-table th,.cmp-table td{text-align:left;padding:3px 10px;border-bottom:1px solid #F0EEE7;font-weight:400;vertical-align:middle;transition:font-size .2s,opacity .2s}
.cmp-table th.rowlabel{width:126px;color:var(--muted)}
.cmp-table thead th{vertical-align:top;padding:6px 10px 5px;border-bottom:2px solid var(--text)}
.cmp-thumb{position:relative;height:66px;background:var(--sand);border-radius:8px;overflow:hidden}
.cmp-thumb img{width:100%;height:100%;object-fit:contain}
.cmp-table .pin{position:absolute;left:6px;top:6px;width:20px;height:20px;border-radius:50%;background:var(--text);color:var(--bg);display:grid;place-items:center;font-weight:700;font-size:11px}
.cmp-table thead .code{display:block;font-weight:600;margin-top:5px;font-size:12.5px}
.cmp-table thead .status-wrap{align-items:flex-start;margin-top:2px}
.cmp-table tr.section td{background:var(--sand);color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:3px 10px}
.cmp-table tr.differs th.rowlabel{color:var(--text);font-weight:600;box-shadow:inset 4px 0 0 var(--lime)}
.cmp-table td.largest{font-weight:700}
.cmp-table .tag{margin-left:6px;font-size:10px;font-weight:600;letter-spacing:.08em;color:var(--lime-ink);text-transform:uppercase}
.cmp-table tbody tr[tabindex]{cursor:pointer}
.cmp-table tbody tr[tabindex]:hover th,.cmp-table tbody tr[tabindex]:hover td{background:#FBFAF6}
.cmp-table tbody.zooming tr:not(.zoom):not(.section){opacity:.32}
.cmp-table tr.zoom th,.cmp-table tr.zoom td{font-size:17px;padding-top:9px;padding-bottom:9px;background:#fff}
.cmp-table tr.zoom .tag{font-size:12px}
.stage button.link{border:0;background:none;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;color:var(--text);font-size:10.5px;letter-spacing:.08em}

/* --- Present: the card's Documents and the files they make */
.present{position:absolute;inset:0;display:grid;grid-template-columns:318px minmax(0,1fr)}
.present-card{background:var(--surface);border-right:1px solid var(--line);padding:0 14px 12px;overflow:auto}
.present-card .card-head{position:static}
.docs h4{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:12px 0 2px}
.docs-step{display:flex;align-items:center;gap:7px;margin:10px 0 6px;font-size:13px;font-weight:600}
.docs-step .n{width:19px;height:19px;flex:none;border-radius:50%;background:var(--text);color:var(--bg);display:grid;place-items:center;font-size:11px}
.docs-where{margin:5px 0 0;font-size:11.5px}
.doc-files{display:flex;flex-wrap:wrap;gap:5px}
.doc-status{min-height:16px;margin-top:6px}
.docs>.muted.small:last-child{margin-top:8px}
.pages{position:relative;overflow:hidden;background:#E3DFD3}
.page{position:absolute;top:24px;bottom:24px;aspect-ratio:1240/1754;background:#fff;box-shadow:0 18px 40px -18px rgba(34,39,35,.5);border-radius:3px;overflow:hidden}
.page img,.page svg{width:100%;height:100%;object-fit:contain;display:block}
.page.back{left:9%;transform:rotate(-2.2deg);opacity:.96}
.page.front{right:9%;z-index:2}
.page.pair.back{left:7%}
.page.pair.front{right:7%}
.page.loc{padding:10%;display:grid;place-items:center;background:#fff}
.page.loc svg{height:auto;border-radius:4px}

/* --- the detour */
.detour{position:absolute;inset:0;background:#fff;display:grid;place-items:center}
.detour svg{width:100%;height:100%}

/* ------------------------------------------------------------------ the phone stage (≤ 600 px wide) */
.stage-phone>.stage{width:100%;height:660px;border-radius:16px;font-size:13.5px}
.stage[data-mode="phone"][data-state="map"]{height:600px}
.stage[data-mode="phone"][data-state="unit"]{height:700px}
.stage[data-mode="phone"][data-state="current"]{height:740px}
.stage[data-mode="phone"][data-state="compare"]{height:600px}
.stage[data-mode="phone"][data-state="present"]{height:700px}
.stage[data-mode="phone"][data-state="detour"]{height:260px}
.stage[data-mode="phone"][data-state="detour"] .screen{bottom:0}
.stage[data-mode="phone"] .app-bar{height:44px;padding:0 14px}
.stage[data-mode="phone"] .screen{bottom:56px}
.tabbar{position:absolute;left:0;right:0;bottom:0;height:56px;background:var(--surface);border-top:1px solid var(--line);z-index:5}
.tabbar .app-nav{height:100%;gap:0;padding:6px}
.tabbar .app-nav button{flex:1;color:var(--muted);font-size:12.5px;min-height:44px;border-radius:10px}
.tabbar .app-nav button.on{background:var(--lime);color:var(--text)}
.stage[data-mode="phone"] button.chip{min-height:40px;padding:4px 12px;font-size:13px}
.stage[data-mode="phone"] .btn{min-height:40px}
.stage[data-mode="phone"] .btn.small{min-height:40px;font-size:12.5px}
.stage[data-mode="phone"] input{min-height:40px;width:112px;font-size:16px}
.stage[data-mode="phone"] .facet .fv>.muted{font-size:11px}
.stage[data-mode="phone"] .find{padding:8px 10px 10px;gap:6px;overflow:auto}
.stage[data-mode="phone"] .ask-band{flex-direction:column;gap:0}
.stage[data-mode="phone"] .ask{font-size:17px}
.stage[data-mode="phone"] .facets{padding:4px 10px 8px}
.stage[data-mode="phone"] .facet{gap:5px;padding:4px 0;align-items:flex-start}
.stage[data-mode="phone"] .facet .ft{width:66px;font-size:12px;padding-top:11px;line-height:1.2}
.stage[data-mode="phone"] .facet .fv{flex:1;gap:5px}
.stage[data-mode="phone"] .facet-h{display:none}
.stage[data-mode="phone"] .facet-count{flex-wrap:wrap;gap:4px 10px}
.stage[data-mode="phone"] .hist{margin-left:0}
.stage[data-mode="phone"] .facet-sort{margin-left:0}
.stage[data-mode="phone"] .results{flex:none;min-height:200px}
.stage[data-mode="phone"] .urow{flex-wrap:wrap;align-items:flex-start;gap:6px 10px}
.stage[data-mode="phone"] .urow .dot{margin-top:5px}
.stage[data-mode="phone"] .urow .main{flex:1 1 calc(100% - 30px)}
.stage[data-mode="phone"] .urow .l1{white-space:normal}
.stage[data-mode="phone"] .row-price{padding-left:19px}
.stage[data-mode="phone"] .row-actions{margin-left:auto}
.stage[data-mode="phone"] .mv-top{padding:6px 12px 0}
.stage[data-mode="phone"] .mv-dev{display:none}
.stage[data-mode="phone"] .mv-tools{padding:5px 10px 6px;gap:5px 10px}
.stage[data-mode="phone"] .btn.seg{min-height:36px;padding:2px 10px}
.stage[data-mode="phone"] .tool .tl{font-size:9.5px}
.stage[data-mode="phone"] .tool.count{margin-left:0;flex-basis:100%;font-size:11.5px}
.stage[data-mode="phone"] .legend{right:8px;bottom:8px;padding:3px 10px;max-width:calc(100% - 16px)}
.stage[data-mode="phone"] .legend .lt{min-height:36px;margin:0;cursor:pointer}
.stage[data-mode="phone"] .legend .lt::after{content:"▴";margin-left:auto;padding-left:6px}
.stage[data-mode="phone"] .legend.open .lt::after{content:"▾"}
.stage[data-mode="phone"] .legend .lsum{display:inline-flex;align-items:center;gap:4px;text-transform:none;letter-spacing:0;color:var(--text)}
.stage[data-mode="phone"] .legend.open .lsum,.stage[data-mode="phone"] .legend:not(.open) .li,.stage[data-mode="phone"] .legend:not(.open) .hint,.stage[data-mode="phone"] .legend:not(.open) .asof{display:none}
.stage[data-mode="phone"] .legend button.li{min-height:36px}
.stage[data-mode="phone"] .map-hint{bottom:auto;top:8px}
.stage[data-mode="phone"] .mv-panel{position:absolute;left:0;right:0;bottom:0;width:auto;height:66%;border-left:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:0 -10px 30px rgba(34,39,35,.18);padding:0 12px 14px;display:flex;flex-direction:column;z-index:4;transition:height .3s}
.stage[data-mode="phone"] .mv-panel.full{height:calc(100% - 40px)}
.stage[data-mode="phone"] .mv-panel>*{flex:none}
.stage[data-mode="phone"] .mv-panel>.sheet-handle{display:flex;justify-content:center;align-items:center;width:100%;min-height:22px;border:0;background:none;cursor:pointer;order:0}
.sheet-handle i{width:40px;height:5px;border-radius:999px;background:var(--line-2);display:block}
.stage[data-mode="phone"] .mv-panel>.card-head{order:1;flex-wrap:wrap;row-gap:2px;padding-top:2px}
.stage[data-mode="phone"] .mv-panel .card-head .status-wrap{flex:1 0 100%;flex-direction:row;align-items:center;gap:8px;padding-left:44px}
.stage[data-mode="phone"] .mv-panel>.place{order:2}
.stage[data-mode="phone"] .mv-panel>.stats{order:4}
.stage[data-mode="phone"] .mv-panel>.price-box{order:5}
.stage[data-mode="phone"] .mv-panel>.cmp-row{order:6}
.stage[data-mode="phone"] .mv-panel>.sheet-more{order:7;display:flex;margin-top:8px;width:100%}
.stage[data-mode="phone"] .mv-panel>.card-hero{order:8;height:220px}
.stage[data-mode="phone"] .mv-panel>.tabs{order:9}
.stage[data-mode="phone"] .mv-panel>h4,.stage[data-mode="phone"] .mv-panel>.details{order:10}
.stage[data-mode="phone"] .mv-panel.peek>.card-hero,.stage[data-mode="phone"] .mv-panel.peek>.tabs,.stage[data-mode="phone"] .mv-panel.peek>h4,.stage[data-mode="phone"] .mv-panel.peek>.details{display:none}
.stage[data-mode="phone"] .mv-panel.full>.sheet-more{display:none}
.stage[data-mode="phone"] .card-head .close{min-width:40px;min-height:40px}
.stage[data-mode="phone"] .stage-tab{min-height:40px}
.stage[data-mode="phone"] .tab{min-height:40px}
.stage[data-mode="phone"] .proj-strip{gap:12px;padding:6px 12px;flex-wrap:wrap}
.stage[data-mode="phone"] .ps-cl{margin-left:0;flex-basis:100%;flex-direction:row;gap:12px;text-align:left}
.stage[data-mode="phone"] .cmp-page{padding:8px 8px 10px;overflow:auto}
.stage[data-mode="phone"] .cmp-top{flex-direction:column;align-items:flex-start}
.stage[data-mode="phone"] .cmp-table th.rowlabel{width:78px;font-size:11.5px}
.stage[data-mode="phone"] .cmp-table th,.stage[data-mode="phone"] .cmp-table td{padding-left:5px;padding-right:5px;font-size:12px;overflow-wrap:anywhere}
.stage[data-mode="phone"] .cmp-table .tag{display:block;margin-left:0}
.stage[data-mode="phone"] .cmp-table thead .code{font-size:11px}
.stage[data-mode="phone"] .cmp-thumb{height:70px}
.stage[data-mode="phone"] .present{display:flex;flex-direction:column;overflow:auto}
.stage[data-mode="phone"] .present-card{border-right:0;flex:none;overflow:visible}
.stage[data-mode="phone"] .pages{flex:none;height:320px}
.stage[data-mode="phone"] .page{top:18px;bottom:18px}
.proj-strip~.mv-body .card-hero{height:116px}
.mv-body:has(.three:not([hidden])) .map-hint{display:none}
