/* The grid is semantic: each visible square is one maxlength=1 input. */
.admin-notebook-cell.is-selection-start{outline:3px solid #2563eb!important;outline-offset:-3px;position:relative;z-index:1}
.notebook-builder{margin:16px 0;padding:20px;background:#f6fbff;border:1px solid #9bcee7;border-radius:12px;min-width:0}.notebook-builder h3{margin:0 0 6px}.notebook-builder__tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.admin-notebook-grid{display:grid!important;grid-template-columns:repeat(var(--notebook-columns,40),24px)!important;grid-auto-flow:row;width:max-content!important;min-width:max-content!important;max-width:none!important;overflow:visible;background:#b9def1;gap:1px;padding:1px}.notebook-builder{overflow-x:auto}.admin-notebook-cell{box-sizing:border-box!important;width:24px!important;height:24px!important;min-width:24px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;text-align:center!important;background:#fff!important;font:16px/24px ui-monospace,SFMono-Regular,monospace!important}.admin-notebook-cell.is-answer{background:#fff1a8!important;box-shadow:inset 0 0 0 2px #e1a400}.notebook-builder.is-marking .admin-notebook-cell{cursor:crosshair}.student-notebook-grid{display:grid;grid-template-columns:repeat(var(--student-notebook-columns,40),24px)!important;width:max-content;max-width:none;overflow:auto;background:#b9def1;gap:1px;padding:1px}.notebook-text-cell,.notebook-answer-cell{box-sizing:border-box;width:24px;height:24px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff;text-align:center;font:16px/24px ui-monospace,SFMono-Regular,monospace}.notebook-answer-cell{outline:2px solid #1d78aa;outline-offset:-2px;background:#fffdf0}.notebook-answer-cell:focus{position:relative;outline:3px solid #2563eb;z-index:1}
.notebook.math{display:grid;grid-template-columns:repeat(12,31px);grid-auto-rows:31px;padding:0;width:max-content;min-width:0;min-height:93px;background:#d8e9f8;gap:1px}
.grid-cell{appearance:none;width:31px;height:31px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;text-align:center;background:#fff;font:23px/31px ui-monospace,SFMono-Regular,monospace}
.grid-cell:focus{position:relative;outline:3px solid #2563eb;z-index:1}
@media(max-width:600px){.notebook.math{grid-template-columns:repeat(10,27px);grid-auto-rows:27px}.grid-cell{width:27px;height:27px;font-size:19px;line-height:27px}}
.worksheet{margin:12px 0 18px;padding:18px;background:#fffdf7;border:1px solid #b7d9ea;border-radius:12px}.worksheet-kicker{margin:18px 0 12px;color:#0f5f86;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.worksheet-kicker:first-child{margin-top:0}.quantity-pills{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.quantity-pills span{background:#e0f4fb;border-radius:99px;padding:7px 12px;font-weight:700;color:#155e75}.place-value-table,.number-row-table,.composition-table{width:100%;border-collapse:collapse;background:white;table-layout:fixed}.place-value-table th,.number-row-table th,.composition-table th{background:#c9eef8;color:#155e75;font-weight:800}.place-value-table th,.place-value-table td,.number-row-table th,.number-row-table td,.composition-table th,.composition-table td{border:1px solid #64b9d1;padding:8px;text-align:center}.composition-table td:first-child{text-align:left}.place-cell,.row-cell,.composition-cell{margin:0!important;text-align:center;font:700 23px/1.2 ui-monospace,SFMono-Regular,monospace;border-radius:4px!important}.place-cell{max-width:70px;height:48px}.row-cell,.composition-cell{height:43px;min-width:0}.composition-cell{max-width:120px}.worksheet .muted{margin:12px 0 0}@media(max-width:600px){.worksheet{padding:12px}.place-value-table th,.place-value-table td,.number-row-table th,.number-row-table td,.composition-table th,.composition-table td{padding:5px;font-size:13px}.place-cell{max-width:48px}.row-cell,.composition-cell{font-size:18px}}
