/* Bob · the owner's simple front end (simple.js; Apex). Same navy + cyan tokens as bob.css; bigger type, big tap targets. */
html.simple body{font-size:16px}
html.simple .status .pilot,html.simple .mstatus .pilot{display:none}

/* morning line */
.sm-morning{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--line-2);border-radius:var(--r);
  background:linear-gradient(135deg,rgba(45,107,255,.16),rgba(25,224,255,.06));box-shadow:var(--glow)}
.sm-morning:empty{display:none}
.sm-hello{font-size:1.25rem;font-weight:800;letter-spacing:-.02em}
.sm-line{color:var(--body);font-weight:600}
.sm-h{font-size:1rem;font-weight:800;margin:4px 0 0;display:flex;align-items:center;gap:8px}
.sm-n{font:600 .74rem var(--mono);color:var(--cyan)}
.sm-cards{display:flex;flex-direction:column;gap:12px}
.sm-cards:empty{display:none}

/* Bob's question cards */
.sm-card{border:1px solid var(--line-2);border-radius:16px;background:var(--surface);padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;
  transition:opacity .3s,transform .3s}
.sm-card.leaving{opacity:0;transform:translateY(-6px)}
.sm-who{align-self:flex-start;border:0;background:none;padding:0;color:var(--blue);font-weight:700;font-size:.92rem}
.sm-q{margin:0;font-size:1.12rem;font-weight:700;line-height:1.35;color:var(--fg)}
.sm-btn{min-height:52px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--fg);font-weight:700;font-size:1rem;padding:10px 14px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s var(--ease),background-color .15s}
.sm-btn:active{transform:scale(.97)}
.sm-btn:disabled{opacity:.5}
.sm-btn.yes{border:0;color:var(--ink);background:linear-gradient(135deg,var(--cyan),var(--electric));box-shadow:0 6px 20px -8px rgba(45,107,255,.7)}
.sm-btn.no{border-color:rgba(255,107,125,.45);color:#ffd3d9}
.sm-btn.ghost{background:transparent}
.sm-btn.wide{width:100%}
.sm-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sm-row3{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}
.sm-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sm-grid .sm-btn:last-child:nth-child(odd){grid-column:1 / -1}
.sm-step{display:flex;flex-direction:column;gap:8px}
.sm-step:empty{display:none}
.sm-l{font-weight:700;font-size:.95rem;margin:4px 0 0;color:var(--fg)}
.sm-in{width:100%;min-height:52px;border-radius:12px;border:1px solid var(--line-2);background:rgba(5,8,16,.6);color:var(--fg);font:600 1.1rem var(--font);padding:10px 14px}
.sm-in:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(25,224,255,.18)}
.sm-money{display:flex;align-items:center;gap:8px}
.sm-money span{font:700 1.3rem var(--mono);color:var(--cyan)}
.sm-chips{display:flex;flex-wrap:wrap;gap:8px}
.sm-chip{min-height:46px;padding:8px 14px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--body);font-weight:700;font-size:.92rem}
.sm-chip.on{border-color:var(--cyan);background:rgba(25,224,255,.14);color:var(--fg)}
.sm-time{width:auto;min-width:130px;min-height:46px;font-size:1rem}
.sm-text{display:flex;flex-direction:column;gap:8px}
.sm-text label{font-weight:700;font-size:.92rem}
.sm-text textarea{width:100%;border-radius:12px;border:1px solid var(--line-2);background:rgba(5,8,16,.6);color:var(--fg);font:500 1rem/1.45 var(--font);padding:10px 12px;resize:vertical}
.sm-confirm{border:1px solid var(--line-2);border-radius:12px;padding:10px 12px;background:var(--surface-2)}
.sm-confirm p{margin:0 0 8px}

