/* ============================================================
   Clearsky dashboard — page styles (externalized from dashboard.html)
   Link AFTER tokens.css so token vars cascade correctly.
   ============================================================ */
body{min-height:100vh}
.sky{background:
  radial-gradient(1100px 600px at 82% -12%,rgba(98,169,249,.20),transparent 60%),
  radial-gradient(900px 520px at 6% 14%,rgba(26,115,232,.10),transparent 55%),
  var(--bg);}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.mono{font-family:var(--font-mono);font-weight:500;letter-spacing:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
a{text-decoration:none}

/* ---- skip link ---- */
.skip{position:absolute;left:12px;top:-48px;z-index:200;background:var(--surface);color:var(--accentHover);
  border:1.5px solid var(--border);border-radius:var(--r-sm);padding:10px 16px;font-weight:700;transition:top .2s ease}
.skip:focus{top:12px}

/* ============ Topbar ============ */
.topbar{position:sticky;top:0;z-index:60;background:var(--surface);border-bottom:1px solid var(--border)}
.topbar-in{display:flex;align-items:center;gap:18px;height:68px}
.brand{display:inline-flex;align-items:center;flex-shrink:0}
.brand svg{display:block;height:38px;width:auto}

/* desktop pill tabs */
.tabs{display:flex;align-items:center;gap:6px;margin-left:8px;background:var(--surfaceAlt);
  padding:5px;border-radius:var(--r-pill)}
.tab{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border:0;cursor:pointer;
  background:transparent;color:var(--textMuted);font:700 14.5px/1 var(--font-body);border-radius:var(--r-pill);
  transition:color .15s ease,background .15s ease}
.tab svg{width:17px;height:17px}
.tab:hover{color:var(--text)}
.tab[aria-current="page"]{background:var(--accent);color:#fff;box-shadow:var(--shadow-btn)}
.tab[aria-current="page"]:hover{color:#fff}

.top-right{display:flex;align-items:center;gap:10px;margin-left:auto}

/* number switcher */
.numswitch{position:relative}
.num-btn{display:inline-flex;align-items:center;gap:9px;height:var(--control-h);padding:0 14px;cursor:pointer;
  background:var(--surface);border:1.5px solid #A9C7EC;border-radius:var(--r-pill);color:var(--text);
  font:600 14px/1 var(--font-body);transition:border-color .15s ease,background .15s ease}
.num-btn:hover{border-color:var(--accent);background:var(--accentSoft)}
.num-btn .dot{width:8px;height:8px;border-radius:50%;background:var(--green);flex-shrink:0}
.num-btn .num-label{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.num-btn .num-label small{font-size:11px;color:var(--textMuted);font-weight:600}
.num-btn .num-label .mono{font-size:13px;color:var(--text)}
.num-btn .caret{width:14px;height:14px;color:var(--textMuted);transition:transform .2s ease}
.num-btn[aria-expanded="true"] .caret{transform:rotate(180deg)}
/* single line → static label, no dropdown affordance */
.numswitch.single .caret{display:none}
.numswitch.single .num-btn{cursor:default}
.numswitch.single .num-btn:hover{border-color:#A9C7EC;background:var(--surface)}
.menu{position:absolute;top:calc(100% + 8px);right:0;min-width:260px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-md);box-shadow:var(--shadow-lift);padding:8px;
  z-index:80;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .16s ease,transform .16s ease}
.menu.on{opacity:1;transform:translateY(0);pointer-events:auto}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:0;
  cursor:pointer;padding:10px 12px;border-radius:var(--r-sm);color:var(--text);font:600 14px/1.3 var(--font-body)}
.menu-item:hover{background:var(--surfaceAlt)}
.menu-item .mi-meta{display:flex;flex-direction:column;gap:2px}
.menu-item .mi-meta small{font-size:11.5px;color:var(--textMuted);font-weight:600}
.menu-item .mi-meta .mono{font-size:13px}
.menu-item .check{margin-left:auto;width:18px;height:18px;color:var(--accent);opacity:0}
.menu-item[aria-checked="true"] .check{opacity:1}

/* test call ghost button */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--r-pill);
  cursor:pointer;font:700 15px/1 var(--font-display);transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease;border:0}
.btn svg{width:17px;height:17px}
.btn-primary{height:var(--control-h);padding:0 22px;background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accentHover);transform:translateY(-1px);box-shadow:var(--shadow-btn)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{height:var(--control-h);padding:0 18px;background:var(--surface);border:1.5px solid #A9C7EC;color:var(--text)}
.btn-ghost:hover{border-color:var(--accentHover);color:var(--accentHover);background:var(--accentSoft)}
.btn-sm{height:38px;padding:0 16px;font-size:14px}

/* avatar circle in topbar */
.avatar-chip{width:var(--control-h);height:var(--control-h);border-radius:50%;background:var(--surface);
  border:1.5px solid var(--border);display:inline-flex;align-items:center;justify-content:center;
  overflow:hidden;flex-shrink:0;cursor:pointer;transition:border-color .15s ease}
.avatar-chip:hover{border-color:var(--accent)}
.avatar-chip img{width:100%;height:100%;object-fit:cover}

/* hamburger (mobile) */
.hamburger{display:none;width:var(--control-h);height:var(--control-h);border-radius:var(--r-sm);
  background:var(--surface);border:1.5px solid var(--border);cursor:pointer;color:var(--text);
  align-items:center;justify-content:center}
.hamburger svg{width:22px;height:22px}

/* ============ Main / views ============ */
main{padding:34px 0 80px}
.view{display:none;animation:viewIn .35s ease both}
.view.active{display:block}
@keyframes viewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.view-head h1{font-size:clamp(28px,3.4vw,40px);font-weight:800;line-height:1.12;letter-spacing:-0.015em}
.view-head .sub{color:var(--textMuted);font-size:16px;margin-top:6px}
.view-head h2.section-title{font-size:22px;font-weight:700;letter-spacing:-0.01em}

/* greeting avatar inline */
.greet-emblem{width:30px;height:30px;border-radius:50%;border:1.5px solid var(--border);overflow:hidden;
  display:inline-flex;vertical-align:middle;margin:0 2px;background:var(--surfaceAlt)}
.greet-emblem img{width:100%;height:100%;object-fit:cover}

/* card base */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.glass{background:var(--glass-bg);backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));
  border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-card)}

