/* Discovery is a publication. Sorting and creating use a restrained desktop. */
.workspace-shell { --workspace-rail:208px; min-height:100vh; background:var(--bg-page); color:var(--text-main); }
.workspace-shell .site-header { position:fixed; inset:0 auto 0 0; width:var(--workspace-rail); height:100dvh; z-index:30; background:var(--bg-page); border:0; border-right:1px solid var(--border-light); box-shadow:none; backdrop-filter:none; }
.workspace-shell .site-header-inner { height:100%; max-width:none; padding:30px 17px 22px; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:38px; overflow-y:auto; }
.workspace-shell .brand { display:flex; flex-wrap:wrap; align-items:center; gap:7px; padding:0 7px; color:var(--text-main); }
.workspace-shell .brand > svg { width:25px; height:25px; flex-shrink:0; color:var(--highlight); }
.workspace-shell .brand-title { color:var(--text-main); font-size:20px; font-weight:750; white-space:nowrap; letter-spacing:-.055em; }
.workspace-shell .brand-badge { margin:0 0 0 32px; padding:0; font-size:11px; font-weight:400; background:none; color:var(--text-muted); }
.workspace-shell .main-nav { flex:1; display:flex; flex-direction:column; align-items:stretch; gap:25px; }
.workspace-shell .workspace-nav-group { display:flex; flex-direction:column; gap:4px; }
.workspace-nav-label { padding:0 10px 9px; font-size:10px; font-weight:600; color:var(--text-muted); letter-spacing:.07em; }
.workspace-shell .workspace-nav-group + .workspace-nav-group { padding-top:24px; border-top:1px solid var(--border-light); }
.workspace-shell .nav-tab { display:flex; align-items:center; justify-content:flex-start; gap:11px; width:100%; min-height:44px; padding:10px 12px; margin:0; border:0; border-radius:4px; color:var(--text-muted); font:500 13px/1.5 var(--font-sans); white-space:nowrap; background:transparent; }
.workspace-shell .nav-tab svg { flex-shrink:0; width:18px; height:18px; }
.workspace-shell .nav-tab:hover { color:var(--text-main); background:var(--bg-subtle); }
.workspace-shell .nav-tab.active { color:var(--text-main); background:#e9ebe3; box-shadow:none; font-weight:650; }
.workspace-shell .nav-tab.active svg { color:var(--highlight); }
.workspace-shell .nav-tab.active::after { display:none; }
.workspace-shell .nav-badge { margin-left:auto; min-width:20px; border-radius:3px; color:var(--text-muted); background:#17191708; font-size:10px; line-height:20px; padding:0 4px; font-variant-numeric:tabular-nums; }
.workspace-nav-bottom { display:flex; flex-direction:column; gap:3px; margin-top:auto; padding-top:32px; }
.workspace-guides { width:116px; height:98px; object-fit:contain; mix-blend-mode:multiply; align-self:center; margin:25px 0 9px; }
.workspace-brand-note { color:var(--text-muted); font-size:10px; text-align:center; }
.workspace-skip { position:fixed; top:-70px; left:12px; padding:10px 18px; z-index:100; background:#fff; border:2px solid var(--highlight); border-radius:4px; font-size:14px; }
.workspace-skip:focus { top:8px; }
.workspace-shell .page-container { width:auto; max-width:1440px; min-width:0; margin-left:var(--workspace-rail); margin-right:auto; padding:30px 36px 64px; }
.workspace-shell .page-container:focus { outline:none; }
.workspace-shell .page-headline { color:var(--text-main); font-size:34px; line-height:1.25; font-weight:700; letter-spacing:-.045em; }
.workspace-shell :is(.page-subtitle,.page-subtext) { font-size:14px; line-height:1.75; color:var(--text-muted); }
.workspace-shell :is(button,select,input,textarea) { font-family:var(--font-sans); }
.workspace-shell .btn-primary-action { min-height:42px; padding:10px 16px; border:1px solid var(--text-main); border-radius:4px; background:var(--text-main); color:#fff; font-size:13px; line-height:1.45; font-weight:600; box-shadow:none; }
.workspace-shell .btn-primary-action:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.workspace-shell :is(.btn-secondary-quiet,.btn-quiet) { min-height:42px; font-size:12px; line-height:1.5; border-radius:4px; }
.workspace-shell .btn-secondary-quiet { border:1px solid var(--border-light); background:#fff; color:var(--text-main); padding:9px 14px; }
.workspace-shell .btn-secondary-quiet:hover { border-color:var(--text-main); background:var(--bg-subtle); }
.workspace-shell button:disabled { opacity:.45; cursor:not-allowed; }
.workspace-shell :is(input,select,textarea) { font-size:14px; color:var(--text-main); border-color:var(--border-light); }
.workspace-shell :focus-visible { outline:2px solid var(--highlight); outline-offset:3px; }
.workspace-shell .form-help { font-size:12px; line-height:1.75; }
.workspace-storage-note { margin-bottom:22px; border:0; border-bottom:1px solid var(--border-light); background:transparent; border-radius:0; color:var(--text-muted); font-size:11px; }
.workspace-storage-note > summary { padding:0 0 10px; min-height:30px; cursor:pointer; font-weight:400; }
.workspace-storage-note .public-preview-note { display:flex; flex-wrap:wrap; gap:8px 24px; border:0; margin:0; padding:4px 0 13px; background:transparent; color:var(--text-muted); font-size:12px; }
.workspace-storage-note .public-preview-note span { flex:1; min-width:240px; }
.workspace-shell .board-topbar { display:block; grid-template-columns:none; gap:0; }
.workspace-shell .board-intro { display:flex; justify-content:space-between; align-items:center; margin:0 0 20px; gap:18px; }
.workspace-shell .board-intro .intro-main { position:static; height:auto; width:auto; min-width:0; max-width:none; overflow:visible; clip:auto; white-space:normal; }
.workspace-shell .board-intro .topic-actions { justify-content:flex-end; flex-wrap:wrap; }
.workspace-resume { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:18px 22px; margin:0 0 24px; background:var(--bg-subtle); border:1px solid var(--border-light); border-radius:4px; }
.workspace-resume > div { min-width:0; }
.workspace-resume p:first-child { font-size:11px; font-weight:600; }
.workspace-resume p:first-child span { margin-left:10px; font-weight:400; color:var(--text-muted); }
.workspace-resume h3 { font-size:18px; line-height:1.55; overflow-wrap:anywhere; margin-top:4px; }
.workspace-resume-next { font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; max-width:850px; }
.workspace-resume small { font-size:10px; color:var(--text-muted); }
.workspace-resume button { flex-shrink:0; }
.workspace-shell .feed-search-tools { background:transparent; padding:0; margin:0; border:0; border-radius:0; box-shadow:none; }
.workspace-shell .feed-search-input-row input { background:#fff; min-height:44px; font-size:14px; }
.workspace-shell .source-board-page #feed-search-submit { background:var(--text-main); }
.workspace-shell .board-toolbar { margin:10px 0 0; padding:0 0 10px; border-bottom:1px solid var(--border-light); gap:8px; flex-wrap:wrap; }
.workspace-shell .board-groups { flex-wrap:wrap; gap:2px; }
.workspace-shell .board-group { font-size:12px; min-height:40px; padding:8px 10px; border-radius:4px; }
.workspace-shell .board-group[aria-pressed="true"] { background:var(--text-main); color:#fff; }
.workspace-shell .board-group[aria-pressed="true"] small { color:inherit; }
.workspace-shell .board-management-actions button { font-size:12px; min-height:38px; }
.workspace-shell .board-meta-controls { margin:4px 0 22px; min-height:38px; font-size:12px; }
.workspace-shell .board-status-summary { font-size:11px; min-height:38px; }
.workspace-shell .feed-load-notice { background:transparent; font-size:12px; border-color:var(--border-light); }
.workspace-shell .item-full-summary { font-size:12px; line-height:1.8; margin:8px 0; }
.workspace-shell .item-full-summary summary { min-height:34px; cursor:pointer; color:var(--text-main); }
.workspace-shell .item-full-summary > div { font-size:14px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; padding:14px; background:var(--bg-subtle); border-radius:4px; }
.workspace-shell .post-stream { border-radius:0; border-color:var(--border-light); background:#fff; }
.workspace-shell .post-stream-header { padding:20px; }
.workspace-shell .post-stream-post { padding:22px 20px; }
.workspace-shell .post-stream-title { font-size:19px; line-height:1.6; }
.workspace-shell .post-stream-post .post-media-stream { max-width:400px; }
.workspace-shell .source-board { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.workspace-shell .source-panel { border-radius:0; background:transparent; border-color:var(--border-light); box-shadow:none; }
.workspace-shell .source-panel-header { background:transparent; }
.workspace-shell .source-panel .headline-link { font-size:14px; line-height:1.65; }
.workspace-shell .source-panel .headline-save { min-height:38px; width:34px; }
.workspace-shell .source-panel .headline-preview > summary,.workspace-shell .source-panel .headline-explanation > summary { min-height:30px; font-size:12px; }
.workspace-shell .source-panel .headline-preview:not([open]),.workspace-shell .source-panel .headline-explanation:not([open]) { position:static; }
.workspace-shell .source-panel .source-panel-footer { font-size:11px; }
.workspace-shell .topic-heading { margin-bottom:25px; }
.workspace-shell .topic-grid { display:flex; flex-direction:column; gap:16px; }
.workspace-shell .topic-card { background:#fff; border:1px solid var(--border-light); border-radius:4px; box-shadow:none; padding:24px; }
.workspace-shell .topic-card h3 { font-size:22px; letter-spacing:-.025em; }
.workspace-shell .topic-card p { font-size:14px; line-height:1.8; }
.workspace-shell .topic-layout { grid-template-columns:minmax(0,1fr) 300px; gap:26px; }
.workspace-shell .topic-material { background:#fff; border:1px solid var(--border-light); border-radius:4px; padding:24px; }
.workspace-shell .topic-notes { position:sticky; top:24px; align-self:start; padding:22px; background:#fff; border:1px solid var(--border-light); border-radius:4px; }
.workspace-shell .topic-note-block { border-bottom:1px solid var(--border-light); padding-bottom:18px; margin-bottom:18px; }
.workspace-shell .topic-note-block h3 { font-size:14px; }
.workspace-shell .topic-note-block p { font-size:14px; line-height:1.85; }
.workspace-shell .welcome-card { background:#fff; border:1px solid var(--border-light); border-radius:4px; margin-bottom:18px; font-size:12px; }
.workspace-shell .welcome-card summary { padding:12px 16px; min-height:42px; }
.workspace-shell .creator-page,.workspace-shell .collection-panel { min-width:0; }
.workspace-shell .empty-state { background:#fff; border:1px solid var(--border-light); border-radius:4px; padding:40px 24px; }
/* Publication masthead and horizontal navigation. */
.workspace-shell[data-workspace-tab="today"] .site-header { position:static; inset:auto; width:100%; height:auto; border:0; background:var(--bg-page); }
.workspace-shell[data-workspace-tab="today"] .site-header-inner { height:auto; width:min(100%,1440px); margin:0 auto; padding:22px 48px 0; gap:0; overflow:visible; }
.publication-topline { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--text-main); color:var(--text-muted); font-size:10px; letter-spacing:.05em; }
.workspace-publication-nav .brand { display:block; padding:0; text-align:center; }
.workspace-publication-nav .brand > svg,.workspace-publication-nav .brand-badge { display:none; }
.workspace-publication-nav .brand-title { font-family:var(--font-serif); font-size:clamp(55px,8vw,112px); font-weight:700; line-height:1.18; letter-spacing:.015em; }
.publication-deck { text-align:center; color:var(--text-muted); margin:4px 0 20px; font-size:12px; letter-spacing:.05em; }
.workspace-shell .workspace-publication-nav .main-nav { flex:0; display:flex; flex-direction:row; align-items:center; gap:9px; padding:6px 0; border-top:1px solid var(--text-main); border-bottom:1px solid var(--text-main); }
.workspace-publication-nav :is(.workspace-nav-group,.workspace-nav-bottom) { display:contents; }
.workspace-publication-nav :is(.workspace-nav-label,.workspace-guides,.workspace-brand-note) { display:none; }
.workspace-shell .workspace-publication-nav .workspace-nav-group + .workspace-nav-group { border:0; padding:0; }
.workspace-shell .workspace-publication-nav .nav-tab { width:auto; min-height:42px; justify-content:center; padding:8px 15px; color:var(--text-main); font-size:12px; border-radius:0; background:transparent; }
.workspace-shell .workspace-publication-nav .nav-tab svg { display:none; }
.workspace-shell .workspace-publication-nav .nav-tab.active { color:var(--highlight); background:transparent; }
.workspace-shell .workspace-publication-nav .nav-tab:hover { background:var(--bg-subtle); }
.workspace-publication-nav #nav-profile { margin-left:auto; }
.workspace-shell[data-workspace-tab="today"] .page-container { max-width:1440px; margin:0 auto; padding:22px 48px 70px; }
.workspace-shell[data-workspace-tab="candidates"] .page-container { max-width:none; }
.workspace-shell[data-workspace-tab="candidates"] .workspace-storage-note { margin-bottom:18px; }
#modal-root .modal-dialog { background:#fff; border-radius:6px; border:1px solid var(--border-light); }
#modal-root .btn-primary-action { background:var(--text-main); border-color:var(--text-main); box-shadow:none; border-radius:4px; font-size:13px; min-height:44px; }
#modal-root .btn-primary-action:hover { background:var(--accent-hover); }
#modal-root .btn-secondary-quiet { background:#fff; border-color:var(--border-light); border-radius:4px; min-height:44px; }
#modal-root .form-help { font-size:12px; line-height:1.75; }
.workspace-shell .source-panel-heading p,.workspace-shell .headline-kind,.workspace-shell .headline-heat,.workspace-shell .source-panel-meta small,.workspace-shell .post-stream-scope,.workspace-shell .post-stream-view-note { font-size:11px; }
@media (max-width:1200px) {
  .workspace-shell { --workspace-rail:190px; }
  .workspace-shell .site-header-inner { padding:25px 12px 18px; }
  .workspace-shell .brand-title { font-size:18px; }
  .workspace-shell .page-container { padding:26px; }
  .workspace-shell .topic-layout { grid-template-columns:minmax(0,1fr) 265px; gap:20px; }
  .workspace-shell .workspace-publication-nav .brand-title { font-size:clamp(55px,8vw,112px); }
  .workspace-shell[data-workspace-tab="today"] .site-header-inner,.workspace-shell[data-workspace-tab="today"] .page-container { padding-left:32px; padding-right:32px; }
}
@media (max-width:960px) {
  .workspace-shell { --workspace-rail:0px; }
  .workspace-shell .site-header { position:sticky; inset:auto; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--border-light); }
  .workspace-shell .site-header-inner { padding:12px 18px 0; gap:10px; overflow:visible; }
  .workspace-shell .brand { padding:0; flex-wrap:nowrap; }
  .workspace-shell .brand-badge { margin-left:auto; }
  .workspace-shell .main-nav { flex-direction:row; gap:4px; overflow-x:auto; padding-bottom:8px; }
  .workspace-shell .workspace-nav-group,.workspace-shell .workspace-nav-bottom { display:contents; }
  .workspace-shell .workspace-nav-label,.workspace-shell .workspace-guides,.workspace-shell .workspace-brand-note { display:none; }
  .workspace-shell .workspace-nav-group + .workspace-nav-group { border:0; padding:0; }
  .workspace-shell .nav-tab { width:max-content; flex:0 0 auto; gap:7px; padding:8px 10px; font-size:12px; }
  .workspace-shell .nav-tab svg { width:17px; height:17px; }
  .workspace-shell .page-container { margin:0; padding:25px 20px 52px; }
  .workspace-shell .topic-notes { position:static; }
  .workspace-shell .workspace-publication-nav .main-nav { overflow-x:auto; gap:0; }
  .workspace-shell .workspace-publication-nav .nav-tab { padding:8px 13px; }
  .workspace-publication-nav #nav-profile { margin-left:0; }
  .workspace-shell[data-workspace-tab="today"] .site-header-inner { gap:0; }
}
@media (max-width:680px) {
  .workspace-shell .page-container { padding:22px 16px 48px; }
  .workspace-shell .page-headline { font-size:28px; }
  .workspace-shell .board-intro { align-items:flex-start; flex-wrap:wrap; }
  .workspace-shell .board-intro .topic-actions { justify-content:flex-start; }
  .workspace-shell .source-board,.workspace-shell .topic-layout { display:block; }
  .workspace-shell .topic-notes { margin-top:20px; }
  .workspace-shell .topic-heading { flex-wrap:wrap; }
  .workspace-shell .workspace-resume { align-items:flex-start; flex-wrap:wrap; padding:16px; gap:12px; }
  .workspace-shell .post-stream-header { flex-direction:column; padding:16px; gap:8px; }
  .workspace-shell .post-stream-post { padding:18px 16px; }
  .workspace-shell .post-stream-title { font-size:17px; }
  .workspace-shell[data-workspace-tab="today"] .site-header-inner { padding:18px 16px 0; }
  .workspace-shell[data-workspace-tab="today"] .page-container { padding:20px 16px 48px; }
  .publication-topline { font-size:9px; letter-spacing:0; margin-bottom:16px; }
  .workspace-shell .workspace-publication-nav .brand-title { font-size:clamp(52px,14vw,75px); line-height:1.15; }
  .publication-deck { font-size:10px; margin:10px 0 20px; letter-spacing:0; }
  .workspace-shell .workspace-publication-nav .nav-tab { min-height:44px; padding:8px 12px; }
}
@media (prefers-reduced-motion:no-preference) {
  .workspace-publication-nav .brand-title { animation:publication-arrive .6s ease both; }
  .editorial-featured,.editorial-recommendations { animation:publication-arrive .45s ease both; }
  .workspace-shell .nav-tab,.workspace-shell .btn-primary-action { transition:background-color .15s ease,color .15s ease; }
}
@keyframes publication-arrive { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .workspace-shell * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
/* The ongoing topic is a compact way back to work, not another cover story. */
.workspace-shell[data-workspace-tab="today"] .workspace-resume { margin:0; padding:10px 0; border:0; border-radius:0; border-top:1px solid var(--border-light); background:transparent; gap:16px; }
.workspace-shell[data-workspace-tab="today"] .workspace-resume > div { display:flex; align-items:baseline; gap:15px; flex-wrap:wrap; }
.workspace-shell[data-workspace-tab="today"] .workspace-resume p:first-child { font-size:10px; color:var(--text-muted); }
.workspace-shell[data-workspace-tab="today"] .workspace-resume h3 { font-size:14px; margin:0; }
.workspace-shell[data-workspace-tab="today"] .workspace-resume :is(.workspace-resume-next,small) { display:none; }
.workspace-shell[data-workspace-tab="today"] .workspace-resume button { min-height:34px; font-size:11px; padding:7px 12px; background:transparent; color:var(--text-main); border-color:var(--border-light); }
@media(max-width:680px) { .workspace-shell[data-workspace-tab="today"] .workspace-resume { flex-wrap:nowrap; } .workspace-shell[data-workspace-tab="today"] .workspace-resume > div { gap:2px; display:block; } }
