/* Office app layout */
#app{display:flex;flex-direction:column;min-height:100%}
.topbar{position:sticky;top:0;z-index:30;background:var(--bar)}
.topbar .inner{display:flex;align-items:center;gap:22px;height:76px;padding:0 24px}
.topbar .brandline{margin:0;color:inherit;text-decoration:none}
.topbar .bt{min-width:0;max-width:230px}
.topbar .bt b{font-size:19.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .logo{width:44px;height:44px;border-radius:11px}
.topbar .logo svg{width:27px;height:27px}
.topbar .bt span{font-size:14.5px}
.tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;align-self:stretch}
.tabs::-webkit-scrollbar{display:none}
.tabs a{--c:var(--accent);display:flex;align-items:center;gap:7px;padding:0 12px;color:var(--ink-2);text-decoration:none;font-weight:500;font-size:17px;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs a:hover{color:var(--ink);text-decoration:none}
.tabs a .ic{color:var(--c);width:17px;height:17px}
.tabs a .short{display:none}
.tabs a.on{color:var(--on-strong);border-bottom-color:var(--c);font-weight:600;background:linear-gradient(to top, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%)}
.topbar .clock{font-size:15.5px;color:var(--ink-2);white-space:nowrap;text-align:right;line-height:1.25;font-variant-numeric:tabular-nums}
.topbar .clock b{display:block;color:var(--ink);font-weight:600;font-size:18.5px}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block}
.live-dot.off{background:var(--red)}
.me{position:relative}
.me>button{display:flex;align-items:center;gap:8px;height:42px;padding:0 8px 0 4px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);cursor:pointer;color:var(--ink)}
.me .av{width:34px;height:34px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-weight:600;font-size:15.5px}
.menu{position:absolute;right:0;top:50px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:250px;padding:6px;z-index:40}
.menu button,.menu a{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 11px;border-radius:6px;color:var(--ink);font-weight:500;cursor:pointer;text-decoration:none;font-size:15.5px}
.menu button:hover,.menu a:hover{background:var(--surface-3);text-decoration:none}
.menu .who{padding:9px 11px 11px;color:var(--ink-3);font-size:14.5px;border-bottom:1px solid var(--line);margin-bottom:4px}

main#view{flex:1;padding:24px 28px 60px;width:100%;max-width:1600px;margin:0 auto}
.pagehead{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap;min-height:36px}
.pagehead h1{display:flex;align-items:center;gap:10px}
.pagehead h1::before{content:"";width:4px;height:22px;border-radius:2px;background:var(--sec)}
.pagehead .sub{color:var(--ink-3);font-size:15px}
.pagehead .spacer{flex:1}
.subtabs{display:flex;gap:2px;margin-bottom:18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.subtabs button{height:40px;padding:0 15px;font-size:16.5px;border:0;background:transparent;color:var(--ink-2);font-weight:500;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.subtabs button:hover{color:var(--ink)}
.subtabs button.on{color:var(--on-strong);border-bottom-color:var(--sec);font-weight:600}
.search{position:relative}
.search .in{padding-left:32px;width:280px}
.search::before{content:"";position:absolute;left:12px;top:11px;width:9px;height:9px;border:1.5px solid var(--ink-3);border-radius:50%}
.search::after{content:"";position:absolute;left:21px;top:21px;width:5px;height:1.5px;background:var(--ink-3);transform:rotate(45deg)}
.filters{padding:12px 14px;margin-bottom:14px}
.filters .row{align-items:flex-end}
.back{color:var(--ink-3);font-size:15px;display:inline-flex;align-items:center;gap:4px}

/* ---------- board ---------- */
.board{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}
.stats{display:flex;gap:8px;flex-wrap:wrap}
.stat{--c:var(--blue);background:var(--surface);border:1px solid var(--line-soft);border-top:3px solid var(--c);border-radius:8px;padding:6px 14px;min-width:120px}
.stat b{color:var(--c)}
.stat b{display:block;font-size:20px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.stat span{font-size:13px;color:var(--ink-3)}
.lane{margin-bottom:20px}
.lane>header{display:flex;align-items:center;gap:8px;margin:0 0 8px 2px}
.lane>header h3{display:flex;align-items:center;gap:8px}
.lane>header h3 i{width:9px;height:9px;border-radius:50%;background:var(--c);box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent)}
.lane .tablewrap{border-left:3px solid var(--c)}
.lane>header .count{color:var(--ink-3);font-size:14.5px;font-weight:500;background:var(--surface-2);border-radius:5px;padding:0 7px;line-height:20px}
td.route{min-width:240px}
td.route .a{font-weight:500}
td.route .b{color:var(--ink-3);font-size:13.5px}
.arrow{color:var(--ink-3);margin:0 5px}
td.late{color:var(--red);font-weight:600}
select.in.assign{height:32px;width:170px;min-width:170px}
.side .card{padding:14px}
.side .card h3{font-size:15.5px}
.mlist{display:flex;flex-direction:column;gap:2px;max-height:60vh;overflow:auto}
.mrow{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:6px;cursor:pointer;border:1px solid transparent}
.mrow:hover{background:var(--surface-2)}
.mrow.on{border-color:var(--accent);background:var(--accent-soft)}
.mrow .no{font-family:var(--f-mono);color:var(--ink-3);font-size:13px;width:28px}
.mrow .nm{flex:1;font-weight:500}
.mrow .ct{min-width:26px;height:22px;padding:0 7px;border-radius:5px;display:grid;place-items:center;font-weight:600;font-size:13px;background:var(--surface-3)}
.mrow .ct.free{background:rgba(52,211,153,.13);color:#6EE7B7}
.checklist{padding-left:20px;margin:8px 0 0}
.checklist li{margin:7px 0}
.checklist li.done{color:var(--ink-3);text-decoration:line-through}
.checklist li.done a{color:var(--ink-3)}

/* ---------- order form ---------- */
.of{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}
.of .stops{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stop{border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface-2)}
.stop h3{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.stop h3 .dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#0B1016}
.section-label{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}
.pricebox{position:sticky;top:0;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:16px}
.pricebox .lines{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:15px}
.pricebox .lines div{display:flex;justify-content:space-between;gap:10px}
.pricebox .total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--line);padding-top:10px}
.pricebox .total b{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}
.clientcard{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-size:15px}
.ta{position:relative}
.ta-list{position:absolute;left:0;right:0;top:100%;margin-top:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);z-index:60;max-height:320px;overflow:auto;padding:4px}
.ta-list div{padding:7px 10px;border-radius:6px;cursor:pointer}
.ta-list div small{display:block;color:var(--ink-3)}
.ta-list div.on,.ta-list div:hover{background:var(--surface-3)}
.timeline{display:flex;gap:6px;flex-wrap:wrap;font-size:13.5px}
.timeline span{padding:3px 8px;border-radius:5px;background:var(--surface-3);color:var(--ink-2)}
.timeline span b{color:var(--ink);font-weight:600}
.history{font-size:14.5px;color:var(--ink-2);max-height:180px;overflow:auto}
.history div{padding:4px 0;border-bottom:1px solid var(--line-soft)}
.sig{background:#fff;border-radius:6px;max-width:260px;display:block}
details>summary{cursor:pointer;color:var(--ink-2);font-weight:500;font-size:15px}
details>summary:hover{color:var(--ink)}

/* ---------- detail pages ---------- */
.detail{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:15.5px;margin:0}
.kv dt{color:var(--ink-3)}
.kv dd{margin:0;text-align:right}
.rategrid td{padding:5px 6px}
.rategrid .in{width:88px;height:32px;text-align:right}
.plan-choice{display:flex;flex-direction:column;gap:8px}
.plan-choice label{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.plan-choice label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.plan-choice input{margin-top:3px;accent-color:var(--accent)}

/* ---------- setup ---------- */
.setup{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.setup nav{display:flex;flex-direction:column;gap:1px;position:sticky;top:100px}
.setup nav button{text-align:left;border:0;background:transparent;padding:9px 12px;border-radius:6px;color:var(--ink-2);font-weight:500;cursor:pointer;font-size:16.5px}
.setup nav button:hover{background:var(--surface);color:var(--ink)}
.setup nav button.on{background:var(--surface-2);color:var(--on-strong);font-weight:600;box-shadow:inset 2px 0 0 var(--sec)}
.setup nav .grp{font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:14px 12px 4px}
.setup .pane>.card{margin-bottom:16px}
.edit-table td{padding:5px 6px} .edit-table .in{height:32px}
.edit-table td.x{width:36px}
.swatch{width:32px;height:32px;border-radius:6px;border:1px solid var(--line);padding:0;background:none;cursor:pointer}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tile{--c:var(--accent);display:block;background:var(--surface);border:1px solid var(--line-soft);border-left:3px solid var(--c);border-radius:10px;padding:14px 16px;color:var(--ink);cursor:pointer;text-align:left}
.tile:hover{border-color:var(--line-strong);background:var(--surface-2);text-decoration:none}
.tile b{display:block;font-weight:600;margin-bottom:3px}
.tile span{color:var(--ink-3);font-size:14.5px}
.starter{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.starter label{display:block;border:1px solid var(--line);border-radius:10px;padding:14px;cursor:pointer}
.starter label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.starter b{display:block;margin-bottom:4px}
.starter span{color:var(--ink-3);font-size:14.5px}

@media (max-width:1400px){ .board{grid-template-columns:1fr} .board .side{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px} }
@media (max-width:1180px){ .of{grid-template-columns:1fr} .detail{grid-template-columns:1fr} .pricebox{position:static} }
@media (max-width:1500px){ .topbar .clock{display:none} }
@media (max-width:1320px){ .topbar .bt{display:none} .tabs a{padding:0 10px;font-size:16px} }
@media (max-width:820px){
  main#view{padding:16px}
  .topbar .inner{height:auto;flex-wrap:wrap;padding:8px 14px;gap:8px}
  .tabs{order:3;flex-basis:100%;height:40px}
  .of .stops{grid-template-columns:1fr} .g4,.g6{grid-template-columns:repeat(2,minmax(0,1fr))} .g3{grid-template-columns:1fr 1fr}
  .setup{grid-template-columns:1fr;gap:14px} .setup nav{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)} .setup nav .grp{display:none} .setup nav button{white-space:nowrap;flex:none;border-radius:0} .setup nav button.on{box-shadow:inset 0 -2px 0 var(--sec);background:transparent}
  .search,.search .in{width:100%} .starter{grid-template-columns:1fr} .pagehead h1{font-size:20px}
}

/* ---------- printing ---------- */
#print{display:none}
@media print{
  body{background:#fff}
  #app,#toasts,.scrim{display:none!important}
  #print{display:block;color:#000;font-family:Arial,Helvetica,sans-serif;font-size:13px}
}
.pagehead:has(>.back:only-child){margin-bottom:4px;min-height:0}

.stripe{height:3px;background:linear-gradient(90deg,#3B82F6 0 14.28%,#EF4444 14.28% 28.56%,#22C55E 28.56% 42.84%,#EAB308 42.84% 57.12%,#A855F7 57.12% 71.4%,#F97316 71.4% 85.68%,#64748B 85.68%)}
.card-head h3{display:flex;align-items:center;gap:8px}
.setup .card-head h3::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--sec)}
.stop{border-top:3px solid var(--c, var(--line))}
.pricebox{border-top:3px solid var(--accent)}
/* keep all nine sections visible on laptop screens */
@media (max-width:1600px){ .tabs a{padding:0 9px;font-size:16px;gap:6px} .topbar .inner{gap:16px} .topbar .bt{max-width:170px} }
@media (max-width:1400px){ .tabs a{padding:0 7px;font-size:15.5px} .tabs a .full:has(+ .short){display:none} .tabs a .short{display:inline} }
@media (max-width:1180px){ .tabs a .ic{display:none} }
#chatbtn{position:relative;padding:0 10px} #chatbtn .badge{position:absolute;top:-4px;right:-4px}

/* ---------- today strip, map, chat, stops ---------- */
.today{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:18px}
.today .card{padding:12px 14px}
.today .lbl{font-size:13px;color:var(--ink-3);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.today .val{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:2px}
.today .sub{font-size:13.5px;color:var(--ink-3)}
.bars{display:flex;align-items:flex-end;gap:3px;height:38px;margin-top:6px}
.bars span{flex:1;background:var(--accent);border-radius:2px 2px 0 0;min-height:2px;position:relative}
.bars span.lw{background:var(--line-strong)}
.bars .pair{flex:1;display:flex;align-items:flex-end;gap:1px;height:100%}
.bars .pair span{flex:1}
#map{height:520px;border-radius:10px;border:1px solid var(--line-soft)}
.maplegend{display:flex;gap:14px;flex-wrap:wrap;font-size:14.5px;color:var(--ink-2);margin-top:8px}
.maplegend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.mdot{width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--accent-ink);border:2px solid #fff;display:grid;place-items:center;font-weight:800;font-size:13px;box-shadow:0 1px 6px rgba(0,0,0,.35)}
.mdot.stale{background:#94A3B8;color:#fff}
.chatbox{display:flex;flex-direction:column;height:min(60vh,520px)}
.chatlog{flex:1;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px 10px}
.bubble{max-width:78%;padding:8px 11px;border-radius:12px;background:var(--surface-3);align-self:flex-start;white-space:pre-wrap;word-wrap:break-word}
.bubble.mine{align-self:flex-end;background:var(--accent);color:var(--accent-ink)}
.bubble small{display:block;font-size:12px;opacity:.7;margin-top:2px}
.stoprow{display:grid;grid-template-columns:1fr 1fr 110px 36px;gap:8px;align-items:end;margin-top:8px}
.sugg{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.sugg button{border:1px dashed var(--accent);background:var(--accent-soft);color:var(--ink);border-radius:8px;padding:6px 10px;cursor:pointer;font-size:14.5px;text-align:left}
.sugg button b{display:block;font-size:15px}
.sugg button:hover{border-style:solid}
.photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.photos img{width:110px;height:110px;object-fit:cover;border-radius:8px;border:1px solid var(--line);cursor:zoom-in}
.steps-guide{display:flex;flex-direction:column;gap:8px}
.steps-guide .st{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line-soft);border-radius:10px;background:var(--surface)}
.steps-guide .st .n{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);font-weight:700;font-size:14.5px;flex:none}
.steps-guide .st.done .n{background:var(--good);color:#fff}
.steps-guide .st.next{border-color:var(--accent);background:var(--accent-soft)}
.steps-guide .st .t{flex:1}
.steps-guide .st .t b{display:block}
.steps-guide .st .t span{color:var(--ink-3);font-size:14.5px}
.progress{height:6px;background:var(--surface-3);border-radius:3px;overflow:hidden;margin:6px 0 14px}
.progress i{display:block;height:100%;background:var(--accent)}

/* ======================================================================================================
   Premium finish: office layout
   ====================================================================================================== */
/* frosted top bar with a fine gold hairline instead of the striped band */
.topbar{background:var(--bar);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line-soft)}
.stripe{height:1px;background:var(--gold-line);opacity:.9}
.topbar .inner{height:72px}
.topbar .bt b{font-family:var(--f-display);font-weight:700;letter-spacing:-.02em}
/* tabs: soft pills, each keeping its section color on the icon */
.tabs{gap:4px;align-items:center}
.tabs a{height:40px;border-radius:10px;border-bottom:0;margin:0;padding:0 13px;font-size:16px;transition:background .15s,color .15s}
.tabs a:hover{background:var(--hover)}
.tabs a.on{background:linear-gradient(180deg,color-mix(in srgb,var(--c) 16%,transparent),color-mix(in srgb,var(--c) 7%,transparent));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 30%,transparent), inset 0 1px 0 rgba(255,255,255,.06);color:var(--on-strong)}
.tabs a.on .ic{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--c) 70%,transparent))}
.me>button{border-color:var(--line);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));box-shadow:var(--glow)}
.me .av{background:var(--gold);color:var(--accent-ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.menu{border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent),var(--surface-2);box-shadow:var(--shadow);padding:8px}
.menu button,.menu a{border-radius:8px}
.topbar .clock b{font-family:var(--f-display);letter-spacing:-.01em}

/* page titles: display type with a glowing section marker */
main#view{padding:28px 32px 70px}
.pagehead{margin-bottom:22px}
.pagehead h1{font-size:30px;gap:12px}
.pagehead h1::before{width:5px;height:26px;border-radius:3px;background:linear-gradient(180deg,var(--sec),color-mix(in srgb,var(--sec) 45%,transparent));box-shadow:0 0 14px color-mix(in srgb,var(--sec) 55%,transparent)}
.subtabs{border-bottom-color:var(--line-soft);gap:4px}
.subtabs button{border-radius:8px 8px 0 0}
.subtabs button.on{border-bottom-color:var(--accent)}

/* stat tiles: big display numbers, color as a soft glow instead of a hard band */
.stats{gap:10px}
.stat{--c:var(--blue);position:relative;overflow:hidden;border:1px solid var(--line-soft);border-top:1px solid var(--line-soft);border-radius:14px;padding:10px 16px 10px 18px;min-width:132px;
  background:radial-gradient(120px 60px at 0% 0%, color-mix(in srgb,var(--c) 18%,transparent), transparent 70%),linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)),var(--surface);
  box-shadow:var(--glow),var(--shadow-sm)}