/* ---- value hero ---- */
.value-hero{position:relative;overflow:hidden;padding:30px 32px;border-radius:var(--r-lg);margin-bottom:24px}
.value-hero .blob{position:absolute;width:300px;height:300px;border-radius:50%;background:var(--gradient);
  opacity:.13;filter:blur(60px);pointer-events:none;animation:float 9s ease-in-out infinite;top:-120px;right:-40px}
@keyframes float{50%{transform:translateY(-18px)}}
.value-hero .greet{display:flex;align-items:center;gap:10px;color:var(--accentHover);font-weight:700;
  font-size:14.5px;margin-bottom:14px}
.value-hero .greet .pulse{width:9px;height:9px;border-radius:50%;background:var(--green);position:relative}
.value-hero .greet .pulse::after{content:"";position:absolute;inset:-5px;border-radius:50%;
  border:2px solid var(--green);opacity:.4;animation:ring 2.4s ease-out infinite}
@keyframes ring{0%{transform:scale(.6);opacity:.5}100%{transform:scale(1.6);opacity:0}}
.value-sentence{font-family:var(--font-display);font-weight:800;font-size:clamp(22px,2.6vw,30px);
  line-height:1.32;letter-spacing:-0.01em;max-width:780px;position:relative}
.value-sentence b{color:var(--accentHover)}
.value-foot{margin-top:14px;color:var(--textMuted);font-size:13.5px;position:relative}

/* ---- stat cards ---- */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat{padding:20px 22px;display:flex;flex-direction:column;gap:10px;transition:transform .18s ease,box-shadow .18s ease}
.stat:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.stat .stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stat .stat-icon{width:38px;height:38px;border-radius:var(--r-sm);background:var(--accentSoft);
  color:var(--accent);display:inline-flex;align-items:center;justify-content:center}
.stat .stat-icon svg{width:20px;height:20px}
.stat .stat-val{font-family:var(--font-display);font-weight:800;font-size:34px;line-height:1;letter-spacing:-0.02em}
.stat .stat-label{color:var(--textMuted);font-size:13.5px;font-weight:600}
.delta{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:var(--r-pill);
  font:700 12px/1 var(--font-body)}
.delta svg{width:12px;height:12px}
.delta.up{background:var(--greenSoft);color:var(--greenInk)}
.delta.flat{background:var(--surfaceAlt);color:var(--textMuted)}

/* ---- chart ---- */
.panel{padding:24px 26px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.panel-head h3{font-size:18px;font-weight:700;letter-spacing:-0.01em}
.panel-head .legend{display:flex;align-items:center;gap:16px;font-size:13px;color:var(--textMuted);font-weight:600}
.legend .key{display:inline-flex;align-items:center;gap:7px}
.legend .swatch{width:12px;height:12px;border-radius:4px}
.chart-wrap{width:100%;overflow:hidden}
.chart{width:100%;height:auto;display:block}
.chart .bar{transition:opacity .15s ease}
.chart .barwrap:hover .bar{opacity:.78}
.chart text{font-family:var(--font-mono);font-size:11px;fill:var(--textMuted)}

.two-col{display:grid;grid-template-columns:1.45fr 1fr;gap:20px;margin-top:24px}

/* ---- recent calls list (overview + calls view share row styling) ---- */
.call-list{display:flex;flex-direction:column;gap:10px}
.call-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-md);padding:13px 16px;cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.call-row:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:var(--accentSoft)}
.call-row .who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.call-row .who .name{font-weight:700;font-size:15px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-row .who .meta{display:flex;align-items:center;gap:10px;color:var(--textMuted);font-size:12.5px}
.call-row .who .meta .mono{font-size:12.5px;color:var(--textMuted)}
.call-row .right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.call-row .when{font-size:12.5px;color:var(--textMuted);min-width:62px;text-align:right}
.sentiment-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.sentiment-dot.positive{background:var(--green)}
.sentiment-dot.neutral{background:var(--textMuted)}
.sentiment-dot.frustrated{background:var(--red)}

/* chips */
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:var(--r-pill);
  font:700 12.5px/1.1 var(--font-body);white-space:nowrap}
.chip.booked{background:var(--greenSoft);color:var(--greenInk)}
.chip.escalated,.chip.spam_blocked{background:var(--redSoft);color:var(--redInk)}
.chip.rescheduled{background:var(--yellowSoft);color:var(--yellow)}
.chip.message{background:var(--accentSoft);color:var(--accentHover)}
.chip.info,.chip.cancelled{background:var(--surfaceAlt);color:var(--textMuted)}

.panel .see-all{font-weight:700;font-size:14px;color:var(--accentHover);background:transparent;border:0;cursor:pointer}
.panel .see-all:hover{text-decoration:underline}

