/* Record: a focused capture screen and a separate history, using the existing SABSUS glass material. */
:root{--record-safe-bottom:env(safe-area-inset-bottom,0px);--record-dock-height:72px;--record-quiet:#526575;--record-rule:rgba(53,77,105,.1);--st-bg:#f0f3f5;--st-text:#1b2c3e;--st-muted:#526575;--control-ink:#1b2c3e;--record-field:linear-gradient(130deg,rgba(255,255,255,.45),rgba(231,239,247,.24));--st-scene:linear-gradient(90deg,rgba(245,248,252,.2),rgba(245,248,252,.06)),rgba(247,250,253,.08)}
:root[data-storage-theme=dark]{--record-quiet:#b4c2d1;--record-rule:rgba(222,235,250,.12);--st-bg:#101820;--st-text:#f6f9ff;--st-muted:#c0ceda;--control-ink:#f6f9ff;--record-field:linear-gradient(135deg,rgba(118,149,180,.16),rgba(32,46,63,.22));--st-scene:linear-gradient(0deg,rgba(5,15,28,.6),rgba(7,19,34,.2) 75%),rgba(6,16,30,.22)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.storage-screen .storage-scene>#scene-photo{object-position:70% center;transition:opacity .22s ease}
@media(max-width:800px){
 :root[data-storage-theme=light] .storage-screen .storage-scene>#scene-photo{object-position:84% center}
 :root[data-storage-theme=light] .record-app .record-capture.record-page{--glass-blur:0px;--storage-glass-tint:.12;--st-glass-surface:linear-gradient(145deg,rgba(255,255,255,.3),rgba(239,245,250,.2) 55%,rgba(216,228,239,.18))}
}
:root[data-storage-theme=dark] #scene-photo:not([data-scene-theme=dark]){opacity:0}
.storage-scene>.scene-shade{--storage-scene-shade-rgb:247,250,253;--storage-scene-left-opacity:.2;--storage-scene-bottom-opacity:.08;--storage-scene-top-opacity:.06}
:root[data-storage-theme=dark] .storage-scene>.scene-shade{--storage-scene-shade-rgb:6,16,30;--storage-scene-left-opacity:.22;--storage-scene-bottom-opacity:.6;--storage-scene-top-opacity:.2}
.shell{width:min(1380px,100%);padding:20px 28px calc(108px + var(--record-safe-bottom))}
.topbar{min-height:52px}
.main{margin:24px auto 0;width:min(680px,100%)}
.storage-brand-capsule,.storage-header-tools{border-radius:20px}
.storage-screen .brand{font-size:16px;min-height:40px}
.brand .brand-icon{width:30px;height:30px}
.storage-screen .icon-btn{width:40px;height:40px;border-radius:15px}
.login-card{margin:clamp(24px,7dvh,72px) auto 0;width:min(420px,100%)}
.record-app{display:block}
.record-app .record-shell{display:block;min-width:0}
.record-app .record-page,.record-app .history-page{padding:28px 32px;border-radius:32px;--glass-blur:24px;--storage-glass-tint:.28}
:root[data-storage-theme=dark] .record-app .record-page,:root[data-storage-theme=dark] .record-app .history-page{--storage-glass-tint:.24}
.record-capture.record-page{min-height:min(646px,calc(100dvh - 190px));display:flex;flex-direction:column}
.record-page .live-controls{display:flex;flex:1;flex-direction:column;gap:0}
.capture-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.scope-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;max-width:100%;border-radius:18px;background:var(--record-field);box-shadow:inset 0 1px 1px rgba(255,255,255,.13);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.storage-screen .scope-option{border:0;border-radius:14px;min-height:38px;padding:9px 14px;background:transparent;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--st-muted);font-size:13px;font-weight:570;cursor:pointer;white-space:nowrap;transition:background .18s,color .18s}
.scope-option svg{width:17px;height:17px}
.storage-screen .scope-option.is-active{background:rgba(255,255,255,.56);color:#255cc8;box-shadow:0 2px 9px rgba(28,57,99,.07)}
:root[data-storage-theme=dark] .storage-screen .scope-option.is-active{background:rgba(125,170,245,.18);color:#b9d4ff}
.storage-screen .btn.context-trigger{min-height:38px;padding:8px 10px;font-size:13px;font-weight:500;border-radius:14px;max-width:46%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;gap:6px;background:transparent;box-shadow:none;color:var(--st-muted)}
.context-trigger svg{width:17px;height:17px}
.record-stage{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0 26px;min-height:225px}
.record-eyebrow{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--st-muted);font-size:12px;font-weight:600;letter-spacing:.065em;text-transform:uppercase;margin:0 0 14px;min-height:18px}
.record-app[data-recording=recording] .record-eyebrow::before,.record-mini::before{content:"";display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#f15d6f;box-shadow:0 0 0 4px rgba(241,93,111,.1)}
.record-stage .record-title{font-size:clamp(25px,3vw,34px);line-height:1.14;font-weight:580;letter-spacing:-.045em;margin:0 0 14px;max-width:100%;overflow-wrap:anywhere}
.record-stage .record-timer{font-size:clamp(54px,7.6vw,82px);font-weight:350;line-height:1.1;letter-spacing:-.065em;font-variant-numeric:tabular-nums;margin:0;color:var(--st-text)}
.record-app[data-recording=idle] .record-timer{color:color-mix(in srgb,var(--st-text) 76%,transparent)}
.record-waveform{height:56px;width:min(280px,80%);margin:20px 0 12px;display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}
.wave-bar{display:block;width:4px;max-width:4px;border-radius:9px;flex:1 0 3px;height:calc(4px + var(--bar-level,0) * 48px);background:linear-gradient(180deg,#89b8ff,#396ed8);opacity:.8;transition:height .16s ease-out,opacity .2s ease}
.record-app[data-recording=idle] .wave-bar{opacity:.35;background:var(--st-muted)}
.record-app[data-recording=paused] .wave-bar{opacity:.46}
.record-status{max-width:100%;min-height:20px;display:block;color:var(--st-muted);font-size:12px;line-height:1.5;letter-spacing:0;margin:0;white-space:normal;text-wrap:balance}
.capture-bottom{padding:0 0 8px;text-align:center}
.capture-actions{display:grid;grid-template-columns:80px 132px 80px;gap:22px;justify-content:center;align-items:center}
.record-primary-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;grid-column:2;grid-row:1}
.storage-screen .btn.record-primary{width:112px;height:112px;min-height:112px;padding:0;border-radius:50%;position:relative;display:grid;place-items:center;color:white;background:radial-gradient(ellipse at 32% 20%,rgba(188,216,255,.5),transparent 58%),linear-gradient(145deg,#5c99f7,#2867e3 62%,#164abb);box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -3px 5px rgba(12,43,114,.26),0 15px 35px rgba(35,94,209,.28),0 0 0 9px rgba(83,138,231,.075);transition:transform .18s ease,box-shadow .18s ease}
.storage-screen .btn.record-primary::after{inset:0;padding:1px;animation-duration:12s}
.storage-screen .record-primary svg{width:40px;height:40px;stroke-width:1.65}
.storage-screen .record-primary:hover{transform:translateY(-2px);box-shadow:inset 0 2px 3px rgba(255,255,255,.38),0 18px 40px rgba(35,94,209,.34),0 0 0 10px rgba(83,138,231,.09)}
.storage-screen .record-primary:active{transform:scale(.96)}
.storage-screen .record-primary.is-paused{background:linear-gradient(145deg,#578ce5,#285ecb)}
.record-primary-label{font-size:13px;line-height:18px;font-weight:590;color:var(--st-text);letter-spacing:-.01em}
.storage-screen .btn.record-secondary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:66px;padding:9px 5px;width:80px;max-width:100%;background:transparent;box-shadow:none;font-size:11px;font-weight:520;color:var(--st-muted);border-radius:20px;grid-row:1;align-self:center;margin-bottom:25px}
.record-marker{grid-column:1}.record-finish{grid-column:3}
.storage-screen .record-secondary svg{width:23px;height:23px}
.storage-screen .record-secondary::after{display:none}
.storage-screen .btn.record-finish{color:#b3364b}
:root[data-storage-theme=dark] .storage-screen .btn.record-finish{color:#ff9cad}
.record-hint{font-size:12px;line-height:1.45;color:var(--st-muted);margin:17px auto 0;max-width:350px;min-height:17px}
.record-page .error:not(:empty){font-size:13px;margin:10px 0 0;text-align:center}
.record-dock{position:fixed;z-index:20;bottom:calc(18px + var(--record-safe-bottom));left:50%;transform:translateX(-50%);width:min(350px,calc(100% - 36px));display:grid;gap:8px}
.record-tabs.panel{display:flex;align-items:center;gap:6px;padding:6px!important;border-radius:25px;--glass-blur:22px;--storage-glass-tint:.5}
:root[data-storage-theme=dark] .record-tabs.panel{--storage-glass-tint:.36}
.storage-screen .record-tab{display:flex;flex:1;align-items:center;justify-content:center;gap:9px;position:relative;min-width:0;height:52px;min-height:52px;padding:10px 15px;border:0;border-radius:19px;background:transparent;box-shadow:none;color:var(--st-muted);font-size:14px;font-weight:570;cursor:pointer;transition:background .2s,color .2s}
.storage-screen .record-tab svg{width:21px;height:21px}
.storage-screen .record-tab.is-active{color:#245fca;background:rgba(70,126,224,.12)}
:root[data-storage-theme=dark] .storage-screen .record-tab.is-active{color:#c0d9ff;background:rgba(94,154,250,.18)}
.record-tab::after{display:none!important}
.storage-screen .record-mini{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;padding:11px 14px;border:0;border-radius:18px;min-height:44px;background:var(--st-glass-popover);font-size:13px;color:var(--st-text);box-shadow:var(--st-glass-edge);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);cursor:pointer}
.record-mini svg{width:17px;height:17px}
.record-mini-time{font-variant-numeric:tabular-nums}
.record-history.history-page{padding:28px 28px 24px;min-height:340px}
.history-heading{display:flex;align-items:center;gap:12px;margin:0 0 23px}
.history-heading h2{font-size:30px;letter-spacing:-.045em;margin:0;font-weight:610}
h2.history-heading{font-size:30px;letter-spacing:-.045em;font-weight:610}
.history-heading .section-icon{display:none}
.record-history .history-body{gap:14px}
.record-history .history-body .history-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.history-filters .field-glass{min-width:0}
.history-filters .gc-trigger{max-width:180px;font-size:13px;min-height:44px}
.history-filters input{font-size:14px}
.history-list{display:grid;gap:0}
.history-day{font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:650;color:var(--st-muted);margin:19px 4px 9px}
.history-day:first-child{margin-top:6px}
.storage-screen .btn.history-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:74px;border-radius:0;padding:14px 4px;margin:0;width:100%;text-align:left;background:transparent;box-shadow:inset 0 -1px 0 var(--record-rule);backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible}
.history-row::after{display:none!important}
.storage-screen .history-row:hover{transform:none;background:rgba(87,136,211,.06);box-shadow:inset 0 -1px 0 var(--record-rule);border-radius:14px}
.history-row-icon{width:38px;height:38px;border-radius:13px;background:var(--record-field);display:grid;place-items:center;color:var(--st-muted)}
.history-row-icon svg{width:19px;height:19px}
.history-row-content{display:grid;gap:6px;min-width:0}
.history-row-title{font-size:15px;line-height:1.25;font-weight:580;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--st-text)}
.history-row-meta{font-size:12px;line-height:1.4;color:var(--st-muted);font-weight:400;white-space:normal}
.history-row-status{font-size:10px;font-weight:550;line-height:1.35;color:var(--st-muted);border-radius:8px;padding:5px 7px;max-width:115px;text-align:right;background:rgba(108,142,176,.06)}
.history-row-status[data-status=failed]{color:#9b4a38;background:rgba(192,113,60,.07)}
:root[data-storage-theme=dark] .history-row-status[data-status=failed]{color:#edbca5;background:rgba(218,152,97,.08)}
.history-row-status[data-status=ready]{color:#33735f;background:rgba(51,134,101,.06)}
:root[data-storage-theme=dark] .history-row-status[data-status=ready]{color:#aad8c6}
.history-row-status:is([data-status=processing],[data-status=uploading],[data-status=queued]){color:#346cc0}
:root[data-storage-theme=dark] .history-row-status:is([data-status=processing],[data-status=uploading],[data-status=queued]){color:#a8ccff}
.history-ask{margin:10px 0 0;padding-top:5px}
.history-ask>summary{min-height:44px;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:540;color:var(--st-muted);list-style:none}
.history-ask>summary::-webkit-details-marker{display:none}
.history-ask>summary::after{content:"+";margin-left:auto;font-size:20px;font-weight:400}
.history-ask[open]>summary::after{content:"−"}
.history-ask-body{display:grid;gap:12px;padding:6px 0}
.history-body .empty-state{padding:40px 12px;text-align:center;font-size:14px;color:var(--st-muted)}
.record-context-dialog .modal-content{gap:18px}
.record-context-dialog .context-description{font-size:14px;line-height:1.5;color:var(--st-muted)}
.record-context-dialog .modal-content>p{font-size:14px;line-height:1.5;color:var(--st-muted)}
.memory-error:not(:empty){margin:0 0 12px!important;font-size:13px}
.history-loading{color:var(--st-muted);font-size:13px;padding:24px 4px}
.record-context-dialog .context-field select{width:100%}
.record-context-dialog .gc-trigger{width:100%;justify-content:space-between}
.record-context-dialog .context-result{font-size:12px;overflow-wrap:anywhere}
.record-context-dialog .modal-content>.actions{gap:8px}
.record-context-dialog .modal-content>.actions .btn{flex:1}
.record-context-dialog h2{font-size:25px}
.record-context-dialog .context-nfc{border-top:1px solid var(--record-rule);padding-top:15px}
.record-context-dialog .context-nfc p{color:var(--st-muted);font-size:13px}
.history-page .record-section-head{grid-template-columns:30px minmax(0,1fr);gap:10px}
.history-page .detail-icon{width:30px;height:30px;border-radius:10px}
.history-page .detail-icon svg{width:18px;height:18px}
.history-page .section-body{margin-left:40px}
.record-app[data-view=history][data-recording=recording],.record-app[data-view=history][data-recording=paused]{padding-bottom:48px}
.storage-screen .record-primary[aria-busy=true] svg{opacity:.5}
.record-app[data-capture-busy=true] .record-primary svg{opacity:.25}
.record-app[data-capture-busy=true] .record-primary::before{content:"";position:absolute;width:31px;height:31px;border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;animation:record-working .7s linear infinite;pointer-events:none}
@keyframes record-working{to{transform:rotate(360deg)}}
@media(min-width:1500px){.main{margin-top:32px}.record-capture.record-page{min-height:660px}}
@media(max-width:800px){.shell{max-width:100%;padding:14px 20px calc(106px + var(--record-safe-bottom))}.main{width:min(600px,100%);margin-top:20px}.record-capture.record-page{min-height:calc(100dvh - 182px)}.record-app .record-page{padding:24px}.record-dock{bottom:calc(14px + var(--record-safe-bottom))}.storage-screen .storage-scene>#scene-photo{object-position:62% center}.record-stage{padding:26px 0 22px}.record-capture .record-timer{font-size:72px}}
@media(max-width:480px){.shell{padding:12px 14px calc(100px + var(--record-safe-bottom))}.main{margin-top:16px}.topbar{min-height:48px;gap:5px}.storage-screen .brand{font-size:14px;gap:6px;padding-left:3px;padding-right:6px;min-height:38px}.brand .brand-icon{width:27px;height:27px}.storage-brand-capsule,.storage-header-tools{padding:4px;border-radius:18px}.storage-screen .topbar .storage-header-tools>.icon-btn{width:38px;min-width:38px;height:38px;min-height:38px}.record-header-identity{gap:5px}.storage-screen .language-tools .gc-trigger{min-width:45px;min-height:38px;padding:7px 4px;font-size:12px}.record-app .record-page{padding:19px 18px 14px;border-radius:28px}.record-capture.record-page{min-height:calc(100dvh - 174px - var(--record-safe-bottom))}.capture-top{gap:6px;min-height:40px}.scope-switch{gap:0;padding:3px;border-radius:15px}.storage-screen .scope-option{font-size:12px;padding:8px 10px;gap:5px;min-height:35px;border-radius:12px}.scope-option svg{width:15px;height:15px}.storage-screen .btn.context-trigger{font-size:0;max-width:42px;width:40px;height:40px;min-height:40px;padding:10px;background:var(--record-field)}.context-trigger svg{width:19px;height:19px}.record-stage{padding:24px 0 20px;min-height:215px}.record-stage .record-title{font-size:27px;margin-bottom:12px}.record-stage .record-timer{font-size:68px}.record-eyebrow{font-size:10px;margin-bottom:12px;letter-spacing:.08em}.record-waveform{height:48px;width:240px;margin:18px 0 12px;gap:4px}.wave-bar{height:calc(4px + var(--bar-level,0) * 40px)}.capture-actions{grid-template-columns:62px 122px 62px;gap:12px}.storage-screen .btn.record-primary{width:104px;height:104px;min-height:104px}.storage-screen .record-primary svg{width:37px;height:37px}.record-primary-wrap{gap:12px}.storage-screen .btn.record-secondary{width:62px;min-height:60px;padding:8px 0;font-size:10px}.record-hint{font-size:11px;margin-top:14px;max-width:260px}.record-status{font-size:11px;line-height:1.5}.record-dock{width:min(340px,calc(100% - 36px));bottom:calc(12px + var(--record-safe-bottom))}.record-tabs.panel{border-radius:23px;padding:5px!important}.storage-screen .record-tab{height:49px;min-height:49px;border-radius:18px;font-size:13px}.record-history.history-page{padding:22px 17px 20px;border-radius:28px}.history-heading{margin-bottom:20px}.history-heading h2{font-size:27px}.record-history .history-body .history-filters{grid-template-columns:minmax(0,1fr) auto}.history-filters .gc-trigger{max-width:120px;font-size:11px;padding-inline:10px;gap:5px}.history-filters input{font-size:13px;padding-inline:12px}.storage-screen .btn.history-row{grid-template-columns:32px minmax(0,1fr);column-gap:9px;row-gap:0;padding:14px 2px}.history-row-icon{width:32px;height:32px;border-radius:11px;grid-row:1 / span 2}.history-row-title{font-size:14px}.history-row-meta{font-size:11px}.history-row-status{grid-column:2;padding:0;background:transparent!important;text-align:left;max-width:100%;margin-top:5px;font-size:10px}.history-page .section-body{margin-left:0}.history-page .detail-title h3{font-size:24px}.record-context-dialog .modal-content{padding:24px}.login-card{margin-top:28px}}
@media(max-height:740px) and (max-width:800px){.record-capture.record-page{min-height:calc(100dvh - 168px - var(--record-safe-bottom))}.record-stage{min-height:175px;padding:20px 0 15px}.record-eyebrow{margin-bottom:8px}.record-stage .record-title{font-size:25px;margin-bottom:8px}.record-stage .record-timer{font-size:58px}.record-waveform{height:34px;margin:12px 0 8px}.wave-bar{height:calc(4px + var(--bar-level,0) * 30px)}.storage-screen .btn.record-primary{width:92px;height:92px;min-height:92px}.storage-screen .record-primary svg{width:34px;height:34px}.record-primary-wrap{gap:10px}.record-hint{margin-top:10px}.record-app .record-page{padding-top:16px;padding-bottom:10px}.capture-bottom{padding-bottom:0}}
@media(max-height:660px) and (max-width:800px){.main{margin-top:10px}.record-stage{min-height:156px;padding:15px 0 12px}.record-stage .record-title{font-size:23px;margin-bottom:6px}.record-stage .record-timer{font-size:52px}.record-waveform{margin:10px 0 5px;height:28px}.record-eyebrow{font-size:9px;margin-bottom:6px}.record-hint{font-size:10px;max-width:240px}.storage-screen .btn.record-primary{width:84px;height:84px;min-height:84px}.record-primary-label{font-size:12px}.record-status{font-size:10px}}
@media(max-width:360px){.shell{padding-inline:10px}.record-app .record-page{padding-inline:14px}.storage-screen .scope-option{padding-inline:8px}.record-header-identity{gap:3px}.storage-screen .brand{font-size:13px}.storage-screen .topbar .storage-header-tools>.icon-btn{width:35px;min-width:35px}.storage-screen .btn.record-secondary{font-size:9px}.capture-actions{gap:9px}}
@media(prefers-reduced-motion:reduce){.record-app *,.record-app *::before,.record-app *::after{animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){.scope-switch,.record-tabs.panel,.record-mini{background:var(--st-surface-strong)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@media(forced-colors:active){.storage-screen :is(.record-tab,.scope-option,.record-primary,.record-secondary,.record-mini){border:1px solid ButtonText!important;background:ButtonFace!important;color:ButtonText!important}.storage-screen :is(.record-tab.is-active,.scope-option.is-active){outline:2px solid Highlight}.wave-bar{background:CanvasText}.history-row-status{color:CanvasText!important}}

/* Compact capture geometry and generous touch areas. */
.main>#message:empty{display:none}
.record-capture.record-page{height:540px;min-height:0}
.record-page .record-stage{min-height:0;padding:20px 0 16px}
.capture-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;min-width:0}
.storage-screen .capture-tools .context-trigger{max-width:none}
.storage-screen .btn.help-trigger{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;min-height:40px;padding:9px;border-radius:14px;line-height:1;color:var(--st-muted);cursor:pointer}
.help-trigger svg{width:20px;height:20px}
.storage-screen .record-app .btn.record-primary.primary{background:radial-gradient(ellipse at 32% 20%,rgba(188,216,255,.5),transparent 58%),linear-gradient(145deg,#5c99f7,#2867e3 62%,#164abb);box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -3px 5px rgba(12,43,114,.26),0 12px 29px rgba(35,94,209,.27),0 0 0 8px rgba(83,138,231,.075);color:#fff}
.capture-actions{grid-template-columns:80px 120px 80px;gap:16px;align-items:center}
.storage-screen .record-app .btn.record-secondary:not(.primary):not(.danger):not(.stop){width:80px;min-height:82px;padding:13px 9px;border-radius:21px;gap:10px;line-height:1.35;font-size:11px;background:var(--record-field);box-shadow:var(--record-control-shadow);margin-bottom:27px}
.storage-screen .record-secondary svg{width:24px;height:24px}
.storage-screen .record-secondary>span{display:block;white-space:nowrap;line-height:1.35}
.record-hint{margin-top:14px}
.record-status{min-height:18px}
.record-page .record-waveform{margin-top:14px;margin-bottom:8px;height:42px}
.record-app[data-view=record] .memory-error:not(:empty){position:absolute;z-index:4;left:20px;right:20px;top:60px}
.record-shell{position:relative}
.record-app .record-history .btn.history-row:not(.primary):not(.danger):not(.stop){background:transparent;box-shadow:inset 0 -1px 0 var(--record-rule);backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0;padding:16px 10px;gap:12px;min-height:82px}
.record-app .record-history .btn.history-row:hover{background:rgba(93,142,211,.055)}
.history-list{gap:0}
.history-row-icon{width:36px;height:36px;border-radius:12px;flex-shrink:0}
.history-row-title{font-size:15px;line-height:1.35}
.history-row-meta{font-size:12px;line-height:1.5}
.history-day{margin:18px 10px 8px}
.history-row-status{line-height:1.45}
.history-ask>summary>svg:last-child{margin-left:auto}
.history-ask>summary::after{content:none!important}
.record-help-dialog{max-width:min(460px,calc(100vw - 32px))!important}
.record-help-dialog .modal-content{padding:28px;gap:20px}
.record-help-dialog h2{font-size:25px;line-height:1.2;margin:0}
.record-help-kicker{font-size:13px;line-height:1.5;color:var(--st-muted)}
.record-help-steps{display:grid;gap:16px;margin:0;padding-left:22px;font-size:15px;line-height:1.5}
.record-help-steps li{padding-left:4px}
.record-help-steps li::marker{color:var(--st-accent);font-weight:650}
.record-help-behavior{display:grid;gap:12px;border-top:1px solid var(--record-rule);padding-top:18px;font-size:14px;line-height:1.55}
.record-help-behavior p{margin:0}
.record-help-link{color:#255fce;font-size:13px;line-height:1.5;text-underline-offset:4px}
:root[data-storage-theme=dark] .record-help-link{color:#b1cfff}
.record-help-dialog .actions .btn{width:100%;min-height:46px}
:root.record-keyboard-open .record-dock{visibility:hidden;pointer-events:none}
@media(min-width:801px){
 .record-app[data-view=record] .record-dock{position:relative;left:auto;bottom:auto;transform:none;margin:20px auto 0}
 .main{margin-top:28px}
 .record-capture.record-page{height:540px;min-height:0}
 .record-page .record-timer{font-size:72px}
}
@media(max-width:800px){
 body:has(.record-app[data-view=record]){height:100dvh;overflow:hidden}
 body:has(.record-app[data-view=record]) .shell{height:var(--record-shell-height,100dvh);min-height:0;display:flex;flex-direction:column;padding-bottom:calc(90px + var(--record-safe-bottom))}
 body:has(.record-app[data-view=record]) .topbar{flex-shrink:0}
 body:has(.record-app[data-view=record]) .main{flex:1;min-height:0;display:flex;flex-direction:column;margin-top:12px}
 body:has(.record-app[data-view=record]) #workspace{display:grid;place-items:center;flex:1;min-height:0}
 .record-app[data-view=record]{width:100%;height:100%;min-height:0;max-height:540px}
 .record-app[data-view=record] .record-shell{height:100%;min-height:0}
 .record-capture.record-page{height:100%;min-height:0;max-height:100%;padding:18px 20px 16px}
 .record-page .record-stage{padding:18px 0 14px;min-height:0}
 .record-page .record-title{font-size:27px;margin-bottom:9px}
 .record-page .record-timer{font-size:64px}
 .record-page .record-eyebrow{margin-bottom:9px}
 .record-page .record-waveform{height:38px;margin:12px 0 8px}
 .capture-actions{grid-template-columns:80px 112px 80px;gap:12px}
 .storage-screen .record-app .btn.record-primary{width:102px;height:102px;min-height:102px}
 .storage-screen .record-app .btn.record-secondary:not(.primary):not(.danger):not(.stop){width:80px;min-height:82px;padding:13px 9px;font-size:11px;gap:10px}
 .storage-screen :is(input:not([type=checkbox]),textarea,select){font-size:16px!important}
 .record-history.history-page{padding:24px 20px 22px}
 .record-history .history-body .history-filters{grid-template-columns:minmax(0,1fr) 105px;gap:10px}
 .history-filters .gc-trigger{width:100%;max-width:105px;min-height:46px;font-size:13px;padding:11px 12px}
 .history-filters input{min-height:46px!important;padding:11px 13px!important}
 .record-app .record-history .btn.history-row:not(.primary):not(.danger):not(.stop){grid-template-columns:36px minmax(0,1fr);padding:15px 10px;column-gap:12px;row-gap:0;min-height:85px}
 .history-row-status{margin-top:6px;font-size:11px}
 .history-row-icon{grid-row:1 / span 2}
 .history-day{font-size:11px;margin:18px 10px 8px}
 .history-ask{margin-top:14px}
 .history-ask>summary{padding:9px 4px;min-height:48px}
 .record-help-dialog .modal-content{padding:24px;gap:18px}
}
@media(max-width:480px){
 .record-capture.record-page{padding:17px 17px 14px}
 .storage-screen .capture-tools .btn.context-trigger{font-size:0;width:38px;height:38px;min-height:38px;padding:9px}
 .storage-screen .btn.help-trigger{width:38px;height:38px;min-height:38px;padding:9px}
 .capture-tools{gap:5px}
 h2.history-heading{font-size:27px}
 .record-primary-wrap{gap:12px}
 .record-hint{font-size:11px;margin-top:12px}
 .record-stage .record-status{font-size:11px}
}
@media(max-width:380px){
 .capture-actions{grid-template-columns:78px 100px 78px;gap:9px}
 .storage-screen .record-app .btn.record-secondary:not(.primary):not(.danger):not(.stop){width:78px;padding:13px 8px}
 .record-history.history-page{padding-inline:17px}
 .record-history .history-body .history-filters{grid-template-columns:minmax(0,1fr) 96px;gap:8px}
 .history-filters .gc-trigger{max-width:96px;font-size:12px;padding-inline:10px}
}
@media(max-height:700px) and (max-width:800px){
 .record-capture.record-page{padding-top:15px;padding-bottom:12px}
 .record-page .record-stage{padding:12px 0 10px}
 .record-page .record-title{font-size:24px;margin-bottom:6px}
 .record-page .record-timer{font-size:54px}
 .record-page .record-eyebrow{font-size:9px;margin-bottom:6px}
 .record-page .record-waveform{height:27px;margin:9px 0 5px}
 .record-primary-wrap{gap:10px}
 .storage-screen .record-app .btn.record-primary{width:90px;height:90px;min-height:90px}
 .storage-screen .record-app .btn.record-secondary:not(.primary):not(.danger):not(.stop){min-height:78px;margin-bottom:25px;padding-top:12px;padding-bottom:12px}
 .record-hint{font-size:10px;margin-top:9px}
 .record-stage .record-status{font-size:10px}
}