.stat::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--c);box-shadow:0 0 10px var(--c)}
.stat b{font-family:var(--f-display);font-size:24px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.stat span{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;font-weight:600}

/* today strip */
.today{gap:12px;margin-bottom:22px}
.today .card{padding:16px 18px}
.today .lbl{font-size:12px;letter-spacing:.09em}
.today .val{font-family:var(--f-display);font-size:30px;font-weight:700;letter-spacing:-.025em;margin-top:4px}
.bars{height:44px;gap:4px}
.bars span{background:var(--gold);border-radius:3px 3px 1px 1px;box-shadow:0 0 10px -2px rgba(230,170,60,.5)}
.bars span.lw{background:rgba(255,255,255,.1);box-shadow:none}
:root[data-theme="light"] .bars span.lw{background:rgba(24,22,16,.12)}

/* lanes */
.lane{margin-bottom:24px}
.lane>header{margin:0 0 10px 4px}
.lane>header h3{font-size:18px}
.lane>header h3 i{width:8px;height:8px;box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 18%,transparent),0 0 12px var(--c)}
.lane .tablewrap{border-left:1px solid var(--line-soft);position:relative}
.lane .tablewrap::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:2px;border-radius:2px;background:var(--c);box-shadow:0 0 10px var(--c);z-index:2}
.lane>header .count{border-radius:999px;padding:0 9px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--line-soft);font-weight:600;color:var(--ink-2)}
.side .card{padding:16px}
.mrow{border-radius:10px;padding:8px 10px}
.mrow.on{border-color:rgba(230,182,76,.5)}
.mrow .ct{border-radius:999px}

/* job form */
.stop{border-radius:14px;border:1px solid var(--line-soft);border-top:1px solid var(--line-soft);
  background:linear-gradient(180deg,color-mix(in srgb,var(--c, transparent) 7%,transparent),transparent 90px),var(--surface-2);box-shadow:var(--glow)}
.stop h3 .dot{box-shadow:0 0 10px color-mix(in srgb,var(--c, #fff) 60%,transparent)}
.pricebox{border-radius:16px;border:1px solid rgba(230,182,76,.28);border-top:1px solid rgba(230,182,76,.45);
  background:radial-gradient(260px 120px at 100% 0%, rgba(230,182,76,.12), transparent 70%),linear-gradient(180deg,rgba(255,255,255,.04),transparent),var(--surface-2);
  box-shadow:var(--glow),0 16px 40px -18px rgba(230,170,60,.35)}
.pricebox .total b{font-family:var(--f-display);font-size:32px;font-weight:700;letter-spacing:-.025em;background:var(--gold);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-theme="light"] .pricebox .total b{color:var(--ink);background:none;-webkit-background-clip:initial;background-clip:initial}
.clientcard{border-radius:12px;border-color:var(--line-soft);background:rgba(255,255,255,.03)}
.ta-list{border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent),var(--surface-2);box-shadow:var(--shadow);padding:6px}
.ta-list div{border-radius:8px}
.ta-list div.on,.ta-list div:hover{background:linear-gradient(90deg,rgba(230,182,76,.12),rgba(255,255,255,.03))}
.timeline span{border-radius:999px;padding:3px 10px}

/* setup */
.setup nav button{border-radius:10px}
.setup nav button.on{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 14%,transparent),transparent);box-shadow:inset 2px 0 0 var(--accent)}
.tile{border-radius:16px;border:1px solid var(--line-soft);border-left:1px solid var(--line-soft);position:relative;overflow:hidden;padding:18px 18px 18px 20px;
  background:radial-gradient(200px 90px at 0% 0%, color-mix(in srgb,var(--c) 14%,transparent), transparent 70%),var(--surface);box-shadow:var(--glow),var(--shadow-sm);
  transition:transform .15s,border-color .15s,box-shadow .15s}
.tile::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:0 3px 3px 0;background:var(--c);box-shadow:0 0 10px var(--c)}
.tile:hover{transform:translateY(-2px);border-color:var(--line-strong);background:radial-gradient(200px 90px at 0% 0%, color-mix(in srgb,var(--c) 20%,transparent), transparent 70%),var(--surface);box-shadow:var(--glow),var(--shadow)}
.tile b{font-family:var(--f-display);font-size:17.5px;letter-spacing:-.01em}
.starter label,.plan-choice label{border-radius:14px}
.steps-guide .st{border-radius:14px;padding:14px 16px;background:var(--surface);box-shadow:var(--glow)}
.steps-guide .st.next{border-color:rgba(230,182,76,.5);background:radial-gradient(260px 80px at 0% 0%, rgba(230,182,76,.12), transparent 70%),var(--surface)}
.steps-guide .st.done .n{background:linear-gradient(180deg,#1FC894,#0FA676);box-shadow:0 0 10px -2px rgba(18,184,134,.7)}
.progress{height:8px;border-radius:999px;background:rgba(255,255,255,.06)}
.progress i{background:var(--gold);border-radius:999px;box-shadow:0 0 12px rgba(230,170,60,.6)}
#map{border-radius:16px;box-shadow:var(--shadow-sm)}
.bubble{border-radius:16px}
.bubble.mine{background:var(--gold)}
.sugg button{border-radius:12px;border-style:solid;border-color:rgba(230,182,76,.4)}

/* light theme: keep things crisp rather than glowing */
:root[data-theme="light"] .stat,:root[data-theme="light"] .tile{background:var(--surface)}
:root[data-theme="light"] .stop{background:var(--surface-2)}
:root[data-theme="light"] .pricebox{background:radial-gradient(260px 120px at 100% 0%, rgba(201,149,31,.10), transparent 70%),#fff}

/* ======================================================================================================
   Top bar that fits: the full company name (up to two lines), and tabs that shrink in steps
   (full labels → short labels → icons with tooltips) instead of being cut off.
   ====================================================================================================== */
.topbar .inner{gap:14px;padding:0 20px;height:68px}
.topbar .brandline{gap:10px;flex:none}
.topbar .logo{width:40px;height:40px;border-radius:11px}
.topbar .logo svg{width:24px;height:24px}
.topbar .bt{max-width:210px}
.topbar .bt b{font-size:16px;line-height:1.2;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:clip}
.topbar .bt span{font-size:12.5px;color:var(--ink-3);letter-spacing:.02em}
.tabs{gap:2px}
.tabs a{height:36px;padding:0 11px;font-size:15px;gap:7px;border-radius:9px}
.tabs a .ic{width:16px;height:16px}
.topbar .btn.primary{height:36px;padding:0 14px}
.topbar .clock{font-size:13.5px}
.topbar .clock b{font-size:16.5px}
.me>button{height:38px}
.me .av{width:30px;height:30px;font-size:14.5px}

/* undo the older, cruder steps */
@media (max-width:1600px){ .tabs a{padding:0 10px;font-size:15px;gap:6px} .topbar .inner{gap:12px} .topbar .bt{max-width:190px} }
@media (max-width:1400px){ .tabs a .full:has(+ .short){display:inline} .tabs a .short{display:none} }
@media (max-width:1320px){ .topbar .bt{display:block} }
@media (max-width:1180px){ .tabs a .ic{display:inline-block} }

/* the new steps */
@media (max-width:1560px){ .topbar .clock{display:none} }
@media (max-width:1440px){ .tabs a .full:has(+ .short){display:none} .tabs a .short{display:inline} .tabs a{padding:0 9px} }
@media (max-width:1300px){ .topbar .kbd,.topbar .btn.primary kbd{display:none} .topbar .bt{max-width:150px} .topbar .bt b{font-size:15px} }
@media (max-width:1180px){
  .tabs a .full,.tabs a .short{display:none!important} .tabs a{padding:0;width:40px;justify-content:center}
  .tabs a .ic{width:18px;height:18px}
  .topbar .btn.primary .lbl{display:none} .topbar .btn.primary{width:38px;padding:0}
}
@media (max-width:940px){ .topbar .bt{display:none} }
@media (max-width:820px){
  .topbar .inner{height:auto;flex-wrap:wrap;padding:10px 14px;gap:10px}
  .topbar .bt{display:block;max-width:none;flex:1} .topbar .brandline{flex:1;min-width:0}
  .tabs{order:3;flex-basis:100%;height:44px;overflow-x:auto;justify-content:flex-start}
  .tabs a{width:auto;padding:0 12px}
  .tabs a .short{display:inline!important} .tabs a .full:not(:has(+ .short)){display:inline!important}
}

/* pages breathe less on smaller screens */
@media (max-width:1180px){ main#view{padding:22px 20px 60px} .pagehead h1{font-size:26px} .board .stats{width:100%} }
@media (max-width:820px){
  main#view{padding:16px 14px 50px} .pagehead{gap:10px} .pagehead h1{font-size:23px}
  .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%} .stat{min-width:0}
  .today{grid-template-columns:1fr 1fr} .today .val{font-size:24px}
  .dialog>.body{padding:16px} .dialog>header,.dialog>footer{padding-left:16px;padding-right:16px}
  #map{height:420px}
}
@media (max-width:520px){ .today{grid-template-columns:1fr} .lane .tablewrap{margin:0 -4px} table.t td,table.t th{padding:9px 10px} }
table.t td.num{white-space:nowrap}
table.t td:has(> select.assign){white-space:nowrap}

/* the Dispatch tiles open their group of jobs */
button.stat{font:inherit;color:inherit;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
button.stat:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--c) 45%,transparent);box-shadow:var(--glow),0 10px 26px -12px color-mix(in srgb,var(--c) 60%,transparent)}
button.stat:active{transform:translateY(0)}
.catview>header h2{display:flex;align-items:center;gap:10px}
.catview .catdot{width:10px;height:10px;border-radius:50%;background:var(--c);box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 20%,transparent),0 0 12px var(--c)}
.catview>header .count{font-size:14.5px;font-weight:600;color:var(--ink-2);border-radius:999px;padding:0 9px;line-height:22px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--line-soft)}
.catview{border-top:1px solid color-mix(in srgb,var(--c) 40%,transparent)}