/* mini side panel rows (overview right column) */
.mini-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.mini-row:last-child{border-bottom:0;padding-bottom:0}
.mini-row:first-child{padding-top:0}
.mini-ic{width:36px;height:36px;border-radius:var(--r-sm);flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.mini-ic svg{width:19px;height:19px}
.mini-ic.blue{background:var(--accentSoft);color:var(--accent)}
.mini-ic.green{background:var(--greenSoft);color:var(--greenInk)}
.mini-ic.amber{background:var(--yellowSoft);color:var(--yellow)}
.mini-row .mini-body{min-width:0}
.mini-row .mini-body .mt{font-weight:700;font-size:14.5px;color:var(--text)}
.mini-row .mini-body .ms{color:var(--textMuted);font-size:13px;margin-top:2px;line-height:1.45}

/* ============ Calls view ============ */
.calls-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.search{position:relative;flex:1;min-width:240px;max-width:420px}
.search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--textMuted)}
.search input{width:100%;height:var(--control-h);border:1.5px solid var(--border);border-radius:var(--r-pill);
  background:var(--surface);padding:0 16px 0 44px;font:400 15px/1 var(--font-body);color:var(--text)}
.search input::placeholder{color:var(--textMuted)}
.search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accentSoft)}
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filter-chip{height:38px;padding:0 16px;border:1.5px solid var(--border);border-radius:var(--r-pill);
  background:var(--surface);color:var(--textMuted);font:700 13.5px/1 var(--font-body);cursor:pointer;
  transition:all .15s ease;display:inline-flex;align-items:center;gap:7px}
.filter-chip .ct{background:var(--surfaceAlt);color:var(--textMuted);border-radius:var(--r-pill);
  font-size:11.5px;padding:2px 7px;font-weight:700}
.filter-chip:hover{border-color:var(--accent);color:var(--accentHover)}
.filter-chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.filter-chip[aria-pressed="true"] .ct{background:rgba(255,255,255,.25);color:#fff}
.calls-count{color:var(--textMuted);font-size:14px;margin-bottom:14px}
.empty{text-align:center;padding:54px 20px;color:var(--textMuted)}
.empty img{width:96px;height:96px;border-radius:50%;border:1.5px solid var(--border);object-fit:cover;margin-bottom:16px}
.empty p{font-size:16px;max-width:360px;margin:0 auto}

/* ============ Modal (transcript drawer) ============ */
.backdrop{position:fixed;inset:0;background:rgba(30,58,95,.35);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);z-index:120;display:none;align-items:flex-start;justify-content:center;
  padding:40px 20px;overflow-y:auto}
.backdrop.on{display:flex}
.modal{background:var(--surface);border-radius:var(--r-lg);max-width:680px;width:100%;box-shadow:var(--shadow-lift);
  border:1px solid var(--border);animation:modalIn .2s ease both;margin:auto 0}
@keyframes modalIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:flex-start;gap:14px;padding:24px 26px 18px;border-bottom:1px solid var(--border)}
.modal-head .mh-main{flex:1;min-width:0}
.modal-head .mh-name{font-family:var(--font-display);font-weight:800;font-size:21px;letter-spacing:-0.01em}
.modal-head .mh-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;color:var(--textMuted);font-size:13px}
.modal-head .mh-meta .mono{font-size:13px;color:var(--text)}
.modal-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.icon-btn{width:36px;height:36px;border-radius:50%;background:var(--surface);border:1.5px solid var(--border);
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--textMuted);transition:all .15s ease}
.icon-btn:hover{border-color:var(--accentHover);color:var(--accentHover);background:var(--accentSoft)}
.icon-btn svg{width:18px;height:18px}
.modal-body{padding:22px 26px 28px}
.summary-block{background:var(--surfaceAlt);border-radius:var(--r-md);padding:16px 18px;margin-bottom:22px}
.summary-block .sl{font-weight:700;font-size:12.5px;color:var(--accentHover);margin-bottom:7px;display:flex;align-items:center;gap:7px}
.summary-block .sl svg{width:15px;height:15px}
.summary-block p{margin:0;font-size:14.5px;line-height:1.55;color:var(--text)}
.booking-tag{display:inline-flex;align-items:center;gap:7px;margin-top:12px;background:var(--greenSoft);
  color:var(--greenInk);border-radius:var(--r-pill);padding:5px 12px;font:700 12.5px/1 var(--font-mono)}
.booking-tag svg{width:14px;height:14px}
.transcript-label{font-weight:700;font-size:14px;color:var(--text);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.transcript-label .pill-count{background:var(--surfaceAlt);color:var(--textMuted);border-radius:var(--r-pill);
  font-size:12px;padding:2px 9px;font-weight:700}
.turns{display:flex;flex-direction:column;gap:12px}
.turn{display:flex;flex-direction:column;max-width:84%}
.turn .who-lbl{font-size:11.5px;font-weight:700;color:var(--textMuted);margin-bottom:4px;padding:0 4px}
.turn .bubble{border-radius:var(--r-md);padding:11px 15px;font-size:14.5px;line-height:1.5}
/* Caller on the LEFT, Roddy (AI receptionist) on the RIGHT */
.turn.caller{align-self:flex-start;align-items:flex-start}
.turn.caller .bubble{background:var(--surfaceAlt);color:var(--text);border-bottom-left-radius:6px}
.turn.arlo{align-self:flex-end;align-items:flex-end}
.turn.arlo .bubble{background:var(--accentSoft);color:var(--text);border-bottom-right-radius:6px}

/* ============ Settings view ============ */
.settings-intro{display:flex;align-items:center;gap:8px;margin:6px 0 20px;color:var(--textMuted);font-size:14.5px}
.group-label{display:flex;align-items:center;gap:10px;margin:34px 0 16px}
.group-label:first-of-type{margin-top:6px}
.group-label .gl-ic{width:34px;height:34px;border-radius:var(--r-sm);background:var(--accent);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.group-label.account .gl-ic{background:var(--text)}
.group-label .gl-ic svg{width:18px;height:18px}
.group-label .gl-txt h2{font-size:20px;font-weight:800;letter-spacing:-0.01em}
.group-label .gl-txt p{margin:2px 0 0;color:var(--textMuted);font-size:13.5px}
.set-card{padding:22px 24px;margin-bottom:16px}
.set-card > h3{font-size:17px;font-weight:700;margin-bottom:4px;letter-spacing:-0.01em}
.set-card > .desc{color:var(--textMuted);font-size:13.5px;margin-bottom:18px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.field:last-child{margin-bottom:0}
.field label{font-weight:600;font-size:14px;color:var(--text)}
.field input[type=text],.field input[type=email],.field input[type=date],.field textarea,.field select{
  height:var(--control-h);border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--surface);
  padding:0 14px;font:400 15px/1 var(--font-body);color:var(--text);width:100%}
.field textarea{height:auto;padding:12px 14px;line-height:1.5;resize:vertical;min-height:78px}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accentSoft)}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* hours grid */
.hours-row{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--border)}
.hours-row:last-child{border-bottom:0}
.hours-row .day{font-weight:700;font-size:14.5px;display:flex;align-items:center;gap:10px}
.hours-row .hrs{font-family:var(--font-mono);font-size:14px;color:var(--textMuted);font-weight:500}
.hours-row.closed .hrs{color:var(--textMuted);font-style:italic;font-family:var(--font-body)}

