:root{
  --navy:#10213a;--navy-2:#172d4b;--blue:#2c67e8;--blue-soft:#edf4ff;--gold:#e5ad43;--gold-soft:#fff7df;
  --green:#169873;--green-soft:#eaf9f4;--red:#d94a55;--red-soft:#fff0f2;--amber:#c47c15;--amber-soft:#fff5e7;
  --ink:#172033;--muted:#69758a;--line:#dfe5ee;--surface:#fff;--canvas:#f3f6fa;--shadow:0 16px 45px rgba(22,36,59,.10);
  --radius:18px;--radius-sm:12px;--sidebar:258px;--helper:326px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}code{background:#e9eef6;padding:.15rem .38rem;border-radius:5px;color:#253b60}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,var(--navy),#0b172a);color:white;padding:22px 17px;display:flex;flex-direction:column;z-index:30;box-shadow:12px 0 35px rgba(8,20,37,.12)}.brand-block{display:flex;align-items:center;gap:12px;padding:2px 8px 20px}.brand-mark{width:47px;height:47px;border-radius:15px;background:linear-gradient(135deg,#f7c667,#d89525);color:#10213a;font-weight:900;display:grid;place-items:center;letter-spacing:-1px;box-shadow:0 10px 22px rgba(229,173,67,.22)}.brand-block h1{font-size:19px;letter-spacing:.7px;margin:0}.brand-block p{margin:2px 0 0;color:#f4c35f;font-weight:800;font-size:12px;letter-spacing:2.5px}.mode-card{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);padding:12px;border-radius:14px;margin-bottom:18px}.mode-card strong{display:block;font-size:11px;letter-spacing:.9px}.mode-card small{display:block;color:#aab8ca;margin-top:3px;font-size:10px}.mode-dot{width:10px;height:10px;border-radius:50%;background:#4de4ac;box-shadow:0 0 0 5px rgba(77,228,172,.12)}.main-nav{display:flex;flex-direction:column;gap:5px}.nav-button{border:0;color:#b8c5d6;background:transparent;text-align:left;padding:11px 12px;border-radius:11px;display:flex;align-items:center;gap:11px;font-weight:650}.nav-button span{width:19px;text-align:center;font-size:17px}.nav-button:hover,.nav-button.active{color:#fff;background:rgba(255,255,255,.11)}.nav-button.active{box-shadow:inset 3px 0 0 var(--gold)}.sidebar-footer{margin-top:auto;display:flex;flex-direction:column;gap:12px;align-items:center}.sidebar-footer small{color:#708198}.workspace{margin-left:var(--sidebar);margin-right:var(--helper);min-height:100vh}.topbar{height:85px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);padding:16px 28px;display:flex;align-items:center;justify-content:space-between}.topbar h2{margin:2px 0 0;font-size:22px}.eyebrow{text-transform:uppercase;letter-spacing:1.45px;color:#718096;font-weight:800;font-size:10px;margin:0}.topbar-actions{display:flex;align-items:center;gap:14px}.save-status{display:flex;align-items:center;gap:7px;color:#66758a;font-size:12px}.save-status span{width:8px;height:8px;border-radius:50%;background:var(--green)}.privacy-banner{margin:18px 28px 0;background:var(--gold-soft);border:1px solid #f1d895;color:#6f541b;border-radius:12px;padding:10px 15px}.view{display:none;padding:22px 28px 45px}.view.active{display:block}.hero-card{min-height:280px;border-radius:24px;padding:34px 38px;display:grid;grid-template-columns:1fr 330px;gap:30px;align-items:center;background:radial-gradient(circle at 85% 20%,rgba(91,146,255,.34),transparent 35%),linear-gradient(135deg,#10213a,#173c70);color:#fff;box-shadow:var(--shadow);overflow:hidden}.hero-card h3{font-size:35px;line-height:1.1;max-width:650px;margin:15px 0 14px;letter-spacing:-1.1px}.hero-card p{max-width:690px;color:#cbd7e8;font-size:15px;line-height:1.65}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:850;letter-spacing:.65px}.pill.gold{background:rgba(237,183,78,.16);color:#ffd77e;border:1px solid rgba(237,183,78,.35)}.pill.warning{background:var(--amber-soft);color:#975c0d}.hero-orbit{position:relative;width:280px;height:230px;margin:auto}.orbit-core{position:absolute;inset:65px 90px;width:100px;height:100px;border-radius:30px;display:grid;place-items:center;font-size:31px;font-weight:900;background:linear-gradient(135deg,#fff,#dce9ff);color:#173a6d;box-shadow:0 17px 55px rgba(0,0,0,.25)}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%;inset:23px 40px}.hero-orbit:after{inset:0 15px}.orbit-item{position:absolute;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:11px;font-weight:850;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(5px)}.orbit-item.one{top:4px;left:105px}.orbit-item.two{top:78px;right:0}.orbit-item.three{bottom:0;left:105px}.orbit-item.four{top:78px;left:0}.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.primary-button,.secondary-button,.ghost-button,.danger-outline-button{border-radius:10px;padding:10px 15px;font-weight:750;border:1px solid transparent;transition:.18s}.primary-button{background:var(--blue);color:#fff;box-shadow:0 7px 18px rgba(44,103,232,.2)}.primary-button:hover{transform:translateY(-1px);background:#2459cb}.secondary-button{background:#fff;color:#244066;border-color:var(--line)}.secondary-button:hover{border-color:#aebbd0;background:#f8fafc}.ghost-button{background:transparent;color:#d7e1ee;border-color:rgba(255,255,255,.2)}.danger-outline-button{background:#fff;color:var(--red);border-color:#f0bcc2}.compact{padding:8px 12px;font-size:12px}.full{width:100%}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 7px 20px rgba(31,49,78,.045)}.metric-card span{display:block;color:var(--muted);font-size:11px;font-weight:700}.metric-card strong{display:block;margin:7px 0 5px;font-size:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-card small{color:#8390a3}.two-column-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:21px;box-shadow:0 8px 24px rgba(31,49,78,.045)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-heading h3,.section-intro h3{margin:5px 0 0;font-size:19px}.sample-list{display:flex;flex-direction:column;gap:11px}.sample-card{width:100%;display:grid;grid-template-columns:48px 1fr 20px;align-items:center;gap:12px;padding:13px;text-align:left;border:1px solid var(--line);border-radius:13px;background:#fff}.sample-card:hover{border-color:#9fb5d8;box-shadow:0 7px 18px rgba(28,62,110,.08)}.sample-card strong,.sample-card span,.sample-card small{display:block}.sample-card span{margin-top:2px;color:#4f6077}.sample-card small{margin-top:5px;color:#8995a6;font-size:10px}.sample-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:21px;font-weight:900}.sample-icon.math{background:#edf3ff;color:#275bc9}.sample-icon.science{background:#e9f8f3;color:#158561}.arrow{font-size:20px!important;color:#8d99aa!important}.flow-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}.flow-list li{display:flex;gap:12px}.flow-list>li>span{min-width:29px;height:29px;border-radius:9px;background:#eff4fb;color:#2a5cb3;display:grid;place-items:center;font-weight:850}.flow-list strong,.flow-list small{display:block}.flow-list small{color:var(--muted);margin-top:3px;line-height:1.45}.section-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.section-intro>div>p:not(.eyebrow){color:var(--muted);max-width:760px;line-height:1.6;margin:8px 0 0}.inline-filters{display:flex;gap:8px;flex-wrap:wrap}.inline-filters select,.inline-filters input{min-width:145px}.filters select,.filters input,input,select,textarea{border:1px solid #cfd8e5;border-radius:9px;background:#fff;color:var(--ink);padding:10px 11px;outline:none}.filters input:focus,input:focus,select:focus,textarea:focus{border-color:#6b99ef;box-shadow:0 0 0 3px rgba(44,103,232,.1)}textarea{resize:vertical}.curriculum-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.curriculum-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:12px}.curriculum-card h4{margin:0;font-size:16px}.curriculum-card p{margin:0;color:var(--muted);line-height:1.5}.curriculum-meta{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:10px;padding:5px 8px;border-radius:999px;background:#eff3f8;color:#56657a;font-weight:750}.tag.official{background:var(--green-soft);color:#087759}.tag.golden{background:var(--gold-soft);color:#866116}.curriculum-card .primary-button{margin-top:auto}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.form-panel{padding:0;overflow:hidden}.form-section{padding:22px;border-bottom:1px solid var(--line)}.form-section:last-child{border-bottom:0}.form-section-title{display:flex;gap:11px;align-items:center;margin-bottom:17px}.form-section-title>span{width:31px;height:31px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:850}.form-section-title strong,.form-section-title small{display:block}.form-section-title small{color:var(--muted);margin-top:2px}.form-grid{display:grid;gap:12px;margin-bottom:12px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:1fr 1fr 1fr}label{font-size:11px;font-weight:750;color:#546176;display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.repeat-header{display:flex;justify-content:space-between;align-items:center;margin:17px 0 8px}.text-button{border:0;background:transparent;color:var(--blue);font-weight:800}.repeat-list{display:flex;flex-direction:column;gap:9px}.repeat-item{display:grid;grid-template-columns:110px 1fr auto;gap:8px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fafbfd}.repeat-item.skill-item{grid-template-columns:105px 1fr 1fr auto}.remove-button{border:0;width:34px;height:38px;border-radius:9px;background:var(--red-soft);color:var(--red);font-weight:900}.builder-side{min-width:0}.sticky-card{position:sticky;top:105px}.sticky-card h3{font-size:18px;margin:7px 0 14px}.checklist{display:flex;flex-direction:column;gap:9px;margin-bottom:16px}.check-item{display:flex;gap:9px;align-items:center;color:#68768a}.check-item:before{content:"";width:18px;height:18px;border-radius:6px;background:#edf1f6;border:1px solid #d4dce7}.check-item.done{color:#16785d}.check-item.done:before{content:"✓";color:#fff;background:var(--green);border-color:var(--green);display:grid;place-items:center;font-size:11px}
.source-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.source-upload-card{border:1px solid var(--line);border-radius:15px;padding:16px;background:#fbfcfe}.source-upload-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px}.source-upload-heading strong,.source-upload-heading small{display:block}.source-upload-heading small{color:var(--muted);margin-top:3px;font-size:10px}.source-file-icon{width:47px;height:47px;border-radius:13px;background:#edf3ff;color:#2859b8;display:grid;place-items:center;font-size:10px;font-weight:900}.source-file-icon.textbook{background:#fff5e7;color:#9a6113}.source-file-status{min-height:62px;border:1px dashed #c7d3e2;border-radius:11px;padding:11px 12px;background:#fff;margin-bottom:10px}.source-file-status strong,.source-file-status span{display:block}.source-file-status strong{font-size:12px}.source-file-status span{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.45;word-break:break-word}.source-file-status.attached{border-style:solid;border-color:#a9ddcb;background:var(--green-soft)}.source-file-actions{margin-bottom:12px}.source-file-actions button:disabled{opacity:.45;cursor:not-allowed;transform:none}.source-upload-card label{margin-top:9px}.source-upload-notice{margin-top:14px}.source-upload-notice p{margin:5px 0 0}.source-size{font-variant-numeric:tabular-nums}
.notice-card{border-radius:12px;padding:13px 14px;margin-top:13px}.notice-card strong{display:block}.notice-card p{margin:5px 0 0;line-height:1.5;font-size:12px}.notice-card.warning{background:var(--amber-soft);color:#825711}.notice-card.info{background:var(--blue-soft);color:#244e92}.notice-card.success{background:var(--green-soft);color:#116d55}.slim-panel{padding:14px 17px}.transit-toolbar{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:14px}.toolbar-group{display:flex;align-items:end;gap:9px}.toolbar-group label{margin:0}.toolbar-group input{min-width:120px}.toolbar-group>input[type=search]{min-width:240px}.toolbar-group span{padding:9px;color:var(--muted)}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow:auto;max-height:590px}.data-table{width:100%;border-collapse:collapse;min-width:1000px}.data-table th{position:sticky;top:0;background:#eef3f9;color:#536278;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.55px;padding:11px;border-bottom:1px solid var(--line);z-index:2}.data-table td{padding:7px 9px;border-bottom:1px solid #edf0f4;vertical-align:middle}.data-table tr:hover td{background:#fbfcfe}.data-table input,.data-table select{width:100%;min-width:70px;padding:7px 8px;border-radius:7px}.data-table .row-number{color:#9aa5b5;width:35px}.status-chip{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850}.status-chip.complete{background:var(--green-soft);color:#0f755a}.status-chip.review{background:var(--amber-soft);color:#9a6113}.empty-cell,.empty-state{text-align:center;color:#8a96a8;padding:35px!important}.compact-metrics{margin-top:0}.audit-layout{align-items:start}.audit-list{display:flex;flex-direction:column;gap:8px}.audit-item{border-radius:11px;padding:11px 12px;display:grid;grid-template-columns:28px 1fr;gap:9px}.audit-item.error{background:var(--red-soft);color:#96323b}.audit-item.warning{background:var(--amber-soft);color:#8a5b12}.audit-item.success{background:var(--green-soft);color:#117156}.audit-item strong,.audit-item small{display:block}.audit-item small{margin-top:3px;line-height:1.45}.analysis-content{display:flex;flex-direction:column;gap:14px}.analysis-stat{display:grid;grid-template-columns:135px 1fr 45px;gap:9px;align-items:center}.analysis-stat span{font-size:11px;color:#647287}.bar-track{height:9px;background:#edf1f5;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#2c67e8,#6a9cff);border-radius:999px}.analysis-stat strong{text-align:right;font-size:11px}.analysis-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mini-stat{padding:11px;background:#f6f8fb;border-radius:11px}.mini-stat span,.mini-stat strong{display:block}.mini-stat strong{font-size:17px;margin-top:5px}.intervention-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.intervention-card{border:1px solid var(--line);border-radius:13px;padding:14px}.intervention-card h4{margin:0 0 7px}.intervention-card p{color:var(--muted);font-size:12px;line-height:1.55;margin:0}.top-gap{margin-top:18px}.prompt-layout{display:grid;grid-template-columns:300px 1fr;gap:18px}.prompt-controls{align-self:start}.checkbox-row{flex-direction:row;align-items:center;font-weight:650}.checkbox-row input{width:auto}.prompt-output{width:100%;min-height:430px;background:#0f1f35;color:#e2ebf7;border:0;border-radius:13px;padding:18px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65}.notebook-layout{display:grid;grid-template-columns:1fr 360px;gap:18px}.source-options{display:flex;flex-direction:column;gap:9px}.source-option{display:grid;grid-template-columns:22px 1fr;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px;margin:0}.source-option input{margin-top:2px}.source-option strong,.source-option span{display:block}.source-option span{font-size:11px;color:var(--muted);margin-top:4px}.file-tree{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#101f34;color:#d5e3f3;border-radius:13px;padding:15px;font-size:11px;line-height:1.85;min-height:310px;white-space:pre-wrap}.export-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.export-card{display:grid;grid-template-columns:65px 1fr;gap:13px;align-items:center;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px}.export-card:hover{border-color:#9ab3db;box-shadow:0 10px 28px rgba(31,60,105,.08);transform:translateY(-1px)}.export-icon{width:58px;height:54px;border-radius:13px;background:#edf3ff;color:#2859b8;display:grid;place-items:center;font-size:11px;font-weight:900}.export-card strong,.export-card small{display:block}.export-card small{color:var(--muted);margin-top:5px;line-height:1.4}.danger-card .export-icon{background:var(--red-soft);color:var(--red)}.library-status{display:flex;gap:10px;flex-wrap:wrap}.library-chip{display:flex;align-items:center;gap:8px;background:#f4f7fb;border-radius:10px;padding:9px 11px}.library-chip span{width:8px;height:8px;border-radius:50%}.library-chip .ok{background:var(--green)}.library-chip .missing{background:var(--red)}.ai-helper{position:fixed;inset:0 0 0 auto;width:var(--helper);background:#fff;border-left:1px solid var(--line);z-index:25;padding:21px 18px;display:flex;flex-direction:column;box-shadow:-12px 0 35px rgba(31,49,78,.05)}.helper-heading{display:flex;justify-content:space-between;align-items:flex-start}.helper-heading h3{margin:5px 0 0}.helper-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#eef2f7;padding:4px;border-radius:11px;margin:17px 0}.helper-tabs button{border:0;background:transparent;padding:8px 4px;border-radius:8px;color:#66758a;font-size:11px;font-weight:800}.helper-tabs button.active{background:#fff;color:#244574;box-shadow:0 3px 10px rgba(20,43,78,.08)}.helper-content{flex:1;overflow:auto}.helper-step{display:grid;grid-template-columns:27px 1fr;gap:9px;margin-bottom:13px}.helper-step>span{width:27px;height:27px;border-radius:9px;background:#eef3fa;display:grid;place-items:center;font-weight:850;color:#2c5dae}.helper-step strong,.helper-step small{display:block}.helper-step small{color:var(--muted);line-height:1.45;margin-top:3px}.icon-button{border:0;background:#edf1f6;color:#3c4f6b;width:34px;height:34px;border-radius:10px;font-size:17px}.helper-fab{display:none;position:fixed;right:17px;bottom:18px;width:52px;height:52px;border:0;border-radius:17px;background:var(--navy);color:#fff;font-weight:900;z-index:24;box-shadow:0 13px 27px rgba(16,33,58,.28)}.mobile-only{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(6,17,31,.62);backdrop-filter:blur(4px);z-index:100;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.custom-alert{width:min(470px,100%);background:#fff;border-radius:22px;padding:25px;box-shadow:0 35px 90px rgba(0,0,0,.3);display:grid;grid-template-columns:55px 1fr;gap:16px;animation:alertIn .18s ease}.alert-icon{width:53px;height:53px;border-radius:17px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-size:23px;font-weight:900}.custom-alert[data-type="success"] .alert-icon{background:var(--green-soft);color:var(--green)}.custom-alert[data-type="warning"] .alert-icon{background:var(--amber-soft);color:var(--amber)}.custom-alert[data-type="error"] .alert-icon{background:var(--red-soft);color:var(--red)}.alert-content h3{font-size:20px;margin:6px 0 8px}.alert-content>p:not(.eyebrow){color:#617086;line-height:1.55;margin:0;white-space:pre-line}.alert-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:5px}@keyframes alertIn{from{transform:translateY(10px) scale(.98);opacity:0}to{transform:none;opacity:1}}.print-report{display:none}
@media(max-width:1250px){:root{--helper:0px}.ai-helper{transform:translateX(100%);transition:.2s;width:326px}.ai-helper.open{transform:translateX(0)}.helper-fab{display:block}.workspace{margin-right:0}.close-helper-button{display:block}}
@media(max-width:960px){.source-upload-grid{grid-template-columns:1fr}.hero-card{grid-template-columns:1fr}.hero-orbit{display:none}.metric-grid,.curriculum-grid{grid-template-columns:repeat(2,1fr)}.builder-layout,.notebook-layout{grid-template-columns:1fr}.sticky-card{position:static}.intervention-grid,.export-grid{grid-template-columns:repeat(2,1fr)}.prompt-layout{grid-template-columns:1fr}.prompt-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.prompt-controls .full{grid-column:1/-1}.form-grid.three{grid-template-columns:1fr 1fr}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{width:258px;transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-only{display:inline-grid}.topbar{padding:13px 16px;height:76px}.topbar>div:nth-child(2){flex:1;margin-left:10px}.topbar-actions .save-status{display:none}.privacy-banner{margin:12px 15px 0}.view{padding:17px 15px 35px}.hero-card{padding:25px 22px}.hero-card h3{font-size:28px}.two-column-grid,.metric-grid,.curriculum-grid,.export-grid,.intervention-grid{grid-template-columns:1fr}.section-intro{flex-direction:column}.inline-filters{width:100%}.inline-filters>*{flex:1}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.repeat-item,.repeat-item.skill-item{grid-template-columns:1fr}.repeat-item .remove-button{width:100%}.transit-toolbar{align-items:stretch;flex-direction:column}.toolbar-group{flex-wrap:wrap}.toolbar-group>input[type=search]{min-width:0;flex:1}.prompt-controls{display:block}.analysis-summary{grid-template-columns:1fr}.ai-helper{width:min(326px,92vw)}}
@media print{body{background:#fff}.sidebar,.topbar,.privacy-banner,.view,.ai-helper,.helper-fab,.modal-backdrop{display:none!important}.workspace{margin:0}.print-report{display:block!important;padding:25px;color:#000}.print-report h1,.print-report h2,.print-report h3{color:#10213a}.print-report table{width:100%;border-collapse:collapse;font-size:9px}.print-report th,.print-report td{border:1px solid #bbb;padding:4px;text-align:left}.print-report .print-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.print-report .print-box{border:1px solid #ccc;padding:8px}.print-report .page-break{break-before:page}}

/* R1C — Unit 5 source workflow */
.pill.success{background:var(--green-soft);color:#0f755a}.source-auto-display{margin-top:18px;border:1px solid #cfe0f7;background:linear-gradient(180deg,#f7fbff,#fff);border-radius:16px;padding:16px}.source-auto-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}.source-auto-heading h4{margin:4px 0 0;font-size:15px}.source-preview-grid,.unit5-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.source-preview-card,.unit5-source-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}.source-preview-title,.unit5-source-card-head{display:flex;align-items:center;gap:10px;margin-bottom:11px}.source-preview-title strong,.source-preview-title small,.unit5-source-card-head strong,.unit5-source-card-head small{display:block}.source-preview-title small,.unit5-source-card-head small{color:var(--muted);margin-top:3px;line-height:1.4}.source-mini-badge{min-width:44px;height:38px;padding:0 8px;border-radius:10px;background:#eaf1ff;color:#2859b8;display:grid;place-items:center;font-size:10px;font-weight:900}.source-mini-badge.book{background:#fff2d9;color:#9a6415}.inline-document-preview{min-height:170px;border:1px dashed #cfd8e5;border-radius:12px;background:#f7f9fc;overflow:hidden;position:relative}.inline-document-preview.large{min-height:270px}.inline-document-preview iframe,.inline-document-preview img{width:100%;height:270px;border:0;display:block;object-fit:contain;background:#fff}.inline-document-preview pre{white-space:pre-wrap;margin:0;padding:13px;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;max-height:270px;overflow:auto}.empty-source-preview{min-height:inherit;display:grid;place-items:center;text-align:center;padding:20px;color:#8a96a8;font-size:11px;line-height:1.5}.builder-source-summary{margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f7f9fc}.mini-source-row{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #e6ebf2;font-size:11px}.mini-source-row:last-of-type{border-bottom:0;margin-bottom:9px}.mini-source-row strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2c466b}.unit5-intro{align-items:center}.unit5-source-console{margin-bottom:18px}.unit5-stage-list{display:flex;flex-direction:column;gap:16px}.unit5-stage{display:grid;grid-template-columns:62px 1fr;gap:17px;padding:20px}.unit5-stage-number{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--navy),#27558f);color:#fff;display:grid;place-items:center;font-size:17px;font-weight:900;box-shadow:0 10px 22px rgba(16,33,58,.18)}.unit5-stage-body{min-width:0}.stage-status{border-radius:999px;padding:6px 10px;background:#eef2f7;color:#66758a;font-size:10px;font-weight:850;white-space:nowrap}.stage-status.done{background:var(--green-soft);color:#0f755a}.stage-status.warning{background:var(--amber-soft);color:#97600f}.unit5-stage-body>p{color:var(--muted);line-height:1.6}.unit5-check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.unit5-check-item{border:1px solid var(--line);border-radius:11px;padding:10px 12px;display:flex;gap:8px;align-items:flex-start;color:#647287;font-size:11px}.unit5-check-item:before{content:'○';color:#8da0b7;font-weight:900}.unit5-check-item.done{background:var(--green-soft);color:#0f755a;border-color:#c8ebdf}.unit5-check-item.done:before{content:'✓';color:var(--green)}.unit5-prompt{min-height:175px;margin:11px 0 13px}.unit5-resource-fields{align-items:start}.unit5-resource-fields label{margin:0}.studio-tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:15px 0}.studio-tool-grid button{border:1px solid var(--line);background:#f8fafc;color:#42546d;border-radius:11px;padding:11px;font-weight:800}.studio-tool-grid button:hover,.studio-tool-grid button.active{background:#edf4ff;color:#2859b8;border-color:#9fbbee}.unit5-pack-builder{margin-top:18px}.required-source{background:#f6fbf9;border-color:#cbe7dc}.required-source input{accent-color:var(--green)}.unit5-source-card.attached{border-color:#9ed8c4;background:linear-gradient(180deg,#f3fcf8,#fff)}.unit5-source-card .button-row{margin-bottom:11px}
@media(max-width:960px){.source-preview-grid,.unit5-source-grid{grid-template-columns:1fr}.studio-tool-grid{grid-template-columns:repeat(2,1fr)}.unit5-check-grid{grid-template-columns:1fr}}
@media(max-width:760px){.unit5-stage{grid-template-columns:1fr}.unit5-stage-number{width:50px;height:50px}.studio-tool-grid{grid-template-columns:1fr}.source-auto-heading{flex-direction:column}.unit5-intro .button-row{width:100%}.unit5-intro .button-row>*{flex:1;text-align:center}}
.secondary-button[href]{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* R1C — Curriculum engine, dynamic Transit PBD and Unit 5 journey */
.curriculum-mode-bar{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:end;padding:14px;border:1px solid #d8e2ef;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef5ff);margin-bottom:16px}
.curriculum-mode-bar label{margin:0}.curriculum-coverage-badge{padding:11px 14px;border-radius:999px;font-weight:800;font-size:.82rem;background:#e8eef6;color:#40506a;white-space:nowrap}.curriculum-coverage-badge.success{background:#dcf7ec;color:#08785a}.curriculum-coverage-badge.warning{background:#fff1dc;color:#9a5a00}
.curriculum-status-panel{margin:14px 0 4px;padding:14px 16px;border-radius:14px;background:#f5f8fc;border-left:4px solid #2f6df6}.curriculum-status-panel strong{display:block;color:#14233d}.curriculum-status-panel p{margin:4px 0 0;color:#64748b}
.auto-curriculum-preview{margin:14px 0 20px}.curriculum-preview-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px;border-radius:16px;background:#10213a;color:white}.curriculum-preview-heading h4{font-size:1.15rem;margin:8px 0 2px}.curriculum-preview-heading p{margin:0;color:#cbd7e8}.curriculum-preview-heading>div:last-child{text-align:center;min-width:110px}.curriculum-preview-heading>div:last-child strong{display:block;font-size:2rem}.curriculum-preview-heading>div:last-child small{color:#cbd7e8}
.curriculum-standard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:12px}.curriculum-standard-card{border:1px solid #dbe4ef;border-radius:14px;background:white;overflow:hidden}.standard-card-head{display:flex;gap:10px;align-items:flex-start;padding:13px 14px;background:#f4f7fb}.standard-card-head span{font-weight:900;color:#2563eb;background:#e8f0ff;padding:5px 8px;border-radius:8px}.standard-card-head strong{line-height:1.35}.curriculum-standard-card ul{margin:0;padding:12px 18px 14px 34px}.curriculum-standard-card li{margin:7px 0;color:#40506a;line-height:1.45}.performance-standard-panel{margin-top:12px;border:1px solid #dbe4ef;border-radius:14px;padding:14px;background:#fbfcfe}.performance-standard-panel h4{margin:0 0 10px}.performance-row{display:grid;grid-template-columns:52px 1fr;gap:10px;padding:9px 0;border-top:1px solid #e6ecf3}.performance-row:first-of-type{border-top:0}.performance-row b{color:#0f766e}
.transit-view-tabs{display:flex;gap:8px;margin:0 0 12px}.tab-button{border:1px solid #cfdae8;background:white;color:#52627a;padding:10px 16px;border-radius:10px;font-weight:800;cursor:pointer}.tab-button.active{background:#10213a;color:white;border-color:#10213a}.performance-reference-strip{display:flex;gap:8px;overflow:auto;padding:0 0 14px}.performance-reference-strip>button{min-width:230px;max-width:310px;text-align:left;border:1px solid #d9e2ee;background:#f8fafc;border-radius:12px;padding:10px;cursor:help}.performance-reference-strip>button b{display:block;color:#0f766e;margin-bottom:4px}.performance-reference-strip>button span{display:block;font-size:.76rem;color:#596981;line-height:1.35;max-height:3.9em;overflow:hidden}.wide-matrix-scroll{max-height:68vh}.matrix-table{border-collapse:separate;border-spacing:0;min-width:max-content}.matrix-table th,.matrix-table td{min-width:98px}.matrix-table .sticky-col{position:sticky;z-index:4;background:#fff}.matrix-table thead .sticky-col{z-index:7;background:#10213a}.matrix-table .first{left:0;min-width:50px}.matrix-table .second{left:50px;min-width:118px;box-shadow:4px 0 8px rgba(15,23,42,.08)}.ls-matrix-head{min-width:170px;max-width:220px}.ls-matrix-head span{display:block;font-size:.82rem;color:#dbeafe}.ls-matrix-head small{display:block;font-weight:500;line-height:1.3;margin-top:5px;white-space:normal;max-height:3.9em;overflow:hidden}.matrix-tp-cell select{min-width:78px;font-weight:800}.items-recorded{white-space:nowrap;color:#0f766e}.learning-standard-cell{min-width:320px;max-width:440px;white-space:normal;line-height:1.4}
.unit5-journey-panel{margin-bottom:18px}.journey-progress{height:10px;border-radius:999px;background:#e7edf5;overflow:hidden;margin:4px 0 16px}.journey-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#18a77b,#2f6df6);transition:width .3s ease}.journey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.journey-grid button{position:relative;text-align:left;border:1px solid #dbe4ef;background:#fff;border-radius:14px;padding:13px 12px 12px 48px;min-height:88px;cursor:pointer;transition:.2s}.journey-grid button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,31,55,.08)}.journey-grid button>span{position:absolute;left:12px;top:13px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#e8eef6;color:#52627a;font-weight:900}.journey-grid button strong{display:block;color:#16243d}.journey-grid button small{display:block;margin-top:5px;color:#718096;line-height:1.35}.journey-grid button.done{border-color:#7ed8ba;background:#effbf6}.journey-grid button.done>span{background:#0f9f73;color:white}.journey-grid button.done>span{font-size:.9rem;font-weight:900}.journey-grid button[data-complete='true']{border-color:#69cfae!important;background:#effbf6!important}.journey-grid button[data-complete='true']>span{background:#0f9f73!important;color:#fff!important}.journey-grid button.next{border-color:#8fb2ff;box-shadow:0 0 0 2px rgba(47,109,246,.08)}
@media(max-width:760px){.curriculum-mode-bar{grid-template-columns:1fr}.curriculum-coverage-badge{white-space:normal}.curriculum-preview-heading{align-items:flex-start}.journey-grid{grid-template-columns:1fr 1fr}.matrix-table .second{left:48px}.curriculum-standard-grid{grid-template-columns:1fr}}
@media(max-width:480px){.journey-grid{grid-template-columns:1fr}}
.curriculum-import-panel{margin:12px 0 16px;border:1px solid #d7e2ef;border-radius:14px;background:#fbfdff;overflow:hidden}.curriculum-import-panel summary{cursor:pointer;padding:13px 16px;font-weight:800;color:#29456d;list-style:none}.curriculum-import-panel summary::-webkit-details-marker{display:none}.curriculum-import-panel summary:after{content:'+';float:right;font-size:1.1rem}.curriculum-import-panel[open] summary:after{content:'−'}.curriculum-import-panel summary span{color:#10213a}.curriculum-import-body{padding:0 16px 16px}.curriculum-import-body textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;line-height:1.45}.field-help{display:block;color:#718096;line-height:1.45;margin-top:8px}.notice-card.info{background:#edf5ff;border-color:#c6dcff;color:#29456d}


/* R1D: link-first textbook source workflow */
.unit5-link-field { display: grid; gap: 7px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.unit5-link-field input { width: 100%; }
.link-source-preview a { display: inline-block; margin: 8px 0; font-weight: 800; color: var(--blue); overflow-wrap: anywhere; }
.unit5-source-card.ready { border-color: #9edfc8; box-shadow: 0 0 0 1px rgba(23, 151, 111, .08); }

/* R1F: DSKP reader and automatic curriculum-linked Transit PBD samples */

/* R1F — DSKP Curriculum Reader */
.dskp-reader-box{margin-top:14px;padding:14px;border:1px solid #c9d8ef;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef5ff)}
.dskp-reader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.dskp-reader-head strong{display:block;color:#10284a}
.dskp-reader-head small{display:block;margin-top:4px;color:#667892;line-height:1.45}
.dskp-reader-summary,.curriculum-review-summary{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px dashed #c9d8ef;color:#52657e;font-size:.88rem;line-height:1.5;white-space:pre-line}
.dskp-reader-summary.success,.curriculum-review-summary.success{border-style:solid;border-color:#9ed8c5;background:#effaf6;color:#12694f}
.dskp-reader-summary.warning,.curriculum-review-summary.warning{border-style:solid;border-color:#f2d28a;background:#fff9e9;color:#805a0c}
.dskp-reader-summary.error,.curriculum-review-summary.error{border-style:solid;border-color:#f1b6be;background:#fff2f4;color:#9b2434}
@media(max-width:760px){.dskp-reader-head{flex-direction:column}.dskp-reader-head .pill{align-self:flex-start}}


/* R1G Workshop Library Manager */
.library-intro { align-items: flex-start; }
.library-metrics { margin-top: 18px; }
.library-toolbar-heading { gap: 18px; align-items: flex-start; }
.library-toolbar-heading .button-row { justify-content: flex-end; }
.library-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.library-drop-zone { border: 2px dashed #b7c7dc; border-radius: 18px; padding: 24px; text-align: center; display: grid; gap: 6px; color: #5f7089; background: #f7faff; cursor: pointer; transition: .2s ease; }
.library-drop-zone strong { color: #10213a; font-size: 1rem; }
.library-drop-zone:hover, .library-drop-zone.dragging { border-color: #2f6df4; background: #edf4ff; transform: translateY(-1px); }
.library-pack-list { display: grid; gap: 14px; margin-top: 18px; }
.library-pack-card { border: 1px solid #d9e3f0; border-left: 5px solid #2f6df4; border-radius: 18px; padding: 18px; display: flex; justify-content: space-between; gap: 20px; background: #fff; box-shadow: 0 9px 24px rgba(16,33,58,.06); }
.library-pack-card.status-needs-review { border-left-color: #e6a72d; }
.library-pack-card.status-conflict { border-left-color: #d84f5f; background: #fffafb; }
.library-pack-main { min-width: 0; }
.library-pack-main h4 { margin: 10px 0 6px; font-size: 1.08rem; color: #10213a; }
.library-pack-main p { margin: 0 0 6px; color: #52647d; }
.library-pack-main small { color: #718099; }
.library-pack-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.library-pack-actions { min-width: 168px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.library-status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.library-status.ready { color: #08775c; background: #dff7ef; }
.library-status.needs_review { color: #966008; background: #fff0d3; }
.library-status.conflict { color: #aa2337; background: #ffe3e7; }
.library-issues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.library-issues span { background: #fff2d9; color: #80540c; border-radius: 8px; padding: 5px 8px; font-size: .76rem; }
.library-conflict-note { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: #ffe9ec; color: #9b2535; font-size: .82rem; font-weight: 700; }
.library-conflict-list { display: grid; gap: 10px; }
.library-audit-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border: 1px solid #e2e9f2; border-radius: 13px; }
.library-audit-row div { display: grid; gap: 3px; }
.library-audit-row small { color: #6e7e95; }
.danger-button { border: 1px solid #efc2c8; background: #fff5f6; color: #b42a3c; border-radius: 12px; padding: 11px 16px; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: #ffe8eb; }
.empty-state.compact { padding: 16px; }
@media (max-width: 1050px) {
  .library-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .library-pack-card { flex-direction: column; }
  .library-pack-actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .library-filters { grid-template-columns: 1fr; }
  .library-toolbar-heading { flex-direction: column; }
}


/* R1H Detailed Audit, Analysis & Intervention */
.analysis-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0 14px;padding-bottom:3px}.analysis-tabs .tab-button{white-space:nowrap}.analysis-tab-panel{display:block}.analysis-tab-panel[hidden]{display:none!important}.analysis-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}.analysis-toolbar select{min-width:170px}.analysis-toolbar .toolbar-group{align-items:center}.class-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.class-overview-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:15px}.analysis-metric{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;min-height:94px}.analysis-metric span,.analysis-metric strong,.analysis-metric small{display:block}.analysis-metric span{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#68778c;font-weight:850}.analysis-metric strong{font-size:23px;margin-top:8px;color:#10213a}.analysis-metric small{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.35}.analysis-metric.positive{background:var(--green-soft);border-color:#b6eadb}.analysis-metric.negative{background:var(--red-soft);border-color:#f3c4c9}.analysis-metric.warning{background:var(--amber-soft);border-color:#f2d8a9}.analysis-chart{display:flex;flex-direction:column;gap:12px}.chart-row{display:grid;grid-template-columns:minmax(145px,190px) 1fr 42px;gap:10px;align-items:center}.chart-label strong,.chart-label small{display:block}.chart-label strong{font-size:12px}.chart-label small{font-size:10px;color:var(--muted);margin-top:2px}.chart-track{height:12px;background:#e9eef5;border-radius:999px;overflow:hidden}.chart-track>span,.chart-track>i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2c67e8,#6a9cff)}.chart-row.positive .chart-track>span{background:linear-gradient(90deg,#0e9f78,#55c7a8)}.chart-row.negative .chart-track>span{background:linear-gradient(90deg,#d84b5b,#ef8b96)}.chart-row.warning .chart-track>span{background:linear-gradient(90deg,#d88a16,#f0bd5e)}.chart-row.tp-1 .chart-track>span,.chart-row.tp-2 .chart-track>span{background:linear-gradient(90deg,#d84b5b,#ef8b96)}.chart-row.tp-3 .chart-track>span,.chart-row.tp-4 .chart-track>span{background:linear-gradient(90deg,#d88a16,#f0bd5e)}.chart-row.tp-5 .chart-track>span,.chart-row.tp-6 .chart-track>span{background:linear-gradient(90deg,#0e9f78,#55c7a8)}.chart-row>b{text-align:right}.finding-card{border-radius:13px;padding:14px;margin-bottom:10px}.finding-card span,.finding-card strong,.finding-card small{display:block}.finding-card span{font-size:10px;text-transform:uppercase;letter-spacing:.55px;font-weight:850}.finding-card strong{margin-top:6px}.finding-card small{margin-top:5px;color:#526177}.finding-card.success{background:var(--green-soft)}.finding-card.warning{background:var(--amber-soft)}.audit-rule-list{display:grid;gap:10px}.audit-rule-list>div{padding:12px;border:1px solid var(--line);border-radius:12px}.audit-rule-list strong,.audit-rule-list span{display:block}.audit-rule-list span{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45}.ls-comparison-chart{display:flex;flex-direction:column;gap:13px;max-height:620px;overflow:auto;padding-right:4px}.ls-chart-row{display:grid;grid-template-columns:minmax(210px,330px) 1fr;gap:15px;align-items:center;border-bottom:1px solid #edf1f5;padding-bottom:11px}.ls-chart-label strong,.ls-chart-label span{display:block}.ls-chart-label span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.dual-bars{display:grid;gap:6px}.dual-bars>div{display:grid;grid-template-columns:42px 1fr 36px;gap:7px;align-items:center}.dual-bars small{font-size:9px;color:#6b788a}.dual-bars b{font-size:10px;text-align:right}.dual-bars .pbd1{background:#9eb6e8}.dual-bars .pbd2{background:#2c67e8}.ls-analysis-table{min-width:1050px}.change-chip,.analysis-status{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850}.change-chip{background:#eef2f7;color:#536278}.change-chip.up{background:var(--green-soft);color:#0f755a}.change-chip.down{background:var(--red-soft);color:#a03440}.analysis-status.priority_support{background:var(--red-soft);color:#a03440}.analysis-status.developing{background:var(--amber-soft);color:#925e14}.analysis-status.strong{background:var(--green-soft);color:#0f755a}.cell-note{display:block;color:var(--muted);font-size:9px;margin-top:4px;max-width:190px;white-space:normal}.pupil-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.pupil-skill-chart{display:flex;flex-direction:column;gap:9px;max-height:520px;overflow:auto}.pupil-skill-row{display:grid;grid-template-columns:minmax(170px,260px) 1fr 48px;gap:9px;align-items:center}.pupil-skill-row span strong,.pupil-skill-row span small{display:block}.pupil-skill-row span small{font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pupil-skill-row .chart-track i{background:linear-gradient(90deg,#2c67e8,#6a9cff)}.mini-table{min-width:650px}.table-scroll.mini{max-height:300px}.heatmap-legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.heatmap-legend span{padding:5px 9px;border-radius:999px;font-size:9px;font-weight:850}.heatmap-scroll{overflow:auto;max-height:610px}.heatmap-table{border-collapse:separate;border-spacing:3px;min-width:max-content}.heatmap-table th{position:sticky;top:0;background:#10213a;color:#fff;padding:7px 8px;font-size:9px;z-index:2}.heatmap-table td{width:39px;height:34px;text-align:center;border-radius:7px;font-size:10px;font-weight:900}.heatmap-table .heat-sticky{position:sticky;left:0;z-index:4;min-width:93px}.heatmap-table tbody .heat-sticky{background:#fff;border:1px solid var(--line)}.heat-pupil-button{border:0;background:transparent;color:#244574;font-weight:850;font-size:10px;cursor:pointer}.heat-1{background:#f8d4d8!important;color:#972f3a}.heat-2{background:#fde8b8!important;color:#8a5b12}.heat-3{background:#ccefe4!important;color:#0d7256}.heat-na{background:#edf1f5!important;color:#8b97a8}.intervention-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.intervention-group-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}.intervention-group-card span,.intervention-group-card strong,.intervention-group-card p,.intervention-group-card small{display:block}.intervention-group-card span{font-size:10px;text-transform:uppercase;letter-spacing:.55px;font-weight:850}.intervention-group-card strong{font-size:22px;margin-top:7px}.intervention-group-card p{font-size:11px;color:var(--muted);line-height:1.45}.intervention-group-card small{font-size:9px;line-height:1.45}.intervention-group-card.negative{background:var(--red-soft)}.intervention-group-card.warning{background:var(--amber-soft)}.intervention-group-card.positive{background:var(--green-soft)}.intervention-table{min-width:1900px}.intervention-table textarea{min-width:240px;resize:vertical;font-size:10px;line-height:1.4}.intervention-table select{min-width:105px}.intervention-text-cell{min-width:240px;max-width:300px;white-space:normal;line-height:1.45;font-size:10px}.completion-check{display:flex;align-items:center;gap:5px;flex-direction:row}.completion-check input{width:auto}.completion-check span{font-size:10px;font-weight:800}
@media(max-width:1100px){.class-overview-grid,.intervention-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pupil-profile-grid{grid-template-columns:1fr}.ls-chart-row{grid-template-columns:1fr}.analysis-toolbar{align-items:stretch;flex-direction:column}.analysis-toolbar .toolbar-group{width:100%}.analysis-toolbar .toolbar-group>*{flex:1}}
@media(max-width:760px){.class-overview-grid,.class-overview-grid.compact,.intervention-group-grid{grid-template-columns:1fr}.chart-row{grid-template-columns:110px 1fr 34px}.analysis-tabs{margin-left:-2px;margin-right:-2px}.ls-chart-row{grid-template-columns:1fr}.dual-bars>div{grid-template-columns:38px 1fr 32px}}

.textbook-focus-summary{margin:12px 0;padding:12px 14px;border:1px solid #d9e5f4;border-radius:14px;background:#f7faff;display:flex;flex-direction:column;gap:4px}.textbook-focus-summary strong{color:#10213d;font-size:.92rem}.textbook-focus-summary small{color:#63738c;line-height:1.45}#textbookTopicReference[readonly]{background:#f3f7fc;color:#29415f;font-weight:700}

/* R1M Unit 5 Tick State Fix */
.transit-bridge-panel{margin-bottom:18px;border-color:#cfdcf0;background:linear-gradient(180deg,#fff,#f8fbff)}
.transit-bridge-copy{max-width:800px;color:var(--muted);line-height:1.55;margin:7px 0 0}
.transit-bridge-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:4px 0 16px}
.transit-bridge-steps>div{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px;min-height:108px}
.transit-bridge-steps span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:var(--blue-soft);color:#285cc5;font-weight:900;margin-bottom:9px}
.transit-bridge-steps strong,.transit-bridge-steps small{display:block}.transit-bridge-steps small{color:var(--muted);font-size:10px;line-height:1.42;margin-top:4px}
.transit-bridge-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.transit-bridge-actions button:disabled,.transit-output-actions button:disabled{opacity:.48;cursor:not-allowed;transform:none}
.transit-import-status{margin-top:13px;padding:12px 14px;border-radius:12px;border:1px dashed #bdcbe0;background:#f8fafd;display:flex;flex-direction:column;gap:4px}
.transit-import-status strong{color:#1e385c}.transit-import-status span{color:var(--muted);font-size:11px;line-height:1.45}
.transit-import-status.ready{border-style:solid;border-color:#a9decf;background:var(--green-soft)}
.transit-import-status.warning{border-style:solid;border-color:#eed09a;background:var(--amber-soft)}
.transit-import-status.error{border-style:solid;border-color:#efb8bf;background:var(--red-soft)}
.transit-import-preview{margin-top:15px;border-top:1px solid var(--line);padding-top:15px}
.transit-import-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:13px}
.transit-import-metric{padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.transit-import-metric span,.transit-import-metric strong{display:block}.transit-import-metric span{font-size:9px;text-transform:uppercase;letter-spacing:.55px;color:#718096;font-weight:850}.transit-import-metric strong{font-size:17px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.transit-import-metric.negative{background:var(--red-soft);border-color:#efc3c9}.transit-import-metric.positive{background:var(--green-soft);border-color:#b7e5d8}.transit-import-metric.warning{background:var(--amber-soft);border-color:#efd6a9}
.transit-preview-grid{margin-top:0}.transit-preview-box{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;min-width:0}.transit-preview-box h4{margin:4px 0 0;font-size:15px}
.transit-output-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.transit-output-actions span{color:var(--muted);font-size:10px;line-height:1.4}
@media(max-width:1120px){.transit-bridge-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.transit-import-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.transit-bridge-steps,.transit-import-metrics{grid-template-columns:1fr}.transit-bridge-actions>*{width:100%}.transit-output-actions>*{width:100%}}

/* R1M Unit 5 journey tick-state fix */
.journey-grid button[aria-pressed='true']{border-color:#69cfae;background:#effbf6}.journey-grid button[aria-pressed='true']>span{background:#0f9f73;color:#fff}.journey-grid button[aria-pressed='true'] strong{color:#0d6f54}

/* R1P Topic Lesson Note & Studio Output Centre */
.lesson-note-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.lesson-note-workflow>div{border:1px solid var(--line);border-radius:14px;background:#f8fbff;padding:13px;min-height:112px}
.lesson-note-workflow span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e8f0ff;color:#285dc5;font-weight:900;margin-bottom:9px}
.lesson-note-workflow strong,.lesson-note-workflow small{display:block}.lesson-note-workflow small{margin-top:5px;color:var(--muted);font-size:10px;line-height:1.45}
.lesson-verification-list{margin:12px 0}.lesson-status-strip{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.lesson-status-strip span{padding:7px 10px;border-radius:999px;background:#eef2f7;color:#617086;font-size:10px;font-weight:850}
.lesson-status-strip span.done{background:var(--green-soft);color:#0f755a}
.studio-output-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-output-grid button{min-height:56px}
.studio-config-grid{margin:13px 0;align-items:end}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.studio-source-guide{border:1px solid #cddcf0;border-left:5px solid #2f6df4;border-radius:14px;background:#f7faff;padding:14px;margin:12px 0}
.studio-source-guide strong,.studio-source-guide span{display:block}.studio-source-guide strong{color:#15345f}.studio-source-guide span{font-size:10px;color:var(--muted);margin-top:4px}.studio-source-guide ul{margin:8px 0 0;padding-left:19px;color:#40536f;font-size:11px;line-height:1.55}
.studio-output-status-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}
.studio-output-status{border:1px solid var(--line);border-radius:13px;padding:11px;background:#fff;display:grid;gap:5px}
.studio-output-status.selected{border-color:#8fb2ff;background:#f3f7ff;box-shadow:0 0 0 2px rgba(47,109,246,.06)}
.studio-output-status strong{font-size:11px;color:#1b365c}.studio-output-status span{font-size:9px;color:#7a8798}.studio-output-status span.done{color:#0f755a;font-weight:850}
.pbd-prompt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1120px){.studio-output-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-output-status-list{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.lesson-note-workflow,.studio-output-grid,.studio-output-status-list,.form-grid.four,.pbd-prompt-grid{grid-template-columns:1fr}.studio-config-grid{grid-template-columns:1fr}}

/* R1P Year Master Teaching Archive + Separate PBD Notebook */
.notebook-architecture-panel{margin:18px 0;border-color:#c7d8ee;background:linear-gradient(180deg,#fff,#f8fbff)}
.notebook-architecture-panel .pill.gold{background:var(--gold-soft);color:#7b5915;border-color:#ebcf8f}
.notebook-model-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.notebook-model-card{border:1px solid var(--line);border-radius:17px;padding:17px;background:#fff;min-width:0}
.notebook-model-card.teaching-model{border-top:5px solid var(--blue)}
.notebook-model-card.pbd-model{border-top:5px solid var(--green)}
.notebook-model-card h4{margin:5px 0 10px;font-size:17px;color:var(--navy)}
.notebook-model-card>p:not(.eyebrow){color:var(--muted);line-height:1.55;font-size:11px}
.generated-name{border:1px solid #c9d7ea;background:#f5f8fd;border-radius:12px;padding:12px 13px;color:#17385f;font-weight:850;line-height:1.45;word-break:break-word;margin-bottom:11px}
.source-name-list{display:flex;flex-direction:column;gap:6px;margin:12px 0 14px;padding:11px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;max-height:240px;overflow:auto}
.source-name-list strong{font-size:9px;text-transform:uppercase;letter-spacing:.65px;color:#607087;margin-top:3px}
.source-name-list span{font-size:10px;color:#334b6a;line-height:1.4;padding:5px 7px;border-radius:7px;background:#fff;border:1px solid #e6ebf2}
.compact-grid{margin-bottom:8px}.compact-grid label{margin-bottom:4px}
.compact-notice{margin:12px 0}.compact-notice p{font-weight:800;color:#2b466c;word-break:break-word}
@media(max-width:980px){.notebook-model-grid{grid-template-columns:1fr}}
@media(max-width:760px){.notebook-architecture-panel .panel-heading{flex-direction:column}.notebook-model-card .button-row>*{width:100%}}

/* Brand integration retained from R1Q */
.brand-block{padding:0 2px 20px;min-height:62px}.brand-logo{display:block;width:100%;max-width:188px;height:auto;filter:drop-shadow(0 8px 14px rgba(0,0,0,.2))}.topbar-title-wrap{display:flex;align-items:center;gap:12px;min-width:0}.topbar-brand-mark{width:42px;height:42px;flex:0 0 auto;filter:drop-shadow(0 5px 10px rgba(17,52,94,.16))}.topbar-title-wrap>div{min-width:0}.auto-source-prompt{margin:14px 0;padding:14px;border-radius:14px;border:1px solid #cddcf2;background:linear-gradient(180deg,#f7faff,#edf4ff)}.pbd-source-prompt{border-color:#c4e7dc;background:linear-gradient(180deg,#f6fcfa,#ebf8f4)}.auto-source-prompt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.auto-source-prompt-head strong{display:block;color:#18365e;font-size:13px;line-height:1.35}.auto-source-prompt>p{color:#66758a;font-size:11px;line-height:1.55;margin:8px 0 10px}.compact-prompt{min-height:210px;max-height:270px;padding:13px;font-size:10.5px;line-height:1.55;margin:0 0 10px;resize:vertical}.alert-brand-row{display:flex;align-items:center;gap:8px;min-height:22px}.alert-brand-row img{width:112px;height:auto;display:block}.alert-brand-row .eyebrow{display:none}.print-brand-logo{display:block;width:235px;height:auto;margin:0 0 12px}.notebook-model-card .button-row{margin-top:10px}
@media(max-width:760px){.brand-logo{max-width:160px}.topbar-brand-mark{display:none}.compact-prompt{min-height:235px}.auto-source-prompt-head{align-items:center}}
@media print{.print-brand-logo{display:block!important;width:230px}}

/* R1S Complete source-prompt pipelines */
.prompt-source-selection{margin:10px 0 2px;border:1px solid #cbd9ed;border-radius:14px;background:#f7faff;padding:13px;display:grid;gap:10px}
.prompt-source-selection .selection-block{display:grid;gap:6px}
.prompt-source-selection .selection-block strong{font-size:10px;text-transform:uppercase;letter-spacing:.65px;color:#526683}
.prompt-source-selection .selection-chips{display:flex;gap:6px;flex-wrap:wrap}
.prompt-source-selection .selection-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;background:#fff;border:1px solid #dce5f1;color:#294665;font-size:9px;font-weight:800;line-height:1.2}
.prompt-source-selection .selection-chip.required::before{content:'✓';color:#0e9f78;font-weight:950}
.prompt-source-selection .selection-chip.deselect::before{content:'×';color:#c84b57;font-weight:950}
.prompt-source-selection .source-output-name{border-left:4px solid var(--gold);padding:8px 10px;border-radius:9px;background:#fff8e5;color:#694b10;font-size:10px;font-weight:900;line-height:1.4}
.source-pipeline-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.source-pipeline-heading{margin-bottom:12px}
.source-pipeline-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.source-pipeline-column{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff;min-width:0}
.source-pipeline-column.teaching-pipeline{border-top:5px solid var(--blue)}
.source-pipeline-column.pbd-pipeline{border-top:5px solid var(--green)}
.source-pipeline-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:6px}
.source-pipeline-title h4{margin:3px 0 0;color:var(--navy)}
.source-pipeline-column>p{font-size:10.5px;color:var(--muted);line-height:1.5}
.source-prompt-card-list{display:grid;gap:10px;margin-top:12px}
.source-prompt-card{border:1px solid #dfe7f2;border-radius:14px;background:#f9fbfe;padding:12px;display:grid;gap:9px}
.source-prompt-card.pbd{background:#f7fcfa;border-color:#d4ebe4}
.source-prompt-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.source-prompt-card-head strong{font-size:11px;color:#1e3d65;line-height:1.4;word-break:break-word}
.source-prompt-card-head span{flex:0 0 auto;display:grid;place-items:center;min-width:28px;height:28px;border-radius:9px;background:#e8f0ff;color:#285dc5;font-size:10px;font-weight:950}
.source-prompt-card.pbd .source-prompt-card-head span{background:#dff4ed;color:#0d7c5e}
.source-prompt-card p{margin:0;color:#65758a;font-size:10px;line-height:1.45}
.source-prompt-select{border:1px dashed #cad8ea;background:#fff;border-radius:10px;padding:9px}
.source-prompt-select strong{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.55px;color:#66768b;margin-bottom:6px}
.source-prompt-select ul{margin:0;padding-left:17px;color:#334b6a;font-size:9.5px;line-height:1.5}
.source-prompt-card .button-row{margin-top:0}
.source-prompt-card .button-row button{font-size:9px;padding:7px 9px}
@media(max-width:980px){.source-pipeline-grid{grid-template-columns:1fr}}
@media(max-width:760px){.source-pipeline-heading,.source-pipeline-title{flex-direction:column}.source-prompt-card .button-row>*{width:100%}.prompt-source-selection .selection-chip{width:100%;border-radius:9px}}


/* R1T — Universal JSON checker and single-language modes */
.language-control{display:flex;align-items:center;gap:.45rem;padding:.34rem .5rem;border:1px solid #d9e2ef;border-radius:12px;background:#fff;color:#52647f;font-size:.72rem;font-weight:800;white-space:nowrap}.language-control select{border:0;background:transparent;color:#18365d;font-weight:800;outline:none;min-width:148px}.curriculum-json-actions{align-items:center;flex-wrap:wrap}.curriculum-json-checker{margin-top:.8rem;padding:.9rem 1rem;border:1px solid #cbdcf2;border-radius:14px;background:#f7fbff}.curriculum-json-checker>strong{color:#18365d}.curriculum-json-checker>p{margin:.35rem 0 .65rem;color:#64758f;font-size:.84rem}.curriculum-json-checker-summary{display:grid;gap:.35rem;font-size:.82rem}.curriculum-json-checker-summary .json-check-ok{color:#08775d;font-weight:800}.curriculum-json-checker-summary .json-check-warning{color:#9a6500;font-weight:800}.curriculum-json-checker-summary .json-check-error{color:#c73545;font-weight:800}.curriculum-json-checker-summary .json-check-metrics{display:flex;gap:.45rem;flex-wrap:wrap}.curriculum-json-checker-summary .json-check-metrics span{padding:.28rem .48rem;background:#fff;border:1px solid #dbe5f2;border-radius:8px;color:#36506f}.curriculum-json-checker-summary ul{margin:.2rem 0 0;padding-left:1.2rem;color:#5a6d88}@media(max-width:980px){.language-control span{display:none}.language-control select{min-width:132px}}

/* R1U independent curriculum folders */
.curriculum-folder-panel{margin:12px 0 16px;padding:14px 16px;border:1px solid #cddbf0;border-left:5px solid #2f68f5;border-radius:14px;background:#f6f9ff;display:grid;grid-template-columns:1fr auto;gap:8px 16px;align-items:center}.curriculum-folder-panel.sjkc{border-left-color:#d8a100;background:#fffaf0}.curriculum-folder-panel>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.curriculum-folder-panel strong{color:#18365d}.curriculum-folder-panel small{display:block;width:100%;color:#60728e}.curriculum-folder-panel p{grid-column:1/-1;margin:0;color:#5f6f88;font-size:13px;line-height:1.45}.folder-status{font-size:12px;font-weight:800;color:#52637d;white-space:nowrap}.folder-status span{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.folder-status span.ready{background:#14a673}.folder-status span.empty{background:#d6a225}.json-folder-line{margin:7px 0 3px;color:#596b86;font-size:12px}.curriculum-folder-panel code{word-break:break-all}@media(max-width:760px){.curriculum-folder-panel{grid-template-columns:1fr}.folder-status{white-space:normal}}

.json-reference-line{margin:.6rem 0;padding:.65rem .8rem;border:1px solid var(--line);border-radius:12px;background:#eef7ff;color:#17375e}.json-reference-line strong{font-weight:800}


/* R2A nested Science Performance Standards */
.nested-performance-panel{margin:.65rem 0 .25rem;padding:.65rem;border:1px solid #d8e4f3;border-radius:12px;background:#f8fbff}
.nested-performance-panel>small{display:block;font-weight:800;color:#31547c;margin-bottom:.45rem;letter-spacing:.02em}
.performance-row.compact{grid-template-columns:54px 1fr;padding:.38rem .45rem;font-size:.88rem}
.curriculum-standard-card>ul>li{margin-bottom:.55rem}


/* R2B workshop fast-start */
.workshop-fast-start{margin:0 0 18px;padding:16px 18px;border:1px solid #b8e4d5;border-radius:18px;background:linear-gradient(135deg,#f0fff9,#eef5ff);box-shadow:0 10px 28px rgba(20,54,96,.07)}
.fast-start-head{display:flex;align-items:center;gap:12px}.fast-start-head>div{display:flex;flex-direction:column;gap:2px;flex:1}.fast-start-head strong{font-size:1.05rem}.fast-start-head small{color:#60708a}.fast-start-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#173b6c;color:#fff;font-size:1.15rem}.fast-start-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 8px}.fast-start-steps span{padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #d6e2f3;font-weight:800;color:#173b6c}.fast-start-steps b{color:#1aa57a}.workshop-fast-start p{margin:6px 0;color:#425675}.workshop-fast-start>small{color:#0b7d5d;font-weight:700}
@media(max-width:720px){.fast-start-steps b{display:none}.fast-start-steps span{width:100%;text-align:center}}

/* R2C reliable ZIP export feedback */
.zip-export-busy{cursor:progress}.zip-export-busy #exportZipButton,.zip-export-busy #buildSourcePackButton,.zip-export-busy #buildPbdSourcePackButton,.zip-export-busy #libraryExportMasterButton{opacity:.62;pointer-events:none}.zip-export-busy #exportZipButton .export-icon,.zip-export-busy #buildSourcePackButton{animation:r2cPulse 1s ease-in-out infinite}@keyframes r2cPulse{50%{transform:scale(.96);opacity:.72}}

/* ARKIBGURU AI PRO V1.0 — Guided AI, RBT and production studios */
.legacy-source-upload-section,.legacy-curriculum-import,.legacy-source-console{display:none!important}
.powered-by,.powered-by-cyk{font-weight:900;letter-spacing:.04em;color:#d8a62a}.powered-by-cyk{font-size:.72rem}
.curriculum-folder-panel.rbt{border-left-color:#ef7d24;background:linear-gradient(135deg,#fff8ef,#f5fbff)}
.production-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:18px;align-items:start}
.production-config,.production-output{min-width:0}.production-output{position:sticky;top:86px}
.pro-prompt-output{min-height:520px;max-height:720px;line-height:1.55;font-size:.76rem}
.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.guided-progress{margin-bottom:18px}.guided-unit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.guided-unit-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 30px rgba(16,42,78,.07);overflow:hidden}
.guided-unit-head{padding:18px;background:linear-gradient(135deg,#102d53,#174c84);color:#fff}.guided-unit-head span{font-size:.7rem;font-weight:950;letter-spacing:.14em;color:#ffd66f}.guided-unit-head h3{margin:5px 0 0;color:#fff;font-size:1rem}
.guided-chapter-list{display:grid}.guided-chapter{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:13px 14px;border-top:1px solid #edf1f7}.guided-chapter.completed{background:#f1fbf7}.guided-chapter strong{display:block;color:#1b385e;font-size:.77rem;line-height:1.4}.guided-chapter small{display:block;margin-top:3px;color:#708097}.guided-complete-button{width:32px;height:32px;border-radius:50%;border:1px solid #c9d7e8;background:#fff;color:#8090a5;font-weight:950;cursor:pointer}.guided-chapter.completed .guided-complete-button{background:#11a878;color:#fff;border-color:#11a878}
.media-prompt-card-list{display:grid;gap:14px}.media-prompt-card{border:1px solid #d9e3ef;border-radius:16px;padding:14px;background:#f9fbfe}.media-prompt-card textarea{min-height:240px;margin:0;font-size:.72rem;line-height:1.55}.media-prompt-card .panel-heading{margin-bottom:10px}
.multi-prompt-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.output-variant-controls{margin-top:12px;padding:12px;border:1px solid #dce5f2;border-radius:14px;background:#f8fbff}
.verified-source-workflow{border:1px solid #bee5d7;background:linear-gradient(135deg,#f2fff9,#f1f6ff)}
.source-chain{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}.source-chain-step{flex:1 1 150px;border:1px solid #d8e3ef;border-radius:13px;background:#fff;padding:12px}.source-chain-step strong{display:block;color:#17375e}.source-chain-step small{display:block;color:#6a7b91;margin-top:4px;line-height:1.45}
.stage-status.done{background:#dff7ee!important;color:#0b7b5a!important;border-color:#bce8d8!important}
.online-status{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:850}.online-status::before{content:'';width:8px;height:8px;border-radius:50%;background:#19a777}.online-status.offline::before{background:#d59122}
@media(max-width:1100px){.production-layout{grid-template-columns:1fr}.production-output{position:static}.guided-unit-grid{grid-template-columns:1fr}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.form-grid.four{grid-template-columns:1fr}.guided-chapter{grid-template-columns:34px 1fr}.guided-chapter>.secondary-button{grid-column:2}.pro-prompt-output{min-height:430px}.source-chain-step{flex-basis:100%}}

/* V1.0 online/offline indicator */
.network-status{display:flex;align-items:center;gap:.45rem;padding:.38rem .62rem;border:1px solid #cbd8e8;border-radius:12px;background:#fff;min-width:122px;line-height:1.05}.network-status>span{width:9px;height:9px;border-radius:999px;background:#19a974;box-shadow:0 0 0 4px rgba(25,169,116,.12)}.network-status div{display:flex;flex-direction:column;gap:2px}.network-status strong{font-size:.68rem;letter-spacing:.08em}.network-status small{font-size:.62rem;color:#607087;white-space:nowrap}.network-status.offline{background:#fff8ec;border-color:#edc77b}.network-status.offline>span{background:#dc7b16;box-shadow:0 0 0 4px rgba(220,123,22,.12)}@media(max-width:900px){.network-status small{display:none}.network-status{min-width:auto}}


/* V1.1 Prompt Scope Choices */
.lesson-scope-builder{margin:14px 0 16px;padding:16px;border:1px solid #cddbf0;border-radius:18px;background:linear-gradient(135deg,#f7fbff,#fffaf0);box-shadow:0 8px 24px rgba(17,48,87,.05)}
.compact-scope-builder{margin-top:12px;background:linear-gradient(135deg,#f6fbff,#f7fff9)}
.scope-builder-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.scope-builder-head h4{margin:3px 0 0;color:var(--navy);font-size:.95rem}.scope-control-grid{align-items:end}
.scope-summary{margin:10px 0;padding:10px 12px;border-left:4px solid var(--blue);border-radius:10px;background:#fff}.scope-summary strong{display:block;color:#17375e;font-size:.76rem}.scope-summary p{margin:4px 0 0;color:#62738a;font-size:.72rem;line-height:1.45}
.scope-ls-selector{margin-top:12px;border:1px solid #d9e4f1;border-radius:14px;background:#fff;overflow:hidden}.scope-ls-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#f2f7fd;border-bottom:1px solid #d9e4f1}.scope-ls-head strong{color:#23476f;font-size:.75rem}.scope-ls-list{display:grid;gap:0;max-height:310px;overflow:auto}.scope-ls-item{display:grid!important;grid-template-columns:22px 1fr;gap:8px;align-items:start;padding:9px 12px!important;border-bottom:1px solid #eef2f7;background:#fff}.scope-ls-item:hover{background:#f8fbff}.scope-ls-item input{margin-top:3px}.scope-ls-item span{font-size:.72rem;line-height:1.45;color:#40546e}.scope-ls-item b{color:#173b6c;margin-right:5px}
.scope-sequence-preview{margin-top:12px}.scope-sequence-preview>strong{display:block;margin-bottom:8px;color:#23476f;font-size:.75rem}.scope-sequence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scope-sequence-card{display:grid;gap:4px;text-align:left;border:1px solid #d8e3ef;border-radius:12px;background:#fff;padding:10px;cursor:pointer;color:#314963}.scope-sequence-card:hover,.scope-sequence-card.active{border-color:#2f68f5;background:#eef5ff;box-shadow:0 0 0 2px rgba(47,104,245,.08)}.scope-sequence-card span{font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#2f68f5}.scope-sequence-card b{font-size:.72rem}.scope-sequence-card small{font-size:.67rem;line-height:1.4;color:#69798d}
.scope-warning{margin-top:10px;padding:10px 12px;border:1px solid #efcb83;border-radius:10px;background:#fff8e8;color:#7a5613;font-size:.72rem;font-weight:750;line-height:1.45}.scope-warning[hidden]{display:none}.lesson-scope-builder [hidden]{display:none!important}
@media(max-width:900px){.scope-sequence-list{grid-template-columns:1fr}.scope-builder-head{flex-direction:column}.scope-builder-head .pill{align-self:flex-start}}
