:root{
  --ink:#141a2b; --ink-2:#2a3149; --muted:#5b6275; --bg:#f6f2ea; --paper:#fffdf9; --rule:#e3ddd0; --rule-2:#efeadf;
  --accent:#ffc629; --accent-ink:#141a2b; --accent-soft:#fbecc0;
  --green:#14733f; --green-bg:#e3f4ea; --amber:#7a5200; --amber-bg:#fdf0cf; --red:#a3261b; --red-bg:#fbe4e1; --blue:#1f4a8f; --blue-bg:#e3ecfb;
  --radius:14px; --radius-sm:9px; --shadow:0 1px 2px rgba(20,26,43,.06),0 4px 14px rgba(20,26,43,.05);
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --nav-w:236px; --bottom-h:64px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:15px/1.5 var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0;line-height:1.2;letter-spacing:-.01em}
h1{font-size:1.65rem;font-weight:700} h2{font-size:1.1rem;font-weight:650} h3{font-size:.95rem;font-weight:650}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #2a5bd7;outline-offset:2px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 12px;border-radius:8px;z-index:100}
.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)} .small{font-size:.85rem} .nowrap{white-space:nowrap}
.noscript{padding:24px}

/* ---------- shell ---------- */
.shell{display:grid;grid-template-columns:var(--nav-w) 1fr;min-height:100vh}
.side{background:var(--ink);color:#e8eaf2;padding:20px 14px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px;text-decoration:none;color:#fff}
.brand svg{width:34px;height:34px;flex:none}
.brand b{display:block;font-size:1.05rem;letter-spacing:-.01em}
.brand span{display:block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#aab0c6}
.nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;text-decoration:none;color:#cfd3e3;font-weight:550}
.nav a svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.nav a[aria-current=page]{background:var(--accent);color:var(--accent-ink)}
.nav .count{margin-left:auto;font-size:.75rem;background:rgba(255,255,255,.14);padding:1px 8px;border-radius:99px}
.nav a[aria-current=page] .count{background:rgba(20,26,43,.15)}
.side .foot{margin-top:auto;font-size:.8rem;color:#98a0ba;padding:8px}
.main{padding:28px clamp(16px,3vw,40px) 60px;max-width:1280px;width:100%}
.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.topbar p{margin:4px 0 0;color:var(--muted)}
.mobile-head{display:none}
.bottom{display:none}

/* ---------- generic ---------- */
.card{background:var(--paper);border:1px solid var(--rule);border-radius:var(--radius);box-shadow:var(--shadow)}
.card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--rule-2)}
.card .pad{padding:16px 18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border-radius:10px;border:1px solid var(--rule);background:var(--paper);font-weight:600;cursor:pointer;text-decoration:none;line-height:1.2}
.btn:hover{border-color:#c9c1ae;background:#fff}
.btn.primary{background:var(--accent);border-color:#e0ac15;color:var(--accent-ink)}
.btn.primary:hover{background:#ffd04d}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.quiet{border-color:transparent;background:transparent;color:var(--muted)}
.btn.quiet:hover{background:var(--rule-2);color:var(--ink)}
.btn.sm{min-height:34px;padding:5px 12px;font-size:.88rem}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.pill{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:99px;font-size:.78rem;font-weight:650;background:var(--rule-2);color:var(--ink-2);white-space:nowrap}
.pill.s-prospect{background:#ece9e0}
.pill.s-called{background:var(--blue-bg);color:var(--blue)}
.pill.s-check-sent{background:var(--accent-soft);color:#6b4b00}
.pill.s-follow-up{background:#fde3c8;color:#7a3b00}
.pill.s-quoted{background:#e6dcf8;color:#4b2a8a}
.pill.s-building{background:#d8eef3;color:#0d5766}
.pill.s-care-client{background:var(--green-bg);color:var(--green)}
.pill.s-lost{background:var(--red-bg);color:var(--red)}
.score{display:inline-flex;align-items:baseline;gap:4px;padding:2px 9px;border-radius:8px;font-size:.8rem;font-weight:700;white-space:nowrap}
.score small{font-weight:600;opacity:.8}
.score.good{background:var(--green-bg);color:var(--green)} .score.mid{background:var(--amber-bg);color:var(--amber)} .score.low{background:var(--red-bg);color:var(--red)}
.empty{padding:28px 18px;text-align:center;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-weight:600;font-size:.88rem}
.input,select.input,textarea.input{width:100%;min-height:42px;padding:9px 12px;border-radius:10px;border:1px solid #cfc8b6;background:#fff}
textarea.input{min-height:90px;resize:vertical}
.input:focus{border-color:#2a5bd7}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* ---------- today ---------- */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
.tile{padding:14px 18px;border-radius:var(--radius);background:var(--paper);border:1px solid var(--rule);box-shadow:var(--shadow)}
.tile b{display:block;font-size:1.9rem;line-height:1.1;font-weight:750;letter-spacing:-.02em}
.tile span{color:var(--muted);font-size:.85rem}
.tile.hot{background:var(--ink);border-color:var(--ink);color:#fff} .tile.hot span{color:#b6bcd2}
.today-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:20px;align-items:start}
.seg{display:none}
.tier-h{display:flex;align-items:baseline;gap:10px;margin:22px 0 10px}
.tier-h:first-child{margin-top:0}
.tier-h h2{font-size:1rem}
.tier-h span{color:var(--muted);font-size:.85rem}
.call{position:relative;padding:14px 16px 14px 20px;margin-bottom:12px;overflow:hidden}
.call::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--rule)}
.call.t1::before{background:#7c4dd8}.call.t2::before{background:var(--accent)}.call.t3::before{background:#2a5bd7}.call.t4::before{background:#e07a1f}.call.t5::before{background:#b9b19c}
.call-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.call h3{font-size:1.05rem}
.call h3 a{text-decoration:none}.call h3 a:hover{text-decoration:underline}
.call .why{margin:2px 0 0;color:var(--ink-2);font-size:.9rem}
.call .opener{margin:10px 0 0;padding:9px 12px;background:#faf6ec;border-radius:10px;font-size:.9rem;color:var(--ink-2)}
.call .opener b{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:2px}
.callbtn{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border-radius:10px;background:var(--ink);color:#fff;text-decoration:none;font-weight:650;white-space:nowrap}
.callbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.callbtn.none{background:var(--rule-2);color:var(--muted)}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.outcomes{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin-top:12px}
.oc{min-height:46px;border-radius:10px;border:1px solid var(--rule);background:#fff;font-weight:650;cursor:pointer;padding:6px 8px;line-height:1.15}
.oc:hover{filter:brightness(.97);border-color:#bdb59f}
.oc.Y{background:var(--green);border-color:var(--green);color:#fff}
.oc.B{background:var(--amber-bg);border-color:#ecd48f;color:var(--amber)}
.oc.V,.oc.M{background:#efede6;color:var(--ink-2)}
.oc.N{background:var(--blue-bg);border-color:#bcd0f1;color:var(--blue)}
.oc.F{background:var(--red-bg);border-color:#f0bdb7;color:var(--red)}
.oc.X{background:#fff;border:2px solid var(--red);color:var(--red)}
.oc[aria-pressed=true]{outline:3px solid #2a5bd7;outline-offset:1px}
.datebar{display:none;margin-top:10px;padding:10px;border-radius:10px;background:#f4f0e6;gap:8px;flex-wrap:wrap;align-items:center}
.panel[data-pending] .datebar{display:flex}
.datebar .lead{width:100%;font-weight:650;font-size:.88rem}
.chip{min-height:38px;padding:6px 14px;border-radius:99px;border:1px solid #cfc8b6;background:#fff;font-weight:600;cursor:pointer}
.chip:hover{background:var(--accent-soft)}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.datebar input[data-datepick]{width:120px;min-height:38px;border-radius:10px;border:1px solid #cfc8b6;padding:4px 8px;background:#fff}
.review{border:1px solid #f0bdb7;background:#fff7f5;border-radius:var(--radius);padding:14px 16px;margin-bottom:16px}
.review h2{color:var(--red);font-size:1rem;margin-bottom:8px}
.review .item{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #f4d5d0}
.review .item:first-of-type{border-top:0}
.more{display:block;width:100%;margin:6px 0 4px}

/* to-dos */
.todo-list{list-style:none;margin:0;padding:0}
.todo{display:flex;gap:12px;align-items:flex-start;padding:12px 18px;border-top:1px solid var(--rule-2)}
.todo:first-child{border-top:0}
.todo input[type=checkbox]{width:22px;height:22px;margin-top:2px;accent-color:#14733f;flex:none;cursor:pointer}
.todo .t{flex:1;min-width:0}
.todo .t b{font-weight:600;word-break:break-word}
.todo.done .t b{text-decoration:line-through;color:var(--muted)}
.todo .meta{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin-top:2px}
.todo .meta .over{color:var(--red);font-weight:650}
.by{display:inline-flex;align-items:center;gap:5px}
.by i{width:8px;height:8px;border-radius:50%;background:#aaa;display:inline-block}
.by.michael i{background:var(--accent);box-shadow:0 0 0 1px #c99800}.by.stan i{background:#2a5bd7}.by.devon i{background:#14733f}.by.dorothy i{background:#a02a7a}
.addrow{display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--rule-2)}
.addrow .input{flex:1}
.up li{display:flex;justify-content:space-between;gap:10px;padding:9px 18px;border-top:1px solid var(--rule-2);font-size:.9rem}
.up li:first-child{border-top:0}
.up{list-style:none;margin:0;padding:0}
.stagecounts{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px}
.stagecounts a{text-decoration:none}

/* ---------- businesses ---------- */
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;align-items:center}
.search{position:relative;flex:1;min-width:220px}
.search input{padding-left:38px}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round}
.stagefilter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.blist{display:flex;flex-direction:column}
.brow{display:grid;grid-template-columns:minmax(0,2.4fr) 110px 120px 140px 130px;gap:12px;align-items:center;padding:12px 18px;border-top:1px solid var(--rule-2);text-decoration:none}
.brow:first-child{border-top:0}
.brow:hover{background:#fbf8f0}
.brow.head{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;background:#faf6ec;border-radius:var(--radius) var(--radius) 0 0}
.brow.head:hover{background:#faf6ec}
.brow .n b{display:block;font-weight:650}
.brow .n span{color:var(--muted);font-size:.85rem}

/* ---------- business page ---------- */
.bhead{padding:20px 22px;margin-bottom:18px;display:flex;gap:18px;justify-content:space-between;flex-wrap:wrap;align-items:flex-start}
.bhead h1{margin-bottom:4px}
.bgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px;align-items:start}
.stack{display:flex;flex-direction:column;gap:18px}
.dl{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;margin:0}
.dl dt{color:var(--muted);font-size:.85rem;padding-top:2px}.dl dd{margin:0;word-break:break-word}
.dl a{color:#1d4ed8}
.check{padding:16px 18px;border-top:1px solid var(--rule-2)}
.check:first-of-type{border-top:0}
.check h3{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.bars{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.bar{padding:10px 12px;border-radius:10px;background:#faf6ec}
.bar b{font-size:1.3rem;font-weight:750}
.bar small{color:var(--muted);display:block;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.meter{height:6px;border-radius:99px;background:#e8e2d3;margin-top:6px;overflow:hidden}
.meter i{display:block;height:100%;background:var(--green);border-radius:99px}
.meter.mid i{background:#e0a21a}.meter.low i{background:#d1442f}
.w0{width:0}.w1{width:10%}.w2{width:20%}.w3{width:30%}.w4{width:40%}.w5{width:50%}.w6{width:60%}.w7{width:70%}.w8{width:80%}.w9{width:90%}.w10{width:100%}
details.items summary{cursor:pointer;font-weight:600;font-size:.9rem;padding:4px 0}
.items ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.items li{display:grid;grid-template-columns:34px 22px 1fr;gap:6px;font-size:.88rem}
.items .id{color:var(--muted);font-weight:700}
.ok{color:var(--green);font-weight:800}.no{color:var(--red);font-weight:800}
.timeline{list-style:none;margin:0;padding:6px 18px 12px}
.timeline li{position:relative;padding:12px 0 12px 26px;border-top:1px solid var(--rule-2)}
.timeline li:first-child{border-top:0}
.timeline li::before{content:"";position:absolute;left:3px;top:19px;width:10px;height:10px;border-radius:50%;background:#cfc8b6}
.timeline li.k-call::before{background:#2a5bd7}.timeline li.k-check::before{background:var(--accent);box-shadow:0 0 0 1px #c99800}.timeline li.k-stage::before{background:#7c4dd8}.timeline li.k-text::before{background:#14733f}
.timeline .when{font-size:.8rem;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.timeline .what{margin-top:2px;white-space:pre-wrap;word-break:break-word}
.tag{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;font-weight:700;color:var(--muted);background:var(--rule-2);padding:1px 7px;border-radius:99px}

/* ---------- pipeline ---------- */
.board{display:grid;grid-template-columns:repeat(8,minmax(230px,1fr));gap:12px;overflow-x:auto;padding-bottom:12px;align-items:start}
.col{background:#ede7d8;border-radius:var(--radius);padding:10px;min-height:140px}
.col.over{outline:3px dashed #2a5bd7;outline-offset:-3px}
.col h2{font-size:.85rem;display:flex;justify-content:space-between;padding:4px 6px 10px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-2)}
.pc{background:var(--paper);border:1px solid var(--rule);border-radius:12px;padding:11px 12px;margin-bottom:8px;box-shadow:0 1px 2px rgba(20,26,43,.06)}
.pc[draggable=true]{cursor:grab}
.pc b{display:block;line-height:1.25}
.pc b a{text-decoration:none}.pc b a:hover{text-decoration:underline}
.pc .meta{font-size:.8rem;color:var(--muted);margin-top:3px}
.pc select{margin-top:8px;width:100%;min-height:34px;border-radius:8px;border:1px solid var(--rule);background:#fff;font-size:.85rem;padding:2px 6px}
.coltabs{display:none}

/* ---------- misc ---------- */
.login{min-height:100vh;display:grid;place-items:center;padding:20px}
.login .card{width:min(400px,100%);padding:28px}
.login .brand{color:var(--ink);padding:0 0 18px}
.login .brand span{color:var(--muted)}
.err{color:var(--red);font-weight:600;min-height:1.4em}
#toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:22px;display:flex;flex-direction:column;gap:8px;z-index:60;width:min(520px,calc(100% - 24px));pointer-events:none}
.toast{pointer-events:auto;background:var(--ink);color:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 8px 28px rgba(20,26,43,.35);display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;animation:up .18s ease-out}
.toast .acts{display:flex;gap:6px}
.toast button{background:rgba(255,255,255,.14);border:0;color:#fff;border-radius:8px;min-height:34px;padding:4px 12px;font-weight:650;cursor:pointer}
.toast button:hover{background:rgba(255,255,255,.26)}
.toast.bad{background:var(--red)}
@keyframes up{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
dialog#sheet{border:0;border-radius:18px;padding:0;width:min(480px,calc(100% - 24px));box-shadow:0 20px 60px rgba(20,26,43,.4);background:var(--paper);color:var(--ink)}
dialog#sheet::backdrop{background:rgba(20,26,43,.5)}
dialog#sheet form{padding:22px}
dialog#sheet h2{margin-bottom:14px}
dialog#sheet .acts{display:flex;gap:8px;justify-content:flex-end;margin-top:6px}
table.t{width:100%;border-collapse:collapse;font-size:.88rem}
table.t th{text-align:left;color:var(--muted);font-weight:650;padding:6px 8px;border-bottom:1px solid var(--rule)}
table.t td{padding:7px 8px;border-bottom:1px solid var(--rule-2);vertical-align:top}
.kv{display:flex;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid var(--rule-2)}
.kv:first-child{border-top:0}

/* ---------- tablet and phone ---------- */
@media (max-width:1100px){
  .today-grid,.bgrid{grid-template-columns:1fr}
  .brow{grid-template-columns:minmax(0,2fr) 100px 120px 120px}
  .brow .last{display:none}
}
@media (max-width:820px){
  .shell{display:block}
  .side{display:none}
  .main{padding:0 14px calc(var(--bottom-h) + 24px)}
  .mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(14px,env(safe-area-inset-top)) 2px 10px;position:static}
  .mobile-head .brand{padding:0}
  .mobile-head .brand svg{width:30px;height:30px}
  .mobile-head .brand span{display:none}
  .mobile-head .brand b{color:var(--ink)}
  .topbar{margin-bottom:14px}
  h1{font-size:1.4rem}
  .bottom{display:grid;grid-template-columns:repeat(6,1fr);position:fixed;left:0;right:0;bottom:0;height:calc(var(--bottom-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--ink);z-index:40;border-top:1px solid #2a3149}
  .bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#aab0c6;text-decoration:none;font-size:.7rem;font-weight:600;position:relative}
  .bottom a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .bottom a[aria-current=page]{color:var(--accent)}
  .bottom a[aria-current=page]::before{content:"";position:absolute;top:0;width:28px;height:3px;background:var(--accent);border-radius:0 0 3px 3px}
  .tiles{grid-template-columns:repeat(3,1fr);gap:8px}
  .tile{padding:10px 12px}.tile b{font-size:1.5rem}.tile span{font-size:.75rem}
  .seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#e7e0cf;border-radius:12px;padding:4px;margin-bottom:14px}
  .seg button{min-height:42px;border:0;border-radius:9px;background:transparent;font-weight:650;cursor:pointer}
  .seg button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 3px rgba(20,26,43,.18)}
  .today-grid[data-tab=calls] .col-todos{display:none}
  .today-grid[data-tab=todos] .col-calls{display:none}
  .call{padding:14px 14px 14px 18px}
  .callbtn{width:100%;justify-content:center}
  .call-top{display:block}
  .call-top .callbtn{margin-top:10px}
  .outcomes{grid-template-columns:repeat(2,1fr)}
  .oc.X{grid-column:span 2}
  .brow{display:flex;flex-wrap:wrap;gap:6px 10px;padding:13px 16px}
  .brow.head{display:none}
  .brow .n{flex:1 1 100%}
  .brow .last{display:none}
  .bhead{padding:16px}
  .bars{grid-template-columns:1fr 1fr}
  .dl{grid-template-columns:96px 1fr}
  .board{display:block;overflow:visible}
  .coltabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:12px;padding-bottom:4px}
  .coltabs .chip{white-space:nowrap}
  .board .col{display:none;background:transparent;padding:0}
  .board .col.active{display:block}
  .board .col h2{display:none}
  #toasts{bottom:calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom))}
  .todo{padding:12px 14px}.addrow{padding:12px 14px;flex-wrap:wrap}
  .card>header{padding:12px 14px}.card .pad{padding:14px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{.side,.bottom,.mobile-head{display:none}}

.narrow{max-width:760px}.narrow.wide{max-width:820px}.dpick{max-width:150px}.input.auto{width:auto}.padded{padding:6px}.full{width:100%}.topgap{margin-top:12px}
@media(min-width:821px){.board .col{max-height:calc(100vh - 190px);overflow-y:auto}}
.score small{opacity:1}
.side .foot .btn.quiet{color:#c9cfe4}

/* v1.1 additions */
.only-phone{display:none}
@media (max-width:760px){.only-desktop{display:none}.only-phone{display:inline}}
.nextact{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:#eef3ff;border:1px solid #cbd9f6;font-size:.95rem}
.nextact b{display:block;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);margin-bottom:2px}
.nextcard{padding:0;margin-bottom:16px}.nextcard .nextact{margin:0;border:0;background:transparent;padding:14px 18px}
.quick{margin-top:10px;gap:8px;flex-wrap:wrap}
.tally{margin:-8px 0 16px;color:var(--muted);font-size:.9rem}.tally b{color:var(--ink)}
.age{font-size:.8rem;color:var(--muted)} .age.flag{color:#8a4b00;background:var(--amber-bg);border:1px solid #ecd48f;border-radius:999px;padding:2px 9px;font-weight:650}
.away{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 18px;border-radius:var(--radius);background:var(--blue-bg);border:1px solid #bcd0f1;color:#1d3f8f;margin-bottom:16px}
.review.pend{background:var(--amber-bg);border-color:#ecd48f}
.review.parkbox{background:#f4f0e6;border-color:var(--rule)}
.pill.s-parked{background:#e4e0d3;color:#4b4a42}
.checknote{margin:4px 18px 0;font-size:.85rem;color:#8a4b00}
.datebar .chip{display:inline-flex;flex-direction:column;align-items:center;line-height:1.15;padding:6px 12px}
.datebar .chip small,.chips .chip small{font-size:.7rem;font-weight:500;opacity:.8}
.chip[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.input.num{width:90px}
.review.pend h2,.review.parkbox h2{color:var(--ink)}
.pklist{list-style:none;margin:0;padding:0}.pklist li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--rule)}.pklist li:first-child{border-top:0}
.login .codebox{margin-top:16px;padding-top:14px;border-top:1px solid var(--rule)}
.input.code{font-size:1.5rem;letter-spacing:.35em;text-align:center}
.login .stack{display:flex;flex-direction:column;gap:12px}

/* ---------- phone: number links, call bar, outcome prompt, recordings ---------- */
.phones{display:flex;flex-direction:column;gap:8px}
.phone-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.phone-row .callbtn{flex:1 1 auto}
.callcrm{min-height:42px;border-color:var(--ink);color:var(--ink);background:var(--accent);border-color:#e0ac15}
.recrow{margin-top:6px}
audio.rec{width:100%;max-width:420px;height:40px}
.recnote{display:inline-block;font-size:.85rem;color:var(--muted)}
.recnote.warn{color:var(--red);font-weight:600}
.callbar{position:fixed;z-index:50;right:20px;bottom:20px;width:min(380px,calc(100% - 24px));background:var(--ink);color:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 12px 36px rgba(20,26,43,.45);display:grid;grid-template-columns:1fr auto;gap:10px 12px;align-items:center}
.callbar[hidden]{display:none}
.cb-info{display:flex;flex-direction:column;min-width:0}
.cb-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cb-state{color:#c9cee0;font-size:.9rem}
.callbar[data-state=connected] #cb-state{color:#7fe3a6}
.cb-btns{display:flex;gap:8px}
.callbar .btn{background:rgba(255,255,255,.14);border-color:transparent;color:#fff}
.callbar .btn[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.callbar .btn.danger{background:#c0392b;color:#fff}
.cb-help{grid-column:1/-1;margin:0;color:#c9cee0;font-size:.8rem}
dialog#sheet .prompt{padding:22px}
dialog#sheet .prompt .panel{margin-top:6px}
@media (max-width:760px){p.only-phone,div.only-phone{display:block}}
@media (max-width:820px){.callbar{left:12px;right:12px;width:auto;bottom:calc(var(--bottom-h) + env(safe-area-inset-bottom) + 10px)}}
/* the visible recording light on the call bar */
.cb-rec{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:700;color:#ffd1d1;margin-top:2px}
.cb-rec[hidden]{display:none}
.cb-rec::before{content:"";width:10px;height:10px;border-radius:50%;background:#ff4d4d;box-shadow:0 0 0 0 rgba(255,77,77,.7);animation:recpulse 1.6s infinite}
.cb-rec[data-st=saved]{color:#c9cee0}.cb-rec[data-st=saved]::before{background:#7fe3a6;animation:none}
.cb-rec[data-st=trouble],.cb-rec[data-st=unavailable]{color:#ffd78a}.cb-rec[data-st=trouble]::before,.cb-rec[data-st=unavailable]::before{background:#ffb02e;animation:none}
@keyframes recpulse{70%{box-shadow:0 0 0 8px rgba(255,77,77,0)}100%{box-shadow:0 0 0 0 rgba(255,77,77,0)}}
@media (prefers-reduced-motion:reduce){.cb-rec::before{animation:none}}
b.warn{color:#9a1f1f}

/* cost and time */
.costform{padding:14px 18px;border-bottom:1px solid var(--rule-2);display:flex;flex-direction:column;gap:4px}
.costform-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.costform-grid .field{margin-bottom:10px;min-width:0}.costform-grid .span2{grid-column:1/-1}
.costform-grid small{font-size:.78rem}
.costform .btn{align-self:flex-start}
.costsum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 18px 6px}
.costsum div{background:var(--bg);border-radius:var(--radius-sm);padding:8px 12px}
.costsum b{display:block;font-size:1.3rem;line-height:1.2;letter-spacing:-.01em}.costsum span{color:var(--muted);font-size:.8rem}
.months{margin:6px 18px 0}.months .pad{padding:8px 0}
.cost-list{list-style:none;margin:6px 0 0;padding:0}
.cost-list li{display:flex;gap:10px;align-items:flex-start;padding:12px 18px;border-top:1px solid var(--rule-2)}
.cost-list .ct{flex:1;min-width:0}.cost-list .ct b{font-weight:600;word-break:break-word}
.cost-list .meta{display:flex;gap:4px 10px;flex-wrap:wrap;align-items:center;font-size:.8rem;color:var(--muted);margin-top:3px}
.cost-list .cv{text-align:right;white-space:nowrap}.cost-list .cv b{display:block}.cost-list .cv span{color:var(--muted);font-size:.85rem}
.cost-list .ca{display:flex;flex-direction:column}
table.t .r,table.t th.r{text-align:right;white-space:nowrap}
h3.sub{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}h3.sub:first-child{margin-top:0}
@media (max-width:820px){.costform{padding:12px 14px}.costsum{padding:12px 14px 4px}.costsum b{font-size:1.1rem}.cost-list li{padding:12px 14px}.months{margin:6px 14px 0}
  .bottom a{font-size:.66rem}}