/* Customers + Estimates */
.sm-head h1{margin:0}
.sm-head .hint{font-size:.9rem;margin:2px 0 0}
.sm-search{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 14px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--muted)}
.sm-search:focus-within{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(25,224,255,.15)}
.sm-search input{flex:1;min-width:0;border:0;background:none;color:var(--fg);font:600 1.1rem var(--font);outline:none}
.sm-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface)}
.sm-list .empty{border:0}
.sm-item{display:flex;align-items:stretch;border-top:1px solid var(--line)}
.sm-item:first-child{border-top:0}
.sm-open{flex:1;min-width:0;display:flex;gap:12px;align-items:center;min-height:70px;padding:10px 12px 10px 14px;background:none;border:0;text-align:left;color:inherit}
.sm-open:active{background:var(--surface-2)}
.sm-open .n{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-open .t{font:400 .72rem var(--mono);color:var(--dim);flex:none}
.sm-call{flex:none;width:64px;border:0;border-left:1px solid var(--line);background:none;color:var(--cyan);display:grid;place-items:center}
.sm-call:active{background:rgba(25,224,255,.12)}
.sm-pill{align-self:flex-start;display:inline-block;font:700 .7rem var(--font);letter-spacing:.02em;padding:2px 9px;border-radius:999px;background:var(--surface-3);color:var(--body);margin:1px 0}
.sm-pill.hot{background:rgba(25,224,255,.16);color:var(--cyan)}
.sm-new{display:flex;align-items:center;gap:12px;width:100%;min-height:70px;padding:10px 14px;border:0;border-bottom:1px solid var(--line);background:rgba(25,224,255,.07);color:var(--fg);text-align:left}
.sm-new span{display:flex;flex-direction:column}
.sm-group{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
details.sm-group summary{cursor:pointer;font-weight:800;color:var(--muted);list-style:none;min-height:44px;display:flex;align-items:center;gap:8px}
.sm-erow{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;text-align:left}
.sm-erow.today{border-color:rgba(25,224,255,.5)}
.sm-erow .n{font-weight:700}
.sm-right{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font:700 .95rem var(--font);color:var(--fg)}

/* the person sheet: Call bar */
.sm-cbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line)}
.sm-cbar .sm-from{grid-column:1 / -1;margin:0}
.sm-cbar .sm-step{grid-column:1 / -1}
.sm-cbar:empty{display:none}
/* the person's details card (top of the sheet): closed = a few words, open = everything; the bar scrolls so the chat keeps room */
.sm-cbar{max-height:62vh;overflow-y:auto;overscroll-behavior:contain;grid-auto-rows:max-content;flex:none}
.sm-pcard{grid-column:1 / -1;border:1px solid var(--line-2);border-radius:14px;background:var(--surface-2)}
.sm-pcard-sk{height:44px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent);background-size:200% 100%;animation:smSk 1.2s infinite}
@keyframes smSk{to{background-position:-200% 0}}
.sm-ptoggle{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:48px;cursor:pointer}
.sm-ptoggle:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.sm-ppeek{flex:1;min-width:0;font-size:.95rem;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sm-pcard.open .sm-ppeek{white-space:normal}
.sm-pmore{flex:none;font-size:.85rem;color:var(--cyan);font-weight:600}
.sm-pfull{display:none;padding:0 14px 14px;flex-direction:column;gap:2px}
.sm-pcard.open .sm-pfull{display:flex}
.sm-prow{display:grid;grid-template-columns:76px 1fr;gap:10px;align-items:baseline;padding:9px 0;border-top:1px solid var(--line)}
.sm-plabel{font-size:.8rem;color:var(--muted)}
.sm-pval{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:1rem;word-break:break-word}
.sm-plink{all:unset;cursor:pointer;color:var(--cyan);font-weight:600;font-size:1rem;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:normal}
.sm-plink:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:4px}
.sm-paddr{color:var(--fg)}
.sm-pval .sm-btn.small{justify-self:start;align-self:flex-start;min-height:40px;padding:6px 14px;font-size:.9rem}
.sm-pappt{margin-top:8px;padding:4px 12px 6px;border:1px solid rgba(25,224,255,.3);border-radius:12px;background:rgba(25,224,255,.05)}
.sm-pappt-h{margin:6px 0 2px;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cyan)}
.sm-pappt .sm-prow:first-of-type{border-top:0}
.sm-pnote{display:flex;gap:8px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--surface-3)}
.sm-pnote img{flex:none;border-radius:50%}
.sm-pnote p{margin:0;font-size:.92rem;color:var(--body)}
.sm-pnote b{display:block;color:var(--fg);font-size:.82rem;margin-bottom:2px}
.cx-who.sm-tap{cursor:pointer;border-radius:8px}
.cx-who.sm-tap:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
@media (max-width:420px){.sm-prow{grid-template-columns:64px 1fr}.sm-cbar{max-height:58vh}}

/* "How did the call go?" */
.sm-ask .sm-ask-card{width:min(440px,100%);padding:16px;display:flex;flex-direction:column;gap:10px}
.sm-ask .sm-card{border:0;padding:0;background:none}
.sm-later{align-self:center;border:0;background:none;color:var(--muted);font-weight:700;min-height:44px;padding:0 16px}

@media (max-width:860px){
  html.simple .for{display:flex;font-size:.72rem;color:var(--body)}       /* the business name + logo under BOB, not "Online" */
  html.simple .mstatus{display:none}
  .sm-q{font-size:1.08rem}
  .sm-row3{grid-template-columns:1fr 1fr}
  .sm-row3 .sm-btn:first-child{grid-column:1 / -1}
  .sm-ask{align-items:flex-end}
  .sm-ask .sm-ask-card{border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}
}