/* ======================================================================================================
   Luxury layer: office
   ====================================================================================================== */
/* a floating top bar */
.topbar{top:12px;margin:12px 16px 0;border:1px solid var(--line);border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),rgba(10,13,18,.72);
  box-shadow:var(--glow),0 18px 50px -20px rgba(0,0,0,.7)}
:root[data-theme="light"] .topbar{background:rgba(255,255,255,.82);box-shadow:var(--glow),0 14px 40px -22px rgba(24,22,16,.25)}
.topbar .inner{height:64px;padding:0 12px 0 14px}
.stripe{display:none}
.topbar .bt b{font-family:var(--f-serif);font-weight:400;font-size:20px;letter-spacing:0;line-height:1.05}
.topbar .bt span{text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:600;color:var(--accent)}
@media (max-width:1300px){ .topbar .bt b{font-size:18.5px} }
@media (max-width:820px){ .topbar{margin:8px 8px 0;top:8px;border-radius:16px} }

/* pages glide in when you change section */
main#view{animation:rise .4s var(--ease)}

/* page titles in the serif */
.pagehead h1{font-family:var(--f-serif);font-weight:400;font-size:44px;letter-spacing:-.01em;line-height:1}
.pagehead h1::before{width:6px;height:6px;border-radius:50%;align-self:center;margin-top:6px;background:var(--sec);box-shadow:0 0 0 5px color-mix(in srgb,var(--sec) 16%,transparent),0 0 16px var(--sec)}
@media (max-width:1180px){ .pagehead h1{font-size:38px} }
@media (max-width:820px){ .pagehead h1{font-size:34px} }
.card-head h3,.lane>header h3,.side .card h3,.setup .pane .card>h3{font-family:var(--f-serif);font-weight:400;letter-spacing:0}
.card-head h3{font-size:23px}
.lane>header h3{font-size:24px}
.side .card h3{font-size:21px}
.setup .card-head h3::before{display:none}

/* stat tiles: big serif numbers, a small colored dot by the label */
.stat{padding:12px 18px 12px 18px;min-width:150px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012)),var(--surface)}
.stat::before{display:none}
.stat b{font-family:var(--f-serif);font-weight:400;font-size:36px;line-height:1.05;letter-spacing:-.01em}
.stat span{display:flex;align-items:center;gap:7px;margin-top:3px;font-size:11.5px;letter-spacing:.12em}
.stat span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c);box-shadow:0 0 8px var(--c)}
button.stat:hover{border-color:color-mix(in srgb,var(--c) 55%,transparent)}
@media (max-width:820px){ .stat b{font-size:30px} }

/* today strip */
.today .val{font-family:var(--f-serif);font-weight:400;font-size:46px;line-height:1;letter-spacing:-.01em;margin-top:8px}
.today .lbl{letter-spacing:.14em;font-size:11.5px}
.today .card{padding:18px 20px}
@media (max-width:820px){ .today .val{font-size:38px} }

/* calmer tables: no boxed header, generous rows, hover as a soft band */
table.t th{background:transparent;border-bottom:1px solid var(--line);font-size:11.5px;letter-spacing:.14em;padding:13px 16px}
.lane .tablewrap table.t th,.catview table.t th{position:sticky;top:0;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(10px)}
table.t td{padding:13px 16px}
td.route .a{font-weight:550}
.mono{letter-spacing:.02em}
table.t td.mono{color:var(--ink-3)}
.lane .tablewrap::before{top:18px;bottom:18px}

/* the job window's price in the serif */
.pricebox .total b{font-family:var(--f-serif);font-weight:400;font-size:46px;letter-spacing:-.01em;line-height:1}
.pricebox h3{font-family:var(--f-serif);font-weight:400;font-size:24px}

/* messenger list */
.mrow{gap:10px}
.mrow .nm .no{width:auto;font-size:12px;color:var(--ink-3);font-family:var(--f-mono)}