/* arlo toggle */
.arlo-toggle{position:relative;display:inline-flex;cursor:pointer;flex-shrink:0}
.arlo-toggle input{position:absolute;opacity:0;width:0;height:0}
.arlo-toggle-track{width:44px;height:25px;border-radius:var(--r-pill);background:var(--border);transition:background .2s ease;display:inline-block}
.arlo-toggle-knob{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;
  box-shadow:0 1px 3px rgba(30,58,95,.3);transition:transform .2s ease}
.arlo-toggle input:checked + .arlo-toggle-track{background:var(--accent)}
.arlo-toggle input:checked ~ .arlo-toggle-knob{transform:translateX(19px)}
.arlo-toggle input:focus-visible + .arlo-toggle-track{outline:2px solid var(--accent);outline-offset:2px}

.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border)}
.toggle-row:last-child{border-bottom:0}
.toggle-row .tr-body{min-width:0}
.toggle-row .tr-body .tt{font-weight:700;font-size:14.5px}
.toggle-row .tr-body .ts{color:var(--textMuted);font-size:13px;margin-top:2px;line-height:1.45}

/* services tags */
.tag-input{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--surface)}
.tag{display:inline-flex;align-items:center;gap:7px;background:var(--accentSoft);color:var(--accentHover);
  border-radius:var(--r-pill);padding:6px 8px 6px 13px;font:700 13px/1 var(--font-body)}
.tag button{background:transparent;border:0;cursor:pointer;color:var(--accentHover);width:18px;height:18px;
  border-radius:50%;display:inline-flex;align-items:center;justify-content:center;opacity:.7}
.tag button:hover{opacity:1;background:rgba(26,115,232,.14)}
.tag button svg{width:12px;height:12px}
.city-tag{background:var(--surfaceAlt);color:var(--text)}
.city-tag button{color:var(--textMuted)}

.save-bar{display:flex;align-items:center;gap:12px;margin-top:8px}
.save-bar .saved-note{color:var(--textMuted);font-size:13px}

/* avatar picker (D9) */
.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.avatar-card{position:relative;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--r-md);
  padding:18px 14px 16px;cursor:pointer;text-align:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.avatar-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift);border-color:var(--accentSoft)}
.avatar-card .av-img{width:84px;height:84px;border-radius:50%;border:2px solid var(--border);object-fit:cover;
  margin:0 auto 12px;display:block;background:var(--surfaceAlt)}
.avatar-card .av-name{font-weight:800;font-size:15.5px;font-family:var(--font-display)}
.avatar-card .av-tag{color:var(--textMuted);font-size:12.5px;margin-top:5px;line-height:1.4}
.avatar-card .av-check{position:absolute;top:12px;right:12px;width:24px;height:24px;border-radius:50%;
  background:var(--accent);color:#fff;display:none;align-items:center;justify-content:center;box-shadow:var(--shadow-btn)}
.avatar-card .av-check svg{width:15px;height:15px}
.avatar-card[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accentSoft)}
.avatar-card[aria-pressed="true"] .av-img{border-color:var(--accent)}
.avatar-card[aria-pressed="true"] .av-check{display:inline-flex}

/* ============ Test-call modal ============ */
.ringing{text-align:center;padding:44px 30px 36px;max-width:420px}
.ring-stage{position:relative;width:140px;height:140px;margin:0 auto 26px;display:flex;align-items:center;justify-content:center}
.ring-stage .pulse-ring{position:absolute;inset:0;border-radius:50%;border:2px solid var(--accent);opacity:0;animation:pulseOut 2.2s ease-out infinite}
.ring-stage .pulse-ring:nth-child(2){animation-delay:.7s}
.ring-stage .pulse-ring:nth-child(3){animation-delay:1.4s}
@keyframes pulseOut{0%{transform:scale(.55);opacity:.6}100%{transform:scale(1.1);opacity:0}}
.ring-stage .ring-core{width:90px;height:90px;border-radius:50%;background:var(--accent);
  display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:var(--shadow-btn);position:relative;z-index:1}
.ring-stage .ring-core svg{width:38px;height:38px;animation:shake 1.1s ease-in-out infinite}
@keyframes shake{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}
.ringing h3{font-family:var(--font-display);font-weight:800;font-size:22px;letter-spacing:-0.01em}
.ringing .rnum{font-family:var(--font-mono);font-weight:600;font-size:17px;color:var(--accentHover);margin:8px 0 4px}
.ringing p{color:var(--textMuted);font-size:14.5px;margin:12px 0 24px;line-height:1.5}

