:root{--motion-duration:220ms;--motion-ease:cubic-bezier(.22,.68,.25,1);--paper:#f6f5ef;--ink:#263d34;--muted:#69736b;--green:#315e4e;--green-dark:#244738;--line:#dddfd6;--white:#fffefa;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}button,input,select{font:inherit}button,select,.file-label{cursor:pointer}button{border:0}button:disabled{cursor:not-allowed;opacity:.43}button,a,input,select,[tabindex]{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #b96d28}a{color:inherit}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:absolute;left:16px;top:-80px;padding:12px;background:var(--white);z-index:50}.skip:focus{top:10px}button:not(:disabled):active{transform:translateY(1px)}
.app-shell{height:100vh;height:100dvh;display:grid;grid-template-rows:62px minmax(0,1fr) auto;padding:0 24px;position:relative;gap:0}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);min-width:0}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-.8px}.brand-mark{display:block;width:36px;height:36px;flex-shrink:0}.edition{font-size:10px;letter-spacing:1px;color:var(--muted)}.edition span{padding:0 6px}.quiet{background:transparent;color:var(--ink);font-size:12px;padding:9px 12px;border-radius:6px}.quiet:hover{background:#e8eae1}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;min-height:0;padding:18px 0 14px;overflow:hidden}.catalogue{display:flex;flex-direction:column;min-height:0;min-width:0}.catalogue-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.catalogue-heading h1{font-size:24px;letter-spacing:-.7px;line-height:1.25;margin:0}.catalogue-heading h1>span{font-size:11px;letter-spacing:0;background:#e7ebdf;border-radius:30px;padding:4px 8px;vertical-align:middle;margin-left:6px;display:inline-block}.catalogue-heading p{font-size:11px;color:var(--muted);margin:6px 0 0}.search{position:relative;max-width:290px;width:40%;min-width:160px}.search>span{position:absolute;top:6px;left:11px;font-size:23px;color:var(--muted)}.search input{width:100%;border:1px solid #d7dbd0;border-radius:6px;background:var(--white);padding:10px 10px 10px 34px;font-size:11px;color:var(--ink);min-height:37px}.catalogue-notice{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px;margin:12px 0;line-height:1.5;flex-shrink:0}.status-dot{width:6px;height:6px;border-radius:50%;background:#ac894d;flex-shrink:0}.catalogue-notice button{margin-left:auto;font-size:10px}.catalogue-scroll{overflow:auto;min-height:0;flex:1;padding:3px 9px 8px 3px;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bbc8b0 transparent}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}.exercise-card{border:1px solid var(--line);background:var(--white);border-radius:9px;padding:16px 18px;min-width:0;box-shadow:0 2px 2px #263d3403}.exercise-card.is-selected{border-color:#7f9f7e;background:#fcfdf7}.card-header{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px}.card-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:1;min-width:0}.exercise-code{font-size:10px;letter-spacing:.7px;font-weight:bold;color:#6b775e;padding:3px 2px 3px 0}.level-tag{font-size:9px;line-height:1.5;background:#e8ecdf;border-radius:3px;padding:2px 5px;color:#52634c;text-decoration:none;cursor:help}.difficulty{font-size:8px;letter-spacing:1.2px;color:#7c906d;padding:2px 3px 2px 0;white-space:nowrap}.tag{font-size:9px;line-height:1.5;border-radius:3px;background:#f0f1eb;color:#626d5c;padding:2px 5px}.tag-accent{background:#f4e8de;color:#92573c}.card-select{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:-4px -5px 0 0;cursor:pointer}.card-select input{accent-color:var(--green);width:18px;height:18px;margin:0;cursor:pointer}.exercise-card h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.3px;font-size:22px;line-height:1.2;margin:0 0 10px}.exercise-card h2 label{cursor:pointer}.statement,.question{font-size:12px;line-height:1.65;margin:0 0 10px;overflow-wrap:break-word}.question{font-weight:600;margin:0}.empty{text-align:center;background:#eeefe6;border-radius:10px;padding:45px 25px}.empty>span{font-family:Georgia,serif;font-size:45px;color:#9aab8c}.empty h2{font-family:Georgia,serif;font-weight:400;font-size:23px}.empty p{font-size:12px;line-height:1.7;color:var(--muted)}.message{padding:12px 15px;border-radius:7px;margin-bottom:14px;font-size:12px;line-height:1.6;background:#e8eee3;color:#32523c;border:1px solid #cbd8c4}.message.error{background:#f8eae2;border-color:#e2bdac;color:#83442e}.message.success{background:#e7eee4}
.filters{background:#eeefe7;border:1px solid #e0e2d7;border-radius:10px;display:flex;flex-direction:column;min-height:0;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:18px 18px 15px;flex-shrink:0}.panel-heading h2{font-size:16px;margin:0;letter-spacing:-.3px}.text-button{color:var(--green);background:none;padding:0;font-size:10px;line-height:1.4;text-decoration:underline;text-underline-offset:3px}.text-button:hover{color:#132d20}.filter-scroll{overflow:auto;min-height:0;flex:1;padding:0 18px 4px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bbc8b0 transparent}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;min-width:0}.field label{font-size:11px;font-weight:bold;color:#535f53}.field select,.field input{width:100%;border:1px solid #d0d4c8;border-radius:5px;background:var(--white);color:var(--ink);padding:9px;font-size:12px;min-height:36px}.two-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:9px}.two-fields .field select{padding-left:7px;padding-right:0;font-size:11px}.filter-divider{border-top:1px solid #d6dbcd;margin:1px 0 17px}.filters h3{font-size:12px;margin:0 0 7px}.hint{font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 13px}.scope-field{margin-top:20px;margin-bottom:8px}.scope-field .hint{margin:0}.filter-actions{padding:12px 18px 10px;border-top:1px solid #d9dece;flex-shrink:0;background:#eeefe7}.primary,.secondary{border-radius:6px;padding:10px 15px;font-size:12px;font-weight:600;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover:not(:disabled){background:var(--green-dark)}.secondary{background:var(--white);color:var(--green);border:1px solid #bdcbbb}.secondary:hover:not(:disabled){background:#e8eee3}.compose-button{width:100%}.compose-button>span{font-size:18px}.last-hint{text-align:center;margin:6px 0 0;font-size:9px}
.selection-bar{border-top:1px solid #cbd4c3;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0 14px;background:var(--paper);min-width:0}.selection-bar>div{display:flex;align-items:center;gap:12px}.selection-icon{font-size:27px;color:var(--green)}.selection-bar strong{font-size:13px;display:block;line-height:1.5}.selection-bar small{display:block;font-size:10px;color:var(--muted);line-height:1.5;max-width:530px}.selection-bar .has-issues{color:#904c33}.selection-actions .quiet{font-size:11px;padding:9px 6px;white-space:nowrap}.file-label{display:inline-block}.file-label:focus-within{outline:3px solid #b96d28;outline-offset:2px}
.step-viewport{min-width:0;min-height:0;overflow:clip;position:relative}.step-track{display:flex;width:200%;height:100%;transition:transform var(--motion-duration) var(--motion-ease)}.show-preview .step-track{transform:translateX(-50%)}.step-track>.workspace,.step-track>.preview{flex:0 0 50%;width:50%;height:100%;min-width:0;min-height:0}.preview{display:grid;grid-template-columns:248px minmax(0,1fr);gap:20px;padding:18px 0 14px;overflow:hidden}.preview-sidebar .panel-heading{padding:18px 18px 15px}.step-badge{font-size:10px;letter-spacing:1px;color:var(--muted)}.preview-sidebar .view-tabs{display:flex;gap:3px;background:#e0e5d9;border-radius:6px;padding:4px;margin:8px 0 18px}.view-tabs button{flex:1;min-width:0;background:transparent;border-radius:4px;font-size:11px;color:var(--muted);padding:8px 4px}.view-tabs button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 1px 4px #263d3410}.answer-note{margin-top:14px}.preview-canvas{overflow:auto;min-height:0;min-width:0;position:relative;background:#e4e6dd;border:1px solid #d6dacd;border-radius:8px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a6b49d transparent}.pages{--page-scale:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:20px;padding:16px;width:max-content;min-width:100%;min-height:100%}.page-frame{position:relative;flex-shrink:0;width:calc(210mm * var(--page-scale));height:calc(297mm * var(--page-scale));overflow:hidden;background:white;box-shadow:0 3px 12px #1e372426}.page-frame>.sheet{position:absolute;left:0;top:0;transform:scale(var(--page-scale));transform-origin:top left;box-shadow:none}.selection-icon{font-size:11px;width:30px;height:30px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid #aebb9f;border-radius:50%;font-weight:600;letter-spacing:1px}.footer-context{min-width:0}.footer-context>div{min-width:0}.selection-actions{flex-shrink:0}.footer-context #close-preview{white-space:nowrap}.selection-bar small{max-width:460px}

.sheet{width:210mm;height:297mm;padding:13mm 15mm 10mm;background:white;color:#202a23;flex-shrink:0;display:flex;flex-direction:column;box-shadow:0 3px 13px #1e372416;font-family:Arial,Helvetica,sans-serif}.sheet-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #465749;padding-bottom:4mm;gap:10px}.sheet-brand{font-size:8pt;letter-spacing:1.3px;font-weight:bold;text-transform:uppercase;color:#52694e}.sheet h2{font-family:Georgia,serif;font-weight:400;font-size:21pt;line-height:1.15;margin:3mm 0 0;overflow-wrap:anywhere}.sheet-number{font-size:9pt;white-space:nowrap;color:#596152}.student-fields{display:flex;gap:8mm;flex-wrap:wrap;font-size:9pt;padding:5mm 0 1mm;align-items:end}.name-line,.date-line{display:inline-block;border-bottom:1px solid #aaa;width:62mm;height:3mm}.date-line{width:29mm}.sheet-problems{display:flex;flex-direction:column;flex:1;min-height:0}.paper-problem{display:flex;flex-direction:column;flex:1;min-height:0;border-bottom:1px solid #b8c0b2;padding:6mm 0 5mm;break-inside:avoid;page-break-inside:avoid}.paper-problem:last-child{border:0;padding-bottom:1mm}.paper-title{display:flex;gap:3mm;align-items:baseline;margin-bottom:2mm}.paper-title>span{font-size:9pt;color:#697e61;font-weight:bold}.paper-title h3{font-family:Georgia,serif;font-weight:400;font-size:15pt;line-height:1.2;margin:0}.paper-title small{margin-left:auto;font-size:7pt;color:#6d7668}.paper-problem>p{font-size:10.5pt;line-height:1.5;margin:0 0 2mm}.paper-problem .paper-question{font-weight:600;margin-bottom:2mm}.working-space{flex:1;margin:2mm 0 3mm;min-height:8mm;background-image:radial-gradient(#ced3c8 .6px,transparent .6px);background-size:5mm 5mm;background-position:0 5mm}.working-space>span{font-size:8pt;color:#6c7665;background:white;padding-right:3mm;display:inline-block;margin-bottom:4mm}.response-space{display:flex;gap:3mm;font-size:10pt;align-items:end}.response-space>span{flex:1;border-bottom:1px solid #9aa58e;height:5mm}.sheet-subtitle{font-size:8.5pt;line-height:1.4;margin:4mm 0 0}.solution-sheet .paper-problem{padding:4mm 0}.solution-sheet .paper-title{margin-bottom:2mm}.solution-sheet .solution-expression{font-size:11pt;line-height:1.4;font-weight:bold;margin:0 0 1.5mm}.solution-sheet .solution-steps{font-size:9pt;line-height:1.4;margin:0 0 1mm;padding-left:5mm}.solution-sheet .solution-answer{font-size:10pt;margin:1.5mm 0 1mm;line-height:1.35;font-weight:600}.solution-sheet .solution-note{font-size:8pt;line-height:1.4;margin:0;color:#626b5c}.solution-sheet .solution-visual{margin:1mm 0}.solution-sheet .solution-visual svg{display:block;width:120mm;max-width:100%;height:22mm;margin:auto}.solution-visual text{font:18px Arial,sans-serif;fill:#243d35}.solution-sheet .solution-visual figcaption{font-size:8pt;line-height:1.3;color:#526251}#print-root{display:none}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.statement,.question{font-size:13px}}
@media(max-width:1100px){.app-shell{padding:0 16px}.workspace{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.cards{grid-template-columns:1fr}.catalogue-heading h1{font-size:22px}.search{width:43%;min-width:145px}.selection-bar small{max-width:360px}}
@media(max-width:760px){.app-shell{grid-template-rows:54px minmax(0,1fr) auto;padding:0 12px}.brand{font-size:21px}.brand-mark{width:30px;height:30px}.edition{display:none}.workspace{grid-template-columns:minmax(0,1fr) 245px;gap:12px;padding-top:12px}.panel-heading{padding:14px 12px;gap:5px}.panel-heading h2{font-size:14px}.filter-scroll{padding:0 12px 4px}.filter-actions{padding:10px 12px 8px}.catalogue-heading{flex-wrap:wrap;gap:9px}.catalogue-heading h1{font-size:21px}.search{width:100%;max-width:none}.catalogue-notice{flex-wrap:wrap;font-size:9px}.catalogue-notice button{margin-left:12px}.exercise-card{padding:14px}.exercise-card h2{font-size:21px}.selection-bar{gap:10px}.selection-bar>div{gap:8px}.selection-bar small{max-width:260px}.selection-actions{flex-wrap:wrap;justify-content:end}.selection-actions .quiet{font-size:10px}.selection-actions .primary{padding:9px 12px;font-size:11px}}
@media(max-width:560px){html,body{height:auto;min-height:100%;overflow:auto}.app-shell{height:auto;min-height:100dvh;display:flex;flex-direction:column}.masthead{min-height:54px;position:sticky;top:0;z-index:10;background:var(--paper)}.workspace{display:flex;flex-direction:column-reverse;overflow:visible;gap:16px;padding-top:12px}.filters{max-height:40dvh;min-height:235px;flex:none}.panel-heading{padding:11px 14px}.filter-scroll{padding:0 14px 4px}.filter-actions{padding:8px 14px}.last-hint{display:none}.filters .two-fields{grid-template-columns:1fr 1fr}.filters .two-fields .field select{font-size:12px}.catalogue-heading{flex-wrap:nowrap}.catalogue-heading h1{font-size:21px}.catalogue-heading p{font-size:10px}.search{min-width:110px;width:39%}.search input{font-size:10px}.catalogue-notice{font-size:9px;justify-content:space-between;gap:5px}.catalogue-notice button{margin-left:auto;font-size:9px}.catalogue{overflow:visible;flex:none}.catalogue-scroll{overflow:visible;padding:3px 0 8px;flex:none}.cards{grid-template-columns:1fr;gap:11px}.exercise-card{padding:15px}.statement,.question{font-size:12px}.card-meta{gap:4px}.tag{font-size:9px}.selection-bar{position:sticky;bottom:0;z-index:10;flex-wrap:wrap;gap:7px;padding:10px 0;box-shadow:0 -8px 15px var(--paper);margin-top:8px}.selection-bar>div{width:100%}.selection-bar small{max-width:none}.selection-icon{font-size:22px}.selection-bar strong{font-size:12px}.selection-actions{justify-content:space-between;flex-wrap:nowrap}.selection-actions .primary{flex:1}.preview{overflow:visible;padding:15px 0}.preview-toolbar h2{font-size:28px}.preview-toolbar .quiet{font-size:11px}.preview-settings{gap:0}.preview-settings>.field,.preview-settings>.field:nth-child(2){width:100%}.view-tabs{width:100%;justify-content:center}.print-actions>button{width:100%}.print-actions p{font-size:10px}.pages{padding:12px 8px}.app-shell.show-preview{height:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@page{size:A4 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;height:auto!important;overflow:visible!important;background:white!important}.app-shell,noscript{display:none!important}#print-root{display:block!important}.sheet{margin:0;width:210mm;height:297mm;box-shadow:none;break-after:page;page-break-after:always;overflow:hidden;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet:last-child{break-after:auto;page-break-after:auto}.sheet-header,.paper-problem,.solution-sheet .paper-problem{overflow:hidden}}

@media screen and (max-width:1100px){.preview{grid-template-columns:220px minmax(0,1fr);gap:16px}.selection-bar small{max-width:310px}.selection-actions .primary,.selection-actions .secondary{font-size:11px;padding:9px 11px}}
@media screen and (max-width:760px){.preview{grid-template-columns:190px minmax(0,1fr);gap:12px;padding-top:12px}.preview-sidebar .panel-heading{padding:14px 12px}.preview-sidebar .panel-heading h2{font-size:14px}.preview-sidebar .view-tabs{flex-direction:column}.selection-bar{flex-wrap:wrap;gap:8px}.selection-bar>.footer-context{flex:1;min-width:0}.selection-bar small{max-width:240px}.footer-context #close-preview{font-size:11px;padding:9px}.selection-bar .selection-icon{font-size:10px;width:26px;height:26px}.selection-actions{margin-left:auto}.pages{align-items:center}}
@media screen and (max-width:560px){html,body{height:100%;overflow:hidden}.app-shell,.app-shell.show-preview{display:grid;height:100dvh;min-height:0;grid-template-rows:54px minmax(0,1fr) auto}.masthead{position:static;min-height:0}.step-track>.workspace{overflow:auto;flex-direction:column;min-height:0}.workspace>.filters{order:-1;min-height:210px;flex-shrink:0}.preview{grid-template-columns:1fr;grid-template-rows:min(220px,30dvh) minmax(0,1fr);padding:12px 0;gap:12px;overflow:hidden}.preview .preview-sidebar{min-height:0;max-height:none;flex:none}.preview-sidebar .panel-heading{padding:11px 14px}.preview-sidebar .view-tabs{flex-direction:row}.preview-canvas{min-height:0}.pages{padding:12px;gap:12px;align-items:center}.selection-bar{position:static;margin-top:0;box-shadow:none;padding:9px 0 10px;gap:7px;min-height:0}.selection-bar>.footer-context{flex:none;justify-content:flex-start;gap:9px}.footer-context .selection-icon{display:none}.selection-bar small{max-width:none;font-size:9px}.selection-bar strong{font-size:11px}.footer-context #close-preview{font-size:11px;padding:8px 10px;min-height:34px}.selection-bar>.selection-actions{flex:none;width:100%;margin-left:0;justify-content:space-between}.selection-actions .primary,.selection-actions .secondary{min-width:0;flex:1;font-size:10px;padding:8px;white-space:normal;min-height:36px}}

/* Shared motion timing; pointer panning stays direct while zoom uses this same duration. */
button,a,input,select{transition:background-color var(--motion-duration) var(--motion-ease),border-color var(--motion-duration) var(--motion-ease),box-shadow var(--motion-duration) var(--motion-ease),opacity var(--motion-duration) var(--motion-ease),transform var(--motion-duration) var(--motion-ease)}
.exercise-card{transition:border-color var(--motion-duration) var(--motion-ease),background-color var(--motion-duration) var(--motion-ease),box-shadow var(--motion-duration) var(--motion-ease)}
.brand-option{display:flex;align-items:center;gap:8px;font-size:11px;margin:-3px 0 18px;color:#535f53;cursor:pointer}.brand-option input{accent-color:var(--green);width:15px;height:15px;margin:0}
.preview-viewer{position:relative;min-width:0;min-height:0;overflow:clip}.preview-canvas{width:100%;height:100%;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.preview-canvas.is-panning{cursor:grabbing}.pages{--page-gap:40px;column-gap:calc(var(--page-gap) * var(--page-scale))}
.viewer-controls{position:absolute;bottom:17px;right:17px;z-index:3;display:flex;flex-direction:column;align-items:center;width:39px;background:var(--white);border:1px solid #bbc8b0;border-radius:7px;box-shadow:0 3px 12px #263d3430;overflow:hidden;user-select:none}.viewer-controls button{display:flex;align-items:center;justify-content:center;width:37px;min-height:34px;padding:5px;background:transparent;color:var(--green);font-size:22px;font-weight:400}.viewer-controls button:hover:not(:disabled){background:#e0e9d8}.viewer-controls output{font-size:9px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}.viewer-controls #zoom-fit{border-top:1px solid var(--line);margin-top:3px;min-height:37px}.viewer-controls #zoom-fit[aria-pressed=true]{background:#e7eee1}.viewer-controls img{display:block;pointer-events:none;opacity:.8}
.sheet-header:not(.has-title){border-bottom:0;padding-bottom:2mm}.sheet-header h2:first-child{margin-top:0}
@media(prefers-reduced-motion:reduce){:root{--motion-duration:0ms}}
@media screen and (max-width:560px){.viewer-controls{right:11px;bottom:11px}.preview-sidebar .filter-scroll{padding-bottom:10px}}

/* Release history belongs to the shared footer and never to the printed sheet. */
.version-button{display:block;background:transparent;color:var(--green);padding:2px 0 0;font-size:10px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#a6b49d;white-space:nowrap}.version-button:hover{text-decoration-color:var(--green)}
.history-dialog{color:var(--ink);background:var(--paper);border:1px solid #cbd4c3;border-radius:14px;padding:0;width:min(540px,calc(100vw - 32px));max-height:min(720px,calc(100dvh - 48px));box-shadow:0 20px 80px #122c3440;overflow:hidden}.history-dialog[open]{display:flex;flex-direction:column}.history-dialog::backdrop{background:#203a3366;animation:history-backdrop var(--motion-duration) var(--motion-ease)}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 26px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.history-eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:9px;color:var(--muted);margin:0 0 7px}.history-heading h2{font-family:Georgia,serif;font-weight:400;font-size:27px;line-height:1.2;margin:0}.history-close{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cbd4c3;background:var(--white);color:var(--green);border-radius:50%;font-size:25px;flex-shrink:0}.history-close:hover{background:#e0e9d8}.history-scroll{overflow:auto;overscroll-behavior:contain;padding:0 26px;min-height:0;scrollbar-width:thin;scrollbar-color:#bbc8b0 transparent}.release-list{list-style:none;margin:0;padding:0}.release-list>li{padding:21px 0;border-bottom:1px solid var(--line)}.release-list>li:last-child{border:0}.release-meta{display:flex;align-items:center;gap:10px}.release-version{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--green)}.release-current{background:#e0e9d8;color:#3d654c;padding:3px 7px;border-radius:4px;font-size:9px}.release-list h3{font-size:14px;margin:9px 0}.release-list ul{padding-left:17px;font-size:12px;line-height:1.65;color:#536252}.release-list ul li+li{margin-top:5px}
@keyframes history-backdrop{from{background:#203a3300}to{background:#203a3366}}
@media screen and (max-width:560px){.history-heading{padding:19px}.history-heading h2{font-size:24px}.history-scroll{padding:0 19px}.version-button{font-size:9px}}
.history-source{display:inline-flex;align-items:center;gap:3px;margin-top:5px;color:var(--green);font-size:11px;text-underline-offset:2px}
.history-source .ui-icon{width:12px;height:12px}
@media print{.history-dialog{display:none!important}}

/* Compact catalogue, paired three-state filters and stable footer navigation. */
.workspace{grid-template-columns:minmax(0,1fr) 320px}.catalogue-heading{margin-bottom:17px;gap:15px}.catalogue-heading h1{margin:0;white-space:nowrap}.catalogue-heading .search{max-width:330px;width:42%}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.exercise-card{padding:15px}.exercise-card h2{font-size:21px}
#bank-step .field{margin-bottom:12px}#bank-step .field select{min-height:33px;padding-top:7px;padding-bottom:7px}.filter-key{display:flex;justify-content:space-between;gap:5px;margin:10px 0 15px;font-size:10px;color:var(--muted)}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 12px}.filter-actions{padding-top:12px;padding-bottom:12px}
.selection-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;padding:12px 0;position:static;box-shadow:none;margin:0}.selection-bar>.footer-version{width:auto;min-width:0;justify-self:start}.version-button{padding:7px 0}.step-navigation{display:flex;align-items:start;gap:5px}.step-button{display:grid;gap:2px;background:transparent;color:var(--muted);padding:2px 5px;border-radius:5px;font-size:11px;line-height:1.15;text-align:center;white-space:nowrap}.step-button:hover:not(:disabled){background:#e7ecdf}.step-number{padding-bottom:2px;border-bottom:2px solid #aebb9f;font-size:10px;line-height:1;transition:border-color var(--motion-duration) var(--motion-ease)}.step-button[aria-current=step]{color:var(--green);font-weight:600}.step-button[aria-current=step] .step-number{border-color:var(--green)}.selection-bar>.selection-actions{width:auto;justify-self:end;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:0}.selection-actions .quiet{font-size:10px;padding:8px 5px}.selection-actions .primary,.selection-actions .secondary{font-size:11px;padding:9px 12px;white-space:nowrap}.file-label{position:relative}.file-label input{left:0;bottom:0}
@media screen and (max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 286px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogue-heading{flex-wrap:wrap}.catalogue-heading .search{width:100%;max-width:none}.selection-bar{gap:10px}.selection-actions .quiet{font-size:9px;padding:8px 3px}.selection-actions .primary,.selection-actions .secondary{font-size:10px;padding:9px}.filter-scroll{padding-left:15px;padding-right:15px}}
@media screen and (max-width:950px){.selection-bar{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.step-navigation{grid-column:2;grid-row:1}.selection-bar>.selection-actions{grid-column:1 / -1;grid-row:2}.selection-actions .quiet{font-size:10px}.selection-actions .primary,.selection-actions .secondary{font-size:11px}.cards{grid-template-columns:1fr}}
@media screen and (max-width:760px){.workspace{grid-template-columns:minmax(0,1fr) 245px}.catalogue-heading h1{font-size:21px}.catalogue-heading .search{width:100%}.filter-scroll{padding-left:12px;padding-right:12px}.feature-grid{gap:10px}.filter-key{font-size:9px}.compose-button{font-size:11px;padding-left:5px;padding-right:5px}}
@media screen and (max-width:560px){.workspace{display:flex}.catalogue-heading{flex-wrap:wrap;margin-bottom:13px;gap:10px}.catalogue-heading .search{width:100%;max-width:none}.cards{grid-template-columns:1fr}.workspace>.filters{min-height:210px}.selection-bar{grid-template-columns:minmax(0,1fr) auto;gap:5px 6px;padding:8px 0}.selection-bar>.footer-version{width:auto;flex:none}.version-button{font-size:9px}.selection-bar>.selection-actions{width:100%;justify-content:flex-end;gap:6px}.selection-actions .quiet{font-size:9px;padding:7px 3px}.selection-actions .primary,.selection-actions .secondary{flex:1;font-size:10px;padding:8px;white-space:normal}}
@media screen and (min-width:761px){.filter-key{margin:8px 0 10px}.feature-grid{row-gap:10px}#bank-step .scope-field{margin-top:12px}#bank-step .field{gap:5px;margin-bottom:10px}}
.step-button{font-weight:600}
.selection-bar>.selection-actions{min-height:42px}
@media screen and (max-width:950px){.selection-bar>.selection-actions{min-height:38px}}
@media screen and (max-width:560px){.selection-bar>.selection-actions{min-height:36px}}
@media screen and (max-width:360px){.selection-actions .primary,.selection-actions .secondary{font-size:9px;white-space:nowrap}}

/* Page count and density are independent; previews keep at most two A4 columns. */
.two-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.two-fields .field label{min-height:27px;display:flex;align-items:end;line-height:1.25}.masthead .edition{font-family:Georgia,serif;font-style:italic;font-size:17px;letter-spacing:0;text-transform:none;color:#66765e}

.pages{display:grid;grid-template-columns:repeat(var(--preview-columns,2),max-content);grid-auto-rows:max-content;gap:calc(var(--page-gap) * var(--page-scale));align-content:center;justify-content:center}.sheet-grid .sheet-problems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));column-gap:7mm}.sheet-grid .paper-problem{min-width:0;border-bottom:0;padding:5mm 0 3mm}.sheet-grid .paper-title{gap:2mm}.sheet-grid .paper-title h3{font-size:13pt;min-width:0;flex:1}.sheet-grid .paper-title>span,.sheet-grid .paper-title small{flex-shrink:0}.sheet-grid .paper-problem>p{font-size:10pt;line-height:1.4}.sheet-grid .solution-expression{font-size:10pt;overflow-wrap:anywhere}.sheet-grid .solution-steps{font-size:8.5pt}.sheet-grid .solution-answer{font-size:9pt}.sheet-grid .solution-note{font-size:7.5pt}.sheet-grid .working-space{margin-bottom:3mm}
@media screen and (max-width:1100px){.masthead .edition{font-size:15px}}
@media screen and (max-width:760px){.app-shell,.app-shell.show-preview{grid-template-rows:70px minmax(0,1fr) auto}.masthead{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:30px auto;align-content:center;gap:4px 8px}.masthead .brand{grid-column:1;grid-row:1}.masthead #help-toggle{grid-column:2;grid-row:1}.masthead .edition{display:block;grid-column:1 / -1;grid-row:2;justify-self:start;font-size:12px;line-height:1.2}.two-fields .field label{font-size:10px}}
@media screen and (max-width:560px){.masthead{min-height:0}.two-fields .field label{font-size:11px}}

/* One compact tag per feature; colour and symbol communicate the same state. */
.feature-grid{gap:8px}.feature-chip{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:34px;width:100%;padding:4px 9px;border:1px solid #cdd7c3;border-radius:8px;background:#e8eddf;color:#54684a;text-align:left;font-size:10px;line-height:1.35;transition:background-color var(--motion-duration) var(--motion-ease),border-color var(--motion-duration) var(--motion-ease),color var(--motion-duration) var(--motion-ease),box-shadow var(--motion-duration) var(--motion-ease),transform var(--motion-duration) var(--motion-ease)}.feature-name{min-width:0;overflow-wrap:normal}.feature-state{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:19px;height:19px;border-radius:5px;background:#ffffff73;font-size:16px;font-weight:600;line-height:1}.feature-chip[data-mode=allow] .feature-state{font-size:23px;font-weight:400}.feature-chip[data-mode=require]{background:#d8eacf;color:#305f36;border-color:#90b382}.feature-chip[data-mode=exclude]{background:#f4dfd9;color:#8b4030;border-color:#d3a08f}.feature-chip:hover{box-shadow:0 2px 5px #263d3412;filter:brightness(.98)}.feature-chip:focus-visible{outline:3px solid #b96d28;outline-offset:2px}.filter-key>span:nth-child(2){color:#305f36}.filter-key>span:nth-child(3){color:#8b4030}
@media screen and (max-width:760px){.feature-chip{padding:4px 8px;font-size:10px;gap:4px}.feature-state{width:17px;height:19px}}
@media screen and (max-width:560px){.feature-chip{font-size:11px;padding:4px 8px;gap:6px}}

.help-dialog{width:min(620px,calc(100vw - 32px));max-height:min(800px,calc(100dvh - 48px))}.help-content{padding-bottom:22px}.help-section{padding-top:23px}.help-section+.help-section{margin-top:21px;border-top:1px solid var(--line)}.help-section h3{display:flex;align-items:center;gap:10px;font-size:16px;letter-spacing:-.2px;margin:0 0 10px}.help-step{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#e1e9d9;color:var(--green);font-size:11px;flex-shrink:0}.help-section>p{font-size:12px;line-height:1.6;margin:0 0 15px;color:var(--muted)}.help-example{background:var(--white);border:1px solid #d8dfcf;border-radius:9px;padding:17px 18px;transition:border-color var(--motion-duration) var(--motion-ease),background-color var(--motion-duration) var(--motion-ease)}.help-example.is-selected{background:#f5f9ee;border-color:#85a57a}.help-example header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.help-example h4{font-family:Georgia,serif;font-size:21px;line-height:1.25;font-weight:400;margin:0}.help-example p{font-size:12px;line-height:1.65;margin:0 0 9px}.help-example .help-example-question{font-weight:600;margin-bottom:0}.help-select-hint{display:flex;align-items:center;gap:14px;flex-shrink:0;font-size:10px;color:#896130;cursor:pointer}.help-select-hint input{accent-color:var(--green);height:18px;width:18px;margin:0;outline:2px dashed #b58c4e;outline-offset:5px;cursor:pointer}.help-select-hint input:focus-visible{outline:3px solid #b96d28;outline-offset:5px}.help-filter-demo{position:relative;display:flex;align-items:center;gap:17px;margin:18px 0 22px;width:max-content;max-width:100%}.help-filter-demo .feature-chip{width:210px;max-width:100%;min-height:42px;font-size:12px;padding:7px 12px}.help-demo-state{font-size:11px;color:var(--muted);min-width:65px}.help-demo-pointer{position:absolute;left:169px;top:27px;pointer-events:none;z-index:1}.help-demo-pointer svg{position:relative;display:block}.help-click-ring{position:absolute;width:18px;height:18px;left:-7px;top:-7px;border:2px solid #8ea87f;border-radius:50%;opacity:0}.is-clicking .help-click-ring{animation:help-click 440ms var(--motion-ease)}.is-clicking .help-demo-pointer svg{animation:help-pointer 440ms var(--motion-ease)}.is-clicking .feature-chip{transform:translateY(1px)}.help-filter-meaning{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.help-filter-meaning p{font-size:11px;line-height:1.5;margin:0}.help-filter-meaning strong{display:block;color:var(--green);font-size:11px;margin-bottom:3px}.help-filter-meaning p:last-child strong{color:#8b4030}.help-filter-meaning span{color:var(--muted)}.help-section>.help-scope{font-size:11px;line-height:1.6;margin:16px 0 0}
@keyframes help-click{0%{opacity:.7;transform:scale(.5)}100%{opacity:0;transform:scale(1.8)}}@keyframes help-pointer{0%,100%{transform:translate(0,0)}45%{transform:translate(-2px,-2px)}}
@media screen and (max-width:560px){.help-content{padding-bottom:19px}.help-section{padding-top:19px}.help-example{padding:14px}.help-example header{gap:12px}.help-example h4{font-size:19px}.help-select-hint{gap:9px;font-size:9px}.help-filter-demo{width:100%;gap:12px}.help-filter-demo .feature-chip{width:175px;font-size:11px}.help-demo-pointer{left:137px}.help-filter-meaning{gap:7px}.help-filter-meaning p,.help-filter-meaning strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.help-demo-pointer{display:none}.is-clicking .help-click-ring,.is-clicking .help-demo-pointer svg{animation:none}}

/* Selection feedback keeps a reserved footprint; the tray overlays the bank. */
.catalogue-title-group{display:flex;align-items:center;gap:15px;min-width:0}.selection-toggle{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:6px 9px;background:#eef1e7;color:var(--green);border:1px solid #ccd7c1;border-radius:7px;font-size:10px;white-space:nowrap}.selection-toggle:hover{background:#e2ead9}.selection-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:21px;padding:0 4px;border-radius:5px;background:#dce6d2;font-size:10px;font-variant-numeric:tabular-nums}.exercise-card.is-unavailable{background:#eeefe8;border-color:#d9ded2}.is-unavailable .card-select,.is-unavailable .card-select input,.is-unavailable h2 label{cursor:not-allowed}
.selection-popover{position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #bdcdb1;border-radius:11px;background:var(--paper);color:var(--ink);box-shadow:0 12px 40px #243d352b;font-family:inherit;scrollbar-width:thin;scrollbar-color:#bbc8b0 transparent}.selection-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px 14px;border-bottom:1px solid var(--line)}.selection-popover-heading h2{font-family:Georgia,serif;font-weight:400;font-size:23px;line-height:1.2;margin:0}.selection-popover-heading p{font-size:10px;color:var(--muted);margin:6px 0 0}.selection-close,.selection-remove{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:29px;height:29px;border:1px solid #ced8c5;border-radius:50%;background:transparent;color:var(--green);font-size:21px}.selection-close:hover,.selection-remove:hover{background:#e0e9d8}.selection-list{list-style:none;margin:0;padding:5px 18px 9px;max-height:min(340px,calc(100dvh - 130px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.selection-list li{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.selection-list li:last-child{border-bottom:0}.selection-index{font-size:10px;color:#78856f;min-width:14px;font-variant-numeric:tabular-nums}.selection-item-title{flex:1;min-width:0;font-size:12px;line-height:1.45}.selection-item-title small{display:block;font-size:9px;margin-top:3px;color:#8b6542}.selection-remove{width:27px;height:27px;font-size:19px}.selection-empty{font-size:12px;color:var(--muted);padding:22px 18px;margin:0;line-height:1.6}
@media screen and (max-width:760px){.catalogue-title-group{gap:10px}.selection-toggle-prefix{display:none}.selection-toggle-noun{text-transform:capitalize}.selection-toggle{gap:5px;padding:5px 7px}}
@media screen and (max-width:560px){.catalogue-title-group{width:100%;justify-content:space-between}.selection-toggle-prefix{display:inline}.selection-toggle-noun{text-transform:none}}
@media print{.selection-popover{display:none!important}}
@media screen and (max-width:360px){.selection-toggle-prefix{display:none}.selection-toggle-noun{text-transform:capitalize}.catalogue-heading h1{font-size:20px}}
.search input{padding-right:43px}.search-help-toggle{position:absolute;right:8px;top:8px;width:22px;height:22px;padding:0;border:1px solid #bdcbb2;border-radius:50%;background:#e8eddf;color:var(--green);font-size:12px;line-height:20px}.search-help-toggle:hover{background:#dce6d2}.search input[aria-invalid=true]{border-color:#b37b5b}.search-help-content{padding:0 18px 16px;font-size:11px;line-height:1.6}.search-help-content>p{margin:13px 0 0}.search-help-content dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 13px;align-items:center;margin:15px 0}.search-help-content dt,.search-help-content dd{margin:0}.search-help-content dt button{padding:4px 8px;border:1px solid #c4d1ba;border-radius:5px;background:#e7eedf;color:var(--green);font-size:11px;font-variant-numeric:tabular-nums}.search-help-content dt button:hover{background:#d9e7cd}.search-help-popover .selection-popover-heading h2{font-size:22px}.search-error{color:#83442e}

/* Multiple questions share a working area and have separate labelled answers. */
.part-questions{padding-left:20px;margin:0;font-size:12px;line-height:1.6;font-weight:600}.part-questions li+li{margin-top:5px}.part-questions li::marker{content:counter(list-item,lower-alpha)') ';font-weight:700}.paper-questions{font-size:10pt;line-height:1.35;padding-left:5mm;margin:0 0 1mm}.paper-questions li+li{margin-top:1mm}.has-parts .working-space{margin:1mm 0 2mm}.part-responses{flex-shrink:0;display:grid;gap:1mm}.part-responses .response-label{flex:0 0 4mm;border:0;height:auto;font-size:9pt}.part-responses .response-line{height:5mm}.response-space.reasoning-response .response-line{height:9mm;background:linear-gradient(transparent calc(100% - 1px),#bdc4b7 0) 0 0/100% 4.5mm repeat-y}.solution-part{position:relative;padding-left:5mm;margin-bottom:2mm;flex-shrink:0}.solution-part:last-child{margin-bottom:0}.part-label{position:absolute;left:0;top:0;font-size:9pt;font-weight:700}.solution-sheet .solution-part .solution-expression{font-size:10pt}.solution-sheet .solution-part .solution-steps{font-size:8.5pt}.solution-sheet .solution-part .solution-answer{font-size:9pt}.sheet-grid .paper-questions{font-size:9.5pt}.has-parts{padding-top:4mm;padding-bottom:3mm}.solution-sheet .has-parts{padding:3mm 0}.sheet-grid .solution-part{margin-bottom:1.5mm}.sheet-grid .solution-part .solution-expression{font-size:9pt}.sheet-grid .solution-part .solution-steps{font-size:8pt}.sheet-grid .solution-part .solution-answer{font-size:8.5pt}

/* One footer row at every size; compact tools keep navigation in its column. */
.selection-bar>.footer-project{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.selection-bar>.footer-project{grid-column:3;justify-self:end}
.footer-pill{display:inline-flex;align-items:center;gap:3px;border:1px solid #bdcbb2;border-radius:7px;padding:5px 7px;background:#eef1e7;color:var(--green);font-size:11px;white-space:nowrap}
.footer-pill:hover{background:#dfe9d5}
.utility-content{padding:16px;display:grid;gap:12px;font-size:13px}
.utility-content p{margin:0;line-height:1.5}
.utility-card{display:grid;gap:8px;border:1px solid #d6ddce;border-radius:9px;background:#eef1e7;padding:12px}
.utility-card label{font-weight:700;color:var(--green)}
.utility-card input{width:100%;min-width:0;border:1px solid #bdcbb2;border-radius:6px;padding:8px;background:white;color:var(--ink)}
#lot-current,#lot-input{font-family:monospace}
.utility-actions{display:flex;flex-wrap:wrap;gap:6px}
#lot-form button{justify-self:start}
#lot-status:empty,#v4v-status:empty{display:none}
.sheet:has(.sheet-lot){padding-bottom:5mm}
.sheet:not(.sheet-grid)>.sheet-problems{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--problem-rows),minmax(0,1fr))}
.sheet-bottom{display:flex;flex:none;align-items:baseline;justify-content:space-between;gap:3mm;padding-top:2mm}
.sheet-bottom .sheet-number{margin-inline-start:auto;flex:none}
.sheet-lot{min-width:0;font-size:7.5pt;line-height:1.2;color:#394c38}
.sheet-lot code{overflow-wrap:anywhere}
.sheet-header{display:block}
.sheet-topline{display:flex;align-items:baseline;gap:4mm}
.sheet-topline:empty{display:none}
.sheet-topline .sheet-brand{flex:none}
.sheet-topline .sheet-lot{margin-inline-start:auto;text-align:right}
.utility-card h3{margin:0;font-size:15px}
.template-save{display:grid;gap:5px}
.template-save-row{display:flex;gap:6px}
.template-list{display:grid;gap:0;list-style:none;margin:0;padding:0}
.template-list li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}
.template-list li>div:first-child{min-width:0;overflow-wrap:anywhere}
.template-list code{display:block;font-size:11px}
.template-summary{flex:1 0 100%;font-size:12px}
.template-summary p{margin-top:3px}
.template-size{color:var(--muted)}
.template-editor{width:100%;min-width:0}
.template-error:empty{display:none}
.reasoning-section{margin-top:10px;border-top:1px solid #d6dbcd}
.reasoning-section summary{padding:9px 0;cursor:pointer;font-size:12px;font-weight:600}
#reasoning-count{float:right;color:var(--muted);font-size:10px;font-weight:400}
.exercise-card{position:relative}
.card-header{min-height:22px;padding-inline-end:55px}
.card-tools{position:absolute;inset:9px 9px auto auto;display:flex;align-items:center;gap:1px}
.card-tools .card-select{margin:0}
.report-control{display:inline-flex;align-items:center;flex:none}
.report-flag{display:grid;place-items:center;width:28px;height:28px;padding:0;background:transparent;color:var(--green);border-radius:5px}
.report-flag:hover,.report-flag:focus-visible{background:#e3ebdb}
.report-flag[aria-disabled="true"]{cursor:default}
.report-flag[aria-disabled="true"] .ui-icon{opacity:.48}
.report-sent{font-size:14px;font-weight:700}
#report-tooltip{position:fixed;inset:auto;margin:0;width:max-content;max-width:min(260px,calc(100vw - 24px));padding:8px 11px;border:1px solid #cbd4c3;border-radius:8px;background:var(--white);color:var(--ink);font-size:11px;line-height:1.5;box-shadow:0 4px 12px #263d3420}
@media print{#report-tooltip{display:none!important}}
#privacy-dialog{width:min(500px,calc(100vw - 32px))}
.privacy-content{padding-block:18px 23px;font-size:13px;line-height:1.6}
.privacy-content>p{margin:0 0 12px}
.privacy-content .privacy-state{margin:16px 0 10px;padding:9px 12px;border-radius:7px;background:#e8eee3;color:#32523c;font-weight:600}
.privacy-content>.utility-actions{gap:8px;margin-bottom:16px}
.privacy-content details{margin:0 0 14px;padding:12px 0;border-block:1px solid var(--line)}
.privacy-content summary{cursor:pointer;font-weight:600}
.privacy-content details[open] summary{margin-bottom:10px}
.privacy-content details .field{max-width:210px;margin-bottom:8px}
.privacy-content details p,.privacy-content details ol{margin:6px 0}
.privacy-content details ol{padding-inline-start:19px}
.privacy-content details li+li{margin-top:4px}
.privacy-content>.hint:last-child{margin-bottom:0;font-size:11px}
@media screen and (max-width:900px){.privacy-label{display:none}}
.preview-order{position:absolute}
.preview-order-actions{
  position:absolute;top:2px;right:2px;display:flex;gap:2px;padding:2px;
  border:1px solid #bdcbb2;border-radius:7px;background:var(--paper);
  box-shadow:0 2px 6px #263d3420;opacity:0;pointer-events:none;
}
.preview-order:hover .preview-order-actions,.preview-order:focus-within .preview-order-actions{opacity:1;pointer-events:auto}
.preview-order button{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:4px;background:transparent}
.preview-order button:hover{background:#dfe9d5}
.preview-order button[data-shift="-1"] img{transform:rotate(-90deg)}
.preview-order button[data-shift="1"] img{transform:rotate(90deg)}
@media (hover:none),(pointer:coarse){
  .preview-order-actions{opacity:1;pointer-events:auto}
  .preview-order button{width:40px;height:40px}
}
.working-space[data-pattern="grid"],.working-space[data-pattern="lines"]{
  background-size:6mm 6mm;
  background-position:0 5mm;
}
.working-space[data-pattern="grid"]{
  background-image:linear-gradient(to right,#cdd5c9 .2mm,transparent .2mm),linear-gradient(to bottom,#cdd5c9 .2mm,transparent .2mm);
}
.working-space[data-pattern="lines"]{background-image:linear-gradient(to bottom,#cdd5c9 .2mm,transparent .2mm)}
.working-space[data-pattern="blank"]{background-image:none}
@media screen and (max-width:850px){.footer-lot-long{display:none}}
@media screen and (max-width:560px){.selection-bar>.footer-project{flex-direction:column;align-items:flex-start;gap:2px}.footer-pill{font-size:9px;padding:3px 4px}.footer-pill svg{width:12px;height:12px}}
.masthead-actions{display:flex;align-items:center;gap:6px;flex:none}
.code-form{display:flex;align-items:center;gap:5px;position:relative;min-width:0}
.code-form label{font-size:11px;font-weight:700;color:var(--green)}
#lot-input{width:clamp(105px,16vw,220px);min-width:0;height:34px;border:1px solid #bdcbb2;border-radius:6px;padding:5px 7px;background:var(--white);color:var(--ink);font-size:12px}
#lot-input[aria-invalid=true]{border-color:#a24635}
#code-status:not(:empty){position:absolute;z-index:20;top:calc(100% + 4px);right:0;width:max-content;max-width:min(250px,80vw);padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);font-size:11px;box-shadow:0 2px 6px #263d3420}
.templates-tab{position:fixed;z-index:15;right:0;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;border:1px solid #bdcbb2;border-right:0;border-radius:8px 0 0 8px;padding:12px 7px;background:#e3ecdc;color:var(--green);font-size:12px;font-weight:700}
#templates-open:active{transform:translateY(-50%)}
.templates-tab:hover{background:#d7e7cf}
#lot-dialog.templates-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(400px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:12px 0 0 12px}
@media screen and (min-width:561px){
  .step-track>.workspace,.step-track>.preview{grid-template-columns:clamp(200px,22vw,280px) minmax(0,1fr);gap:16px}
}
@media screen and (min-width:761px){.app-shell{padding-right:38px}}
@media screen and (max-width:760px){
  .app-shell,.app-shell.show-preview{grid-template-rows:106px minmax(0,1fr) auto}
  .masthead{grid-template-rows:30px 34px auto}
  .masthead .masthead-actions{grid-column:1/-1;grid-row:2;justify-content:space-between;min-width:0}
  .masthead .edition{grid-row:3}
  .code-form{flex:1}
  #lot-input{flex:1;width:0}
  .step-viewport{margin-right:17px}
  .templates-tab{padding-inline:5px}
}
.ui-icon{display:inline-block;width:16px;height:16px;flex:none;vertical-align:middle}
.footer-pill{min-height:34px;justify-content:center;gap:5px;padding:5px 8px;line-height:1}
.history-close .ui-icon,.selection-close .ui-icon{display:block;margin:auto}
#v4v-dialog{width:min(780px,calc(100vw - 32px))}
#v4v-dialog .history-heading{padding:22px 26px 12px;border:0}
#v4v-dialog h2{font-size:25px}
#v4v-dialog .history-close{background:transparent;border:0}
.v4v-content{padding:0 26px 26px;color:#505d4c}
.v4v-content p{margin:0 0 8px}
.v4v-content a:not(.v4v-qr){text-underline-offset:2px}
.v4v-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;font-size:12px;line-height:1.65}
.v4v-intro-copy label{display:block;margin-top:12px;font-size:10px}
.v4v-address-row{display:flex;align-items:center;gap:4px}
#v4v-address{width:31ch;min-width:0;max-width:100%;padding:2px 0;background:transparent;border:0;color:var(--ink);font:inherit}
#v4v-copy{background:transparent;color:inherit;border-radius:4px;padding:5px}
#v4v-copy:hover{background:#e8ede2}
.v4v-qr{display:block;align-self:start;padding:8px;border:1px solid var(--line);border-radius:6px;background:white}
.v4v-qr img{display:block;width:110px;height:auto}
.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;line-height:1.6}
.project-grid h3{font-size:11px;color:var(--ink);margin:0 0 7px}
.project-author{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px}
.project-author>img{width:128px;height:128px;border-radius:5px;object-fit:cover}
.project-grid .ui-icon{width:12px;height:12px}
.project-privacy{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.project-credits{border-left:1px solid var(--line);padding-left:24px}
.project-credits h3:not(:first-child){margin-top:13px}
.credit-list{list-style:none;padding:0;margin:0}
.credit-list li+li{margin-top:7px}
#bank-feedback{margin:7px 0 0;font-size:11px;line-height:1.35;color:var(--green)}
#bank-feedback:empty{display:none}
#bank-feedback[data-kind=error]{color:#83442e}
.selection-bar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:12px;row-gap:0;padding:6px 0}
.selection-bar>.footer-navigation{grid-area:1/1;justify-self:start;width:auto;gap:8px}
.review-step{display:grid;justify-items:center}
.selection-summary{margin:0;color:var(--muted);font-size:9px;line-height:1.2;font-variant-numeric:tabular-nums}
.footer-print{display:flex;align-items:center}
.footer-print button{padding:8px 10px;font-size:11px;white-space:nowrap}
#print-exercises{border-start-end-radius:0;border-end-end-radius:0}
#print-exercises .ui-icon{display:none;filter:invert(1)}
#print-options-toggle{width:32px;padding-inline:0;border-start-start-radius:0;border-end-start-radius:0;border-inline-start-color:var(--paper)}
.footer-print button:focus-visible{position:relative;z-index:1}
.print-options{width:max-content;max-width:calc(100vw - 24px);padding:5px;border-radius:8px}
.print-options button{width:100%;min-height:34px;padding:7px 10px;border-radius:5px;background:transparent;color:var(--green);text-align:left;font-size:11px}
.print-options button:hover,.print-options button:focus-visible{background:#e7ecdf}
.selection-bar>.footer-project{grid-area:1/3}
.selection-bar .umbrella-project{--umbrella-accent:#b84f34;display:block;grid-area:1/2;justify-self:center;margin:0;white-space:nowrap;font-size:11px}
.umbrella-project .umbrella-brand{display:inline-flex;align-items:center;gap:5px;margin-left:3px;vertical-align:middle;color:#234d43;font:700 15px/1 Georgia,'Times New Roman',serif;letter-spacing:-.5px;text-decoration:none}
.umbrella-brand svg{width:22px;height:22px;flex:none}
.umbrella-brand .umbrella-dot{color:var(--umbrella-accent)}
.umbrella-project .umbrella-brand:hover{text-decoration:underline;text-underline-offset:3px}
@media screen and (max-width:800px){
  #print-exercises{width:36px;padding-inline:0}
  #print-exercises span{display:none}
  #print-exercises .ui-icon{display:inline-block}
}
@media screen and (max-width:620px){
  .selection-bar{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding:4px 0}
  .selection-bar>.footer-project{grid-area:1/2}
  .selection-bar .umbrella-project{grid-area:2/1/3/3}
  .selection-bar>.footer-navigation{gap:5px}
  .footer-print button{min-height:36px}
}
@media screen and (max-width:760px){.masthead .footer-pill{position:relative;min-height:34px}}
@media screen and (max-width:560px){
  .masthead-actions .help-label{display:none}
  .selection-bar>.footer-project{align-self:center;flex-flow:row nowrap;align-items:center;gap:4px}
  #v4v-open{padding-inline:4px}
  #v4v-open .ui-icon{width:12px;height:12px}
  #v4v-dialog .history-heading{padding:16px 18px 10px}.v4v-content{padding:0 18px 18px}
  .v4v-intro,.project-grid{grid-template-columns:1fr;gap:12px}
  .v4v-qr{justify-self:start}.v4v-qr img{width:96px}
  .project-author>img{width:96px;height:96px}
  .project-credits{border-left:0;padding:12px 0 0;border-top:1px solid var(--line)}
}
