:root{--blue:#317e76;--blue-deep:#245f59;--blue-soft:#e9f3ef;--blue-pale:#f2f7f3;--ink:#2a3b45;--muted:#82908f;--line:#e1e7e2;--canvas:#f5f5ef;--shadow:0 6px 25px #203a4210;--green:#5da28c;--red:#b66150}body{background:var(--canvas);font-weight:400}h1,h2,h3,h4,strong,b,label,.nav-item,.mode-tab,.section-kicker,.eyebrow,.style-chip.active,.filter-chip.active,.primary-button,.secondary-button,.step.active{font-weight:400}.app-shell{grid-template-columns:240px minmax(0,1fr)}.sidebar{background:#1d333f;color:#e5efec;border:0;padding:26px 16px}.brand-mark{background:#66b4a5;color:#163d3b;box-shadow:none;font-weight:400}.brand strong{font-weight:400;letter-spacing:.4px}.brand span{color:#92aaa9}.nav-list{gap:10px}.nav-item{color:#afc0c4;border-radius:10px;padding:14px;font-size:14px}.nav-item:hover{background:#ffffff0b}.nav-item span{color:#8aa7ab}.nav-item.active{background:#ffffff10;color:#97d6c3;box-shadow:inset 3px 0 #75c3ae}.nav-item.active span{color:#97d6c3}.sidebar-divider{background:#ffffff18}.sidebar-card{border:1px solid #ffffff13;background:#ffffff06;padding:16px}.sidebar-card strong{color:#d9bc82;font-weight:400;font-size:18px;margin:9px 0}.sidebar-card p,.mini-label{color:#8fa9ac}.sidebar-footer strong{color:#dde9e5;font-weight:400}.sidebar-footer small{color:#8da6aa}.main{padding:26px 28px 30px}.topbar h1{font-size:32px;font-weight:400}.eyebrow,.section-kicker{color:#728b83;letter-spacing:1px;font-weight:400}.avatar{background:#e8eee7;color:#4f6d65;font-size:14px}.top-actions{gap:10px;flex-wrap:wrap}.top-actions a,.top-actions button{font-size:13px;padding:10px 14px}.workflow-strip{border:1px solid #e2e7df;background:#fcfcf8;border-radius:12px;padding:17px 20px;margin-bottom:14px}.step{font-size:12px}.step b{font-weight:400}.step.active b{background:#367b72}.step.active{font-weight:400;color:#426f65}.work-card{border-radius:14px;box-shadow:0 7px 25px #253d4010;border-color:#e2e8e2}.card-heading h2,.card-heading.compact h2{font-size:20px;font-weight:400}.secure-badge{color:#7c877a;background:#f3f3e9}.input-card label{font-weight:400;color:#65776f}input,select,textarea{background:#fcfdfb;border-color:#dde5df;font-size:13px;font-weight:400;padding:12px;border-radius:8px}.mode-tabs{border-radius:8px;background:#f1f3ed}.mode-tab{font-weight:400;font-size:13px}.mode-tab.active{color:#37796f;box-shadow:0 2px 6px #203e3210}.primary-button{background:#367e72;box-shadow:0 5px 12px #367e7219;font-weight:400}.secondary-button{border-color:#d0e1d5;color:#38766b;background:#eff6ef;font-weight:400}.primary-button:hover{background:#2f7067}.style-chip,.filter-chip{font-size:12px;border-color:#dfe6dc;color:#7a897e}.style-chip.active{background:#eef5e9;border-color:#aabf9e;color:#5c7958}.result-summary div:nth-child(1){background:#edf5ef}.result-summary div:nth-child(2){background:#f8f2e7}.result-summary div:nth-child(3){background:#eef2f6}.result-summary strong{font-size:22px;font-weight:400;color:#437568}.result-summary div:nth-child(2) strong{color:#ad8752}.result-summary div:nth-child(3) strong{color:#687e94}.outline-list>li{background:#fff;border-color:#e1e8de;border-radius:10px}.outline-list .review-module{font-weight:400;color:#67947f}.outline-list .page-review h3{font-weight:400;font-size:17px}.outline-list .review-takeaway{font-weight:400;color:#496359}.outline-list .review-point{color:#687a75}.case-card,.style-card,.project-row{box-shadow:none;border-radius:12px}.case-card h3,.project-row h3,.style-card h3{font-weight:400}.document-visual{border-color:#cce1d8;background:linear-gradient(145deg,#f0f6eb,#fff);box-shadow:0 12px 28px #476a5c10}.document-visual span{background:#c4d9cb}.document-visual span:first-child{background:#629b86}.empty-result strong{font-weight:400;color:#597469}.result-status.ready{background:#e8f3e9;color:#57876e}#skillStatus{margin:0 0 14px;font-size:11px;color:#8b988d}.outline-help{font-size:11px;color:#8a978f;line-height:1.8}.source-status div{background:#f4f6f0}.generation-stage h3{font-weight:400}.generation-stage p{color:#6e8a7e}.admin-shell{max-width:1200px;margin:0 auto;padding:34px 36px 60px}.admin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.admin-top h1{font-size:29px;margin:8px 0;font-weight:400}.admin-subtitle{color:#85938c;font-size:13px;margin:0}.admin-tabs{display:flex;gap:8px;border-bottom:1px solid #dde5dc;margin-bottom:25px}.admin-tabs button{font:inherit;font-size:14px;padding:13px 20px;border:0;background:transparent;color:#84938c;border-bottom:2px solid transparent;cursor:pointer}.admin-tabs button.active{color:#2f786c;border-bottom-color:#4f9381}.admin-section{display:none}.admin-section.active{display:block}.admin-panel{padding:26px;background:#fff;border:1px solid #e0e7de;border-radius:13px;margin-bottom:20px}.admin-panel h2{font-size:19px;font-weight:400;margin:0 0 12px}.admin-panel p{font-size:13px;color:#7c8b83;line-height:1.8}.admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin-top:22px}.admin-fields label{font-size:13px;color:#6e7c72;font-weight:400}.admin-full{grid-column:1/-1}.admin-actions{display:flex;align-items:center;gap:14px;margin-top:24px}.admin-actions button{min-width:130px}.admin-note{color:#819185;font-size:12px;line-height:1.8}.admin-status{border-radius:8px;background:#e9f4eb;padding:12px 16px;color:#4e7c64;font-size:13px;margin-bottom:20px}.admin-status.error{background:#fbefea;color:#a56551}.check-row{display:flex!important;gap:10px;align-items:center;margin-top:12px}.check-row input{width:16px;margin:0}.management-list{display:grid;gap:12px;margin-top:20px}.management-row{padding:18px;border:1px solid #e1e7dd;border-radius:9px;display:flex;gap:20px;justify-content:space-between;align-items:center}.management-row h3{margin:0 0 7px;font-size:15px;font-weight:400;overflow-wrap:anywhere}.management-row p{margin:0;font-size:12px;color:#8a978c}.row-actions{display:flex;gap:7px;flex-shrink:0}.row-actions button{font:inherit;font-size:12px;border:1px solid #d9e3d7;border-radius:7px;padding:8px 10px;background:#fafcf8;color:#58816c;cursor:pointer}.row-actions button.danger{color:#a9745b}.badge{display:inline-block;font-size:11px;padding:3px 7px;background:#eef5ed;color:#65846c;border-radius:4px;margin-right:8px}.badge.off{background:#f2f1e9;color:#998c6c}.empty-management{text-align:center;padding:36px;color:#99a498;font-size:14px}.admin-link{display:inline-block;text-decoration:none}.admin-panel textarea{min-height:160px}.admin-panel input[type=file]{background:#f8faf4}.muted-button{border:1px solid #d8e2d8;background:#fff;color:#65816e;border-radius:8px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}@media(max-width:1080px){.app-shell{grid-template-columns:86px minmax(0,1fr)}.main{padding-inline:22px}.admin-shell{padding:24px}.topbar h1{font-size:27px}}@media(max-width:720px){.app-shell{display:block}.sidebar{padding:8px 10px;background:#1d333f}.main{padding:18px 14px 88px}.topbar h1{font-size:23px}.top-actions{gap:6px}.top-actions a,.top-actions button{padding:8px}.admin-shell{padding:22px 14px}.admin-fields{grid-template-columns:1fr}.admin-top{align-items:flex-start}.admin-top h1{font-size:24px}.management-row{align-items:flex-start;flex-direction:column;gap:12px}.admin-tabs button{padding:12px}.secure-badge{display:none}}
/* Persistent generation state stays visible after temporary toast messages fade. */
.generation-notice{margin:14px 0;padding:16px 18px;border:1px solid #b9d1ca;border-radius:14px;background:#eff7f2;color:#315b52;font-size:14px;line-height:1.65;flex-shrink:0;}
.generation-notice[hidden]{display:none;}
.generation-notice-title{font-size:15px;font-weight:400;}
.generation-notice p{margin:6px 0 0;font-size:13px;overflow-wrap:anywhere;}
.generation-notice[data-kind="error"]{background:#fff5ed;border-color:#ebc5a7;color:#8b4d27;}
.generation-notice[data-kind="success"]{background:#eaf5ee;border-color:#b5d3be;}

/* Blue-violet workspace theme; presentation output styles are independent. */
:root{--blue:#5263d7;--blue-deep:#344d91;--blue-soft:#edf0ff;--blue-pale:#f5f7ff;--ink:#293c60;--muted:#7887a3;--line:#dfe6f5;--canvas:#f0f5fd;--shadow:0 14px 40px #344d9110;--green:#519782;--red:#bd5863}
body{background:radial-gradient(ellipse at 100% 0,#e9e5fd 0,transparent 52%),radial-gradient(ellipse at 0 0,#e2efff 0,transparent 58%),#f4f7fc;background-attachment:fixed;color:var(--ink)}
.sidebar{background:linear-gradient(175deg,#f5f8ffef,#edf0fff0);color:#344d73;border-right:1px solid #dce4f4}
.brand-mark{color:white;background:linear-gradient(135deg,#3e67bb,#7d80de);box-shadow:0 6px 18px #5263d725}
.brand span,.sidebar-card p,.mini-label,.sidebar-footer small{color:#7d8fac}.brand strong,.sidebar-footer strong{color:#304773}
.nav-item,.nav-item span{color:#7082a1}.nav-item:hover{background:#e8edfc}.nav-item.active{color:#fff;background:linear-gradient(110deg,#4b66ce,#7460d5);box-shadow:0 7px 17px #5863cf24}.nav-item.active span{color:#fff}
.sidebar-divider{background:#dce4f2}.sidebar-card{background:#ffffffa6;border-color:#dfe6f7}.sidebar-card strong{color:#4f64b5}
.eyebrow,.section-kicker{color:#7187aa}.avatar{color:#5263b2;background:#e8edff}.topbar h1{color:#2a416a}
.workflow-strip{background:#ffffffb8;border-color:#dfe5f3;box-shadow:0 5px 20px #586a9b05}.step.active{color:#4f61bd}.step.active b{background:linear-gradient(135deg,#4775c4,#7765d6)}
.work-card{background:#ffffffed;border-color:#e0e7f5;box-shadow:var(--shadow);border-radius:18px}.secure-badge{background:#f0f3ff;color:#8491b1}
.input-card label{color:#607495}input,select,textarea{background:#f8faff;border-color:#dce4f5;color:#304465}input:focus,select:focus,textarea:focus{border-color:#7787d9;box-shadow:0 0 0 3px #6875d812}
.mode-tabs{background:#edf1fa}.mode-tab.active{color:#5265b9}.primary-button{background:linear-gradient(110deg,#426bc3,#7161cf);box-shadow:0 7px 18px #5263d725}.primary-button:hover{background:linear-gradient(110deg,#365cb1,#6252bd)}
.secondary-button{background:#f2f5ff;border-color:#d9e1f6;color:#5266b3}.secondary-button:hover{background:#e9eeff}.style-chip,.filter-chip{border-color:#dce3f3;color:#7a89a5}.style-chip.active,.filter-chip.active{background:#edf0ff;border-color:#9ba8e3;color:#5364b5}
.result-summary div:nth-child(1){background:#edf2ff}.result-summary div:nth-child(2){background:#f2eeff}.result-summary div:nth-child(3){background:#edf6ff}.result-summary strong{color:#5167bb}.result-summary div:nth-child(2) strong{color:#8060ba}
.outline-list>li,.outline-list .page-review{border-color:#e0e6f5;background:#f8faff}.outline-list .review-module{color:#6b7fc0}.outline-list .review-takeaway{color:#3e547c}.outline-list .review-point{color:#687c9d}
.document-visual{background:linear-gradient(145deg,#eef2ff,#fff);border-color:#d8e1f6;box-shadow:0 12px 32px #5669b914}.document-visual span{background:#cbd6f0}.document-visual span:first-child{background:#647bd0}.empty-result strong{color:#60769b}
.source-status div{background:#f2f5fc}.result-status.ready{background:#edf2ff;color:#6277b8}.generation-stage{background:radial-gradient(ellipse at 50% 45%,#f1f3ff,transparent 65%),#fff}.generation-stage p{color:#7486a8}.generation-spinner{border-color:#e8ecfa;border-top-color:#6675d8;border-right-color:#a098e5}.generation-notice{background:#f0f3ff;border-color:#d6def7;color:#5067a4}.generation-notice[data-kind="success"]{background:#edf7f4;border-color:#beddd2;color:#45816d}
#skillStatus,.outline-help{color:#8392ad}.admin-tabs{border-color:#dce4f4}.admin-tabs button.active{color:#5265bb;border-bottom-color:#7766d2}.admin-panel{border-color:#dfe6f5;box-shadow:var(--shadow)}.admin-panel p,.admin-note,.admin-subtitle,.management-row p{color:#7c8ca8}.admin-fields label{color:#607495}.admin-status{background:#edf2ff;color:#5369a6}.management-row{border-color:#dfe6f4}.row-actions button,.muted-button{border-color:#dbe3f4;color:#5d71ad;background:#f8faff}.badge{background:#edf1ff;color:#6174ad}.admin-panel input[type=file]{background:#f7f9ff}
.toast{background:#2d3e68;box-shadow:0 8px 26px #344d9124}.result-actions{gap:10px}.result-actions button{font-size:14px;padding-inline:10px;white-space:nowrap}
@media(max-width:720px){.sidebar{background:#edf2ff}.result-actions{flex-wrap:wrap}.result-actions button{white-space:normal}}

/* Visual style picker uses diagrams as indicative previews, not fixed templates. */
.style-row{display:block}.style-row>span{display:flex;justify-content:space-between;align-items:center;gap:8px}.style-preview-note{font-size:11px;font-weight:400;color:#8996b0}.style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.style-chip.style-preview-card{display:flex;flex-direction:column;text-align:left;border:1px solid #dfe5f3;border-radius:10px;padding:8px;background:#fff;min-width:0;color:#536681;white-space:normal}.style-preview-card svg{width:100%;height:auto;border:1px solid #edf0f8;border-radius:5px}.style-preview-title{display:block;font-size:13px;color:#405782;margin:9px 0 5px}.style-preview-card small{font-size:11px;line-height:1.6;color:#8795ae}.style-chip.style-preview-card.active{background:#f2f4ff;border-color:#8e9adf;box-shadow:0 0 0 2px #727eda10}.style-preview-card:focus-visible{outline:2px solid #6678cc;outline-offset:3px}@media(max-width:480px){.style-options{gap:6px}.style-chip.style-preview-card{padding:6px}.style-preview-title{font-size:12px}.style-preview-card small{font-size:10px}.style-preview-note{font-size:10px}}

.deck-style-thumbnail{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:white;border:1px solid #e6ebf6;border-radius:5px}.deck-style-missing{display:grid;place-items:center;width:100%;aspect-ratio:16/9;background:#f3f5fa;color:#8b96ac;border:1px dashed #d5ddeb;border-radius:5px;font-size:11px}

.deck-gallery-preview{padding:0!important;display:block!important;height:auto!important;background:#fff!important}.deck-gallery-preview .deck-style-thumbnail{border:0;border-radius:0;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}

.deck-style-thumbnail{cursor:zoom-in}.deck-style-thumbnail:focus-visible{outline:2px solid #6274cd;outline-offset:2px}.deck-preview-dialog{width:min(1200px,95vw);max-width:95vw;max-height:94dvh;padding:16px;border:1px solid #dce4f5;border-radius:16px;box-shadow:0 24px 80px #24375a40}.deck-preview-dialog::backdrop{background:#1c2b4b80;backdrop-filter:blur(4px)}.deck-preview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;color:#40577c}.deck-preview-header button{border:0;background:#eef2ff;border-radius:8px;width:36px;height:36px;color:#5167a0;font-size:24px}.deck-preview-dialog>img{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain}.deck-preview-dialog>p{font-size:12px;color:#8090ac;margin:12px 0 0}
