/* ============================================================
   receptionist-home.css — the AI Receptionist page on Solo / Business
   (public/js/receptionist-home.js, rxh-*). Page tokens only, so light/dark and
   the accent themes follow. Buttons are relaunch.css's rx-btn / rx-link.
   ============================================================ */
.rxh{--rxh-afg:var(--accent-fg,var(--accent));display:flex;flex-direction:column;gap:16px;min-width:0}
.rxh .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rxh-greet{margin-bottom:0}
.rxh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:1180px){.rxh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rxh-grid .rxh-mins{grid-column:1/-1}}
@media (max-width:760px){.rxh-grid{grid-template-columns:minmax(0,1fr)}}

.rxh-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg,21px);padding:20px;min-width:0;color:var(--body)}
.rxh-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:14px}
.rxh-h h3{font-family:var(--display);font-size:17px;font-weight:700;color:var(--text);margin:0}
.rxh-h-sub{font-size:12.5px;color:var(--muted)}
.rxh-sub{margin:-6px 0 14px;font-size:14px}
.rxh-sub b{color:var(--text)}
.rxh-lab{display:block;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.rxh-tip{margin:10px 0 0;font-size:12.5px;color:var(--muted)}
.rxh-empty{margin:0;padding:10px 0;font-size:14px;color:var(--muted)}

/* loading + error */
.rxh-skel{min-height:210px;background:linear-gradient(100deg,var(--panel) 30%,var(--raised) 50%,var(--panel) 70%) 0 0/300% 100%;animation:rxhSk 1.4s linear infinite}
.rxh-skel.tall{min-height:300px}
@keyframes rxhSk{to{background-position:-300% 0}}
@media (prefers-reduced-motion:reduce){.rxh-skel{animation:none}}
.rxh-err{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:34px 20px}
.rxh-err i{font-size:30px;color:var(--red)}
.rxh-err p{margin:0}

/* 1. setup status */
.rxh-count{font-family:var(--mono);font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--accent-soft);color:var(--rxh-afg)}
.rxh-count.all{background:var(--green-soft);color:var(--green)}
.rxh-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.rxh-checks li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start}
.rxh-checks li div{display:flex;flex-direction:column;gap:2px;min-width:0}
.rxh-checks b{font-size:14.5px;color:var(--text);font-weight:600}
.rxh-checks span{font-size:13px;line-height:1.45}
.rxh-tick{font-size:22px;line-height:1;color:var(--muted)}
.rxh-checks li.done .rxh-tick{color:var(--green)}
.rxh-checks li.todo b{color:var(--body)}
.rxh-act{align-self:flex-start;padding:4px 0;font-size:13.5px;color:var(--rxh-afg)}

/* 2. your receptionist */
.rxh-who{display:flex;align-items:center;gap:14px}
.rxh-av{position:relative;flex:none;width:64px;height:64px;border-radius:50%;border:2px solid var(--line);padding:0;overflow:hidden;cursor:pointer;background:var(--raised);display:grid;place-items:center;color:var(--rxh-afg);font-size:28px}
.rxh-av img{width:100%;height:100%;object-fit:cover;display:block}
.rxh-av-btn{position:absolute;right:2px;bottom:2px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--accent);color:var(--accent-ink);box-shadow:0 2px 8px rgba(0,0,0,.25)}
.rxh-av:hover,.rxh-av.on{border-color:var(--accent)}
.rxh-av:focus-visible{outline:3px solid var(--accent-line);outline-offset:2px}
.rxh-vname{display:block;font-family:var(--display);font-size:19px;color:var(--text)}
.rxh-vblurb{display:block;font-size:13px;margin-top:2px}
.rxh-tag{display:inline-block;vertical-align:middle;margin-left:6px;font-family:var(--bodyf);font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px;background:var(--line-soft);color:var(--muted)}
.rxh-note{display:flex;gap:7px;align-items:flex-start;margin:12px 0 0;font-size:13px;padding:9px 11px;border-radius:11px;background:var(--accent-soft);color:var(--text)}
.rxh-note i{color:var(--rxh-afg);font-size:16px;margin-top:1px}
.rxh-change{margin-top:8px;font-size:13.5px}
.rxh-change[aria-expanded="true"] i{transform:rotate(180deg)}
.rxh-picker{margin-top:6px;padding-top:8px;border-top:1px solid var(--line-soft)}
.rxh-num{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-soft);display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.rxh-num .rxh-lab{flex-basis:100%;margin:0}
.rxh-num b{font-family:var(--display);font-size:22px;color:var(--text);letter-spacing:.01em}
.rxh-pend{display:flex;gap:7px;align-items:flex-start;font-size:13.5px}
.rxh-pend i{color:var(--rxh-afg);font-size:17px}