/* Estimates: List | Calendar */
.sm-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);max-width:360px}
.sm-seg button{min-height:46px;border:0;border-radius:10px;background:none;color:var(--muted);font:700 1rem var(--font)}
.sm-seg button.on{background:rgba(25,224,255,.14);color:var(--fg);box-shadow:inset 0 0 0 1px rgba(25,224,255,.45)}
.cal-top{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:8px}
.cal-nav{min-height:52px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);color:var(--fg);display:grid;place-items:center}
.cal-nav:active{transform:scale(.96)}
.cal-title{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.cal-title b{font-size:1.1rem}
.cal-today{border:0;background:none;color:var(--cyan);font-weight:700;min-height:32px}
.cal-add{margin:10px 0 4px}
.cal-days{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.cal-day{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.cal-day.today{border-color:rgba(25,224,255,.6);box-shadow:0 0 0 1px rgba(25,224,255,.25),var(--glow)}
.cal-day.past{opacity:.6}
.cal-day h3{margin:0;display:flex;align-items:center;gap:8px;font-size:1rem}
.cal-dayadd{margin-left:auto;min-height:40px;padding:0 12px;border-radius:999px;border:1px solid var(--line-2);background:none;color:var(--cyan);font-weight:700}
.cal-ev{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 12px;border:1px solid var(--line-2);border-radius:12px;
  background:var(--surface-2);color:inherit;text-align:left}
.cal-ev:active{background:var(--surface-3)}
.cal-t{flex:none;min-width:64px;font:700 .95rem var(--mono);color:var(--cyan)}
.cal-b{flex:1;min-width:0;display:flex;flex-direction:column}
.cal-b b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-b span{color:var(--body);font-size:.9rem}
.cal-sub{margin:2px 0 0;font-weight:700;font-size:.85rem;color:var(--muted)}
.cal-none{margin:0;color:var(--dim);font-size:.9rem}
.cal-noday{margin-top:10px}
.cal-who{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:6px 6px 6px 14px;border:1px solid var(--cyan);border-radius:12px}
.cal-whos{display:flex;flex-direction:column;gap:6px}
.sm-sheet{border:1px solid rgba(25,224,255,.5);border-radius:16px;background:var(--surface);padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;margin-top:8px}
.sm-sheet-top{display:flex;align-items:center;justify-content:space-between}
@media (min-width:1100px){
  .cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:start}
  .cal-ev{flex-direction:column;align-items:flex-start;gap:2px}
}

/* the person sheet: buttons, the estimate, edit, Ask Bob */
.sm-pbtns{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sm-pest{grid-column:1 / -1;display:flex;flex-direction:column;gap:8px}
.sm-pest:empty{display:none}
.sm-pest-h{margin:4px 0 0}
.sm-two{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.sm-f{display:flex;flex-direction:column;gap:6px;min-width:0}
#smPAsk{grid-column:1 / -1}
#smPAsk:empty{display:none}

/* Ask Bob boxes */
.sm-askwrap{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.sm-bobask{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line-2);border-radius:16px;background:var(--surface);padding:12px}
.sm-askform{display:grid;grid-template-columns:1fr auto;gap:8px}
.sm-askmsgs{display:flex;flex-direction:column;gap:8px}
.sm-askmsgs:empty{display:none}
.sm-askq{margin:0;align-self:flex-end;max-width:90%;padding:8px 12px;border-radius:14px 14px 4px 14px;background:rgba(45,107,255,.22);font-weight:600}
.sm-aska{padding:8px 12px;border-radius:14px 14px 14px 4px;background:var(--surface-2);line-height:1.5}
.sm-aska.wait{color:var(--muted)}
.sm-aska p{margin:0 0 6px}

/* spam: a chip + one tap to push a salesperson out of the way */
.sm-spam{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 14px 10px}
.sm-spamchip{font:700 .78rem var(--font);padding:3px 10px;border-radius:999px;background:rgba(255,107,125,.16);color:#ffc2cb}
.sm-spambtn{margin-left:auto;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,107,125,.45);background:none;color:#ffd3d9;font-weight:600;font-size:.8rem}
.sm-more{margin-left:auto;min-width:40px;min-height:36px;padding:0 10px;border-radius:999px;border:1px solid var(--line-2,rgba(255,255,255,.14));background:none;color:var(--dim,#9aa3b2);font:700 1rem/1 var(--font)}
.sm-pmore{flex:0 0 auto!important;min-width:56px}
.sm-spam .sm-row2,.sm-spam .sm-l,.sm-spam .hint{flex:1 1 100%;margin:0}
.sm-prob summary{flex-wrap:wrap;row-gap:0}
.sm-prob summary .hint{flex-basis:100%;font-weight:500;font-size:.85rem;margin:0 0 6px}
.sm-probrow{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.sm-probrow .sm-erow{border:0;background:none}

/* urgent reply alerts (alerts.py) and the closer's questions (closer.py) */
.sm-card.reply-alert{border-color:var(--cyan)}
.sm-card.reply-alert.urgent,.sm-card.question.urgent{border-color:#ff8a65;box-shadow:0 0 0 1px #ff8a65 inset}

/* the date question (closer set_date) and the grouped "N visits have no date" list (bulk_backlog) */
.sm-dategrid{grid-template-columns:1fr 1fr}
.sm-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:8px 0 12px;padding:10px 12px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface-2);font-size:.92rem}
.sm-dl dt{color:var(--muted,#9aa0a6);margin:0}
.sm-dl dd{margin:0;color:var(--fg);overflow-wrap:anywhere}
.sm-card.bulk .sm-qlist{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.sm-qrow{border:1px solid var(--line);border-radius:14px;background:var(--surface);transition:opacity .25s,transform .25s}
.sm-qrow.open{border-color:rgba(25,224,255,.5)}
.sm-qrow.leaving{opacity:0;transform:translateX(-8px)}
.sm-qhead{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 14px;border:0;background:none;color:inherit;text-align:left;font:inherit}
.sm-qhead .nmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sm-qhead .n{font-weight:700}
.sm-qhead .nline{color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}
.sm-qchev{flex:none;color:var(--muted);font-size:1.4rem;transition:transform .2s}
.sm-qrow.open .sm-qchev{transform:rotate(90deg)}
.sm-qbody{display:flex;flex-direction:column;gap:10px;padding:0 14px 14px}
.sm-qbody[hidden]{display:none}
.sm-qlink{align-self:flex-start;border:0;background:none;color:var(--cyan);font-weight:700;min-height:44px;padding:0}
.cal-ev.install{border-left:3px solid var(--electric)}
/* "Bob did" (autopilot.py): one line per thing Bob handled himself, Undo where simple */
.sm-did .sm-didl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.sm-didi{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line-2);padding:4px 0}
.sm-didn{flex:1;text-align:left;background:none;border:0;color:var(--fg);font:500 .95rem/1.35 var(--font);padding:6px 0;min-height:44px;cursor:pointer}
.sm-didi.undone .sm-didn{text-decoration:line-through;opacity:.6}
.sm-undo{flex:none;min-width:72px}

/* "Where things stand" (Giovanni 10-08): one plain line per person from Bob's memory */
.sm-pill.warn{background:rgba(255,184,77,.16);color:#ffcf7a}
.nline.sm-stand{color:var(--fg);font-size:.9rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.sm-pstand{margin:0;padding:10px 14px;border-bottom:1px solid var(--line-2);display:flex;flex-direction:column;gap:4px;font-size:.92rem;line-height:1.4;color:var(--fg);overflow-wrap:anywhere}
.sm-pstand b{font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:var(--cyan)}
.sm-pstand .sm-pill{margin:0}

/* Leads (billable.py): one big number, the month's list, leads by area. Plain, big, phone first. */
.bl-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:16px;border:1px solid var(--line-2);border-radius:var(--r);
  background:linear-gradient(135deg,rgba(45,107,255,.16),rgba(25,224,255,.06))}
.bl-n{font:800 3.2rem/1 var(--font);letter-spacing:-.03em;color:var(--fg)}
.bl-l{font-size:1.15rem;font-weight:700;color:var(--body)}
.bl-splits{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.bl-split{padding:6px 12px;border-radius:999px;background:var(--surface-3);color:var(--body);font-size:1rem}
.bl-split b{color:var(--fg)}
.bl-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.bl-list li{border-top:1px solid var(--line)}
.bl-list li:first-child{border-top:0}
.bl-row{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:grid;grid-template-columns:58px 1fr auto;grid-template-areas:"d n c" "d m c";
  column-gap:12px;align-items:center;padding:12px 14px;min-height:68px}
.bl-row:active{background:var(--surface-2)}
.bl-row:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.bl-row.over{opacity:.5}
.bl-date{grid-area:d;align-self:start;font:700 .95rem var(--font);color:var(--muted);padding-top:2px}
.bl-name{grid-area:n;font-weight:700;font-size:1.08rem;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bl-meta{grid-area:m;color:var(--body);font-size:.95rem}
.bl-row .bl-chip{grid-area:c}
/* status chips: one color family per step */
.bl-chip{display:inline-block;padding:4px 10px;border-radius:999px;font:700 .8rem var(--font);white-space:nowrap;background:var(--surface-3);color:var(--body)}
.st-new{background:rgba(25,224,255,.16);color:var(--cyan)}
.st-contacted{background:rgba(45,107,255,.18);color:#a9c2ff}
.st-estimate-set{background:rgba(160,120,255,.2);color:#d3c2ff}
.st-quoted{background:rgba(255,190,80,.18);color:#ffd88f}
.st-booked{background:rgba(60,220,140,.18);color:#8ff0c0}
.st-done{background:rgba(60,220,140,.3);color:#c9ffe4}
.st-lost{background:rgba(255,107,125,.14);color:#ffb3bd}
/* filters: two big pickers + tap chips; the status row scrolls sideways on a phone */
.bl-filters{display:flex;flex-direction:column;gap:10px}
.bl-selects{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bl-sel{display:flex;flex-direction:column;gap:4px;font-size:.82rem;font-weight:700;color:var(--muted)}
.bl-sel select{min-height:50px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface);color:var(--fg);font:700 1rem var(--font);padding:0 12px;width:100%}
.bl-sel select:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(25,224,255,.18)}
.bl-st{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
.bl-st::-webkit-scrollbar{display:none}
.bl-st .sm-chip{flex:none}
.sm-chip.on.st-new,.sm-chip.on.st-contacted,.sm-chip.on.st-estimate-set,.sm-chip.on.st-quoted,.sm-chip.on.st-booked,.sm-chip.on.st-done,.sm-chip.on.st-lost{border-color:currentColor}
.sm-chip.st-new,.sm-chip.st-contacted,.sm-chip.st-estimate-set,.sm-chip.st-quoted,.sm-chip.st-booked,.sm-chip.st-done,.sm-chip.st-lost{background:transparent;color:var(--body)}
.sm-chip.on[class*="st-"]{background:rgba(25,224,255,.14);color:var(--fg)}
.bl-fnote{display:block;font-size:.9rem;font-weight:600;margin-top:2px}
.bl-clear{margin-left:auto;border:0;background:none;color:var(--cyan);font-weight:700;min-height:36px;padding:0 4px}
.bl-areas tr.on th,.bl-areas tr.on td{color:var(--cyan)}
/* the lead card on top of the person sheet (compact) */
.bl-lead{grid-column:1 / -1;border:1px solid rgba(25,224,255,.35);border-radius:14px;background:rgba(25,224,255,.05);padding:10px 14px;display:flex;flex-direction:column;gap:6px}
.bl-lead-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bl-lead-top .sm-pappt-h{margin:0}
.bl-lead-line{margin:0;font-size:1rem;color:var(--fg);line-height:1.4}
.bl-lead-why{margin:0;font-size:.92rem;color:var(--body);line-height:1.4}
.bl-lead-why b{color:var(--fg)}

/* ---------------------------------------------------------------- Home: one grouped conversation list (home.py; mockup B, 10-14) */
html.home-threads #view-today .nhead,html.home-threads #needs,html.home-threads #doneWrap,html.home-threads #smMorning{display:none!important}
.hm{display:flex;flex-direction:column;gap:10px}
.hm-head{display:flex;align-items:baseline;gap:10px;margin-top:2px}
.hm-head h1{margin:0;font-size:1.6rem;letter-spacing:-.02em}
.hm-need{font:600 .78rem var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--cyan)}
.hm-sort{margin-left:auto;font-size:.8rem;color:var(--dim);white-space:nowrap}
.hm-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
.hm-chips::-webkit-scrollbar{display:none}
.hm-chips .sm-chip{flex:none;min-height:44px}
.hm-c{font:600 .74rem var(--mono);color:var(--cyan);margin-left:4px}
.hm-sel{flex:none;position:relative;display:inline-flex;align-items:center;min-height:44px;border-radius:999px;border:1px solid var(--line-2);color:var(--body)}
.hm-sel.on{border-color:var(--cyan);background:rgba(25,224,255,.14);color:var(--fg)}
.hm-sel select{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:700 .92rem var(--font);padding:0 32px 0 14px;min-height:44px;max-width:52vw}
.hm-sel::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);opacity:.7;pointer-events:none}
.hm-grp{display:flex;align-items:center;gap:8px;margin:8px 2px -2px;font-size:1.02rem;font-weight:800}
.hm-gn{font:600 .78rem var(--mono);color:var(--cyan)}
.hm-gh{margin-left:auto;font-weight:600;font-size:.8rem;color:var(--dim)}
.hm-grp.wait{color:var(--body)} .hm-grp.ok{color:#8ff0c0}
.hm-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.hm-list.hot{border-color:rgba(25,224,255,.45);box-shadow:0 0 0 1px rgba(25,224,255,.12),0 8px 30px -12px rgba(45,107,255,.5)}
.hm-row{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);padding-right:10px}
.hm-row:first-child{border-top:0}
.hm-open{all:unset;box-sizing:border-box;flex:1;min-width:0;display:flex;gap:11px;align-items:flex-start;padding:12px 4px 12px 12px;cursor:pointer}
.hm-open:active{background:var(--surface-2)}
.hm-open:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.hm-av{position:relative;flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font:800 1rem var(--font);color:var(--fg)}
.hm-src{position:absolute;right:-4px;bottom:-3px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--bg);box-shadow:0 0 0 2px var(--surface)}
.hm-src.call{color:var(--cyan)} .hm-src.form{color:#d3c2ff} .hm-src.text{color:var(--ok)}
.hm-mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.hm-l1{display:flex;align-items:center;gap:7px;min-width:0}
.hm-nm{font-weight:700;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg)}
.unread .hm-nm{font-weight:800}
.hm-area{flex:none;padding:1px 7px;border-radius:6px;border:1px solid var(--line-2);font:600 .66rem var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--blue);max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-tm{margin-left:auto;flex:none;font:500 .74rem var(--mono);color:var(--dim)}
.unread .hm-tm{color:var(--cyan)}
.hm-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px rgba(25,224,255,.7)}
.hm-pv{font-size:.92rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unread .hm-pv{color:var(--body)}
.hm-pv b{color:var(--dim);font-weight:600}
.hm-l3{display:flex;align-items:center;gap:8px;min-width:0}
.hm-st{flex:none;display:inline-block;padding:3px 10px;border-radius:999px;font:700 .78rem var(--font);white-space:nowrap;background:var(--surface-3);color:var(--body)}
.hm-bob{display:flex;align-items:center;gap:6px;min-width:0;font-size:.86rem;font-weight:600;color:var(--cyan)}
.hm-bob img{flex:none;border-radius:5px}
.hm-bob span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-list.wait .hm-bob,.hm-list.ok .hm-bob{color:var(--muted)}
.hm-acts{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px}
.hm-qa{width:48px;height:40px;border-radius:12px;display:grid;place-items:center;border:1px solid var(--line-2);background:var(--surface-2);color:var(--cyan)}
.hm-qa.go{height:50px;border:0;color:var(--ink);background:linear-gradient(135deg,var(--cyan),var(--electric));box-shadow:0 6px 20px -8px rgba(45,107,255,.7)}
.hm-qa:active{transform:scale(.95)}
.hm-empty{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px dashed var(--line-2);border-radius:14px;color:var(--body);font-weight:600}
/* the 30-day lead card (Giovanni: "dead simple and undeniable") */
.hm-lead{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--line-2);border-radius:16px;
  background:linear-gradient(135deg,rgba(45,107,255,.18),rgba(25,224,255,.06));box-shadow:var(--glow)}
.hm-lead:active{transform:scale(.99)}
.hm-lead:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
/* 10-14 refine: number | label + quiet breakdown | chevron, on an 8 px grid */
.hm-lnum{flex:none;font:800 2.5rem/1 var(--font);letter-spacing:-.03em;color:var(--fg);font-variant-numeric:tabular-nums}
.hm-ltx{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.hm-llab{font:700 1rem/1.25 var(--font);color:var(--fg)}
.hm-lper{font-weight:600;color:var(--muted)}
.hm-lsub{font:500 .875rem/1.3 var(--font);color:var(--muted)}
.hm-lgo{flex:none;font:600 1.5rem/1 var(--font);color:var(--cyan)}
/* Bob's questions + alerts: a compact strip above the list */
.hm-strip{border:1px solid var(--line-2);border-radius:14px;background:var(--surface)}
.hm-strip>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;cursor:pointer;font-weight:700;color:var(--fg)}
.hm-strip>summary::-webkit-details-marker{display:none}
.hm-strip>summary img{border-radius:7px}
.hm-stripl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-stripgo{flex:none;color:var(--cyan);font-size:.9rem}
.hm-strip[open]>summary{border-bottom:1px solid var(--line)}
.hm-strip .sm-cards{padding:12px}

/* one-tap Call (through Bob) + Text on every list */
.sm-acts{flex:none;display:flex;align-items:stretch;border-left:1px solid var(--line)}
.sm-act{width:60px;border:0;background:none;color:var(--cyan);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:700 .72rem var(--font)}
.sm-act+.sm-act{border-left:1px solid var(--line)}
.sm-act.go{background:linear-gradient(135deg,var(--cyan),var(--electric));color:var(--ink)}
.sm-act:active{background:rgba(25,224,255,.12)}
.sm-ewrap{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.sm-ewrap .sm-erow{flex:1;min-width:0;border:0;border-radius:0;background:none}
.sm-ewrap .sm-acts{border-left:1px solid var(--line)}
.sm-echip{align-self:flex-start;display:inline-block;margin-top:4px;padding:3px 10px;border-radius:999px;font:700 .78rem var(--font);background:var(--surface-3);color:var(--body)}
.sm-item .sm-pill{font-size:.8rem;padding:3px 10px}
.bl-li{display:flex;align-items:stretch}
.bl-li .bl-row{flex:1;min-width:0}
.bl-li .sm-act{width:54px}
@media (max-width:400px){.bl-li .sm-act{width:48px}.bl-row{grid-template-columns:50px 1fr auto;padding:12px 10px}}
/* the person sheet: Call + Text first; the number is plain text (no tel: / sms:, Giovanni 10-14) */
.sm-pbtns{grid-template-columns:1fr 1fr 56px}
.sm-pbtns .pb-call{grid-column:1}
.sm-pbtns .pb-text{grid-column:2 / 4}
.no-calls .sm-pbtns .pb-text{grid-column:1 / 4}
.sm-pphone{font-weight:700;color:var(--fg);-webkit-user-select:all;user-select:all}
.sm-pacts{display:flex;gap:8px;flex-wrap:wrap}
.sm-pacts .sm-btn.small{min-height:40px;padding:6px 14px;font-size:.9rem}
.sm-pemail{color:var(--fg);overflow-wrap:anywhere;word-break:normal}
/* a call through Bob: where it is */
.sm-callbox .sm-callcard{width:min(400px,100%);padding:22px 20px 18px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.sm-callav{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;color:var(--ink);background:linear-gradient(135deg,var(--cyan),var(--electric));
  box-shadow:0 0 0 8px rgba(25,224,255,.12);animation:smRing 1.4s ease-in-out infinite}
.sm-callcard.connected .sm-callav{animation:none;background:linear-gradient(135deg,#3cdc8c,#1f9e63)}
.sm-callcard.ended .sm-callav,.sm-callcard.missed_you .sm-callav,.sm-callcard.missed_them .sm-callav{animation:none;background:var(--surface-3);color:var(--body);box-shadow:none}
@keyframes smRing{50%{box-shadow:0 0 0 16px rgba(25,224,255,.04)}}
.sm-callwho{margin:6px 0 0;font-size:1.3rem;font-weight:800;color:var(--fg)}
.sm-callwords{margin:0;font-size:1.08rem;font-weight:700;color:var(--cyan)}
.sm-callcard .hint{margin:0}
.sm-callsteps{list-style:none;margin:8px 0;padding:0;display:flex;gap:6px;width:100%}
.sm-callsteps li{flex:1;padding:8px 4px;border-radius:10px;background:var(--surface-3);color:var(--dim);font-size:.8rem;font-weight:700}
.sm-callsteps li.on{background:rgba(25,224,255,.16);color:var(--cyan)}
.sm-callsteps li.done{background:rgba(60,220,140,.16);color:#8ff0c0}
.sm-callsteps li.bad{background:rgba(255,107,125,.14);color:#ffb3bd}
@media (prefers-reduced-motion:reduce){.sm-callav{animation:none}}
.sm-callbox,.intro.sm-ask{z-index:28}                                     /* above the person sheet (.cx 25) */
.sm-ewrap .sm-erow{gap:8px;padding:10px 10px 10px 14px}
.sm-ewrap .nmain{flex:1;min-width:0}
.sm-ewrap .sm-right{font-size:.86rem;max-width:42%;text-align:right}
.sm-ewrap .sm-act{width:52px}
.sm-echip{white-space:nowrap}
/* 10-14 refine (Giovanni: "the ribbon at the top and the big boxes seem disproportionate"): a smaller top bar on phones and an
   8 px spacing grid on Home */
@media (max-width:860px){
  html.home-threads .top{gap:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px}
  html.home-threads .head{width:32px;height:32px;border-radius:8px}
  html.home-threads .wordmark{font-size:.875rem;letter-spacing:.24em}
  html.home-threads .mstatus{margin-top:0}
  html.home-threads .top .icon{width:36px;height:36px}
  html.home-threads #installBtn{min-height:36px;padding:6px 12px}
  html.home-threads .hm{gap:16px}
  html.home-threads .hm-grp{margin:8px 0 -8px}
}
/* Home sections (handling.py, 10-14): Needs you / Bob is handling / Complaints & warranty */
.hm-needs>summary .hm-gn,.hm-sh .hm-gn{margin-left:8px}
.hm-needs.none>summary{color:var(--muted)}
.hm-sec{display:flex;flex-direction:column;gap:8px}
.hm-sh{display:flex;align-items:center;margin:0;font-size:1.02rem;font-weight:800;color:var(--fg)}
.hm-sh .hm-gh{margin-left:auto}
.hm-slist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.hm-srow{all:unset;box-sizing:border-box;display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:12px 16px;border-top:1px solid var(--line);cursor:pointer}
.hm-srow:first-child{border-top:0}
.hm-srow:active{background:var(--surface-2)}
.hm-srow:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.hm-sn{font-weight:700;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-sw{font:700 .8125rem var(--font);font-variant-numeric:tabular-nums;color:var(--cyan);white-space:nowrap}
.hm-ss{grid-column:1 / -1;font-size:.875rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-smore{all:unset;cursor:pointer;align-self:center;min-height:44px;padding:0 16px;font-weight:700;color:var(--cyan)}
.hm-comp{border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.hm-comp>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 16px;cursor:pointer}
.hm-comp>summary::-webkit-details-marker{display:none}
.hm-comp>summary .hm-sh{font-size:.95rem;color:var(--body)}
.hm-comp>summary .hm-gh{margin-left:auto;font-size:.8rem;color:var(--muted)}
.hm-comp>summary .hm-stripgo{margin-left:8px}
.hm-comp .hm-slist{border:0;border-top:1px solid var(--line);border-radius:0 0 16px 16px}
.hm-sec .hm-empty,.hm-needs .hm-empty{margin:0;border:0;padding:8px 0;font-weight:600;color:var(--muted)}
.hm-crow{border-top:1px solid var(--line)} .hm-crow:first-child{border-top:0}
.hm-crow .hm-srow{border-top:0}
.hm-crow.done .hm-sw{color:var(--muted)}
.hm-chand{display:flex;gap:8px;padding:0 16px 12px}
.hm-chand .sm-in{flex:1;min-width:0;min-height:44px}
.hm-chand .sm-btn{min-height:44px;flex:none}
.view-only .hm-chand{display:none!important}
/* ---------------------------------------------------------------- 10-14 layout sweep (layout_check.py + Fable QA): shared fixes */
details.hm-strip>summary,details.hm-comp>summary{padding:0 16px}      /* bob.css phones: details>summary{padding:11px 0} won */
.hm-strip .sm-cards{padding:8px}
/* Leads rows: the status chip gets its own line under the details (it spilled over the Call button on phones) */
.bl-row{grid-template-columns:56px minmax(0,1fr);grid-template-areas:"d n" "d m" "d c";row-gap:4px;overflow:hidden}
.bl-row .bl-chip{justify-self:start;margin-top:4px}
.bl-meta{min-width:0;overflow-wrap:anywhere}
@media (max-width:400px){.bl-row{grid-template-columns:48px minmax(0,1fr)}}
/* chip rows wrap instead of running off the right edge (Giovanni 10-14: "boxes overlap and are hard to manage") */
.bl-st,.hm-chips{flex-wrap:wrap;overflow-x:visible;margin:0;padding:0;gap:8px}
.bl-st .sm-chip,.hm-chips .sm-chip,.hm-chips .hm-sel{flex:0 1 auto;max-width:100%}
.hm-sel select{max-width:calc(100vw - 64px);text-overflow:ellipsis}
/* narrow phones: the day moves under the name (it squeezed long names to one word per line), names stop at 2 lines */
@media (max-width:480px){
  .sm-ewrap .sm-erow{flex-direction:column;align-items:flex-start;gap:4px}
  .sm-ewrap .sm-right{max-width:none;text-align:left;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  .sm-ewrap .nmain{width:100%}
  .sm-act{width:52px}
}
.sm-erow .n,.sm-open .n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
.nline{overflow-wrap:anywhere}
/* the person sheet on phones: the details part takes at most ~45% so the conversation keeps room; the conversation reads as its own
   scrolling area (a top edge + soft shadow), so a message cut at its top edge looks scrolled, not overlapped */
@media (max-width:860px){
  .sm-cbar{max-height:45vh;max-height:45dvh}
  .cx-body{border-top:1px solid var(--line);box-shadow:inset 0 8px 8px -8px rgba(0,0,0,.18)}
  .cx-facts{padding:8px 16px}
}
/* tap targets: 44 px on phones (Apple's minimum) */
@media (max-width:860px){
  .sm-pval .sm-btn.small,.sm-pacts .sm-btn.small,.cx-play,.cx-head .ghost,.cx-dnd-btn,.top .icon,#installBtn,.hm-smore,.bl-clear{min-height:44px}
  .top .icon{width:44px;height:44px}
  .cx-head .ghost{padding:8px 12px}
  .cx-tr summary{min-height:44px}
}
/* the sweep, round 2 (Fable QA on live + made-up screens) */
.sm-didn{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}   /* "Bob did": 2 lines, then … */
.sm-didi{min-height:52px}
.bl-total{margin-bottom:16px}
.bl-areas{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bl-areas th,.bl-areas td{padding:8px 12px;border-bottom:1px solid var(--line)}
.bl-areas th[scope=row],.bl-areas thead th:first-child{text-align:left}
.bl-areas td,.bl-areas thead th:not(:first-child){text-align:right;white-space:nowrap}
.sm-who{min-height:44px;padding:8px 0;display:inline-flex;align-items:center;gap:6px}
.sm-who .hint{padding:4px 0}
.nline{text-overflow:ellipsis}
.bl-clear{min-height:44px}
.sm-paddr+.sm-btn,.sm-pval .sm-btn{min-height:44px}
.sm-plink{display:inline-block;padding:8px 0}
@media (max-width:400px){.tabbar .tab{font-size:.625rem;letter-spacing:0}.tb-i{width:40px}}
/* person sheet: the deal chips wrap (a cut chip at the edge read as a layout bug), call cards use the full column */
.cx-facts{flex-wrap:wrap!important;overflow-x:visible!important;row-gap:8px}
.cx-facts .chip{white-space:normal;max-width:100%}
.cx-msg.call{max-width:100%;width:100%}
.cx-file{display:inline-block;padding:10px 0;min-height:44px}
.sm-who{text-align:left;flex-wrap:wrap}
.fb button{min-height:44px;min-width:44px}
.empty,.hm-empty{margin-top:16px}
/* the sweep, round 4 (Fable QA on the after shots) */
@media (max-width:480px){.sm-ewrap .sm-right{flex-direction:row;justify-content:flex-start;align-items:baseline;column-gap:8px}}
.bl-date{white-space:nowrap}
@media (max-width:400px){.bl-row{grid-template-columns:56px minmax(0,1fr)}}
.bl-areas thead th{white-space:normal;font-size:.85rem;line-height:1.25}
.bl-areas{table-layout:fixed}
.bl-areas th[scope=row]{overflow-wrap:anywhere}
.bl-splits{flex-basis:100%}
.hm-src{right:-6px;bottom:-6px}
.hm-empty .ok-dot::before{content:none}
#introSkip{min-height:44px}
/* the person sheet on phones: ONE scroll (details, buttons, then the conversation), name bar and reply box stay put (Giovanni 10-14:
   "a lot of the boxes overlap and are hard to manage": the details box and the conversation each scrolled on their own) */
@media (max-width:860px){
  .cx-panel{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .cx-panel>*{flex-shrink:0}
  .cx-head{position:sticky;top:0;z-index:3;background:var(--surface-2)}
  .sm-cbar{max-height:none!important;overflow:visible}
  .cx-body{flex:1 0 auto;overflow:visible;min-height:0;box-shadow:none}
  .cx-reply{position:sticky;bottom:0;z-index:3;background:var(--surface);border-top:1px solid var(--line)}
  .cx-shadow{position:sticky;bottom:0}
}
/* the sweep, round 5 */
@media (max-width:860px){.top .icon{width:44px!important;height:44px!important;flex:none}}
.bl-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.sm-pill{white-space:normal;border-radius:10px}
.cx-sugg{margin-bottom:12px}
.sm-who .hint{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border:1px solid var(--line-2);border-radius:999px;color:var(--cyan);font-weight:700}
.bl-clear{padding:0 8px}
/* the person sheet: one scroll at every width (desktop too: the side panel's details and conversation scrolled separately) */
.cx-panel{overflow-y:auto;overscroll-behavior:contain}
.cx-panel>*{flex-shrink:0}
.cx-head{position:sticky;top:0;z-index:3;background:var(--surface-2)}
.sm-cbar{max-height:none!important;overflow:visible}
.cx-body{flex:1 0 auto;overflow:visible;min-height:0}
.cx-reply{position:sticky;bottom:0;z-index:3;background:var(--surface);border-top:1px solid var(--line)}
/* the sweep, last round */
.sm-didn{display:block;-webkit-line-clamp:unset;overflow:visible}
.bl-areas{table-layout:auto}
.bl-areas th[scope=row]{overflow-wrap:normal;word-break:normal}
.bl-areas th[scope=row]{overflow-wrap:break-word;word-break:normal;min-width:0}
.bl-areas{max-width:100%}
.bl-list+.sm-h,.bl-total+.sm-h{margin-top:24px}

.sm-callctl{display:flex;gap:10px;width:100%;justify-content:center}.sm-callctl>*{flex:1}

/* ---------------------------------------------------------------- 10-17: the Calls tab (dialer.py), the Spam folder (spamfolder.py), the
   call card's states and the simpler phone layout (clients.py front.ux_simple). Giovanni: "I think we need a dialer... it is kind
   of janky"; Blake: "still a bit hard to manage". */
.dl-pad{margin:0 0 6px}
.dl-open{justify-content:center}
.dl-sheet{display:flex;flex-direction:column;gap:10px;padding:14px 14px 10px;border:1px solid rgba(25,224,255,.5);border-radius:16px;background:var(--surface)}
.dl-top{display:flex;flex-direction:column;gap:4px;align-items:center}
.dl-num{width:100%}
.dl-num input{width:100%;min-height:48px;border:0;border-bottom:1px solid var(--line-2);background:none;color:var(--fg);font:800 1.6rem var(--mono);letter-spacing:.04em;text-align:center;outline:none}
.dl-out{font:600 .95rem var(--mono);color:var(--muted);min-height:1.2em}
.dl-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dl-key{min-height:60px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--fg);font:700 1.5rem var(--font)}
.dl-key:active{background:rgba(25,224,255,.14)}
.dl-row2{display:grid;grid-template-columns:1fr 1.6fr 64px;gap:8px;align-items:stretch}
.dl-go{min-height:60px;font-size:1.1rem}
.dl-back{min-height:60px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--body);display:grid;place-items:center}
.dl-sheet .sm-later{min-height:40px}
.dl-h{display:flex;align-items:baseline;gap:8px;margin:14px 0 8px}
.dl-h .hint{font-size:.85rem;font-weight:500}
.dl-list{margin-bottom:4px}
.dl-row{display:flex;align-items:stretch;border-top:1px solid var(--line)}
.dl-row:first-child{border-top:0}
.dl-row.leaving{opacity:0;transition:opacity .25s}
.dl-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:12px 10px 12px 14px;border:0;background:none;color:inherit;text-align:left}
button.dl-open:active{background:var(--surface-2)}
.dl-ic{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);color:var(--body)}
.dl-ic.in{color:var(--cyan)} .dl-ic.out{color:#8ff0c0} .dl-ic.cb{background:rgba(255,200,60,.18);color:#ffd166}
.dl-row.missed .dl-ic{color:#ffb3bd}
.dl-row .nmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dl-row .n{font-weight:700;font-size:1.02rem}
.dl-row.missed .n{color:#ffb3bd}
.dl-row .nline{font-size:.88rem;color:var(--muted);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dl-row .sm-acts{border-left:1px solid var(--line)}
.dl-row .sm-act{width:58px}
/* Home: the call-back row, folded groups, the Spam folder */
.hm-cbrow{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(255,200,60,.5);border-radius:14px;background:rgba(255,200,60,.08)}
.hm-cbrow:active{background:rgba(255,200,60,.16)}
.hm-cbic{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,200,60,.2);color:#ffd166}
.hm-cbtx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hm-cbtx b{color:var(--fg);font-size:1.02rem}
.hm-cbtx .hint{margin:0;font-size:.85rem}
.hm-fold{border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.hm-fold>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:54px;padding:0 16px;cursor:pointer}
.hm-fold>summary::-webkit-details-marker{display:none}
.hm-fold>summary .hm-grp,.hm-fold>summary .hm-sh{flex:1;min-width:0;margin:0}
.hm-fold>summary .hm-stripgo{margin-left:8px;flex:none}
.hm-fold .hm-list,.hm-fold .hm-slist{border:0;border-top:1px solid var(--line);border-radius:0 0 16px 16px;box-shadow:none}
.hm-fold .hm-empty,.hm-fold .hm-smore{margin:0 16px}
.hm-fold .hm-empty{padding:10px 0 14px}
.hm-grp.spam{color:var(--muted)}
.hm-sprow .hm-open{padding-right:8px}
.hm-why{font-size:.82rem;color:#ffb3bd}
.hm-restore{min-height:40px;padding:6px 12px;font-size:.9rem;flex:none;margin-right:4px}
.hm-spamhint{margin:8px 16px 12px;font-size:.82rem}
/* the call card: Calling… / Ringing… / Talking 0:12 / Ended, Hang up, the fallback line */
.sm-callwords.talk{font:800 2.2rem/1.1 var(--mono);color:#8ff0c0;font-variant-numeric:tabular-nums;margin:4px 0}
.sm-callcard.connected .sm-callwords{color:#8ff0c0}
.sm-callwho .hint{display:block;font-size:.85rem;font-weight:500;margin-top:2px}
.sm-callfell{margin:0;padding:8px 10px;border-radius:10px;background:rgba(255,200,60,.14);color:#ffd166;font-size:.9rem;font-weight:600}
.sm-callctl .sm-btn.no{border-color:rgba(255,107,125,.6);background:rgba(255,107,125,.14)}
/* ux_simple: a slim lead card, Ask Bob on the top bar, Call / Text / More on the person sheet */
html.ux-simple .hm-lead{padding:10px 14px;gap:12px}
html.ux-simple .hm-lnum{font-size:1.7rem}
html.ux-simple .hm-llab{font-size:.95rem}
html.ux-simple .hm-lsub{font-size:.8rem}
.sm-askbtn{display:grid;place-items:center;padding:0}
.sm-askbtn img{border-radius:50%;width:26px;height:26px}
.sm-askbtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html.ux-simple .sm-pbtns{grid-template-columns:1fr 1fr}
html.ux-simple .sm-pbtns .pb-call{grid-column:1}
html.ux-simple .sm-pbtns .pb-text{grid-column:2}
html.ux-simple.no-calls .sm-pbtns .pb-text{grid-column:1 / -1}
html.ux-simple .sm-pbtns .sm-pmorebtn{grid-column:1 / -1;min-height:44px;font-size:.95rem;color:var(--muted)}
.sm-moremenu .sm-btn{font-size:.95rem}
@media (max-width:400px){.tabbar .tab{font-size:.58rem}}
