:root{
  color-scheme:light;
  --ink:#16202A;--muted:#6E6656;--paper:#EFEBE2;--card:#fff;
  --accent:#DE5334;--accent-dark:#C4472B;--teal:#17877A;--line:#EAE4D9;
  --soft:#FBF9F4;--danger:#B23A1B;--chrome:#101B24;--chrome-2:#1E2D3A;
  --peach:#F0A58C;--shadow:0 18px 60px rgba(22,32,42,.08)
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 'Hanken Grotesk',Segoe UI,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:'Bricolage Grotesque',Segoe UI,system-ui,sans-serif;letter-spacing:-.01em}
button,input,select{font:inherit}
button{cursor:pointer}
h3,p{margin-top:0}
/* The browser's default `small` is 0.83em, which lands under the 13.5px floor
   (and compounds when nested). Pin it; anything that wants a badge size sets
   its own. */
small{font-size:13.5px}
.lede{color:var(--muted);margin:0 0 4px;max-width:640px}
.eyebrow{letter-spacing:.14em;font-weight:700;font-size:13px;color:var(--accent);margin:0 0 2px;text-transform:uppercase}

/* ---------- App shell ---------- */
.manager-body{overflow-y:scroll}
.shell{display:flex;min-height:100vh;align-items:stretch}
.rail{width:264px;flex:none;background:var(--chrome);color:#fff;padding:26px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.rail-eyebrow{color:var(--peach);font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 5px}
.rail-title{font-size:22px;font-weight:800;line-height:1.05;margin:0 0 26px}
.rail-nav{display:flex;flex-direction:column;gap:4px}
.rail-item{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:11px;border:0;background:transparent;color:#B4C0CA;font-weight:600;font-size:15.5px;text-align:left}
.rail-item svg{flex:none}
.rail-item{position:relative}
.rail-badge{margin-left:auto;background:#DE5334;color:#fff;font-size:13px;font-weight:800;min-width:20px;height:20px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.tab-item{position:relative}
.tab-dot{position:absolute;top:-2px;right:12px;width:8px;height:8px;border-radius:50%;background:#DE5334}
/* Approval queue banner (v5) */
.approval-queue{background:#FBE7E0;border:1.5px solid #F0D3C7;border-radius:18px;padding:20px;margin-bottom:20px}
.approval-queue[hidden]{display:none}
.aq-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.aq-dot{width:10px;height:10px;border-radius:50%;background:#DE5334;animation:pulse-dot 1.6s infinite}
.aq-head h3{font-size:17px;font-weight:800;color:#C4472B;margin:0}
.aq-rows{display:flex;flex-direction:column;gap:10px}
.aq-row{background:#fff;border:1px solid #F0D3C7;border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.aq-avatar{width:44px;height:44px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Bricolage Grotesque',system-ui;font-weight:800;font-size:16px}
.aq-info{flex:1;min-width:150px}
.aq-title{font-weight:700;font-size:16px}
.aq-meta{font-size:14.5px;color:var(--muted)}
.aq-listen{width:40px;height:40px;flex:none;border-radius:50%;background:#fff;border:1px solid #E7E1D6;color:var(--ink);font-size:15.5px;cursor:pointer}
.aq-approve{background:#DE5334;color:#fff;border:0;white-space:nowrap}
.aq-back{white-space:nowrap}
.aq-foot{font-size:13.5px;color:#B5654E;margin:14px 0 0}
@media(max-width:560px){.aq-approve,.aq-back{flex:1}}
.rail-item:hover{background:#ffffff10;color:#fff}
.rail-item.active{background:var(--chrome-2);color:#fff;font-weight:700}
.rail-item.active svg{color:var(--peach)}
.rail-foot{margin-top:auto;padding-top:22px}
.rail-add{width:100%;background:var(--accent);color:#fff;border:0;border-radius:12px;padding:12px 0;font-weight:700;font-size:15.5px}
.rail-add:hover{background:var(--accent-dark)}
.content{flex:1;min-width:0;display:flex;flex-direction:column}
.mobile-top{display:none;flex:none;background:var(--chrome);color:#fff;padding:14px 20px;justify-content:space-between;align-items:center}
.mobile-title{font-family:'Bricolage Grotesque';font-weight:800;font-size:17px;margin:0}
.account-initial{width:36px;height:36px;border-radius:50%;background:var(--chrome-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15.5px}
.main-scroll{flex:1;padding:32px 36px 40px;max-width:1200px;width:100%;margin:0 auto}
.view-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:6px}
.view-head h2{font-size:28px;font-weight:800;margin:0}
.view-head-side{display:flex;align-items:center;gap:14px}
.server-state{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;color:var(--teal);font-weight:600}
.server-state i{width:8px;height:8px;border-radius:50%;background:var(--teal);animation:pulse-dot 2.4s infinite}
.server-state.offline{color:var(--danger)}
.server-state.offline i{background:var(--danger);animation:none}
@keyframes pulse-dot{0%,100%{opacity:1}50%{opacity:.35}}
.account-chip{background:#fff;border:1px solid #E1DBCF;border-radius:12px;padding:8px 14px;font-size:14.5px;font-weight:600;color:var(--ink)}
.view-sub{color:var(--muted);font-size:15.5px;margin:0 0 22px;min-height:21px}
.view[hidden]{display:none}
.tabbar{display:none;flex:none;position:sticky;bottom:0;background:#fff;border-top:1px solid #EEE8DD;justify-content:space-around;align-items:center;padding:10px 8px calc(12px + env(safe-area-inset-bottom));z-index:30}
.tab-item{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;color:#A79E8C;font-weight:600;min-width:48px;padding:0}
.tab-item span{font-size:12px}
.tab-item.active{color:var(--ink);font-weight:700}
@media(max-width:760px){
  .rail{display:none}
  .mobile-top{display:flex}
  .tabbar{display:flex}
  .main-scroll{padding:20px 16px 24px}
  .view-head h2{font-size:22px}
  .account-chip{display:none}
}

/* ---------- Library view ---------- */
.lib-toolbar{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.lib-search{flex:1;min-width:220px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #E7E1D6;border-radius:12px;padding:2px 14px;color:#9A9282}
.lib-search input{flex:1;border:0;background:transparent;font-size:15.5px;padding:10px 0;outline:none;color:var(--ink)}
.lib-search input::placeholder{color:#9A9282}
.chip-group{display:flex;gap:6px;background:#E5DFD3;border-radius:12px;padding:4px}
.chip{background:transparent;color:var(--muted);border:0;border-radius:9px;padding:8px 14px;font-size:14.5px;font-weight:600}
.chip.active{background:var(--ink);color:#fff;font-weight:700}
.quick-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-bottom:22px}
.quick-tile{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;text-align:left}
.quick-tile:hover{border-color:#D9D2C2}
.quick-icon{width:40px;height:40px;flex:none;border-radius:11px;display:flex;align-items:center;justify-content:center}
.quick-text{flex:1;display:grid}
.quick-text strong{font-weight:700;font-size:15.5px}
.quick-text small{font-size:13.5px;color:var(--muted)}
.quick-arrow{color:#B7AF9D;font-size:20px}
.quick-tile[aria-expanded="true"]{border-color:var(--teal);background:var(--soft)}
.library-wrap{margin-top:2px}
.library-topline{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.library-topline span{font-weight:700}
.library-topline small{color:var(--muted)}
.library{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:grid}
.book-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto auto;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid #F1ECE3}
.book-faces{display:flex;gap:6px;align-items:center}
.face-btn{width:32px;height:32px;border-radius:50%;padding:0;font-family:'Bricolage Grotesque';font-size:13.5px;line-height:1}
.face-btn.on{background:var(--face-color,#2E8B7A);color:#fff;border:2px solid #fff;box-shadow:0 0 0 1.5px var(--face-color,#2E8B7A);font-weight:800}
.face-btn.off{background:#F4F1EB;color:#B7AF9D;border:1.5px dashed #C9C1B0;font-weight:700}
.face-btn:disabled{opacity:.5}
.book-card:last-child{border-bottom:0}
.book-cover{width:48px;height:48px;object-fit:cover;border-radius:11px;background:#E8E5DF}
.book-info h3{font-size:16px;font-weight:700;margin:0}
.book-info p{margin:0}
.creator{color:var(--muted);font-size:14.5px}
.creator::after{content:""}
.book-meta{color:var(--muted);font-size:14.5px}
.book-info .creator,.book-info .book-meta{display:inline}
.book-info .creator:not(:empty)+.book-meta:not(:empty)::before{content:" · "}
.type-tag{font-size:13px;font-weight:700;padding:4px 11px;border-radius:20px;white-space:nowrap}
.type-tag.tag-audio{background:#E0F0ED;color:#0E7C70}
.type-tag.tag-video{background:#FBE7E0;color:#C4472B}
.type-tag.tag-game{background:#ECE7FB;color:#5B3FC4}
.book-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.book-actions .button{font-size:13.5px;padding:7px 12px}
.book-reach{margin:2px 0 0;font-size:13.5px;color:var(--accent);font-weight:700;display:block!important}
.empty-state{background:#fff;border:1px dashed #CFC8BC;border-radius:16px;padding:34px;text-align:center;color:#8A8272}
.lib-empty-search{padding:34px;text-align:center;color:#8A8272;font-size:15.5px}
/* Loved-by line + cover-as-play-button */
.book-loved{font-size:13.5px;font-weight:600;color:#C4472B;margin-top:3px!important}
.book-cover.cover-play{cursor:pointer;position:relative}
.book-cover.cover-play:hover{filter:brightness(.9)}
/* Library empty state (v5) */
.lib-empty{padding:38px 24px 30px;text-align:center;max-width:620px;margin:0 auto}
.lib-empty-icon{width:74px;height:74px;border-radius:22px;background:#FBE7E0;display:flex;align-items:center;justify-content:center;margin:0 auto 18px}
.lib-empty h3{font-size:22px;font-weight:800;margin:0 0 8px}
.lib-empty-lede{color:var(--muted);font-size:15.5px;line-height:1.55;margin:0 auto 22px;max-width:460px}
.lib-empty-steps{display:grid;gap:10px;text-align:left;margin-bottom:16px}
.lib-step{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 16px;cursor:pointer;width:100%;font-family:inherit}
.lib-step:hover{border-color:var(--teal);background:var(--soft)}
.lib-step-n{width:30px;height:30px;flex:none;border-radius:50%;background:#DE5334;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.lib-step-main{display:flex;flex-direction:column}
.lib-step-main strong{font-size:16px}
.lib-step-main small{font-size:14.5px;color:var(--muted)}
.lib-empty-note{font-size:14.5px;color:#0E635A;font-weight:600}
/* Preview players — audiobook dock */
.preview-scrim.preview-audio{align-items:flex-end;background:rgba(16,27,36,.35)}
.preview-dock{position:relative;background:#101B24;color:#fff;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:14px;width:min(680px,100%);margin:0 auto 6px;box-shadow:0 18px 40px -12px rgba(0,0,0,.5)}
.preview-progress{position:absolute;top:0;left:0;height:4px;background:#DE5334;border-radius:16px 0 0 0;width:0}
.preview-dock-cover{width:44px;height:44px;flex:none;border-radius:10px;background:linear-gradient(135deg,#1BA697,#0E7C70);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px}
.preview-dock-info{flex:1;min-width:0}
.preview-dock-title{font-weight:700;font-size:15.5px}
.preview-dock-meta{font-size:13.5px;color:#8FA0AC}
.preview-play{width:48px;height:48px;flex:none;border-radius:50%;background:#DE5334;color:#fff;border:0;font-size:16px;cursor:pointer}
.preview-skip{background:none;border:0;color:#8FA0AC;font-weight:700;font-size:14.5px;cursor:pointer}
.preview-time{font-size:13.5px;color:#8FA0AC;min-width:36px;text-align:center}
.preview-close{background:none;border:0;color:#8FA0AC;font-size:16px;cursor:pointer}
/* Video theatre */
.preview-scrim.preview-video{background:rgba(8,14,20,.86);overflow-y:auto}
.preview-theatre{width:min(760px,100%);margin:auto}
.preview-stage{position:relative;aspect-ratio:16/9;max-height:58vh;background:linear-gradient(135deg,#E4572E,#B23A1B);border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.preview-stage-mono{font-size:64px;font-weight:800;color:#ffffff55}
.preview-stage-tag{position:absolute;top:12px;left:12px;background:#0009;color:#fff;font-size:13px;font-weight:700;padding:5px 9px;border-radius:8px}
.preview-scrub{height:5px;background:#ffffff22;border-radius:4px;margin:14px 0 10px;overflow:hidden}
.preview-scrub-fill{height:100%;background:#DE5334;width:0}
.preview-vcontrols{display:flex;align-items:center;gap:12px;color:#fff}
.preview-vcontrols .preview-play{width:44px;height:44px}
.preview-vcontrols .preview-time{color:#cfd8dd;margin-left:auto}
/* Game frame */
.preview-scrim.preview-game{background:rgba(16,27,36,.55)}
.preview-phone{width:300px;background:#101B24;border-radius:34px;padding:16px;text-align:center;color:#fff}
.preview-phone-label{font-size:13px;color:#8FA0AC;font-weight:700;margin-bottom:10px}
.preview-phone-screen{position:relative;aspect-ratio:3/4;border-radius:22px;background:linear-gradient(135deg,#7C5CE0,#5330B8);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;overflow:hidden}
.preview-game-mono{font-size:72px;font-weight:800;color:#ffffff44}
.preview-game-mono.running{animation:floaty 3s ease-in-out infinite}
.preview-game-tap{position:static;background:#fff;color:#5330B8;border-radius:11px;padding:10px 20px;font-weight:700;width:auto;height:auto}
.preview-game-time{font-size:14.5px;color:#fff}
.preview-game-controls{display:flex;gap:9px;margin-top:12px;justify-content:center}
.preview-phone-foot{font-size:13.5px;color:#8FA0AC;margin-top:10px}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}

/* ---------- Devices view ---------- */
.devices{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:18px;align-items:start}
@media(max-width:760px){.devices{grid-template-columns:1fr;gap:14px}}
.dev2-head{display:flex;align-items:center;gap:13px}
.dev2-avatar{width:48px;height:48px;border-radius:14px!important;font-size:24px}
.dev2-id{flex:1;min-width:0}
.dev2-name{font-size:17px;font-weight:700;margin:0}
.dev2-status{font-size:14.5px;font-weight:600;color:var(--teal);display:flex;align-items:center;gap:6px}
.dev2-status i{width:7px;height:7px;border-radius:50%;background:var(--teal)}
.device-paused .dev2-status{color:#8A72C9}
.device-paused .dev2-status i{background:#8A72C9}
.device-paused .dev2-avatar{opacity:.55}
.dev2-label{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8A8272;margin-bottom:8px}
.dev2-modes{display:flex;gap:7px}
.mode-chip{flex:1;border-radius:10px;padding:9px 0;font-size:13.5px;text-align:center}
.mode-chip.on{background:#E4F1EE;color:#0E635A;border:1px solid #C9E4DE;font-weight:700}
.mode-chip.off{background:#F4F1EB;color:#A79E8C;border:1px solid var(--line);font-weight:600}
.dev2-row{display:flex;align-items:center;gap:12px;background:var(--soft);border:1px solid #F1ECE3;border-radius:13px;padding:12px 14px}
.dev2-row-main{flex:1;min-width:0}
.dev2-row-title{font-weight:700;font-size:14.5px}
.dev2-row-sub{font-size:13.5px;color:#8A8272}
.dev2-row .button{padding:6px 12px;font-size:13.5px}
.dev2-content-line{display:flex;justify-content:space-between;align-items:baseline}
.dev2-content-line .dev2-label{margin-bottom:6px}
.dev2-synced{font-size:13.5px;color:#8A8272}
.dev2-summary{font-size:14.5px;font-weight:600;color:var(--ink)}
.dev2-actions{display:flex;gap:9px;margin-top:auto}
.dev2-choose{flex:1;background:var(--ink);color:#fff;border:0;border-radius:11px;padding:12px 0;font-weight:700;font-size:14.5px}
.dev2-choose:hover{background:#000a12}
.device-toggle{border-radius:11px;padding:12px 16px;font-weight:700;font-size:14.5px}
.device-toggle.wake{color:#5B3FC4;border:1px solid #DCD2F5;background:#fff}
.old-devices{display:grid;gap:12px}
.add-device-tile{background:transparent;border:1px dashed #C9C1B0;border-radius:16px;padding:16px 0;font-weight:600;font-size:15.5px;color:var(--muted);width:100%;margin-top:12px}
.add-device-tile:hover{border-color:var(--muted)}
.device-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 6px 22px rgba(22,32,42,.04);container-type:inline-size;min-width:0}
.device-card.device-open{box-shadow:0 12px 40px rgba(22,32,42,.09)}
.device-detail{border-top:1px solid var(--line);padding-top:4px;display:grid;gap:0;min-width:0}
.device-detail *{min-width:0}
.device-detail[hidden]{display:none}
.device-detail-footer{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}
.schedule-row{display:grid;grid-template-columns:minmax(130px,1fr) 95px 95px auto;align-items:end;gap:10px;margin-top:17px;padding-top:15px;border-top:1px solid var(--line)}.schedule-switch{align-self:center}.schedule-switch input{margin-right:6px}.schedule-row input[type=time]{padding:8px;margin-top:4px}.schedule-row .button{white-space:nowrap}
@media(max-width:640px){.schedule-row{grid-template-columns:1fr 1fr}.schedule-switch,.save-schedule{grid-column:1/-1}}

/* ---------- Devices v5: header battery, sync, trip, quiet, night light, storage, find, lost ---------- */
.dev2-head{align-items:center}
.dev2-battery{background:#F4F1EB;border:1px solid var(--line);border-radius:9px;padding:5px 10px;font-size:13.5px;font-weight:700;color:var(--muted);flex:none}
.dev2-sync{display:flex;align-items:center;gap:11px;border-radius:13px;padding:12px 14px}
.dev2-sync.synced{background:#E4F1EE;border:1px solid #C9E4DE}
.dev2-sync.waiting{background:#F7EED8;border:1px solid #EADFC0}
.dev2-sync-dot{width:9px;height:9px;flex:none;border-radius:50%}
.dev2-sync.synced .dev2-sync-dot{background:#17877A}
.dev2-sync.waiting .dev2-sync-dot{background:#DE9B34;animation:pulse-dot 1.6s infinite}
.dev2-sync-main{flex:1;min-width:0}
.dev2-sync-title{font-weight:700;font-size:14.5px}
.dev2-sync.synced .dev2-sync-title{color:#0E635A}
.dev2-sync.waiting .dev2-sync-title{color:#8A6314}
.dev2-sync-sub{font-size:13.5px;color:#8A8272}
.dev2-syncnow{background:#fff;border:1px solid #E7E1D6;border-radius:9px;padding:7px 12px;font-size:13.5px;font-weight:700;flex:none;white-space:nowrap}
.dev2-trip{display:flex;align-items:center;gap:11px;background:#ECE7FB;border:1px solid #DCD2F5;border-radius:13px;padding:12px 14px}
.dev2-trip[hidden]{display:none}
.dev2-trip-main{flex:1}
.dev2-trip-title{font-weight:700;font-size:14.5px;color:#4A2FA8}
.dev2-trip-sub{font-size:13.5px;color:#6B5AB8}
.dev2-endtrip{background:#fff;border:1px solid #DCD2F5;color:#5B3FC4;border-radius:9px;padding:7px 12px;font-size:13.5px;font-weight:700;flex:none;white-space:nowrap}
/* Toggle switch (quiet hours, night light) */
.toggle{width:44px;height:26px;border-radius:20px;background:#D9D2C2;position:relative;border:0;cursor:pointer;flex:none;padding:0;transition:background .15s}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.toggle.on{background:#17998A}
.toggle.on::after{left:21px}
.dev2-quiet svg,.dev2-bedtime svg{flex:none}
/* Night light */
.dev2-nl{background:var(--soft);border:1px solid #F1ECE3;border-radius:13px;padding:12px 14px}
.dev2-nl-head{display:flex;align-items:center;gap:12px}
.dev2-nl-dot{width:18px;height:18px;border-radius:50%;flex:none}
.dev2-nl-controls{display:flex;align-items:center;gap:10px;margin-top:12px}
.dev2-nl-controls[hidden]{display:none}
.dev2-nl-swatches{display:flex;gap:7px}
.dev2-nl-swatch{width:22px;height:22px;border-radius:50%;border:2px solid transparent;opacity:.6;cursor:pointer;padding:0}
.dev2-nl-swatch.selected{opacity:1;border-color:#fff;box-shadow:0 0 0 2px var(--sw)}
.dev2-nl-bright{flex:1;min-width:60px;height:26px;cursor:pointer}
/* Storage */
.dev2-storage-line{display:flex;justify-content:space-between;align-items:baseline;font-size:13.5px;color:#8A8272}
.dev2-storage-label{font-size:13.5px}
.dev2-storage-bar{height:7px;background:#F1ECE3;border-radius:4px;overflow:hidden;margin:6px 0}
.dev2-storage-fill{height:100%;border-radius:4px;background:#17877A}
.dev2-storage-sub{font-size:13.5px;color:#8A8272}
.dev2-guardrail{background:#F7EED8;border:1px solid #EADFC0;border-radius:12px;padding:12px 14px;margin-top:10px}
.dev2-guardrail[hidden]{display:none}
.dev2-guard-title{font-weight:700;font-size:14.5px;color:#8A6314;margin-bottom:6px}
.dev2-guard-sub{font-size:13.5px;color:#A0761B}
/* Actions + find */
.dev2-find{width:44px;flex:none;background:#fff;border:1px solid #E7E1D6;color:var(--muted);display:flex;align-items:center;justify-content:center;border-radius:11px}
.dev2-find.ringing{width:auto;background:#DE5334;border-color:#DE5334;color:#fff;gap:7px;padding:12px 14px;font-weight:700;font-size:14.5px}
.dev2-ring-dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:pulse-dot 1s infinite}
/* Footer + lost */
.dev2-footer{display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid #F1ECE3;flex-wrap:wrap}
.dev2-lastseen{flex:1;min-width:150px;font-size:13.5px;color:#8A8272}
.dev2-trip-btn{background:#fff;border:1px solid #E7E1D6;border-radius:10px;padding:8px 13px;font-size:13.5px;font-weight:700;color:#5B3FC4;flex:none;white-space:nowrap}
.dev2-trip-btn[hidden]{display:none}
.dev2-lost-btn{background:#fff;border:1px solid #E7E1D6;border-radius:10px;padding:8px 13px;font-size:13.5px;font-weight:700;color:var(--muted);flex:none;white-space:nowrap}
.dev2-lost-btn.lost-on{background:#FBE7E0;border-color:#F0D3C7;color:#C4472B}
.dev2-lost-panel{background:#16202A;border-radius:14px;padding:16px;color:#fff}
.dev2-lost-panel[hidden]{display:none}
.dev2-lost-eyebrow{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#F0A58C;margin-bottom:8px}
.dev2-lost-preview{background:#18262F;border:1px solid #26414C;border-radius:11px;padding:14px;text-align:center;margin-bottom:10px}
.dev2-lost-name{font-family:'Bricolage Grotesque',system-ui;font-weight:800;font-size:16px;margin-bottom:4px}
.dev2-lost-call{font-size:14.5px;color:#8FA0AC}
.dev2-lost-note{font-size:13.5px;color:#8FA0AC}
/* Find-phone confirm modal (custom scrim div) */
.sb-scrim{position:fixed;inset:0;background:rgba(16,27,36,.55);display:flex;align-items:center;justify-content:center;padding:24px;z-index:70}
.sb-modal{background:#fff;border-radius:20px;padding:26px;width:min(420px,100%);box-shadow:0 30px 70px -20px rgba(0,0,0,.45)}
.find-modal{text-align:center}
.find-modal-icon{width:56px;height:56px;border-radius:16px;background:#FBE7E0;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.find-modal h3{font-size:21px;font-weight:800;margin:0 0 8px}
.find-modal p{color:var(--muted);font-size:15.5px;line-height:1.5;margin:0 0 14px}
.find-modal-warn{background:#F7EED8;border:1px solid #EADFC0;border-radius:11px;padding:10px 12px;font-size:14.5px;font-weight:600;color:#8A6314;margin-bottom:16px}
.find-modal-actions{display:flex;gap:9px}
.find-modal-actions .button{flex:1;padding:13px 0}
.find-go{background:#DE5334;color:#fff}


/* ---------- Family view ---------- */
.family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;align-items:start}
.family-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:0}
.family-card h3{font-size:18px;font-weight:800;margin:0 0 8px}
.family-side{display:flex;flex-direction:column;gap:20px}
.family-actions{display:flex;gap:9px;flex-wrap:wrap}
.family-dark{background:var(--chrome);border-color:var(--chrome);color:#fff}
.family-dark p{color:#8FA0AC;margin:0 0 14px}
.family-dark h3{color:#fff;font-size:16px;font-weight:700;margin:0 0 8px}
.dark-points{display:flex;flex-direction:column;gap:7px;font-size:15.5px}
.pt-yes{color:#7FD3C4}
.pt-no{color:#586873}
.family-title{font-size:18px}
.invite-row{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.invite-row input{flex:1;min-width:170px;background:#F4F1EB;margin-top:0}
.invite-row .button{flex:none;padding:12px 20px;border-radius:12px}
.invite-link-box{background:#E4F1EE;border:1px solid #C9E4DE;border-radius:13px;padding:13px 15px;margin-bottom:14px}
.invite-link-box p{font-size:14px;color:#0E635A;margin:0 0 9px;line-height:1.45}
.invite-link-row{display:flex;gap:8px}
.invite-link-row input{flex:1;min-width:0;margin-top:0;font-size:13.5px;font-family:ui-monospace,Menlo,Consolas,monospace;background:#fff}
.invite-perms{display:flex;flex-direction:column;gap:9px;margin-top:10px}
.invite-perm{display:flex;align-items:center;justify-content:space-between;background:var(--soft);border:1px solid #F1ECE3;border-radius:13px;padding:12px 16px;gap:10px}
.invite-perm-text{display:grid}
.invite-perm-text strong{font-weight:700;font-size:15.5px}
.invite-perm-text small{font-size:13.5px;color:var(--muted)}
.guest-members{display:flex;flex-direction:column;gap:9px}
.guest-empty{border:1.5px dashed #D9D2C2;border-radius:13px;padding:22px;text-align:center;color:#8A8272;font-size:15.5px}
.guest-row{display:flex;align-items:center;gap:12px;border:1px solid #F1ECE3;border-radius:13px;padding:12px 15px;flex-wrap:wrap}
.guest-avatar{width:40px;height:40px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Bricolage Grotesque';font-weight:800;font-size:15.5px}
.guest-info{flex:1;min-width:120px;display:grid}
.guest-info strong{font-weight:700;font-size:15.5px}
.guest-info small{font-size:13.5px;color:var(--muted)}
.guest-tag{font-size:13px;font-weight:700;padding:4px 11px;border-radius:20px;flex:none}
.guest-tag.is-active{background:#E4F1EE;color:#0E635A}
.guest-tag.is-pending{background:#F7EED8;color:#A0761B}
.guest-btn{padding:7px 12px;font-size:13.5px;flex:none}

/* ---------- Forms & buttons ---------- */
label{display:block;font-size:14.5px;font-weight:700;margin-bottom:2px}
label+label,.field+label,input+label,label:has(+input){margin-top:14px}
input[type=text],input[type=password],input[type=time],input[type=search],input[type=email],input[type=number],input:not([type]),select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #E7E1D6;border-radius:11px;padding:12px 14px;background:#fff;color:var(--ink);outline:none;font:inherit;line-height:1.4}
input::placeholder,textarea::placeholder{color:#9A9282}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#DE5334;box-shadow:0 0 0 3px rgba(222,83,52,.14)}
input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #17877A18}
.button{border:1px solid transparent;border-radius:11px;padding:10px 15px;font-weight:700;background:none;color:var(--ink)}
.button:disabled{opacity:.55;cursor:wait}
.primary{background:var(--accent);color:#fff;padding:12px 20px}.primary:hover{background:var(--accent-dark)}
.secondary{background:#fff;border-color:#E7E1D6;font-weight:600}.secondary:hover{background:#F5F3EE}
.danger{color:var(--accent);border-color:#F0D3C7;background:#fff;font-weight:600}.danger:hover{background:#FDF3EF}
.text-button{border:0;background:none;color:var(--teal);font:inherit;font-weight:700;padding:2px;text-decoration:underline;text-underline-offset:2px}

/* ---------- Publisher cards ---------- */
.publisher-card{display:grid;grid-template-columns:310px minmax(0,1fr);background:var(--card);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:22px}
.publish-intro{padding:34px;background:var(--chrome);color:#fff}
.publish-intro>p:not(.eyebrow){color:#8FA0AC}
.publish-intro .eyebrow{color:var(--peach)}
.steps{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:22px}
.steps li{display:flex;align-items:center;gap:13px}
.steps li>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffff13;border:1px solid #ffffff26;color:var(--peach);font-weight:800}
.steps div{display:grid}.steps small{color:#8FA0AC;margin-top:2px}
.publish-form{padding:32px;display:grid;gap:24px;min-width:0}
.field-row,.picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.picker-panel{min-width:0;border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--soft)}
.picker-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.picker-heading div{display:grid}.picker-heading small,.chapter-title small{font-weight:400;color:var(--muted);margin-top:2px}
#audio-summary{font-size:13.5px;color:var(--teal);font-weight:700;text-align:right}
.drop-zone,.cover-picker{position:relative;display:grid;place-items:center;text-align:center;border:1.5px dashed #C9C1B0;border-radius:13px;background:#fff;min-height:146px;padding:20px;transition:.18s ease}
.drop-zone:hover,.drop-zone.dragover,.cover-picker:hover{border-color:var(--teal);background:#F5FFFC}
.drop-zone input,.cover-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.drop-zone span,.drop-zone strong,.drop-zone small,.cover-picker span{pointer-events:none}
.drop-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#E0F0ED;color:var(--teal);font-size:22px;margin-bottom:8px}
.drop-zone small,.cover-picker small{display:block;color:var(--muted);font-weight:400;margin-top:3px}
.folder-choice{display:flex;justify-content:center;align-items:center;gap:6px;color:var(--muted);font-size:13.5px;margin-top:9px}
.cover-picker{overflow:hidden;min-height:230px}.cover-picker img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cover-picker #cover-placeholder{display:grid;place-items:center}.cover-picker b{font-size:30px;color:var(--teal);font-weight:400}
.chapter-panel{margin-top:13px}.chapter-title{display:grid;margin-bottom:8px}
#chapter-list{list-style:none;padding:0;margin:0;display:grid;gap:6px;max-height:225px;overflow:auto}
#chapter-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:7px 8px;font-size:13.5px}
.chapter-number{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#E0F0ED;color:var(--teal);font-weight:800}
.chapter-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-size{color:var(--muted)}
.chapter-buttons{display:flex;gap:3px}.chapter-buttons button{border:0;background:#F0EEE9;color:var(--ink);border-radius:6px;width:27px;height:27px;padding:0;font-weight:800}.chapter-buttons button:hover{background:#DEDBD4}.chapter-buttons button:disabled{opacity:.32;cursor:default}
.publish-action{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:20px}
.progress-wrap{flex:1;min-width:0}progress{display:block;width:100%;height:8px;accent-color:var(--teal);margin-bottom:8px}#status{color:var(--muted);font-size:14.5px;margin:0;min-height:20px}.status-success{color:var(--teal)!important;font-weight:700}.status-error{color:var(--danger)!important;font-weight:700}
.media-publisher{margin-top:0}
.compact-publisher input[type=file],.compact-publisher select{display:block;width:100%;margin-top:7px;border:1px solid #E7E1D6;border-radius:11px;padding:11px;background:#fff;color:var(--ink)}

/* ---------- Record view v8 — three steps, one column ---------- */
.rec-flow{max-width:640px;margin:0 auto;padding-bottom:32px;display:flex;flex-direction:column;gap:18px}
.rec-steps{display:flex;align-items:center;gap:8px}
.rec-step{flex:1;background:none;border:0;padding:0;text-align:left;font-family:inherit;cursor:pointer}
.rec-step:disabled{cursor:default}
.rec-step-bar{display:block;height:4px;border-radius:3px;background:#E5DFD3;margin-bottom:8px;transition:background .18s ease}
.rec-step-label{display:block;font-size:13px;font-weight:600;color:#A79E8C}
.rec-step.done .rec-step-bar{background:var(--peach)}
.rec-step.current .rec-step-bar{background:var(--accent)}
.rec-step.current .rec-step-label{color:var(--ink);font-weight:700}

/* The console. Idle is quiet and grey; recording lifts the timer and the bars
   to white so the only bright thing on screen is the level you're making. */
.rec-console{background:var(--chrome);border-radius:20px;padding:28px;color:#fff;text-align:center;position:relative}
.rec-tips-pill{position:absolute;top:16px;right:16px;display:flex;align-items:center;gap:8px;background:#1B2833;border:1px solid #2A3A46;border-radius:20px;padding:7px 13px 7px 10px;cursor:pointer;font-family:inherit;transition:background .18s ease,border-color .18s ease}
.rec-tips-pill:hover{background:#22303C;border-color:#3E5261}
.rec-tips-pill span{font-size:13px;font-weight:700;color:var(--peach)}
.rec-console .recording-indicator{justify-content:center;margin-bottom:4px;font-size:13.5px}
.rec-console-time{display:block;font-family:'Bricolage Grotesque';font-weight:800;font-size:58px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em;margin-bottom:10px;color:#3E5261;transition:color .2s ease}
.rec-console.recording .rec-console-time{color:#fff}
.rec-meter{display:flex;align-items:center;justify-content:center;gap:3px;height:56px;margin-bottom:14px}
.rec-meter span{width:4px;border-radius:3px;background:#2A3A46;transform-origin:center}
.rec-console.recording .rec-meter span{height:48px;background:#8FA0AC}
.rec-console-controls{display:flex;justify-content:center}
.rec-round-start{width:82px;height:82px;border-radius:50%;background:var(--accent);border:5px solid #2A3A46;cursor:pointer;padding:0;box-shadow:0 0 0 0 rgba(222,83,52,.45);transition:box-shadow .2s ease}
.rec-round-start:hover:not(:disabled){box-shadow:0 0 0 10px rgba(222,83,52,.18)}
.rec-round-start:disabled{opacity:.5;cursor:not-allowed}
.rec-round-stop{width:82px;height:82px;border-radius:50%;background:#fff;border:5px solid #2A3A46;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.rec-round-stop span{width:26px;height:26px;border-radius:6px;background:var(--accent)}
.rec-console-hint{font-size:13.5px;color:#8FA0AC;margin-top:16px}
.rec-console-minor{display:flex;justify-content:center;gap:8px;margin-top:12px}
.rec-minor-btn{background:transparent;border:1px solid #2A3A46;color:#8FA0AC;border-radius:10px;padding:8px 14px;font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit}
.rec-minor-btn.danger{color:var(--peach)}
.rec-console-help{font-size:13px;color:#6E7C88;max-width:470px;margin:14px auto 0}

.rec-split-hint{font-size:13.5px;color:#8A8272;line-height:1.5;margin:12px 0 0}
.rec-ai-eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.rec-ai-eyebrow span{font-size:12.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-dark)}
.rec-ai-title{font-size:20px;font-weight:800;margin:0 0 6px}
.rec-ai-lede{font-size:14.5px;color:var(--body);line-height:1.5;margin:0 0 18px}
.rec-input{width:100%;background:#F4F1EB;border:1px solid #E7E1D6;border-radius:12px;padding:12px 15px;font-family:inherit;font-size:15px;color:var(--ink);margin-bottom:18px}
.rec-summary{background:var(--soft);border:1px solid #F1ECE3;border-radius:14px;padding:15px 17px;font-size:14px;color:#3B3527;line-height:1.5;margin:0}
.rec-nav{display:flex;gap:10px;align-items:center}
.rec-back-btn{border-radius:13px;padding:14px 22px;font-weight:700;font-size:14.5px;color:var(--body)}
.rec-next-btn{flex:1;border-radius:13px;padding:15px 0;font-weight:700;font-size:15.5px}

/* "How to sound your best" — a modal, but still the drawn explanation. No
   explainer video has been shot for the parent app; the animation says the
   same thing and says it today. */
.tips-scrim{position:fixed;inset:0;background:rgba(16,27,36,.55);display:flex;align-items:center;justify-content:center;padding:24px;z-index:58;overflow-y:auto}
.tips-modal{background:#fff;border-radius:22px;padding:28px;max-width:520px;width:100%;box-shadow:0 30px 70px -20px rgba(0,0,0,.45);margin:auto}
.tips-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.tips-head h3{font-size:17px;margin:0}
.tips-close{width:30px;height:30px;border-radius:9px;background:#fff;border:1px solid #E7E1D6;color:var(--muted);font-size:14.5px}
.tips-stage{background:var(--soft);border:1px solid #F1ECE3;border-radius:16px;height:130px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative;overflow:hidden;margin-bottom:14px}
.tips-face{width:58px;height:58px;flex:none;border-radius:50%;background:var(--accent);position:relative;z-index:2}
.tf-eye{position:absolute;top:19px;width:7px;height:7px;border-radius:50%;background:#fff}
.tf-eye-l{left:14px}.tf-eye-r{left:33px}
.tf-mouth{position:absolute;top:36px;left:20px;width:18px;height:9px;border-radius:0 0 10px 10px;background:#fff}
.tips-ripples{width:74px;height:44px;flex:none;position:relative}
.tips-ripples span{position:absolute;top:2px;left:8px;width:40px;height:40px;border-radius:50%;border:2.5px solid var(--peach);border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;animation:tip-ripple 2.1s ease-out infinite}
.tips-ripples span:nth-child(2){animation-delay:.7s}
.tips-ripples span:nth-child(3){animation-delay:1.4s}
.tips-phone{width:34px;height:64px;flex:none;background:var(--ink);border-radius:9px;position:relative;z-index:2;animation:tip-floaty 3s ease-in-out infinite}
.tp-speaker{position:absolute;top:7px;left:12px;width:10px;height:3px;border-radius:2px;background:#3A5060}
.tp-dot{position:absolute;bottom:8px;left:11px;width:12px;height:12px;border-radius:50%;background:var(--accent)}
.tips-caption{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:13px;color:#B7AF9D;font-weight:700;letter-spacing:.06em}
.tip-text{min-height:42px;font-size:15.5px;color:var(--ink);font-weight:600;line-height:1.45;text-align:center;padding:0 8px}
.tip-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.tip-dot{width:7px;height:7px;border-radius:50%;background:#D9D2C2;border:0;padding:0}
.tip-dot.active{width:20px;border-radius:4px;background:var(--accent)}
@keyframes tip-ripple{0%{transform:scale(.45);opacity:.95}100%{transform:scale(1.5);opacity:0}}
@keyframes tip-floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
/* Meter fallback when there's no microphone to read. */
@keyframes rec-lvl{0%,100%{transform:scaleY(.14)}50%{transform:scaleY(1)}}
.rec-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}
.rec-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:12px}
.rec-card-head h3{font-size:17px;margin:0}
.rec-card-head span{font-size:13.5px;color:#8A8272}
.rec-card-lede{font-size:14.5px;color:var(--muted);line-height:1.5;margin:0 0 14px}
/* Pill toggle — the enhance master switch is gone in v8, but the Family circle
   permission rows still use this. */
.switch{width:44px;height:26px;border-radius:20px;background:#D9D2C2;position:relative;border:0;flex:none;padding:0;transition:background .15s}
.switch span{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.switch.on{background:#17998A}
.switch.on span{left:21px}
.enhance-opts{display:flex;flex-direction:column;gap:9px}
.enh-opt{display:flex;align-items:center;gap:12px;border-radius:14px;padding:14px 16px;text-align:left;width:100%}
.enh-opt.on{background:#FDF3EA;border:1.5px solid #F0D3C7}
.enh-opt.off{background:var(--soft);border:1.5px solid #F1ECE3}
.enh-check{width:24px;height:24px;flex:none;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13.5px;font-weight:800}
.enh-opt.on .enh-check{background:var(--accent);color:#fff}
.enh-opt.off .enh-check{background:#fff;border:1.5px solid #D9D2C2}
.enh-opt-text{flex:1;display:grid}
.enh-opt-text strong{font-weight:700;font-size:14.5px}
.enh-opt.off .enh-opt-text strong{color:var(--body)}
.enh-opt-text small{font-size:13.5px;color:var(--body)}
.enh-opt.off .enh-opt-text small{color:#A79E8C}
.rec-field-label{font-size:13.5px;font-weight:700;margin-bottom:7px}
.rec-cover-row{display:flex;gap:14px;align-items:center;margin-bottom:18px}
.rec-cover-thumb{width:82px;height:82px;flex:none;border-radius:14px;position:relative;display:flex;align-items:center;justify-content:center;color:#B7AF9D;overflow:visible}
.rec-cover-thumb.empty{border:1.5px dashed #D9D2C2}
.rec-cover-thumb.generated{background:linear-gradient(135deg,#7C5CE0,#4A2FA0)}
.rec-cover-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:14px}
.rec-cover-mono{font-family:'Bricolage Grotesque';font-weight:800;font-size:22px;color:#fff}
.rec-cover-badge{position:absolute;bottom:-6px;right:-6px;width:24px;height:24px;border-radius:50%;background:#17998A;color:#fff;font-size:13.5px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff;z-index:2}
.rec-cover-buttons{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.rec-generate-btn{background:var(--ink);color:#fff;border:0;border-radius:11px;padding:11px 16px;font-weight:700;font-size:13.5px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap;width:100%}
.rec-generate-btn:hover{filter:brightness(1.08)}
.rec-cover-alts{display:flex;gap:8px;flex-wrap:wrap}
.rec-alt-btn{flex:1;border-radius:11px;padding:9px 14px;font-size:13px;font-weight:600;text-align:center;cursor:pointer;color:var(--body);white-space:nowrap}
.rec-publish-btn{flex:1;border-radius:13px;padding:15px 0;font-weight:700;font-size:15.5px}
.rec-publish-btn:disabled{background:#EFC7BA;color:#fff;opacity:1;cursor:not-allowed}
.rec-status{min-height:20px;margin:10px 0 0;font-size:14.5px;color:var(--muted);text-align:center}
.polish-overlay{position:fixed;inset:0;background:var(--chrome);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;z-index:60;color:#fff;text-align:center;overflow:hidden}
.polish-overlay[hidden]{display:none}
.polish-overlay h2{font-size:28px;font-weight:800;margin:0 0 10px;color:#fff}
.pol-star{position:absolute;animation:twinkle-star 2.6s ease-in-out infinite}
.pol-star.s1{top:18%;left:16%}
.pol-star.s2{top:26%;right:20%;animation-duration:3.4s;animation-delay:.8s}
.pol-star.s3{bottom:24%;left:26%;animation-duration:3s;animation-delay:1.6s}
.pol-star.s4{bottom:30%;right:14%;animation-duration:2.4s;animation-delay:.4s}
.polish-bars{display:flex;align-items:center;gap:4px;height:90px;width:min(430px,84%);margin-bottom:36px}
.polish-bars span{flex:1;border-radius:3px;transform-origin:center}
.polish-stage{font-size:16px;color:#8FA0AC;font-weight:600;min-height:24px;margin-bottom:26px}
.polish-track{width:240px;height:8px;background:var(--chrome-2);border-radius:4px;overflow:hidden}
.polish-pct{width:0;height:100%;background:linear-gradient(90deg,#7FD3C4,#F0A58C);border-radius:4px;transition:width .3s}
.polish-note{font-size:14.5px;color:#6E7C88;margin-top:22px}
@keyframes twinkle-star{0%,100%{opacity:.15;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
@keyframes eq-bar{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}

/* ---------- Recording studio ---------- */
.recording-indicator{display:flex;align-items:center;gap:8px;font-weight:700;color:#8FA0AC}.recording-indicator i{width:11px;height:11px;border-radius:50%;background:#3A5060}.recording-indicator.active{color:var(--peach)}.recording-indicator.active i{background:var(--accent);box-shadow:0 0 0 6px #DE533428;animation:record-pulse 1.4s infinite}.recording-indicator.paused i{background:#E8A531;animation:none}
.recording-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.recording-take{display:flex;align-items:center;gap:12px;background:var(--soft);border:1px solid #F1ECE3;border-radius:13px;padding:11px 14px}
.rec-take-play{width:34px;height:34px;flex:none;border-radius:50%;background:var(--ink);border:0;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.recording-take-main{flex:1;min-width:0}
.recording-take-main strong{display:block;font-weight:700;font-size:14.5px}
.recording-take-main small{display:block;font-size:13px;color:#8A8272}
.recording-remove{background:none;border:0;color:#A79E8C;font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit;padding:6px 8px}
.recording-remove:hover:not(:disabled){color:var(--accent)}
.recording-remove:disabled{opacity:.5;cursor:not-allowed}
@keyframes record-pulse{50%{box-shadow:0 0 0 10px #DE533408}}
@media(max-width:850px){.recording-workspace{grid-template-columns:1fr}.publisher-card{grid-template-columns:1fr}.publish-intro{padding:27px}.steps{grid-template-columns:repeat(3,1fr);gap:10px}.steps li{align-items:flex-start}.steps small{display:none}}
@media(max-width:650px){.rec-console{padding:24px 18px}.rec-console-time{font-size:48px}.rec-step-label{font-size:12px}.rec-cover-row{flex-wrap:wrap}.rec-cover-buttons{flex-basis:100%}.field-row,.picker-grid{grid-template-columns:1fr}.publish-form{padding:20px}.steps{grid-template-columns:1fr;margin-top:20px}.steps small{display:block}.publish-action{align-items:stretch;flex-direction:column}.primary{width:100%}.book-card{grid-template-columns:48px 1fr;gap:12px}.type-tag{display:none}.book-faces{grid-column:1/-1;padding-top:10px;border-top:1px solid #F1ECE3}.book-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}}

/* ---------- Dialogs ---------- */
.edit-extras{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}
dialog{border:0;border-radius:20px;padding:0;width:min(460px,calc(100% - 30px));box-shadow:0 24px 100px #0006}dialog::backdrop{background:#101B24cc}.dialog-form{padding:28px;display:grid;gap:16px}.dialog-form h2{margin:0}.dialog-form>p:not(.eyebrow){color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}.dialog-status{min-height:20px;margin:0;font-size:14.5px}.compact-file{border:1px solid var(--line);border-radius:11px;padding:13px}.compact-file input{display:block;margin-top:8px;width:100%}
.account-dialog{max-height:min(760px,90vh);overflow:auto}.account-dialog-heading{display:flex;justify-content:space-between;gap:20px}.icon-button{border:0;background:#EEEAE2;border-radius:50%;width:34px;height:34px;font-size:23px;line-height:1}
.account-list{display:grid;gap:8px}.account-row{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.account-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--teal);color:#fff;font-weight:800}.account-row div{display:grid}.account-row small{color:var(--muted)}.account-form{border-top:1px solid var(--line);padding-top:16px;display:grid;gap:12px;margin-top:14px}.account-form h3{margin:0;font-size:16px}

/* ---------- Login ---------- */
.login-body{min-height:100vh;background:var(--chrome);display:grid;place-items:center;padding:28px}.login-shell{width:min(940px,100%);padding:0;display:grid;grid-template-columns:1.05fr .95fr;background:#0F1922;border:1px solid #ffffff18;border-radius:28px;overflow:hidden;box-shadow:0 30px 100px #0008}.login-brand{padding:58px;color:#fff;background:radial-gradient(circle at 10% 10%,#17877A66,transparent 45%),var(--chrome)}.login-brand h1{font-size:44px;margin:5px 0 10px}.login-brand>p:not(.eyebrow){color:#8FA0AC;max-width:430px;margin:20px 0 30px}.login-mark{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:var(--accent);color:#fff;font-size:24px;margin-bottom:32px}.login-feature{display:flex;gap:10px;align-items:center;color:#DCE4E8;margin-top:13px}.login-feature i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--teal);font-style:normal;font-size:13.5px}.login-card{background:#fff;padding:58px 48px}.login-card h2{font-size:34px;margin:7px 0 12px}.login-card>p:not(.eyebrow){color:var(--muted);margin-bottom:28px}.login-card form{display:grid;gap:17px}.login-button{width:100%;margin-top:4px}.login-status{min-height:22px;color:var(--danger);margin:0;font-size:14.5px;font-weight:700}.login-help{display:block;text-align:center;color:var(--muted);margin-top:24px}
@media(max-width:850px){.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-card{padding:42px 30px}}

/* ---------- Child identity / sections / content picker ---------- */
.section-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px;padding:13px;border-radius:12px;background:var(--soft)}.section-controls strong{margin-right:auto}.section-controls label{display:flex;gap:6px;align-items:center}.section-controls .button{padding:8px 11px}
.child-controls{margin-top:16px;padding:14px;border-radius:12px;background:var(--soft);display:grid;gap:12px}
.child-identity{display:flex;align-items:end;gap:12px}
.avatar-preview{flex:none;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:26px;background-size:cover;background-position:center;box-shadow:0 0 0 3px #fff,0 2px 8px rgba(22,32,42,.15)}
.child-name-field{flex:1;min-width:0;font-weight:700;font-size:14.5px;color:var(--muted)}
.child-name-field input{margin-top:5px;font-weight:600;color:var(--ink)}
.save-child{white-space:nowrap}
.avatar-picker{display:flex;flex-wrap:wrap;gap:7px}
.avatar-swatch{width:38px;height:38px;border-radius:50%;border:2px solid transparent;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;transition:transform .1s}
.avatar-swatch:hover{transform:scale(1.08)}
.avatar-swatch.selected{border-color:var(--teal);box-shadow:0 0 0 2px #17877A33}
.avatar-upload{justify-self:start;cursor:pointer;padding:8px 12px;font-size:14.5px}
.content-empty{color:var(--muted);text-align:center;padding:26px 0}
.content-picker-help{color:var(--muted);font-size:14.5px;margin:6px 0 12px}
.content-tabs{display:flex;gap:8px;padding-bottom:12px}
.content-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 6px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:var(--muted);transition:background .12s,border-color .12s}
.content-tab:hover{background:var(--soft)}
.content-tab .tab-label{font-weight:700;font-size:15.5px}
.content-tab .tab-count{font-size:13.5px;font-weight:600;color:var(--muted)}
.content-tab.active{border-color:var(--teal);background:var(--soft);color:var(--ink,inherit)}
.content-tab.active .tab-count{color:var(--teal)}
.content-tab.section-off{opacity:.62}
.content-tab.section-off .tab-label::after{content:" · off";font-weight:400;font-size:13.5px;color:var(--muted)}
.content-panel{display:grid;gap:0}
.content-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;margin-bottom:7px;cursor:pointer;background:#fff}
.content-item:hover{background:var(--soft)}
.content-item input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--teal)}
.content-item-title{font-weight:700;font-size:16px}.content-item-title small{font-weight:400;color:var(--muted);font-size:14.5px}
.content-off-hint{background:#F7EED8;border:1px solid #EBD9A9;color:#A0761B;border-radius:12px;padding:10px 13px;font-size:14.5px;line-height:1.45;margin-bottom:12px}
.content-off-hint b{font-weight:700}

/* ---------- Enhance ---------- */
.enhance-panel{grid-column:1/-1;margin-top:4px;padding:13px 15px;border:1px solid var(--line);border-radius:13px;background:var(--soft);display:grid;gap:10px}
.enhance-panel.is-processing{color:var(--muted);font-size:15px;line-height:1.45}
.enhance-panel.is-error{color:#A0761B;background:#F7EED8;border-color:#EBD9A9;font-size:15px}
.enhance-summary{margin:0;font-size:15px;line-height:1.45}
.enhance-panel audio{width:100%;height:40px}
.enhance-actions{display:flex;gap:8px;flex-wrap:wrap}
.enhance-actions .button{font-size:13.5px;padding:8px 12px}

/* ---------- Settings / sound pack ---------- */
.settings-row{border:1px solid var(--line);border-radius:13px;padding:14px 15px;margin-bottom:12px;background:#fff}
.settings-row-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.settings-state{font-size:14px;color:var(--muted)}
.settings-note{margin:6px 0 10px;font-size:14.5px;color:var(--muted);line-height:1.45}
.settings-input{display:flex;gap:8px}
.settings-input input{flex:1;min-width:0}
.settings-extra{margin-top:8px}
.settings-summary{border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:15px}
.settings-summary p{margin:0;flex:1 1 100%}
.settings-test{font-size:14.5px;color:var(--muted)}
.soundpack-group{margin:16px 0 8px;font-size:13.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.soundpack-row{display:grid;grid-template-columns:auto auto 1fr auto auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.soundpack-name{font-weight:700;font-size:15.5px;min-width:96px}
.soundpack-badge{font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px}
.soundpack-badge.is-custom{color:var(--teal);border-color:var(--teal);font-weight:700}
.soundpack-row audio{width:100%;height:34px}
.soundpack-replace{font-size:13.5px;padding:6px 10px;cursor:pointer}
.soundpack-replace.busy{opacity:.6;pointer-events:none}
.soundpack-reset{font-size:13.5px}
@media(max-width:640px){.soundpack-row{grid-template-columns:1fr auto;row-gap:6px}.soundpack-row audio{grid-column:1/-1}}

/* ---------- Overview dialog ---------- */
.overview-dialog{width:min(820px,calc(100% - 30px))}
.overview-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:12px 0 4px}
.stat-tile{background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:12px 10px;text-align:center}
.stat-tile b{display:block;font-size:24px;line-height:1.1}
.stat-tile span{font-size:13.5px;color:var(--muted)}
.overview-heading{margin:20px 0 8px;font-size:13.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.overview-table{width:100%;border-collapse:collapse;font-size:15px}
.overview-table th{text-align:left;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--line)}
.overview-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
.overview-child{display:flex;align-items:center;gap:9px;font-weight:700}
.overview-avatar{width:26px;height:26px;font-size:15.5px;flex:none}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#C3C8CD}
.status-dot.status-online{background:#27B49F}.status-dot.status-paused{background:#E0A63C}.status-dot.status-asleep{background:#8A72C9}.status-dot.status-offline{background:#C3C8CD}
.overview-board{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.board-col{background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:11px}
.board-col h4{margin:0 0 9px;font-size:13.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);display:flex;justify-content:space-between}
.board-col h4 em{font-style:normal;background:#fff;border:1px solid var(--line);border-radius:999px;padding:0 7px;color:var(--ink)}
.board-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:8px 10px;margin-bottom:7px;display:block;width:100%;text-align:left;font:inherit;cursor:pointer}
.board-card:hover{border-color:var(--teal)}
.board-card b{display:block;font-size:14.5px}.board-card span{font-size:13.5px;color:var(--muted)}
.board-empty{color:var(--muted);font-size:14.5px;margin:2px 0}
@media(max-width:720px){.overview-stats{grid-template-columns:repeat(3,1fr)}.overview-board{grid-template-columns:1fr}}

/* ---------- Setup wizard ---------- */
.wizard-dialog{width:min(680px,calc(100% - 30px))}
.wizard{padding:26px 28px 30px;display:grid;gap:18px}
.wizard-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.wizard-close{padding:7px 12px;font-size:14.5px}
.wizard-progress{display:flex;gap:0;list-style:none;margin:0;padding:0;counter-reset:wstep}
.wizard-progress li{flex:1;position:relative;text-align:center;font-size:13.5px;font-weight:700;color:var(--muted);padding-top:26px}
.wizard-progress li::before{counter-increment:wstep;content:counter(wstep);position:absolute;top:0;left:50%;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;background:#EEEAE2;color:var(--muted);display:grid;place-items:center;font-size:13px}
.wizard-progress li::after{content:"";position:absolute;top:11px;left:calc(-50% + 11px);width:calc(100% - 22px);height:2px;background:var(--line)}
.wizard-progress li:first-child::after{display:none}
.wizard-progress li.active{color:var(--teal)}.wizard-progress li.active::before{background:var(--teal);color:#fff}
.wizard-progress li.done{color:var(--ink)}.wizard-progress li.done::before{background:#27B49F;color:#fff}.wizard-progress li.done::after,.wizard-progress li.active::after{background:#27B49F}
.wizard-body{display:grid;gap:15px}
.wizard-lede{color:var(--muted);margin:0}
.wizard-field{font-size:14.5px;font-weight:700;color:var(--muted)}.wizard-field small{font-weight:400}
.wizard-identity{display:flex;align-items:end;gap:14px}.wizard-identity .wizard-field{flex:1}
.wizard-avatar{width:60px;height:60px;font-size:30px;flex:none}
.wizard-next{justify-self:start;margin-top:4px}
.wizard-done{display:flex;align-items:center;gap:16px}.wizard-done h3{margin:0 0 4px}.wizard-done p{margin:0;color:var(--muted)}
.enrol-grid{display:grid;grid-template-columns:220px 1fr;gap:22px;align-items:start}
.enrol-qr{display:grid;gap:12px;justify-items:center}
.enrol-qr svg{width:100%;height:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
.enrol-status{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:700;color:var(--muted)}
.enrol-status .dot{width:9px;height:9px;border-radius:50%;background:var(--muted)}
.enrol-status.waiting .dot{background:#E0972F;animation:pulse-dot 1.3s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.enrol-status.waiting .dot{animation:none}.server-state i{animation:none}}
.enrol-steps h3{margin:0 0 8px;font-size:16px}
.enrol-steps ol{margin:0;padding-left:20px;display:grid;gap:7px;color:var(--ink);font-size:16px}
.enrol-compat{margin:14px 0 0;font-size:14.5px;color:var(--muted)}.enrol-compat a{color:var(--teal);font-weight:700;text-decoration:none}.enrol-compat a:hover{text-decoration:underline}
.enrol-manual{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.enrol-manual summary{cursor:pointer;color:var(--teal);font-weight:700;font-size:14.5px}
.enrol-manual p{color:var(--muted);font-size:14.5px;margin:10px 0}
.enrol-manual dl{display:grid;gap:8px;margin:0}.enrol-manual dl>div{display:grid;grid-template-columns:90px 1fr;gap:10px;align-items:baseline}
.enrol-manual dt{color:var(--muted);font-size:13.5px;font-weight:700}.enrol-manual dd{margin:0;font-size:14.5px;word-break:break-all}.enrol-manual dd.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px}
@media(max-width:600px){.enrol-grid{grid-template-columns:1fr}.enrol-qr{max-width:220px}}

/* ---------- Admin (legacy shared bits) ---------- */
.admin-body{max-width:1180px;margin:0 auto;padding:28px 20px 60px}
.admin-gate{min-height:72vh;display:flex;align-items:center;justify-content:center}
.admin-card{width:min(400px,100%);background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;display:grid;gap:12px}
.admin-card h1{margin:0;font-size:26px}
.admin-card label{display:grid;gap:5px;font-size:14.5px}
.admin-card input{padding:10px 12px;border:1px solid var(--line);border-radius:10px;font:inherit}
.muted{color:var(--muted);font-size:14.5px}

/* ---- Builder: kit shelf & scan ------------------------------------------ */
.quick-tile-dark{background:#101B24;border-color:#26414C}
.quick-tile-dark .quick-text strong{color:#EFEBE2}
.quick-tile-dark .quick-text small{color:#8FA0AC}
.quick-tile-dark .quick-arrow{color:#8FA0AC}
.ai-chip{display:inline-block;background:#F0A58C;color:#101B24;font-size:12px;font-weight:800;letter-spacing:.08em;border-radius:6px;padding:1px 6px;vertical-align:2px}
.kit-shelf{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}
@media (max-width:760px){.kit-shelf{grid-template-columns:1fr}}
/* Builder hero + the 60-second walk-through. The video slots are deliberately
   empty placeholders — no explainer has been shot yet. */
.kit-hero{background:var(--ink);color:#fff;border-radius:22px;padding:28px;margin-bottom:18px;display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:center}
.kit-hero-chip{display:inline-flex;align-items:center;gap:8px;background:rgba(222,83,52,.18);color:#F2A992;border-radius:20px;padding:6px 13px;font-size:13px;font-weight:700;margin-bottom:14px}
.kit-hero h2{font-size:27px;font-weight:800;line-height:1.12;margin:0 0 10px}
.kit-hero-main p{font-size:15px;color:#9FB0BC;line-height:1.55;margin:0 0 20px}
.kit-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.kit-hero-print{background:rgba(255,255,255,.09);color:#fff;border-radius:12px;padding:13px 20px;font-weight:700;font-size:14.5px;text-decoration:none}
.kit-hero-video{aspect-ratio:16/9;border-radius:16px;background:#0B131A;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;color:inherit}
.kit-hero-play{width:62px;height:62px;border-radius:50%;background:var(--accent);color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;padding-left:4px}
.kit-hero-caption{text-align:center;padding:0 24px;display:grid;gap:3px}
.kit-hero-caption strong{font-weight:700;font-size:15px;color:#fff}
.kit-hero-caption small{font-size:13.5px;color:#6E808D}
@media(max-width:760px){.kit-hero{grid-template-columns:1fr;padding:22px}}

.kit-intro-scrim{position:fixed;inset:0;background:rgba(12,20,27,.6);display:flex;align-items:center;justify-content:center;padding:24px;z-index:80;overflow-y:auto}
.kit-intro{background:#fff;border-radius:22px;width:100%;max-width:660px;margin:auto;overflow:hidden;box-shadow:0 40px 80px -25px rgba(0,0,0,.5)}
.kit-intro-stage{position:relative;aspect-ratio:16/9;background:var(--chrome);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.kit-intro-play{width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:21px;padding-left:4px}
.kit-intro-slot{text-align:center;display:grid;gap:3px}
.kit-intro-slot strong{color:#fff;font-weight:700;font-size:15px}
.kit-intro-slot small{color:#6E808D;font-size:13.5px}
.kit-intro-close{position:absolute;top:14px;right:14px;background:rgba(255,255,255,.12);border:none;border-radius:10px;width:36px;height:36px;color:#fff;font-size:15px}
.kit-intro-body{padding:26px 28px 24px}
.kit-intro-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.kit-intro-n{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:13.5px;color:var(--accent);letter-spacing:.08em}
.kit-intro-head h3{margin:0;font-size:22px;font-weight:800;line-height:1.15}
.kit-intro-copy{font-size:15.5px;line-height:1.6;color:#3B3527;margin:0 0 14px}
.kit-intro-note{background:var(--soft);border:1px solid #F1ECE3;border-radius:12px;padding:12px 15px;font-size:13.5px;color:var(--muted);font-weight:600;margin:0 0 22px}
.kit-intro-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.kit-intro-dots{display:flex;gap:6px;align-items:center}
.kit-dot{height:8px;width:8px;border-radius:20px;background:#DDD5C6;transition:width .2s}
.kit-dot.on{width:22px;background:var(--ink)}
.kit-intro-buttons{display:flex;gap:9px}

.kit-cards{display:grid;gap:16px}
.kit-card{background:#fff;border:1px solid #EAE4D9;border-radius:18px;overflow:hidden}
.kit-card-head{background:#16202A;color:#EFEBE2;padding:16px 18px}
.kit-card-head h3{margin:0;font-size:19px}
.kit-card-head small{color:#8FA0AC;font-weight:600;font-size:13.5px}
.kit-blurb{padding:14px 18px 0;color:#6E6656;margin:0}
.kit-codes{display:flex;flex-wrap:wrap;gap:6px;padding:12px 18px}
.kit-sheet-pill{font-size:13px;font-weight:600;background:#F4F1EB;border-radius:20px;padding:5px 11px;color:#6E6656}
.kit-actions{display:flex;gap:10px;padding:0 18px 18px}
.kit-print{flex:1;text-align:center;border:1.5px solid #E7E1D6;border-radius:12px;padding:11px;font-weight:700;color:#16202A;text-decoration:none}
.kit-scan-btn{flex:1;background:#DE5334;color:#fff;border:0;border-radius:12px;padding:11px;font-weight:700;cursor:pointer;box-shadow:0 14px 30px -10px rgba(222,83,52,.55)}
.card-like{background:#fff;border:1px solid #EAE4D9;border-radius:18px;padding:16px 18px;margin-bottom:16px}
.card-like h3{margin:0 0 10px;font-size:16px}
.kit-steps ol{margin:0;padding-left:20px;color:#6E6656;font-size:15.5px;display:grid;gap:8px}
.kit-built-row{margin:0 0 8px;font-weight:700;color:#16202A}
.kit-built-row small{display:block;font-weight:600;color:#8A8272}
.kit-built-empty{color:#8A8272;margin:0;font-size:15.5px}
.kit-back{background:none;border:0;color:#C4472B;font-weight:700;cursor:pointer;padding:0;margin-bottom:10px}
.kit-scan-title{margin:0 0 4px;font-size:19px}
.kit-scan-count{margin:0 0 12px;font-size:13.5px;color:#8A8272;font-weight:600}
.kit-banner{background:#F7EED8;border:1px solid #EADFC0;color:#8A6314;border-radius:14px;padding:12px 15px;font-weight:600;font-size:15.5px;margin-bottom:14px}
.kit-sheet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-bottom:18px}
.kit-sheet{background:#fff;border:1px solid #EAE4D9;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px}
.kit-sheet.done{border-color:#C9E4DE}
.kit-sheet-paper{position:relative;aspect-ratio:210/140;background:#FBF9F4;border:1px solid #F1ECE3;border-radius:8px;display:flex;gap:4px;overflow:hidden;padding:4px}
.kit-sheet-paper img{flex:1;min-width:0;object-fit:cover;border-radius:4px}
.kit-sheet-corner{position:absolute;width:10px;height:10px;border:2px solid #C9C1B0}
.kit-sheet-corner.tl{top:6px;left:6px;border-right:0;border-bottom:0}
.kit-sheet-corner.tr{top:6px;right:6px;border-left:0;border-bottom:0}
.kit-sheet-corner.bl{bottom:6px;left:6px;border-right:0;border-top:0}
.kit-sheet-corner.br{bottom:6px;right:6px;border-left:0;border-top:0}
.kit-sheet-name{font-size:13.5px;font-weight:700;color:#B7AF9D;line-height:1.25;margin-top:4px}
.kit-sheet.done .kit-sheet-name{color:#16202A}
.kit-sheet span{font-size:14.5px;color:#6E6656;font-weight:600}
.kit-sheet em{font-style:normal;font-size:13.5px;font-weight:700;color:#B7AF9D}
.kit-sheet.done em{color:#0E635A}
.kit-multi{font-size:13.5px;font-weight:700;color:#A0761B;line-height:1.3}
.kit-shoot{margin-top:6px;border:1.5px solid #E7E1D6;background:#fff;border-radius:10px;padding:8px;font-weight:700;color:#16202A;cursor:pointer}
.kit-read{width:100%;background:#EFC7BA;color:#fff;border:0;border-radius:13px;padding:14px;font-weight:800;font-size:16px}
.lib-step-dark{background:#101B24;border-color:#26414C}
.lib-step-dark .lib-step-main strong{color:#EFEBE2}
.lib-step-dark .lib-step-main small{color:#8FA0AC}

/* ---- Builder: review stage ---------------------------------------------- */
.kit-read.ready{background:#DE5334;cursor:pointer;box-shadow:0 14px 30px -10px rgba(222,83,52,.55)}
.kit-review-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}
@media (max-width:760px){.kit-review-grid{grid-template-columns:1fr}}
.kit-fields{display:grid;gap:14px}
.kit-field{display:grid;gap:5px}
.kit-field>span{font-weight:700;font-size:14.5px;color:#16202A}
.kit-field>span small{font-family:ui-monospace,monospace;font-weight:700;color:#B7AF9D;margin-left:6px}
.kit-field input,.kit-field textarea{border:1.5px solid #E7E1D6;background:#F4F1EB;border-radius:11px;padding:10px 12px;font:inherit;color:#16202A}
.kit-sounds{margin-top:16px;background:#101B24;border-radius:14px;padding:13px 15px;display:grid;gap:4px}
.kit-sounds strong{color:#F0A58C;font-size:13.5px;letter-spacing:.08em;text-transform:uppercase}
.kit-sounds span{color:#EFEBE2;font-weight:800;font-size:17px}
.kit-sound-pills{display:flex;flex-wrap:wrap;gap:7px}
.kit-sound-pills em{font-style:normal;font-size:13.5px;font-weight:700;background:#1E2D3A;border-radius:20px;padding:5px 12px;color:#7FD3C4}
.kit-opt{display:flex;align-items:center;gap:9px;font-weight:600;color:#16202A;padding:7px 0;font-size:15.5px}
.kit-narrator{border-top:1px solid #F1ECE3;margin-top:10px;padding-top:6px}
.kit-devices{display:grid}
.kit-build-btn{margin-top:4px}
.kit-guardrail{color:#8A8272;font-size:14px;text-align:center;margin:10px 4px 0}

/* ---- Builder: making & done ---------------------------------------------- */
.kit-making{background:#101B24;border-radius:22px;min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#EFEBE2;text-align:center;padding:30px}
.kit-making h3{margin:0;font-size:24px}
.kit-making-page{position:relative;width:96px;height:128px;background:#FBF9F4;border-radius:8px;animation:kitfloat 3s ease-in-out infinite}
@keyframes kitfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.kit-making-stage{margin:0;color:#8FA0AC;font-weight:600;min-height:22px}
.kit-making-bar{width:min(420px,80%);height:8px;border-radius:6px;background:#1E2D3A;overflow:hidden}
.kit-making-fill{height:100%;border-radius:6px;background:linear-gradient(90deg,#17998A,#DE5334);transition:width .8s ease}
.kit-making small{color:#6E7C88}
.kit-done h3{font-size:24px;margin:0 0 4px}
.kit-done-sub{color:#6E6656;margin:0 0 16px;font-weight:600}
.kit-done-cards{display:grid;gap:14px;margin-bottom:18px}
.kit-done-cards audio{width:100%}
.kit-script details{border-top:1px solid #F1ECE3;padding:8px 0}
.kit-script summary{font-weight:700;cursor:pointer}
.kit-script p{color:#6E6656;white-space:pre-wrap}
.kit-open-rec{margin-top:10px;border:1.5px solid #E7E1D6;background:#fff;border-radius:11px;padding:10px 14px;font-weight:700;cursor:pointer}
.kit-done-actions{display:flex;gap:12px}
.kit-tweak{flex:1;border:1.5px solid #E7E1D6;background:#fff;border-radius:13px;padding:13px;font-weight:700;color:#16202A;cursor:pointer}
.kit-publish{flex:1.4}

/* ---- Family circle: role picker, nicknames, one members list -------------- */
.role-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 20px}
.role-option{text-align:left;border:1.5px solid #F1ECE3;background:var(--soft);border-radius:15px;padding:14px 15px;display:block}
.role-option.selected{background:#FBE7E0;border-color:var(--accent)}
.role-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.role-dot{width:16px;height:16px;flex:none;border-radius:50%;background:#fff;border:2px solid #C9C1B0}
.role-option.selected .role-dot{border:5px solid var(--accent)}
.role-label{font-weight:800;font-size:15px;color:var(--ink)}
.role-blurb{display:block;font-size:13.5px;color:var(--muted);line-height:1.4}
.invite-names{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
.invite-names input{width:100%;background:var(--field,#F4F1EB);border:1px solid #E7E1D6;border-radius:12px;padding:12px 15px;font-size:14px;color:var(--ink)}
.invite-hint{font-size:13.5px;color:#8A8272;line-height:1.45;margin:0 0 16px}
.parent-note{background:var(--soft);border:1px solid #F1ECE3;border-radius:15px;padding:18px 20px;margin-top:8px}
.parent-note strong{display:block;font-size:13.5px;margin-bottom:4px}
.parent-note p{font-size:13.5px;color:var(--muted);line-height:1.5;margin:0 0 14px}
.parent-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.parent-perks li{font-size:13.5px;color:#3B3527;line-height:1.4;padding-left:24px;position:relative}
.parent-perks li::before{content:"✓";position:absolute;left:0;color:#17998A;font-weight:800}
.member-you{background:#F1ECE3;color:#8A8272;font-size:13px;font-weight:700;padding:2px 8px;border-radius:20px}
.role-pill{flex:none;font-size:13px;font-weight:700;padding:4px 11px;border-radius:20px;white-space:nowrap}
.role-pill.is-parent{background:#FBE7E0;color:var(--accent-dark)}
.role-pill.is-teller{background:#F1ECE3;color:var(--muted)}
@media(max-width:520px){
  .role-picker,.invite-names{grid-template-columns:1fr}
}

/* ---- Voice notes: the parent's side of the walkie-talkie ------------------- */
.notes-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:20px}
.notes-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.notes-head h3{display:flex;align-items:center;gap:10px;margin:0;font-size:17px;font-weight:800}
.notes-count{background:var(--accent);color:#fff;font-size:13px;font-weight:800;border-radius:20px;padding:2px 9px}
.notes-lede{font-size:13.5px;color:var(--muted);margin:0 0 14px}
.notes-list{display:flex;flex-direction:column;gap:10px}
.note-row{display:flex;align-items:center;gap:13px;background:var(--soft);border:1px solid #F1ECE3;border-radius:14px;padding:13px 15px;flex-wrap:wrap}
.note-row.unheard{border-color:#F0D3C7;background:#FEF7F4}
.note-avatar{width:42px;height:42px;border-radius:50%;font-size:21px}
.note-main{flex:1;min-width:160px;display:grid}
.note-main strong{font-weight:700;font-size:15px}
.note-meta{font-size:13.5px;color:var(--muted)}
.note-play{width:40px;height:40px;flex:none;border-radius:50%;background:var(--ink);border:none;color:#fff;font-size:14px;display:flex;align-items:center;justify-content:center}
.note-reply{flex:none;white-space:nowrap}
.notes-reply{margin-top:16px;padding-top:16px;border-top:1px solid #F1ECE3;display:flex;flex-direction:column;align-items:center;gap:10px}
.notes-reply-head{font-size:13.5px;color:var(--muted)}
.notes-ptt{width:100%;max-width:320px;min-height:56px;border-radius:28px;background:var(--accent);color:#fff;border:none;font-weight:800;font-size:15.5px;box-shadow:0 0 0 6px rgba(222,83,52,.14)}
.notes-ptt.talking{background:var(--chrome);box-shadow:0 0 0 6px rgba(22,32,42,.12)}
.notes-ptt:disabled{background:#EFC7BA;box-shadow:none}
.notes-ptt-status{font-size:13.5px;color:var(--muted);margin:0;min-height:20px}
.notes-reply-close{align-self:center}

/* ---- Home: does anything need me tonight? --------------------------------- */
.home-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;align-items:start}
.home-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.home-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 24px}
.home-h{font-size:17px;font-weight:800;margin:0 0 14px}
.home-h-loose{margin-bottom:12px}
.home-empty{margin:0;font-size:13.5px;color:#8A8272}

.home-tasks{display:flex;flex-direction:column;gap:10px}
.home-task{display:flex;align-items:center;gap:13px;background:var(--soft);border:1px solid #F1ECE3;border-radius:14px;padding:13px 15px;flex-wrap:wrap}
.home-task-glyph{width:38px;height:38px;flex:none;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:15px}
.home-task-main{flex:1;min-width:150px;display:grid}
.home-task-main strong{font-weight:700;font-size:15px}
.home-task-main small{font-size:13.5px;color:var(--muted)}
.home-task-cta{background:var(--ink);color:#fff;border:none;border-radius:11px;padding:10px 17px;font-weight:700;font-size:13.5px;flex:none;white-space:nowrap}
.home-calm{display:flex;align-items:center;gap:13px;background:#E4F1EE;border:1px solid #C9E4DE;border-radius:14px;padding:14px 16px}
.home-calm-icon{width:38px;height:38px;flex:none;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center}
.home-calm strong{display:block;font-weight:700;font-size:15px}
.home-calm small{display:block;font-size:13.5px;color:#0E635A}

.home-phones{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.home-phone{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;text-align:left;display:block;width:100%}
.home-phone-head{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.home-phone-avatar{width:40px;height:40px;border-radius:12px;font-size:20px}
.home-phone-id{flex:1;min-width:0;display:grid}
.home-phone-id strong{font-weight:700;font-size:15.5px}
.home-phone-status{font-size:13.5px;font-weight:600;color:var(--teal)}
.home-phone-status.asleep{color:#8A72C9}
.home-phone-battery{font-size:13.5px;color:#8A8272;font-weight:600}
.home-phone-modes{font-size:13.5px;color:var(--muted);margin-bottom:8px}
.home-phone-bar{height:7px;background:#F1ECE3;border-radius:6px;overflow:hidden;margin-bottom:6px}
.home-phone-bar i{display:block;height:100%;border-radius:6px}
.home-phone-storage{font-size:13.5px;color:#8A8272}

.home-add{background:var(--ink);border:1px solid #263643;border-radius:20px;padding:16px 14px 14px;box-shadow:0 12px 28px -20px rgba(22,32,42,.7)}
.home-add-h{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7E8F9C;margin:0;padding:4px 12px 10px}
.home-add-list{display:flex;flex-direction:column;gap:2px}
.home-add-row{display:flex;align-items:center;gap:13px;background:transparent;border:none;border-radius:13px;padding:13px 12px;text-align:left;width:100%;position:relative;overflow:hidden}
.home-add-row:hover{background:#1F2E3B}
.home-add-icon{width:38px;height:38px;flex:none;border-radius:11px;display:flex;align-items:center;justify-content:center;position:relative}
.home-add-text{flex:1;min-width:0;position:relative;display:grid}
.home-add-text strong{font-weight:700;font-size:14.5px;color:#F4F1EB}
.home-add-text small{font-size:13.5px;color:#8FA0AC;margin-top:1px}
.home-add-arrow{color:#5E7180;font-size:19px;line-height:1;position:relative}
.home-add-rule{height:1px;background:#22313E;margin:8px 12px}
.home-add-builder{background:linear-gradient(135deg,#241E24,#1B2833 70%);border:1px solid #3E3038}
.home-add-builder:hover{background:linear-gradient(135deg,#241E24,#1B2833 70%);border-color:#6E4436}
.home-add-builder .home-add-text strong{color:#fff}
.home-add-builder .home-add-text small{color:#B79A90}
.home-add-builder .home-add-arrow{color:var(--peach)}
.home-add-bloom{position:absolute;right:-40px;top:-40px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(240,165,140,.16),transparent 70%);pointer-events:none}

.home-week-lede{font-size:13.5px;color:var(--muted);margin:0 0 14px}
.home-week{display:flex;flex-direction:column;gap:11px}
.home-week-row{display:flex;align-items:center;gap:11px}
.home-week-avatar{width:32px;height:32px;border-radius:50%;font-size:16px}
.home-week-row strong{display:block;font-weight:700;font-size:14.5px}
.home-week-row small{display:block;font-size:13.5px;color:#8A8272}

@media(max-width:900px){
  .home-grid{grid-template-columns:1fr}
}

/* ---- Polish: subtle interactions ------------------------------------------ */
button,[role=button],a.kit-print,.quick-tile,.rail-item,.tab-item,.lib-step,.kit-card,.kit-sheet,.banner-cta{transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .18s ease,transform .12s ease,filter .15s ease}
button:hover:not(:disabled){filter:brightness(1.04)}
button:active:not(:disabled),.quick-tile:active,.lib-step:active{transform:scale(.985)}
.quick-tile:hover,.lib-step:hover{transform:translateY(-1px);box-shadow:0 10px 24px -14px rgba(22,32,42,.3)}
.quick-tile-dark:hover,.lib-step-dark:hover{box-shadow:0 12px 26px -14px rgba(0,0,0,.5)}
.rail-item:hover:not(.active){background:#18262F;color:#EFEBE2}
.kit-card:hover{box-shadow:0 14px 30px -18px rgba(22,32,42,.28)}
.kit-shoot:hover,.kit-print:hover{border-color:#C9C1B0;background:#FBF9F4}
/* A real outline, not a box-shadow ring: it survives on elements that clip
   their overflow, and it is honoured in forced-colors mode. */
button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:2.5px solid #DE5334;outline-offset:2px;border-radius:8px}
::selection{background:#F0A58C;color:#16202A}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* The card responds to ITS OWN width, not the viewport: at ~950px viewports
   two columns make each card ~450px and the rigid schedule grid poured out
   of the card (name editor + Save schedule floating over the neighbour). */
@container (max-width: 540px){
  .schedule-row{grid-template-columns:1fr 1fr}
  .schedule-switch,.save-schedule{grid-column:1/-1}
  .schedule-row .button{width:100%}
  .device-detail-footer{justify-content:stretch}
  .device-detail-footer .button{width:100%}
}