/* 3. divert your calls */
.rxh-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media (max-width:760px){.rxh-two{grid-template-columns:minmax(0,1fr)}}
.rxh-two h4{display:flex;align-items:center;gap:7px;margin:0 0 8px;font-size:14.5px;color:var(--text)}
.rxh-two h4 i{color:var(--rxh-afg);font-size:18px}
.rxh-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px;font-size:13.5px;line-height:1.55}
.rxh-code{font-family:var(--mono);font-size:12.5px;padding:1px 6px;border-radius:6px;background:var(--raised);border:1px solid var(--line);color:var(--text);white-space:nowrap}

/* 4. minutes */
.rxh-big{display:flex;align-items:baseline;gap:7px}
.rxh-big b{font-family:var(--display);font-size:38px;line-height:1;color:var(--text)}
.rxh-big span{font-size:14px}
.rxh-bar{height:10px;border-radius:999px;background:var(--line-soft);margin:14px 0 10px;overflow:hidden}
.rxh-bar span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .5s ease}
.rxh-bar.warn span{background:var(--amber)}
.rxh-bar.over span{background:var(--red)}
.rxh-mins-foot{margin:0;font-size:13px}
/* plan (accent) + top-up (amber) minutes left, side by side; the empty track = plan minutes used */
.rxh-stack{display:flex}
.rxh-stack span{border-radius:0}
.rxh-stack span:first-child{border-radius:999px 0 0 999px}
.rxh-stack span:last-child{border-radius:0 999px 999px 0}
/* top-up = the accent, striped — reads apart from plan minutes under every accent theme and without colour */
.rxh{--rxh-top:repeating-linear-gradient(135deg,var(--accent) 0 5px,color-mix(in srgb,var(--accent) 45%,var(--panel)) 5px 10px)}
.rxh-stack span.plan{background:var(--accent)}
.rxh-stack span.top{background:var(--rxh-top)}
.rxh-stack.over{background:var(--red-soft)}
.rxh-legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.rxh-legend li{display:grid;grid-template-columns:10px auto minmax(0,1fr);gap:8px;align-items:center}
.rxh-legend b{color:var(--text);font-weight:600}
.rxh-dot{width:10px;height:10px;border-radius:50%}
.rxh-dot.plan{background:var(--accent)}
.rxh-dot.top{background:var(--rxh-top)}
.rxh-mins-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:14px}
.rxh-mins-acts .rx-btn{min-height:40px}
.rxh-auto-state{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--muted)}
.rxh-mins-alert{display:flex;gap:8px;align-items:flex-start;margin:0 0 14px;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.45;
  background:var(--accent-soft);color:var(--text);border:1px solid var(--accent-line)}
.rxh-mins-alert i{font-size:17px;margin-top:1px;color:var(--rxh-afg)}
.rxh-mins-alert.warn{background:color-mix(in srgb,var(--amber) 12%,var(--panel));border-color:color-mix(in srgb,var(--amber) 38%,transparent)}
.rxh-mins-alert.warn i{color:var(--amber-fg,var(--amber))}
.rxh-mins-alert.bad{background:var(--red-soft);border-color:var(--red-line)}
.rxh-mins-alert.bad i{color:var(--red)}
.rxh-mins-alert b{color:var(--text)}

/* 4b. top-ups */
.rxh-topups{margin-top:16px}
.rxh-auto{max-width:none}
.rxh-auto .rxh-tip{margin:0}
.rxh-cap{flex:0 1 140px;display:flex;align-items:center;gap:6px;min-width:0}
.rxh-cap b{color:var(--muted);font-weight:600}
.rxh-cap .rxh-tr-num{flex:1 1 auto;width:100%}
.rxh-auto-warn{display:flex;gap:7px;align-items:flex-start;margin:0;padding:9px 11px;border-radius:11px;font-size:13px;background:var(--red-soft);color:var(--text)}
.rxh-auto-warn i{color:var(--red);font-size:16px;margin-top:1px}
.rxh-buys{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.rxh-buys li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line-soft)}
.rxh-buys li:first-child{border-top:0;padding-top:0}
.rxh-buys li.rxh-empty{display:block;padding:4px 0}
.rxh-buy-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.rxh-buy-main b{color:var(--text);font-size:14px}
.rxh-buy-main span{font-size:12.5px;color:var(--muted)}

/* the Top up sheet (inside an LTSheet) */
.rxh-topsheet{--rxh-afg:var(--accent-fg,var(--accent));display:flex;flex-direction:column;gap:14px;color:var(--body)}
.rxh-ts-lede{margin:0;font-size:14.5px}
.rxh-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:420px){.rxh-packs{grid-template-columns:minmax(0,1fr)}}
.rxh-pack{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:44px;padding:14px;border-radius:14px;border:1.5px solid var(--line);
  background:var(--raised);color:var(--body);font:inherit;text-align:left;cursor:pointer}
