/* OpenAstro / LiveVault — cosmic glass workspace, 3.5.1.
   One authoritative design system. Specialist evidence geometry below shares
   these tokens; specialist geometry is preserved; shell and responsive policy live here. */
@font-face{font-family:"Mona Sans";src:url("/static/fonts/mona-sans-latin-wght.woff2") format("woff2");font-weight:200 900;font-display:swap}
:root{
 color-scheme:dark;--bg:#070d1c;--chrome:#0b1832;--surface:#102344;--surface-2:#162d50;--surface-3:#213d62;--inset:#09162c;
 --text:#edf5ff;--text-2:#bacce6;--text-3:#9bb1d0;--text-4:#728bae;--line:#9ebcff22;--line-2:#9ebcff35;--line-3:#9ebcff55;
 --primary:#63b8ff;--violet:#9c9fff;--glass:linear-gradient(145deg,#183760bc,#0c1933d9);--on-primary:#07162c;--live:#50e6b3;--recording:#ff5c5c;--warning:#ffc778;--danger:#ff8888;--info:#b6dfff;--private:#cdb8ff;--tipjar:#ffb575;--away:#b6dfff;--restricted:#a8b0a7;--missed:#f5a6cf;--focus-star:#e8fa93;
 --success:var(--live);--muted:var(--text-3);--font:"Mona Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--mono:ui-monospace,"SF Mono",Consolas,monospace;
 --r-sm:10px;--r:16px;--r-lg:24px;--r-xl:30px;--shadow-pop:0 24px 80px #02061699,0 1px 0 #cfe1ff14 inset;--ring:0 0 0 3px #63b8ff55;--ease:cubic-bezier(.22,1,.36,1);--rail:252px;--bar:64px;
 font-family:var(--font);background:var(--bg);color:var(--text)
}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:90px}html,body{margin:0;min-width:320px;min-height:100svh;font:400 14px/1.5 var(--font);color:var(--text);-webkit-font-smoothing:antialiased;background:radial-gradient(ellipse at 76% -10%,#3446a84a,transparent 48%),radial-gradient(ellipse at -5% 46%,#15509932,transparent 45%),var(--bg);background-attachment:fixed}body{margin:0;min-width:320px;min-height:100svh;font:400 14px/1.5 var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{border:0;background:transparent;color:inherit;cursor:pointer}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1{font-size:clamp(30px,2.7vw,40px);line-height:1.12;font-weight:650;letter-spacing:-.045em}h2{font-size:20px;font-weight:600;letter-spacing:-.035em}h3{font-size:16px;letter-spacing:-.025em}small{font-size:12px;color:var(--text-3)}img,video{max-width:100%}:focus-visible{outline:2px solid var(--primary);outline-offset:4px}::selection{background:#63b8ff33;color:var(--text)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{border-radius:8px;background:#ffffff24}::-webkit-scrollbar-track{background:transparent}
.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:500;top:8px;left:12px;transform:translateY(-150%);padding:12px 18px;background:var(--primary);color:var(--on-primary);border-radius:12px}.skip-link:focus{transform:none}.wide{width:100%}.span2{grid-column:1/-1}.muted{color:var(--text-3)}.danger-text,.error-text{color:var(--danger)}.error-text:empty{display:none}.suite-label,.filter-nav-title{display:block;color:var(--text-3);font:500 11px/1.4 var(--mono);letter-spacing:.16em;text-transform:uppercase}.accent-period{color:var(--primary)}
.icon,.button-icon,.mini-icon{display:inline-block;width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.icon use,.button-icon use{fill:none;stroke:currentColor}.mini-icon{width:16px;height:16px}.icon-lg{width:26px;height:26px}.icon-xl{width:34px;height:34px}
.button,.btn,.icon-button,.rail-icon-button,.command-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border:1px solid var(--line-2);border-radius:12px;background:#19375985;color:var(--text);font-size:13px;font-weight:580;line-height:1.3;transition:background .25s,transform .25s var(--ease),border-color .25s,box-shadow .25s;white-space:nowrap}.button:hover,.btn:hover,.icon-button:hover,.rail-icon-button:hover{background:var(--surface-3);border-color:var(--line-3);transform:translateY(-2px)}.button:active,.btn:active,.icon-button:active{transform:scale(.97)}.primary{background:linear-gradient(130deg,#74c6ff,#8b9dff);color:var(--on-primary);border-color:#a0ceff66;box-shadow:0 5px 20px #638dff26,0 1px 0 #ffffff55 inset}.primary:hover{background:linear-gradient(130deg,#99d9ff,#a0afff);color:#07162c;border-color:#b5dfff;box-shadow:0 8px 25px #638dff44}.secondary{background:transparent}.danger,.danger-menu{color:var(--danger)}.compact{min-height:38px;padding:8px 13px;font-size:12px}.icon-button,.rail-icon-button{width:44px;padding:10px;flex-shrink:0;background:transparent}.rail-icon-button{border:0}.button.active,.icon-button.active{background:#63b8ff20;color:var(--primary);border-color:#63b8ff40}.wide-control{flex:1}.command-trigger{background:transparent;color:var(--text-3);justify-content:flex-start;min-width:205px}.command-trigger kbd{margin-left:auto;font:10px var(--mono);border:1px solid var(--line-2);padding:3px 5px;border-radius:4px}.health-count{position:absolute;right:0;top:0;padding:2px 5px;border-radius:6px;background:var(--warning);color:#161916;font-size:10px}
.field{display:grid;gap:8px;min-width:0}.field>span,.field>legend{font-size:12px;font-weight:550;color:var(--text-2)}input:not([type=checkbox]):not([type=color]),select,textarea{width:100%;min-width:0;min-height:44px;padding:11px 13px;border:1px solid var(--line-2);border-radius:10px;background:var(--inset);color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--primary)}input::placeholder{color:var(--text-4)}textarea{min-height:90px;resize:vertical}input[type=checkbox]{accent-color:var(--primary);width:16px;height:16px;flex-shrink:0}input[type=color]{width:44px;height:44px;border:1px solid var(--line-2);border-radius:8px;background:transparent}.check{display:flex;gap:10px;align-items:center;min-height:44px;font-size:13px;color:var(--text-2)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.search-control,.select-control{display:flex;align-items:center;gap:8px;min-width:0;position:relative;border:1px solid var(--line-2);border-radius:10px;padding-left:12px;background:var(--inset);color:var(--text-3)}.search-control input,.select-control select{border:0;background:transparent;box-shadow:none}.select-control>svg{width:16px}.search-control input{padding-left:0}.search-control:focus-within,.select-control:focus-within{border-color:var(--primary)}
.badge,.status-badge,.count,.tag,.status-pill,.source-status,.upload-status,.integrity,.provider-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;padding:4px 8px;background:var(--surface-2);font-size:11px;font-weight:550;line-height:1.3;white-space:nowrap}.count{color:var(--text-2);font-variant-numeric:tabular-nums}.status-badge.live,.source-status.live,.badge.live{color:var(--live);background:#50e6b314}.status-badge.recording,.source-status.recording,.rec,.badge.recording{color:var(--recording)}.status-badge.away,.source-status.away,.badge.away{color:var(--away)}.status-badge.tipjar,.source-status.tipjar{color:var(--tipjar)}.status-badge.private,.source-status.private{color:var(--private)}.status-badge.error,.source-status.error,.upload-status.failed,.integrity.failed{color:var(--danger)}.upload-status.uploaded,.integrity.passed{color:var(--live)}.upload-status.uploading,.upload-status.converting{color:var(--info)}.badge-dot,.status-dot{width:5px;height:5px;background:currentColor;border-radius:50%;flex-shrink:0}.meter{height:4px;border-radius:5px;overflow:hidden;background:var(--line-2);width:100%}.meter>i{display:block;height:100%;background:var(--primary);border-radius:inherit;transition:width .4s var(--ease)}.meter.big{height:6px}.provider-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--surface-3);color:var(--text-2)}.attention-label{display:inline-flex;align-items:center;gap:6px;color:var(--warning)}
.panel{background:var(--glass);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 8px 32px #02061630,0 1px 0 #cfe1ff12 inset}.section{margin-top:24px}.empty{padding:40px 24px;text-align:center;color:var(--text-3);font-size:13px}.empty.compact{padding:22px}.surface-header,.section-head{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:24px}.surface-header>div:first-child,.section-head>div:first-child{display:flex;gap:10px;align-items:center}.attention-title{display:flex;gap:10px;align-items:center}.page-header{position:relative;display:flex;gap:22px;align-items:center;justify-content:space-between;margin:8px 0 22px;padding:12px 0 8px}.page-header .suite-label{margin-bottom:8px;color:var(--primary);font-size:10px;letter-spacing:.14em}.page-header p{margin-top:9px;color:var(--text-3);font-size:13px}.page-actions{display:flex;gap:10px;align-items:center;position:relative;z-index:1}.dashboard-head{min-height:106px;padding-bottom:12px}.signal-art{position:absolute;right:290px;top:2px;width:142px;height:106px;color:#8fb9ff50;pointer-events:none}.signal-art svg{width:100%;height:100%;stroke-width:1px}.page-header>div:first-child{position:relative;z-index:1}
.app-shell{min-height:100svh}.navigation-rail{position:fixed;inset:16px auto 16px 16px;width:calc(var(--rail) - 32px);padding:26px 14px 18px;background:linear-gradient(165deg,#1b315270,#09162cf0);border:1px solid var(--line-2);border-radius:26px;box-shadow:0 20px 60px #02061644,0 1px 0 #cfe1ff1a inset;backdrop-filter:blur(18px);display:flex;flex-direction:column;z-index:40}.product-mark{display:flex;align-items:center;gap:12px;padding:2px 7px 40px}.product-mark>svg{width:42px;height:42px;padding:10px;background:linear-gradient(135deg,#68c6ff,#858bff);color:#08182e;border-radius:15px;box-shadow:0 6px 24px #638dff45,0 1px 0 #ffffff80 inset}.product-wordmark{font-size:20px;font-weight:650;letter-spacing:-.035em;line-height:1}.product-wordmark small{display:block;margin-top:9px;letter-spacing:.12em;font:8px var(--mono);color:var(--text-3)}#versionLabel{position:absolute;left:75px;top:77px;font:9px var(--mono);color:var(--text-4)}.main-nav{display:grid;gap:7px}.nav-link{position:relative;display:flex;align-items:center;gap:13px;border:1px solid transparent;min-height:49px;border-radius:14px;padding:13px;background:transparent;color:var(--text-3);text-align:left;font-size:13px;font-weight:550;transition:background .28s,border-color .28s,color .28s,transform .28s var(--ease)}.nav-link:hover{background:#6d9cfb0d;color:var(--text);transform:translateX(3px)}.nav-link.active{color:#dceeff;background:linear-gradient(105deg,#519dff32,#797dff13);border-color:#80b5ff40;box-shadow:0 5px 22px #09142e55,0 1px 0 #bcdcff15 inset}.nav-index{margin-left:auto;color:inherit;font:10px var(--mono);opacity:.55}.rail-spacer{flex:1;min-height:35px}.rail-caption{padding:20px 12px;display:flex;align-items:flex-start;gap:10px;color:var(--text-3);font-size:11px;line-height:1.6}.rail-caption i{width:7px;height:7px;border:1px solid var(--primary);border-radius:50%;margin-top:6px}.rail-actions{display:flex;justify-content:space-around;gap:3px;border-top:1px solid var(--line);padding-top:18px;position:relative}.health-button{position:relative;color:var(--warning)}.app-bar{position:relative;margin:16px 28px 0 var(--rail);height:var(--bar);padding:0 22px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:20px;background:linear-gradient(115deg,#16315182,#102039aa);box-shadow:0 1px 0 #cfe1ff12 inset;backdrop-filter:blur(16px);gap:14px}.app-bar-context{display:flex;align-items:center;gap:18px;font-size:12px}.app-bar-context>strong{color:var(--text-3);font-weight:500}.connection-state{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--text-3)}.connection-state::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.connection-state.online{color:var(--primary)}.storage-route{display:flex;align-items:center;gap:6px;color:var(--text-3);font-size:10px;border-left:1px solid var(--line-2);padding-left:15px}.storage-route .icon{width:15px;height:15px}.storage-route strong{font-weight:500}.storage-route small{font-size:10px}.app-bar-actions{display:flex;align-items:center;gap:10px}.mobile-product,.mobile-settings{display:none}.content-shell{margin-left:var(--rail);padding:16px 28px 64px;max-width:1850px}.view-section{min-width:0}
.login-shell{min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);align-items:center;gap:9vw;width:min(1120px,100%);margin:auto;padding:50px}.login-intro{position:relative}.login-intro h2{font-size:clamp(50px,5.5vw,76px);font-weight:620;letter-spacing:-.06em;line-height:1.07;margin:30px 0 20px}.login-intro em{font-style:normal;color:var(--primary)}.login-intro p{color:var(--text-3);max-width:330px;font-size:15px}.login-intro>small{display:block;margin-top:110px;font:10px var(--mono);letter-spacing:.1em}.login-orbit{position:absolute;right:-25px;bottom:-10px;width:230px;height:230px;display:grid;place-items:center;color:var(--violet);pointer-events:none;opacity:.55;filter:drop-shadow(0 0 16px #6e9aff55)}.login-orbit i{position:absolute;width:100%;height:38%;border:1px solid currentColor;border-radius:50%;transform:rotate(-35deg)}.login-orbit i:nth-child(2){transform:rotate(35deg)}.login-orbit i:nth-child(3){width:68%;height:68%}.login-orbit b{font:20px var(--mono);letter-spacing:-.1em}.login-panel{display:grid;gap:24px;padding:36px;background:linear-gradient(140deg,#24456c70,#0d1b37cb);backdrop-filter:blur(22px);border:1px solid var(--line-2);border-radius:28px;box-shadow:var(--shadow-pop)}.login-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#68c6ff,#858bff);color:var(--on-primary);display:grid;place-items:center;box-shadow:0 8px 28px #638dff38}.login-copy h1{font-size:36px;letter-spacing:-.05em;margin:12px 0}.login-copy p{color:var(--text-3);font-size:13px}.login-panel input{min-height:50px}.login-panel .button{min-height:50px}
.status-surface{background:transparent;border:0;border-radius:0}.status-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.status-metric{position:relative;padding:16px 15px;min-width:0;min-height:124px;background:linear-gradient(140deg,#23416583,#102344aa);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;box-shadow:0 1px 0 #cfe1ff16 inset,0 10px 26px #02061622;transition:border-color .28s,background .28s,transform .28s var(--ease)}.status-metric:first-child{background:linear-gradient(135deg,#194983a0,#203369b0);color:var(--text);border-color:#7fbaff50;box-shadow:0 12px 32px #233bb42c,0 1px 0 #cfe1ff28 inset}.status-metric:first-child small,.status-metric:first-child .metric-label{color:#bad9f6}.metric-label{font-size:11px;font-weight:550;color:var(--text-3);display:flex;gap:7px;align-items:center}.metric-label .icon{width:14px;height:14px}.status-metric>strong{font-size:clamp(26px,2.2vw,34px);font-weight:600;letter-spacing:-.045em;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap}.status-metric>small{font-size:11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:auto}.metric-link{position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;background:transparent;color:var(--text-3);opacity:.6;display:grid;place-items:center}.metric-link .icon{width:15px}.operation-strip{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 2px 0}.operation-control{display:flex;align-items:center;gap:14px;padding-right:18px;border-right:1px solid var(--line-2)}.operation-state{display:flex;align-items:center;gap:7px;font-size:11px}.operation-state>.icon{width:14px;color:var(--text-3)}.operation-state>span{color:var(--text-3)}.operation-state>strong{font-weight:500;color:var(--live)}.operation-run{margin-left:auto}.progress-stack{display:grid;gap:12px;margin-top:20px}.progress-row{display:flex;gap:15px;align-items:center;padding:22px}.progress-copy{flex:1;display:grid;gap:4px}.progress-copy strong{font-size:14px}.upload-progress{width:220px;display:flex;gap:12px;align-items:center;font-size:12px}.progress-icon{color:var(--info)}
.dashboard-sources{margin-top:24px}.dashboard-filters{display:grid;grid-template-columns:minmax(130px,210px) 140px;gap:8px}.monitor-summary{display:flex;gap:14px;flex-wrap:wrap;padding:0 24px 18px;border-bottom:1px solid var(--line);color:var(--text-3);font-size:12px}.monitor-summary strong{color:var(--text);font-weight:600}.monitor-section{padding:24px 0;border-bottom:1px solid var(--line)}.monitor-section:last-child{border:0}.monitor-section-head,.cr-section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:0 24px 18px}.monitor-section-head>div,.cr-section-head>div{display:flex;gap:10px;align-items:center}.monitor-section-head h3,.cr-section-head h3{font-size:14px}.cr-live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 24px}.cr-live-card{position:relative;display:grid;grid-template-columns:minmax(125px,.85fr) minmax(0,1.3fr);min-width:0;border:1px solid var(--line-2);border-radius:18px;overflow:visible;background:linear-gradient(140deg,#142e50bb,#0c1a33cc);box-shadow:0 8px 26px #02061626,0 1px 0 #cfe1ff14 inset}.cr-preview{display:block;position:relative;min-height:180px;background:#081326;overflow:hidden;aspect-ratio:auto;border-radius:17px 0 0 17px}.cr-preview img{width:100%;height:100%;object-fit:cover}.cr-preview.empty{padding:0;display:grid;place-items:center;color:var(--text-4)}.cr-preview-cover{position:absolute;width:100%;height:100%;background-size:cover;background-position:center;transform:scale(3)}.cr-preview>span,.cr-preview-state,.cr-preview-badges{position:absolute;bottom:12px;left:12px;z-index:1;display:flex;gap:6px}.cr-live-body{padding:17px;display:flex;flex-direction:column;gap:14px;min-width:0}.cr-live-top,.cr-live-meta,.cr-live-actions,.cr-live-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cr-live-top{justify-content:space-between}.cr-live-name{font-size:22px;font-weight:620;letter-spacing:-.04em;word-break:break-word}.cr-live-provider{font-size:11px;color:var(--text-3)}.cr-live-size,.cr-live-storage{font-size:12px;color:var(--text-2)}.cr-live-rec{color:var(--recording);font:11px var(--mono)}.cr-live-meta{color:var(--text-3);font-size:12px}.cr-live-actions .icon-button{width:38px;min-height:38px;height:38px}.cr-live-card.focus{border-color:#63b8ff44}.cr-live-card.blocked{border-color:#ffc77840}.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card{grid-template-columns:minmax(170px,.55fr) minmax(0,1fr);max-width:780px}.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card>.cr-preview{min-height:210px;aspect-ratio:auto}.cr-live-grid:has(> .cr-live-card:only-child) .cr-live-body{padding:24px;align-content:center}.cr-live-grid:has(> .cr-live-card:only-child) .cr-live-name{font-size:23px}.cr-compact-list,.cr-ended-list{padding:0 24px;display:grid;gap:10px}.cr-compact-row,.cr-ended-card{display:flex;gap:15px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:14px;background:#0a17307a;min-width:0}.cr-compact-name,.cr-ended-name{font-size:14px;font-weight:570}.cr-compact-identity,.cr-ended-identity,.cr-ended-body{display:grid;gap:4px;min-width:0;flex:1}.cr-compact-meta,.cr-ended-meta{font-size:11px;color:var(--text-3)}.cr-compact-actions,.cr-ended-actions{display:flex;gap:6px;align-items:center}.cr-compact-avatar,.cr-ended-preview{width:58px;height:58px;flex-shrink:0;overflow:hidden;border-radius:12px;background:var(--surface-2);display:grid;place-items:center}.cr-compact-avatar img,.cr-ended-preview img{width:100%;height:100%;object-fit:cover}.cr-compact-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cr-monitor-empty{padding:30px;color:var(--text-3)}.cr-offline-toggle{margin:18px 24px;color:var(--text-3);font-size:12px;cursor:pointer}.attention-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 var(--mono);color:var(--text-2);padding:20px;margin:0}.diagnostic-actions{display:flex;gap:8px}
.library-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.library-sidebar{padding:18px 12px;height:max-content;position:sticky;top:24px;border-radius:18px;background:linear-gradient(145deg,#18376070,#0c1933a0)}.filter-nav-title{padding:8px 12px 16px}.smart-link{display:flex;justify-content:space-between;width:100%;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--text-3);font-size:12px;text-align:left;min-height:44px}.smart-link strong{font:10px var(--mono);color:var(--text-4)}.smart-link.active{background:var(--surface-2);color:var(--primary)}.library-main{min-width:0}.library-tools{display:flex;gap:8px;flex-wrap:wrap;padding:16px;border-radius:18px}.library-tools .search-control{flex:1;min-width:220px}.library-tools .select-control{width:145px}.view-switch{display:flex;gap:4px}.library-result-head{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:11px;color:var(--text-3);padding:20px 4px}.select-all{display:flex;gap:8px;align-items:center}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}.library-grid.list{display:grid;grid-template-columns:1fr;gap:10px}.library-card{position:relative;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--glass);display:grid;gap:14px;padding:14px;box-shadow:0 1px 0 #cfe1ff12 inset;transition:border-color .28s,transform .28s var(--ease)}.library-card.selected{border-color:var(--primary);background:#63b8ff09}.library-cover{display:block;position:relative;aspect-ratio:16/10;background:radial-gradient(ellipse at 40% 120%,#5268c349,transparent 80%),var(--inset);border-radius:12px;overflow:hidden}.library-cover img{width:100%;height:100%;object-fit:cover;transform:scale(3)}.library-cover.empty{padding:0;display:grid;place-items:center;font-size:44px;color:var(--text-4)}.library-select{position:absolute;top:18px;left:18px;z-index:1}.library-identity{display:grid;gap:8px;min-width:0}.library-identity h3,.library-identity strong{font-size:16px;font-weight:600;letter-spacing:-.025em}.library-provider,.library-meta,.library-stats{color:var(--text-3);font-size:11px;display:flex;gap:9px;flex-wrap:wrap}.library-actions{display:flex;gap:5px;align-items:center}.library-actions .icon-button{min-height:38px;width:38px}.library-grid.list .library-card{grid-template-columns:82px minmax(160px,1fr) auto;align-items:center;gap:18px;padding:12px}.library-grid.list .library-cover{width:82px;aspect-ratio:1.2}.library-grid.list .library-select{top:16px;left:15px}.library-grid.list .library-cover.empty{font-size:25px}.library-tags,.account-tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:10px}.bulk-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:14px}.bulk-bar strong{margin-right:auto;font-size:12px}.bulk-bar select{max-width:160px;min-height:38px;font-size:12px}.taxonomy{padding-bottom:22px;margin-top:24px}.taxonomy-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:0 24px}.taxonomy-create{display:flex;gap:8px;margin:14px 0}.taxonomy-create label{flex:1;min-width:0}.taxonomy-list{display:grid;gap:8px}.taxonomy-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}
.archive-controls,.archive-tools,.archive-filter-bar,.archive-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:18px}.archive-controls label,.archive-tools label{flex:1;min-width:140px}.archive-surface{padding:12px 22px}.archive-group{margin:8px 0 16px}.archive-group>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:18px 0;list-style:none;border-bottom:1px solid var(--line)}.archive-group>summary>span{display:flex;gap:12px;align-items:center}.archive-group>summary strong{font-size:13px}.archive-group>summary small{font-size:10px}.archive-group-grid{display:grid}.archive-table-head,.rec-card{display:grid;grid-template-columns:76px minmax(180px,1.4fr) minmax(140px,.9fr) 88px 96px 85px;gap:16px;align-items:center}.archive-table-head{padding:18px 0 10px;color:var(--text-4);font:9px var(--mono);text-transform:uppercase;letter-spacing:.08em}.rec-card{position:relative;padding:18px 0;border-bottom:1px solid var(--line)}.rec-info{display:flex;gap:14px;align-items:center;min-width:0}.archive-thumb{display:block;width:76px;aspect-ratio:16/10;border-radius:10px;background:var(--inset);overflow:hidden;flex-shrink:0;position:relative}.archive-thumb img{width:100%;height:100%;object-fit:cover;transform:scale(3)}.archive-identity{min-width:0;display:grid;gap:6px}.archive-identity>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-identity strong{font-size:13px;font-weight:550}.archive-identity small{font-size:11px}.archive-health{display:grid;gap:6px;justify-items:start;font-size:10px}.archive-number,.archive-upload{display:grid;gap:5px;justify-items:start}.archive-number strong{font-size:12px;font-weight:500}.archive-number span,.archive-upload small{font-size:10px;color:var(--text-3)}.rec-actions{display:flex;gap:4px;align-items:center;justify-content:flex-end}.rec-actions .icon-button{width:32px;min-height:36px;padding:7px}.archive-surface .row-more[open]{z-index:30}.archive-surface .row-more[open] .row-menu{display:grid}.archive-surface .icon-button.recovery{color:var(--warning)}.recording-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:20px;color:var(--text-3);font-size:12px}
.statistics-summary,.stats-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stats-kpi,.statistics-kpi{padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--glass);display:grid;gap:10px}.stats-kpi strong{font-size:34px;font-weight:600;letter-spacing:-.05em}.stats-kpi small,.stats-kpi span{font-size:12px;color:var(--text-3)}.stats-layout,.statistics-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.stats-chart-stack{display:grid;gap:18px}.stats-large-chart{padding:22px;min-width:0;border:1px solid var(--line);border-radius:20px;background:var(--glass)}.stats-large-chart .activity-chart{display:block;width:100%;height:270px}.activity-chart,.hourly-chart{width:100%;height:auto;min-width:0}.chart-y-label,.chart-x-label{fill:var(--text-3);font:10px var(--mono)}.chart-grid{stroke:var(--line);stroke-width:1}.activity-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.activity-calendar-cell,.weekday-cell{padding:14px 8px;text-align:center;background:var(--surface-2);border-radius:10px;font-size:12px}.forecast-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.forecast-panel{padding:24px;margin-top:22px}.forecast-header,.forecast-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.forecast-day{padding:14px 10px;border:1px solid var(--line);border-radius:14px;display:grid;gap:9px;font-size:12px}.forecast-confidence{font-size:10px;color:var(--text-3)}.forecast-meter{height:3px;background:var(--line-2);border-radius:4px}.forecast-meter>i{display:block;height:100%;background:var(--primary)}.statistics-leaderboard,.leaderboard{display:grid;padding:14px}.leader-row{display:flex;gap:12px;align-items:center;padding:15px;border-bottom:1px solid var(--line)}.leader-row>div{min-width:0}.leader-name{font-weight:550;font-size:13px}.leader-live{color:var(--live);font:9px var(--mono)}.stats-insights{display:grid;gap:12px}.stats-insight{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.stats-note{padding:16px;color:var(--text-3);font-size:12px}


/* Cosmic identity and finite interaction feedback. */
.nav-link.active::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:6px;background:var(--primary);box-shadow:0 0 12px #63b8ff66}
.status-metric:hover{transform:translateY(-3px);border-color:#8db6ff50}
.library-card:hover{border-color:#91b9ff50}
.cr-live-card[data-state=recording]{border-color:#ff858545}
.cr-live-card[data-state=away] .cr-live-state{color:var(--away)}
.cr-live-card[data-state=tipjar] .cr-live-state{color:var(--tipjar)}
.cr-live-card[data-state=recording] .cr-live-state{color:var(--recording)}
.motion-opening{transform-origin:center}.motion-closing{pointer-events:none}.motion-revealing{transform-origin:top}
[data-motion-press]{transform-origin:center}
/* Precision components — operational geometry and data masks. */
/* LiveVault 3.5 — OpenAstro spatial workspace. */
/* ---------- Timeline (Pulse) ----------
 * Online time is a quiet slate bar; recording, cloud copy, gaps and access
 * states sit on top with one fixed colour each, plus a subtle texture so the
 * states stay distinguishable without relying on hue alone. */
.cr-pulse {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.cr-pulse-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  min-height: 36px;
  margin-bottom: 10px;
}
.cr-pulse-head > div:first-child {
  justify-self: start;
}
.cr-pulse-head strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cr-pulse-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
}
.cr-pulse-legend {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 14px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 540;
  letter-spacing: 0.04em;
}
.cr-pulse-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cr-pulse-legend-swatch {
  width: 12px;
  height: 12px;
  display: block;
  overflow: visible;
  border-radius: 3px;
}
.cr-pulse-legend-swatch rect {
  stroke: none;
}
.cr-pulse-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--text-4);
}
.cr-pulse-legend i.live {
  background: #56627a;
}
.cr-pulse-legend i.private {
  background: var(--private);
}
.cr-pulse-legend i.tipjar {
  background: var(--tipjar);
}
.cr-pulse-legend i.away {
  background: #72bdce;
}
.cr-pulse-legend i.rec {
  background: var(--recording);
}
.cr-pulse-legend i.processing {
  background: var(--info);
}
.cr-pulse-legend i.missed {
  background: var(--missed);
}
.cr-pulse-legend i.restricted {
  background: var(--restricted);
}
.cr-pulse-controls {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-pulse-range {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
}
.cr-pulse-range select {
  width: auto;
  min-width: 76px;
  min-height: 30px;
  height: 30px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  font-weight: 560;
}
#lv-pulse-pattern-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.cr-pulse-scale,
.cr-pulse-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}
.cr-pulse-scale > div {
  position: relative;
  height: 26px;
  color: var(--text-3);
  font-size: 11px;
}
.cr-pulse-tick {
  position: absolute;
  transform: translateX(-50%);
}
.cr-pulse-tick-0 {
  left: 0;
  transform: none;
}
.cr-pulse-tick-1 {
  left: 25%;
}
.cr-pulse-tick-2 {
  left: 50%;
}
.cr-pulse-tick-3 {
  left: 75%;
}
.cr-pulse-tick-4 {
  right: 0;
  transform: none;
}
.cr-pulse-hour-axis {
  display: block;
  width: 100%;
  height: 26px;
  overflow: visible;
}
.cr-pulse-hour-axis-tick {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.cr-pulse-hour-axis-tick.day {
  stroke: rgba(255, 255, 255, 0.5);
}
.cr-pulse-hour-axis-label {
  fill: var(--text-3);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 540;
}
.cr-pulse-hour-axis-label.day {
  fill: var(--text);
  font-weight: 650;
}
.cr-pulse-row {
  min-height: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.cr-pulse-who {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.cr-pulse-name {
  font-size: 13px;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-pulse-meta {
  min-width: 0;
}
.cr-pulse-times {
  display: flex;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
}
.cr-pulse-times b {
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.04em;
}
.cr-pulse-track {
  position: relative;
  isolation: isolate;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.cr-pulse-hour-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 22px;
  pointer-events: none;
  overflow: visible;
}
.cr-pulse-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 22px;
  display: block;
  overflow: visible;
}
.cr-pulse-svg rect {
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}
.cr-pulse-half-hour-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 1 3;
  vector-effect: non-scaling-stroke;
}
.cr-pulse-hour-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.cr-pulse-hour-line.strong {
  stroke: rgba(255, 255, 255, 0.12);
}
.cr-pulse-hour-line.minor {
  stroke: rgba(255, 255, 255, 0.04);
}
.cr-pulse-day-line {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.cr-pulse-live-span {
  fill: #56627a;
}
.cr-pulse-live-span.current {
  fill: #66748f;
}
.cr-pulse-live-span.unrecorded {
  fill: url(#lv-pulse-unrecorded);
}
.cr-pulse-access-span.private {
  fill: url(#lv-pulse-private);
}
.cr-pulse-access-span.tipjar {
  fill: url(#lv-pulse-tipjar);
}
.cr-pulse-access-span.away {
  fill: url(#lv-pulse-away);
}
.cr-pulse-access-span.restricted {
  fill: url(#lv-pulse-restricted);
}
.cr-pulse-rec-span {
  fill: var(--recording);
}
.cr-pulse-rec-span.remote {
  fill: url(#lv-pulse-cloud);
}
.cr-pulse-rec-span.processing {
  fill: url(#lv-pulse-processing);
}
.cr-pulse-missed-span {
  fill: url(#lv-pulse-missed);
}
.cr-pulse-live-marker,
.cr-pulse-rec-marker {
  position: relative;
  z-index: 4;
  stroke-width: 1.5;
}
.cr-pulse-live-marker {
  stroke: rgba(255, 255, 255, 0.7);
}
.cr-pulse-rec-marker {
  stroke: #ffb3b3;
}
.cr-pulse-rec-media {
  cursor: pointer;
}
.cr-pulse-rec-media:focus {
  outline: 2px solid var(--text);
}
.cr-pulse-hit {
  fill: transparent;
  pointer-events: all;
  stroke: none;
}
.cr-pulse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  color: var(--text-3);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cr-pulse-summary .btn {
  margin-left: auto;
  min-height: 32px;
}

/* Media preview (hover on desktop, explicit sheet on touch). */
.cr-pulse-media-preview {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  width: 280px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.14s var(--ease),
    visibility 0s 0.14s;
}
.cr-pulse-media-preview.visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.cr-pulse-media-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.cr-pulse-media-preview [hidden] {
  display: none !important;
}
.cr-pulse-media-preview-empty {
  display: grid;
  place-items: center;
  min-height: 100px;
  border-radius: var(--r-sm);
  background: var(--inset);
  color: var(--text-3);
  font-size: 12px;
}
.cr-pulse-media-preview-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 2px 2px;
}
.cr-pulse-media-preview-copy > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.cr-pulse-media-preview-copy strong,
.cr-pulse-media-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-pulse-media-preview-copy strong {
  font-size: 13px;
}
.cr-pulse-media-preview-copy span {
  font-size: 12px;
  color: var(--text-3);
}
.cr-pulse-media-preview-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Live wall: full-screen grid of live previews. */
.cr-wall {
  position: fixed;
  z-index: 80;
  inset: 0;
  padding: 16px 20px 24px;
  overflow: auto;
  background: var(--bg);
}
.cr-wall-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  background: var(--bg);
}
.cr-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.cr-wall .cr-live-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.cr-wall .cr-preview {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 0;
}
.cr-wall .cr-live-body {
  display: block;
  padding: 12px 14px;
}

/* Overflow menus */
.row-more {
  position: relative;
}
.row-more > summary {
  list-style: none;
  cursor: pointer;
}
.row-more > summary::-webkit-details-marker {
  display: none;
}
.row-more[open] > summary {
  background: var(--surface-3);
  border-color: var(--line-2);
  color: var(--text);
}
.row-menu {
  position: absolute;
  z-index: 45;
  right: 0;
  top: calc(100% + 6px);
  width: 224px;
  padding: 5px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: 1px;
  animation: menu-in 0.12s var(--ease);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
}
.row-menu button,
.row-menu a {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13px;
}
.row-menu button:hover,
.row-menu a:hover {
  background: var(--surface-3);
}
.row-menu .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}
.row-menu .danger-menu {
  margin-top: 4px;
  color: var(--danger);
  box-shadow: 0 -1px 0 var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.row-menu .danger-menu + .danger-menu {
  margin-top: 0;
  box-shadow: none;
}
.row-menu .danger-menu .icon {
  color: var(--danger);
}
.row-menu .danger-menu:hover {
  background: color-mix(in srgb, var(--danger) 13%, transparent);
}

/* Live but not recording: persistent corner alert. */
.live-pause-alert {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--recording) 35%, transparent);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--recording) 9%, var(--surface));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.live-pause-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-pause-head strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.live-pause-head small {
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.live-pause-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--recording);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
.live-pause-creators {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
}
.live-pause-more {
  color: var(--text-3);
}
.live-pause-resume {
  margin-left: auto;
}

/* =====================================================================
 * Dialogs
 * ===================================================================== */
body.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(3px);
  animation: fade-in 0.16s var(--ease);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-color: var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: dialog-in 0.18s var(--ease);
}
.modal-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.modal-head h2 {
  font-size: 17px;
}
.modal-head.sticky {
  position: sticky;
  z-index: 4;
  top: 0;
}
.context-label {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}
.source-editor > .form-grid {
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.span2 {
  grid-column: 1 / -1;
}
.source-preflight {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
}
.modal-actions {
  min-height: 64px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  background: var(--surface);
}
.sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 3;
}
.settings-card {
  width: min(880px, calc(100vw - 32px));
}
.settings-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.settings-section > h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.provider-box {
  margin: 12px 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--inset);
}
.provider-box + .provider-box {
  margin-top: 10px;
}
.provider-box + #settingsError,
.provider-box + .error-text {
  margin-top: 12px;
}
.provider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.provider-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.provider-head h3 {
  font-size: 14px;
}
#settingsError,
#sourceError {
  padding: 0 20px;
}
.video-card {
  width: min(1100px, calc(100vw - 32px));
  overflow: hidden;
}
.video-card video {
  width: 100%;
  max-height: calc(100vh - 120px);
  display: block;
  background: #000;
}
.choice-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.choice-tag {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border: 1px solid color-mix(in srgb, var(--tag, #8b8b95) 30%, var(--line));
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.choice-tag:has(input:checked) {
  background: color-mix(in srgb, var(--tag, #8b8b95) 16%, transparent);
  color: var(--text);
}

/* ---------- Creator profile ---------- */
.profile-card {
  width: min(1220px, calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--bg);
}
.profile-card > .profile-head {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 68px;
  padding: 12px 16px 12px 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}
.profile-head > div {
  display: grid;
  gap: 2px;
}
.profile-head h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.profile-head p {
  font-size: 12.5px;
  color: var(--text-3);
}
.profile-content {
  background: var(--bg);
}
.profile-overview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.profile-cover {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 26px;
  font-weight: 600;
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 12px;
}
.profile-summary > div:first-child,
.profile-summary > .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-summary > .favorite-toggle {
  justify-self: start;
}
.favorite-toggle {
  min-height: 32px;
  font-size: 12.5px;
}
.favorite-toggle.active,
.favorite-toggle[aria-pressed="true"] {
  color: var(--focus-star);
  border-color: color-mix(in srgb, var(--focus-star) 35%, transparent);
}
.profile-metrics {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}
.profile-metrics > span {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.3;
}
.profile-metrics > span strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 16px 24px 24px;
  align-items: start;
}
.profile-main-column,
.profile-side-column {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}
.profile-section {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.profile-section-head {
  min-height: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.profile-section-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.profile-section-head h3 {
  font-size: 14.5px;
}
.profile-section-head p,
.profile-section-head > div > span {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
}
.profile-section .field {
  gap: 7px;
  margin-top: 14px;
}
.profile-section .field:first-of-type {
  margin-top: 0;
}
.profile-statistics .stats-range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-3);
  font-size: 12px;
}
.profile-statistics .stats-range select {
  width: 84px;
  min-height: 32px;
  padding: 4px 26px 4px 10px;
}
.profile-statistics .stats-summary-grid.compact {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.profile-statistics .stats-metric {
  padding: 11px 12px;
  border-radius: var(--r);
  background: var(--inset);
}
.profile-statistics .stats-metric strong {
  font-size: 18px;
}
.profile-statistics .stats-chart-stack.profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stats-large-chart {
  min-width: 0;
  padding: 16px 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--inset);
  overflow: hidden;
}
.chart-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.chart-title-row > div:first-child {
  display: grid;
  gap: 2px;
}
.chart-title-row h4 {
  font-size: 13.5px;
  color: var(--text);
}
.chart-title-row p {
  font-size: 12px;
  color: var(--text-3);
}
.stats-large-chart .activity-chart {
  display: block;
  width: 100%;
  height: 270px;
  overflow: visible;
}
.stats-large-chart .chart-label {
  font-size: 12px;
  fill: var(--text-3);
}
.stats-large-chart .chart-y-label {
  font-size: 11px;
  fill: var(--text-3);
}
.stats-large-chart .chart-axis {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.profile-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.profile-intel-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--inset);
}
.profile-intel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-intel-head > div {
  display: grid;
  gap: 2px;
}
.profile-intel-head p {
  font-size: 12px;
  color: var(--text-3);
}
.intel-highlight {
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--live) 13%, transparent);
  color: color-mix(in srgb, var(--live) 70%, #fff);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}
.weekday-list {
  display: grid;
  gap: 8px;
}
.weekday-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) 48px minmax(160px, auto);
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 12.5px;
}
.weekday-row > strong {
  font-weight: 600;
}
.weekday-row > span {
  text-align: right;
  font-weight: 600;
}
.weekday-row > small {
  text-align: right;
}
.weekday-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.weekday-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #6b7890;
}
.weekday-row.best .weekday-track i {
  background: var(--live);
}
.weekday-row.best > strong,
.weekday-row.best > span {
  color: var(--live);
}
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 11.5px;
}
.calendar-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.calendar-week-head,
.activity-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-week-head {
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 11.5px;
  text-align: center;
}
.calendar-cell {
  min-height: 44px;
  padding: 6px 7px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  align-content: space-between;
  gap: 2px;
}
.calendar-cell strong {
  font-size: 12px;
  font-weight: 600;
}
.calendar-cell span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.calendar-cell.empty {
  visibility: hidden;
}
.calendar-cell.level-1,
.calendar-legend .level-1 {
  background: color-mix(in srgb, var(--live) 14%, transparent);
}
.calendar-cell.level-2,
.calendar-legend .level-2 {
  background: color-mix(in srgb, var(--live) 28%, transparent);
}
.calendar-cell.level-3,
.calendar-legend .level-3 {
  background: color-mix(in srgb, var(--live) 46%, transparent);
}
.calendar-cell.level-4,
.calendar-legend .level-4 {
  background: color-mix(in srgb, var(--live) 68%, transparent);
}
.calendar-cell.level-3 span,
.calendar-cell.level-4 span {
  color: rgba(255, 255, 255, 0.8);
}
.calendar-cell.level-4 strong {
  color: #06150e;
}
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.forecast-day {
  min-height: 104px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 3px;
}
.forecast-day time {
  font-size: 12px;
  color: var(--text-3);
  text-transform: capitalize;
}
.forecast-day strong {
  font-size: 19px;
  line-height: 1.15;
  font-weight: 600;
}
.forecast-day > span {
  font-size: 12px;
  color: var(--text-2);
}
.forecast-day small {
  margin-top: 4px;
  font-size: 11.5px;
}
.forecast-day.likely {
  border-color: color-mix(in srgb, var(--live) 35%, transparent);
  background: color-mix(in srgb, var(--live) 7%, var(--surface));
}
.forecast-day.likely strong {
  color: var(--live);
}
.forecast-method {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.forecast-learning {
  min-height: 80px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 3px;
}
.forecast-learning span {
  font-size: 12px;
  color: var(--text-3);
}
.profile-statistics .stats-note {
  padding: 10px 0 0;
}
.live-dna .dna-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: end;
}
.dna-week,
.dna-hours {
  height: 84px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.dna-day {
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 4px;
  align-items: end;
}
.dna-day span {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
}
.dna-day i,
.dna-hours i {
  display: block;
  min-height: 3px;
  border-radius: 3px 3px 1px 1px;
  background: #6b7890;
}
.dna-hours i {
  flex: 1 1 0;
  min-width: 2px;
}
.dna-metrics {
  display: grid;
  gap: 6px;
}
.dna-metrics span {
  padding: 8px 10px;
  border-radius: var(--r);
  background: var(--inset);
  color: var(--text-3);
  font-size: 12px;
}
.dna-metrics strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.linked-list,
.local-capture-list {
  display: grid;
}
.linked-source,
.local-capture {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.linked-source:first-child,
.local-capture:first-child {
  border-top: 0;
}
.linked-source > div,
.local-capture > div {
  min-width: 0;
  display: grid;
  margin-right: auto;
}
.linked-source > div small,
.local-capture > div small {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.linked-source .btn,
.local-capture .btn {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 12.5px;
}
.local-capture[data-tone="recording"] strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--recording);
  vertical-align: 1px;
}
.profile-days {
  display: grid;
}
.profile-day {
  border-top: 1px solid var(--line);
}
.profile-day:first-child {
  border-top: 0;
}
.profile-day > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.profile-day > summary::-webkit-details-marker {
  display: none;
}
.profile-day > summary small {
  display: block;
  margin-top: 2px;
}
.profile-day-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 0 14px;
}
.profile-day-video {
  display: grid;
  grid-template-columns: 96px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--inset);
}
.profile-day-thumb {
  width: 96px;
  min-height: 60px;
  border: 0;
  padding: 0;
  background: #060607;
}
.profile-day-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-day-video-body {
  min-width: 0;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  font-size: 12.5px;
}
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  min-height: 38px;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.timeline li:first-child {
  border-top: 0;
}
.timeline time {
  color: var(--text-3);
}
.profile-save {
  position: sticky;
  bottom: 0;
  z-index: 8;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.profile-save #profileSaveError {
  margin-right: auto;
}
.profile-save .btn.primary {
  margin-left: auto;
}

/* =====================================================================
 * Overlays: command palette, toasts, creator hover preview
 * ===================================================================== */
.command-dialog {
  width: min(620px, calc(100vw - 24px));
  margin-top: 12vh;
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.command-dialog[open] {
  animation: dialog-in 0.16s var(--ease);
}
.command-dialog::backdrop {
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(3px);
}
.command-input {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
}
.command-input input {
  min-height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 16px;
}
.command-input input:focus {
  box-shadow: none;
}
.command-results {
  max-height: min(420px, 60vh);
  overflow: auto;
  padding: 6px;
}
.command-results button {
  width: 100%;
  min-height: 48px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.command-results button > .mini-icon:first-child {
  color: var(--text-3);
}
.command-results button > .mini-icon:last-child {
  color: var(--text-4);
}
.command-results button:hover,
.command-results button:focus {
  background: var(--surface-3);
  box-shadow: none;
}
.command-results button > span {
  display: grid;
  min-width: 0;
}
.command-results strong {
  font-size: 13.5px;
  font-weight: 560;
}
.command-results small {
  font-size: 12px;
}
.command-dialog footer {
  min-height: 38px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-3);
  font-size: 12px;
}
.command-dialog footer kbd {
  font: inherit;
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}

.toasts {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-pop);
  animation: toast-in 0.2s var(--ease);
}
.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex: 0 0 auto;
}
.toast.bad::before {
  background: var(--danger);
}
.toasts .toast.good,
.toasts .toast.bad {
  color: var(--text) !important;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Creator hover preview */
.creator-hover-card {
  box-sizing: border-box;
  position: fixed;
  z-index: 95;
  width: min(460px, calc(100vw - 20px));
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.14s var(--ease),
    transform 0.14s var(--ease),
    visibility 0s 0.14s;
}
.creator-hover-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.creator-hover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}
.creator-hover-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.creator-hover-head strong {
  font-size: 15px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-hover-head small {
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-hover-status {
  --tone: var(--text-3);
  flex: 0 0 auto;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: color-mix(in srgb, var(--tone) 72%, #fff);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.creator-hover-status.recording {
  --tone: var(--recording);
}
.creator-hover-status.live {
  --tone: var(--live);
}
.creator-hover-status.private,
.creator-hover-status.away,
.creator-hover-status.tipjar,
.creator-hover-status.restricted {
  --tone: var(--warning);
}
.creator-hover-status.error {
  --tone: var(--danger);
}
.creator-hover-meta {
  display: flex;
  gap: 12px;
  padding: 0 2px 10px;
  color: var(--text-3);
  font-size: 12px;
}
.creator-hover-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.creator-hover-video {
  min-width: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--inset);
}
.creator-hover-video-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060607;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-4);
  font-size: 12px;
  font-weight: 650;
}
.creator-hover-video-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.creator-hover-video > div:last-child {
  min-width: 0;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}
.creator-hover-video strong {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-hover-video small {
  font-size: 11.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-hover-empty {
  min-height: 80px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--inset);
  color: var(--text-3);
}
.creator-hover-empty.compact {
  min-height: 52px;
}
.creator-hover-empty strong {
  color: var(--text-2);
  font-size: 12.5px;
}
.creator-hover-loading {
  display: grid;
  gap: 10px;
}
.creator-hover-loading-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.creator-hover-loading-head strong {
  font-size: 13px;
}
.creator-hover-loading-head span {
  font-size: 12px;
  color: var(--text-3);
}
.creator-hover-loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.creator-hover-loading-grid i {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  background: var(--surface-3);
  animation: skeleton 1.2s ease-in-out infinite;
}
@keyframes skeleton {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 621px) {
  .creator-hover-card {
    width: min(620px, calc(100vw - 28px));
    padding: 14px;
  }
}
@media (max-width: 620px) {
  .creator-hover-card {
    width: min(400px, calc(100vw - 16px));
    padding: 10px;
  }
  .creator-hover-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creator-hover-video:nth-child(3) {
    display: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .creator-hover-card {
    display: block;
    max-height: calc(100vh - 16px);
    overflow: auto;
  }
  .creator-hover-card.visible {
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .creator-hover-card,
  .creator-hover-loading-grid i {
    transition: none !important;
    animation: none !important;
  }
}

/* The palette's own heading is visually redundant with the input; keep only
 * its close button, pinned in the input row (needed on touch devices). */
.command-head {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 10px;
  display: block;
}
.command-head > div {
  display: none;
}
.command-input {
  padding-right: 56px;
}

/* In-app confirm / prompt (replaces window.confirm and window.prompt). */
.lv-dialog {
  width: min(440px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-pop);
}
.lv-dialog[open] {
  animation: dialog-in 0.16s var(--ease);
}
.lv-dialog::backdrop {
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(3px);
}
.lv-dialog-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}
.lv-dialog-card h2 {
  font-size: 16px;
  line-height: 1.35;
}
.lv-dialog-card p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.lv-dialog-fields {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.lv-dialog-actions {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.button.danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #1a0707;
  font-weight: 600;
}
.button.danger-solid:hover {
  background: #ff8a8a;
  border-color: #ff8a8a;
}

/* =====================================================================
 * Glass layer (3.2): aurora canvas, translucent frosted surfaces,
 * luminous edges. Blur is applied to large containers only (panels, bars,
 * dialogs) — never per row — to stay smooth on phones.
 * ===================================================================== */
/* =====================================================================
 * NSFW scan (3.3): archive badge, progress panel, moments dialog.
 * ===================================================================== */
.nsfw-badge {
  --tone: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
  font: 600 11px/18px var(--font, inherit);
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nsfw-badge.safe {
  --tone: var(--live);
}
.nsfw-badge.nsfw {
  --tone: var(--recording);
}
.nsfw-badge.review {
  --tone: var(--warning);
}
.nsfw-badge.scanning,
.nsfw-badge.paused {
  --tone: var(--accent);
}
.nsfw-badge.error {
  --tone: var(--recording);
  border-style: dashed;
}
.nsfw-badge:hover {
  background: color-mix(in srgb, var(--tone) 24%, transparent);
}
.nsfw-spinner {
  width: 9px;
  height: 9px;
  border: 2px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-top-color: var(--tone);
  border-radius: 50%;
  animation: nsfw-spin 0.9s linear infinite;
}
@keyframes nsfw-spin {
  to {
    transform: rotate(360deg);
  }
}

.nsfw-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
}
.nsfw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nsfw-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nsfw-head h2 {
  margin: 0;
  font-size: 15px;
}
.nsfw-head .icon {
  color: var(--accent);
}
.nsfw-state {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
}
.nsfw-state.running {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
}
.nsfw-state.models_missing {
  background: color-mix(in srgb, var(--recording) 18%, transparent);
  color: var(--text);
}
.nsfw-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nsfw-count {
  --tone: var(--text-2);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
}
.nsfw-count strong {
  color: var(--tone);
  font-size: 15px;
}
.nsfw-count.nsfw {
  --tone: var(--recording);
}
.nsfw-count.review {
  --tone: var(--warning);
}
.nsfw-count.safe {
  --tone: var(--live);
}
.nsfw-count.queue {
  --tone: var(--accent);
}
.nsfw-count:hover {
  border-color: var(--line-3);
  color: var(--text);
}
.nsfw-job {
  display: grid;
  gap: 10px;
}
.nsfw-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nsfw-job-head > div {
  display: grid;
  min-width: 0;
}
.nsfw-job-head small {
  overflow: hidden;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nsfw-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nsfw-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--primary-fill);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: width 0.6s ease;
}
.nsfw-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: nsfw-sheen 1.8s linear infinite;
}
@keyframes nsfw-sheen {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.nsfw-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--text-2);
  font-size: 12.5px;
}
.nsfw-job-meta strong {
  color: var(--text);
}
.nsfw-note {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}
.nsfw-note.bad {
  color: var(--text);
}
.nsfw-note code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
}

.nsfw-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl, 22px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-pop);
  color: var(--text);
}
.nsfw-dialog::backdrop {
  background: rgba(4, 4, 10, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.nsfw-dialog[open] {
  display: grid;
  gap: 14px;
}
.nsfw-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nsfw-dialog-head > div {
  display: grid;
  flex: 1;
  min-width: 0;
}
.nsfw-dialog-head h2 {
  margin: 0;
  font-size: 18px;
}
.nsfw-dialog-head small {
  overflow: hidden;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nsfw-dialog-head .nsfw-badge {
  margin: 0;
  cursor: default;
}
.nsfw-moments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.nsfw-moment {
  --tone: var(--warning);
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
  border-radius: 14px;
  background: var(--surface-2);
}
.nsfw-moment.nsfw {
  --tone: var(--recording);
}
.nsfw-moment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nsfw-moment small {
  color: var(--text-3);
}
.nsfw-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--inset);
  color: var(--text-2);
  cursor: pointer;
}
.nsfw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.nsfw-shot:hover img {
  transform: scale(1.04);
}
.nsfw-label {
  color: var(--tone);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nsfw-empty {
  margin: 8px 0;
  color: var(--text-2);
}
.nsfw-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nsfw-dialog-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nsfw-dialog-actions .icon {
  width: 15px;
  height: 15px;
}

.nsfw-settings .settings-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
}
.nsfw-settings .settings-note span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nsfw-settings .settings-note .ok {
  color: var(--live);
}
.nsfw-settings .settings-note .bad {
  color: var(--warning);
}
.nsfw-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  border: 0;
}
.nsfw-classes legend {
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 13px;
}

@media (max-width: 640px) {
  .nsfw-panel {
    padding: 14px;
  }
  .nsfw-count {
    padding: 5px 10px;
  }
  .nsfw-dialog {
    width: 100vw;
    max-width: none;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .nsfw-moments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .nsfw-spinner,
  .nsfw-progress i::after {
    animation: none;
  }
}
.nsfw-moment > div {
  flex-wrap: wrap;
}
.nsfw-time {
  white-space: nowrap;
}
.nsfw-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
}
.nsfw-cloud > span {
  flex: 1;
  min-width: 200px;
}
.nsfw-cloud .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nsfw-timeline {
  display: grid;
  gap: 6px;
  padding: 10px 12px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.nsfw-timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 13px;
}
.nsfw-timeline-head span {
  color: var(--text-3);
}
.nsfw-lightbox {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface-2);
}
.nsfw-lightbox[hidden] {
  display: none;
}
.nsfw-lightbox img {
  width: 100%;
  border-radius: 10px;
}
.nsfw-lightbox > div:not(.nsfw-lightbox-actions) {
  display: grid;
  gap: 6px;
}
.nsfw-lightbox strong {
  font-size: 20px;
}
.nsfw-lightbox span {
  color: var(--text-2);
  font-size: 13px;
}
.nsfw-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.nsfw-lightbox-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nsfw-moment.flash {
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 24px color-mix(in srgb, var(--accent) 50%, transparent);
}
@media (max-width: 640px) {
  .nsfw-lightbox {
    grid-template-columns: 1fr;
  }
}
.nsfw-lightbox .button.primary {
  color: #fff;
}

/* Timeline with stylised icons (archive dialog) */
.nsfw-tl {
  position: relative;
  padding-top: 28px;
}
.nsfw-tl-pins {
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
}
.nsfw-tl-track {
  position: relative;
  height: 22px;
  border-radius: 7px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nsfw-tl-band {
  --tone: var(--warning);
  position: absolute;
  top: 3px;
  bottom: 3px;
  min-width: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--tone);
  box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 45%, transparent);
  cursor: pointer;
}
.nsfw-tl-band.nsfw {
  --tone: var(--recording);
}
.nsfw-tl-band:hover,
.nsfw-tl-band:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.nsfw-tl-pin,
.nsfw-pulse-mark {
  --tone: var(--warning);
  position: absolute;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 78%, #0b0b12);
  color: #fff;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.nsfw-tl-pin .mini-icon,
.nsfw-pulse-mark .mini-icon {
  width: 14px;
  height: 14px;
}
.nsfw-tl-pin.nsfw,
.nsfw-pulse-mark.nsfw {
  --tone: var(--recording);
}
.nsfw-pulse-mark.pending {
  --tone: var(--accent);
  border-style: dashed;
  opacity: 0.85;
}
.nsfw-tl-pin {
  top: 0;
}
.nsfw-tl-pin:hover,
.nsfw-tl-pin:focus-visible {
  transform: translateX(-50%) scale(1.15);
  outline: none;
}
.nsfw-tl-ticks {
  position: relative;
  height: 16px;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
}
.nsfw-tl-tick {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.nsfw-tl-tick:first-child {
  transform: none;
}
.nsfw-tl-tick:last-child {
  transform: translateX(-100%);
}

/* Monitor Cronologia, NSFW on the session bar (3.4.20). Where moments are,
   the REC bar is drawn as a chain of body-part symbols (one per slice of time,
   chosen in nsfw.js) in the colour of the recording underneath (--st): red
   recording or on disk, green cloud, blue in elaborazione. Each symbol is a
   CSS mask (data URI, CSP img-src data:) painted in currentColor. The piece
   covers the full 22px track, above the bar (2.75-19.25px) and the grid. */
.nsfw-pulse-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.nsfw-bar-run {
  --st: 255 92 92;
  position: absolute;
  top: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 7px;
  color: rgb(var(--st));
  background: linear-gradient(rgb(var(--st) / 0.26), rgb(var(--st) / 0.26)), #15121f;
  box-shadow: inset 0 0 0 1px rgb(var(--st) / 0.6);
  pointer-events: auto;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.nsfw-bar-run .nsfw-glyph {
  width: 17.6px;
  height: 16px;
}
.nsfw-bar-run.s-cloud { --st: 62 207 142; }
.nsfw-bar-run.s-processing { --st: 106 166 255; }
.nsfw-bar-run.s-none { --st: 196 202 216; }
.nsfw-bar-run.pending .nsfw-glyph {
  opacity: 0.5;
}
.nsfw-bar-run:hover {
  box-shadow: inset 0 0 0 1px rgb(var(--st)), 0 0 0 2px rgb(var(--st) / 0.35);
}
.nsfw-bar-run:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
/* Still growing at the live edge: a ping at its end. */
.nsfw-bar-run.live::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgb(var(--st));
  animation: nsfw-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.g-vulva { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 2 22 20'%3E%3Cmask id='m'%3E%3Cpath fill='%23fff' d='M12 2.4c3.6 0 6.2 2.2 6.2 5.4 0 4.6-2.8 9.8-6.2 13.8C8.6 17.6 5.8 12.4 5.8 7.8c0-3.2 2.6-5.4 6.2-5.4z'/%3E%3Cpath fill='%23000' d='M12 7c1.9 1.6 2.7 4.2 2.4 7-.3 2.3-1.2 4.1-2.4 5.4-1.2-1.3-2.1-3.1-2.4-5.4-.3-2.8.5-5.4 2.4-7z'/%3E%3Cpath fill='%23fff' d='M12 7c1.9 1.6 2.7 4.2 2.4 7-.3 2.3-1.2 4.1-2.4 5.4-1.2-1.3-2.1-3.1-2.4-5.4-.3-2.8.5-5.4 2.4-7z' fill-opacity='0.45'/%3E%3Cpath fill='%23000' d='M12 9.2c.9 1.3 1.2 3.1 1 4.9-.2 1.4-.5 2.5-1 3.4-.5-.9-.8-2-1-3.4-.2-1.8.1-3.6 1-4.9z'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
.g-phallus { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 2.2 22 20'%3E%3Cmask id='m'%3E%3Ccircle fill='%23fff' cx='8.8' cy='18.6' r='3.2'/%3E%3Ccircle fill='%23fff' cx='15.2' cy='18.6' r='3.2'/%3E%3Cpath fill='%23fff' d='M9.4 18.4V9.6h5.2v8.8c-.8.5-1.7.8-2.6.8s-1.8-.3-2.6-.8z'/%3E%3Cpath fill='%23fff' d='M8.8 10c0-3.6 1.4-7.4 3.2-7.4s3.2 3.8 3.2 7.4c-.9.6-2 .9-3.2.9s-2.3-.3-3.2-.9z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round' d='M8.9 10.1c.9.6 2 .9 3.1.9s2.2-.3 3.1-.9'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='0.9' stroke-linecap='round' d='M12 3.6v1.4'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
.g-anus { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.5 1 23 20.9'%3E%3Cmask id='m'%3E%3Cpath fill='%23fff' d='M12 5.4C10.5 3.6 8 2.8 5.7 3.5 2.9 4.4 1.3 7.4 1.5 11c.3 4.6 3.4 8.6 7.2 9 1.4.1 2.5-.3 3.3-1 .8.7 1.9 1.1 3.3 1 3.8-.4 6.9-4.4 7.2-9 .2-3.6-1.4-6.6-4.2-7.5-2.3-.7-4.8.1-6.3 1.9z'/%3E%3Cellipse fill='%23000' cx='12' cy='12.6' rx='3' ry='3.4'/%3E%3Cellipse fill='%23fff' cx='12' cy='12.6' rx='3' ry='3.4' fill-opacity='0.45'/%3E%3Cellipse fill='%23000' cx='12' cy='12.6' rx='1.3' ry='1.5'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
.g-breast { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.5 1.55 23 20.9'%3E%3Cmask id='m'%3E%3Ccircle fill='%23fff' cx='6.6' cy='12.2' r='5.3'/%3E%3Ccircle fill='%23fff' cx='17.4' cy='12.2' r='5.3'/%3E%3Ccircle fill='%23000' cx='7.3' cy='13.9' r='2.1'/%3E%3Ccircle fill='%23fff' cx='7.3' cy='13.9' r='2.1' fill-opacity='0.45'/%3E%3Ccircle fill='%23000' cx='16.7' cy='13.9' r='2.1'/%3E%3Ccircle fill='%23fff' cx='16.7' cy='13.9' r='2.1' fill-opacity='0.45'/%3E%3Ccircle fill='%23000' cx='7.3' cy='14.0' r='0.95'/%3E%3Ccircle fill='%23000' cx='16.7' cy='14.0' r='0.95'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
.g-butt { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.8 2.1 22.4 20.4'%3E%3Cmask id='m'%3E%3Cpath fill='%23fff' d='M12 7C10.6 5.2 8.3 4.4 6.1 5 3.3 5.8 1.7 8.6 1.9 12.1c.2 4.1 2.8 7.4 6.1 7.7 1.8.2 3.1-.5 4-1.7.9 1.2 2.2 1.9 4 1.7 3.3-.3 5.9-3.6 6.1-7.7.2-3.5-1.4-6.3-4.2-7.1-2.2-.6-4.5.2-6 2z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' d='M12 7.4c-.2 3.3-.1 6.9 0 10.4'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' d='M3.6 15.8c1.4 2.1 3.6 3 6 2.4M20.4 15.8c-1.4 2.1-3.6 3-6 2.4'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' d='M3.6 15.8c1.4 2.1 3.6 3 6 2.4M20.4 15.8c-1.4 2.1-3.6 3-6 2.4' stroke-opacity='0.45'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
.g-other { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 2 22 20'%3E%3Cmask id='m'%3E%3Cpath fill='%23fff' d='M12 3.5l6.5 8.5-6.5 8.5-6.5-8.5z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M12 8v5M12 15.6v.4'/%3E%3C/mask%3E%3Crect x='-4' y='-4' width='32' height='32' mask='url(%23m)'/%3E%3C/svg%3E"); }
/* Symbols outside the bar (legend, hover label): same masks, text colour. */
.nsfw-glyph {
  display: inline-block;
  flex: none;
  width: 17px;
  height: 15px;
  background: currentColor;
  -webkit-mask-image: var(--glyph);
  mask-image: var(--glyph);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.nsfw-glyph-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
/* Hover cursor: a hairline across the bar, label in .nsfw-scrub-tip. */
.nsfw-scrub {
  position: absolute;
  z-index: 1;
  top: -3px;
  bottom: -3px;
  width: 1px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.nsfw-pulse-layer.scrubbing .nsfw-scrub {
  opacity: 1;
}
.nsfw-scrub-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  background: rgba(15, 14, 27, 0.94);
  color: var(--text);
  font: 600 11px/1.3 var(--font, inherit);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.nsfw-scrub-tip[hidden] {
  display: none;
}
/* Entrance on first display only: the symbols are revealed left to right.
   The delay (sweep across the row, or negative to resume after a re-render)
   is set by animateNewPulseItems; 0.7s must match WIPE_MS in nsfw.js. */
.nsfw-bar-run.enter {
  animation: nsfw-wipe 0.7s cubic-bezier(0.25, 0.8, 0.35, 1) backwards;
}
@keyframes nsfw-wipe {
  from { clip-path: inset(-4px 100% -4px 0); }
  to { clip-path: inset(-4px -8px -4px 0); }
}
@keyframes nsfw-ping {
  0% { box-shadow: 0 0 0 0 rgb(var(--st) / 0.7); }
  100% { box-shadow: 0 0 0 7px rgb(var(--st) / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .nsfw-bar-run,
  .nsfw-bar-run::after,
  .nsfw-scrub {
    animation: none !important;
    transition: none !important;
  }
}
.cr-pulse-legend-item.nsfw-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
.cr-pulse-legend-item.nsfw-legend b {
  color: var(--text-3);
  font-weight: 540;
}

/* Live analysis status in the archive panel */
.nsfw-live {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.nsfw-live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
}
.nsfw-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-4);
}
.nsfw-live-dot.running {
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent);
  animation: nsfw-pulse 1.6s ease-in-out infinite;
}
.nsfw-live-dot.busy,
.nsfw-live-dot.storage_switch {
  background: var(--warning);
}
.nsfw-live-dot.models_missing,
.nsfw-live-dot.error {
  background: var(--recording);
}
@keyframes nsfw-pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--live) 8%, transparent);
  }
}
.nsfw-live-verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
}
.nsfw-live-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nsfw-live-track {
  display: grid;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--inset);
}
.nsfw-live-track small {
  color: var(--text-3);
  font-size: 11.5px;
}
.nsfw-live-track.off {
  opacity: 0.7;
  border-style: dashed;
}
.nsfw-badge.verifying {
  --tone: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .nsfw-live-dot.running {
    animation: none;
  }
}
.nsfw-noshot {
  display: grid;
  place-items: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: var(--inset);
  color: var(--text-3);
  font-size: 12.5px;
  text-align: center;
  padding: 10px;
}
.nsfw-noshot .icon {
  width: 34px;
  height: 34px;
  color: var(--text-2);
}

/* Phone Cronologia: wide track scrolled with a finger, names pinned left */
.cr-pulse.scrollable {
  position: relative;
}
.cr-pulse-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cr-pulse-scroll::-webkit-scrollbar {
  display: none;
}
.cr-pulse.scrollable .cr-pulse-scale,
.cr-pulse.scrollable .cr-pulse-row {
  width: max-content;
  grid-template-columns: 104px var(--pulse-track, 1000px);
}
.cr-pulse.scrollable .cr-pulse-track,
.cr-pulse.scrollable .cr-pulse-scale > div {
  max-width: none;
  overflow: visible;
}
.cr-pulse.scrollable .cr-pulse-who,
.cr-pulse.scrollable .cr-pulse-scale > span:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  align-self: stretch;
  padding: 6px 8px 6px 0;
  background: #100f1d; /* opaque: pins scroll underneath the names */
  box-shadow: 12px 0 14px -10px rgba(0, 0, 0, 0.9);
}
.cr-pulse.scrollable .cr-pulse-row {
  padding-right: 18px;
}
.cr-pulse.scrollable .cr-pulse-scale {
  padding-right: 18px;
}
.cr-pulse-now {
  display: block;
  margin: 0 0 6px auto;
  padding: 6px 12px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: var(--primary-fill);
  color: #fff;
  font: 600 12px/1 var(--font, inherit);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.cr-pulse-now[hidden] {
  display: none;
}
@media (max-width: 620px) {
  .cr-pulse-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .cr-pulse-legend::-webkit-scrollbar {
    display: none;
  }
  .nsfw-pin-count {
    top: -6px;
    right: -7px;
  }
  /* Small live thumbnails: keep only the state chip, drop the text over the picture. */
  .cr-preview > .cr-preview-age {
    display: none;
  }
  .nsfw-pulse-mark .mini-icon {
    width: 13px;
    height: 13px;
  }
}

/* Grouped pins */
.nsfw-pin-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid #0f0e1b;
  border-radius: 999px;
  background: #fff;
  color: #0f0e1b;
  font: 700 10px/13px var(--font, inherit);
  text-align: center;
}
.nsfw-group-list {
  display: grid;
  gap: 8px;
}
.nsfw-group-row {
  --tone: var(--warning);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line));
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.nsfw-group-row.nsfw {
  --tone: var(--recording);
}
.nsfw-group-row.pending {
  --tone: var(--accent);
}
.nsfw-group-row img,
.nsfw-group-icon {
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}
.nsfw-group-icon {
  display: grid;
  place-items: center;
  background: var(--inset);
  color: var(--tone);
}
.nsfw-group-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.nsfw-group-row small {
  color: var(--text-3);
}
.nsfw-group-row:hover {
  border-color: var(--tone);
}
/* Second body part seen in the same moment, stacked on the pin */
.nsfw-pin-extra {
  position: absolute;
  left: -7px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1.5px solid #0f0e1b;
  border-radius: 50%;
  background: var(--tone);
  color: #fff;
}
.nsfw-pin-extra .mini-icon {
  width: 10px;
  height: 10px;
}

/* NSFW categories: one colour per body part (most explicit wins the pin) */
.cat-vulva { --cat: #e23fb3; }
.cat-phallus { --cat: #3b82f6; }
.cat-anus { --cat: #8b5cf6; }
.cat-breast { --cat: #fb7185; }
.cat-butt { --cat: #f59e0b; }
.cat-other { --cat: var(--warning); }
.nsfw-tl-pin[class*="cat-"],
.nsfw-pulse-mark[class*="cat-"] {
  --tone: var(--cat);
  background: var(--cat);
}
.nsfw-pulse-mark.review,
.nsfw-tl-pin.review {
  border-color: var(--warning);
  opacity: 0.85;
}
.nsfw-tl-pin .mini-icon {
  width: 17px;
  height: 17px;
}
.nsfw-pulse-mark .mini-icon {
  width: 12px;
  height: 12px;
}
/* Two body parts in one moment: a two-colour ring around the main colour. */
.cat2-vulva { --cat2: #e23fb3; }
.cat2-phallus { --cat2: #3b82f6; }
.cat2-anus { --cat2: #8b5cf6; }
.cat2-breast { --cat2: #fb7185; }
.cat2-butt { --cat2: #f59e0b; }

.nsfw-pin-extra {
  background: #0f0e1b;
}
.nsfw-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nsfw-cat-chip,
.nsfw-legend-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat) 22%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}
.nsfw-cat-chip .mini-icon,
.nsfw-legend-cat .mini-icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--cat);
  color: #fff;
}
.cr-pulse-legend-item.nsfw-legend {
  flex-wrap: wrap;
}
@media (max-width: 620px) {
  /* The phone legend scrolls sideways on one line; wrapping here stacked the
     five categories in a 103px column and made the whole legend 117px tall. */
  .cr-pulse-legend-item.nsfw-legend {
    flex: none;
    flex-wrap: nowrap;
  }
}

/* Responsive workspace — single layout policy, no historical skins. */
.modal-card,.profile-card,.command-dialog,.nsfw-dialog{border-radius:24px;border-color:var(--line-2);background:linear-gradient(145deg,#1e3a60e8,#0b1934f5);backdrop-filter:blur(20px);box-shadow:var(--shadow-pop)}.modal-head h2{font-size:21px}.settings-section{padding:24px}.settings-section h3{font-size:15px;margin-bottom:18px}.profile-hero{background:var(--surface-2)}.profile-save{backdrop-filter:none;background:var(--surface)}.video-card{padding:16px;overflow:hidden}.video-card video{width:100%;max-height:75svh;border-radius:16px;background:#000}.notify-button[aria-pressed=true]{color:var(--primary)}.archive-hooks,.saved-filters{display:flex;gap:8px;flex-wrap:wrap}.saved-filter-chip{border:1px solid var(--line-2);border-radius:8px;background:var(--surface-2);color:var(--text-2);padding:7px 11px;font-size:11px}.forecast-panel h3{font-size:16px}.source-status.offline{color:var(--text-3)}.cr-preview-cover,.archive-thumb img,.library-cover img{transform:scale(3)}.row-menu{border-radius:14px;background:var(--surface-2);box-shadow:var(--shadow-pop)}.row-menu button,.row-menu a{min-height:40px}.cr-pulse{margin:18px 24px;background:var(--inset);border:1px solid var(--line);border-radius:18px}.cr-pulse-head{padding:18px}.cr-pulse-who{font-size:11px}.cr-pulse-scale,.cr-pulse-row{grid-template-columns:120px minmax(0,1fr)}.cr-pulse-key{font-size:10px}.cr-pulse-empty{color:var(--text-3)}.cr-live-card .cr-preview-corner{position:absolute;top:12px;right:12px;bottom:auto;left:auto}.cr-live-card .cr-live-status{flex-wrap:wrap}.cr-compact-row.focus{border-color:#63b8ff33}.cr-empty,.monitor-empty{color:var(--text-3);padding:35px 24px;text-align:center}.cr-section-title{font-size:14px}.processing-card,.progress-panel{border-radius:20px}.profile-workspace{min-width:0}.profile-side-column,.profile-main-column{min-width:0;grid-template-columns:minmax(0,1fr)}.profile-section{min-width:0}
@media(hover:hover){[data-tooltip]{position:relative}[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;z-index:80;pointer-events:none;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);padding:7px 10px;background:var(--surface-3);color:var(--text);border:1px solid var(--line-2);border-radius:7px;box-shadow:0 8px 20px #0005;font-size:10px;white-space:nowrap}.nav-link[data-tooltip]:hover::after{display:none}}

/* Monitor components emitted by ui.js. Clip imagery, never action menus. */
.monitor-surface,.cr-live-card{overflow:visible}.monitor-section>header{display:flex;align-items:center;gap:10px;padding:0 24px 16px;font:10px var(--mono);color:var(--text-3)}.monitor-section>header h3{font:550 14px var(--font);color:var(--text)}.cr-preview{border-radius:17px 0 0 17px}.cr-preview-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 120%,#406fe820,transparent 75%);color:#6286b7}.cr-preview-placeholder>span{font-size:62px;font-weight:400;letter-spacing:-.065em}.cr-preview>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.cr-preview>img.cr-preview-cover{transform:scale(3)}.cr-preview-state{position:absolute;top:14px;left:14px;z-index:1;display:flex;gap:7px;align-items:center;padding:7px 10px;background:#070d1cda;border:1px solid #ffffff18;border-radius:9px;color:var(--text);font:9px var(--mono)}.cr-preview-state>span:last-child:not(.state-dot){color:var(--info);border-left:1px solid var(--line-2);padding-left:7px}.cr-preview-age{position:absolute;bottom:12px;left:12px;z-index:1;padding:5px 8px;border-radius:8px;background:#070d1cda;font:9px var(--mono);color:var(--text-2)}.cr-live-body{padding:17px;min-width:0;display:flex;flex-direction:column;gap:14px}.cr-live-head{display:flex;justify-content:space-between;gap:10px;align-items:start;flex-wrap:wrap}.cr-live-head>div{min-width:0;flex:1}.cr-live-name{font-size:18px;font-weight:550;letter-spacing:-.025em}.cr-live-provider{font-size:10px;color:var(--text-3);margin-top:6px}.cr-live-state{font:9px var(--mono);color:var(--text-3);padding-top:4px}.cr-card-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:auto;position:relative}.cr-card-actions>.row-more{margin-left:auto}.cr-live-card:has(.row-more[open]){position:relative;z-index:35}.cr-compact-main{display:grid;gap:6px;flex:1;min-width:0}.cr-compact-main>span,.cr-compact-status{font-size:10px;color:var(--text-3)}.cr-compact-row>.row-more{margin-left:auto}.cr-offline{border-top:1px solid var(--line);padding:0 24px 18px}.cr-offline>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:18px 0;cursor:pointer;font-size:12px;color:var(--text-3)}.cr-offline>summary .mini-icon{margin-left:auto}.cr-ended-cover{width:74px;aspect-ratio:16/10;flex-shrink:0;border-radius:10px;overflow:hidden;background:var(--inset);display:grid;place-items:center;color:var(--text-3);font-size:20px}.cr-ended-cover>img{width:100%;height:100%;object-fit:cover;transform:scale(3)}.cr-ended-main{display:flex;gap:20px;align-items:center;justify-content:space-between;min-width:0;flex:1}.cr-ended-main>div:first-child{display:grid;gap:6px;min-width:0}.cr-ended-main small{font-size:10px;color:var(--text-3)}.cr-ended-state{display:flex;align-items:center;gap:12px;font-size:10px;color:var(--text-3)}.cr-ended-state>strong{font-weight:450;color:var(--text-2)}.forecast-list{padding:0 24px 24px;display:grid;gap:12px}.forecast-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(80px,.6fr) 48px 60px;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.forecast-who{display:grid;gap:6px;font-size:13px}.forecast-who small{font-size:10px;color:var(--text-3)}.forecast-row>strong{font:11px var(--mono);color:var(--primary)}.cr-live-grid:has(> .cr-live-card:only-child) .cr-preview{border-radius:19px 0 0 19px}.state-dot{display:inline-block;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--text-4)}.state-dot.live{background:var(--live);box-shadow:0 0 0 3px #50e6b314}.state-dot.recording{background:var(--recording);box-shadow:0 0 0 3px #ff5c5c18}.inline-alert{display:flex;gap:8px;align-items:start;padding:12px;background:#ff88880d;border:1px solid #ff888822;border-radius:10px;color:var(--danger);font-size:11px}.inline-alert .mini-icon{flex-shrink:0}.chart-grid-line{stroke:var(--line);stroke-width:1}.stream-state{display:inline-flex;align-items:center;gap:5px;font-size:10px}.stream-ok{color:var(--text-2)}.stream-bad{color:var(--danger)}.stream-unknown{color:var(--text-3)}.library-tag,.muted-tag{display:inline-flex;padding:3px 7px;font-size:9px;border:1px solid var(--line);border-radius:6px;color:var(--text-3);background:var(--surface-2)}.library-tag{color:var(--tag,var(--text-2));border-color:color-mix(in srgb,var(--tag,var(--text-2)) 30%,transparent);background:color-mix(in srgb,var(--tag,var(--text-2)) 6%,var(--surface))}
/* Creator cards, preserving semantic state and delegated actions. */
button{color:inherit;font-family:inherit}.creator-link{display:inline;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer}.creator-link:hover{color:var(--primary)}.library-cover,.archive-thumb{border:1px solid var(--line);padding:0;color:var(--text-3);display:grid;place-items:center;background:var(--inset);cursor:pointer}.library-cover>span{font-size:28px;letter-spacing:-.05em;color:#92b7e4}.favorite-btn,.favorite-toggle,.mini-action,.icon-btn,.profile-focus{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--surface-2);color:var(--text-2);font-size:11px;cursor:pointer}.favorite-btn{width:38px;min-height:38px;padding:8px}.favorite-btn.active,.favorite-toggle.active,.profile-focus.active{color:var(--primary);background:#63b8ff14}.library-grid.list .library-card{grid-template-columns:76px minmax(150px,1fr) minmax(140px,.75fr) auto;grid-template-areas:"cover identity state actions" "cover identity stats actions" "cover recency stats actions";column-gap:18px;row-gap:5px;padding:14px;overflow:visible}.library-grid.list .library-cover{grid-area:cover;width:76px;height:82px;aspect-ratio:auto}.library-grid.list .library-identity{grid-area:identity;gap:5px}.library-identity p{font-size:11px;color:var(--text-3)}.library-grid.list .source-status{grid-area:state;justify-self:start}.library-grid.list .library-stats{grid-area:stats;gap:8px;font-size:10px;align-self:center;line-height:1.5}.library-grid.list .library-recency{grid-area:recency;font:9px var(--mono);color:var(--text-4)}.library-grid.list .library-actions{grid-area:actions;align-self:center}.library-grid:not(.list) .library-card{grid-template-columns:minmax(0,1fr);overflow:visible}.library-grid:not(.list) .library-cover{height:auto;aspect-ratio:16/10}.library-recency{font:10px var(--mono);color:var(--text-4)}.library-grid:not(.list) .source-status{justify-self:start}.library-actions{justify-content:flex-end}.library-stats strong{font-weight:500;color:var(--text-2)}.backdrop{backdrop-filter:none;background:#070b09c9}
/* Archive tools and saved filters: compact defaults, explicit expansion. */
.archive-toolbar-row{display:flex;align-items:center;gap:10px;padding:20px 0;border-bottom:1px solid var(--line)}.archive-search{flex:1;min-width:0}.archive-status{width:180px}.archive-bulk-actions{display:flex;gap:5px;margin-left:auto}.archive-hooks{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0;align-items:center}.archive-filter-toggle{min-height:38px;padding:8px 13px;font-size:11px}.archive-intel-controls{display:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;order:3;flex-basis:100%;padding:16px 0 6px;border-top:1px solid var(--line)}.archive-intel-controls.expanded{display:grid}.archive-intel-controls>label{display:grid;gap:7px;min-width:0;font-size:10px;color:var(--text-3)}.archive-intel-controls select{min-height:40px;font-size:11px;padding:8px}.saved-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}.saved-filter{display:inline-flex;border:1px solid var(--line-2);border-radius:10px;overflow:hidden}.saved-filter>button{border:0;background:var(--surface-2);color:var(--text-2);padding:10px 12px;font-size:11px;min-height:38px}.saved-filter.active>button{background:var(--primary);color:var(--on-primary)}.saved-filter-remove{border-left:1px solid var(--line)!important;padding-inline:10px!important}.archive-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid var(--line);color:var(--text-3);font-size:11px}.filter-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #b6dfff28;border-radius:10px;color:var(--info);font-size:12px}.filter-bar>span{margin-right:auto}.recording-grid{display:grid;min-width:0}.monitor-surface{overflow:visible}.provider-state,.route{font:10px var(--mono);color:var(--text-3)}.collection-create{display:flex;gap:10px;margin:14px 0}.collection-create .field{flex:1}.color-field{width:42px}.color-field input{padding:4px;width:42px;height:42px}.compact-check{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--text-3)}.node-link{color:var(--text-2)}
@keyframes surface-arrive{from{opacity:.35;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.modal:not(.hidden) .modal-card,dialog[open]{animation:surface-arrive .42s var(--ease) both}
@media(max-width:1180px){.archive-intel-controls{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.archive-toolbar-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;padding:14px 0}.archive-search{grid-column:1;min-width:0}.archive-status{grid-column:2;width:100%;min-width:0}.archive-status>.icon{display:none}.archive-status select{font-size:10px;padding-left:8px}.archive-bulk-actions{grid-column:1/-1;margin:0}.archive-intel-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-hooks{gap:8px}.saved-filters .button{padding:8px 12px;font-size:10px;min-height:38px}.archive-footer{font-size:10px}.collection-create{flex-wrap:wrap}}

/* Analytical workspace: data first, generous chart canvases. */
.monitor-summary>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.monitor-summary>div>span:last-child{color:var(--text-3);font-size:11px}
.archive-table-head>span:first-child{grid-column:span 2}.archive-table-head{font-size:9px}
.stats-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:22px}.stats-metric{padding:22px;display:grid;gap:12px}.stats-metric>span{font-size:11px;color:var(--text-3)}.stats-metric>strong{font-size:34px;font-weight:550;letter-spacing:-.04em;line-height:1.15}.stats-metric>small{font:10px var(--mono);color:var(--text-3)}.stats-metric:first-child{background:linear-gradient(135deg,#194983a0,#203369b0);color:var(--text);border-color:#7fbaff50}.stats-metric:first-child>span,.stats-metric:first-child>small{color:#b6d4f2}.stats-chart-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;margin:22px 0}.stats-chart-card{min-width:0;overflow:hidden}.stats-chart-card.wide-chart{grid-column:1/-1}.chart-host{padding:0 22px 22px}.chart-host .activity-chart{display:block;width:100%;height:270px}.chart-axis{stroke:var(--line-2)}.chart-bar.online{fill:#6d82c3}.chart-bar.recorded{fill:var(--primary)}.chart-label,.chart-y-label{fill:var(--text-3);font:10px var(--mono)}.chart-legend{display:flex;gap:14px;align-items:center;font:10px var(--mono);color:var(--text-3)}.chart-legend>span{display:flex;gap:6px;align-items:center}.chart-legend>span:before{content:"";width:7px;height:7px;background:#6d82c3;border-radius:2px}.chart-legend>.recorded:before{background:var(--primary)}.stats-range{display:flex;gap:10px;align-items:center;color:var(--text-3);font-size:11px}.stats-range select{min-height:40px;padding:9px 30px 9px 12px}.stats-operations-grid{display:grid;grid-template-columns:1fr 2fr;gap:18px}.stats-insights{padding:0 24px 24px}.stats-insights>article{display:grid;gap:7px;padding:16px 0;border-bottom:1px solid var(--line)}.stats-insights>article>span,.stats-insights>article>small{font-size:11px;color:var(--text-3)}.stats-insights>article>strong{font-size:23px;font-weight:500;letter-spacing:-.04em}.stats-leaderboard{padding:0 20px 16px}.leader-row.rich{display:grid;grid-template-columns:22px minmax(100px,1fr) repeat(3,auto);gap:16px;padding:16px 0}.leader-row strong{display:block;font-size:13px}.leader-row small{display:block;margin-top:5px;font-size:9px;color:var(--text-3)}.leader-rank{font:10px var(--mono);color:var(--text-4)}.leader-name{position:relative;padding-bottom:11px}.leader-progress{position:absolute;bottom:0;left:0;height:2px;background:var(--primary);max-width:100%}.data-flow-chart{padding:0 22px 22px;max-height:300px;overflow:auto}.data-flow-row{display:grid;grid-template-columns:45px minmax(30px,1fr) 70px;gap:10px;align-items:center;padding:9px 0;font:10px var(--mono)}.data-flow-row small{grid-column:2/-1;color:var(--text-3);font-size:9px}.data-flow-track{height:4px;background:var(--line);border-radius:4px;overflow:hidden}.data-flow-track>i{height:100%;display:block;background:var(--primary);border-radius:4px}.data-flow-row>strong{text-align:right;font-weight:400}.view-section{animation:none}
@media(max-width:1180px){.rec-card,.archive-table-head{grid-template-columns:60px minmax(160px,1fr) minmax(115px,.8fr) 80px 75px 80px;gap:10px}.archive-thumb{width:60px}.stats-metric{padding:18px}.stats-metric>strong{font-size:28px}.stats-operations-grid{grid-template-columns:1fr}.stats-insights{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stats-chart-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.stats-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-chart-grid{grid-template-columns:1fr}.stats-chart-card.wide-chart{grid-column:auto}.stats-insights{grid-template-columns:repeat(2,minmax(0,1fr))}.leader-row.rich{grid-template-columns:20px minmax(100px,1fr) auto}.leader-row.rich>div:nth-last-child(-n+2){display:none}.stats-leader-head{align-items:center}}
@media(max-width:560px){.stats-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-metric{padding:18px;min-height:118px}.stats-metric>strong{font-size:30px}.stats-summary-grid>.stats-metric:last-child{grid-column:1/-1;display:flex;gap:16px;align-items:center;min-height:74px}.stats-metric:last-child>small{margin-left:auto}.chart-host{padding:0 14px 14px}.chart-host .activity-chart{height:230px}.stats-range{font-size:10px}.data-flow-chart{padding:0 16px 18px}.stats-insights{padding:0 20px 20px}.leader-row.rich{gap:10px}.leader-name{font-size:12px}.leader-row strong{font-size:12px}.stats-leaderboard{padding:0 16px 16px}}
@media(max-width:1400px){.status-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.status-metric{min-height:120px;padding:15px 12px}.archive-table-head,.rec-card{grid-template-columns:minmax(200px,1.1fr) minmax(140px,.9fr) 94px 94px 98px;gap:12px}.signal-art{right:245px;width:170px}.content-shell{padding-left:30px;padding-right:30px}.app-bar{padding:0 30px}.library-layout{grid-template-columns:165px minmax(0,1fr)}.profile-workspace{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1180px){:root{--rail:220px}.status-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.navigation-rail{padding:26px 12px 20px}.product-mark{padding-left:3px;gap:9px}.product-wordmark{font-size:18px}#versionLabel{left:67px;top:78px}.command-trigger{min-width:140px}.storage-route small{display:none}.signal-art{display:none}.archive-health{display:none}.archive-table-head{grid-template-columns:minmax(200px,1fr) 94px 94px 98px}.archive-table-head>span:nth-child(2){display:none}.rec-card{grid-template-columns:minmax(200px,1fr) 94px 94px 98px}.stats-layout,.statistics-layout{grid-template-columns:1fr}.library-layout{grid-template-columns:1fr}.library-sidebar{position:static;display:flex;gap:5px;flex-wrap:wrap;padding:10px}.filter-nav-title{display:none}.smart-link{width:auto;gap:12px;min-height:36px;padding:8px 12px}.cr-live-grid{grid-template-columns:1fr}.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card{grid-template-columns:minmax(170px,.55fr) minmax(0,1fr)}.cr-live-grid:has(> .cr-live-card:only-child) .cr-live-name{font-size:23px}.profile-workspace{grid-template-columns:1fr}.profile-side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:820px){:root{--rail:0px;--bar:72px}.navigation-rail{backdrop-filter:blur(18px);position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;height:70px;padding:6px 8px;display:block;border:1px solid #ffffff24;border-radius:22px;background:#102344ee;box-shadow:0 8px 30px #0006;z-index:50}.product-mark,.rail-spacer,.rail-caption,.rail-actions{display:none}.main-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;height:100%}.nav-link{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:4px;border-radius:15px;padding:8px 4px;font-size:10px}.nav-link .icon{width:20px;height:20px}.nav-link.active{background:#63b8ff1a;color:var(--primary)}.nav-index{display:none}.app-bar{position:relative;height:var(--bar);margin:12px 16px 0;padding:0 16px;gap:12px;border-radius:18px}.mobile-product{display:flex;gap:9px;align-items:center;letter-spacing:-.025em}.mobile-product>.icon{color:var(--primary);width:23px}.mobile-settings{display:inline-flex}.app-bar-context{margin-left:auto}.app-bar-context>strong,.storage-route{display:none}.app-bar-actions{gap:3px}.command-trigger{min-width:0;width:40px;min-height:40px;padding:9px;border:0}.command-trigger span,.command-trigger kbd{display:none}.notify-button{display:none}.app-bar-actions .icon-button{width:38px;min-height:38px;padding:8px}.connection-state{font-size:10px}.content-shell{margin:0;padding:26px 22px 112px}.page-header{margin:0 0 26px}.page-header h1{font-size:34px}.dashboard-head{min-height:106px;align-items:center}.dashboard-head p{max-width:250px;font-size:12px}.dashboard-head .page-actions{position:static}.dashboard-head .page-actions .button{min-height:36px;font-size:11px;padding:9px 12px}.dashboard-head .page-actions .button .icon{width:15px}.dashboard-head .page-actions>.icon-button{display:none}.status-metrics{gap:10px}.status-metric{padding:15px 14px;min-height:119px}.status-metric>strong{font-size:30px}.operation-strip{gap:10px}.operation-control{padding-right:12px;gap:8px}.operation-state>span{display:none}.operation-run{font-size:11px;margin-left:0}.surface-header,.section-head{padding:20px}.dashboard-filters{grid-template-columns:minmax(110px,170px) 115px}.cr-live-grid,.cr-compact-list,.cr-ended-list{padding:0 18px}.cr-live-card,.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card{grid-template-columns:minmax(130px,.65fr) minmax(0,1fr);max-width:none}.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card>.cr-preview{min-height:180px;aspect-ratio:auto}.cr-live-grid:has(> .cr-live-card:only-child) .cr-live-body{padding:22px}.cr-pulse{margin:18px}.cr-pulse-scale,.cr-pulse-row{grid-template-columns:96px minmax(0,1fr)}.library-grid.list .library-card{grid-template-columns:70px minmax(0,1fr) auto;gap:12px}.library-grid.list .library-cover{width:70px}.library-actions{flex-wrap:wrap;max-width:90px}.library-actions .icon-button{width:36px;min-height:36px}.archive-surface{padding:0 18px}.archive-table-head{display:none}.rec-card{grid-template-columns:minmax(0,1fr) 100px;gap:12px}.archive-number{grid-column:1;display:flex;gap:8px;align-items:center;margin-left:90px}.archive-upload{grid-column:2;grid-row:2}.rec-actions{grid-column:2;grid-row:1}.archive-group>summary>span{flex-direction:column;gap:3px;align-items:flex-start}.statistics-summary,.stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-kpi{padding:18px}.stats-kpi strong{font-size:29px}.forecast-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.taxonomy-columns{grid-template-columns:1fr}.modal{padding:12px}.profile-hero{grid-template-columns:1fr}.profile-side-column{grid-template-columns:1fr}.profile-save{flex-wrap:wrap}.login-shell{padding:32px;grid-template-columns:1fr;max-width:550px;gap:35px}.login-intro h2{font-size:54px;margin:18px 0}.login-intro>small{display:none}.login-orbit{width:150px;height:150px;right:0;bottom:-8px;opacity:.25}.login-panel{padding:30px}.login-intro p{max-width:240px;font-size:12px}.live-pause-alert{bottom:100px}.toasts{bottom:100px}
}
@media(max-width:560px){.app-bar{padding:0 18px}.content-shell{padding:22px 16px 112px}.page-header{align-items:flex-start;flex-direction:column;gap:18px}.page-header .suite-label{font-size:10px;margin-bottom:8px}.page-header h1{font-size:32px}.page-header p{font-size:12px;max-width:300px;line-height:1.6;margin-top:9px}.dashboard-head{display:block;padding-top:6px;min-height:145px}.dashboard-head .page-actions{position:static;margin-top:20px}.status-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.status-metric{padding:14px;min-height:116px}.status-metric>strong{font-size:34px}.status-metric>small{font-size:10px}.metric-label{font-size:10px}.metric-label .icon{width:12px}.operation-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:16px}.operation-control{border:0;padding:0;justify-content:space-between}.operation-run{grid-column:1/-1;margin-top:4px;width:100%;justify-content:center;background:var(--surface)}.operation-state{font-size:10px;gap:5px}.surface-header,.section-head{flex-wrap:wrap;align-items:flex-start;padding:20px 18px;gap:14px}.dashboard-filters{display:grid;grid-template-columns:minmax(0,1fr) 112px;width:100%}.dashboard-filters input,.dashboard-filters select{font-size:12px;min-height:40px}.monitor-summary{padding:0 18px 18px;gap:12px;font-size:10px}.monitor-section{padding:20px 0}.monitor-section-head,.cr-section-head{padding:0 18px 14px}.cr-live-grid{grid-template-columns:1fr}.cr-live-card,.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card{grid-template-columns:1fr}.cr-preview,.cr-live-grid:has(> .cr-live-card:only-child)>.cr-live-card>.cr-preview{min-height:0;aspect-ratio:16/9;border-radius:17px 17px 0 0}.cr-compact-row,.cr-ended-card{padding:13px;gap:10px}.cr-compact-actions{gap:0}.cr-compact-actions .icon-button{width:33px;min-height:38px;padding:8px}.cr-compact-avatar{width:44px;height:44px}.cr-compact-name{font-size:12px}.cr-compact-meta{font-size:10px}.cr-pulse-scale,.cr-pulse-row{grid-template-columns:96px minmax(0,1fr)}.library-sidebar{padding:8px}.smart-link{font-size:10px;gap:8px;padding:7px 10px}.library-layout{gap:14px}.library-tools{padding:12px;gap:7px}.library-tools .search-control{min-width:100%;flex-basis:100%}.library-tools .select-control{width:calc(50% - 4px)}.library-grid.list .library-card{grid-template-columns:64px minmax(0,1fr);gap:12px}.library-grid.list .library-cover{width:64px;grid-row:1/3;aspect-ratio:1}.library-grid.list .library-actions{grid-column:2;max-width:none;justify-content:flex-start}.library-identity h3{font-size:15px}.library-result-head{font-size:10px;gap:6px}.select-all{font-size:9px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-card{padding:10px;gap:10px;border-radius:16px}.library-grid:not(.list) .library-actions{max-width:none;gap:0}.library-grid:not(.list) .library-identity h3{font-size:13px}.archive-filters,.archive-tools,.archive-controls{padding:13px;gap:7px}.archive-controls label{min-width:calc(50% - 7px)}.archive-surface{padding:0 12px}.rec-card{grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"thumb identity identity" "thumb upload actions";gap:8px;padding:15px 0}.rec-info{display:contents}.archive-thumb{grid-area:thumb;width:60px;aspect-ratio:1}.archive-identity{grid-area:identity}.archive-identity>*{text-overflow:ellipsis}.archive-number{display:none}.archive-upload{grid-area:upload;display:flex;gap:5px;flex-wrap:wrap}.archive-upload small{font-size:9px}.rec-actions{grid-area:actions}.archive-identity strong{font-size:12px}.archive-identity small{font-size:10px}.rec-actions .icon-button{width:32px;min-height:40px;padding:6px}.upload-status{font-size:9px;padding:3px 6px}.archive-group>summary strong{font-size:12px}.archive-group>summary small{font-size:9px}.forecast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-calendar-cell{padding:10px 5px;font-size:10px}.stats-large-chart{padding:16px}.stats-large-chart .activity-chart{height:230px}.stats-kpi span{font-size:10px}.progress-row{padding:18px;flex-wrap:wrap}.upload-progress{width:100%}.form-grid{grid-template-columns:1fr}.field.span2{grid-column:auto}.settings-section{padding:20px}.modal{padding:0;align-items:end}.modal-card{border-radius:24px 24px 0 0;max-height:94svh}.modal-head{padding:20px}.profile-modal-card{width:100%;max-height:94svh}.profile-hero{padding:20px}.profile-workspace{padding:16px;grid-template-columns:1fr}.command-dialog{width:calc(100vw - 24px);margin-top:12svh}.login-shell{padding:24px}.login-intro h2{font-size:48px}.login-panel{padding:24px}.login-orbit{right:-12px;width:140px;height:140px}.connection-state{max-width:100px}.connection-state span{white-space:nowrap}.cr-preview-popover{max-width:calc(100vw - 32px)}
}
@media(max-width:380px){.content-shell{padding-left:12px;padding-right:12px}.metric-label{font-size:9px}.status-metric>strong{font-size:30px}.status-metric{padding:16px 12px}.library-grid:not(.list){grid-template-columns:1fr}.app-bar{padding:0 12px}.mobile-product{font-size:13px}}
@media(max-width:820px){.library-grid.list .library-card{grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"cover identity state" "cover recency state" "cover stats actions";gap:8px}.library-grid.list .library-cover{width:64px;height:84px}.library-grid.list .library-actions{gap:3px}.library-grid.list .library-identity h3{font-size:14px}.library-grid.list .source-status{font-size:9px;justify-self:end}.library-grid.list .library-stats{font-size:9px}.library-grid.list .library-recency{font-size:9px}}
@media(max-width:560px){.library-grid.list .library-card{grid-template-columns:58px minmax(0,1fr);grid-template-areas:"cover identity" "cover state" "stats stats" "recency actions";column-gap:12px;row-gap:8px}.library-grid.list .library-cover{width:58px;height:68px}.library-grid.list .source-status{justify-self:start}.library-grid.list .library-stats{font-size:10px;align-self:center}.library-grid.list .library-recency{align-self:center}.library-grid.list .library-actions{justify-content:flex-end}.library-actions .favorite-btn,.library-actions .icon-button,.rec-actions .icon-button,.rec-actions .row-more>summary{min-height:44px;min-width:44px}.library-grid:not(.list) .library-actions .icon-button,.library-grid:not(.list) .favorite-btn{padding:8px;min-width:38px}.library-grid:not(.list) .library-cover>span{font-size:32px}.archive-upload{font-size:9px}}
/* Final data-cell reflow: six archive fields stay in named areas. */
@media(min-width:1181px){.archive-table-head,.rec-card{grid-template-columns:76px minmax(180px,1.4fr) minmax(140px,.9fr) 88px 96px 85px;gap:16px}.archive-health{display:grid}.archive-table-head{display:grid}}
@media(max-width:1180px){.archive-table-head{display:none}.rec-card{grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"thumb identity actions" "thumb health upload" "thumb number number";gap:8px 14px}.archive-thumb{grid-area:thumb;width:60px}.archive-identity{grid-area:identity}.archive-health{grid-area:health;display:flex;gap:8px;flex-wrap:wrap}.archive-number{grid-area:number;display:flex;gap:10px;margin:0}.archive-upload{grid-area:upload;display:flex;gap:6px;align-items:center}.rec-actions{grid-area:actions}.cr-live-grid:has(> .cr-live-card:only-child) .cr-preview{border-radius:17px 0 0 17px}.cr-ended-state{flex-wrap:wrap;justify-content:flex-end;gap:8px}.cr-ended-main{gap:14px}}
@media(max-width:560px){.rec-card{grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"thumb identity identity" "thumb upload actions"}.archive-health,.archive-number{display:none}.cr-live-body{padding:16px;gap:14px}.cr-live-head{gap:8px}.cr-live-name{font-size:17px}.cr-live-state{font-size:8px}.cr-card-actions .icon-button{min-width:44px;min-height:44px}.monitor-section>header{padding:0 18px 14px}.cr-preview-placeholder>span{font-size:62px}.cr-ended-main{display:grid;gap:10px}.cr-ended-state{justify-content:flex-start}.forecast-list{padding:0 18px 18px}.forecast-row{grid-template-columns:minmax(0,1fr) 50px;gap:9px}.forecast-row .forecast-meter{grid-column:1}.forecast-row>.forecast-confidence{grid-column:1}.forecast-row>strong{grid-row:1;grid-column:2;text-align:right}.cr-offline{padding:0 18px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
@media(prefers-reduced-transparency:reduce){.navigation-rail,.app-bar,.row-menu,.modal-card,.profile-save{background:var(--surface);backdrop-filter:none}.navigation-rail{background:var(--bg)}}

/* Operational attention survives the visual redesign. */
.rec-card.lv-attention { background: color-mix(in srgb, var(--warning) 8%, var(--surface)); box-shadow: inset 3px 0 0 var(--warning); }
.rec-card.lv-audio-missing { box-shadow: inset 3px 0 0 var(--danger); }
.rec-card.lv-attention-focus { outline: 2px solid var(--warning); outline-offset: -2px; }
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .cr-pulse-media-preview.tap-mode {
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
    bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; max-width: none;
    max-height: min(72vh, 620px); padding: 12px; display: grid; gap: 8px; overflow: auto;
  }
  .cr-pulse-media-preview.tap-mode img, .cr-pulse-media-preview.tap-mode .cr-pulse-media-preview-empty {
    width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r);
  }
  .cr-pulse-media-preview.tap-mode img { object-fit: cover; background: var(--bg); }
  .cr-pulse-media-preview-actions .button { min-height: 40px; }
}

/* Profile evidence reflows independently of the main dashboard grid. */
@media (max-width: 820px) {
  .profile-workspace { grid-template-columns: minmax(0, 1fr); }
  .profile-summary { min-width: 0; }
  .profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-statistics .stats-summary-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-dna .dna-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .dna-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dna-week, .dna-hours { min-width: 0; }
}
@media (max-width: 560px) {
  .profile-overview { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .profile-cover { width: 64px; height: 64px; }
  .profile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profile-summary > .favorite-toggle { width: 100%; font-size: 10px; padding: 8px; }
  .profile-metrics > span { padding: 10px 8px; font-size: 10px; overflow-wrap: anywhere; }
  .profile-metrics > span strong { font-size: 15px; }
  .profile-section { padding: 16px; }
  .profile-section-head { flex-wrap: wrap; }
  .profile-statistics .stats-summary-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-statistics .stats-metric { min-height: 110px; }
  .profile-statistics .stats-summary-grid.compact > .stats-metric:last-child { grid-column: 1 / -1; }
  .live-dna .dna-layout { grid-template-columns: minmax(0, 1fr); }
  .dna-metrics span { padding: 10px 8px; font-size: 10px; }
  .dna-hours { gap: 4px; }
}
@media (max-width: 380px) {
  .profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .weekday-row { grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 8px; }
  .weekday-row > small { grid-column: 2 / -1; font-size: 10px; }
  .profile-intel-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .profile-intel-card { padding: 12px; }
  .calendar-cell { padding: 5px 3px; min-width: 0; }
  .calendar-cell span { font-size: 8px; overflow: hidden; text-overflow: ellipsis; }
}
