/* Shared translucent input controls for extraction mode and read count. */
.dashboard{--page:#fff;background:#fff;--input-control-fill:rgb(246 246 246/.86);--input-control-border:rgb(80 80 80/.13);--input-popover-fill:rgb(255 255 255/.86);--input-popover-shadow:0 8px 28px #173c3610,0 1px 3px #173c3605}
.dashboard .workspace-topbar{background:rgb(255 255 255/.96)}
.dashboard .input-progress-shell{border-color:#e2e8ed;box-shadow:0 4px 24px #31495c08}
.dashboard #extract-form .input-actions{justify-content:space-between;align-items:center;gap:12px}
.dashboard .extraction-mode-tools{display:flex;align-items:center;min-width:0}
.extraction-mode-control[hidden]{display:none!important}
.extraction-mode-control select{width:132px;min-height:32px;border:1px solid var(--input-control-border);border-radius:999px;background:var(--input-control-fill);color:#35634a;font:inherit;font-size:12px}
.extraction-mode-control>.extraction-mode-icon,.extraction-mode-control>.extraction-mode-chevron{display:none}
.extraction-mode-description{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dashboard :is(.extraction-mode-button,.count-picker>summary){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;height:32px;min-height:32px;box-sizing:border-box;margin:0;padding:0 11px;border:1px solid var(--input-control-border);border-radius:999px;background:var(--input-control-fill);color:#607c59;font:inherit;font-size:12px;font-weight:400;line-height:1.4;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff66;backdrop-filter:blur(12px) saturate(115%);-webkit-backdrop-filter:blur(12px) saturate(115%);cursor:pointer;transition:background .16s,border-color .16s}
.dashboard :is(.extraction-mode-button:hover,.extraction-mode-button[aria-expanded=true],.count-picker[open]>summary){background:rgb(225 237 215/.8);border-color:rgb(129 157 115/.32)}
.extraction-mode-button:disabled{opacity:.5;cursor:wait}
.extraction-mode-label,.dashboard .count-picker summary strong{color:#35634a;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.extraction-mode-symbol,.extraction-mode-arrow{display:flex;flex:none}
.extraction-mode-symbol svg{width:16px;height:16px}
.extraction-mode-arrow svg{width:12px;height:12px;color:#879d7f;transition:transform .16s}
.extraction-mode-button[aria-expanded=true] .extraction-mode-arrow svg{transform:rotate(180deg)}
.dashboard :is(.extraction-mode-menu,.count-popover){z-index:80;width:260px;max-width:calc(100vw - 32px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid rgb(205 218 198/.62);border-radius:16px;background:var(--input-popover-fill);box-shadow:var(--input-popover-shadow);backdrop-filter:blur(18px) saturate(115%);-webkit-backdrop-filter:blur(18px) saturate(115%);color:#29493b}
.extraction-mode-menu{position:fixed;padding:5px;margin:0}
.extraction-mode-menu[hidden]{display:none!important}
.extraction-mode-option{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:8px 9px;border:0;border-radius:11px;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.extraction-mode-option:hover,.extraction-mode-option:focus-visible{background:rgb(234 242 226/.48)}
.extraction-mode-option[aria-checked=true]{background:rgb(225 237 215/.62)}
.extraction-mode-option-icon{display:grid;place-items:center;flex:none;width:25px;height:28px;color:#648171}
.extraction-mode-option-icon svg{width:19px;height:19px}
.extraction-mode-option-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.extraction-mode-option-title{font-size:12px;font-weight:600;line-height:1.4}
.extraction-mode-option-description{font-size:10px;color:#7b8a79;line-height:1.5;white-space:nowrap}
.extraction-mode-check{display:flex;flex:none;width:15px;color:#2f7652;visibility:hidden}
.extraction-mode-check svg{width:15px;height:15px}
.extraction-mode-option[aria-checked=true] .extraction-mode-check{visibility:visible}
.extraction-mode-menu-note{padding:6px 7px 3px;margin:3px 3px 0;border-top:1px solid rgb(215 225 207/.52);font-size:10px;color:#83917d;line-height:1.5}
.dashboard .count-popover{top:auto;bottom:calc(100% + 8px);padding:11px 12px 9px;animation:none}
.dashboard .count-popover-heading{align-items:center;margin-bottom:4px;font-size:12px;line-height:18px;color:#7b8a79}
.dashboard .count-popover-heading label{font-size:12px;line-height:18px}
.dashboard .count-popover output{font-size:12px;line-height:18px;color:#35634a}
.dashboard #profile-limit{height:28px;min-height:28px}
.dashboard .count-stops{height:32px;margin-top:0}
.dashboard .count-stops button{min-height:32px;min-width:32px;padding-top:7px;font-size:11px}
.dashboard .count-popover>p{margin:3px 0 0;font-size:10px;line-height:15px;color:#83917d}
:is(.extraction-mode-button,.extraction-mode-option):focus-visible{outline:2px solid #76a98f;outline-offset:2px}
@media(max-width:860px){
 .dashboard :is(.extraction-mode-button,.count-picker>summary)::after{content:'';position:absolute;inset:-6px 0}
 .dashboard :is(.extraction-mode-button,.count-picker>summary){gap:5px;padding-inline:11px}
 .dashboard :is(#extract-button,#profile-load) .motion-button-icon{width:32px;height:32px;flex-basis:32px}
}

/* A single page moves above navigation; input and recent rows share one geometry. */
html[data-workspace-document]{overflow-x:clip}
.workspace-page{display:contents}
.sidebar-version{display:block;padding:7px 17px 0;font-size:11px;color:#989d99;font-variant-numeric:tabular-nums}
.workspace-help{display:flex;justify-content:center;margin-top:auto;padding:24px 0 6px;min-height:58px}
.dashboard .workspace-help .link-guide-trigger{margin:0;min-height:34px}
.dashboard .input-progress-shell::after{filter:none;transition:none}
.dashboard :is(#input-progress-shell,#profile-progress-shell){padding:0}
.dashboard .input-progress-shell :is(#share-text,#profile-url){position:absolute;inset:0;width:100%;height:100%;min-height:0;box-sizing:border-box;padding:16px 62px 62px 16px!important;resize:none;overflow:auto;line-height:1.6;border-radius:inherit}
.dashboard .input-progress-shell .input-actions{position:absolute;left:14px;right:14px;bottom:12px;padding:0;pointer-events:none}
.dashboard .input-progress-shell .input-actions>*{pointer-events:auto}
.dashboard[data-view=video] #workspace-history,.dashboard .profile-recent{margin-top:22px}
.dashboard :is(#extract-view,#profile-panel){padding:0;margin-bottom:0;border:0;background:transparent}
.dashboard :is(#extract-form,#profile-form){gap:0;margin:0}
.dashboard :is(#profile-input-state,#profile-status,#input-error,#input-notice):empty{display:none}
.dashboard :is(.extraction-mode-button,.count-picker>summary){color:#656565}
.dashboard :is(.extraction-mode-label,.count-picker summary strong){color:#383838}
.dashboard :is(.extraction-mode-button:hover,.extraction-mode-button[aria-expanded=true],.count-picker[open]>summary){background:#eeeeeeee;border-color:#50505033}
.dashboard .extraction-mode-arrow svg{color:#858585}
.dashboard .workspace-topbar{min-height:52px;padding:4px 24px;justify-content:flex-end;background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.dashboard .workspace-topbar .workspace-breadcrumb{display:none}
.dashboard .workspace-topbar #workspace-credits-link{display:none}
.dashboard .account-menu>summary{padding:0;gap:0;min-width:44px;min-height:44px;justify-content:center}
.dashboard .account-menu>summary::after{display:none}
.dashboard .account-avatar{width:34px;height:34px;font-size:14px}
.mobile-account-label,.mobile-extraction-switch{display:none}
/* Home previews stay close to the composer and show two records plus help. */
.dashboard:not(.extraction-demo) :is(#profile-recent-list,.recent-video-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard[data-view=video] #workspace-history,.dashboard .profile-recent{margin:12px 0 0}
.dashboard[data-view=video] #workspace-history>.section-heading,.dashboard .profile-recent>.section-heading{justify-content:flex-end;margin:0 0 4px;min-height:32px}
.dashboard :is(#history-all,#profile-recent-all){min-height:32px}
.dashboard :is(#workspace-history-feedback,#profile-recent-state):empty{display:none}
.dashboard .workspace-help{margin-top:8px;padding:0;min-height:40px}
.dashboard .workspace-help .link-guide-trigger{min-height:40px}
@media(max-width:860px){
 html[data-workspace-document]{overflow:hidden}
 .dashboard{--drawer-width:min(280px,72vw);overflow-x:clip}
 .dashboard:not(.extraction-demo){position:fixed;inset:0;width:100%;height:100svh;min-height:0;overflow:hidden;background:#f7f8f6}
 .dashboard:not(.extraction-demo) .workspace-page{position:relative;z-index:40;display:flex;flex-direction:column;flex:none;width:100%;height:100svh;min-height:0;background:#fff;overflow:hidden;transform:translateX(0);transform-origin:right center;transition:transform .3s cubic-bezier(.2,.8,.2,1),border-radius .3s,box-shadow .3s}
 .dashboard:not(.extraction-demo) .workspace-main{width:100%;flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-behavior:auto;padding:18px 17px calc(var(--workspace-nav-height,68px) + 24px);margin:0;max-width:none}
 .dashboard:not(.extraction-demo) .workspace-main>*{flex-shrink:0}
 /* The mobile main is its own scroller; a desktop sticky offset would float over the document. */
 .dashboard:not(.extraction-demo)[data-view=detail] #task-navigation{position:static;top:auto;align-items:flex-start;gap:8px;margin-bottom:14px;padding:0 0 12px}
 .dashboard:not(.extraction-demo) #detail-actions-slot{flex:1;min-width:0}
 .dashboard:not(.extraction-demo) .detail-toolbar .result-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px}
 .dashboard:not(.extraction-demo) .detail-toolbar :is(.result-actions>button,.result-more>summary){font-size:11.5px;padding-inline:6px}
 .dashboard:not(.extraction-demo) .mobile-tabs{position:absolute;inset:auto 0 0;transform:none;transition:none}
 .dashboard .workspace-topbar{display:flex;min-height:56px;padding:6px 10px;padding-top:max(6px,env(safe-area-inset-top));justify-content:flex-start;isolation:isolate}
 .dashboard .workspace-topbar .workspace-breadcrumb{display:flex}
 .dashboard .workspace-topbar .workspace-top-actions{display:none}
 .dashboard #sidebar-toggle{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:5px;color:#323733;background:transparent;box-shadow:none;transition:opacity .12s}
 .dashboard #sidebar-toggle .icon{width:23px;height:23px;flex-basis:23px}
 .dashboard #sidebar-toggle:is(:hover,:active,:focus){background:transparent;box-shadow:none;outline:none}
 .dashboard #sidebar-toggle:active{opacity:.4}
 .dashboard[data-menu-open=true] #sidebar-toggle{opacity:.35}
 .dashboard #sidebar-toggle:focus-visible{outline:1px solid #aaa;outline-offset:-4px}
 .dashboard .mobile-extraction-switch{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:198px;height:34px;padding:3px;border-radius:10px;background:#f1f2f1;isolation:isolate}
 .mobile-extraction-switch::before{content:'';position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:7px;background:#fff;box-shadow:0 1px 4px #0000000e;transition:transform .26s cubic-bezier(.2,.8,.2,1);z-index:0;pointer-events:none}
 .dashboard[data-view=profile] .mobile-extraction-switch::before{transform:translateX(100%)}
 .dashboard[data-view=collection] .mobile-extraction-switch::before{transform:translateX(200%)}
 .dashboard .mobile-extraction-switch a{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;color:#8a908b;font-size:12px;font-weight:500;text-decoration:none;border-radius:7px;min-width:0;transition:color .2s}
 .dashboard .mobile-extraction-switch a:is(:hover,:active,:focus,[aria-current=page]){background:transparent;box-shadow:none}
 .dashboard .mobile-extraction-switch a[aria-current=page]{color:#233a30}
 .mobile-extraction-switch a:focus-visible{outline:2px solid #81b8b2;outline-offset:1px}
 .dashboard:not(.extraction-demo) .extraction-tabs{display:none}
 .dashboard .workspace-sidebar{z-index:30;width:var(--drawer-width);height:100svh;bottom:auto;background:#f7f8f6;border:0;opacity:0;transform:translateX(-16px);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s linear .3s}
 .dashboard[data-menu-open=true] .workspace-sidebar{visibility:visible;opacity:1;transform:translateX(0);transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .2s}
 .dashboard :is(.workspace-topbar,.workspace-main,.mobile-tabs){transition:none}
 .dashboard[data-menu-open=true] .workspace-page{transform:translateX(var(--drawer-width));border-radius:22px 0 0 22px;box-shadow:-8px 0 30px #17251e24,0 0 1px #17251e44}
 .dashboard .sidebar-backdrop{left:var(--drawer-width);width:calc(100% - var(--drawer-width));background:transparent;z-index:45}
 .dashboard .workspace-sidebar>:is(.sidebar-close,.workspace-brand){flex-shrink:0}
 .dashboard .workspace-sidebar .workspace-navigation{min-height:0;overflow:auto;flex:1;align-content:start;margin-top:20px;gap:3px}
 .dashboard .sidebar-bottom{position:relative;flex-shrink:0;margin-top:auto;padding-top:12px}
 .dashboard #sidebar-account-slot .account-avatar{display:none}
 .dashboard #sidebar-account-slot .mobile-account-label{display:inline;font-size:14px}
 .dashboard #sidebar-account-slot .account-menu>summary{justify-content:flex-start;padding:12px 17px;min-height:48px;border-radius:10px}
 .dashboard #sidebar-account-slot .account-menu>summary:hover{background:#ecefe9}
 .dashboard #sidebar-account-slot .account-sheet{top:auto;bottom:calc(100% + 6px);left:0;right:auto;width:100%;max-width:100%;max-height:calc(100dvh - 156px);padding:16px;z-index:2}
 .dashboard:not(.extraction-demo) .extract-welcome{height:48px;min-height:48px;margin:0 0 8px;display:grid;place-items:center}
 .dashboard:not(.extraction-demo) #welcome-word{transition:none}
 .dashboard:not(.extraction-demo):is([data-view=video],[data-view=profile],[data-view=collection]) .workspace-main{overflow-y:clip;overscroll-behavior:none;padding:12px 17px calc(var(--workspace-nav-height,68px) + 8px)}
 .dashboard:not(.extraction-demo) :is(#profile-recent-list,.recent-video-grid){grid-template-columns:1fr}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card{height:98px;min-height:98px}
 .dashboard:not(.extraction-demo) .recent-read-name{-webkit-line-clamp:1}
 .dashboard :is(a,button,summary,input,textarea,.input-progress-shell){-webkit-tap-highlight-color:transparent}
 .dashboard[data-menu-open=true] .extraction-progress{visibility:hidden}
}
@media(max-width:860px) and (max-height:680px){
 .dashboard:not(.extraction-demo) .extract-welcome{height:40px;min-height:40px;margin-bottom:6px}
 .dashboard:not(.extraction-demo) :is(#input-progress-shell,#profile-progress-shell){height:clamp(132px,calc(100svh - 508px),172px);min-height:132px}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history){margin-top:8px}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card{height:clamp(72px,calc(50svh - 238px),90px);min-height:72px}
 .dashboard:not(.extraction-demo) .recent-read-open{padding-block:7px}
 .dashboard:not(.extraction-demo) .recent-read-copy{gap:3px}
 .dashboard:not(.extraction-demo) .recent-read-name{font-size:13px;line-height:1.4}
 .dashboard:not(.extraction-demo) .recent-read-count{font-size:11px;line-height:1.4}
 .dashboard:not(.extraction-demo) .recent-read-time{font-size:10px;line-height:1.4}
 .dashboard:not(.extraction-demo) :is(#profile-recent,#workspace-history) .recent-read-card .video-cover{height:48px;width:36px;min-width:36px;flex-basis:36px}
 .dashboard:not(.extraction-demo) .workspace-help{margin-top:4px}
}
@media(max-width:360px){.dashboard:not(.extraction-demo) #detail-actions-slot .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}}
@media(prefers-reduced-motion:reduce){.dashboard :is(.workspace-page,.workspace-sidebar),.mobile-extraction-switch::before{transition:none}}
@media(min-width:861px){
 .dashboard .workspace-main{padding-top:12px}
 .dashboard .extraction-tabs{margin-bottom:8px}
 .dashboard .extract-welcome{min-height:40px;margin:0 0 12px}
 /* Desktop extraction keeps a centered composer and a compact three-by-two preview. */
 .dashboard:not(.extraction-demo):is([data-view=video],[data-view=profile],[data-view=collection]) .workspace-main{max-width:960px;margin-left:max(216px,calc(216px + (100vw - 216px - 960px)/2));padding:12px 28px 36px}
 .dashboard:not(.extraction-demo) .extraction-tabs{margin-bottom:0}
 .dashboard:not(.extraction-demo) .extraction-tabs a{min-height:36px;padding:8px 16px}
 .dashboard:not(.extraction-demo) .extract-welcome{min-height:44px;margin:clamp(28px,7svh,72px) 0 22px}
.dashboard:not(.extraction-demo) #welcome-heading{font-size:clamp(19px,1.7vw,24px);font-weight:400;line-height:1.6}
 .dashboard:not(.extraction-demo) :is(#input-progress-shell,#profile-progress-shell){height:164px;min-height:164px}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history,.dashboard:not(.extraction-demo) .profile-recent{margin:clamp(22px,4svh,40px) 0 0}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history>.section-heading,.dashboard:not(.extraction-demo) .profile-recent>.section-heading{min-height:28px;margin-bottom:8px}
 .dashboard:not(.extraction-demo) :is(#history-all,#profile-recent-all){min-height:28px;font-size:12px}
 .dashboard:not(.extraction-demo)[data-view=video] #workspace-history-list.recent-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-card{min-height:88px;height:88px;padding:0 6px 0 0;border-radius:12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-open{gap:10px;padding:12px 0 12px 12px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-card .video-cover{width:38px;min-width:38px;height:52px;flex-basis:38px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-copy{gap:4px}
 .dashboard:not(.extraction-demo)[data-view=video] .recent-read-name{-webkit-line-clamp:1;line-height:1.5}
 .dashboard:not(.extraction-demo)[data-view=video] :is(.recent-read-count,.recent-read-time){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.extraction-mode-button,.extraction-mode-arrow svg{transition:none}}
