:root{--navy:#172c41;--navy2:#203b54;--gold:#b79a60;--gold-light:#e7d2a3;--ink:#24384b;--muted:#78818b;--cream:#f7f6f1;--paper:#fff;--line:#e6e6e2;--font:Inter,'Segoe UI',Arial,sans-serif;--serif:Georgia,'Times New Roman',serif;--shadow:0 16px 55px rgba(25,43,57,.035)}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}svg{vertical-align:middle}h1,h2,h3,p{margin-top:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:252px;flex:0 0 252px;background:#172c41;color:#fff;min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;justify-content:space-between;z-index:20}.side-top{padding:32px 18px}.brand{display:flex;align-items:center;text-align:left;gap:7px;margin:0 0 53px 13px;color:white}.brand-button{background:none;border:0;padding:0}.brand-emblem{font-family:var(--serif);font-size:44px;letter-spacing:-5px;line-height:1;font-weight:700}.emblem-dot{color:var(--gold);padding-left:1px}.brand-name{font-family:var(--serif);font-size:28px;letter-spacing:-1.4px;line-height:1;transform:translateY(3px)}.brand-tagline{display:block;color:#adbaC5;font:600 7.4px var(--font);letter-spacing:1.25px;margin-top:7px;white-space:nowrap}.sidebar-caption{font-size:10px;font-weight:750;color:#8194a5;letter-spacing:1.55px;padding:0 16px;margin-bottom:17px}.side-second{margin-top:32px}.side-nav{display:flex;flex-direction:column;gap:5px}.nav-link{color:#b6c2ca;background:transparent;border:0;width:100%;border-radius:8px;padding:13px 14px;display:flex;gap:13px;align-items:center;text-align:left;font-size:13px;font-weight:550;min-height:44px}.nav-link:hover{color:#fff;background:#263e54}.nav-link.active{background:#2a4359;color:#fff;font-weight:700}.nav-link.active:before{content:'';width:3px;height:21px;background:#d5bd8c;border-radius:8px;position:absolute;left:18px}.nav-link .nav-icon{width:19px;height:19px;display:flex;align-items:center;justify-content:center}.nav-icon svg,.nav-link svg{width:18px;height:18px}.nav-end,.nav-pill{margin-left:auto;font-size:14px;color:#a2b6c2}.nav-pill{padding:2px 7px;border-radius:5px;background:#2f485f}.side-bottom{padding:0 18px 18px}.side-quote{position:relative;border:1px solid #40546a;border-radius:9px;padding:22px 16px 20px;font:italic 19px/1.45 var(--serif);color:#e1e5e7}.quote-symbol{color:#d7c28f;font:42px var(--serif);line-height:16px;display:block;margin-bottom:4px}.quote-line{display:block;width:27px;height:1px;background:var(--gold);margin:15px 0 11px}.quote-foot{font:500 10px var(--font);color:#a7b5c1}.side-profile{border-top:1px solid #394e63;margin-top:20px;padding:20px 3px 0;display:flex;align-items:center;gap:10px}.profile-dot{height:33px;width:33px;border-radius:8px;background:#c7b180;color:var(--navy);font:700 14px var(--serif);display:grid;place-items:center}.side-profile strong{display:block;font-size:12px}.side-profile small{font-size:10px;color:#a9b6c0}.profile-cog{margin-left:auto;color:#a5b3be;font-size:17px}.main-column{min-width:0;flex:1}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;padding:0 39px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:11}.topbar-start,.topbar-end{display:flex;align-items:center;gap:13px}.topbar-start{font-size:12px}.breadcrumb{color:#929da6}.bread-chevron{color:#c4c7c9}.breadcrumb-current{font-weight:700}.topbar-end{gap:22px}.tiny-available{font-size:10.5px;color:#7b8790}.tiny-available i{display:inline-block;width:7px;height:7px;background:#74a38b;border-radius:50%;margin-right:7px}.ghost-top{display:flex;align-items:center;gap:7px;border:0;color:var(--ink);background:none;font-weight:650;font-size:12px}.ghost-top svg,.top-create svg,.btn svg,.small-outline svg{width:16px;height:16px}.top-create{display:flex;align-items:center;gap:9px;border:0;background:var(--navy);color:#fff;font-weight:700;font-size:12px;padding:12px 16px;border-radius:6px}.top-create:hover,.btn-navy:hover{background:#2e4a62}.mobile-menu{display:none}.page{display:none}.page.active{display:block}.page-padding{padding:34px 40px 65px;max-width:1580px;margin:0 auto}.welcome-line,.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:800;color:#9a896b;display:flex;gap:12px;align-items:center;margin-bottom:18px}.hairline{width:20px;height:1px;background:#b6a06d}.mini-star{font-size:10px}.hero{background:#18324b;min-height:360px;border-radius:10px;display:flex;position:relative;overflow:hidden;box-shadow:var(--shadow)}.hero-copy{position:relative;z-index:2;width:61%;padding:48px 48px 44px}.hero-eyebrow{color:#dbc595;font-weight:800;font-size:9px;letter-spacing:1.7px}.gold-dash{display:inline-block;background:#9d875f;height:1px;width:32px;vertical-align:middle;margin-left:12px}.hero h1{color:white;font-family:var(--serif);font-weight:400;letter-spacing:-1.7px;font-size:clamp(43px,4.5vw,66px);line-height:1.05;margin:23px 0 19px}.hero h1 em{color:#dbc89b;font-weight:400}.hero p{line-height:1.75;color:#b9c6d0;max-width:470px;font-size:13px;margin-bottom:27px}.hero-actions{display:flex;gap:11px;flex-wrap:wrap}.btn{display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:12px 18px;border-radius:6px;border:1px solid transparent;font-weight:750;font-size:12px;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover,.small-outline:hover,.feature-card:hover{transform:translateY(-1px)}.btn-gold{background:#dec899;color:#203043}.btn-gold:hover{background:#f0dcae}.btn-outline-light{background:transparent;color:#e7e9e9;border-color:#647789}.btn-outline-light:hover{background:#2f465d}.btn-navy{background:var(--navy);color:#fff}.btn-soft{background:#f0f2f2;color:#264056;border-color:#e7eaeb}.btn-soft:hover{background:#e5eceb}.full{width:100%}.hero-art{position:absolute;inset:0 0 0 48%;overflow:hidden;background:radial-gradient(ellipse at 53% 48%,rgba(78,104,128,.28),transparent 65%)}.hero-art svg{width:100%;height:100%;position:absolute;top:0;right:0;opacity:.97}.art-ring{position:absolute;border:1px solid rgba(215,194,142,.21);border-radius:50%;width:350px;height:350px;top:22px;left:36px}.art-ring-two{width:260px;height:260px;top:67px;left:81px;border-color:rgba(215,194,142,.12)}.art-grid{height:100%;background-image:linear-gradient(#b6c4d3 1px,transparent 1px),linear-gradient(90deg,#b6c4d3 1px,transparent 1px);background-size:37px 37px;opacity:.045}.art-corner{position:absolute;right:25px;bottom:18px;font-size:9px;color:#9caeba;letter-spacing:1px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:38px 0 20px}.section-kicker{font-size:10px;letter-spacing:1.8px;color:#a29370;font-weight:750;margin-bottom:9px}.section-heading h2,.home-panel h3,.home-note h3{font:400 29px var(--serif);letter-spacing:-.5px;margin-bottom:8px}.section-heading p,.home-panel p,.home-note p{color:#87919a;font-size:12px;margin-bottom:0;line-height:1.7}.micro-deco{font-size:9px;letter-spacing:1.4px;color:#a1a8ad;padding-bottom:5px}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.feature-card{text-align:left;background:#fff;border:1px solid #eaebe9;border-radius:9px;padding:22px 23px 17px;min-height:225px;color:var(--ink);box-shadow:0 7px 20px rgba(15,36,55,.018);display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}.feature-card:hover{box-shadow:0 12px 33px rgba(15,36,55,.07)}.feature-header{display:flex;align-items:center;justify-content:space-between}.feature-icon{width:42px;height:42px;border-radius:8px;display:grid;place-items:center}.feature-icon svg{height:22px;width:22px}.icon-cream{background:#f4efdf;color:#a1844c}.icon-blue{background:#edf2f4;color:#526c81}.icon-rose{background:#f6f1f0;color:#a9867f}.feature-number{font-size:9px;color:#a7a9aa;letter-spacing:1.1px;font-weight:750}.feature-card h3{font:400 23px var(--serif);margin:20px 0 7px}.feature-card p{font-size:12px;line-height:1.7;color:#859099;max-width:280px;margin:0 0 18px}.feature-bottom{margin-top:auto;border-top:1px solid #eeefed;padding-top:13px;font-size:11px;font-weight:750;display:flex;justify-content:space-between}.feature-arrow{font-size:18px;color:#b69d6e}.home-bottom{display:grid;grid-template-columns:1.7fr 1fr;gap:17px;margin-top:18px}.home-panel{background:#fff;border:1px solid #ebedea;padding:26px 29px;border-radius:9px}.home-panel h3{font-size:25px}.strand-chips{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}.strand-chips button{border:1px solid #e5e8e6;background:#fafbf9;border-radius:5px;font-size:11px;font-weight:650;padding:10px 11px;color:#4b5d6a}.strand-chips button:hover{border-color:#c4aa72;background:#fcfaf3}.strand-chips span{color:#b6a272;margin-left:5px}.home-note{position:relative;overflow:hidden;background:#f0eee5;border:1px solid #e8e4d8;border-radius:9px;padding:22px 26px}.home-note h3{font-size:26px}.home-note p{max-width:330px}.note-diamond{font-size:16px;color:#bba475;display:block;margin-bottom:6px}.note-symbol{position:absolute;bottom:-37px;right:12px;font:140px var(--serif);color:rgba(183,155,97,.11)}.site-footer{padding-top:28px;display:flex;justify-content:space-between;color:#959da5;font-size:10px}.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px}.page-title{font:400 clamp(40px,4vw,56px)/1.12 var(--serif);letter-spacing:-1.6px;margin:0 0 8px}.page-title em{font-style:italic;color:#af9360}.page-sub{font-size:13px;color:#85929b;line-height:1.7;margin:0}.pill-outline{font-weight:750;font-size:10px;letter-spacing:1.1px;border:1px solid #e4e5df;border-radius:50px;padding:12px 15px;color:#8d967f;background:#fff;display:flex;align-items:center;gap:7px;white-space:nowrap}.pill-outline svg{width:15px;height:15px;color:#b59a60}.studio-layout{display:grid;grid-template-columns:288px minmax(0,1fr);gap:24px;align-items:start}.control-card{background:#fff;border:1px solid #e8eae7;border-radius:9px;padding:22px;box-shadow:var(--shadow)}.control-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0ee;padding-bottom:21px;margin-bottom:23px}.control-head-icon{height:38px;width:38px;background:#f5f0e4;border-radius:7px;display:grid;place-items:center;color:#a38b5b}.control-head h3,.builder-card-title h3{font:400 22px var(--serif);margin:0 0 4px}.control-head p{color:#99a1a5;font-size:11px;margin:0}.form-field{margin-bottom:19px;min-width:0}.form-field label{display:block;font-size:11px;font-weight:750;color:#4d5b65;margin-bottom:8px}.form-field select,.form-field input{background:#fcfcfa;width:100%;border:1px solid #e3e7e6;border-radius:6px;padding:11px 10px;color:#344b5d;outline:none;font-size:12px;min-height:42px}.form-field input:focus,.form-field select:focus{border-color:#b9a478;box-shadow:0 0 0 2px rgba(185,164,120,.16)}.count-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.count-choice{border:1px solid #e0e5e3;background:#fafaf8;color:#596a76;border-radius:5px;padding:10px 0;font-size:12px}.count-choice.active{background:var(--navy);color:white;border-color:var(--navy)}.control-hint{display:flex;align-items:flex-start;gap:7px;color:#969ea4;font-size:10.5px;line-height:1.65;margin:14px 0 0}.control-hint svg{min-width:15px;width:15px;height:15px;color:#af9c78;margin-top:1px}.results-top,.preview-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}.results-top h3,.preview-head h3{font:400 24px var(--serif);margin:0 0 5px}.results-summary{font-size:11px;color:#8b969d}.result-actions,.builder-header-actions,.printbar-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.small-outline{border:1px solid #e0e5e3;background:#fff;color:#405568;border-radius:6px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:750;white-space:nowrap}.small-outline:hover{border-color:#b9a779;background:#fffef9}.questions-list{display:flex;flex-direction:column;gap:13px}.question-card{background:#fff;border:1px solid #e7eae8;border-radius:9px;overflow:hidden}.question-card-top{display:flex;align-items:center;gap:9px;padding:15px 19px 0}.question-index{font-weight:800;color:#b49c70;font-size:11px;letter-spacing:.6px}.question-topic{border-radius:4px;background:#f4f5f3;padding:5px 7px;font-size:10px;color:#75818b}.question-level{font-size:10px;color:#8f969a;margin-left:auto}.question-marks{font-size:10.5px;font-weight:750;color:#44566a}.question-body{padding:21px 19px 19px;font-size:14px;line-height:1.9;color:#2d3b47}.question-body mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}.q-table{border-collapse:collapse;margin:15px 0 5px;min-width:280px;font-size:13px}.q-table th,.q-table td{border:1px solid #d5d9d8;padding:8px 13px;text-align:center}.q-table th{background:#f7f7f4}.question-tools{border-top:1px solid #eef0ee;display:flex;justify-content:space-between;gap:8px;padding:11px 15px;flex-wrap:wrap;background:#fdfdfc}.question-tools .tool-group{display:flex;gap:5px}.tool-button{border:0;background:transparent;color:#647684;border-radius:5px;font-size:11px;font-weight:750;display:flex;gap:6px;align-items:center;padding:7px 9px}.tool-button:hover{background:#f1f4f3;color:#28445b}.tool-button svg{width:14px;height:14px}.tool-button.highlight{color:#9e8252}.solution-panel{background:#f8f8f5;padding:18px 20px;border-top:1px solid #e5e8e5}.solution-title{display:flex;align-items:center;justify-content:space-between;font-weight:750;color:#3a5664;font-size:11px;margin-bottom:13px}.mark-step{display:flex;align-items:start;justify-content:space-between;gap:10px;font-size:12px;line-height:1.8;margin:10px 0;color:#445360}.mark-step>div{min-width:0}.mark-step .method-mark{color:#9d8b69;font-size:10px;white-space:nowrap}.results-placeholder,.empty-builder{background:#fff;border:1px dashed #d9dedc;min-height:310px;border-radius:9px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px}.empty-art{font:65px var(--serif);color:#d7c8a4;line-height:1;margin-bottom:12px}.results-placeholder h3,.empty-builder h3{font:400 26px var(--serif);margin:3px 0 6px}.results-placeholder p,.empty-builder p{max-width:320px;color:#98a0a4;line-height:1.7;font-size:12px}.builder-pad{max-width:1640px}.builder-layout{display:grid;grid-template-columns:325px minmax(0,1fr);gap:21px;align-items:start}.builder-controls{display:flex;flex-direction:column;gap:16px}.builder-card-title{display:flex;align-items:center;gap:11px;margin:0 0 20px}.builder-card-title h3{margin:0}.step-dot{height:26px;width:26px;background:#f3eddf;color:#a58b57;font:700 12px var(--font);border-radius:50%;display:grid;place-items:center}.split-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.split-fields .form-field{margin-bottom:16px}.checkbox-inline{font-size:11px;color:#536776;display:flex;align-items:center;gap:9px;font-weight:650}.checkbox-inline input{accent-color:#213c55}.builder-add .btn-soft{margin-top:8px}.add-hint{display:block}.preview-head{background:#fff;border:1px solid #e8eae7;border-radius:8px;padding:18px 20px;margin-bottom:12px}.preview-head h3{margin:0}.preview-stats{display:flex;gap:20px;font-size:11px;color:#8c969c}.preview-stats strong{font-size:18px;color:#243b50;font-weight:750;margin-right:3px}.paper-list{min-height:330px}.builder-item{background:#fff;border:1px solid #e6eae7;border-radius:8px;margin-bottom:10px;overflow:hidden}.builder-item-head{display:flex;gap:11px;align-items:center;padding:12px 16px;background:#fdfdfb;border-bottom:1px solid #eef0ef}.builder-item-num{font:700 12px var(--font);color:#a79268}.builder-item-topic{font-size:11px;color:#617580;font-weight:750}.builder-item-marks{font-size:10px;color:#71828a;margin-left:auto}.item-actions{display:flex;gap:2px}.icon-button{display:inline-grid;place-items:center;border:0;background:transparent;border-radius:5px;color:#607382;padding:6px}.icon-button:hover{background:#eef1f1}.icon-button svg{width:15px;height:15px}.builder-item-body{padding:18px 17px;line-height:1.9;font-size:13px}.builder-item-body mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}.builder-printbar{position:sticky;bottom:14px;background:#fff;border:1px solid #e1e6e3;border-radius:9px;box-shadow:0 8px 29px rgba(26,44,60,.09);display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 17px;margin-top:15px;z-index:7}.printbar-summary strong{display:block;font-size:12px;margin-bottom:3px}.printbar-summary span{font-size:10px;color:#93a0a6}.saved-papers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.saved-card{background:#fff;border:1px solid #e8eae7;border-radius:8px;padding:21px;display:flex;flex-direction:column;min-height:220px}.saved-card-label{font-size:10px;font-weight:750;color:#af986a;letter-spacing:1.3px;margin-bottom:17px}.saved-card h3{font:400 22px var(--serif);margin:0 0 8px;line-height:1.25}.saved-card-meta{font-size:11px;color:#87939b;margin-bottom:18px;line-height:1.6}.saved-card-actions{margin-top:auto;display:flex;gap:5px;flex-wrap:wrap}.saved-empty{grid-column:1/-1;min-height:240px;display:grid;place-items:center;background:#fff;border-radius:10px;border:1px dashed #d7dddc;text-align:center;padding:35px}.saved-empty h3{font:400 23px var(--serif);margin-bottom:9px}.saved-empty p{font-size:12px;color:#8a959e;margin:0}.saved-help{font-size:11px;color:#8d979d;display:flex;gap:7px;align-items:center;margin-top:22px}.saved-help svg{width:15px;height:15px}.import-row{margin-top:17px}.import-label{cursor:pointer}.library-search{background:#fff;border:1px solid #e3e7e5;padding:10px 15px;border-radius:8px;display:flex;gap:12px;align-items:center;margin-bottom:27px}.library-search svg{width:19px;height:19px;color:#9ba6ac}.library-search input{flex:1;border:0;outline:0;min-width:0;font-size:13px;padding:10px 0}.library-search select{border:0;border-left:1px solid #e8eae7;outline:0;padding:10px 13px;color:#485e6e;background:#fff;font-size:12px}.library-group{margin:0 0 28px}.library-group-head{display:flex;align-items:center;gap:13px;margin-bottom:12px}.library-group-head h3{font:400 23px var(--serif);margin:0}.library-group-head span{font-size:10px;color:#9da6a9;letter-spacing:1px}.topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:9px}.topic-tile{background:#fff;border:1px solid #e7eae8;border-radius:7px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left;min-height:117px}.topic-tile:hover{border-color:#bcaa82;background:#fffef9}.topic-tile-label{font-weight:700;font-size:12px;color:#2f4556;line-height:1.4}.topic-tile-bottom{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9aa4aa}.topic-tile-bottom b{font-size:16px;color:#b7a173;font-weight:400}.curriculum-footnote{border-top:1px solid #e1e5e2;padding-top:18px;color:#97a1a7;font-size:11px;line-height:1.7}.toast{position:fixed;bottom:22px;right:25px;background:#203d54;color:#fff;font-size:12px;border-radius:8px;padding:13px 18px;box-shadow:0 10px 30px #142c4250;opacity:0;transform:translateY(12px);pointer-events:none;transition:all .2s;z-index:35;max-width:400px}.toast.visible{opacity:1;transform:none}#printArea{display:none}
@media(max-width:1170px){.sidebar{width:214px;flex-basis:214px}.page-padding{padding:29px 28px 55px}.topbar{padding:0 28px}.hero-copy{width:67%;padding:44px 33px}.hero-art{left:50%}.studio-layout{grid-template-columns:245px minmax(0,1fr)}.builder-layout{grid-template-columns:285px minmax(0,1fr)}.control-card{padding:17px}.results-top{align-items:flex-start;flex-direction:column}.result-actions{margin-top:4px}.topbar-end{gap:12px}}@media(max-width:870px){.sidebar{position:fixed;transform:translateX(-100%);transition:transform .2s;box-shadow:0 10px 40px #0c243544}.sidebar.open{transform:none}.mobile-menu{display:grid;margin-left:-10px}.topbar{padding:0 21px;height:67px}.page-padding{padding:24px 20px 55px}.hero-copy{width:75%}.hero-art{opacity:.5}.builder-layout{grid-template-columns:280px minmax(0,1fr)}.pill-outline{display:none}.micro-deco{display:none}}@media(max-width:690px){.topbar-end .tiny-available,.ghost-top{display:none}.top-create{padding:10px;font-size:11px}.hero{min-height:350px}.hero-copy{width:100%;padding:39px 25px}.hero-art{left:23%;opacity:.18}.hero h1{font-size:45px}.hero p{max-width:380px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:180px}.feature-card h3{margin-top:14px}.home-bottom{grid-template-columns:1fr}.studio-layout,.builder-layout{grid-template-columns:1fr}.builder-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-printbar{bottom:0}.page-title-row{align-items:flex-start;flex-direction:column}.preview-stats{gap:8px}.site-footer{flex-direction:column;gap:8px}}@media(max-width:510px){.builder-controls{grid-template-columns:1fr}.page-padding{padding:20px 14px 48px}.topbar{padding:0 16px}.topbar-end{gap:0}.hero h1{font-size:39px}.hero-actions{flex-direction:column;align-items:flex-start}.section-heading h2{font-size:25px}.builder-header-actions{width:100%}.results-top,.preview-head{flex-direction:column;align-items:flex-start}.builder-printbar{flex-direction:column;align-items:stretch;gap:12px}.printbar-buttons>*{flex:1}.question-tools{flex-wrap:wrap}.library-search{flex-wrap:wrap}.library-search input{width:calc(100% - 40px);flex:1}.library-search select{border:1px solid #eaecea;width:100%;border-radius:5px}.page-title{font-size:43px}}
@page{size:A4;margin:17mm 16mm 18mm}@media print{html,body{background:#fff!important;color:#000!important;font-size:11pt!important}.app-shell,.toast{display:none!important}#printArea{display:block!important;font-family:Arial,sans-serif;color:black}#printArea *{box-shadow:none!important}#printArea .print-cover{break-after:page;height:245mm;position:relative;display:flex;flex-direction:column}#printArea .print-logo{font-family:Georgia,serif;font-size:23pt;color:#162f45;font-weight:bold}#printArea .print-logo small{font-size:10pt;letter-spacing:1px;color:#927747}#printArea .print-hero-title{font-family:Georgia,serif;font-size:34pt;line-height:1.1;margin:55mm 0 6mm;color:#162b40}#printArea .print-course{font-size:11pt;color:#8b7b62;text-transform:uppercase;letter-spacing:1px}#printArea .print-details{margin-top:20mm;display:grid;gap:7mm;font-size:12pt}#printArea .detail-line{padding-bottom:3mm;border-bottom:1px solid #aeb5b6}#printArea .print-cover-foot{margin-top:auto;border-top:2px solid #243949;padding-top:6mm;font-size:10pt}#printArea .print-page-header{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid #c6ccca;padding:0 0 4mm;margin-bottom:7mm;font-size:9pt;color:#4b5b66}#printArea .print-page-header strong{font:700 16pt Georgia,serif;color:#182d40}#printArea .print-question{break-inside:avoid;page-break-inside:avoid;padding:0 0 7mm;margin:0 0 6mm;border-bottom:1px solid #e2e3e2}#printArea .print-question-row{display:flex;gap:5mm;align-items:baseline}#printArea .print-number{width:8mm;flex:none;font-weight:bold}#printArea .print-question-body{flex:1;line-height:1.75;font-size:11pt}#printArea .print-marks{width:16mm;text-align:right;font-weight:bold;font-size:10pt}#printArea .working-lines{margin:5mm 0 0 12mm}#printArea .working-line{height:9mm;border-bottom:1px solid #ebeeee}#printArea .print-scheme-step{display:flex;align-items:baseline;justify-content:space-between;gap:7mm;margin:2mm 0 0 11mm;font-size:10pt;line-height:1.6}#printArea .print-scheme-step span:last-child{white-space:nowrap;font-size:9pt}#printArea .scheme-question{padding-bottom:5mm;margin-bottom:5mm}#printArea .scheme-question .print-question-body{font-weight:600}#printArea .print-end{padding-top:7mm;font-size:10pt;text-align:center}#printArea mjx-container{max-width:100%;overflow:visible!important}#printArea .q-table{border-collapse:collapse;font-size:9pt;margin:4mm 0}#printArea .q-table td,#printArea .q-table th{border:1px solid #aab3b6;padding:2mm 4mm;text-align:center}}

/* Stage 2 additions */
.paper-item-bottom{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:10px 0 0 50px;color:#5e6b70;font-size:12px}.paper-item-bottom label{display:flex;align-items:center;gap:8px}.paper-item-bottom input{width:61px;padding:6px;border:1px solid #cbd1d1;border-radius:6px;background:white}.tool-group{flex-wrap:wrap}.question-tools{flex-wrap:wrap;gap:8px}.builder-printbar{flex-wrap:wrap;gap:10px}.print-question{break-inside:avoid-page;page-break-inside:avoid}@media print {#printArea .print-question{break-inside:avoid-page;page-break-inside:avoid-page}#printArea .print-cover{break-after:page}}

/* Stage 2.2: transparent source of difficulty for incomplete legacy coverage. */
.legacy-hint{font-size:10px;border:1px solid #d5cbb5;color:#816945;padding:3px 6px;border-radius:6px;letter-spacing:.01em;white-space:nowrap}.q-parts{margin-top:11px;line-height:2.1}.q-parts br{display:block;content:"";margin-bottom:3px}.question-card .question-body{line-height:1.8}
/* Keep paper actions in normal document flow on smaller screens so they never cover questions. */
@media (max-width:720px){.builder-printbar{position:static!important;bottom:auto!important}}
/* Stage 3 — coherent three-step Exam Builder, preserving SKmaths visual language. */
.builder-config,.builder-settings,.builder-add{box-shadow:0 1px 1px rgba(28,47,59,.025)}
.builder-card-title>div{min-width:0}
.step-subtitle{margin:5px 0 0;color:#97a2a7;font-size:11px;line-height:1.5}
.coverage-set{border:0;padding:0;margin:5px 0 11px;min-width:0}
.coverage-set legend{font-size:11px;font-weight:750;color:#364d5d;margin:0 0 10px}
.scope-choice{display:flex;gap:11px;align-items:flex-start;border:1px solid #e1e6e3;border-radius:7px;padding:11px 12px;margin-bottom:8px;cursor:pointer;background:#fff}
.scope-choice:has(input:checked){border-color:#bbab89;background:#fcfaf5}
.scope-choice input{margin-top:3px;accent-color:#19334b;flex:none}
.scope-choice strong,.scope-choice small{display:block}
.scope-choice strong{font-size:11.5px;color:#334a58}
.scope-choice small{margin-top:3px;line-height:1.45;color:#8c999f;font-size:10.5px}
.topic-checklist{max-height:286px;overflow:auto;border:1px solid #e4e7e5;background:#fff;border-radius:8px;margin-bottom:12px;padding:2px 11px}
.topic-checklist[hidden]{display:none}
.topic-group{border-bottom:1px solid #eceded;padding:11px 1px}
.topic-group:last-child{border-bottom:0}
.topic-group-title{display:flex;align-items:baseline;justify-content:space-between;gap:5px;line-height:1.35;font-size:10.7px;font-weight:750;color:#435c6c}
.topic-group-title small{font-size:9px;font-weight:500;color:#9ba7a9;text-align:right}
.topic-option{display:flex;align-items:center;gap:8px;font-size:11px;margin:9px 0 1px;color:#445966;cursor:pointer}
.topic-option input{accent-color:#1e3b54}
.syllabus-note{font-size:10.3px;line-height:1.6;color:#80909a;background:#f5f6f4;border:1px solid #eef0ed;border-radius:7px;padding:10px 11px}
.builder-summary{background:#f5f6f2;border:1px solid #e3e7e0;border-radius:8px;padding:14px 13px;margin-bottom:12px;line-height:1.5}
.builder-summary strong{color:#233c50;display:block;font-size:14px;margin:2px 0 8px}
.builder-summary-kicker{font-size:9px;font-weight:750;letter-spacing:1.1px;color:#aa9468}
.builder-summary small{display:block;color:#8b989e;font-size:10.2px;margin-top:8px}
.summary-inline{display:flex;gap:6px;flex-wrap:wrap}
.summary-inline span{border:1px solid #e5e6e2;border-radius:3px;padding:4px 6px;font-size:10px;color:#526b79;background:#fff}
.builder-feedback{padding:11px 12px;border:1px solid #e9ddbf;background:#fffaf0;border-radius:7px;font-size:10.8px;line-height:1.6;color:#846f49;margin:0 0 13px}
.builder-feedback[hidden]{display:none}
.builder-feedback p{margin:0 0 5px}
.builder-feedback p:last-child{margin-bottom:0}
.builder-divider{display:flex;align-items:center;gap:8px;margin:18px 0 13px;color:#9da7ab;font-size:10px;white-space:nowrap;text-transform:uppercase;letter-spacing:1px;font-weight:700}
.builder-divider:before,.builder-divider:after{content:"";height:1px;flex:1;background:#e6eae6}
.builder-add .btn-soft{margin-top:0}
.builder-add .form-field:last-of-type{margin-bottom:12px}
.builder-add .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:870px){.builder-layout{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:690px){.builder-layout{grid-template-columns:1fr}.builder-controls{grid-template-columns:1fr 1fr}.builder-controls .builder-add{grid-column:1/-1}}
@media(max-width:510px){.builder-controls{grid-template-columns:1fr}.builder-controls .builder-add{grid-column:auto}}

/* Stage 4: show the insight separately from awarded marks; no Builder redesign. */
.stage4-insight{margin-top:16px;padding:14px 16px;border-left:3px solid var(--gold);background:#fbf8f0;border-radius:0 8px 8px 0}.stage4-insight strong{font-size:10px;letter-spacing:1.2px;color:#836a3e}.stage4-insight p{margin:6px 0 0;line-height:1.55;color:#3a4753}.stage4-print-insight{color:#44525f;font-style:italic}

/* Stage 5 personal question library; preserves the original SKmaths palette. */
.curated-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f7f6f1;border:1px solid #e7e3d8;border-radius:14px;padding:19px 21px;margin:20px 0 19px}.curated-intro strong{color:#172c41}.curated-intro p{color:#66717a;max-width:600px;font-size:13px;line-height:1.5;margin:5px 0 0}.curated-intro-actions,.collection-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.curated-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px;background:white;border:1px solid #e9e7e2;border-radius:14px}.curated-tools .form-field{min-width:0}.curated-tools select,.curated-tools input{width:100%}.collection-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:20px 0 14px}.collection-toolbar strong{display:block;color:#172c41}.collection-toolbar span{display:block;font-size:12px;color:#7b827c;margin-top:4px}.curated-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}.curated-card{padding:19px;background:white;border:1px solid #e6e3db;border-radius:13px;min-width:0;overflow:hidden}.curated-card header{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:13px}.curated-card header small{font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7b807c;font-size:10px}.curated-card .curated-question{font-size:15px;line-height:1.65;overflow-wrap:anywhere;color:#172c41}.curated-card .curated-tags{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}.curated-tag{border:1px solid #e2ddd1;border-radius:50px;padding:4px 9px;font-size:10px;color:#546273}.curated-tag.approved{background:#e9f3ec;color:#2a6549}.curated-tag.flagged{background:#fff0eb;color:#99513d}.curated-card footer{display:flex;flex-wrap:wrap;gap:7px;padding-top:12px;border-top:1px solid #eeeae2}.curated-card footer button{padding:7px 10px}.curated-solution{background:#f6f8f8;padding:14px 15px;margin:12px 0;border-radius:9px;font-size:12px;line-height:1.65}.curated-solution .mark-step{margin-top:9px}.curated-mini{font-size:11px;color:#6c7782}.curated-dialog{width:min(740px,94vw);max-height:90vh;border:1px solid #e8e5da;border-radius:17px;padding:24px;background:#fff;box-shadow:0 20px 55px #172c4140;color:#172c41}.curated-dialog::backdrop{background:#152c4199}.curated-dialog .dialog-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.curated-dialog p{color:#67737d;font-size:13px;margin:10px 0 18px}.curated-dialog textarea{width:100%;min-height:85px;border:1px solid #d3d6d9;border-radius:8px;padding:12px;font-family:inherit;font-size:13px}.curated-dialog .form-field{margin-bottom:14px}.curated-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:15px}.curated-mini button{color:#172c41}.curated-empty{grid-column:1/-1;padding:50px 20px;text-align:center;background:#faf9f5;border:1px dashed #dcd8cb;border-radius:12px;color:#6a7176}.curated-collection-select{font-size:12px;width:100%;padding:8px;margin-top:10px;background:#f9f8f4;border:1px solid #e8e1d5;border-radius:8px}.builder-feedback.warn{border-left:3px solid #b58737}.curated-mode-label{color:#7d683f;font-size:11px;font-weight:700;margin-top:5px}.curated-collection-row{margin:8px 0}.curated-card .q-parts{font-size:inherit}.curated-card mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
@media(max-width:1000px){.curated-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.curated-results{grid-template-columns:1fr}}@media(max-width:620px){.curated-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.curated-intro,.collection-toolbar{flex-direction:column;align-items:stretch}.curated-intro-actions,.collection-toolbar-actions{justify-content:flex-start}.curated-dialog{padding:15px}}

/* Stage 6 parametric mathematical diagrams: screen and print use identical SVGs. */
.skmaths-diagram{display:flex;align-items:center;flex-direction:column;gap:3px;max-width:280px;margin:12px auto 10px;break-inside:avoid;page-break-inside:avoid}.skmaths-diagram svg{max-width:100%;height:auto}.skmaths-diagram figcaption{font-size:11px;color:#667887}
@media print{.skmaths-diagram{max-width:260px;break-inside:avoid}.skmaths-diagram svg{max-height:184px}}
/* Phase 2: vector examination graphics */
.skmaths-diagram.sk-g-figure{width:min(100%,470px);max-width:470px;margin:10px auto 15px;break-inside:avoid;page-break-inside:avoid;display:block;text-align:center}
.sk-g-svg{display:block;width:100%;height:auto;max-height:310px;overflow:visible}.sk-g-figure figcaption{font-size:10px;line-height:1.3;color:#526474;margin-top:2px}
@media print{#printArea .sk-g-figure{max-width:113mm;margin:3mm auto 4mm;break-inside:avoid}#printArea .sk-g-svg{max-height:67mm;width:100%;height:auto}#printArea .print-question-body .sk-g-figure{break-inside:avoid}}

/* Backup & recovery — consistent with existing SKmaths panels */
.backup-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:16px;margin-top:22px}.backup-card,.backup-info{background:#fff;border:1px solid #e4e8e6;border-radius:10px;padding:24px;min-width:0}.backup-card h3,.backup-info h3{font:400 24px Georgia,serif;margin:0 0 12px}.backup-card p{font-size:12px;color:#667785;line-height:1.7}.backup-card button{margin:6px 7px 6px 0}.backup-card input,.backup-card select{width:100%;border:1px solid #e0e5e2;border-radius:6px;padding:10px 12px;margin:9px 0;background:#fff;font-size:12px;min-width:0}.backup-card .backup-field{font-weight:700;font-size:11px}.backup-file{display:inline-block;border:1px solid #d1d9d8;border-radius:6px;padding:12px;cursor:pointer;font-size:12px;font-weight:700;margin-top:15px}.backup-info{margin-top:17px}.backup-info pre{white-space:pre-wrap;word-break:break-word;font:12px/1.8 'Segoe UI',sans-serif;color:#455a6a}.backup-status{padding:11px 13px;background:#eff4f0;color:#355645;border-radius:7px;font-size:12px}.backup-status.backup-error{background:#fcf0ed;color:#8f352e}.backup-note{font-size:11px!important;line-height:1.6;color:#7a8790;margin:13px 0 0}.backup-actions{display:flex;flex-wrap:wrap;gap:6px}
