/* The application workspace only; the public home page keeps its header. */
.workspace-page{--workspace-gap:12px;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:#f3f5f1}
.workspace-page .app-layout{display:flex;flex-direction:row;gap:var(--workspace-gap);width:100%;max-width:none;height:100%;min-height:0;flex:1;padding:12px;overflow:hidden}
.workspace-page .workspace-column{position:relative;min-width:0;min-height:0;height:100%;margin:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.workspace-page .sidebar{display:flex;flex-direction:column;flex:0 0 clamp(210px,19vw,270px);padding:0 16px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.workspace-page .notebook-column{display:flex;flex-direction:column;flex:1 1 310px;padding:0 18px 12px}
.workspace-page .main{display:flex;flex-direction:column;flex:1.4 1 400px;padding:0;background:#12251d;border-color:#12251d}
.column-heading{display:flex;align-items:center;gap:6px;min-height:42px;flex:none;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);user-select:none}
.column-grip{display:grid;place-items:center;flex:none;width:36px;height:40px;min-height:40px;padding:9px;background:transparent;color:inherit;cursor:grab;touch-action:none;border-radius:8px}
.column-grip svg{width:18px;height:22px}.column-grip:hover{background:#729e8520;color:var(--green)}
.workspace-page :focus-visible{outline:2px solid #37865e;outline-offset:2px}
.workspace-page .main>.column-heading{position:absolute;top:8px;left:8px;z-index:5;border-radius:9px;padding-right:10px;color:#fff;background:#10221cce;letter-spacing:.05em;opacity:0;transition:opacity .15s}
.workspace-page .main:hover>.column-heading,.workspace-page .main:focus-within>.column-heading{opacity:1}
.workspace-reordering{user-select:none}.workspace-reordering iframe{pointer-events:none}.workspace-reordering .column-grip{cursor:grabbing}
.column-drop-target{box-shadow:inset 0 0 0 3px #409870}
.workspace-page .topbar{height:auto;flex:none;display:flex;flex-wrap:wrap;padding:0 0 14px;gap:12px;border:0;background:transparent}
.workspace-page .topbar .brand{font-size:23px;white-space:nowrap}.workspace-page .tagline{display:none}
.workspace-page .top-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%;margin:0;justify-content:space-between}
.workspace-page .top-actions .local-badge{font-size:10px;margin:0;white-space:normal}
.workspace-page .top-actions button{min-height:36px}.workspace-page .library-overview{display:flex;flex-wrap:wrap;gap:3px;padding:12px;margin:0 0 16px;border:1px solid var(--line);border-radius:10px;font-size:11px;line-height:1.7;background:#eff5f0;flex:none}
.workspace-page .library-overview>p{display:none}.workspace-page .library-overview strong{font-size:15px}.workspace-page #usage-open{min-height:32px;padding:0;font-size:11px;background:transparent;border:0}
.workspace-page .storage-warning{flex:none;max-height:180px;margin-bottom:12px;border-radius:8px;overflow:auto}
.workspace-page .feed-header{margin:0 0 10px;min-height:36px;flex:none;align-items:center}.workspace-page .feed-header h1{font-size:22px;line-height:1.25;margin:0;letter-spacing:-.5px;overflow-wrap:anywhere}
.workspace-page .feed-header .eyebrow,.workspace-page .feed-description{display:none}.workspace-page .feed-header-actions{margin-left:auto}
.workspace-page #refresh{min-height:36px;font-size:11px;padding:7px 9px}.workspace-page #refresh svg{width:15px;height:15px}
.workspace-page .feed-toolbar{margin:0;padding:0;border:0;min-height:0;flex:none}.workspace-page .filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%;padding:3px}
.workspace-page .filters button{display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:10px;padding:7px 2px;min-width:0;min-height:44px;white-space:nowrap}
.workspace-page .filters span{font-size:11px}.workspace-page .sort-label{display:none}
.workspace-page .feed-status{display:block;flex:none;margin:6px 0;min-height:0;max-height:100px;overflow:auto;overscroll-behavior:contain}
.workspace-page .source-details{max-width:none;font-size:10px}.workspace-page .source-details summary{white-space:normal;font-size:10px;min-height:28px;padding:4px 0;background:transparent}
.workspace-page .source-details[open] #source-results{position:static;width:100%;max-height:180px;box-shadow:none}.workspace-page .refresh-status{max-height:45px;font-size:11px}
.workspace-page .refresh-status:empty{display:none}
.workspace-page .video-information{display:block;flex:none;min-height:0;max-height:28%;padding:0 0 8px;margin:0 0 10px;max-width:none;border:0;border-bottom:1px solid var(--line);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto}
.workspace-page .video-topline{font-size:10px;margin:0;display:flex;justify-content:space-between;gap:8px;max-width:none}
.workspace-page .video-metadata summary,.workspace-page .source-actions summary{font-size:11px;min-height:32px;cursor:pointer;color:var(--green);padding:6px 0}
.workspace-page .video-byline{display:flex;flex-direction:row;justify-content:space-between;gap:6px;margin:4px 0;font-size:11px}
.workspace-page .video-information h2{font-size:15px;line-height:1.4;letter-spacing:0}.workspace-page .video-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.workspace-page .video-actions button,.workspace-page .video-actions a{min-height:34px;font-size:11px;padding:6px}
.workspace-page .view-hint,.workspace-page #video-provenance,.workspace-page #source-action-help{font-size:10px;margin:4px 0}.workspace-page .source-actions{margin-top:4px;padding-top:2px}
.workspace-page #notebook-slot{display:flex;flex:1;min-height:0}.workspace-page #notebook-panel{display:flex;flex-direction:column;width:100%;min-height:0;flex:1}
.workspace-page .notebook-heading{display:flex;align-items:center;justify-content:space-between;flex:none;margin-bottom:8px!important}.workspace-page .notebook-heading h2{font-size:17px;letter-spacing:-.3px}.workspace-page #notebook-archives{font-size:11px;min-height:32px}
.workspace-page .notebook-tabbar{position:relative;align-items:stretch;gap:6px;margin:0 0 6px}.workspace-page #notebook-picker{flex:1;min-width:0}
#notebook-picker>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:13px;cursor:pointer}
#notebook-picker>summary::-webkit-details-marker{display:none}#notebook-active-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}
.notebook-picker-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:18;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px #18322524}
.workspace-page #notebook-search{font-size:13px;height:40px;margin-bottom:6px}.workspace-page #notebook-tabs{display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;max-height:min(260px,35dvh);padding:3px;overflow:auto}
.workspace-page .notebook-tab-item{display:flex;width:100%;align-items:center;gap:3px;flex-shrink:0}
.workspace-page #notebook-tabs .notebook-tab{width:100%!important;flex:1;min-width:0;height:40px;font-size:12px;cursor:pointer}
.workspace-page #notebook-tabs .notebook-tab:not([readonly]){cursor:text}.workspace-page .notebook-tab-remove,.workspace-page .notebook-rename{position:static;opacity:1;min-width:36px;width:36px;height:40px;min-height:40px;padding:7px;border:0;background:transparent;color:var(--muted);font-size:17px}
.notebook-rename svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.workspace-page #notebook-add-tab{min-width:42px;min-height:42px;margin:0}.workspace-page .notebook-help{font-size:10px}
.workspace-page #notebook-context{min-height:17px;font-size:10px;flex:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:3px 0 7px}
.workspace-page #notebook-text{flex:1;min-height:80px;border:1px solid #dce7dd;border-radius:9px;padding:14px;background:#fcfdfb;font-size:14px;line-height:1.85;overflow:auto}
.workspace-page .notebook-toolbar button{min-height:34px}.workspace-page #notebook-open-video{min-height:32px;font-size:11px;flex:none;text-align:left;justify-content:flex-start;padding:4px 0}
.workspace-page #notebook-status{flex:none;font-size:10px;line-height:1.5;margin:0;min-height:15px}
.workspace-page .video-section{display:flex;flex:1;width:100%;height:100%;min-height:0;margin:0;padding:0;gap:0}
.workspace-page .theater{display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);container-type:size;place-items:center;width:100%;height:100%;padding:0;min-height:0;gap:0;overflow:hidden;overscroll-behavior:contain}
.workspace-page .player-shell,.workspace-page .player-shell.horizontal,.workspace-page .player-shell.has-native-ratio{width:100%;height:100%;max-height:none;min-height:0;flex:none}
.workspace-page .player-shell .player-frame,.workspace-page .player-shell.horizontal .player-frame,.workspace-page .player-shell.has-native-ratio .player-frame{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;border-radius:0;box-shadow:none;background:#12251d}
.workspace-page .player-frame video{object-fit:contain}.workspace-page .video-icon{width:44px;height:44px}
.workspace-page .main .empty-state{background:#f5f8f3;width:100%;height:100%;min-height:0;max-height:100%;overflow:auto;padding:48px 24px;color:var(--text)}
.workspace-page .main-footer{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:auto;padding-top:24px;border:0;font-size:10px;flex:none}
.workspace-page .main-footer .android-download{padding:0;background:transparent;color:var(--green);text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.workspace-page .main-footer .store-download-badge img{height:38px;width:auto}.workspace-page .store-extension-link{font-size:11px;min-height:32px;display:flex;align-items:center}
.workspace-switcher{display:none}.workspace-page #mobile-manage{display:none}
@media(max-width:979px){
 .workspace-switcher{display:flex;align-items:center;gap:4px;padding:6px 12px 0;flex:none}.workspace-switcher button{flex:1;min-height:40px;border-radius:8px;background:transparent;color:var(--muted);font-size:13px}.workspace-switcher button[aria-pressed=true]{background:var(--green);color:#fff}
 .workspace-page .app-layout{min-height:0;padding:8px;flex-direction:row}.workspace-page .workspace-column{display:none!important;flex:1;width:100%;max-width:none;order:0!important}
 .workspace-page [data-view=themes] [data-column=themes],.workspace-page [data-view=notes] [data-column=notes],.workspace-page [data-view=video] [data-column=video]{display:flex!important}
 .column-heading{display:none}.workspace-page .sidebar,.workspace-page .notebook-column{padding:16px}.workspace-page .topbar{padding:0 0 16px}
 .workspace-page .main>.column-heading{display:none}.workspace-page .notebook-heading h2{font-size:18px}.workspace-page #notebook-text{font-size:16px}
 .workspace-page .video-information{max-height:25%}.workspace-page .feed-header h1{font-size:24px}.workspace-page .filters button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.workspace-page .main>.column-heading{transition:none}}
/* Adjustable columns and an editor-first notebook. */
.workspace-page .app-layout{gap:0}
.workspace-divider{position:relative;flex:0 0 12px;height:100%;cursor:col-resize;touch-action:none;outline-offset:-3px!important;border-radius:7px}
.workspace-divider::before{content:'';position:absolute;width:3px;height:40px;top:calc(50% - 20px);left:4.5px;background:#9db6a5;border-radius:3px;transition:background .15s,height .15s}
.workspace-divider:hover::before,.workspace-divider:focus-visible::before{background:var(--green);height:64px;top:calc(50% - 32px)}
.workspace-resizing{user-select:none;cursor:col-resize}.workspace-resizing iframe{pointer-events:none}
.workspace-page .notebook-column{padding:0 12px 8px;container-type:inline-size}
.notebook-topline{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:32px}
.notebook-topline .column-heading{min-height:32px}.notebook-topline .column-grip{height:32px;min-height:32px;padding:6px}
#notebook-info>summary{font-size:11px;min-height:32px;display:flex;align-items:center;gap:8px;cursor:pointer;border-radius:6px;padding:4px 8px;color:var(--green)}
#notebook-info>summary:hover{background:var(--soft)}
.notebook-info-body{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;padding:16px;background:white;border:1px solid var(--line);box-shadow:0 12px 30px #18322526;border-radius:10px;max-height:70dvh;overflow:auto;overscroll-behavior:contain}
.workspace-page .notebook-info-body .video-information{max-height:none;overflow:visible;margin:8px 0 0;padding:0;border:0}
.workspace-page .notebook-info-body .feed-status{max-height:none}
.workspace-page .notebook-info-body .feed-header h1{font-size:18px}
.workspace-page .notebook-info-body .filters button{flex-direction:row;font-size:10px;gap:2px;padding:6px 2px}
.workspace-page #notebook-panel{position:relative}
.workspace-page .notebook-tabbar{gap:4px;margin-bottom:4px;flex:none;display:flex}
.workspace-page #notebook-picker>summary{min-height:36px;height:36px;padding:5px 9px;font-size:12px}
.workspace-page #notebook-add-tab,.workspace-page #notebook-search-open,.workspace-page #notebook-archives{min-height:36px;height:36px;min-width:32px;width:32px;padding:6px;flex:none}
.workspace-page #notebook-search-open svg,.workspace-page #notebook-archives svg{width:17px;height:17px}
.workspace-page .notebook-help{display:none}
.workspace-page .notebook-toolbar{display:flex;align-items:center;min-height:32px;flex:none;margin:0 0 4px;padding:0;gap:3px}
.workspace-page .notebook-toolbar button{min-height:30px;height:30px;padding:4px 8px;font-size:12px}
.workspace-page #notebook-context{margin:0 0 0 auto;min-width:0;min-height:0;flex:1;font-size:10px;max-width:50%;text-overflow:ellipsis}
.workspace-page #notebook-text{min-height:80px;padding:12px;font-size:15px;flex:1}
.workspace-page .notebook-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:26px;flex:none;min-width:0}
.workspace-page #notebook-open-video{font-size:10px;min-height:26px;padding:2px 0;flex:none}
.workspace-page #notebook-status{font-size:10px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workspace-page #notebook-status.error{white-space:normal;color:var(--error);overflow:visible}
.workspace-page .notebook-tab-item{flex-wrap:wrap}
.notebook-search-excerpt{width:100%;padding:0 8px 8px;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.workspace-page .notebook-picker-menu{top:calc(100% + 4px)}
.workspace-page .notebook-column>#player-error{flex:none;font-size:11px;max-height:90px;overflow:auto}
.workspace-page .notebook-column>#reader-access,.workspace-page .notebook-column>#return-to-feed{flex:none;min-height:30px;font-size:11px}
@media(max-width:979px){
 .workspace-divider{display:none}.workspace-page .workspace-column{flex:1 1 auto!important}
 .workspace-page .notebook-column{padding:0 12px 8px}.notebook-topline{min-height:36px;justify-content:flex-end}
 .workspace-page #notebook-text{font-size:16px}.workspace-page #notebook-search{font-size:16px}
 .workspace-page #notebook-add-tab,.workspace-page #notebook-search-open,.workspace-page #notebook-archives{min-height:40px;height:40px}
 .workspace-page #notebook-picker>summary{height:40px}.workspace-page .notebook-toolbar button{min-height:34px;height:34px}
}
@media(max-height:480px){.workspace-page .notebook-column{overflow-y:auto}.workspace-page #notebook-slot{min-height:230px}}

/* Keep feed filters visible while preserving the writing area. */
.workspace-page .notebook-filters{flex:none;margin:0;padding:0;min-height:32px}
.workspace-page .notebook-filters .filters{display:flex;width:100%;gap:2px;padding:0;background:transparent;flex-wrap:nowrap}
.workspace-page .notebook-filters .filters button{flex:1;min-width:0;min-height:32px;padding:4px 2px;font-size:10px;gap:3px;white-space:nowrap}
.workspace-page .notebook-filters .filters span{font-size:10px}
.video-quick-actions a.video-icon{display:grid;place-items:center;text-decoration:none}

.player-unavailable{display:grid;place-items:center;min-height:100%;margin:0;padding:32px;text-align:center;color:#fff;background:#151b18;font-size:18px;font-weight:500}
