/* Unicode scripts retain natural glyph shaping and line height. Camera pixels are never filtered. */
#trackText,#scriptText,#videoScript,#videoPromptText{font-family:system-ui,-apple-system,"Noto Sans Gujarati","Nirmala UI",sans-serif;letter-spacing:normal;overflow-wrap:anywhere;word-break:normal}#scriptDialog #trackText{line-height:1.85;scroll-padding:24px}#scriptDialog .readerEntryActions{align-items:stretch}#scriptDialog .readerEntryActions .btn{min-height:44px}#scriptDialog .readerFocus{margin-top:0}#scriptDialog.readerFocused .readerHeader>p,#scriptDialog.readerFocused .readerToolbar,#scriptDialog.readerFocused #readerSettings,#scriptDialog.readerFocused .readerMeta,#scriptDialog.readerFocused .trackHeading,#scriptDialog.readerFocused #trackStatus,#scriptDialog.readerFocused .recognizedText,#scriptDialog.readerFocused #scriptEditor{display:none!important}#scriptDialog.readerFocused .trackText{min-height:180px;flex:1 1 auto}#scriptDialog.readerFocused .readerEntryActions{justify-content:flex-end}#scriptDialog.readerFocused .readerEntryActions button:not(#readerFocus){display:none!important}#scriptDialog.readerFocused .readerWorkspace{min-height:0}#scriptDialog.readerFocused .readerControls{flex-shrink:0}.installPanel{margin-top:24px}.installPanel p{max-width:65ch}#themePreference{min-height:44px}.readerFocus[aria-pressed=true]{border-color:currentColor}
:root[data-theme=dark]{--ink:#f0f0ed;--muted:#bbb;--line:#454545;--soft:#262626;--workspace-bg:#171717;--workspace-border:#454545;--workspace-muted:#bdbdb8;color-scheme:dark;background:#171717;color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode){background:#171717;color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode) :is(.topbar,.sidebar,.composer,.clipcard,.libraryRow,.viewEmpty,.settingsShell,.settingsHeader,.settingsBody,.settingsFooter,.readerHeader,.readerWorkspace,.readerControls,.dataGroup,.dataOverview,.soundTools,.editorTools,.micCheck,.captureRecovery,dialog,.new,.suggestion,.welcome .suggestion,.trackText,.readerStatus,.updateNotice,.saveWarning,.videoTake,.videoSaved,#quickGuide,#videoRecovery){background:#222;color:#f0f0ed;border-color:#454545}
html[data-theme=dark] body:not(.glanceMode) .composerwrap{background:linear-gradient(transparent,#171717 28%)}
html[data-theme=dark] body:not(.glanceMode) :is(input,textarea,select,.btn,.tool,.viewSearch,.composertools .readerEntry,.dataCounts>div){background:#292929;color:#f0f0ed;border-color:#555}
html[data-theme=dark] body:not(.glanceMode) :is(.dark,.record,.btn.primary){background:#ededeb;color:#171717;border-color:#ededeb}
html[data-theme=dark] body:not(.glanceMode) :is(.settingsTab[aria-pressed=true],.historyrow.active,.workspaceNav [aria-current=page],.modeSwitch,[role=tablist]){background:#363636;color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode) :is(.subtitle,.sessiondesc,.groupLabel,#storageInfo,.caption,.welcome p,.welcomeEyebrow,.viewIntro,.dataFootnote,.dataOverview>p,.dataGroup>p,.deviceNote,.scriptStats,.readerPrivacy,#trackStatus,#quickGuide p,.videoLimitNote,#videoCameraDescription){color:#bdbdb8}
html[data-theme=dark] body:not(.glanceMode) :is(.videoCameraHint,.videoAccessMenu>summary){background:#222;color:#f0f0ed;border-color:#454545}
html[data-theme=dark] #videoDialog .videoAccessMenu .stageTool{color:#f0f0ed!important}
html[data-theme=dark] #videoDialog[data-phase=off][data-review=false] #videoStatus:not(:empty){background:#222;color:#eee}
html[data-theme=dark] #quickGuide a,html[data-theme=dark] main a{color:#9fcaff}
html[data-theme=dark] #trackText .matched{background:#1d4532;color:#e5ffed}html[data-theme=dark] #trackText .current{background:#584500;color:white}
html[data-theme=dark] .notice{background:#222;border-color:#555;color:#eee}html[data-theme=dark] body>main :is(button,input,textarea){background:#292929;color:#f0f0ed;border-color:#555}
html[data-theme=dark] :is(.settingsTab:hover,.historyrow:hover){background:#333}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:760px){#scriptDialog .readerEntryActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.readerEntryActions .btn{min-height:48px;font-size:14px}.installPanel .btn{min-height:48px}}
html[data-theme=dark] body:not(.glanceMode) :is(#extraSettings,#settingsContent,#scriptDialog,#videoOptionsDialog,#videoScriptDialog,#exportDialog,main) :is(input,textarea,select){background:#292929;color:#f0f0ed;border-color:#555}
html[data-theme=dark] body:not(.glanceMode) .settingsShell :is(p,label,summary,dt,dd),html[data-theme=dark] body:not(.glanceMode) .sidebar :is(.workspaceNav button,.historyhead,.emptyhistory,.historySearchStatus){color:#bdbdb8}
html[data-theme=dark] body:not(.glanceMode) :is(.studioHeader,.studioBody,.studioFooter){background:#222;border-color:#454545;color:#eee}
html[data-theme=dark] body:not(.glanceMode) #videoDialog .videoAccessMenu>summary{background:#292929;border-color:#555;color:#eee}
html[data-theme=dark] body:not(.glanceMode) #scriptDialog :is(.readerHeader>p,.readerWorkspace label,.readerWorkspace p,.trackHeading){color:#bdbdb8}
/* Read & Record: make the writing surface large and immediately usable on phones. */
#scriptDialog #scriptEditor[open]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;gap:8px}
#scriptDialog #scriptEditor[open] summary{flex:none;font-size:15px;font-weight:600;color:inherit}
#scriptDialog #scriptEditor[open] #scriptLength,#scriptDialog #scriptEditor[open] .scriptSaveStatus{flex:none;margin:0;font-size:13px;line-height:1.45}
#scriptDialog #scriptEditor[open] #scriptText{flex:1 1 auto;width:100%;height:auto;min-height:max(280px,42dvh);max-height:none;padding:16px;font-size:19px;line-height:1.65;resize:vertical;border:1px solid #c9c9c9;border-radius:12px;background:#fff;color:#222;overflow:auto;overscroll-behavior:contain}
#scriptDialog #scriptEditor[open] #scriptText:focus{outline:3px solid #777;outline-offset:2px}
@media(max-width:760px){#scriptDialog #scriptEditor[open]{min-height:0}#scriptDialog #scriptEditor[open] #scriptText{min-height:max(300px,43dvh);font-size:18px;padding:15px}}
@media(max-height:600px){#scriptDialog #scriptEditor[open] #scriptText{min-height:220px}}
html[data-theme=dark] body:not(.glanceMode) #scriptDialog #scriptEditor[open] #scriptText{background:#292929;color:#f0f0ed;border-color:#666}
html[data-theme=dark] footer{color:#bdbdb8}

/* Clear recording action and compact script entry for audio-first use. */
.record{width:auto;min-width:122px;height:52px;padding:0 18px;display:flex;gap:9px;border-radius:16px;background:#242424;color:#fff;font-size:14px;font-weight:700;box-shadow:0 3px 10px #0000001a}.record:hover{background:#111}.record svg{width:19px;height:19px}.record.isrecording{background:#111;box-shadow:0 0 0 4px #2222}.record:focus-visible{outline:3px solid #777;outline-offset:3px}.record .stop{width:13px;height:13px;background:#fff;border-radius:3px}.readerEntryActions{align-items:flex-start}.readerTools{position:relative;flex:0 0 auto}.readerTools>summary{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #e3e3e3;border-radius:8px;background:#fff;font-size:13px;cursor:pointer;list-style:none}.readerTools>summary::-webkit-details-marker{display:none}.readerTools>summary:after{content:'⌄';margin-left:8px;color:#777}.readerTools[open]>summary:after{content:'⌃'}.readerToolButtons{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}.readerToolButtons #readerFocus{min-height:40px}.boloReaderMascots img{width:54px;height:54px;object-fit:contain}.trackText:empty:before{content:'Add or paste a script to see it here.';color:#999;font-size:15px}.readerEntryActions #readerEditScript{min-height:44px;padding-inline:16px}.readerControls #readRecord{background:#242424;border-color:#242424;font-weight:700}.readerControls #readRecord:hover{background:#111;border-color:#111}.readerControls #readRecord:focus-visible{outline:3px solid #777;outline-offset:3px}.readerFocused .readerTools{display:none}@media(max-width:760px){.record{min-width:116px;height:48px;padding:0 15px}.readerEntryActions{display:flex;gap:8px;align-items:stretch}.readerEntryActions #readerEditScript,.readerTools>summary{min-height:46px}.readerToolButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.readerToolButtons .btn{min-height:44px}}

#scriptDialog:not(.trackingOn) #trackStatus,#scriptDialog:not(.trackingOn) .trackHeading,#scriptDialog:not(.trackingOn) #resetTracking{display:none!important}#scriptDialog #readerSettings .readerToolbar{display:block;margin:0 0 10px;padding:0;border:0}#scriptDialog #readerSettings .scriptLanguageControls{max-width:none}#scriptDialog #readerSettings .scriptLanguageControls label{margin:0}#scriptDialog #readerSettings .scriptLanguageHint{margin:6px 0 0;font-size:11px}

/* Video capture uses BOLO charcoal and keeps script access visible on the preview. */
.cameraImmersive .reelRecord>span{background:#242424!important}.cameraImmersive .reelRecord.isLive>span{background:#f4f2ef!important}.reelStudio[data-phase=ready][data-review=false] #videoStart{border-color:#f4f2ef!important}.reelStudio[data-phase=ready][data-review=false] #videoStart>span{background:#242424!important}.cameraImmersive .videoStageTop #videoScriptToggle:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;min-height:calc(44px * var(--camera-ui-scale));min-width:calc(96px * var(--camera-ui-scale));padding:calc(9px * var(--camera-ui-scale)) calc(13px * var(--camera-ui-scale));background:#f4f2ef;color:#222;border:1px solid #fff;border-radius:calc(24px * var(--camera-ui-scale));font-weight:650;box-shadow:0 2px 10px #0003;text-shadow:none;white-space:nowrap}.cameraImmersive .videoStageTop #videoScriptToggle:not([hidden]):hover{background:#fff}.cameraImmersive .videoStageTop{gap:calc(8px * var(--camera-ui-scale))}

/* Streamlined capture screens: one obvious start action, secondary tools stay available on demand. */
.welcome .suggestions{display:none!important}
.welcome{padding-top:clamp(22px,5vh,52px);padding-bottom:14px}
.audioMoreTools{position:relative;flex:0 0 auto}
.audioMoreTools>summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #e3e3e3;border-radius:10px;background:transparent;color:#666;font-size:13px;cursor:pointer;list-style:none}
.audioMoreTools>summary::-webkit-details-marker{display:none}
.audioMoreTools>summary:after{content:'⌄';margin-left:8px;color:#777}
.audioMoreTools[open]>summary:after{content:'⌃'}
.audioMoreTools>div{display:flex;flex-wrap:wrap;gap:6px;padding:6px 0}
.audioMoreTools .tool{min-height:42px}
.reelStudio[data-phase=ready][data-review=false] #videoStart{border-color:#f4f2ef!important}
.reelStudio[data-phase=ready][data-review=false] #videoStart>span{background:#242424!important}
.cameraImmersive .reelRecord>span{background:#242424!important}
.cameraImmersive .reelRecord.isLive>span{background:#f4f2ef!important}
.reelStudio .reelRecord.isLive>span{background:#242424!important}
.reelStudio[data-phase=ready][data-review=false] .videoSetupActions{margin-top:4px}
.reelStudio[data-phase=off][data-review=false] .videoSetupActions .stageTool{width:min(100%,300px)}
html[data-theme=dark] .audioMoreTools>summary{background:#292929;color:#f0f0ed;border-color:#555}
@media(max-width:760px){.audioMoreTools{width:100%}.audioMoreTools>summary{width:100%;min-height:44px}.audioMoreTools>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.audioMoreTools .tool{min-height:46px}.composertools .capture{margin-left:auto}}


/* Shared BOLO line icons for navigation and disclosure controls. */
.uiIcon{display:block;width:16px;height:16px;flex:0 0 auto}
.homeButton{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.settingsHeader .homeButton{gap:8px}
.audioMoreTools>summary:after,#videoDialog .videoAccessMenu>summary:after,.videoOptionalSettings>summary:after,.readerTools>summary:after{content:"";display:inline-block;width:7px;height:7px;margin:0 0 3px 9px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);transition:transform .15s ease}
.audioMoreTools[open]>summary:after,#videoDialog .videoAccessMenu[open]>summary:after,.videoOptionalSettings[open]>summary:after,.readerTools[open]>summary:after{transform:rotate(225deg);margin-bottom:-3px}
.audioMoreTools>summary:after,.readerTools>summary:after{font-size:0}
.historyrow .del{font-size:0!important}
.historyrow .del:after,.profileMoreMark:after{content:"";display:block;width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='19' r='1.8'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='19' r='1.8'/%3E%3C/svg%3E") center/contain no-repeat}
.profileMoreMark{display:grid;place-items:center;margin-left:auto;width:20px;height:24px}
.profileMoreMark .uiIcon{display:none}
html[data-theme=dark] .audioMoreTools>summary:after,#videoDialog .videoAccessMenu>summary:after,.readerTools>summary:after{border-color:currentColor}
@media(prefers-reduced-motion:reduce){.audioMoreTools>summary:after,#videoDialog .videoAccessMenu>summary:after,.videoOptionalSettings>summary:after,.readerTools>summary:after{transition:none}}


/* First-visit welcome sits inside the home screen and never blocks recording. */
.firstWelcome{display:none;align-items:center;gap:14px;width:min(620px,100%);margin:0 auto 20px;padding:12px 16px;border:1px solid #e3e0d5;border-radius:18px;background:linear-gradient(115deg,#fbfaf5,#f0f3e6);color:#24251f;text-align:left;box-shadow:0 8px 24px #20251a0a}
.firstVisitWelcome .firstWelcome{display:flex;animation:welcomeArrive .45s ease-out both}
.firstWelcome>img{width:52px;height:52px;object-fit:contain;flex:0 0 auto;animation:welcomeFloat 3.2s ease-in-out infinite}
.firstWelcome>div{display:grid;gap:2px;min-width:0}
.firstWelcome strong{font-size:16px;letter-spacing:-.02em}
.firstWelcome span{color:#48552b;font-size:13px;font-weight:700}
.firstWelcome small{color:#68685f;font-size:12px;line-height:1.4}
.firstWelcome button{margin-left:auto;flex:0 0 38px;width:38px;height:38px;border:0;border-radius:50%;background:#e9e8df;color:#3c4032;font-size:24px;line-height:1;cursor:pointer}
html[data-theme=dark] .firstWelcome{background:linear-gradient(115deg,#262822,#20231f);border-color:#45483e;color:#f0f0ed}
html[data-theme=dark] .firstWelcome span{color:#c8d7a5}
html[data-theme=dark] .firstWelcome small{color:#bdbdb8}
html[data-theme=dark] .firstWelcome button{background:#3a3d35;color:#f0f0ed}
@keyframes welcomeFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-4px) rotate(2deg)}}
@keyframes welcomeArrive{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.welcome{padding-top:16px}.firstWelcome{gap:9px;margin-bottom:10px;padding:8px 10px;border-radius:14px}.firstWelcome>img{width:38px;height:38px}.firstWelcome>div{gap:0}.firstWelcome strong{font-size:14px}.firstWelcome span{font-size:11px}.firstWelcome small{display:none}.firstWelcome button{width:34px;height:34px;flex-basis:34px}}
@media(prefers-reduced-motion:reduce){.firstWelcome>img,.firstVisitWelcome .firstWelcome{animation:none}}

/* Keep the video setup surface in step with the selected app theme. */
html[data-theme=dark] body:not(.glanceMode) #videoDialog.videoStudio,
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio[data-phase=off][data-review=false]{background:#171717;color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio[data-phase=off][data-review=false] .videoStage{background:#171717;box-shadow:none;border-color:transparent}
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio[data-phase=off][data-review=false] .videoCameraHint{background:#171717;color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio[data-phase=off][data-review=false] .videoCameraHint strong{color:#f0f0ed}
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio[data-phase=off][data-review=false] .videoCameraHint #videoCameraDescription{color:#bdbdb8}

/* The collapsed video-library control should look intentional in both themes. */
.reelStudio .videoSaved:not([open])>summary{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;min-height:44px;margin:0 auto;padding:10px 18px;border:1px solid #e3e3e3;border-radius:14px;background:#f5f5f5;color:#555;list-style:none;box-shadow:none;text-align:center}
.reelStudio .videoSaved:not([open])>summary::-webkit-details-marker{display:none}
html[data-theme=dark] body:not(.glanceMode) #videoDialog.reelStudio .videoSaved:not([open])>summary{background:#292929;color:#f0f0ed;border-color:#555}
@media(min-width:761px){body.videoMode #videoDialog .videoSaved{left:calc(260px + (100vw - 260px)/2);transform:translateX(-50%)}}

.limitStatus{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 10px;border:1px solid #e4e4e4;border-radius:999px;background:#f7f7f7;color:#555;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease}.limitStatus.limitUrgent{background:#fff0ef;border-color:#e84840;color:#b42318;animation:limitPulse .8s ease-in-out infinite alternate}@keyframes limitPulse{to{box-shadow:0 0 0 4px #e8484022}}.audioMoreMenu label{display:grid;gap:5px;flex:1 1 100%;font-size:12px;color:#555}.audioMoreMenu select,.audioMoreMenu input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#222}.audioMoreMenu #audioCustomLimitRow{max-width:220px}.audioMoreMenu .tool{justify-self:start}.videoLimitStatus{background:#111b;color:#fff;border-color:#fff6;font-size:13px}@media(prefers-reduced-motion:reduce){.limitStatus.limitUrgent{animation:none}}@media(max-width:760px){.liveline{gap:8px}.limitStatus{font-size:11px;min-height:28px;padding:3px 8px}.audioMoreMenu #audioCustomLimitRow{max-width:none}}

#videoDialog .videoLimitStatus{position:absolute;right:12px;top:12px;z-index:6}

/* Bound the saved-video sheet to a readable workspace surface on every device. */
#videoDialog.cameraImmersive .videoSaved[open]{position:fixed!important;top:calc(var(--camera-header-height) + 12px)!important;bottom:max(12px,env(safe-area-inset-bottom))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(820px,calc(100vw - 32px))!important;max-width:none!important;max-height:none!important;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid #ddd!important;border-radius:20px!important;padding:16px!important;background:#fff!important;color:#222!important;box-shadow:0 18px 64px #0007!important;z-index:120!important}
#videoDialog.cameraImmersive .videoSaved[open]>summary{position:sticky;top:0;z-index:3;padding:10px 12px;background:#f5f5f5;color:#222;border-radius:12px}
#videoDialog.cameraImmersive .videoSaved[open] .videoLibraryActions{gap:8px;flex-wrap:wrap;justify-content:flex-start;padding:10px 0;background:#fff}
#videoDialog.cameraImmersive .videoSaved[open] .videoTake video{width:100%;max-height:min(30dvh,260px);object-fit:contain}
#videoDialog.cameraImmersive .videoSaved[open].emptyLibrary{top:50%!important;bottom:auto!important;left:50%!important;right:auto!important;width:min(520px,calc(100vw - 32px))!important;max-height:min(380px,calc(100dvh - 48px))!important;transform:translate(-50%,-50%)!important}
@media(max-width:760px){#videoDialog.cameraImmersive .videoSaved[open]{top:calc(var(--camera-header-height) + env(safe-area-inset-top) + 8px)!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important;padding:12px!important;border-radius:18px!important}#videoDialog.cameraImmersive .videoSaved[open].emptyLibrary{top:50%!important;bottom:auto!important;width:calc(100vw - 24px)!important}#videoDialog.cameraImmersive .videoSaved[open] .videoLibraryActions .btn{flex:1 1 110px;min-width:0}#videoDialog.cameraImmersive .videoSaved[open] .videoTake video{max-height:28dvh}}
@media(max-height:500px) and (orientation:landscape){#videoDialog.cameraImmersive .videoSaved[open]{top:calc(var(--camera-header-height) + 6px)!important;bottom:6px!important;width:min(760px,calc(100vw - 24px))!important}#videoDialog.cameraImmersive .videoSaved[open].emptyLibrary{top:50%!important;bottom:auto!important}#videoDialog.cameraImmersive .videoSaved[open] .videoTake video{max-height:24dvh}}
body.cameraFocus #videoDialog.cameraImmersive .videoSaved[open]{top:12px!important}
