/* Full design profiles: typography, density, layout and surface hierarchy.
   Source analyses and MIT notice: third_party/awesome-design-md; adaptations: DESIGN.md. */
body.studio-ui[data-design-theme=notion]{--design-canvas:#fff;--design-surface:#fff;--design-soft:#f6f5f4;--design-raised:#fafaf9;--design-ink:#1a1a1a;--design-body:#242a34;--design-muted:#505b6b;--design-line:#e5e3df;--design-primary:#5645d4;--design-hover:#4534b3;--design-nav:#f6f5f4;--design-nav-ink:#414c5c;--design-nav-active:#e9e4f5;--design-title-font:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;--design-radius:12px;--design-heading:34px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=claude]{--design-canvas:#faf9f5;--design-surface:#fffefa;--design-soft:#f1ece4;--design-raised:#f5f0e8;--design-ink:#141413;--design-body:#3d3d3a;--design-muted:#6c6a64;--design-line:#e6dfd8;--design-primary:#ad5e44;--design-hover:#a9583e;--design-nav:#eeeae2;--design-nav-ink:#666259;--design-nav-active:#e5dbce;--design-title-font:'Songti SC','STSong','Noto Serif CJK SC',Georgia,serif;--design-radius:10px;--design-heading:38px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=linear]{--design-canvas:#0f1011;--design-surface:#141516;--design-soft:#191a1b;--design-raised:#1d1f22;--design-ink:#f7f8f8;--design-body:#d0d6e0;--design-muted:#969da9;--design-line:#30333a;--design-primary:#5e6ad2;--design-hover:#7985ea;--design-nav:#101112;--design-nav-ink:#aab1bd;--design-nav-active:#252838;--design-title-font:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;--design-radius:9px;--design-heading:30px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme]{--bg:var(--design-canvas);--ink:var(--design-ink);--muted:var(--design-muted);--line:var(--design-line);--green:var(--design-primary);background:var(--design-canvas);color:var(--design-body);font-size:14px;line-height:1.7}
body.studio-ui[data-design-theme] main{padding:0 40px 56px}
body.studio-ui[data-design-theme] .workbench-topbar{background:var(--design-canvas);border-color:var(--design-line)}
body.studio-ui[data-design-theme] #sidebar-toggle{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .breadcrumb,body.studio-ui[data-design-theme] .studio-subtitle,body.studio-ui[data-design-theme] .muted{color:var(--design-muted)}
body.studio-ui[data-design-theme] .header-tags .tag{background:var(--design-soft);border-color:var(--design-line);color:var(--design-muted)}
body.studio-ui[data-design-theme] #workbench-sidebar{background:var(--design-nav);color:var(--design-nav-ink);border-right:1px solid var(--design-line);padding-top:26px}
body.studio-ui[data-design-theme] .brand{color:var(--design-ink)}
body.studio-ui[data-design-theme] .brand small,body.studio-ui[data-design-theme] .task-nav-heading{color:var(--design-muted)}
body.studio-ui[data-design-theme] .brand-icon{background:var(--design-primary);box-shadow:none}
body.studio-ui[data-design-theme] .task-nav-link,body.studio-ui[data-design-theme] .overview-nav{color:var(--design-nav-ink);font-size:13px;min-height:37px;padding:8px 12px}
body.studio-ui[data-design-theme] .task-nav-link:hover,body.studio-ui[data-design-theme] .overview-nav:hover{background:var(--design-soft);color:var(--design-ink)}
body.studio-ui[data-design-theme] .task-nav-link.is-current,body.studio-ui[data-design-theme] .overview-nav.is-current,body.studio-ui[data-design-theme][data-current-view=knowledge] .task-nav-link.studio-current{background:var(--design-nav-active);color:var(--design-ink);box-shadow:none}
body.studio-ui[data-design-theme][data-current-view=knowledge] .task-nav-link.is-current:not(.studio-current){background:transparent;color:var(--design-nav-ink);box-shadow:none}
body.studio-ui[data-design-theme] .task-nav-link .studio-icon,body.studio-ui[data-design-theme] .overview-nav>.studio-icon{filter:none;opacity:.62}
body.studio-ui[data-design-theme=linear] .task-nav-link .studio-icon,body.studio-ui[data-design-theme=linear] .overview-nav>.studio-icon{filter:invert(1);opacity:.64}
body.studio-ui[data-design-theme] #new-project,body.studio-ui[data-design-theme] #open-models,body.studio-ui[data-design-theme] #workbench-sidebar>button:not(#new-project){background:var(--design-nav);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] #projects button{color:var(--design-muted)}body.studio-ui[data-design-theme] #projects button.active{color:var(--design-ink);background:var(--design-nav-active)}
body.studio-ui[data-design-theme] .aside-label,body.studio-ui[data-design-theme] .aside-footer,body.studio-ui[data-design-theme] .aside-footer small{color:var(--design-muted);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .studio-page-header{padding:12px 0 22px;margin:34px 0 22px;background:none;border:0;border-bottom:1px solid var(--design-line);border-radius:0;box-shadow:none;gap:24px;overflow:visible}
body.studio-ui[data-design-theme] .studio-page-header:before{content:none}
body.studio-ui[data-design-theme] .studio-page-header h1{font:600 var(--design-heading)/1.3 var(--design-title-font);letter-spacing:-.8px;margin:9px 0 10px;color:var(--design-ink)}
body.studio-ui[data-design-theme] .studio-eyebrow{color:var(--design-muted);font-size:11px;letter-spacing:1.1px}
body.studio-ui[data-design-theme] .studio-project-chip{background:var(--design-soft);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] button.primary,body.studio-ui[data-design-theme] .studio-maintain-actions .primary{background:var(--design-primary);border-color:var(--design-primary);color:var(--design-primary-ink);min-height:40px;box-shadow:none}
body.studio-ui[data-design-theme] button.primary:hover{background:var(--design-hover)}
body.studio-ui[data-design-theme] button.secondary{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] button{border-radius:8px;font-size:13px;min-height:36px}
body.studio-ui[data-design-theme] input,body.studio-ui[data-design-theme] textarea,body.studio-ui[data-design-theme] select{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body);border-radius:8px}
body.studio-ui[data-design-theme] input:focus,body.studio-ui[data-design-theme] textarea:focus,body.studio-ui[data-design-theme] select:focus{border-color:var(--design-primary);outline:2px solid color-mix(in srgb,var(--design-primary),transparent 83%)}
body.studio-ui[data-design-theme] label{color:var(--design-body)}
body.studio-ui[data-design-theme] .card,body.studio-ui[data-design-theme] .studio-library{background:var(--design-surface);border-color:var(--design-line);border-radius:var(--design-radius);box-shadow:none}
body.studio-ui[data-design-theme] .card h2,body.studio-ui[data-design-theme] .card h3{color:var(--design-ink)}
body.studio-ui[data-design-theme] .card-actions{border-color:var(--design-line)}
body.studio-ui[data-design-theme] .section-number,body.studio-ui[data-design-theme] .tag{background:var(--design-soft);border-color:var(--design-line);color:var(--design-muted)}
body.studio-ui[data-design-theme] .studio-subnav{padding:0;background:none;border:0;border-bottom:1px solid var(--design-line);border-radius:0;gap:24px;width:100%;margin:0 0 24px}
body.studio-ui[data-design-theme] .studio-subtab{border:0;border-bottom:2px solid transparent;border-radius:0;min-height:43px;padding:8px 0 13px;background:none;color:var(--design-muted);box-shadow:none}
body.studio-ui[data-design-theme] .studio-subtab.active{color:var(--design-ink);border-bottom-color:var(--design-primary);background:none;box-shadow:none}
body.studio-ui[data-design-theme] .studio-stats{gap:14px;margin:0 0 25px}
body.studio-ui[data-design-theme] .studio-metric{border-radius:var(--design-radius);border:1px solid var(--design-line);padding:20px 24px;background:var(--design-raised);box-shadow:none}
body.studio-ui[data-design-theme] .studio-metric strong{color:var(--design-ink);font-size:28px;font-weight:600}
body.studio-ui[data-design-theme] .studio-metric span:not(.studio-metric-icon){color:var(--design-muted);font-size:12px}
body.studio-ui[data-design-theme] .studio-metric-icon{background:var(--design-soft);border-radius:9px}
body.studio-ui[data-design-theme=notion] .studio-metric.neutral{background:#e6e0f5;border-color:transparent}
body.studio-ui[data-design-theme=notion] .studio-metric.amber{background:#ffe8d4;border-color:transparent}
body.studio-ui[data-design-theme=notion] .studio-metric.green{background:#d9f3e1;border-color:transparent}
body.studio-ui[data-design-theme=notion] .studio-metric-icon{background:#ffffff7a}
body.studio-ui[data-design-theme=claude] .studio-stats{gap:0;border-top:1px solid var(--design-line);border-bottom:1px solid var(--design-line);padding:10px 0}
body.studio-ui[data-design-theme=claude] .studio-metric{border:0;border-right:1px solid var(--design-line);border-radius:0;background:none;padding:8px 24px}
body.studio-ui[data-design-theme=claude] .studio-metric:last-child{border-right:0}
body.studio-ui[data-design-theme=claude] .studio-metric strong{font:400 33px/1.2 var(--design-title-font)}
body.studio-ui[data-design-theme=claude] .studio-metric-icon{display:none}
body.studio-ui[data-design-theme=linear] .studio-metric{background:#17191c;padding:15px 20px}
body.studio-ui[data-design-theme=linear] .studio-metric .studio-icon{filter:invert(1)}
body.studio-ui[data-design-theme] .studio-library-toolbar{gap:10px;padding:18px 20px 8px;flex-wrap:wrap}
body.studio-ui[data-design-theme] .studio-search{max-width:none;min-width:200px;flex:1}
body.studio-ui[data-design-theme] .studio-search>input{background:var(--design-surface)!important}
body.studio-ui[data-design-theme] .studio-list-count{color:var(--design-muted);font-size:12px}
body.studio-ui[data-design-theme] .studio-row{background:var(--design-surface);border-color:var(--design-line);padding:19px 22px}
body.studio-ui[data-design-theme] .studio-row-header{background:var(--design-raised);font-size:12px;color:var(--design-muted);padding:11px 22px}
body.studio-ui[data-design-theme] .studio-row-title{color:var(--design-ink);font-size:15px;line-height:1.7}
body.studio-ui[data-design-theme] .studio-row-excerpt{color:var(--design-muted);font-size:13px;line-height:1.9}
body.studio-ui[data-design-theme] .studio-row-meta{color:var(--design-muted)}
body.studio-ui[data-design-theme] .studio-file-icon,body.studio-ui[data-design-theme] .studio-file-icon.is-regulation{background:var(--design-soft);border:0}
body.studio-ui[data-design-theme] .studio-row-actions button{background:var(--design-raised);border-color:var(--design-line);color:var(--design-body);min-height:30px!important;font-size:11px!important}
body.studio-ui[data-design-theme] .studio-row-actions button:first-child{color:var(--design-primary);border-color:var(--design-line)}
body.studio-ui[data-design-theme=linear] .studio-file-icon .studio-icon{filter:invert(1)}
body.studio-ui[data-design-theme=linear] .studio-row{padding:14px 20px}.studio-ui[data-design-theme=linear] .studio-row-title{font-size:14px}.studio-ui[data-design-theme=linear] .studio-row-meta{font-family:ui-monospace,monospace;font-size:10px}
body.studio-ui[data-design-theme] .studio-status-approved{color:#387558;background:#e3f1e8}
body.studio-ui[data-design-theme] .studio-status-draft{color:#996623;background:#fbefda}
body.studio-ui[data-design-theme=linear] .studio-status-approved{color:#91c6a5;background:#24372d}
body.studio-ui[data-design-theme=linear] .studio-status-draft{color:#d5b477;background:#3c3223}
body.studio-ui[data-design-theme=linear] .studio-status-retired{color:#a7abb5;background:#292c31}
.design-layout-controls{display:flex;gap:3px;padding:3px;background:var(--design-soft);border-radius:7px}
body.studio-ui[data-design-theme] .design-layout-button{padding:6px 9px;min-height:30px;font-size:11px;background:none;color:var(--design-muted)}
body.studio-ui[data-design-theme] .design-layout-button.active{background:var(--design-surface);color:var(--design-ink);box-shadow:0 1px 3px #0000000c}
.design-layout-button .studio-icon{width:14px;height:14px}
body.studio-ui[data-knowledge-layout=cards] .studio-library{border:0;background:none;overflow:visible}
body.studio-ui[data-knowledge-layout=cards] .studio-library-toolbar{padding:0 0 8px}
body.studio-ui[data-knowledge-layout=cards] .studio-list-count{padding:0;margin:5px 0 18px}
body.studio-ui[data-knowledge-layout=cards] .studio-knowledge-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.studio-ui[data-knowledge-layout=cards] .studio-row-header{display:none}
body.studio-ui[data-knowledge-layout=cards] .studio-row{display:flex;flex-direction:column;align-items:stretch;gap:15px;border:1px solid var(--design-line);border-radius:12px;padding:22px;min-height:230px;position:relative}
body.studio-ui[data-knowledge-layout=cards] .studio-row-summary{flex:1}
body.studio-ui[data-knowledge-layout=cards] .studio-row-excerpt{-webkit-line-clamp:3;font-size:13px}
body.studio-ui[data-knowledge-layout=cards] .studio-row-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.studio-ui[data-knowledge-layout=cards] .studio-row-status{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
body.studio-ui[data-knowledge-layout=cards] .studio-row-actions{padding-top:12px!important;border-top:1px solid var(--design-line);justify-content:flex-end!important}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+2){border-top:4px solid #d6b6f6}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+3){border-top:4px solid #a9d5ba}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+4){border-top:4px solid #e8bd9c}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+1){border-top:4px solid #aecbdd}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+2) .studio-file-icon{background:#e6e0f5}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+3) .studio-file-icon{background:#d9f3e1}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+4) .studio-file-icon{background:#ffe8d4}
body.studio-ui[data-design-theme] .studio-research-controls{background:var(--design-raised);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .research-topic{background:var(--design-surface);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .research-topic strong{color:var(--design-body)}
body.studio-ui[data-design-theme] .studio-research-results #research-status{background:var(--design-soft);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .research-result{background:var(--design-surface);border:1px solid var(--design-line);border-radius:var(--design-radius)}
body.studio-ui[data-design-theme] .research-result>a:first-child{color:var(--design-ink)}
body.studio-ui[data-design-theme] .research-result>p{color:var(--design-muted)}
body.studio-ui[data-design-theme] .research-result .research-toolbar{border-color:var(--design-line)}
body.studio-ui[data-design-theme] .research-result .research-toolbar button:last-child{background:var(--design-soft);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .research-result a.research-source,body.studio-ui[data-design-theme] .studio-detail-meta a{color:var(--design-primary)}
body.studio-ui[data-design-theme] #knowledge-qa{background:var(--design-surface);border:1px solid var(--design-line);border-radius:16px;padding:38px 44px;box-shadow:none}
body.studio-ui[data-design-theme] .qa-heading{border-color:var(--design-line)}
body.studio-ui[data-design-theme] #knowledge-qa .qa-icon{background:var(--design-soft);color:var(--design-primary)}
body.studio-ui[data-design-theme] #qa-question{background:var(--design-surface);color:var(--design-body);border-color:var(--design-line);font-size:16px;line-height:1.9}
body.studio-ui[data-design-theme] .qa-example,body.studio-ui[data-design-theme] .qa-user-question{background:var(--design-raised);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .qa-answer-paragraph{color:var(--design-body);font-size:16px;line-height:2}
body.studio-ui[data-design-theme] #qa-result details{border-color:var(--design-line)}
body.studio-ui[data-design-theme=claude] #knowledge-qa h2{font-family:var(--design-title-font);font-size:30px;font-weight:500}
body.studio-ui[data-design-theme] .chapter-navigation,body.studio-ui[data-design-theme] .chapter-assistant{background:var(--design-raised);border:1px solid var(--design-line);color:var(--design-body);box-shadow:none}
body.studio-ui[data-design-theme] .chapter-assistant textarea{background:var(--design-surface);color:var(--design-body)}
body.studio-ui[data-design-theme] .chapter-assistant .workspace-column-title{color:var(--design-primary)}
body.studio-ui[data-design-theme] .chapter-paper{border-top:1px solid #e6dfd8;border-color:#e6dfd8;background:#fffefa;color:#252523;box-shadow:0 5px 18px #00000005}
body.studio-ui[data-design-theme] .chapter-paper h3,body.studio-ui[data-design-theme] .chapter-paper h4,body.studio-ui[data-design-theme] .reading-content{color:#252523}
body.studio-ui[data-design-theme] .reading-content{font-size:16px;line-height:2.1}
body.studio-ui[data-design-theme=claude] .reading-content{font-family:'Songti SC','STSong',serif;font-size:17px;line-height:2.15}
body.studio-ui[data-design-theme] .chapter-workflow-controls{background:#f7f5f0;border-color:#e6dfd8;color:#514c44}
body.studio-ui[data-design-theme] .studio-report-tools{background:var(--design-surface);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .studio-report-tools>summary{color:var(--design-body)}
body.studio-ui[data-design-theme] .node-progress-help,body.studio-ui[data-design-theme] .studio-report-tools .node-progress-help{background:var(--design-raised);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .workflow-step{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .dropzone{background:var(--design-raised);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .file-row{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .studio-edit-dialog,body.studio-ui[data-design-theme] .studio-detail-dialog{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme] .studio-dialog-bar,body.studio-ui[data-design-theme] .studio-detail-actions{background:var(--design-raised);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .studio-detail-heading h2,body.studio-ui[data-design-theme] .studio-detail-body{color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .studio-detail-meta dt,body.studio-ui[data-design-theme] .studio-detail-meta dd{color:var(--design-muted)}
body.studio-ui[data-design-theme] .studio-help,body.studio-ui[data-design-theme] .section-description{color:var(--design-muted)}
body.studio-ui[data-design-theme] .studio-empty,body.studio-ui[data-design-theme] .studio-empty h3{color:var(--design-muted)}
body.studio-ui[data-design-theme=linear] .studio-icon{filter:invert(.85)}
body.studio-ui[data-design-theme=linear] .chapter-paper .studio-icon{filter:none}
body.studio-ui[data-design-theme=linear] #professional-workspace>.workspace-tabs button{background:#1d2125;border-color:#343a42;color:#bbc4ce}
body.studio-ui[data-design-theme=linear] #professional-workspace>.workspace-tabs button.active{background:#262b3e;border-color:#6b75b1;color:#d4daff;box-shadow:inset 0 3px #7884d6}
body.studio-ui[data-design-theme] #project-notice{background:var(--design-raised);border-color:var(--design-line);color:var(--design-body)}
/* Theme chooser: local miniature previews, no brand graphics or remote fonts. */
body.studio-ui[data-design-theme] .design-appearance-button{background:var(--design-surface);border:1px solid var(--design-line);color:var(--design-body);font-size:12px;min-height:34px;padding:6px 10px}
.design-appearance-mark{display:flex;align-items:center;gap:2px}.design-appearance-mark i{width:7px;height:15px;border-radius:2px;background:#d6b6f6;transform:rotate(14deg)}.design-appearance-mark i:nth-child(2){background:#cc785c;transform:rotate(14deg) translateY(-2px)}.design-appearance-mark i:nth-child(3){background:#5e6ad2}
.design-picker{width:min(940px,calc(100vw - 40px));padding:28px;border:1px solid var(--design-line);border-radius:18px;background:var(--design-canvas);color:var(--design-body);max-height:90vh;overflow:auto;box-shadow:0 25px 100px #00000030}
.design-picker::backdrop{background:#17171966;backdrop-filter:blur(4px)}
.design-picker-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.design-picker-heading h2{font-size:25px;line-height:1.4;margin:0 0 8px;color:var(--design-ink)}.design-picker-heading p{font-size:13px;color:var(--design-muted);margin:0}
.design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.studio-ui[data-design-theme] .design-choice{display:block;text-align:left;background:var(--design-surface);padding:8px;border:2px solid var(--design-line);border-radius:12px;color:var(--design-body);white-space:normal;min-width:0}
body.studio-ui[data-design-theme] .design-choice.selected{border-color:var(--design-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--design-primary),transparent 90%)}
.design-miniature{height:145px;display:grid;grid-template-columns:44px minmax(0,1fr);border-radius:7px;overflow:hidden;border:1px solid #0000000b;background:#fff}
.design-mini-side{padding:16px 8px;background:#f1f0ee;display:flex;flex-direction:column;gap:12px}.design-mini-side b{width:13px;height:13px;background:#5645d4;border-radius:4px;margin-bottom:6px}.design-mini-side i{height:3px;background:#bdbbb7;width:22px}
.design-mini-main{padding:20px 12px}.design-mini-title{width:62%;height:9px;background:#26252a;margin-bottom:8px;border-radius:2px}.design-mini-caption{width:80%;height:3px;background:#bcb9c1;margin-bottom:18px}.design-mini-tiles{display:flex;gap:6px;margin-bottom:14px}.design-mini-tiles i{flex:1;height:30px;background:#e6e0f5;border-radius:4px}.design-mini-tiles i:nth-child(2){background:#ffe8d4}.design-mini-tiles i:nth-child(3){background:#d9f3e1}.design-mini-row{height:5px;border-radius:2px;background:#eeedf0;margin:7px 0;width:100%}
[data-preview=claude] .design-miniature{background:#faf9f5}[data-preview=claude] .design-mini-side{background:#eee8de}[data-preview=claude] .design-mini-side b{background:#cc785c}[data-preview=claude] .design-mini-title{background:#4a4238}[data-preview=claude] .design-mini-tiles{border-top:1px solid #ded7cc;border-bottom:1px solid #ded7cc;gap:8px;padding:9px 0}[data-preview=claude] .design-mini-tiles i{height:14px;background:#e8dfd2}[data-preview=claude] .design-mini-row{background:#e6dfd5}
[data-preview=linear] .design-miniature{background:#141516}[data-preview=linear] .design-mini-side{background:#0f1011}[data-preview=linear] .design-mini-side b{background:#5e6ad2}[data-preview=linear] .design-mini-side i{background:#41454e}[data-preview=linear] .design-mini-title{background:#d6d9e0}[data-preview=linear] .design-mini-caption{background:#505663}[data-preview=linear] .design-mini-tiles i{background:#242732;border:1px solid #373b4b;border-radius:3px}[data-preview=linear] .design-mini-row{background:#30333a}
.design-choice-copy{padding:15px 10px 11px;position:relative}.design-choice-copy strong{display:block;font-size:15px;font-weight:650}.design-choice-copy>span{display:block;font-size:11px;color:var(--design-muted);margin-top:3px}.design-choice-copy p{font-size:11px;line-height:1.8;color:var(--design-muted);margin:10px 0 0}
.design-picker-note{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--design-line);padding-top:20px;margin-top:26px;font-size:11px;color:var(--design-muted)}
@media(max-width:1250px){body.studio-ui[data-design-theme] main{padding:0 26px 40px}body.studio-ui[data-design-theme] .studio-library-toolbar>select{max-width:160px}.design-layout-button{padding:6px!important}.design-layout-button .studio-icon{display:none}}
@media(max-width:950px){body.studio-ui[data-knowledge-layout=cards] .studio-knowledge-list{grid-template-columns:1fr}.design-options{gap:10px}.design-picker{padding:20px}}
@media(max-width:760px){body.studio-ui[data-design-theme] main{padding:0 16px 32px}body.studio-ui[data-design-theme] .studio-page-header{padding:5px 0 18px;margin:24px 0 18px}body.studio-ui[data-design-theme] .studio-page-header h1{font-size:28px}.design-options{grid-template-columns:1fr}.design-choice{display:grid!important;grid-template-columns:125px minmax(0,1fr);gap:10px;align-items:center}.design-miniature{height:110px;grid-template-columns:28px 1fr}.design-mini-side{padding:12px 6px}.design-mini-side i{width:15px}.design-mini-main{padding:16px 8px}.design-choice-copy{padding:8px}.design-picker-heading h2{font-size:21px}.design-picker-note{align-items:flex-start}.design-picker-note span{max-width:200px}body.studio-ui[data-design-theme] .studio-metric{padding:14px 18px}body.studio-ui[data-design-theme=claude] .studio-metric{border-right:0;border-bottom:1px solid var(--design-line)}body.studio-ui[data-design-theme=claude] .studio-metric:last-child{border-bottom:0}body.studio-ui[data-design-theme] #knowledge-qa{padding:24px 20px}body.studio-ui[data-design-theme] .design-appearance-button{font-size:11px;max-width:160px}.design-picker{padding:18px}.design-layout-controls{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.design-picker *,body.studio-ui[data-design-theme] *{transition:none!important;animation:none!important}}
body.studio-ui[data-knowledge-layout=cards] .studio-row.studio-row-header{display:none!important}
body.studio-ui[data-design-theme] button.primary .studio-icon{filter:invert(1);opacity:.9}
body.studio-ui[data-design-theme] dialog:not(.design-picker){background:var(--design-surface);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme=linear] .studio-row-actions button:first-child,body.studio-ui[data-design-theme=linear] .research-result a.research-source,body.studio-ui[data-design-theme=linear] .studio-detail-meta a{color:#aeb7ff}
body.studio-ui[data-design-theme=linear] .template-body-card,body.studio-ui[data-design-theme=linear] .structured-bulk-panel,body.studio-ui[data-design-theme=linear] .evidence-item,body.studio-ui[data-design-theme=linear] .test-record-panel{background:var(--design-surface);border-color:var(--design-line);color:var(--design-body)}
body.studio-ui[data-design-theme=linear] #paragraph-source-dialog blockquote,body.studio-ui[data-design-theme=linear] .model-result{background:var(--design-raised);color:var(--design-body)}
body.studio-ui[data-design-theme=linear] .section-description,body.studio-ui[data-design-theme=linear] .studio-row-status small{color:var(--design-muted)}

/* Impeccable Operate/Read: actionable counts, truthful state, readable prose. */
body.studio-ui[data-design-theme] .studio-page-header{margin-top:26px;padding-top:2px;padding-bottom:20px}
body.studio-ui[data-design-theme] .studio-page-header h1{margin-top:0}
body.studio-ui[data-design-theme] .studio-stats.quality-summary{display:flex;align-items:center;gap:0;border:0;background:none;margin:0 0 20px;padding:0;flex-wrap:wrap}
body.studio-ui[data-design-theme] .quality-summary-item{display:inline-flex;align-items:baseline;gap:8px;border:0;border-right:1px solid var(--design-line);background:none;border-radius:0;padding:6px 22px;color:var(--design-muted);min-height:36px}
body.studio-ui[data-design-theme] .quality-summary-item:first-child{padding-left:0}
body.studio-ui[data-design-theme] .quality-summary-item:last-child{border-right:0}
body.studio-ui[data-design-theme] .quality-summary-item strong{font-size:21px;font-variant-numeric:tabular-nums;color:var(--design-ink);font-weight:550;line-height:1.3}
body.studio-ui[data-design-theme] .quality-summary-item span{font-size:12px}
body.studio-ui[data-design-theme] .quality-summary-item:hover{color:var(--design-primary);background:none;filter:none}
body.studio-ui[data-design-theme] .quality-summary-item[data-status=review] strong{color:#98622c}
body.studio-ui[data-design-theme=linear] .quality-summary-item[data-status=review] strong{color:#dbb272}
body.studio-ui[data-design-theme] input::placeholder,body.studio-ui[data-design-theme] textarea::placeholder{color:var(--design-muted);opacity:1}
body.studio-ui[data-design-theme] input,body.studio-ui[data-design-theme] textarea{caret-color:var(--design-primary)}
body.studio-ui[data-design-theme] ::selection{background:color-mix(in srgb,var(--design-primary),transparent 78%);color:var(--design-ink)}
body.studio-ui[data-design-theme] button:focus-visible,body.studio-ui[data-design-theme] a:focus-visible{outline:2px solid var(--design-primary);outline-offset:3px}
body.studio-ui[data-design-theme] .studio-row-title{line-height:1.6}
body.studio-ui[data-design-theme] .studio-row-actions button{min-height:32px!important;padding:6px 10px!important}
body.studio-ui[data-design-theme] .studio-row-excerpt{max-width:70ch;line-height:1.85}
body.studio-ui[data-design-theme] .studio-status{font-size:12px}
body.studio-ui[data-design-theme] .studio-row-status small{font-size:11px;color:var(--design-muted)}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+2){border:1px solid #e5deee;background:#faf8fd}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+3){border:1px solid #dfe9e1;background:#f7fbf7}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+4){border:1px solid #eddfd5;background:#fffbf6}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+1){border:1px solid #dce5eb;background:#f7fafc}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+2) :is(.studio-row-excerpt,.studio-row-meta,.studio-row-status small){color:#645970}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+3) :is(.studio-row-excerpt,.studio-row-meta,.studio-row-status small){color:#54665b}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+4) :is(.studio-row-excerpt,.studio-row-meta,.studio-row-status small){color:#736052}
body.studio-ui[data-design-theme=notion][data-knowledge-layout=cards] .studio-row:nth-child(4n+1) :is(.studio-row-excerpt,.studio-row-meta,.studio-row-status small){color:#536576}
body.studio-ui[data-design-theme] .studio-detail-dialog{position:fixed;inset:76px 16px 16px auto;margin:0;width:min(580px,calc(100vw - 32px));max-height:calc(100vh - 92px);border-radius:12px;box-shadow:0 12px 40px #10162229}
body.studio-ui[data-design-theme] .studio-detail-dialog::backdrop{background:none;backdrop-filter:none}
body.studio-ui[data-design-theme] .studio-detail-body{font-size:15px;line-height:2;max-width:75ch}
body.studio-ui.editorial-focus[data-current-view=draft] .chapter-workspace{display:block;max-width:940px;margin:0 auto}
body.studio-ui.editorial-focus[data-current-view=draft] .chapter-navigation,body.studio-ui.editorial-focus[data-current-view=draft] .chapter-assistant,body.studio-ui.editorial-focus[data-current-view=draft] .studio-report-tools{display:none}
body.studio-ui.editorial-focus[data-current-view=draft] .chapter-paper{width:100%;max-width:none;min-height:80vh;padding:36px 48px}
body.studio-ui[data-design-theme] .paper-mode-bar .focus-toggle{margin-left:auto;min-height:32px;padding:6px 10px}
body.studio-ui[data-design-theme=linear] .chapter-paper .paper-mode{background:#f4f1eb;color:#504b43;border:1px solid transparent}
body.studio-ui[data-design-theme=linear] .chapter-paper .paper-mode.active{border-color:#c4bfb5;background:#e9e4db;color:#292722}
body.studio-ui[data-design-theme=linear] .chapter-paper .focus-toggle{background:#f4f1eb;color:#504b43;border:1px solid #e0d9cc}
@media(max-width:760px){body.studio-ui[data-design-theme] .quality-summary-item{padding:6px 12px;gap:6px}body.studio-ui[data-design-theme] .quality-summary-item:first-child{padding-left:0}body.studio-ui[data-design-theme] .quality-summary-item strong{font-size:20px}body.studio-ui[data-design-theme] .quality-summary-item span{font-size:11px}body.studio-ui.editorial-focus[data-current-view=draft] .chapter-paper{padding:24px 18px}body.studio-ui[data-design-theme] .studio-detail-dialog{inset:66px 8px 8px auto;width:calc(100vw - 16px);max-height:calc(100vh - 74px)}}
body.studio-ui[data-design-theme] .quality-summary-item.active{background:var(--design-soft);border-radius:6px;color:var(--design-ink)}
body.studio-ui[data-design-theme] .studio-knowledge-list>.studio-empty{grid-column:1/-1}
body.studio-ui[data-design-theme] .studio-detail-dialog{z-index:20}
body.studio-ui[data-design-theme] #professional-workspace>.workspace-tabs button.active{box-shadow:none}

body.studio-ui[data-design-theme] .chapter-paper[data-mode=read]>#document-image-library,body.studio-ui[data-design-theme] .chapter-paper[data-mode=read]>#source-table-reuse-panel,body.studio-ui[data-design-theme] .chapter-paper[data-mode=read]>.inserted-document-images{display:none}
body.studio-ui.editorial-focus[data-current-view=draft] #chapter-workflow-controls,body.studio-ui.editorial-focus[data-current-view=draft] #subsection-edit-toolbar,body.studio-ui.editorial-focus[data-current-view=draft] #document-image-library,body.studio-ui.editorial-focus[data-current-view=draft] #source-table-reuse-panel{display:none}
body.studio-ui[data-design-theme] .chapter-paper .reading-meta{padding-bottom:12px;margin-bottom:18px;line-height:1.7;height:auto;font-size:12px;color:#706b63}
@media(max-width:760px){body.studio-ui[data-design-theme] #workbench-sidebar{position:fixed;inset:60px auto 0 0;width:min(280px,85vw);max-height:none;height:calc(100dvh - 60px);z-index:30;display:flex;overflow:hidden;padding:20px 14px 16px;box-shadow:12px 0 30px #1118271c;border-right:1px solid var(--design-line)}body.studio-ui[data-design-theme] .shell.sidebar-collapsed #workbench-sidebar{display:none}body.studio-ui[data-design-theme] .task-navigation{flex:1;min-height:120px;overflow:auto}body.studio-ui[data-design-theme] #projects{max-height:90px;flex:none}body.studio-ui[data-design-theme] .aside-footer{padding-top:10px}body.studio-ui[data-design-theme] .studio-library-toolbar>select{min-width:105px;max-width:none}body.studio-ui[data-design-theme] .studio-search{flex-basis:100%;min-width:100%;max-width:none}}

/* Readable answer surfaces and neutral text across appearance profiles. */
body.studio-ui[data-design-theme] #qa-result:not(:empty){background:var(--design-surface);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] #qa-result>p,body.studio-ui[data-design-theme] #qa-result>strong{color:var(--design-body)}
body.studio-ui[data-design-theme] #qa-result>.muted{color:var(--design-muted)}
body.studio-ui[data-design-theme] #qa-result details{background:var(--design-raised);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] #qa-result details summary{color:var(--design-body)}
body.studio-ui[data-design-theme] #qa-result .evidence-item{background:var(--design-surface);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .qa-answer-label{color:var(--design-primary)}
body.studio-ui[data-design-theme=linear] .qa-answer-label{color:#aeb7ff}
body.studio-ui[data-design-theme] .qa-heading p{color:var(--design-muted)}
body.studio-ui[data-design-theme] .qa-user-question{border:1px solid var(--design-line)}
body.studio-ui[data-design-theme=notion] .studio-row :is(.studio-row-excerpt,.studio-row-meta,.studio-row-status small){color:var(--design-muted)}
body.studio-ui[data-design-theme=notion] .chapter-paper :is(.reading-meta,.reading-paragraph){color:#343d49}
body.studio-ui[data-design-theme] #qa-result .evidence-item p{color:var(--design-muted)}
/* Apple Design reference: immediate press feedback without delaying actions. */
body.studio-ui[data-design-theme] :is(.design-choice,.studio-subtab,.design-layout-button,button.primary):active:not(:disabled){filter:brightness(.92)}
@media(prefers-contrast:more){body.studio-ui[data-design-theme] :is(input,textarea,select,button.secondary,#qa-result details){border-color:var(--design-muted)}}

/* Two additional workspaces adapted from the archived Apple / Stripe analyses. */
body.studio-ui[data-design-theme=apple]{--design-canvas:#f5f5f7;--design-surface:#fff;--design-soft:#ededf0;--design-raised:#fafafc;--design-ink:#1d1d1f;--design-body:#303036;--design-muted:#5b5b65;--design-line:#dcdce2;--design-primary:#0066cc;--design-hover:#0054a8;--design-nav:#f5f5f7;--design-nav-ink:#474750;--design-nav-active:#e1ebf8;--design-title-font:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;--design-radius:18px;--design-heading:36px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=apple] .studio-page-header{padding:12px 0 28px;margin-bottom:28px;border-bottom:0}
body.studio-ui[data-design-theme=apple] :is(.studio-library,#knowledge-qa){border:0;border-radius:20px;box-shadow:0 6px 24px #1d1d1f08}
body.studio-ui[data-design-theme=apple] .studio-subnav{gap:6px;border:0;width:fit-content;background:var(--design-soft);border-radius:12px;padding:4px}
body.studio-ui[data-design-theme=apple] .studio-subtab{padding:9px 20px;min-height:36px;border:0;border-radius:9px}
body.studio-ui[data-design-theme=apple] .studio-subtab.active{background:#fff;box-shadow:0 2px 5px #1d1d1f12}
body.studio-ui[data-design-theme=apple] .studio-row{padding:24px 26px}
body.studio-ui[data-design-theme=apple] :is(button.primary,button.secondary,.qa-example){border-radius:999px}
body.studio-ui[data-design-theme=apple] :is(input,textarea,select){border-radius:12px}
body.studio-ui[data-design-theme=apple] #knowledge-qa{max-width:980px}
body.studio-ui[data-design-theme=apple] :is(.qa-answer-paragraph,.studio-detail-body){font-size:16px;line-height:2}
body.studio-ui[data-design-theme=apple] .chapter-assistant{border:0;border-radius:18px}
body.studio-ui[data-design-theme=apple] .chapter-paper{border-radius:12px;box-shadow:0 8px 28px #1d1d1f0a}
body.studio-ui[data-design-theme=stripe]{--design-canvas:#f3f6fb;--design-surface:#fff;--design-soft:#edf0fa;--design-raised:#f7f9fd;--design-ink:#0a2540;--design-body:#263c50;--design-muted:#526579;--design-line:#dbe3ee;--design-primary:#5743c9;--design-hover:#4432aa;--design-nav:#0a2540;--design-nav-ink:#d5e2ef;--design-nav-active:#284661;--design-title-font:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;--design-radius:8px;--design-heading:30px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=stripe] #workbench-sidebar :is(.brand,.brand small,.task-nav-heading,.aside-label,.aside-footer,.aside-footer small){color:#b8cbdc}
body.studio-ui[data-design-theme=stripe] #workbench-sidebar :is(.brand,.task-nav-link.is-current,.overview-nav.is-current,#projects button.active){color:#fff}
body.studio-ui[data-design-theme=stripe] #workbench-sidebar :is(#new-project,#open-models,#projects button,button){color:#d5e2ef;border-color:#38516a}
body.studio-ui[data-design-theme=stripe] #workbench-sidebar :is(.task-nav-link:hover,.overview-nav:hover){background:#203f5b;color:#fff}
body.studio-ui[data-design-theme=stripe] #workbench-sidebar .studio-icon{filter:brightness(0) invert(1);opacity:.85}
body.studio-ui[data-design-theme=stripe] .studio-page-header{margin-top:20px;padding-bottom:18px}
body.studio-ui[data-design-theme=stripe] .studio-library-toolbar{background:#f7f9fd;padding:16px;border-bottom:1px solid var(--design-line)}
body.studio-ui[data-design-theme=stripe] .studio-row{padding:16px 20px}
body.studio-ui[data-design-theme=stripe] .studio-row-header{background:#edf2f8;color:#3b536b;font-weight:600}
body.studio-ui[data-design-theme=stripe] .studio-subtab.active{border-bottom-width:3px;color:var(--design-primary)}
body.studio-ui[data-design-theme=stripe] .studio-library{box-shadow:0 4px 18px #0a254009}
body.studio-ui[data-design-theme=stripe] .chapter-navigation{background:#fff}
body.studio-ui[data-design-theme=stripe] .chapter-assistant{background:#edf1fa}
body.studio-ui[data-design-theme=stripe] #knowledge-qa{border-radius:10px;padding:30px 36px}
body.studio-ui[data-design-theme=stripe] :is(.quality-summary-item strong,.studio-row-meta){font-variant-numeric:tabular-nums}
[data-preview=apple] .design-miniature{background:#f5f5f7}[data-preview=apple] .design-mini-side{background:#e9e9ed}[data-preview=apple] .design-mini-side b{background:#0066cc;border-radius:50%}[data-preview=apple] .design-mini-title{background:#1d1d1f;width:50%}[data-preview=apple] .design-mini-tiles i{background:#fff;border-radius:8px;height:34px}[data-preview=apple] .design-mini-row{background:#dddde3}
[data-preview=stripe] .design-miniature{background:#f3f6fb}[data-preview=stripe] .design-mini-side{background:#0a2540}[data-preview=stripe] .design-mini-side b{background:#a698ff}[data-preview=stripe] .design-mini-side i{background:#91aac2}[data-preview=stripe] .design-mini-title{background:#0a2540}[data-preview=stripe] .design-mini-tiles i{background:#e6e2fa;border-radius:2px}[data-preview=stripe] .design-mini-row{background:#d9e2ed;height:7px}
@media(max-width:760px){body.studio-ui[data-design-theme=apple] .studio-subtab{padding:8px 13px}body.studio-ui[data-design-theme=stripe] #knowledge-qa{padding:24px 20px}body.studio-ui[data-design-theme=apple] .studio-row{padding:20px}}

/* Five template grammars: visual identity includes composition, type and density. */
body.studio-ui[data-design-theme]{--ui-text:15px;--ui-small:13px;--ui-prose:17px;--ui-leading:1.9}
body.studio-ui[data-type-size=standard]{--ui-text:14px;--ui-small:12px;--ui-prose:16px}
body.studio-ui[data-type-size=large]{--ui-text:17px;--ui-small:15px;--ui-prose:19px}
body.studio-ui[data-design-theme] :is(label,input,textarea,select,button){font-size:var(--ui-text)}
body.studio-ui[data-design-theme] :is(.studio-row-meta,.studio-list-count,.studio-subtitle,.muted,.section-description){font-size:var(--ui-small);line-height:1.8}
body.studio-ui[data-design-theme] :is(.qa-answer-paragraph,.studio-detail-body,.reading-paragraph){font-size:var(--ui-prose);line-height:var(--ui-leading)}
body.studio-ui[data-design-theme] .studio-row-title{font-size:calc(var(--ui-text) + 1px);font-weight:650}
body.studio-ui[data-design-theme] .studio-row-excerpt{font-size:var(--ui-text);line-height:1.85}
.design-type-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--design-line)}
.design-type-controls strong{font-size:14px;margin-right:12px}.design-type-controls button.active{background:var(--design-nav-active)!important;color:var(--design-ink)!important;border-color:var(--design-primary)!important}
body.studio-ui[data-design-theme] .qa-kicker{display:none}
/* Playful workspace: coloured category surfaces, generous cards and visual file tiles. */
body.studio-ui[data-design-theme=notion] .studio-page-header{background:#f0ecfc;border:0;border-radius:18px;padding:28px;margin-top:24px}
body.studio-ui[data-design-theme=notion] .studio-page-header h1{font-size:34px;font-weight:750;letter-spacing:-.5px}
body.studio-ui[data-design-theme=notion] .studio-project-chip{background:#fff;border:0}
body.studio-ui[data-design-theme=notion] .studio-knowledge-list{gap:18px}
body.studio-ui[data-design-theme=notion] .studio-file-icon{width:50px;height:56px;border-radius:12px;background:#fff!important;box-shadow:0 4px 10px #3429550a}
body.studio-ui[data-design-theme=notion] .studio-file-icon img{width:24px;height:24px}
body.studio-ui[data-design-theme=notion] .studio-row-excerpt{-webkit-line-clamp:4}
body.studio-ui[data-design-theme=notion] .visual-file-type:nth-child(3n+1){background:#eee8fc}body.studio-ui[data-design-theme=notion] .visual-file-type:nth-child(3n+2){background:#fcebdc}body.studio-ui[data-design-theme=notion] .visual-file-type:nth-child(3n+3){background:#e4f3e9}
/* Book manuscript: restrained bronze, serif reading, long horizontal entries. */
body.studio-ui[data-design-theme=claude]{--design-primary:#885134;--design-hover:#704129;--design-line:#d9ccba;--design-canvas:#eee8dd;--design-surface:#fffdf7;--design-soft:#e8dfd0;--design-radius:3px}
body.studio-ui[data-design-theme=claude] .studio-page-header{padding:24px 0 28px;border-bottom:2px solid #9b7b55}
body.studio-ui[data-design-theme=claude] .studio-page-header h1{font-size:40px;font-weight:500;letter-spacing:1px}
body.studio-ui[data-design-theme=claude] :is(.studio-row-title,.studio-row-excerpt,.qa-answer-paragraph,.studio-detail-body){font-family:'Songti SC','STSong','Noto Serif CJK SC',Georgia,serif}
body.studio-ui[data-design-theme=claude] .studio-row{padding:28px 30px;border-top:1px solid #dfd3c2}
body.studio-ui[data-design-theme=claude] .studio-row-title{font-size:calc(var(--ui-text) + 3px);font-weight:600}
body.studio-ui[data-design-theme=claude] .studio-row-excerpt{line-height:2.05;-webkit-line-clamp:3}
body.studio-ui[data-design-theme=claude] .studio-library{border-top:3px solid #9b7b55;border-radius:0}
body.studio-ui[data-design-theme=claude] .studio-file-icon{background:none;border:1px solid #d9ccba;width:40px;height:52px;border-radius:1px}
body.studio-ui[data-design-theme=claude] .chapter-paper{border:1px solid #d7cbb7;border-radius:0;box-shadow:0 6px 20px #43311f0c}
body.studio-ui[data-design-theme=claude] .reading-title{font-family:'Songti SC','STSong',serif;font-weight:600}
/* Technology workspace: horizontal command tabs, cyan signals, compact rows. */
body.studio-ui[data-design-theme=linear]{--design-primary:#137a92;--design-hover:#10667a;--design-nav-active:#153a46;--design-muted:#a2adbb;--design-body:#dce5ef;--design-line:#2b3a48;--design-radius:5px;--design-canvas:#0c121b;--design-surface:#111c28;--design-raised:#162433;--design-soft:#192b3b;--design-nav:#0b131e}
body.studio-ui[data-design-theme=linear] .studio-page-header{border-bottom:1px solid #335263;padding-bottom:18px}
body.studio-ui[data-design-theme=linear] .studio-page-header h1{font-size:28px;font-weight:650;letter-spacing:.3px}
body.studio-ui[data-design-theme=linear] .studio-project-chip{color:#9be0ed;background:#13303d;border-color:#295365}
body.studio-ui[data-design-theme=linear] .studio-subnav{gap:0;border:1px solid #2b3a48;border-radius:6px;width:fit-content;background:#0b1622}
body.studio-ui[data-design-theme=linear] .studio-subtab{padding:10px 18px;border:0;border-right:1px solid #2b3a48}
body.studio-ui[data-design-theme=linear] .studio-subtab.active{background:#164252;color:#b8f2fc}
body.studio-ui[data-design-theme=linear] .studio-row{padding:12px 18px;gap:14px}
body.studio-ui[data-design-theme=linear] .studio-row-excerpt{-webkit-line-clamp:1;font-size:var(--ui-small)}
body.studio-ui[data-design-theme=linear] .studio-file-icon{width:30px;height:34px;background:#193646;border:1px solid #2b566b;border-radius:3px}
body.studio-ui[data-design-theme=linear] .studio-icon{filter:brightness(0) invert(1);opacity:.8}
body.studio-ui[data-design-theme=linear] .studio-row-actions button:first-child,body.studio-ui[data-design-theme=linear] .qa-answer-label{color:#9be0ed}
body.studio-ui[data-design-theme=linear] .chapter-paper .studio-icon{filter:none}
/* Minimal reading room: full-width catalog, bold titles, no multi-coloured cards. */
body.studio-ui[data-design-theme=apple] .studio-page-header{align-items:flex-end;margin:36px 0 30px;padding:0 0 28px}
body.studio-ui[data-design-theme=apple] .studio-page-header h1{font-size:38px;font-weight:750;letter-spacing:-1px}
body.studio-ui[data-design-theme=apple] .studio-library{background:transparent;box-shadow:none;border:0}
body.studio-ui[data-design-theme=apple] .studio-library-toolbar{padding:0 0 22px;border:0}
body.studio-ui[data-design-theme=apple] .studio-list-count{padding:0 0 14px}
body.studio-ui[data-design-theme=apple] .studio-row:not(.studio-row-header){background:#fff;border:0;border-bottom:1px solid #dcdce2;padding:30px;gap:28px;grid-template-columns:minmax(0,1fr) 150px 190px}
body.studio-ui[data-design-theme=apple] .studio-row-header{display:none!important}
body.studio-ui[data-design-theme=apple] .studio-file-icon{height:94px;width:72px;border-radius:6px;background:#eef3f9!important;border:1px solid #cbd6e5;box-shadow:3px 4px 0 #e0e6ef;position:relative}
body.studio-ui[data-design-theme=apple] .studio-file-icon img{width:30px;height:30px}
body.studio-ui[data-design-theme=apple] .studio-row-title{font-size:calc(var(--ui-text) + 4px);font-weight:700}
body.studio-ui[data-design-theme=apple] .studio-row-excerpt{-webkit-line-clamp:2;max-width:60ch;color:#45454f}
body.studio-ui[data-design-theme=apple] .studio-row-summary{gap:24px}
body.studio-ui[data-design-theme=apple] .chapter-navigation{background:transparent;border:0}
body.studio-ui[data-design-theme=apple] .chapter-assistant{background:#fff}
/* Business desk: table-like rows, slim header, continuous content and tabular data. */
body.studio-ui[data-design-theme=stripe] .studio-page-header h1{font-size:30px;font-weight:700}
body.studio-ui[data-design-theme=stripe] .studio-library{border:1px solid #dbe3ee;border-radius:6px;overflow:hidden}
body.studio-ui[data-design-theme=stripe] .studio-row{padding:16px 20px;grid-template-columns:minmax(0,1fr) 155px 220px;gap:18px}
body.studio-ui[data-design-theme=stripe] .studio-row:not(.studio-row-header):nth-child(odd){background:#f8fafd}
body.studio-ui[data-design-theme=stripe] .studio-row-excerpt{-webkit-line-clamp:2;font-size:var(--ui-small)}
body.studio-ui[data-design-theme=stripe] .studio-library-toolbar{padding:18px;background:#edf2f8}
body.studio-ui[data-design-theme=stripe] .studio-list-count{padding:0 18px}
body.studio-ui[data-design-theme=stripe] .studio-file-icon{width:34px;height:40px;border-radius:4px;background:#e8edf8}
/* Useful visual elements driven by actual documents and review state. */
body.studio-ui[data-design-theme] .visual-project-shelf{background:var(--design-surface);border:1px solid var(--design-line);border-radius:var(--design-radius);padding:24px;margin:0 0 24px}
.visual-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.visual-shelf-heading h2{font-size:20px;margin:0}.visual-shelf-heading p{margin:5px 0 0}
.visual-file-types{display:flex;gap:12px;flex-wrap:wrap}.visual-file-type{display:flex;align-items:center;gap:16px;padding:18px 22px;background:var(--design-raised);border-radius:10px;flex:1;min-width:155px}
.visual-file-type strong{display:block;color:var(--design-ink);font-size:var(--ui-text)}.visual-file-type span:not(.visual-format-icon){color:var(--design-muted);font-size:var(--ui-small)}
.visual-format-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:56px;border:1px solid var(--design-line);border-radius:4px;background:var(--design-surface);gap:3px;flex:none}.visual-format-icon b{font-size:9px;letter-spacing:.5px;color:var(--design-body)}
.visual-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:22px}.visual-document-preview{margin:0;min-width:0;border:1px solid var(--design-line);border-radius:8px;overflow:hidden;background:var(--design-raised)}
.visual-document-preview>img{width:100%;height:190px;object-fit:contain;background:#fff;display:block;padding:10px;border-bottom:1px solid var(--design-line)}.visual-document-preview figcaption{padding:14px 14px 0}.visual-document-preview figcaption strong{font-size:var(--ui-small);display:block;overflow-wrap:anywhere;color:var(--design-body)}.visual-document-preview figcaption small{display:block;color:var(--design-muted);margin-top:6px;font-size:12px}
.visual-preview-actions{padding:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.visual-preview-actions button{font-size:12px!important;min-height:30px}.visual-preview-actions a{color:var(--design-primary);font-size:12px}
.visual-file-name{position:relative;padding-left:48px;min-height:48px}.visual-file-badge{position:absolute;left:0;top:3px;width:36px;height:44px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:750;border:1px solid #d2dbed;border-radius:4px;background:#edf2fc;color:#33527c}.visual-file-badge[data-kind=PDF]{background:#fff0eb;color:#943b26;border-color:#f0d1c7}.visual-file-badge[data-kind=IMAGE]{background:#e7f4ed;color:#266849;border-color:#c2dfcf}
.library-status-visual{display:flex;align-items:center;gap:20px;margin:-8px 0 22px;max-width:720px}.library-status-track{height:6px;display:flex;gap:3px;flex:1;min-width:80px;overflow:hidden;border-radius:4px}.library-status-track i{background:#8897ac;min-width:3px}.library-status-track i[data-state=eligible]{background:#39836b}.library-status-track i[data-state=review]{background:#b17c32}.library-status-legend{display:flex;gap:14px;font-size:12px;color:var(--design-muted)}.library-status-legend span::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#8897ac;margin-right:6px}.library-status-legend [data-state=eligible]::before{background:#39836b}.library-status-legend [data-state=review]::before{background:#b17c32}
body.studio-ui[data-design-theme=linear] .visual-preview-actions a{color:#9be0ed}
body.studio-ui[data-design-theme=claude] .visual-project-shelf{border-radius:0;border-top:3px solid #9b7b55}
body.studio-ui[data-design-theme=apple] .visual-project-shelf{padding:30px;border:0}
body.studio-ui[data-design-theme=stripe] .visual-file-type{border:1px solid var(--design-line);border-radius:5px}
body.studio-ui[data-design-theme=linear] .visual-format-icon{border-color:#477087}
body.studio-ui[data-design-theme] #workflow-summary .step-index img{width:24px;height:24px}
body.studio-ui[data-design-theme] .visual-project-shelf{display:none}
body.studio-ui[data-design-theme][data-material-focus=overview] .visual-project-shelf,body.studio-ui[data-design-theme][data-material-focus=upload] .visual-project-shelf,body.studio-ui[data-design-theme][data-material-focus=figure] .visual-project-shelf{display:block}
@media(min-width:1251px){body.studio-ui[data-design-theme=apple] .chapter-workspace{grid-template-columns:165px minmax(0,1fr) 220px;gap:30px}body.studio-ui[data-design-theme=claude] .chapter-workspace{grid-template-columns:175px minmax(0,1fr) 230px;gap:22px}body.studio-ui[data-design-theme=linear] .chapter-workspace{grid-template-columns:190px minmax(0,1fr) 250px;gap:10px}}
@media(max-width:1250px){body.studio-ui[data-design-theme=apple] .studio-row:not(.studio-row-header),body.studio-ui[data-design-theme=stripe] .studio-row{grid-template-columns:minmax(0,1fr) 130px}.visual-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.studio-ui[data-design-theme] .studio-page-header{padding:20px;margin-top:18px;gap:14px;flex-wrap:wrap}body.studio-ui[data-design-theme] .studio-page-header h1{font-size:28px}body.studio-ui[data-design-theme=apple] .studio-row:not(.studio-row-header),body.studio-ui[data-design-theme=stripe] .studio-row{grid-template-columns:minmax(0,1fr);padding:20px;gap:14px}body.studio-ui[data-design-theme=apple] .studio-file-icon{width:48px;height:66px}body.studio-ui[data-design-theme] .studio-row-title{font-size:var(--ui-text)!important}body.studio-ui[data-design-theme] .visual-project-shelf{padding:18px}.visual-shelf-heading{align-items:flex-start;flex-direction:column}.visual-file-type{min-width:125px;padding:14px}.visual-gallery{grid-template-columns:1fr 1fr;gap:10px}.visual-document-preview>img{height:135px}.library-status-visual{flex-direction:column;align-items:stretch;gap:10px}.library-status-track{flex:none}.library-status-legend{flex-wrap:wrap}.visual-preview-actions{gap:8px}.visual-preview-actions a{font-size:11px}.visual-document-preview figcaption{padding:10px 10px 0}body.studio-ui[data-design-theme] .studio-subnav{max-width:100%;flex-wrap:wrap}body.studio-ui[data-design-theme] .studio-subtab{padding:9px 10px}}
.workspace-art{width:176px;height:104px;flex:0 0 176px;margin-left:auto;pointer-events:none}.workspace-art svg{display:block;width:100%;height:100%;overflow:visible}.workspace-art g{display:none}
[data-design-theme=notion] .art-playful,[data-design-theme=claude] .art-book,[data-design-theme=linear] .art-tech,[data-design-theme=apple] .art-silver,[data-design-theme=stripe] .art-business{display:block}
body.studio-ui[data-design-theme=notion] .studio-page-header{min-height:156px}
body.studio-ui[data-design-theme=claude] .studio-page-header{background:#f8f2e7;padding:20px 26px;border-top:1px solid #c7ae88;min-height:145px}
body.studio-ui[data-design-theme=linear] .studio-page-header{background-color:#101e2b;background-image:radial-gradient(#315061 1px,transparent 1px);background-size:18px 18px;border:1px solid #2b4a5d;border-radius:5px;padding:22px 26px;min-height:145px}
body.studio-ui[data-design-theme=apple] .studio-page-header{min-height:145px}
body.studio-ui[data-design-theme=stripe] .studio-page-header{background:#e8edf8;padding:24px;border:0;min-height:135px}
body.studio-ui[data-design-theme] .studio-page-header>div:first-child{min-width:0}
body.studio-ui[data-design-theme] .overview-heading p,body.studio-ui[data-design-theme] .overview-hint,body.studio-ui[data-design-theme] .workflow-step small,body.studio-ui[data-design-theme] #project-guidance{color:var(--design-muted)}
@media(max-width:1100px){.workspace-art{display:none}body.studio-ui[data-design-theme] .studio-page-header{flex-wrap:wrap;min-height:0}}
@media(max-width:760px){body.studio-ui[data-design-theme] .studio-row-header{display:none!important}}
[data-preview=apple] .design-mini-tiles{display:none}[data-preview=apple] .design-mini-row{height:18px;margin:6px 0;background:#fff;border-left:12px solid #dce6f4}[data-preview=claude] .design-mini-title{height:11px;background:#785737}[data-preview=claude] .design-mini-row{height:9px;background:#e0d3be}[data-preview=linear] .design-miniature{background:#111c28}[data-preview=linear] .design-mini-side{background:#0b131e}[data-preview=linear] .design-mini-side b{background:#70cbdf}[data-preview=linear] .design-mini-tiles{display:none}[data-preview=linear] .design-mini-row{height:10px;background:#203443}[data-preview=stripe] .design-mini-tiles{display:none}[data-preview=stripe] .design-mini-row{height:17px;background:#e0e7f2;border-bottom:2px solid #cdd8e9}

/* Function-specific scenes use upstream Phosphor duotone masks, composed for each task. */
.function-art{position:relative;--scene-ink:#7560aa;--scene-paper:#fff;--scene-soft:#dfd5f3;--scene-accent:#efbd79;isolation:isolate}
.scene-backdrop{position:absolute;inset:7px 4px 2px 22px;border-radius:50%;background:var(--scene-soft);opacity:.65}
.scene-sheet{position:absolute;left:48px;top:7px;width:88px;height:96px;background:var(--scene-paper);border:1px solid color-mix(in srgb,var(--scene-ink),transparent 65%);border-radius:8px;transform:rotate(-7deg);display:grid;place-items:center;box-shadow:0 5px 12px #1018280a}
.scene-glyph{display:block;background:var(--scene-ink);mask-image:var(--scene-mask);-webkit-mask-image:var(--scene-mask);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-size:contain;-webkit-mask-size:contain;mask-position:center;-webkit-mask-position:center}
.scene-main{width:66px;height:66px}.scene-small{width:31px;height:31px}.scene-support{position:absolute;right:10px;bottom:8px;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:var(--scene-accent);transform:rotate(8deg)}
.scene-accent{position:absolute;left:20px;bottom:6px;width:30px;height:30px;border-radius:8px;background:var(--scene-accent);transform:rotate(18deg);z-index:-1}
.scene-path{position:absolute;inset:26px 0 10px 10px;border:1px dashed var(--scene-ink);border-radius:50%;opacity:.3;transform:rotate(-20deg)}
.scene-lines{display:none}
[data-design-theme=claude] .function-art{--scene-ink:#876344;--scene-paper:#fff9ee;--scene-soft:#e4d7c0;--scene-accent:#d7bc87}
[data-design-theme=claude] .scene-backdrop{border:1px solid #bca17c;border-radius:3px;background:none;transform:rotate(6deg)}
[data-design-theme=claude] .scene-sheet{border-radius:2px;transform:rotate(-3deg)}
[data-design-theme=claude] .scene-path{border-style:solid;opacity:.15}
[data-design-theme=linear] .function-art{--scene-ink:#8edbea;--scene-paper:#132c3b;--scene-soft:#183e50;--scene-accent:#285e70}
[data-design-theme=linear] .scene-backdrop{border:1px solid #356477;background:none;transform:rotate(-18deg);border-radius:50%}
[data-design-theme=linear] .scene-sheet{border-color:#477a8e;border-radius:3px;transform:none;box-shadow:none}
[data-design-theme=linear] .scene-path{border-style:solid;transform:rotate(18deg)}
[data-design-theme=apple] .function-art{--scene-ink:#51739c;--scene-paper:#fff;--scene-soft:#e6edf6;--scene-accent:#d3e3f9}
[data-design-theme=apple] .scene-path{display:none}[data-design-theme=apple] .scene-sheet{transform:none;box-shadow:0 6px 14px #152a4312}
[data-design-theme=stripe] .function-art{--scene-ink:#6453a0;--scene-paper:#fff;--scene-soft:#d5dcf1;--scene-accent:#bcb2e1}
[data-design-theme=stripe] .scene-backdrop{border-radius:6px;transform:skewY(-12deg)}[data-design-theme=stripe] .scene-path{border-radius:6px;transform:skewY(-12deg)}
/* Composition changes along with semantics: speech, gallery, archive, writing, calculations. */
[data-scene=conversation] .scene-sheet{width:112px;height:72px;left:30px;top:12px;border-radius:22px 22px 22px 3px;transform:none}
[data-scene=conversation] .scene-support{width:62px;height:46px;border-radius:17px 17px 3px 17px;bottom:3px;right:3px;transform:none}
[data-scene=conversation] .scene-backdrop{inset:0 7px 0 5px;border-radius:35px}
[data-scene=gallery] .scene-sheet{width:118px;height:78px;left:26px;top:18px;transform:rotate(-6deg)}
[data-scene=gallery] .scene-backdrop{inset:11px 22px 16px 34px;border-radius:8px;transform:rotate(9deg)}
[data-scene=database] .scene-sheet{border-radius:40px / 15px;transform:none;background:var(--scene-soft)}
[data-scene=database] .scene-accent{width:84px;height:33px;left:49px;bottom:1px;border-radius:50%;transform:none}
[data-scene=shelf] .scene-sheet{left:25px;top:14px;width:119px;height:80px;border-radius:3px;transform:none}
[data-scene=shelf] .scene-main{width:88px;height:72px}[data-scene=shelf] .scene-path{inset:auto 1px 12px 10px;border:0;border-top:3px solid var(--scene-ink);border-radius:0;transform:none;opacity:.45}
[data-scene=writing] .scene-sheet,[data-scene=checklist] .scene-sheet{width:78px;height:100px;top:3px;left:43px;transform:rotate(-5deg)}
[data-scene=writing] .scene-support{right:11px;top:4px;width:44px;height:88px;border-radius:8px;transform:rotate(16deg)}
[data-scene=writing] .scene-small{width:38px;height:60px}
[data-scene=calculation] .scene-sheet{width:70px;left:32px;transform:rotate(-4deg)}
[data-scene=calculation] .scene-support{right:2px;bottom:9px;width:72px;height:64px;border-radius:6px;transform:rotate(5deg)}
[data-scene=calculation] .scene-small{width:54px;height:54px}
[data-scene=identity] .scene-sheet{width:132px;height:76px;left:19px;top:16px;transform:none;border-radius:8px}
[data-scene=identity] .scene-main{width:91px;height:68px}[data-scene=identity] .scene-support{right:2px;bottom:0}
[data-scene=target] .scene-sheet,[data-scene=shield] .scene-sheet{background:none;border:0;box-shadow:none;transform:none;left:27px;top:7px;width:116px;height:102px}
[data-scene=target] .scene-main,[data-scene=shield] .scene-main{width:100px;height:100px}
[data-scene=timeline] .scene-path{border-radius:0;border-width:0 0 0 2px;inset:6px auto 6px 34px;transform:none}
[data-scene=timeline] .scene-accent{border-radius:50%;width:12px;height:12px;left:29px;bottom:2px;transform:none}
[data-scene=research] .scene-main{width:85px;height:85px}[data-scene=research] .scene-sheet{background:none;border:0;box-shadow:none;transform:none}
[data-scene=upload] .scene-sheet{transform:translateY(-8px);background:none;border:0;box-shadow:none}[data-scene=upload] .scene-main{width:83px;height:83px}
[data-scene=upload] .scene-backdrop{inset:auto 20px 3px 30px;height:48px;border-radius:8px;background:var(--scene-soft);opacity:1}
/* Font choice affects the reading hierarchy, while controls retain their familiar sans face. */
@font-face{font-family:'Safety WenKai';src:url('/fonts/LXGWWenKai-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Safety Serif';src:url('/fonts/NotoSerifSC-Regular.otf') format('opentype');font-style:normal;font-weight:400;font-display:swap}
body.studio-ui[data-font-style=sans]{--workspace-reading-font:system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif}
body.studio-ui[data-font-style=serif]{--workspace-reading-font:'Safety Serif','Songti SC','SimSun',serif}
body.studio-ui[data-font-style=wenkai]{--workspace-reading-font:'Safety WenKai','Kaiti SC','KaiTi',serif}
body.studio-ui[data-font-style]:not([data-font-style=theme]) :is(.studio-page-header h1,.card h2,.studio-row-title,.studio-row-excerpt,.studio-detail-body,.qa-answer-paragraph,.qa-user-question,.reading-paragraph,.reading-title){font-family:var(--workspace-reading-font)}
body.studio-ui[data-font-style=wenkai] :is(.studio-page-header h1,.studio-row-title){font-weight:400;letter-spacing:.02em}
body.studio-ui[data-font-style=serif] :is(.studio-row-excerpt,.qa-answer-paragraph,.studio-detail-body){line-height:2.1}
body.studio-ui[data-font-style=wenkai] :is(.studio-row-excerpt,.qa-answer-paragraph,.studio-detail-body){line-height:2;letter-spacing:.02em}
body.studio-ui[data-font-style=theme][data-design-theme=claude] :is(.studio-page-header h1,.studio-row-title,.studio-row-excerpt,.qa-answer-paragraph,.studio-detail-body){font-family:'Safety Serif','Songti SC',serif}
.design-font-panel{margin-top:22px;padding-top:20px;border-top:1px solid var(--design-line)}.design-font-panel h3{font-size:16px;margin:0 0 6px}.design-font-panel>p{margin:0 0 14px}.design-font-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.studio-ui[data-design-theme] .design-font-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;gap:10px;padding:14px;min-width:0;border:1px solid var(--design-line);background:var(--design-surface);color:var(--design-body);white-space:normal}
.design-font-choice span{font-size:12px;color:var(--design-muted)}.design-font-choice strong{font-size:18px;line-height:1.7;font-weight:400}.design-font-choice small{font-size:11px;color:var(--design-muted)}
.design-font-choice[data-font=serif] :is(strong,small){font-family:'Safety Serif',serif}.design-font-choice[data-font=wenkai] :is(strong,small){font-family:'Safety WenKai',serif}.design-font-choice[data-font=sans] :is(strong,small){font-family:system-ui,sans-serif}
body.studio-ui[data-design-theme] .design-font-choice.active{border-color:var(--design-primary);background:var(--design-soft)}
@media(max-width:760px){.design-font-options{grid-template-columns:repeat(2,minmax(0,1fr))}.design-font-choice strong{font-size:16px}}

/* Pair foreground and painted surfaces explicitly, including legacy components. */
body.studio-ui[data-design-theme]{--surface:var(--design-surface);--border:var(--design-line);--design-link:var(--design-primary);--design-warning-bg:#fff3d8;--design-warning-ink:#714819;--design-error-bg:#fff0ee;--design-error-ink:#9a3029;--design-success-bg:#e8f5ed;--design-success-ink:#216447}
body.studio-ui[data-design-theme=linear]{--design-link:#9be0ed;--design-warning-bg:#3c3020;--design-warning-ink:#ffe0a1;--design-error-bg:#44282b;--design-error-ink:#ffc6bd;--design-success-bg:#1d3c34;--design-success-ink:#a2e4c8}
body.studio-ui[data-design-theme] :is(.structured-content-block,.template-body-card,.structured-bulk-panel,.calculator-system,.evidence-item,.model-result){background:var(--design-surface);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] .structured-content-block :is(label,strong,summary){color:var(--design-body)}
body.studio-ui[data-design-theme] .structured-content-block :is(.structured-source,small){color:var(--design-muted)}
body.studio-ui[data-design-theme] .structured-status{background:var(--design-soft);color:var(--design-body)}
body.studio-ui[data-design-theme] :is(.structured-metadata,.structured-original){color:var(--design-body)}
body.studio-ui[data-design-theme] .structured-original p{background:var(--design-raised);color:var(--design-body);padding:12px;border-radius:6px}
body.studio-ui[data-design-theme] #test-record-content{color:var(--design-body)}
body.studio-ui[data-design-theme] #test-record-content :is(h1,h2,h3,h4,h5,h6,strong){color:var(--design-ink)}
body.studio-ui[data-design-theme] #test-record-content :is(p,li,td){color:var(--design-body)}
body.studio-ui[data-design-theme] #test-record-content :is(pre,code){background:var(--design-raised);color:var(--design-body)}
body.studio-ui[data-design-theme] #test-record-content a{color:var(--design-link)}
body.studio-ui[data-design-theme] .test-record-table :is(td,th){border-color:var(--design-line)}
body.studio-ui[data-design-theme] .test-record-table th{background:var(--design-raised);color:var(--design-ink)}
body.studio-ui[data-design-theme] .test-record-heading .overline{display:none}
body.studio-ui[data-design-theme] :is(.inline-notice,.conflict){background:var(--design-warning-bg);color:var(--design-warning-ink);border-color:color-mix(in srgb,var(--design-warning-ink),transparent 65%)}
body.studio-ui[data-design-theme] :is(button.danger,.danger){background:var(--design-error-bg);color:var(--design-error-ink);border-color:color-mix(in srgb,var(--design-error-ink),transparent 60%)}
body.studio-ui[data-design-theme] .studio-status-approved{background:var(--design-success-bg);color:var(--design-success-ink)}
body.studio-ui[data-design-theme] .studio-status-draft{background:var(--design-warning-bg);color:var(--design-warning-ink)}
body.studio-ui[data-design-theme] .studio-status-retired{background:var(--design-soft);color:var(--design-muted)}
body.studio-ui[data-design-theme] #professional-workspace>.workspace-tabs button{background:var(--design-surface);color:var(--design-body);border-color:var(--design-line)}
body.studio-ui[data-design-theme] #professional-workspace>.workspace-tabs button small{color:var(--design-muted)}
body.studio-ui[data-design-theme] #professional-workspace>.workspace-tabs button.active{background:var(--design-nav-active);color:var(--design-ink);border-color:var(--design-primary);box-shadow:none}
body.studio-ui[data-design-theme=linear][data-current-view=materials][data-material-focus=professional] .studio-page-header{background-color:#101e2b;background-image:radial-gradient(#315061 1px,transparent 1px);border-color:#2b4a5d}
body.studio-ui[data-design-theme] .chapter-navigation-item{color:var(--design-body)}
body.studio-ui[data-design-theme] .chapter-navigation-item.active{background:var(--design-nav-active);color:var(--design-ink)}
body.studio-ui[data-design-theme] .chapter-assistant :is(label,strong,summary,.workspace-column-title){color:var(--design-body)}
body.studio-ui[data-design-theme] .chapter-assistant :is(p,small){color:var(--design-muted)}
/* A report is always a light paper surface, even inside a dark workspace. */
body.studio-ui[data-design-theme] .chapter-paper{--design-surface:#fff;--design-raised:#f6f7fa;--design-soft:#edf1f6;--design-ink:#202936;--design-body:#303d4e;--design-muted:#536276;--design-line:#dbe1e9;--design-nav-active:#e7edf8;--surface:#fff;--border:#dbe1e9;--ink:#202936;--muted:#536276;background:#fff;color:#303d4e}
body.studio-ui[data-design-theme] .chapter-paper :is(.reading-paragraph,.reading-title,.reading-heading,.paragraph-block>label){color:var(--design-body)}
body.studio-ui[data-design-theme] .chapter-paper :is(#editing-layout-preview,.source-table-preview){background:#fff;color:#303d4e}
body.studio-ui[data-design-theme] .chapter-paper .source-table-preview :is(td,th){color:#303d4e;background:#fff;border-color:#dbe1e9}
body.studio-ui[data-design-theme] .chapter-paper .source-table-preview th{background:#edf1f6}

/* Fashion editorial: a saturated masthead, quiet white reading pages and berry accents. */
body.studio-ui[data-design-theme=fashion]{--design-canvas:#fff8fb;--design-surface:#fff;--design-soft:#f6e7ef;--design-raised:#fcf2f7;--design-ink:#321722;--design-body:#452d38;--design-muted:#725562;--design-line:#e9d3de;--design-primary:#a52758;--design-hover:#852046;--design-nav:#f8edf3;--design-nav-ink:#613648;--design-nav-active:#eed2df;--design-title-font:'Safety Serif',Georgia,serif;--design-radius:16px;--design-heading:38px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=fashion][data-current-view] .studio-page-header{position:relative;padding:30px 34px;background:#77233f;border:0;border-radius:4px 32px 4px 32px;min-height:160px}
body.studio-ui[data-design-theme=fashion] .studio-page-header h1{color:#fff;font-weight:500;letter-spacing:.03em}
body.studio-ui[data-design-theme=fashion] .studio-subtitle{color:#725562}
body.studio-ui[data-design-theme=fashion] .studio-page-header .studio-subtitle{color:#ffe2ed}
body.studio-ui[data-design-theme=fashion] .studio-page-header .studio-project-chip{background:#923e5b;color:#fff;border-color:#b76b84}
body.studio-ui[data-design-theme=fashion] .studio-page-header button.primary{background:#fff;color:#77233f;border-color:#fff}
body.studio-ui[data-design-theme=fashion] .studio-page-header button.secondary{background:transparent;color:#fff;border-color:#dba9ba}
body.studio-ui[data-design-theme=fashion] .function-art{--scene-ink:#9a365a;--scene-paper:#fff8fb;--scene-soft:#c76a8d;--scene-accent:#eccb80}
body.studio-ui[data-design-theme=fashion] .scene-backdrop{opacity:1;border-radius:48% 52% 63% 37%;transform:rotate(17deg)}
body.studio-ui[data-design-theme=fashion] .scene-path{border-color:#ffdae8;opacity:.7}
body.studio-ui[data-design-theme=fashion] .studio-subnav{gap:32px;border-color:#d8a9bb}
body.studio-ui[data-design-theme=fashion] .studio-subtab.active{font-weight:700;color:#8b2047;border-bottom-width:3px}
body.studio-ui[data-design-theme=fashion] .studio-library{background:transparent;border:0;box-shadow:none}
body.studio-ui[data-design-theme=fashion] .studio-row{border:0;border-top:1px solid #dfb8c8;padding:26px 22px;background:#fff}
body.studio-ui[data-design-theme=fashion] .studio-row-header{background:#f6e7ef}
body.studio-ui[data-design-theme=fashion] .studio-row-title{font-weight:600;font-size:calc(var(--ui-text) + 3px)}
body.studio-ui[data-font-style=theme][data-design-theme=fashion] :is(.studio-page-header h1,.studio-row-title){font-family:'Safety Serif',Georgia,serif}
body.studio-ui[data-design-theme=fashion] .studio-file-icon{border-radius:50%;background:#f6d9e6;width:46px;height:46px}
body.studio-ui[data-design-theme=fashion] .visual-file-type{background:#f9e9f0;border-radius:3px}
/* Vivid complementary palette: warm orange, cool mint and an ink-dark anchor. */
body.studio-ui[data-design-theme=vivid]{--design-canvas:#fff9ec;--design-surface:#fffdf8;--design-soft:#ffebd5;--design-raised:#fff5e8;--design-ink:#242b29;--design-body:#34403b;--design-muted:#5f6559;--design-line:#d9d8bd;--design-primary:#ae3517;--design-hover:#8d2c14;--design-nav:#e2f0d8;--design-nav-ink:#304a3a;--design-nav-active:#c2dfb0;--design-title-font:system-ui,'PingFang SC',sans-serif;--design-radius:20px;--design-heading:36px;--design-primary-ink:#fff}
body.studio-ui[data-design-theme=vivid][data-current-view] .studio-page-header{background:#d83b17;border:0;border-radius:24px;padding:30px;min-height:165px}
body.studio-ui[data-design-theme=vivid] .studio-page-header h1{color:#fff;font-weight:800;letter-spacing:-.8px}
body.studio-ui[data-design-theme=vivid] .studio-page-header .studio-subtitle{color:#ffead5}
body.studio-ui[data-design-theme=vivid] .studio-page-header .studio-project-chip{background:#a92d12;color:#fff;border-color:#f58c61}
body.studio-ui[data-design-theme=vivid] .studio-page-header button.primary{background:#eff7a2;color:#2c382c;border-color:#eff7a2}
body.studio-ui[data-design-theme=vivid] .studio-page-header button.secondary{background:#fffdf8;color:#963013;border-color:#fffdf8}
body.studio-ui[data-design-theme=vivid] .function-art{--scene-ink:#2d5947;--scene-paper:#fffde6;--scene-soft:#d9eb9b;--scene-accent:#f8ce50}
body.studio-ui[data-design-theme=vivid] .scene-backdrop{opacity:1;border-radius:26% 74% 43% 57%;transform:rotate(-12deg)}
body.studio-ui[data-design-theme=vivid] .scene-path{border-color:#fff8bb;opacity:.7;border-width:2px}
body.studio-ui[data-design-theme=vivid] .studio-subnav{border:0;gap:8px}
body.studio-ui[data-design-theme=vivid] .studio-subtab{border:1px solid #c9d8b9;border-radius:999px;padding:10px 20px;background:#f0f5e5;color:#3a503e}
body.studio-ui[data-design-theme=vivid] .studio-subtab.active{background:#304d3c;color:#fff;border-color:#304d3c}
body.studio-ui[data-design-theme=vivid] .studio-row{border:1px solid #b8cba8;border-radius:20px;padding:24px}
body.studio-ui[data-design-theme=vivid] .studio-row:nth-child(3n+2){background:#eef5d6}body.studio-ui[data-design-theme=vivid] .studio-row:nth-child(3n+3){background:#fff0c9}body.studio-ui[data-design-theme=vivid] .studio-row:nth-child(3n+1){background:#fce3d8}
body.studio-ui[data-design-theme=vivid] .studio-row-title{font-weight:750}
body.studio-ui[data-design-theme=vivid] .studio-file-icon{width:50px;height:50px;border-radius:50%;background:#fffdf8}
body.studio-ui[data-design-theme=vivid] .visual-file-type:nth-child(odd){background:#e3efd4}body.studio-ui[data-design-theme=vivid] .visual-file-type:nth-child(even){background:#ffebba}
[data-preview=fashion] .design-miniature{background:#fff8fb}[data-preview=fashion] .design-mini-side{background:#f2deea}[data-preview=fashion] .design-mini-side b{background:#a52758}[data-preview=fashion] .design-mini-title{height:20px;width:100%;background:#77233f}[data-preview=fashion] .design-mini-tiles{display:none}[data-preview=fashion] .design-mini-row{height:14px;background:#eedce5}
[data-preview=vivid] .design-miniature{background:#fff9ec}[data-preview=vivid] .design-mini-side{background:#d6e8c6}[data-preview=vivid] .design-mini-side b{background:#d83b17}[data-preview=vivid] .design-mini-title{height:20px;width:100%;background:#d83b17}[data-preview=vivid] .design-mini-tiles i{border-radius:8px;background:#dbe8a8}[data-preview=vivid] .design-mini-tiles i:nth-child(2){background:#f8d460}[data-preview=vivid] .design-mini-tiles i:nth-child(3){background:#f6ae90}
@media(max-width:760px){body.studio-ui[data-design-theme=fashion][data-current-view] .studio-page-header,body.studio-ui[data-design-theme=vivid][data-current-view] .studio-page-header{padding:24px;min-height:0}body.studio-ui[data-design-theme=vivid] .studio-subtab{padding:9px 12px}}
body.studio-ui[data-design-theme=fashion] .studio-page-header button.primary .studio-icon,body.studio-ui[data-design-theme=vivid] .studio-page-header button.primary .studio-icon{filter:none}
body.studio-ui[data-design-theme=fashion] .studio-page-header button.secondary .studio-icon{filter:brightness(0) invert(1);opacity:1}
body.studio-ui[data-design-theme] .source-table-preview{background:var(--design-surface);color:var(--design-body)}
body.studio-ui[data-design-theme] .source-table-preview th{background:var(--design-raised);color:var(--design-ink)}
body.studio-ui[data-design-theme] .source-table-preview :is(td,th){border-color:var(--design-line)}
body.studio-ui[data-design-theme] .chapter-navigation .workspace-column-title,body.studio-ui[data-design-theme] .chapter-assistant :is(.evidence-panel,.evidence-panel summary,ol,li){color:var(--design-body)}
body.studio-ui[data-design-theme=vivid] .studio-subtab.active .studio-icon{filter:brightness(0) invert(1);opacity:1}
body.studio-ui[data-design-theme] :is(.fact small,.fact .field-source){color:var(--design-muted)}
/* Original appendix controls are a paired surface, including collapsed labels. */
body.studio-ui[data-design-theme] .original-appendix-control{background:var(--design-raised);color:var(--design-body);border:1px solid var(--design-line)}
body.studio-ui[data-design-theme] .original-appendix-control :is(summary,label,strong){color:var(--design-body)}
body.studio-ui[data-design-theme] .original-appendix-control small{color:var(--design-muted)}
body.studio-ui[data-design-theme] :is(.file-metadata summary,.file-row small){color:var(--design-muted)}
body.studio-ui[data-design-theme] .original-appendix-control label{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:12px}
body.studio-ui[data-design-theme] .original-appendix-control label select{min-width:0;width:100%}
@media(max-width:760px){body.studio-ui[data-design-theme] .original-appendix-control label{grid-template-columns:1fr;gap:8px}}
/* Confirmation strips own both their painted surface and readable foreground. */
body.studio-ui[data-design-theme] .report-source-confirmation{background:var(--design-raised);color:var(--design-body);border:1px solid var(--design-line)}
body.studio-ui[data-design-theme] .report-source-confirmation input{accent-color:var(--design-primary)}
body.studio-ui[data-design-theme] .working-copy-status{background:var(--design-raised);color:var(--design-body);border:1px solid var(--design-line)}