/* ============ Calendar (self-contained Month / Week / Day) ============ */
.cal-card{padding:22px 24px}
.cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.cal-toolbar-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cal-nav{display:flex;align-items:center;gap:8px}
.cal-nav button{width:38px;height:38px;border-radius:var(--r-sm);border:1.5px solid var(--border);
  background:var(--surface);cursor:pointer;color:var(--text);display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}
.cal-nav button:hover{border-color:var(--accent);color:var(--accentHover);background:var(--accentSoft)}
.cal-nav button svg{width:18px;height:18px}
.cal-today-btn{width:auto !important;padding:0 14px;font:700 13.5px/1 var(--font-body)}
.cal-title{font-family:var(--font-display);font-weight:800;font-size:20px;letter-spacing:-0.01em;color:var(--text);min-width:0}
.cal-viewswitch{display:inline-flex;background:var(--surfaceAlt);padding:4px;border-radius:var(--r-pill);gap:4px}
.cal-viewswitch button{height:34px;padding:0 16px;border:0;background:transparent;cursor:pointer;
  color:var(--textMuted);font:700 13.5px/1 var(--font-body);border-radius:var(--r-pill);transition:all .15s ease}
.cal-viewswitch button:hover{color:var(--text)}
.cal-viewswitch button[aria-pressed="true"]{background:var(--accent);color:#fff;box-shadow:var(--shadow-btn)}
.cal-legend2{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--textMuted);font-weight:600;margin-bottom:14px}
.cal-legend2 .key{display:inline-flex;align-items:center;gap:7px}
.cal-legend2 .sw{width:13px;height:13px;border-radius:4px;flex-shrink:0}

/* event chip colors (shared by all views) */
.ev-chip{font-size:11.5px;font-weight:700;border-radius:7px;padding:3px 7px;line-height:1.3;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;border:0;text-align:left;width:100%;
  transition:filter .12s ease}
.ev-chip:hover{filter:brightness(.93)}
.ev-chip.agent{background:var(--green)}
.ev-chip.user{background:var(--accent)}
.ev-chip .ev-time{font-family:var(--font-mono);font-weight:600;opacity:.92}

/* Month grid */
.cal-month .cal-dow-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:8px}
.cal-month .cal-dow{text-align:center;font-size:12px;font-weight:700;color:var(--textMuted);text-transform:uppercase;letter-spacing:.03em}
.cal-month .cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:1fr;gap:8px}
.cal-cell{min-height:104px;border:1px solid var(--border);border-radius:var(--r-sm);padding:7px 8px;
  background:var(--surface);cursor:pointer;display:flex;flex-direction:column;gap:4px;
  transition:border-color .15s ease,box-shadow .15s ease}
.cal-cell:hover{border-color:var(--accent);box-shadow:var(--shadow-card)}
.cal-cell.muted{background:var(--bg);opacity:.6}
.cal-cell .dnum{font-size:13px;font-weight:700;color:var(--text);align-self:flex-start;
  width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}
.cal-cell.today .dnum{background:var(--accent);color:#fff}
.cal-cell .cell-events{display:flex;flex-direction:column;gap:4px;min-width:0}
.cal-cell .more{font-size:10.5px;color:var(--textMuted);font-weight:700;padding-left:2px}

/* Week / Day time-axis */
.cal-timegrid{border:1px solid var(--border);border-radius:var(--r-sm);overflow:hidden}
.cal-tg-head{display:grid;background:var(--surfaceAlt);border-bottom:1px solid var(--border)}
.cal-tg-head .tg-corner{border-right:1px solid var(--border)}
.cal-tg-head .tg-daycol{padding:9px 6px;text-align:center;border-right:1px solid var(--border)}
.cal-tg-head .tg-daycol:last-child{border-right:0}
.cal-tg-head .tg-daycol .tg-dow{font-size:11.5px;font-weight:700;color:var(--textMuted);text-transform:uppercase;letter-spacing:.03em}
.cal-tg-head .tg-daycol .tg-dnum{font-family:var(--font-display);font-weight:800;font-size:18px;color:var(--text);
  width:32px;height:32px;line-height:32px;margin:3px auto 0;border-radius:50%}
.cal-tg-head .tg-daycol.today .tg-dnum{background:var(--accent);color:#fff}
.cal-tg-body{display:grid;position:relative;max-height:560px;overflow-y:auto}
.cal-tg-axis{display:flex;flex-direction:column;border-right:1px solid var(--border)}
.cal-tg-hour{height:52px;font-family:var(--font-mono);font-size:11px;color:var(--textMuted);text-align:right;
  padding:2px 8px 0 4px;box-sizing:border-box}
.cal-tg-col{position:relative;border-right:1px solid var(--border)}
.cal-tg-col:last-child{border-right:0}
.cal-tg-slot{height:52px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s ease}
.cal-tg-slot:hover{background:var(--accentSoft)}
.cal-tg-col.today{background:var(--accentSoft)}
.cal-tg-col.today .cal-tg-slot:hover{background:var(--surfaceAlt)}
.cal-tg-event{position:absolute;left:3px;right:3px;border-radius:7px;padding:4px 7px;color:#fff;cursor:pointer;
  font-size:11.5px;font-weight:700;line-height:1.25;overflow:hidden;box-shadow:0 2px 6px rgba(30,58,95,.2);
  z-index:2;transition:filter .12s ease}
.cal-tg-event:hover{filter:brightness(.93)}
.cal-tg-event.agent{background:var(--green)}
.cal-tg-event.user{background:var(--accent)}
.cal-tg-event .tge-time{font-family:var(--font-mono);font-weight:600;opacity:.92;display:block;font-size:10.5px}

/* Day view = single-column time-axis (reuses .cal-timegrid) */
.cal-day .cal-tg-head{grid-template-columns:64px 1fr}
.cal-day .cal-tg-body{grid-template-columns:64px 1fr}
.cal-week .cal-tg-head{grid-template-columns:64px repeat(7,minmax(0,1fr))}
.cal-week .cal-tg-body{grid-template-columns:64px repeat(7,minmax(0,1fr))}

/* ============ Appointment modal (custom Clearsky) ============ */
.appt-modal{max-width:600px}
.appt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 26px 16px;border-bottom:1px solid var(--border)}
.appt-head h3{font-family:var(--font-display);font-weight:800;font-size:20px;letter-spacing:-0.01em}
.appt-body{padding:20px 26px;max-height:62vh;overflow-y:auto}
.appt-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.appt-grid .field{margin-bottom:0}
.ce-row{display:flex;align-items:center;gap:8px}
.timepick{height:var(--control-h);border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--surface);
  padding:0 14px;font:400 15px/1 var(--font-body);color:var(--text);width:100%;cursor:pointer;display:flex;align-items:center}