/* setup tiles and nav */
.tile b{font-family:var(--f-serif);font-weight:400;font-size:22px;letter-spacing:0}
.setup nav .grp{letter-spacing:.16em;font-size:10.5px;color:var(--accent);opacity:.85}
table.t td .who{min-width:200px}
table.t td .who b{display:block;line-height:1.25}
@media (max-width:820px){ .topbar .inner{height:auto;padding:10px 12px 8px} main#view{padding-top:18px} }

/* No serif (office): same sizes rhythm, in the display face */
.topbar .bt b{font-weight:700;font-size:16.5px;letter-spacing:-.015em;line-height:1.2}
@media (max-width:1300px){ .topbar .bt b{font-size:15.5px} }
.pagehead h1{font-weight:750;font-size:34px;letter-spacing:-.03em}
@media (max-width:1180px){ .pagehead h1{font-size:30px} }
@media (max-width:820px){ .pagehead h1{font-size:26px} }
.card-head h3,.lane>header h3,.side .card h3,.setup .pane .card>h3{font-weight:700;letter-spacing:-.02em}
.card-head h3{font-size:19.5px}
.lane>header h3{font-size:19.5px}
.side .card h3{font-size:17.5px}
.stat b{font-weight:750;font-size:28px;letter-spacing:-.03em}
@media (max-width:820px){ .stat b{font-size:24px} }
.today .val{font-weight:750;font-size:36px;letter-spacing:-.035em}
@media (max-width:820px){ .today .val{font-size:30px} }
.pricebox .total b{font-weight:750;font-size:36px;letter-spacing:-.03em}
.pricebox h3{font-weight:700;font-size:19.5px}
.tile b{font-weight:700;font-size:18.5px;letter-spacing:-.015em}

/* ---------- Pro companies: a top bar with a gold edge and a slow gold light along its top ---------- */
.is-pro .topbar{border-color:rgba(230,182,76,.38);
  box-shadow:var(--glow),0 0 0 1px rgba(230,182,76,.06),0 18px 50px -20px rgba(0,0,0,.7),0 10px 40px -18px rgba(230,170,60,.35)}
.is-pro .topbar::before{content:"";position:absolute;left:8%;right:8%;top:-1px;height:1px;border-radius:1px;
  background:linear-gradient(90deg,transparent,#F7D77E 30%,#FFF1C4 50%,#F7D77E 70%,transparent);opacity:.9}
.is-pro .topbar .logo{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 0 0 2px rgba(247,215,126,.35),0 6px 22px -4px rgba(230,170,60,.75)}
.topbar .bt span .pro{margin-left:6px;height:17px;font-size:9.5px;padding:0 6px 0 5px}
.topbar .bt span .pro .gem{width:10px;height:10px}
/* a tiny gold dot marks Pro-only buttons */
.pro-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:2px;background:var(--gold);box-shadow:0 0 8px rgba(230,170,60,.9);vertical-align:2px}
.seg button.on .pro-dot{background:#1C1504;box-shadow:none}
.lane>header h3 .pro{margin-left:4px}
/* the Pro banner in Setup ▸ Company ▸ Features */
.pro-banner{display:flex;align-items:center;gap:14px;margin-top:8px;padding:16px 18px;border-radius:14px;position:relative;overflow:hidden;
  border:1px solid rgba(230,182,76,.4);
  background:radial-gradient(320px 120px at 0% 0%,rgba(230,182,76,.22),transparent 70%),linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.01)),var(--surface-2);
  box-shadow:var(--glow),0 14px 36px -18px rgba(230,170,60,.45)}
.pro-banner b{display:block;font-family:var(--f-display);font-size:18.5px;font-weight:750;letter-spacing:-.015em;
  background:var(--gold);-webkit-background-clip:text;background-clip:text;color:transparent}
.pro-banner span{color:var(--ink-2);font-size:15px}
.pro-banner>div{flex:1}
.pro-banner .gem-lg{width:34px;height:34px;flex:none;padding:7px;border-radius:10px;color:#1C1504;background:var(--gold);stroke-width:2;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 18px -6px rgba(230,170,60,.7)}
:root[data-theme="light"] .pro-banner b{color:#8A6212;background:none;-webkit-background-clip:initial;background-clip:initial}
.brandline span.pro,.topbar .bt span.pro{display:inline-flex;width:auto;color:#1C1504;letter-spacing:.12em;font-size:9.5px}
.topbar .bt>span{display:flex;align-items:center;gap:0}
.pro-banner span.pro{color:#1C1504;font-size:10.5px;flex:none}

/* Poppins sizing: it runs wider than Inter, so headings and numbers are set a touch smaller and less tight */
.topbar .bt b{font-weight:600;font-size:16px;letter-spacing:-.005em}
.tabs a{font-weight:500;font-size:15px}
.tabs a.on{font-weight:600}
.pagehead h1{font-weight:700;font-size:32px;letter-spacing:-.02em}
@media (max-width:1180px){ .pagehead h1{font-size:28px} }
@media (max-width:820px){ .pagehead h1{font-size:25px} }
.card-head h3,.lane>header h3,.side .card h3,.setup .pane .card>h3{font-weight:600;letter-spacing:-.01em}
.stat b{font-weight:700;font-size:26px;letter-spacing:-.02em}
.stat span{font-weight:500;letter-spacing:.08em}
.today .val{font-weight:700;font-size:34px;letter-spacing:-.025em}
.today .lbl{font-weight:500;letter-spacing:.1em}
.pricebox .total b{font-weight:700;font-size:34px;letter-spacing:-.02em}
td.route .a{font-weight:500}
.tile b{font-weight:600}
.setup nav button{font-weight:500;font-size:16px}
.setup nav button.on{font-weight:600}
.pro-banner b{font-weight:700}
@media (max-width:820px){ .topbar .bt b{-webkit-line-clamp:3;font-size:15.5px;line-height:1.2} }

/* ======================================================================================================
   PRO FEEL: the whole office gets richer on the Pro plan, rather than just a badge.
   Warm obsidian surfaces, gold-rimmed panels, a slow gold aurora, gold figures and gold highlights.
   (Dark theme; the light theme keeps its clean ivory look.)
   ====================================================================================================== */
:root.is-pro:not([data-theme="light"]){
  --bg:#070604; --surface:#100D09; --surface-2:#16120D; --surface-3:#1F1A13; --raised:#18140E;
  --line:rgba(255,222,160,.10); --line-soft:rgba(255,222,160,.065); --line-strong:rgba(255,222,160,.2);
  --ink:#FBF7F0; --ink-2:#D3C9B9;
  --ink-3:#A29684;
  --hover:rgba(255,214,140,.045);
  --bar:rgba(12,10,7,.72);
  --rim:linear-gradient(155deg,rgba(247,215,126,.55),rgba(247,215,126,.10) 30%,rgba(247,215,126,.02) 55%,rgba(247,215,126,.22));
}
/* the room: warm black with a slow gold aurora */
.is-pro:not([data-theme="light"]) body{background:
  radial-gradient(900px 500px at 10% -10%, rgba(230,170,60,.14), transparent 60%),
  radial-gradient(800px 480px at 105% 0%, rgba(200,120,40,.08), transparent 60%),
  var(--bg) fixed}
.is-pro:not([data-theme="light"]) #app::before{content:"";position:fixed;inset:-20%;pointer-events:none;z-index:-1;
  background:radial-gradient(40% 30% at 30% 30%, rgba(236,180,80,.09), transparent 70%),radial-gradient(35% 28% at 70% 60%, rgba(247,215,126,.06), transparent 70%);
  animation:aurora 38s ease-in-out infinite alternate;will-change:transform}
@keyframes aurora{0%{transform:translate3d(-6%,-4%,0) rotate(0deg)}50%{transform:translate3d(5%,3%,0) rotate(8deg)}100%{transform:translate3d(-3%,6%,0) rotate(-6deg)}}
.is-pro #app{position:relative;isolation:isolate}

/* gold-rimmed panels: a fine gold edge that catches the light at the top-left */
.is-pro:not([data-theme="light"]) :is(.card,.tablewrap,.stat,.dialog,.pricebox,.tile,.steps-guide .st,.menu,.ta-list){
  border:1px solid transparent !important;
  background:linear-gradient(180deg,rgba(255,236,200,.04),rgba(255,236,200,.008) 45%) padding-box,
             linear-gradient(var(--surface),var(--surface)) padding-box,
             var(--rim) border-box !important}
.is-pro:not([data-theme="light"]) .stat{background:
  radial-gradient(120px 60px at 0% 0%, color-mix(in srgb,var(--c) 16%,transparent), transparent 70%) padding-box,
  linear-gradient(180deg,rgba(255,236,200,.05),rgba(255,236,200,.01)) padding-box,
  linear-gradient(var(--surface),var(--surface)) padding-box, var(--rim) border-box !important}
.is-pro:not([data-theme="light"]) .pricebox{background:
  radial-gradient(260px 120px at 100% 0%, rgba(236,180,80,.16), transparent 70%) padding-box,
  linear-gradient(var(--surface-2),var(--surface-2)) padding-box, var(--rim) border-box !important}
.is-pro:not([data-theme="light"]) .lane .tablewrap{border-left:1px solid transparent !important}
.is-pro:not([data-theme="light"]) :is(.card,.tablewrap,.stat,.tile){box-shadow:inset 0 1px 0 rgba(255,236,200,.06),0 1px 1px rgba(0,0,0,.5),0 18px 40px -22px rgba(0,0,0,.9),0 10px 30px -24px rgba(236,170,60,.35)}
.is-pro:not([data-theme="light"]) :is(button.stat,.tile):hover{box-shadow:inset 0 1px 0 rgba(255,236,200,.08),0 16px 40px -16px rgba(236,170,60,.45)}

/* gold figures */
.is-pro:not([data-theme="light"]) :is(.today .val,.pricebox .total b){background:linear-gradient(180deg,#FFF1C9 0%,#F2C865 45%,#C98A22 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 14px rgba(236,170,60,.25))}
.is-pro:not([data-theme="light"]) .stat b{background:linear-gradient(180deg,#FFFFFF 10%,#F3E3C0 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* gold highlights: active tab, page mark, table hover, monograms, section labels */
.is-pro:not([data-theme="light"]) .tabs a.on{--c:#E6B64C;color:#FFE9B0;
  background:linear-gradient(180deg,rgba(236,180,80,.20),rgba(236,180,80,.07));box-shadow:inset 0 0 0 1px rgba(247,215,126,.4),inset 0 1px 0 rgba(255,240,200,.15),0 6px 18px -8px rgba(236,170,60,.55)}
.is-pro:not([data-theme="light"]) .tabs a.on .ic{color:#F2C865}
.is-pro:not([data-theme="light"]) .pagehead h1::before{background:var(--gold);box-shadow:0 0 0 5px rgba(236,180,80,.14),0 0 18px rgba(236,170,60,.9)}
.is-pro:not([data-theme="light"]) table.t tr.click:hover td{background:linear-gradient(90deg,rgba(236,180,80,.11),rgba(236,180,80,.02) 55%)}
.is-pro:not([data-theme="light"]) table.t th{color:#B8A98F}
.is-pro:not([data-theme="light"]) .av-mono{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--m) 40%,transparent),0 0 0 2px rgba(10,8,5,1),0 0 0 3px rgba(236,180,80,.35)}
.is-pro:not([data-theme="light"]) :is(.today .lbl,.stat span,.setup nav .grp,.section-label){color:#C9B48A}
.is-pro:not([data-theme="light"]) .btn:not(.primary):not(.good):not(.ghost):not(.danger){border-color:rgba(247,215,126,.22)}
.is-pro:not([data-theme="light"]) .btn:not(.primary):not(.good):not(.ghost):not(.danger):hover{border-color:rgba(247,215,126,.5);box-shadow:0 0 0 1px rgba(247,215,126,.08),0 6px 18px -10px rgba(236,170,60,.6)}
.is-pro:not([data-theme="light"]) .in:focus{border-color:rgba(247,215,126,.75);box-shadow:0 0 0 4px rgba(236,180,80,.14)}
.is-pro:not([data-theme="light"]) .seg{border-color:rgba(247,215,126,.2)}
.is-pro:not([data-theme="light"]) .setup nav button.on{background:linear-gradient(90deg,rgba(236,180,80,.16),transparent);box-shadow:inset 2px 0 0 #E6B64C;color:#FFE9B0}
.is-pro:not([data-theme="light"]) .scrim{background:rgba(6,5,3,.72)}
.is-pro:not([data-theme="light"]) *{scrollbar-color:rgba(236,180,80,.3) transparent}
@media (prefers-reduced-motion: reduce){ .is-pro #app::before{animation:none} }

/* PRO FEEL, stronger: unmistakable at a glance */
:root.is-pro:not([data-theme="light"]){
  --rim:linear-gradient(155deg,rgba(250,220,140,.95),rgba(236,180,80,.35) 22%,rgba(236,180,80,.08) 50%,rgba(236,180,80,.30) 100%);
  --gold-num:linear-gradient(180deg,#FBE3A0 0%,#EDB94F 50%,#C8871F 100%);
}
.is-pro:not([data-theme="light"]) body{background:
  radial-gradient(1000px 560px at 8% -12%, rgba(236,170,60,.26), transparent 62%),
  radial-gradient(900px 520px at 108% -4%, rgba(210,130,40,.14), transparent 60%),
  radial-gradient(1200px 700px at 50% 120%, rgba(236,170,60,.08), transparent 60%),
  var(--bg) fixed}
.is-pro:not([data-theme="light"]) #app::before{background:radial-gradient(40% 30% at 30% 30%, rgba(236,180,80,.16), transparent 70%),radial-gradient(35% 28% at 72% 62%, rgba(247,215,126,.10), transparent 70%)}
/* every panel gets a bright gold top edge */
.is-pro:not([data-theme="light"]) :is(.card,.tablewrap,.stat,.pricebox,.tile){position:relative}
.is-pro:not([data-theme="light"]) :is(.card,.tablewrap,.stat,.pricebox,.tile)::after{content:"";position:absolute;left:14px;right:40%;top:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,236,180,.9),rgba(236,180,80,.5) 45%,transparent);border-radius:1px}
/* every big number in gold */
.is-pro:not([data-theme="light"]) :is(.today .val,.pricebox .total b,.stat b){background:var(--gold-num) !important;-webkit-background-clip:text !important;background-clip:text !important;color:transparent !important;
  filter:drop-shadow(0 2px 12px rgba(236,170,60,.35))}
/* table headers sit on a warm gold band */
.is-pro:not([data-theme="light"]) table.t thead th{background:linear-gradient(180deg,rgba(236,180,80,.10),rgba(236,180,80,.03)) !important;color:#E3CB98;border-bottom-color:rgba(247,215,126,.22)}
/* section titles warm ivory with a short gold underline */
.is-pro:not([data-theme="light"]) :is(.lane>header h3,.card-head h3,.side .card h3){color:#FFF3DA}
.is-pro:not([data-theme="light"]) .side .card h3{display:inline-block;padding-bottom:4px;background:linear-gradient(90deg,#E6B64C,transparent) bottom left/60% 1px no-repeat}
/* the top bar and user chip glow warmer */
.is-pro:not([data-theme="light"]) .topbar{background:linear-gradient(180deg,rgba(255,226,160,.07),rgba(255,226,160,.02)),rgba(14,11,7,.78);border-color:rgba(247,215,126,.45)}
.is-pro:not([data-theme="light"]) .me>button{border-color:rgba(247,215,126,.35)}

/* lane stripes: just outside the table's left edge, with a small gap, never over the border */
.lane .tablewrap::before{display:none}
.lane .tablewrap,.is-pro:not([data-theme="light"]) .lane .tablewrap{border-left-width:1px}
.lanebody{position:relative;padding-left:9px}
.lanebody::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--c);box-shadow:0 0 10px color-mix(in srgb,var(--c) 70%,transparent)}
@media (max-width:520px){ .lanebody{padding-left:7px} .lane .tablewrap{margin:0} }

/* a clear bottom edge on every panel: softer than the bright top, but visible */
:is(.card,.tablewrap,.stat,.tile,.pricebox){box-shadow:var(--glow),inset 0 -1px 0 rgba(255,255,255,.08),var(--shadow-sm)}
.is-pro:not([data-theme="light"]) :is(.card,.tablewrap,.stat,.tile,.pricebox){
  box-shadow:inset 0 1px 0 rgba(255,236,200,.06),inset 0 -1px 0 rgba(236,180,80,.32),0 1px 1px rgba(0,0,0,.5),0 18px 40px -22px rgba(0,0,0,.9),0 10px 30px -24px rgba(236,170,60,.35)}
.is-pro:not([data-theme="light"]) :is(button.stat,.tile):hover{box-shadow:inset 0 1px 0 rgba(255,236,200,.08),inset 0 -1px 0 rgba(236,180,80,.45),0 16px 40px -16px rgba(236,170,60,.45)}
:root[data-theme="light"] :is(.card,.tablewrap,.stat,.tile,.pricebox){box-shadow:var(--glow),inset 0 -1px 0 rgba(24,22,16,.08),var(--shadow-sm)}

/* board rows fit their box: stacked action buttons, trimmer columns, room on the right */
.acts-col{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:128px}
.acts-col .btn{justify-content:center;width:100%}
.acts-note{font-size:13px;text-align:center;white-space:nowrap}
td.acts-cell{width:1%;padding-right:18px !important}
table.t td .who{min-width:160px}
td.route{min-width:190px}
table.t td:has(> select.assign) select.assign{width:150px;min-width:150px}
.lane table.t th:last-child,.lane table.t td:last-child{padding-right:18px}

/* the job price can be set by clicking it */
.pricebox .total b.editable{cursor:pointer;border-radius:8px;padding:0 4px;margin-right:-4px;transition:background .15s}
.pricebox .total b.editable:hover{background:rgba(236,180,80,.10);outline:1px dashed rgba(236,180,80,.45);outline-offset:2px}
.price-edit{display:flex;align-items:center;gap:6px;margin-top:10px}
.price-edit .in{height:34px;font-size:17.5px;font-weight:600;flex:1;min-width:0}
.price-custom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
[data-priceedit]>.btn{margin-top:6px;padding-left:0}

/* swap pick-up and delivery: a small round button right between the two boxes */
.of .stops{position:relative}
.swap-btn{position:absolute;z-index:3;left:50%;top:10px;transform:translateX(-50%);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  color:var(--ink);border:1px solid var(--line-strong);background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03)),var(--surface-3);
  box-shadow:0 0 0 4px var(--surface),0 6px 16px -6px rgba(0,0,0,.6);transition:transform .2s,border-color .15s,color .15s}
.swap-btn .ic{width:17px;height:17px}
.swap-btn:hover{border-color:rgba(236,180,80,.7);color:var(--accent);transform:translateX(-50%) rotate(180deg)}
.swap-btn:disabled{opacity:.4;cursor:not-allowed;transform:translateX(-50%)}
.is-pro:not([data-theme="light"]) .swap-btn{border-color:rgba(247,215,126,.45);color:#F2C865}
@media (max-width:820px){
  .swap-btn{top:50%;transform:translate(-50%,-50%) rotate(90deg)}
  .swap-btn:hover{transform:translate(-50%,-50%) rotate(270deg)}
}
.of .stops{column-gap:50px}
.swap-btn{top:9px}
@media (max-width:820px){ .of .stops{row-gap:44px} }

/* job window: the actions sit under Price and Messenger (no footer bar) */
.job-actions{display:flex;flex-direction:column;gap:8px}
.job-actions>.btn{width:100%;justify-content:center}
.job-actions>.btn.primary.lg{height:44px;font-size:17px}
.job-actions-row{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 4px}
.job-actions-row .btn{color:var(--ink-2)}
.job-actions-row .btn.danger-text{color:var(--red)}
.is-pro:not([data-theme="light"]) .job-actions>.btn:not(.primary){border-color:rgba(247,215,126,.35)}

/* job window buttons: more room, and a two-line Multiple Deliveries button */
.job-actions{gap:10px;padding:14px;border-radius:16px;border:1px solid var(--line-soft);background:rgba(255,255,255,.02)}
.job-actions>.btn.primary.lg{height:46px}
.job-actions>.btn.multi{height:auto;padding:9px 12px;flex-direction:column;gap:2px;line-height:1.2}
.multi-t{display:flex;align-items:center;gap:7px;font-weight:600;font-size:16px}
.multi-s{font-size:12.5px;font-weight:400;color:var(--ink-3);letter-spacing:.02em}
.job-actions-row{margin-top:2px;padding-top:10px;border-top:1px solid var(--line-soft);gap:6px 10px}
.job-actions-row .btn{height:32px;padding:0 12px}
.is-pro:not([data-theme="light"]) .job-actions{border-color:rgba(247,215,126,.18);background:linear-gradient(180deg,rgba(255,226,160,.04),rgba(255,226,160,.01))}

/* ---------- job window: compact, fits a laptop screen without scrolling ---------- */
.scrim:has(.of.compact){padding-top:2vh;padding-bottom:2vh}
.dialog:has(.of.compact)>header{padding:12px 20px}
.dialog:has(.of.compact)>.body{padding:14px 20px 16px}
.of.compact{gap:16px;grid-template-columns:minmax(0,1fr) 300px}
.of.compact .stack{gap:10px}
.of.compact .in,.of.compact select.in{height:34px;font-size:15px}
.of.compact textarea.in{min-height:34px;height:34px;padding:7px 10px;resize:vertical}
.of.compact label.f, .of.compact div.f{gap:3px}
.of.compact label.f>span, .of.compact div.f>span{font-size:12.5px}
.of.compact label.f>small{font-size:12px}
.of.compact .grid{gap:8px 10px}
.of.compact .stop{padding:10px 12px}
.of.compact .stop h3{margin-bottom:6px;font-size:16.5px}
.of.compact .clientcard{padding:6px 12px;font-size:13.5px}
.of.compact .card{padding:12px 14px}
.of.compact .card.details{display:flex;flex-direction:column;gap:8px}
.of.compact .wrap-tight{gap:8px}
.of.compact .seg button{height:28px;padding:0 10px;font-size:14px}
.of.compact .svc-desc{font-size:13px;margin-top:-4px}
.of.compact .svc-desc:empty{display:none}
.of.compact .pricebox{padding:12px 14px}
.of.compact .pricebox .lines{margin:6px 0;font-size:13.5px}
.of.compact .pricebox .total b{font-size:30px}
.of.compact .extras-card details summary{font-size:14.5px}
.of.compact .job-actions{padding:12px;gap:8px}
.of.compact .job-actions>.btn.primary.lg{height:42px}
.of.compact .toggle-chip{height:28px;font-size:13.5px;padding:0 11px}
.of.compact .timeline{font-size:12.5px}
.of.compact > .stack > .row:has([data-addstop]){margin-top:-4px}
@media (max-width:1180px){ .of.compact{grid-template-columns:1fr} }
.of.compact [data-daylabel]{display:none}
/* existing job: a compact status card at the top of the right column */
.of.compact .job-card{padding:10px 12px !important}
.of.compact .job-card h3{font-size:16px}
.of.compact .job-card .timeline{margin-top:6px !important;gap:4px}
.of.compact .job-card .timeline span{padding:2px 8px}
.of.compact .job-card p{margin:6px 0 0 !important;font-size:13.5px}
.of.compact .job-card .sig{max-width:180px;max-height:60px}
.of.compact .job-card .row{margin-top:8px !important;gap:6px}
.of.compact .job-card .btn.sm{height:28px;padding:0 9px;font-size:13.5px}
.of.compact .job-card details{margin-top:6px !important}
.of.compact .job-card .photos img{width:64px;height:64px}
.scrim:has(.of.compact){padding-top:10px;padding-bottom:10px}
.dialog:has(.of.compact)>.body{padding:12px 18px 14px}
.linkish{border:0;background:none;color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:0}
.linkish .ic{width:13px;height:13px}
.linkish:hover{text-decoration:underline}
.of.compact .job-card .timeline{max-height:none}
.of.compact .pricebox .lines div{line-height:1.35}
/* existing job: status, times and steps in one strip across the top */
.job-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:9px 14px !important;margin-bottom:12px}
.job-strip>.row.between{gap:8px;margin:0 !important}
.job-strip>.row.between h3{font-size:16px;margin:0}
.job-strip .timeline{margin:0 !important;gap:4px;font-size:12.5px}
.job-strip .timeline span{padding:2px 8px}
.job-strip>p{margin:0 !important;font-size:13.5px}
.job-strip .sig{max-height:34px;max-width:110px;margin:0}
.job-strip>.row{margin:0 0 0 auto !important;gap:6px}
.job-strip .btn.sm{height:28px;padding:0 9px;font-size:13.5px}
.job-strip details{margin:0 !important;flex-basis:100%}
.job-strip details:not([open]){flex-basis:auto}
.job-strip .photos{margin:0}
.job-strip .photos img{width:40px;height:40px}
.of.compact .stoprow{margin-top:6px}
.of.compact .stoprow + .stoprow label.f>span{display:none}
.of.compact [data-stopsbox]{padding:10px 12px !important}
.of.compact [data-stopsbox] h3{font-size:16px}

/* job window: a touch roomier (still fits a standard laptop screen) */
.scrim:has(.of.compact){padding-top:2.5vh;padding-bottom:2.5vh}
.dialog:has(.of.compact)>header{padding:14px 22px}
.dialog:has(.of.compact)>.body{padding:16px 22px 18px}
.of.compact{gap:20px;grid-template-columns:minmax(0,1fr) 320px}
.of.compact .stack{gap:12px}
.of.compact .in,.of.compact select.in{height:37px;font-size:15.5px}
.of.compact textarea.in{min-height:37px}
.of.compact label.f, .of.compact div.f{gap:4px}
.of.compact label.f>span, .of.compact div.f>span{font-size:13.5px}
.of.compact .grid{gap:10px 12px}
.of.compact .stop{padding:12px 14px}
.of.compact .stop h3{margin-bottom:8px;font-size:17px}
.of.compact .clientcard{padding:8px 14px;font-size:14.5px}
.of.compact .card{padding:14px 16px}
.of.compact .card.details{gap:10px}
.of.compact .seg button{height:30px;padding:0 12px;font-size:14.5px}
.of.compact .pricebox{padding:14px 16px}
.of.compact .pricebox .lines{margin:8px 0;font-size:14.5px}
.of.compact .pricebox .total b{font-size:32px}
.of.compact .job-actions{padding:14px;gap:10px}
.of.compact .job-actions>.btn.primary.lg{height:44px}
.of.compact .toggle-chip{height:30px;font-size:14.5px}
.clear-stop{margin-right:8px;color:var(--ink-3);font-weight:500}
.clear-stop:hover{color:var(--red)}

/* Setup ▸ Services & Zones: one card per zone, its areas inside */
.zlist{display:flex;flex-direction:column;gap:12px}
.zcard{border:1px solid var(--line-soft);border-left:3px solid var(--zc);border-radius:14px;padding:12px 14px;background:linear-gradient(90deg,color-mix(in srgb,var(--zc) 7%,transparent),transparent 40%)}
.zhead{display:flex;align-items:flex-end;gap:10px;margin-bottom:10px}
.zhead .swatch{width:36px;height:36px;flex:none}
.zhead .zno{width:90px;flex:none}
.zhead .zname{flex:1;min-width:140px}
.zhead .zdesc{flex:2;min-width:180px}
.zareas td{padding:5px 6px !important}
.zareas .in{height:32px}
@media (max-width:820px){ .zhead{flex-wrap:wrap} .zhead .zdesc{flex-basis:100%} }

/* Setup ▸ Pricing: numbered steps in the menu, and a step bar on each pricing page */
.setup nav .step-no{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;margin-right:8px;font-size:11.5px;font-weight:700;
  background:rgba(255,255,255,.07);color:var(--ink-3);vertical-align:1px}
.setup nav button.on .step-no{background:var(--gold);color:#1C1504}
.price-steps{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:16px;padding:6px;border-radius:14px;border:1px solid var(--line-soft);background:rgba(255,255,255,.02)}
.price-steps a{display:flex;align-items:center;gap:7px;padding:6px 11px;border-radius:10px;color:var(--ink-3);font-size:14.5px;font-weight:500;text-decoration:none;white-space:nowrap}
.price-steps a span{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;font-size:11.5px;font-weight:700;background:rgba(255,255,255,.07)}
.price-steps a:hover{background:var(--hover);color:var(--ink);text-decoration:none}
.price-steps a.past{color:var(--ink-2)}
.price-steps a.past span{background:color-mix(in srgb,var(--accent) 30%,transparent);color:var(--ink)}
.price-steps a.on{background:linear-gradient(180deg,rgba(236,180,80,.2),rgba(236,180,80,.07));color:var(--on-strong);box-shadow:inset 0 0 0 1px rgba(236,180,80,.45)}
.price-steps a.on span{background:var(--gold);color:#1C1504}
.price-nav{margin-top:16px}
@media (max-width:820px){ .price-steps{flex-wrap:nowrap;overflow-x:auto} }

/* ---------- Setup ▸ Pricing: one grid ---------- */
.pgrid-wrap{overflow-x:auto;margin:0 -4px}
.pgrid{border-collapse:separate;border-spacing:6px;min-width:100%}
.pgrid th,.pgrid td{padding:0;vertical-align:middle}
.pgrid th.corner{text-align:left;font-size:12px;font-weight:500;white-space:nowrap;padding:0 6px}
.pgrid .zh,.pgrid .sv{display:flex;flex-direction:column;gap:1px;width:100%;border:1px solid var(--line);border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,background .15s}
.pgrid .zh{align-items:center;padding:7px 8px;min-width:96px;border-top:3px solid var(--zc)}
.pgrid .zh b{display:flex;align-items:center;gap:6px;font-size:16.5px}
.pgrid .zh b i{width:8px;height:8px;border-radius:50%;background:var(--zc);box-shadow:0 0 8px var(--zc)}
.pgrid .zh small{font-size:12px;color:var(--ink-3);font-weight:400;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrid .sv{align-items:flex-start;padding:5px 10px;min-width:0;width:118px;text-align:left}
.pgrid .sv b{font-size:14.5px;line-height:1.2}
.pgrid .sv .sv-note{font-size:12px;font-weight:500;color:var(--ink-3)}
.pgrid .sv small{font-size:11.5px;color:var(--ink-3);font-weight:400;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrid .zh:hover,.pgrid .sv:hover{border-color:rgba(236,180,80,.6);background:rgba(236,180,80,.07)}
.pgrid .add-col,.pgrid .add-row{border:1px dashed var(--line-strong);border-radius:10px;background:transparent;color:var(--ink-3);cursor:pointer;font:inherit;font-size:14.5px;padding:10px 12px;white-space:nowrap;width:100%}
.pgrid .add-col:hover,.pgrid .add-row:hover{border-color:var(--accent);color:var(--accent)}
.money-in{position:relative;display:block}
.money-in>span{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--ink-3);font-size:14.5px;pointer-events:none}
.money-in .in{padding-left:22px;text-align:right;height:38px;font-size:16.5px;font-weight:500;font-variant-numeric:tabular-nums;min-width:84px}
.save-state{font-size:13.5px;color:var(--good);font-weight:600;min-width:70px;text-align:right}
.pfolds{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.pfold{border:1px solid var(--line-soft);border-radius:14px;background:var(--surface)}
.pfold>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:14px 18px;cursor:pointer}
.pfold>summary::-webkit-details-marker{display:none}
.pfold>summary::after{content:"▸";margin-left:auto;color:var(--ink-3);transition:transform .15s}
.pfold[open]>summary::after{transform:rotate(90deg)}
.pfold>summary b{font-size:16.5px;color:var(--ink)}
.pfold>summary span{color:var(--ink-3);font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pfold>summary:hover b{color:var(--accent)}
.pfold .fold-body{padding:0 12px 12px}
.pfold .fold-body .card{box-shadow:none;border-color:var(--line-soft);margin-bottom:10px}
.setup .section-title{font-family:var(--f-display);font-size:14.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin:22px 2px 10px}
.setup .section-title:first-child{margin-top:0}
.is-pro:not([data-theme="light"]) .pfold{border-color:rgba(247,215,126,.18)}
.is-pro:not([data-theme="light"]) .pgrid .zh,.is-pro:not([data-theme="light"]) .pgrid .sv{border-color:rgba(247,215,126,.22)}

/* ---------- Setup: Admin group, Features page, Overview all-set bar, pricing edit marks ---------- */
.setup nav .admin-grp{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:14px;border-top:1px solid var(--line-soft)}
.setup nav .admin-grp .ic{width:13px;height:13px}
.setup nav .admin-grp small{flex-basis:100%;font-size:10.5px;letter-spacing:.02em;text-transform:none;color:var(--ink-3);font-weight:500}
.nav-pro{display:inline-grid;place-items:center;height:16px;padding:0 5px;margin-left:6px;border-radius:4px;background:var(--gold);color:#1C1504;font-size:9.5px;font-weight:800;letter-spacing:.08em;vertical-align:1px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.fcard{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--line-soft);border-radius:14px;background:var(--surface);transition:border-color .15s,background .15s}
.fcard.on{border-color:rgba(61,220,151,.35);background:linear-gradient(90deg,rgba(61,220,151,.06),transparent 60%),var(--surface)}
.fcard.locked{opacity:.55}
.fcard .fi{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06);color:var(--ink-2)}
.fcard.on .fi{color:var(--green);background:rgba(61,220,151,.12)}
.fcard .ft{flex:1;min-width:0}
.fcard .ft b{display:block;font-size:16px}
.fcard .ft small{display:block;color:var(--ink-3);font-size:13.5px;line-height:1.4;margin-top:2px}
.fcard .check.sub{margin-top:8px;font-size:13.5px}
.switch{position:relative;flex:none;width:42px;height:24px;cursor:pointer;margin-top:4px}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.switch i{position:absolute;inset:0;border-radius:999px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px var(--line);transition:background .15s}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .15s}
.switch input:checked + i{background:var(--good)}
.switch input:checked + i::after{transform:translateX(18px)}
.switch input:disabled + i{opacity:.5}
.switch input:focus-visible + i{outline:2px solid var(--accent);outline-offset:2px}
.pro-hero{position:relative;overflow:hidden;border-radius:18px;padding:20px;margin-bottom:8px;border:1px solid rgba(247,215,126,.45);
  background:radial-gradient(500px 200px at 0% 0%,rgba(236,180,80,.22),transparent 70%),radial-gradient(400px 200px at 100% 100%,rgba(236,170,60,.10),transparent 70%),linear-gradient(180deg,rgba(255,236,200,.05),rgba(255,236,200,.01)),var(--surface-2);
  box-shadow:inset 0 1px 0 rgba(255,236,200,.1),0 20px 50px -24px rgba(236,170,60,.5)}
.pro-hero::before{content:"";position:absolute;left:10%;right:10%;top:-1px;height:1px;background:linear-gradient(90deg,transparent,#FFF1C4,transparent)}
.pro-hero-top{display:flex;gap:16px;align-items:flex-start;margin-bottom:14px}
.gem-xl{width:52px;height:52px;flex:none;padding:12px;border-radius:14px;color:#1C1504;background:var(--gold);stroke-width:2;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 26px -8px rgba(230,170,60,.8)}
.pro-kicker{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#E3C27A}
.pro-hero h2{display:flex;align-items:center;gap:10px;margin:2px 0 4px;font-size:24px;background:var(--gold);-webkit-background-clip:text;background-clip:text;color:transparent}
.pro-hero h2 .pro{-webkit-text-fill-color:#1C1504}
.pro-hero p{margin:0;color:var(--ink-2);max-width:620px}
.pro-hero .fcard{background:rgba(10,8,5,.45);border-color:rgba(247,215,126,.3)}
.pro-hero .fcard.on{border-color:rgba(247,215,126,.7);background:linear-gradient(90deg,rgba(236,180,80,.14),transparent 70%),rgba(10,8,5,.45)}
.pro-hero .fcard.on .fi{color:#1C1504;background:var(--gold)}
.pro-hero .switch input:checked + i{background:var(--gold)}
.pro-perks{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px;font-size:14.5px;color:#E8D4A5}
.pro-perks .ic{width:14px;height:14px;color:#F2C865}
.pro-cta{margin-top:14px;padding:10px 14px;border-radius:12px;background:rgba(236,180,80,.12);border:1px dashed rgba(247,215,126,.5);font-size:15px}
:root[data-theme="light"] .pro-hero{background:radial-gradient(500px 200px at 0% 0%,rgba(201,149,31,.18),transparent 70%),#fff}
:root[data-theme="light"] .pro-hero h2{color:#8A6212;background:none}
:root[data-theme="light"] .pro-hero .fcard{background:#FFFDF7}
:root[data-theme="light"] .pro-perks{color:#6B5217}
.all-set{border:1px solid rgba(61,220,151,.3);border-radius:14px;background:linear-gradient(90deg,rgba(61,220,151,.07),transparent 50%),var(--surface);margin-bottom:16px}
.all-set>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 18px;cursor:pointer}
.all-set>summary::-webkit-details-marker{display:none}
.all-set .ok-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--good);color:#fff;flex:none}
.all-set .ok-dot .ic{width:16px;height:16px}
.all-set .review{font-size:14.5px;color:var(--accent);font-weight:600}
.all-set[open] .review::after{content:" ▴"} .all-set:not([open]) .review::after{content:" ▾"}
.all-set .steps-guide{padding:0 14px 14px}
.pgrid .pen{display:inline-grid;margin-left:4px;opacity:.45;transition:opacity .15s}
.pgrid .pen .ic{width:12px;height:12px}
.pgrid .zh:hover .pen,.pgrid .sv:hover .pen{opacity:1;color:var(--accent)}
.edit-tip{color:var(--accent);font-weight:600}
.edit-tip .ic{width:13px;height:13px;vertical-align:-2px}

/* Pro signature: a small gold diamond marks the selected menu item, in the top bar and in Setup (Pro only) */
@keyframes gem-in{from{opacity:0;transform:scale(.4) rotate(-20deg)}to{opacity:1;transform:none}}
.is-pro :is(.tabs a.on, .setup nav button.on)::after{content:"";flex:none;width:12px;height:12px;margin-left:7px;
  background:linear-gradient(135deg,#FFF1C4 0%,#F2C865 45%,#C8871F 100%);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 4px rgba(242,200,101,.8));animation:gem-in .35s var(--ease)}
.is-pro .setup nav button.on{display:flex;align-items:center}
.is-pro .setup nav button.on::after{margin-left:auto}
@media (max-width:1180px){ .is-pro .tabs a.on::after{margin-left:4px;width:10px;height:10px} }

/* Pro signature, stronger: a bigger, brighter diamond, and a slow gold shine sweeping across the selected item */
.is-pro :is(.tabs a.on, .setup nav button.on)::after{width:17px;height:17px;margin-left:8px;
  background:linear-gradient(135deg,#FFFBEA 0%,#FFE08A 35%,#F2B73C 65%,#B97A12 100%);
  filter:drop-shadow(0 0 3px rgba(255,214,120,1)) drop-shadow(0 0 10px rgba(242,183,60,.75))}
.is-pro :is(.tabs a.on, .setup nav button.on){position:relative;overflow:hidden}
.is-pro :is(.tabs a.on, .setup nav button.on)::before{content:"";position:absolute;top:0;bottom:0;width:45%;left:-60%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,236,180,.28) 45%,rgba(255,250,230,.45) 50%,rgba(255,236,180,.28) 55%,transparent);
  animation:sheen 4.5s ease-in-out infinite}
@media (max-width:1180px){ .is-pro .tabs a.on::after{width:13px;height:13px;margin-left:5px} }
@media (prefers-reduced-motion: reduce){ .is-pro :is(.tabs a.on, .setup nav button.on)::before{animation:none;display:none} }

/* Pro signature diamond: the same faceted gem as the PRO badge, gold with dark lines, drawn a bit bigger */
.is-pro :is(.tabs a.on, .setup nav button.on)::after{width:20px;height:20px;margin-left:8px;-webkit-mask:none;mask:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FFF1C4'/%3E%3Cstop offset='.5' stop-color='%23F2C865'/%3E%3Cstop offset='1' stop-color='%23C8871F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z' fill='url(%23g)' stroke='%231C1504' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M2 9h20M10 3 8 9l4 12 4-12-2-6' fill='none' stroke='%231C1504' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 5px rgba(242,200,101,.85))}
@media (max-width:1180px){ .is-pro .tabs a.on::after{width:16px;height:16px;margin-left:5px} }
/* the PRO badge by the company name, a little bigger */
.topbar .bt span .pro{height:20px;font-size:10.5px;padding:0 7px 0 5px;gap:4px}
.topbar .bt span .pro .gem{width:14px;height:14px}
/* top menu centered in the bar */
.tabs{justify-content:center}
@media (max-width:820px){ .tabs{justify-content:flex-start} }

/* the board column never grows past the screen: wide tables scroll inside their own box */
#lanes,.board>*{min-width:0}
@media (max-width:1400px){ .board{grid-template-columns:minmax(0,1fr)} }

/* ---------- Reports: headline figures and charts ---------- */
.rsum{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:12px}
.rsum .card{padding:14px 16px}
.rsum .lbl{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.rsum .val{font-family:var(--f-display);font-size:26px;font-weight:700;letter-spacing:-.02em;margin-top:4px}
.is-pro:not([data-theme="light"]) .rsum .val{background:var(--gold-num,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.rchart{margin-bottom:12px;padding:16px 18px}
.vbars{display:flex;align-items:flex-end;gap:4px;height:170px}
.vb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0;cursor:default}
.vb span{width:100%;max-width:38px;border-radius:5px 5px 2px 2px;background:var(--gold);box-shadow:0 0 12px -3px rgba(230,170,60,.55);transition:filter .15s}
.vb:hover span{filter:brightness(1.2)}
.vb small{font-size:11.5px;color:var(--ink-3);margin-top:6px;white-space:nowrap}
.hbars{display:flex;flex-direction:column;gap:8px}
.hb{display:grid;grid-template-columns:minmax(120px,220px) 1fr 90px;align-items:center;gap:12px;font-size:14.5px}
.hb .hl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbar{height:14px;border-radius:7px;background:rgba(255,255,255,.05);overflow:hidden}
.hbar i{display:block;height:100%;border-radius:7px;background:var(--gold);box-shadow:0 0 10px -2px rgba(230,170,60,.6)}
.hb b{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:820px){ .hb{grid-template-columns:100px 1fr 76px;gap:8px} .vbars{height:130px} .vb small{display:none} }

/* ---------- Jobs list: roomier rows like Dispatch ---------- */
table.t.jobs td{padding-top:12px;padding-bottom:12px;vertical-align:middle}
table.t.jobs .sub{font-size:13px;margin-top:2px;white-space:nowrap}
table.t.jobs .who{display:flex;align-items:center;gap:10px;min-width:0}
table.t.jobs td:nth-child(2) .who{min-width:170px}
table.t.jobs td:nth-child(6) .who{min-width:130px;white-space:nowrap}
td.jroute{min-width:220px;max-width:340px}
td.jroute div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.55}
td.jroute div + div{color:var(--ink-2)}
td.jroute .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:8px;vertical-align:1px}
td.jroute .dot.p{border:1.5px solid var(--ink-3)}
td.jroute .dot.d{background:var(--gold, var(--accent))}

/* ---------- Dispatch welcome for a new company ---------- */
.welcome{padding:22px 24px;margin-bottom:14px}
.welcome .wtop{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.welcome h2{margin:0;font-size:22px;letter-spacing:-.01em}
.welcome p{margin:4px 0 0}
.wbar{width:220px;height:6px;border-radius:3px;background:rgba(255,255,255,.07);overflow:hidden}
.wbar i{display:block;height:100%;background:var(--gold,var(--accent));border-radius:3px}
.wsteps{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:18px}
.wstep{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.02);color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}
.wstep:hover{border-color:var(--gold,var(--accent));transform:translateY(-1px)}
.wstep b{font-size:15.5px;font-weight:600}
.wstep small{color:var(--ink-3);font-size:13.5px;line-height:1.4}
.wstep .wn{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13.5px;font-weight:700;border:1.5px solid var(--line);color:var(--ink-2)}
.wstep .wn svg{width:14px;height:14px}
.wstep.next{border-color:color-mix(in srgb,var(--gold,var(--accent)) 60%,transparent);box-shadow:0 0 22px -10px rgba(230,170,60,.7)}
.wstep.next .wn{background:var(--gold,var(--accent));border-color:transparent;color:#1a1207}
.wstep.done{opacity:.6}
.wstep.done .wn{background:var(--green);border-color:transparent;color:#fff}
.wstep.done b{text-decoration:line-through;text-decoration-color:var(--ink-3)}
.empty.start{padding:44px 24px}
.empty.start h3{color:var(--ink);font-size:20px;margin:6px 0}
.empty.start p{max-width:460px;margin:0 auto 16px;line-height:1.5}
.empty.start .big-ic{color:var(--gold,var(--accent));width:44px;height:44px}
table.t td .who b{display:inline}
.wstep:hover,.wstep:hover *{text-decoration:none}.wstep.done:hover b{text-decoration:line-through}
.rsum .vs{font-size:13.5px;font-weight:600;margin-top:4px;color:var(--ink-3)}
.rsum .vs span{font-weight:500;color:var(--ink-3)}
.rsum .vs.up{color:#E9C46A}
.rsum .vs.down{color:#F08A7E}

/* ---------- Taller top bar, everything in it scaled up to match ---------- */
@media (min-width:821px){
  .topbar{border-radius:22px}
  .topbar .inner{height:84px;padding:0 18px 0 18px;gap:18px}
  .topbar .brandline{gap:13px}
  .topbar .logo{width:52px;height:52px;border-radius:14px}
  .topbar .logo svg{width:31px;height:31px}
  .topbar .bt{max-width:240px}
  .topbar .bt b{font-size:18.5px;line-height:1.2}
  .topbar .bt span{font-size:11.5px}
  .topbar .bt span .pro{height:22px;font-size:11.5px;padding:0 8px 0 6px}
  .topbar .bt span .pro .gem{width:15px;height:15px}
  .tabs{gap:4px}
  .tabs a{height:46px;padding:0 14px;font-size:17px;gap:9px;border-radius:12px}
  .tabs a .ic{width:19px;height:19px}
  .is-pro :is(.tabs a.on)::after{width:23px;height:23px}
  .topbar .btn.primary{height:46px;padding:0 18px;font-size:17.5px;border-radius:12px}
  .topbar .btn.primary .ic{width:18px;height:18px}
  .topbar .btn.ghost{height:46px;min-width:46px}
  .topbar .btn.ghost .ic{width:21px;height:21px}
  .me>button{height:48px;padding:0 10px 0 5px}
  .me .av{width:38px;height:38px;font-size:16px}
  .topbar .clock{font-size:15px}
  .topbar .clock b{font-size:18.5px}
}
@media (min-width:821px) and (max-width:1600px){ .tabs a{padding:0 11px;font-size:16px} .topbar .bt{max-width:200px} }
@media (min-width:821px) and (max-width:1440px){ .tabs a{padding:0 9px;font-size:16px;gap:7px} .topbar .bt b{font-size:17px} .topbar .inner{gap:12px} }
@media (min-width:821px) and (max-width:1300px){ .topbar .bt{max-width:160px} .topbar .bt b{font-size:16px} .topbar .inner{height:76px} }
@media (min-width:821px) and (max-width:1180px){ .tabs a{padding:0;width:46px} .topbar .btn.primary{width:46px;padding:0} }
@media (min-width:821px){ .tabs a{flex:none} }
@media (min-width:821px) and (max-width:1640px){ .topbar .btn.primary kbd{display:none} .tabs a{padding:0 8px;font-size:15.5px;gap:6px} .tabs a .ic{width:17px;height:17px} .tabs{gap:2px} .topbar .bt{max-width:170px} }
@media (min-width:821px) and (max-width:1430px){ .topbar .bt{display:none} .tabs a{padding:0 7px} }
@media (min-width:821px) and (max-width:1180px){ .tabs a{padding:0;width:44px;justify-content:center} }
@media (min-width:1641px) and (max-width:1820px){ .tabs a{padding:0 8px;font-size:16.5px;gap:8px} .topbar .btn.primary kbd{display:none} .topbar .bt{max-width:200px} }
@media (min-width:1641px) and (max-width:1720px){ .tabs a{padding:0 7px} .topbar .bt{max-width:180px} }
/* room for the larger text */
@media (min-width:1601px){ .board{grid-template-columns:minmax(0,1fr) 320px} }
@media (min-width:1401px) and (max-width:1600px){ .board{grid-template-columns:minmax(0,1fr) 296px} }
.mrow .nm{min-width:0}
.of .grid.g6:has([data-f="pieces"]){grid-template-columns:.7fr .8fr 1.15fr 1.15fr 1.35fr auto}
.of .grid.g6 [data-f="ready"],.of .grid.g6 [data-f="due"]{padding-right:6px}
td.jroute .ad{color:var(--ink-3);font-size:.9em;margin-left:4px}
.lane td.jroute{max-width:360px}
.lane td.jroute div + div{color:var(--ink)}
.lane td.jroute{min-width:200px;max-width:300px}
@media (max-width:1600px){ .lane td.jroute{max-width:250px} .lane table.t td .who{min-width:150px} }

/* Dispatch lanes fit without sideways scrolling at laptop widths */
@media (max-width:2000px){
  .lane table.t th,.lane table.t td{padding-left:9px;padding-right:9px}
  .lane table.t td:has(> select.assign) select.assign{width:136px;min-width:136px}
  .lane .acts-col{min-width:118px}
  .lane .acts-col .btn{padding:0 8px}
}
@media (max-width:1180px){
  .lane td.jroute .ad{display:none}
  .lane td.jroute{min-width:150px;max-width:190px}
  .lane table.t td .who{min-width:0}
  .lane table.t td .who .av-mono{display:none}
}
@media (max-width:1600px){ .lane td.jroute{max-width:215px} .lane table.t td .who{min-width:135px} .lane td.jroute .ad{font-size:.85em} }
@media (max-width:1180px){ .lane .acts-col{min-width:100px} .lane .acts-col .btn{padding:0 6px;font-size:13.5px} .lane td.jroute{max-width:170px} }
.mrow .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mrow .nm .muted{overflow:hidden;text-overflow:ellipsis}
.lane table.t{font-size:15px}

/* ---------- client account: open invoices and last payment ---------- */
.acct{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft)}
.acct-last{font-size:14.5px}
.acct-h{margin:12px 0 4px;font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
table.t.acct-t td{padding:7px 4px}
.acct .sub{font-size:13px}
.chip.s-late{background:rgba(240,110,90,.14);color:#F4907E;border-color:rgba(240,110,90,.3)}
.paybar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;margin-bottom:12px}
.paybar b{font-size:20px}
.pro-hero .fgrid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}

/* ---------- Find anything (/ or Ctrl/⌘ K) ---------- */
.dialog.finder{width:min(680px,calc(100vw - 32px));align-self:flex-start;margin-top:12vh}
.dialog.finder .body{padding:14px 16px 16px}
.finder .fbox{display:flex;align-items:center;gap:10px;padding:0 14px;height:54px;border-radius:14px;border:1px solid var(--line-strong);background:var(--surface-2)}
.finder .fbox .ic{width:20px;height:20px;color:var(--ink-3)}
.finder .fbox .in{border:0;background:none;box-shadow:none !important;height:52px;font-size:17px;padding:0;flex:1}
.fres{margin-top:10px;max-height:52vh;overflow:auto}
.fhint{margin:10px 4px;font-size:14px}
.fhint kbd{font:inherit;font-size:12px;border:1px solid var(--line);border-radius:5px;padding:0 5px;margin:0 2px}
.fgrp{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);margin:12px 6px 4px}
.fitem{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:9px 10px;border-radius:10px;border:1px solid transparent;background:none;color:var(--ink);cursor:pointer;font:inherit}
.fitem.on,.fitem:hover{background:var(--hover);border-color:var(--line)}
.is-pro:not([data-theme="light"]) .fitem.on{background:linear-gradient(90deg,rgba(236,180,80,.14),rgba(236,180,80,.03));border-color:rgba(247,215,126,.35)}
.fitem .ft{flex:1;min-width:0;display:flex;flex-direction:column}
.fitem .ft b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fitem .ft small{color:var(--ink-3);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fitem .fic{width:30px;height:30px;display:grid;place-items:center;flex:none;color:var(--ink-3);font-size:12.5px}
.fitem .fic.mono{width:auto;min-width:62px;font-weight:600;color:var(--ink-2)}
.fitem .fic .ic{width:18px;height:18px}
.fitem .fr{flex:none;font-size:13.5px;color:var(--ink-2)}
@media (min-width:821px){ .topbar .inner{gap:10px} .topbar .btn.ghost{min-width:40px;width:40px;padding:0} .topbar .btn.ghost + .btn.ghost{margin-left:-6px} .topbar .brandline{margin-right:6px} }
@media (min-width:1431px) and (max-width:1500px){ .topbar .bt{max-width:150px} .tabs a{padding:0 7px} }
.toast.undo{display:flex;align-items:center;gap:14px;pointer-events:auto}.toast.undo .btn{height:30px;padding:0 12px}
.bk-strip{display:flex;align-items:center;gap:12px;margin-top:10px;padding:11px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;font-size:14.5px}
.bk-strip .muted{margin-left:8px}
.bk-strip .bk-dot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none}
.bk-strip .bk-dot .ic{width:14px;height:14px}
.bk-strip.ok .bk-dot{background:rgba(236,180,80,.16);color:#F2C865}
.bk-strip.warn{border-color:rgba(240,110,90,.4)}
.bk-strip.warn .bk-dot{background:rgba(240,110,90,.16);color:#F4907E}
.bk-strip:hover{border-color:var(--line-strong)}

/* ---------- client callers ---------- */
.people{display:flex;flex-direction:column;gap:8px}
.person{display:grid;grid-template-columns:auto minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.4fr) auto;gap:8px;align-items:center}
@media (max-width:820px){ .person{grid-template-columns:auto 1fr auto} .person [data-k=phone],.person [data-k=email]{grid-column:2} }
.dialog.inv{width:min(1000px,100%)}
.dialog.inv table.t td:first-child,.dialog.inv table.t td:nth-child(4){white-space:nowrap}
@media print{ html,body{background:#fff !important} }

/* ---------- client references ---------- */
.reftags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.reftag{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);font-size:14px;font-weight:500}
.reftag button{border:0;background:none;color:var(--ink-3);cursor:pointer;font-size:12px;width:20px;height:20px;border-radius:50%}
.reftag button:hover{background:var(--hover);color:var(--ink)}
.reftags [data-newref]{flex:1;min-width:220px;max-width:340px;height:36px}
.adjline{font-size:13.5px;color:var(--ink-2);margin-top:3px}.adjbtn{margin-top:4px;padding:0 6px;height:26px;font-size:13px}
@media (min-width:1700px){ .lane table.t td:has(> select.assign) select.assign{width:170px;min-width:170px} }
.lane select.in.assign{font-size:14px;padding-left:8px;padding-right:24px;text-overflow:ellipsis}
/* phones: fields meant to span 3–4 columns take the full row (a 2-column grid would otherwise grow empty columns); menu items never shrink */
@media (max-width:820px){ .grid .span3,.grid .span4{grid-column:1/-1} .tabs a{flex:none} }
@media (max-width:480px){ .grid.g4,.grid.g3,.grid.g6{grid-template-columns:minmax(0,1fr)} .grid .span2{grid-column:1/-1} }

/* ---------- job window: click-to-open lists, extras in the price box, round-trip hint ---------- */
.dd{position:relative;display:block}
.dd .in{padding-right:34px;cursor:pointer}
.dd .in:focus{cursor:text}
.dd-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;border:0;background:none;color:var(--ink-3);cursor:pointer;border-radius:7px}
.dd-btn:hover{background:var(--hover);color:var(--ink)}
.dd-btn .ic{width:16px;height:16px}
.price-extras{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft);display:flex;flex-direction:column;gap:8px}
.price-extras .section-label{margin:0}
.price-extras details summary{cursor:pointer}
.rt-hint{display:block;font-size:12px;margin-top:2px;line-height:1.25}

/* ---------- aged receivables ---------- */
.aging-sum{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
@media (max-width:1100px){ .aging-sum{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:560px){ .aging-sum{grid-template-columns:repeat(2,minmax(0,1fr))} }
.aging-sum .card{padding:12px 14px}
.aging-sum .lbl{font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.aging-sum .val{font-size:22px;font-weight:700;letter-spacing:-.02em;margin-top:2px;font-variant-numeric:tabular-nums}
.aging-sum .sub{font-size:12px}
.aging-sum .card.warn .val{color:#E9A23B} .aging-sum .card.bad .val{color:#F08A7E}
.aging-sum .card.total{border-color:color-mix(in srgb,var(--gold, #E6B64C) 45%,var(--line))}
.th-sub{font-size:10.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-3);margin-top:2px;white-space:nowrap}

/* ---------- billing preview: every job ---------- */
table.t.prev tr.grp td{background:var(--surface-2);border-top:1px solid var(--line-strong)}
table.t.prev tbody.sel tr.grp td{background:color-mix(in srgb,var(--gold, #E6B64C) 12%,var(--surface-2))}
table.t.prev tr.out td{opacity:.65}
table.t.prev .sub{font-size:12.5px}
ol.routelist{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;counter-reset:r;max-height:56vh;overflow:auto}
ol.routelist li{counter-increment:r;display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:9px 12px;border:1px solid var(--line);border-radius:10px}
ol.routelist li::before{content:counter(r);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--surface-3)}
ol.routelist li.drop::before{background:var(--gold, #E6B64C);color:#1A1207}
ol.routelist .rk{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
ol.routelist .ad{font-size:13px}
.needs{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:12px;font-weight:600;color:#E9A23B}
.needs .ic{width:13px;height:13px}
.mailprev{background:#fff;color:#111;border-radius:12px;padding:20px 22px;max-height:60vh;overflow:auto}

/* ---------- top bar: date and time sit above the account button ---------- */
.topbar .acct{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none}
.topbar .acct .clock{display:flex !important;gap:6px;align-items:baseline;font-size:12px;line-height:1;color:var(--ink-3);white-space:nowrap;text-align:center}
.topbar .acct .clock b{display:inline;font-size:12px;font-weight:600;color:var(--ink-2);font-family:inherit;letter-spacing:0}
.topbar .acct .clock span::after{content:"·";margin-left:6px;color:var(--ink-3)}
@media (max-width:820px){ .topbar .acct .clock{display:none !important} }
.topbar .acct .clock i{font-style:normal}
@media (max-width:1500px){ .topbar .acct .clock .wd{display:none} }
@media (max-width:1460px){ .topbar .acct .clock span{display:none} }
@media (min-width:821px) and (max-width:1500px){ .topbar .inner{gap:8px} .topbar .acct .clock{font-size:11.5px} .topbar .acct .clock b{font-size:11.5px} }

/* ---------- account pill: one gold pill with initials or first name; a red dot only when the connection drops ---------- */
.topbar .acct{gap:7px;justify-content:center;transform:translateY(-3px)}
.topbar .acct .me>button{position:relative;height:36px;min-width:52px;padding:0 15px;gap:0;justify-content:center;border:0;border-radius:999px;
  background:var(--gold);color:#1A1207;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 6px 18px -8px rgba(236,170,60,.75)}
.topbar .acct .me>button:hover{filter:brightness(1.06)}
.topbar .acct .me .av{width:auto;height:auto;min-width:0;background:none;box-shadow:none;color:inherit;border-radius:0;
  font-size:14.5px;font-weight:700;letter-spacing:.05em;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.topbar .acct .me .av.name{letter-spacing:0;font-weight:650}
.topbar .acct .me .live-dot{position:absolute;top:-3px;right:-3px;width:11px;height:11px;border:2px solid var(--bg);display:none}
.topbar .acct .me .live-dot.off{display:block;background:#F0614E;box-shadow:0 0 0 3px rgba(240,97,78,.25);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(240,97,78,0)}}
@media (prefers-reduced-motion:reduce){ .topbar .acct .me .live-dot.off{animation:none} }
@media (max-width:1640px){ .topbar .acct .me .av{max-width:78px} .topbar .acct .me>button{padding:0 12px} }
.menu .greet{padding:12px 12px 4px;display:flex;flex-direction:column;gap:2px}
.menu .greet b{font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.is-pro:not([data-theme="light"]) .menu .greet b{background:var(--gold-num, var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.menu .greet span{font-size:13px;color:var(--ink-3)}
.menu .offline{margin:6px 10px;padding:8px 10px;border-radius:8px;background:rgba(240,97,78,.12);color:#F4907E;font-size:13px;display:flex;gap:6px;align-items:flex-start}
.menu .offline .ic{width:15px;height:15px;flex:none;margin-top:1px}
.tabs a{position:relative}
.tabs a .tabcount{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;font-size:12px;font-weight:700;line-height:1;
  background:var(--gold, #E6B64C);color:#1A1207;margin-left:2px;box-shadow:0 2px 8px -2px rgba(236,170,60,.6)}
.more-feats{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:4px 14px}
.more-feats summary{cursor:pointer;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;list-style:none}
.more-feats summary::-webkit-details-marker{display:none}
.more-feats summary::after{content:"▾";margin-left:auto;color:var(--ink-3);transition:transform .15s}
.more-feats[open] summary::after{transform:rotate(180deg)}
.more-feats summary .muted{font-size:13.5px}
.more-feats .fgrid{padding:4px 0 14px}
.menu .who .em{overflow-wrap:anywhere;color:var(--ink-2)}
.menu .who .kv2{display:flex;justify-content:space-between;gap:10px;margin-top:3px;font-size:13px}
.menu .who strong{color:var(--ink);font-weight:700;letter-spacing:.04em}
.menu .who{display:block}

/* ---------- account stack: date/time on top, an oval pill exactly as wide below ---------- */
@media (min-width:821px){
  .topbar .acct{display:grid !important;grid-template-rows:auto auto;justify-items:stretch;gap:7px;transform:translateY(-5px);width:max-content}
  .topbar .acct .clock{justify-content:center;font-size:13.5px !important;line-height:1.1}
  .topbar .acct .clock b{font-size:14px !important;font-weight:700;color:var(--ink)}
  .topbar .acct .clock span::after{margin-left:7px}
  .topbar .acct .me{display:block;width:100%}
  .topbar .acct .me>button{width:100%;min-width:72px;height:34px;padding:0 16px}
  .topbar .acct .me .av{max-width:100%;text-align:center}
}
@media (min-width:821px) and (max-width:1500px){ .topbar .acct .clock{font-size:12.5px !important} .topbar .acct .clock b{font-size:13px !important} }
@media (min-width:821px) and (max-width:1500px){ .topbar .acct .me>button{min-width:58px;padding:0 12px} }
@media (min-width:821px) and (max-width:1500px){ .tabs a{padding:0 6px} }
@media (min-width:821px){ .topbar .acct{align-self:center;align-content:center;height:auto;transform:translateY(-2px)} }
.topbar .acct{padding:0 !important;margin:0 !important;border:0 !important}
/* Pro companies: every feature in the one Pro box */
.pro-hero .pro-rest{margin-top:18px;padding-top:6px;border-top:1px solid rgba(247,215,126,.22)}
.pro-hero .pro-rest .section-title{margin-top:16px}
.pro-hero .pro-rest .more-feats{background:rgba(0,0,0,.12)}

/* ---------- reports: grouped picker ---------- */
.rpick{display:flex;flex-direction:column;gap:8px;padding:12px 14px;margin-bottom:12px}
.rgrp{display:grid;grid-template-columns:80px 1fr;align-items:center;gap:10px}
.rgl{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.rks{display:flex;flex-wrap:wrap;gap:6px}
.rks button{border:1px solid var(--line);background:none;color:var(--ink-2);border-radius:999px;padding:6px 13px;font:inherit;font-size:14px;cursor:pointer}
.rks button:hover{border-color:var(--line-strong);color:var(--ink)}
.rks button.on{background:var(--gold, var(--accent));color:#1A1207;border-color:transparent;font-weight:600}
.rnote{margin:0 0 10px}
@media (max-width:620px){ .rgrp{grid-template-columns:1fr} }
.steps-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;color:var(--ink-2)}
.wtiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-bottom:10px}
.wtiles div{border:1px solid var(--line);border-radius:10px;padding:8px 12px;display:flex;flex-direction:column}
.wtiles span{font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.wtiles b{font-size:20px;font-variant-numeric:tabular-nums}
.eodh{margin:18px 0 8px;font-size:15px}
.rview{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px 12px}
.rview .rks button{font-size:15px;padding:7px 18px}
.rview .f{margin:0} .rview .rone select{min-width:220px} .rview .rmore select{min-width:190px;color:var(--ink-2)}
.rone-h{display:flex;align-items:center;gap:12px;margin:4px 0 12px;font-size:20px}
@media (max-width:620px){ .rview .rone, .rview .rmore, .rview .rone select, .rview .rmore select{width:100%;min-width:0} .rview .spacer{display:none} }
.ccform{margin-top:8px}
.ccform .f{margin-bottom:6px}
.stripe-box{padding:9px 10px;min-height:38px}
.ccpanel{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.ccrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ccchip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);border-radius:8px;padding:5px 10px;font-size:14.5px}
.cardfile{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.who.dept{padding-left:14px} .dept-arrow{color:var(--ink-3);margin-right:2px}
.rview .rrep select{min-width:260px} .rview .rsub select{min-width:220px}
@media (max-width:620px){ .rview .rrep, .rview .rsub, .rview .rrep select, .rview .rsub select{width:100%;min-width:0} }
.check.pp{font-size:13px;margin-top:4px;gap:5px;white-space:nowrap}
.pu-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-2px 0 8px}
.pu-row:empty{display:none}
.pu-chip{cursor:pointer;border:1px solid var(--line-strong);background:none;color:var(--ink-2);font:inherit;font-size:13px}
.pu-chip.on{border-color:var(--gold, var(--accent));color:var(--ink)}
.clientcard .cphone b{font-weight:600}
.pickups{display:flex;flex-direction:column;gap:8px}
.pickup{display:grid;grid-template-columns:auto 1fr 1.3fr 1.6fr 1fr 1.2fr auto;gap:6px;align-items:center}
.pu-def{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ink-2);white-space:nowrap}
@media (max-width:900px){ .pickup{grid-template-columns:1fr 1fr;padding-bottom:8px;border-bottom:1px solid var(--line)} .pickup [data-k=addr]{grid-column:span 2} }
.cphone{display:inline-flex;align-items:center;gap:4px}
.cphone-in{height:28px;width:150px;padding:0 8px;font-weight:600;background:transparent;border-color:transparent}
.cphone-in:hover{border-color:var(--line)} .cphone-in:focus{border-color:var(--gold, var(--accent));background:var(--bg-2, transparent)}
.cphone-in.saved{border-color:var(--green, #3CC586)}
/* Extra Charges: fixed column widths so Code, Kind and the amounts never get squeezed; Name takes the rest.
   Narrower screens scroll the table sideways inside its box, never the page. */
.charges-table{table-layout:fixed;width:100%;min-width:900px}
table.t.charges-table th{white-space:normal;line-height:1.25;vertical-align:bottom;letter-spacing:.06em}
.charges-table th:last-child{width:40px}
table.t.charges-table th, table.t.charges-table td{padding-left:6px;padding-right:6px}
table.t.charges-table th:first-child, table.t.charges-table td:first-child{padding-left:14px}
.charges-table td .in{min-width:0;width:100%}
.charges-table td:has(input[type=checkbox]){text-align:center}
.charges-table th:nth-child(n+8){text-align:center}
.pane, .pfold, .fold-body, .pfolds{min-width:0}
.z2z{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.z2z [data-z2zbody] .card{margin-top:10px}
.mrc-box{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.mrc-box .tablewrap{margin-top:10px}
.mrc td .money-in{min-width:84px}
.paynote{font-size:13px;color:var(--ink-2);margin:3px 0;padding:3px 8px;border-left:2px solid var(--gold, var(--accent));max-width:420px}
/* page columns never grow past the screen: wide things (tables, button rows) scroll inside their own box */
.detail > .stack, .detail > aside{min-width:0}
.detail .seg{max-width:100%;overflow-x:auto}
/* editable tables keep every box usable on a phone; the table scrolls sideways in its box instead */
.edit-table td .in{min-width:72px}
.edit-table td select.in{min-width:96px}
.edit-table td .in[data-k=name]{min-width:150px}
@media (max-width:620px){ .seg[data-ptype]{flex-wrap:wrap;height:auto} .seg[data-ptype] button{flex:1 1 auto} }
/* Extra Charges editor */
.ch-table{table-layout:fixed;width:100%;min-width:880px}
table.t.ch-table th, table.t.ch-table td{padding-left:6px;padding-right:6px;vertical-align:middle}
table.t.ch-table th:first-child, table.t.ch-table td:first-child{padding-left:14px}
.ch-table th:nth-child(1){width:44px} .ch-table th:nth-child(2){width:96px} .ch-table th:nth-child(4){width:132px}
.ch-table th:nth-child(5){width:256px} .ch-table th:nth-child(6){width:206px} .ch-table th:nth-child(7){width:40px}
table.t.ch-table .ch-name{field-sizing:content;height:auto;max-height:none;resize:none;min-height:32px;padding-top:6px;padding-bottom:6px;line-height:1.3;overflow:hidden;display:block}
.ch-table .c{text-align:center} .ch-table td.c input{width:17px;height:17px;accent-color:var(--accent)}
.ch-table .in{min-width:0;width:100%}
.ch-charge{display:flex;gap:6px;align-items:flex-start}
.ch-charge > select{flex:0 0 120px}
.ch-charge > .ch-amt{flex:1 1 90px}
.ch-amt .in{min-width:0;height:32px;font-size:15px}
.ch-each{display:grid;grid-template-columns:repeat(2, 1fr);gap:4px 6px;flex:1}
.ch-each label{display:flex;flex-direction:column;gap:1px} .ch-each small{font-size:11px;color:var(--ink-3);letter-spacing:.04em}
.ch-off td:not(:first-child){opacity:.45}

table.t.ch-table td .in{min-width:0}
/* by vehicle: the choice on top, the four prices in a row under it */
.ch-charge.each{flex-direction:column;align-items:stretch}
.ch-charge.each > select{flex:none;width:100%}
.ch-charge.each .ch-each{grid-template-columns:repeat(4, minmax(0, 1fr))}
.ch-each .money-in .in{min-width:0;padding-left:16px;padding-right:6px}
.ch-each .money-in > span{left:6px;font-size:12.5px}
/* the price grid: equal zone columns that share the width, so every zone fits; a phone scrolls it in its box */
.pgrid{table-layout:fixed;width:100%;min-width:720px}
.pgrid thead th:first-child{width:128px}
.pgrid thead th:last-child{width:76px}
.pgrid .zh small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pgrid .money-in .in{min-width:0}
.pgrid .sv{width:100%}
.pgrid .zh{min-width:0;width:100%;overflow:hidden}
