.freq-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}.freq-dot.freq-always{background:#a855f7}.freq-dot.freq-often{background:#22c55e}.freq-dot.freq-sometimes{background:#f59e0b}.freq-legend{display:flex;gap:var(--spacing-3);margin-top:var(--spacing-2);font-size:10px;color:var(--color-text-muted)}.freq-legend-item{display:flex;align-items:center;gap:4px}.arith-canvas{display:flex;flex-direction:column;gap:var(--spacing-3)}.arith-canvas__page-nav{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);flex-wrap:wrap}.compact-question{display:flex;align-items:flex-start;gap:var(--spacing-3);padding:var(--spacing-3) 0;border-bottom:1px solid var(--color-border)}.compact-question:last-child{border-bottom:none}.compact-q-text{font-size:1.2rem;color:var(--color-text-primary)}.compact-q-number{font-size:var(--font-size-sm);font-weight:700;color:var(--color-text-muted);background:var(--color-surface);padding:4px 8px;border-radius:var(--radius-sm);min-width:2rem;text-align:center;flex-shrink:0}.compact-answer-inline{font-size:1.2rem;font-weight:700;color:#ef4444;white-space:nowrap}.compact-info-tags{margin-top:0;display:flex;flex-wrap:wrap;gap:4px}.compact-tag{font-size:10px;padding:1px 6px;border-radius:var(--radius-sm);font-weight:500}.compact-tag.tag-year{background:var(--color-accent-subtle);color:var(--color-accent-dark)}.compact-tag.tag-freq-always{background:rgba(168,85,247,.15);color:#a855f7}.compact-tag.tag-freq-often{background:rgba(34,197,94,.15);color:var(--color-success)}.compact-tag.tag-freq-sometimes{background:rgba(245,158,11,.15);color:var(--color-warning)}.compact-tag.tag-code{background:var(--color-surface);color:var(--color-text-muted)}.compact-marks{font-size:var(--font-size-xs);color:var(--color-text-muted);flex-shrink:0}.compact-question-meta{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-2);flex-shrink:0}.arith-question-qr{display:block;background:#ffffff;border:1px solid rgba(107,114,128,.35);border-radius:var(--radius-sm)}.arith-question-qr-link{display:inline-flex;text-decoration:none}.arith-question-qr--compact{width:64px;height:64px;padding:4px}.worksheet-compact-grid{align-content:start}.worksheet-page .compact-question{border-bottom:1px solid #e5e7eb}.worksheet-page .compact-q-text{color:#111827}.worksheet-page .compact-q-number{background:#f3f4f6;color:#374151}.worksheet-page .compact-answer-inline{color:#b91c1c}.worksheet-page .compact-marks{color:#6b7280}.worksheet-page .compact-tag.tag-code{background:#f3f4f6;color:#4b5563}.sats-paper{--sats-square-size:22px;display:flex;flex-direction:column;gap:var(--spacing-3)}.sats-question-row{display:grid;grid-template-columns:calc(var(--sats-square-size) * 3) calc(var(--sats-square-size) * 21) calc(var(--sats-square-size) * 3);border:1px solid #6b7280;background:#ffffff}.sats-question-row.one-mark{min-height:calc(var(--sats-square-size) * 8)}.sats-question-row.two-mark{min-height:calc(var(--sats-square-size) * 12)}.sats-col{min-width:0}.sats-col-meta{border-right:1px solid #6b7280;background:#f3f4f6;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:var(--spacing-3)}.sats-q-number{font-size:2rem;font-weight:var(--font-weight-bold);line-height:1;color:var(--color-brand-blue-dark)}.sats-method-label{margin-top:auto;margin-bottom:var(--spacing-4);padding:0 var(--spacing-2);text-align:center;line-height:1.2;font-size:1.9rem;font-weight:var(--font-weight-semibold);color:#1f2937}.sats-col-work{position:relative;display:flex;flex-direction:column}.sats-q-prompt{min-height:calc(var(--sats-square-size) * 3);padding:var(--spacing-2) var(--spacing-4);display:flex;align-items:center;font-family:Lexend,Inter,sans-serif;font-size:1.6rem;color:#111827;border-bottom:1px solid #d1d5db;background:#ffffff}.sats-q-prompt sup{font-size:.75em;vertical-align:super;line-height:0}.sats-question-row.two-mark .sats-q-prompt{background-image:linear-gradient(#d1d5db 1px,transparent 0),linear-gradient(90deg,#d1d5db 1px,transparent 0);background-size:var(--sats-square-size) var(--sats-square-size)}.sats-inline-tags{position:absolute;top:var(--spacing-2);right:var(--spacing-2);display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;z-index:4}.tag-facility-easy{background:rgba(34,197,94,.15)!important;color:#16a34a!important}.tag-facility-medium{background:rgba(245,158,11,.15)!important;color:#d97706!important}.tag-facility-hard{background:rgba(239,68,68,.15)!important;color:#dc2626!important}.sats-working-grid{width:100%;flex:1;min-height:calc(var(--sats-square-size) * 5);background-color:#ffffff;background-image:linear-gradient(#d1d5db 1px,transparent 0),linear-gradient(90deg,#d1d5db 1px,transparent 0);background-size:var(--sats-square-size) var(--sats-square-size);position:relative;padding:var(--spacing-2)}.sats-question-row.two-mark .sats-working-grid{min-height:calc(var(--sats-square-size) * 9)}.sats-answer-box{position:absolute;right:var(--sats-square-size);bottom:var(--sats-square-size);width:calc(var(--sats-square-size) * 5);height:calc(var(--sats-square-size) * 2);border:2px solid var(--color-brand-blue-dark);background:#ffffff;display:flex;align-items:center;justify-content:center;font-family:Lexend,Inter,sans-serif;font-weight:var(--font-weight-bold);font-size:1.1rem;color:#1f2937}.sats-inline-answer-reveal{position:absolute;left:var(--spacing-3);bottom:var(--spacing-3);background:#ffffff;border:1px solid #d1d5db;border-radius:var(--radius-sm);padding:2px var(--spacing-2);font-size:var(--font-size-xs);color:#7f1d1d}.sats-question-row.inline-answer .missing-box{width:calc(var(--sats-square-size) * 5);height:calc(var(--sats-square-size) * 2);border:2px solid var(--color-brand-blue-dark);background:#ffffff;border-radius:0}.sats-col-marks{border-left:1px solid #6b7280;background:var(--color-brand-blue-lightest);display:flex;justify-content:center;align-items:flex-end}.sats-mark-panel{margin-bottom:var(--spacing-3);display:flex;flex-direction:column;align-items:center;gap:var(--spacing-1)}.sats-mark-box{width:calc(var(--sats-square-size) * 1.6);height:calc(var(--sats-square-size) * 1.6);border:2px solid #6b7280;background:#ffffff}.sats-mark-text{font-size:1.2rem;font-weight:var(--font-weight-semibold);color:#1f2937}.sats-question-row .frac-line{border-top-color:#111827}.sats-question-row .frac-stack{color:#111827}.sats-question-row .missing-box{border-color:var(--color-brand-blue-dark);background:#ffffff}.arith-sats-paper{--arith-sats-square-size:23px;--arith-sats-line:#6b7280;--arith-sats-grid-line:#c8ced9;--arith-sats-blue:var(--color-brand-blue-dark);gap:var(--spacing-5)}.arith-sats-paper .arith-sats-row{box-sizing:border-box;width:calc(var(--arith-sats-square-size) * 27);max-width:100%;margin:0 auto;border:1px solid var(--arith-sats-line);display:grid;grid-template-columns:calc(var(--arith-sats-square-size) * 3) calc(var(--arith-sats-square-size) * 21) calc(var(--arith-sats-square-size) * 3);background:#ffffff}.arith-sats-paper .arith-sats-row.one-mark,.arith-sats-paper .arith-sats-row.two-mark{min-height:0;height:calc(var(--arith-sats-square-size) * 12)}.arith-sats-paper .arith-sats-col-meta{padding-top:0;border-right:1px solid var(--arith-sats-line);background:#f3f4f6;display:flex;flex-direction:column}.arith-sats-paper .arith-sats-meta-top{height:calc(var(--arith-sats-square-size) * 3);display:flex;align-items:center;justify-content:center}.arith-sats-paper .arith-sats-meta-bottom{flex:1;display:flex;align-items:flex-end;justify-content:center;padding:calc(var(--arith-sats-square-size) * .45) calc(var(--arith-sats-square-size) * .3)}.arith-sats-paper .arith-sats-q-number{color:var(--arith-sats-blue);font-size:1.55rem}.arith-sats-paper .arith-sats-method-label{margin:0;padding:0;text-align:center;line-height:1.2;font-size:.86rem;color:#1f2937}.arith-sats-paper .arith-sats-col-work{border-right:1px solid var(--arith-sats-line)}.arith-sats-paper .arith-sats-q-prompt{box-sizing:border-box;min-height:0;height:calc(var(--arith-sats-square-size) * 3);border-bottom:1px solid var(--arith-sats-line);padding:0 calc(var(--arith-sats-square-size) * .55);font-size:1.55rem;line-height:1.05}.arith-sats-paper .arith-sats-prompt-inner{display:flex;align-items:center;gap:calc(var(--arith-sats-square-size) * .45);width:100%;min-width:0;height:100%}.arith-sats-paper .arith-sats-prompt-text{min-width:0;flex:1;display:flex;align-items:center}.arith-sats-paper .arith-sats-inline-tags{top:calc(var(--arith-sats-square-size) * 3 + 2px);right:2px}.arith-sats-paper .arith-sats-working-grid{box-sizing:border-box;min-height:0;height:calc(var(--arith-sats-square-size) * 9);padding:0;background-color:#ffffff}.arith-sats-paper .arith-sats-row.two-mark .arith-sats-q-prompt,.arith-sats-paper .arith-sats-row.two-mark .arith-sats-working-grid,.arith-sats-paper .arith-sats-working-grid{background-image:linear-gradient(var(--arith-sats-grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--arith-sats-grid-line) 1px,transparent 1px);background-size:var(--arith-sats-square-size) var(--arith-sats-square-size)}.arith-sats-paper .arith-sats-row.two-mark .arith-sats-working-grid{height:calc(var(--arith-sats-square-size) * 9)}.arith-sats-paper .arith-sats-answer-box{right:calc(var(--arith-sats-square-size) * 1);bottom:calc(var(--arith-sats-square-size) * 1);width:calc(var(--arith-sats-square-size) * 5);height:calc(var(--arith-sats-square-size) * 2);border-color:var(--arith-sats-blue);background:#ffffff;font-size:1.2rem}.arith-sats-paper .arith-sats-inline-answer-reveal{left:calc(var(--arith-sats-square-size) * .5);bottom:calc(var(--arith-sats-square-size) * .5)}.arith-sats-paper .arith-sats-row.inline-answer .missing-box{width:calc(var(--arith-sats-square-size) * 5);height:calc(var(--arith-sats-square-size) * 2);border:2px solid var(--arith-sats-blue);background:#ffffff;border-radius:0}.arith-sats-paper .arith-sats-col-marks{border-left:0;background:var(--color-brand-blue-lightest);display:flex;flex-direction:column;align-items:stretch;box-shadow:inset -1px 0 0 var(--arith-sats-line)}.arith-sats-paper .arith-sats-marks-top{height:calc(var(--arith-sats-square-size) * 3);display:flex;align-items:center;justify-content:center;padding:2px}.arith-sats-paper .arith-sats-marks-bottom{flex:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:calc(var(--arith-sats-square-size) * .55)}.arith-sats-paper .arith-sats-mark-panel{margin-bottom:0;gap:calc(var(--arith-sats-square-size) * .2)}.arith-question-qr--sats-marks{width:calc(var(--arith-sats-square-size) * 2.55);height:calc(var(--arith-sats-square-size) * 2.55);padding:2px}.arith-sats-paper .arith-sats-mark-box{width:calc(var(--arith-sats-square-size) * 1.7);height:calc(var(--arith-sats-square-size) * 1.7);border:2px solid var(--arith-sats-line)}.arith-sats-paper .arith-sats-mark-text{font-size:.86rem}.question-font{font-family:Lexend,Inter,sans-serif}.working-grid{background-image:linear-gradient(rgba(0,0,0,.07) 1px,transparent 0),linear-gradient(90deg,rgba(0,0,0,.07) 1px,transparent 0);background-size:20px 20px}.sats-input-box{border:2px solid var(--color-accent);background-color:var(--color-bg-tertiary);height:2.5rem;min-width:6rem;padding:0 .5rem;border-radius:2px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#ef4444;font-size:1.1rem;font-family:Lexend,sans-serif}.missing-box{display:inline-block;width:2rem;height:2rem;border:2px solid var(--color-text-muted);background:var(--color-surface);border-radius:2px;vertical-align:middle}.frac-stack{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .15em;line-height:1.2}.frac-line{display:block;width:100%;height:0;align-self:stretch;border-top:2px solid;background:none;margin:2px 0}.mixed-wrapper{display:inline-flex;align-items:center;gap:3px}.whole-num{font-size:1.1em;line-height:1}.question-card{break-inside:avoid;page-break-inside:avoid}@media print{.compact-question{break-inside:avoid!important;page-break-inside:avoid!important}.compact-grid{display:block!important}.sats-question-row{break-inside:avoid!important;page-break-inside:avoid!important}.sats-answer-box,.sats-col-marks,.sats-question-row.two-mark .sats-q-prompt,.sats-working-grid{-webkit-print-color-adjust:exact;print-color-adjust:exact}.sats-answer-box{border-color:var(--color-brand-blue-dark)!important;background-color:#ffffff!important}.frac-line{border-top-color:black!important;background:none!important}.arith-sats-paper{--arith-sats-square-size:23px;gap:var(--spacing-5)}}@media screen and (max-width:768px){.arith-sats-paper{--arith-sats-square-size:12px;gap:var(--spacing-3)}.arith-sats-paper .arith-sats-q-prompt{font-size:.95rem}.arith-sats-paper .arith-sats-q-number{font-size:1.45rem}.arith-sats-paper .arith-sats-method-label{font-size:.9rem}.sats-paper{--sats-square-size:14px}.sats-q-prompt{font-size:1.05rem;padding:var(--spacing-2) var(--spacing-3)}.sats-q-number{font-size:1.2rem}.sats-method-label{font-size:.9rem;margin-bottom:var(--spacing-2)}.compact-question{flex-wrap:wrap}.compact-q-text{font-size:1rem}}