.rxh-pack b{font-family:var(--display);font-size:20px;color:var(--text)}
.rxh-pack span{font-size:14px;font-weight:600;color:var(--text)}
.rxh-pack em{font-style:normal;font-size:12px;color:var(--muted)}
.rxh-pack:hover{border-color:var(--accent-line)}
.rxh-pack.on{border-color:var(--accent);background:var(--accent-soft)}
.rxh-pack:focus-visible{outline:3px solid var(--accent-line);outline-offset:2px}
.rxh-ts-msg{margin:0;min-height:1em;font-size:13.5px}
.rxh-ts-msg.bad{color:var(--danger,#d64545)}
.rxh-ts-pay{justify-content:center;min-height:46px}
.rxh-spin{animation:rxhSpin 1s linear infinite}
@keyframes rxhSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rxh-spin{animation:none}.rxh-bar span{transition:none}}

/* 5. call log */
.rxh-list{display:flex;flex-direction:column}
.rxh-call{display:grid;grid-template-columns:38px minmax(0,1fr) auto 16px;gap:12px;align-items:center;width:100%;text-align:left;font:inherit;color:inherit;
  background:none;border:0;border-top:1px solid var(--line-soft);padding:12px 6px;cursor:pointer;border-radius:10px}
.rxh-call:first-child{border-top:0}
.rxh-call:hover{background:var(--line-soft)}
.rxh-call:focus-visible{outline:3px solid var(--accent-line);outline-offset:-2px}
.rxh-call-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:18px;background:var(--green-soft);color:var(--green)}
.rxh-call-ic.muted{background:var(--line-soft);color:var(--muted)}
.rxh-call-ic.bad{background:var(--red-soft);color:var(--red)}
.rxh-call-ic.info{background:var(--blue-soft);color:var(--blue)}
.rxh-call-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.rxh-call-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.rxh-call-top b{color:var(--text);font-size:14.5px;margin-right:2px}
.rxh-call-sum{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rxh-call-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.rxh-call-go{color:var(--muted)}
@media (max-width:560px){
  .rxh-call{grid-template-columns:34px minmax(0,1fr);gap:4px 10px;align-items:start}
  .rxh-call-go{display:none}
  .rxh-call-ic{width:34px;height:34px}
  .rxh-call-meta{grid-column:2;flex-direction:row;align-items:center;gap:10px}
  .rxh-card{padding:16px}
}
.rxh-pill{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--green-soft);color:var(--green);border:1px solid var(--green-line)}
.rxh-pill.muted{background:var(--line-soft);color:var(--muted);border-color:var(--line)}
.rxh-pill.bad{background:var(--red-soft);color:var(--red);border-color:var(--red-line)}
.rxh-pill.info{background:var(--blue-soft);color:var(--blue);border-color:var(--blue-line)}
.rxh-pill.booked{background:var(--accent-soft);color:var(--rxh-afg);border-color:var(--accent-line)}
.rxh-more{display:flex;justify-content:center;padding-top:12px}
.rxh [hidden]{display:none !important}
.rxh-none{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:30px 12px}
.rxh-none-ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:24px;background:var(--accent-soft);color:var(--rxh-afg)}
.rxh-none p{margin:0;max-width:36ch;font-size:14px}

/* call detail (inside an LTSheet) */
.rxh-detail{--rxh-afg:var(--accent-fg,var(--accent));display:flex;flex-direction:column;gap:16px;color:var(--body)}
.rxh-d-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rxh-d-top .rx-btn{margin-left:auto}
.rxh-d-dur{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--muted)}
.rxh-d-sum{margin:0;font-size:14.5px;line-height:1.55;color:var(--text)}
.rxh-d-rec audio{width:100%;height:40px}
.rxh-bubbles{display:flex;flex-direction:column;gap:8px;max-height:min(52vh,520px);overflow-y:auto;padding:4px 2px}
.rxh-bub{max-width:82%;padding:9px 12px 10px;border-radius:16px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.rxh-bub.ai{align-self:flex-start;background:var(--raised);border:1px solid var(--line);color:var(--text);border-bottom-left-radius:5px}
.rxh-bub.caller{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:5px}
.rxh-bub-who{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;opacity:.7;margin-bottom:2px}

/* 3b. transfer calls to you */
.rxh-transfer{margin-top:16px}
.rxh-tr{display:grid;gap:12px;max-width:560px}
.rxh-tr-on{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14.5px;color:var(--text);cursor:pointer}
.rxh-tr-on input{width:20px;height:20px;accent-color:var(--accent);flex:none;cursor:pointer}
.rxh-tr-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.rxh-tr-row .rxh-lab{flex-basis:100%;margin:0}
.rxh-tr-num{flex:1 1 220px;min-width:0;min-height:44px;padding:0 13px;border-radius:12px;border:1px solid var(--line);background:var(--raised);color:var(--text);font:inherit;font-size:16px;font-variant-numeric:tabular-nums}
.rxh-tr-num::placeholder{color:var(--muted)}
.rxh-tr-num:focus-visible{outline:3px solid var(--accent-line);outline-offset:1px;border-color:var(--accent)}
.rxh-tr-num[aria-invalid="true"]{border-color:var(--danger,#d64545)}
.rxh-tr-row .rx-btn{min-height:44px}
.rxh-tr-err{margin:0;font-size:13.5px;color:var(--danger,#d64545)}
.rxh-tr-err[hidden]{display:none}