.timepick:hover{border-color:var(--accent)}
.timepick.placeholder{color:var(--textMuted)}
.color-row{display:flex;flex-wrap:wrap;gap:9px}
.color-sw{width:30px;height:30px;border-radius:50%;cursor:pointer;border:2px solid transparent;position:relative;transition:transform .12s ease}
.color-sw:hover{transform:scale(1.12)}
.color-sw[aria-pressed="true"]{border-color:var(--text);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--text)}
.color-sw .ck{position:absolute;inset:0;display:none;align-items:center;justify-content:center;color:#fff}
.color-sw[aria-pressed="true"] .ck{display:flex}
.color-sw .ck svg{width:15px;height:15px}
.appt-foot{display:flex;align-items:center;gap:10px;padding:16px 26px 22px;border-top:1px solid var(--border);flex-wrap:wrap}
.appt-foot .spacer{flex:1}
.btn-danger{height:var(--control-h);padding:0 18px;background:var(--surface);border:1.5px solid var(--redSoft);color:var(--redInk);
  border-radius:var(--r-pill);font:700 14.5px/1 var(--font-display);cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.btn-danger:hover{background:var(--redSoft);border-color:var(--red)}
.appt-err{color:var(--redInk);font-size:13px;font-weight:700;display:none;width:100%}
.req{color:var(--red)}

/* ============ Scroll-wheel time picker (shared) ============ */
.wheel-overlay{position:fixed;inset:0;background:rgba(30,58,95,.45);backdrop-filter:blur(4px);z-index:200;
  display:flex;align-items:center;justify-content:center}
.wheel-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;width:300px;
  max-width:90vw;box-shadow:var(--shadow-lift);animation:modalIn .18s ease both}
.wheel-title{text-align:center;font-family:var(--font-display);font-size:15px;font-weight:800;color:var(--text);margin-bottom:14px}
.wheel-cols{position:relative;display:flex;gap:6px;height:180px;overflow:hidden}
.wheel-col{flex:1;height:100%;overflow-y:scroll;scroll-snap-type:y mandatory;text-align:center;padding:72px 0;-ms-overflow-style:none;scrollbar-width:none;position:relative;z-index:1}
.wheel-col::-webkit-scrollbar{display:none}
.wheel-item{height:36px;line-height:36px;scroll-snap-align:center;font-size:18px;color:var(--textMuted);
  font-family:var(--font-mono);transition:color .15s ease,font-weight .15s ease}
.wheel-item.sel{color:var(--accent);font-weight:800}
.wheel-center-band{position:absolute;left:0;right:0;top:72px;height:36px;border-top:1.5px solid var(--accent);
  border-bottom:1.5px solid var(--accent);background:rgba(26,115,232,.10);border-radius:8px;pointer-events:none;z-index:0}
.wheel-actions{display:flex;gap:10px;margin-top:16px}
.wheel-actions button{flex:1;height:42px;border-radius:var(--r-sm);font:700 14.5px/1 var(--font-display);cursor:pointer;border:0}
.wheel-btn-cancel{background:var(--surfaceAlt);color:var(--text)}
.wheel-btn-cancel:hover{background:var(--border)}
.wheel-btn-set{background:var(--accent);color:#fff}
.wheel-btn-set:hover{background:var(--accentHover)}

/* ============ Multi-block hours ============ */
.hours-day{padding:13px 0;border-bottom:1px solid var(--border)}
.hours-day:last-child{border-bottom:0}
.hours-day .hd-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.hours-day .hd-day{font-weight:700;font-size:14.5px;text-transform:capitalize}
.hours-blocks{display:flex;flex-direction:column;gap:7px}
.hours-block{display:flex;align-items:center;gap:9px}
.hour-field{flex:1;max-width:140px;height:38px;border:1.5px solid var(--border);border-radius:var(--r-sm);background:var(--surface);
  padding:0 13px;display:flex;align-items:center;font:500 14px/1 var(--font-mono);color:var(--text);cursor:pointer;transition:border-color .15s ease}
.hour-field:hover{border-color:var(--accent)}
.hour-field[data-value=""]{color:var(--textMuted);font-family:var(--font-body)}
.hour-field[data-disabled="1"]{opacity:.5;cursor:not-allowed;background:var(--surfaceAlt)}
.hours-dash{color:var(--textMuted);font-weight:700}
.blk-btn{height:34px;padding:0 11px;border-radius:var(--r-sm);border:1.5px solid var(--border);background:var(--surface);
  cursor:pointer;font:700 12.5px/1 var(--font-body);display:inline-flex;align-items:center;gap:5px;transition:all .15s ease}
.blk-add{color:var(--accentHover);margin-top:7px}
.blk-add:hover{border-color:var(--accent);background:var(--accentSoft)}
.blk-add:disabled{opacity:.45;cursor:not-allowed}
.blk-rm{color:var(--redInk);width:34px;padding:0;justify-content:center}
.blk-rm:hover{border-color:var(--red);background:var(--redSoft)}

/* ============ After-hours pills ============ */
.ah-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ah-pill{padding:7px 15px;border-radius:var(--r-pill);font:700 13px/1 var(--font-body);cursor:pointer;
  border:1.5px solid #A9C7EC;background:var(--surface);color:var(--textMuted);transition:all .15s ease}
.ah-pill:hover{border-color:var(--accent)}
.ah-pill[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
/* per-day pills are inert when "Ring my phone after hours" is off */
.ah-pills.locked{opacity:.45;pointer-events:none}
#ahDaysLabel.locked{opacity:.55}

/* ============ Calendar connection cards ============ */
.conn-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
.conn-row:last-child{border-bottom:0}
.conn-ic{width:42px;height:42px;border-radius:var(--r-sm);flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  background:var(--surfaceAlt)}
.conn-ic svg{width:24px;height:24px}
.conn-body{flex:1;min-width:0}
.conn-body .cn-name{font-weight:700;font-size:14.5px}
.conn-body .cn-state{font-size:13px;color:var(--textMuted);margin-top:2px;display:flex;align-items:center;gap:6px}
.conn-body .cn-state.ok{color:var(--greenInk)}
.conn-body .cn-state .led{width:8px;height:8px;border-radius:50%;background:var(--textMuted)}
.conn-body .cn-state.ok .led{background:var(--green)}
.conn-cta{flex-shrink:0}
.gc-status{display:flex;align-items:center;gap:10px;background:var(--greenSoft);border:1px solid var(--green);
  border-radius:var(--r-md);padding:12px 16px;margin-bottom:16px}
.gc-status .gs-dot{width:9px;height:9px;border-radius:50%;background:var(--green);flex-shrink:0}
.gc-status .gs-txt{font-weight:700;font-size:14px;color:var(--greenInk)}
.gc-status .gs-sub{color:var(--green);font-size:13px;font-weight:600}

/* ============ Phone numbers ============ */
.phone-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}
.phone-row:last-child{border-bottom:0}
.phone-row .ph-dot{width:9px;height:9px;border-radius:50%;background:var(--green);flex-shrink:0}
.phone-row .ph-body{flex:1;min-width:0}
.phone-row .ph-body small{display:block;font-size:11.5px;color:var(--textMuted);font-weight:600}
.phone-row .ph-body .mono{font-size:14.5px;color:var(--text);font-weight:600}
.phone-row .ph-tag{font:700 11.5px/1 var(--font-body);background:var(--accentSoft);color:var(--accentHover);
  border-radius:var(--r-pill);padding:4px 10px}

/* ============ Widget embed card ============ */
.embed-box{position:relative;background:#0F2440;border-radius:var(--r-md);padding:16px 16px;overflow:hidden;margin-bottom:12px}
.embed-box pre{margin:0;font:500 12.5px/1.6 var(--font-mono);color:#CFE2FB;white-space:pre-wrap;word-break:break-all;padding-right:42px}
.embed-copy{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:var(--r-sm);border:0;cursor:pointer;
  background:rgba(255,255,255,.12);color:#fff;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}
.embed-copy:hover{background:rgba(255,255,255,.24)}
.embed-copy svg{width:16px;height:16px}

/* ============ Calls pagination + deleted toggle ============ */
.calls-deleted-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.deleted-toggle{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:13.5px;color:var(--textMuted);cursor:pointer}
.call-row .row-actions{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:4px}
.row-act{width:32px;height:32px;border-radius:var(--r-sm);border:1.5px solid var(--border);background:var(--surface);
  cursor:pointer;color:var(--textMuted);display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}
.row-act:hover{border-color:var(--accentHover);color:var(--accentHover);background:var(--accentSoft)}
.row-act svg{width:15px;height:15px}
.call-row.is-deleted{opacity:.62}
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;flex-wrap:wrap}
.pg-btn{min-width:38px;height:38px;padding:0 12px;border-radius:var(--r-sm);border:1.5px solid var(--border);background:var(--surface);
  cursor:pointer;font:700 14px/1 var(--font-body);color:var(--text);transition:all .15s ease}
.pg-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accentHover);background:var(--accentSoft)}
.pg-btn[aria-current="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.pg-btn:disabled{opacity:.4;cursor:not-allowed}

/* ============ Print (Download PDF -> window.print) ============ */
.print-area{display:none}
@media print{
  body *{visibility:hidden !important}
  .print-area,.print-area *{visibility:visible !important}
  .print-area{display:block !important;position:absolute;inset:0;padding:0 8mm;background:#fff;color:#111;
    font:13px/1.5 var(--font-body)}
  .print-area h1{font:800 22px/1.2 var(--font-display);margin:0 0 4px}
  .print-area .pr-sub{color:#555;font-size:12px;margin-bottom:14px}
  .print-area .pr-meta{display:grid;grid-template-columns:1fr 1fr;gap:4px 24px;margin-bottom:14px;
    border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:12px 0}
  .print-area .pr-meta .pm-row{font-size:12.5px}
  .print-area .pr-meta .pm-row b{color:#000}
  .print-area h2{font:700 15px/1.2 var(--font-display);margin:16px 0 6px}
  .print-area .pr-summary{font-size:12.5px;margin-bottom:8px}
  .print-area .pr-turn{margin:0 0 8px;font-size:12px;page-break-inside:avoid}
  .print-area .pr-turn b.pr-arlo{color:#15803D}
  .print-area .pr-turn b.pr-caller{color:#2563EB}
  .print-area .pr-foot{margin-top:18px;color:#888;font-size:10px;border-top:1px solid #ccc;padding-top:8px}
  .topbar,main,footer,.backdrop,.wheel-overlay{display:none !important}
}

/* ============ Responsive ============ */
@media (max-width:1020px){
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
  .avatar-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .tabs{display:none}
  .hamburger{display:inline-flex}
  .top-right .num-btn .num-label{display:none}
  .top-right .num-btn{padding:0 12px}
  .field-grid{grid-template-columns:1fr}
  .appt-grid{grid-template-columns:1fr}
  /* mobile dropdown nav */
  .tabs.mobile-open{display:flex;position:absolute;top:calc(100% + 8px);right:24px;left:24px;
    flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);
    box-shadow:var(--shadow-lift);padding:8px;gap:4px;z-index:90}
  .tabs.mobile-open .tab{width:100%;justify-content:flex-start;height:44px}
}
@media (max-width:560px){
  .wrap{padding:0 16px}
  .topbar-in{gap:10px}
  .brand svg{height:34px}
  .stat-grid{grid-template-columns:1fr 1fr}
  .value-hero{padding:24px 20px}
  .cal-cell{min-height:78px}
  .cal-cell .ev-chip{font-size:0;padding:5px}
  .cal-cell .ev-chip::before{content:"";display:block;width:100%;height:5px;border-radius:3px;background:#fff;opacity:.9}
  .cal-cell .more{font-size:9px}
  .turn{max-width:92%}
  .cal-week .cal-tg-head,.cal-week .cal-tg-body{grid-template-columns:44px repeat(7,1fr)}
}
@media (max-width:430px){
  .btn-ghost.btn-sm span,.btn-ghost.btn-sm{font-size:0}
  #testCallBtn{width:var(--control-h);padding:0}
  #testCallBtn svg{font-size:initial}
  .avatar-grid{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){
  .view{animation:none}
  .value-hero .blob,.ring-stage .pulse-ring,.ring-stage .ring-core svg,.value-hero .greet .pulse::after{animation:none}
  .set-card.flash{animation:none}
}

/* ============ Clearsky polish additions ============ */
/* Save-all bars (top + bottom of Settings) */
.saveall-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  background:var(--accentSoft);border:1.5px solid #A9C7EC;border-left:4px solid var(--accent);
  border-radius:var(--r-md);padding:14px 18px;margin-bottom:22px}
.saveall-bar .sab-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.saveall-bar .sab-txt strong{font-family:var(--font-display);font-weight:800;font-size:15px;color:var(--text)}
.saveall-bar .sab-txt span{color:var(--textMuted);font-size:13px}

/* Phone-numbers settings card: sub-headers + add buttons + ring strategy badge */
.phsub-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.phsub-label{font-weight:700;font-size:13px;color:var(--textMuted);text-transform:uppercase;letter-spacing:.03em}
.add-num-btn{height:30px;padding:0 12px;border-radius:var(--r-pill);background:var(--surface);
  border:1.5px solid #A9C7EC;color:var(--accentHover);font:700 12.5px/1 var(--font-body);cursor:pointer;
  transition:background .15s ease,border-color .15s ease}
.add-num-btn:hover{background:var(--accentSoft);border-color:var(--accent)}
.ring-strategy-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;
  padding-top:14px;border-top:1px solid var(--border)}
.ring-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:var(--r-pill);
  background:var(--surfaceAlt);border:1px solid var(--border);font-size:13px;color:var(--text);cursor:help}
.ring-badge strong{color:var(--accentHover);font-weight:800}
.ring-note{color:var(--textMuted);font-size:12.5px}
/* styled hover/focus tooltip for the ring-strategy info icon */
.ring-tip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--textMuted);cursor:help}
.ring-tip svg{width:16px;height:16px}
.ring-tip::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);
  width:max-content;max-width:260px;white-space:normal;text-align:left;background:var(--surface);color:var(--text);
  border:1px solid var(--border);border-radius:var(--r-sm);padding:9px 11px;font:500 12px/1.45 var(--font-body);
  box-shadow:var(--shadow-lift);opacity:0;visibility:hidden;transition:opacity .12s ease;z-index:90;pointer-events:none}
.ring-tip:hover::after,.ring-tip:focus::after,.ring-tip:focus-visible::after{opacity:1;visibility:visible}

/* Number-switcher dropdown: Add-a-line action + "more" ellipsis row */
.menu-action,.menu-more{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;
  border:0;cursor:pointer;padding:10px 12px;border-radius:var(--r-sm);font:700 13.5px/1.2 var(--font-body)}
.menu-action{color:var(--accentHover);border-bottom:1px solid var(--border);border-radius:var(--r-sm) var(--r-sm) 0 0;margin-bottom:4px}
.menu-action:hover{background:var(--accentSoft)}
.menu-action .ma-ic{width:17px;height:17px;flex-shrink:0}
.menu-more{color:var(--textMuted);border-top:1px solid var(--border);border-radius:0 0 var(--r-sm) var(--r-sm);margin-top:4px}
.menu-more:hover{background:var(--surfaceAlt);color:var(--text)}
.menu-more .mm-dots{width:16px;height:16px;flex-shrink:0;color:var(--textMuted)}

/* brief highlight when jumping to the Phone numbers card */
.set-card.flash{animation:cardFlash 1.4s ease}
@keyframes cardFlash{0%{box-shadow:0 0 0 3px var(--accentSoft)}30%{box-shadow:0 0 0 3px var(--accent)}100%{box-shadow:0 0 0 3px transparent}}
