:root { --gc-blue:#149bd7; --gc-dark:#071018; --gc-ink:#102131; --gc-muted:#526c7a; --gc-line:#c9dbe6; --gc-green:#157347; --gc-amber:#8a6100; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
.gc-visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
html,body { min-height:100%; }
body { margin:0; color:var(--gc-ink); background:#edf5f9; font-family:Arial,Helvetica,sans-serif; }
button,input,select { font:inherit; }
.app { min-height:100vh; display:grid; grid-template-rows:auto minmax(0,1fr); }
.topbar { min-height:72px; display:grid; grid-template-columns:minmax(250px,1fr) auto; align-items:center; gap:16px; padding:11px 18px; color:#fff; background:var(--gc-dark); }
.brand { min-width:0; display:flex; align-items:center; gap:14px; }.brand-logo { display:inline-flex; border-radius:6px; }.brand-logo img { width:142px; height:auto; display:block; }.brand h1 { margin:0; color:#fff; font-size:clamp(1.35rem,2vw,2rem); line-height:1.05; }
.top-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }.icon-button,.home-button { min-height:48px; border:2px solid #263d51; border-radius:8px; color:#fff; background:#122436; font-weight:800; cursor:pointer; }.icon-button { width:48px; min-width:48px; display:inline-grid; place-items:center; padding:0; }.home-button { display:inline-flex; align-items:center; justify-content:center; padding:0 14px; text-decoration:none; }.icon-button:hover,.icon-button:focus-visible,.home-button:hover,.home-button:focus-visible { border-color:#8fd8f3; color:#06111a; background:var(--gc-blue); }.icon { width:24px; height:24px; display:block; pointer-events:none; }
.gc-tool { min-height:calc(100vh - 72px); display:grid; grid-template-rows:auto minmax(0,1fr); background:#edf5f9; }
.gc-toolbar { width:100%; max-width:100vw; min-height:68px; display:flex; flex-wrap:nowrap; align-items:end; justify-content:center; gap:6px; padding:10px 16px; overflow-x:auto; box-sizing:border-box; border-bottom:1px solid var(--gc-line); background:#fff; }.gc-mode-control { width:110px; flex:0 0 auto; }.gc-toolbar-settings { flex:0 0 auto; display:flex; flex-wrap:nowrap; align-items:end; gap:6px; }.gc-toolbar-settings .gc-select-field:has([data-gc="highest-row"]),.gc-toolbar-settings .gc-select-field:has([data-gc="lowest-row"]) { width:180px; }.gc-toolbar-settings .gc-select-field:has([data-gc="challenge-set"]) { width:155px; }.gc-toolbar-settings .gc-select-field:has([data-gc="counter-count"]) { width:120px; }.gc-toolbar-settings .gc-select-field:has([data-gc="goal"]) { width:160px; }.gc-toolbar-settings .gc-select-field:has([data-gc="parity"]) { width:105px; }
.gc-choice-field { min-width:210px; margin:0; padding:0; border:0; }.gc-choice-field legend,.gc-select-field span { display:block; margin-bottom:5px; color:var(--gc-muted); font-size:.82rem; font-weight:800; }.gc-choice-row { display:flex; gap:8px; }.gc-choice-row label { min-height:48px; display:inline-flex; align-items:center; padding:7px 12px; border:1px solid #9fb8c8; border-radius:8px; font-weight:800; cursor:pointer; }.gc-choice-row label:has(input:checked) { border-color:#087eaf; color:#fff; background:#087eaf; }.gc-choice-row input { margin-right:7px; accent-color:#006b99; }
.gc-select-field select { width:100%; min-width:0; min-height:48px; padding:8px 8px; border:1px solid #9fb8c8; border-radius:8px; color:var(--gc-ink); background:#fff; font-weight:800; }.gc-check-field { min-height:48px; display:flex; align-items:center; gap:7px; padding:0 4px; color:var(--gc-muted); font-weight:800; }.gc-check-field input { width:20px; height:20px; accent-color:#006b99; }
.gc-model-menu { position:relative; align-self:flex-end; }.gc-model-menu>summary { min-height:48px; display:flex; align-items:center; padding:0 15px; border:1px solid #9fb8c8; border-radius:8px; background:#fff; font-weight:800; cursor:pointer; list-style:none; }.gc-model-menu>summary::-webkit-details-marker { display:none; }.gc-model-menu>summary::after { content:"▾"; margin-left:10px; color:var(--gc-muted); }.gc-model-menu[open]>summary { border-color:#087eaf; box-shadow:0 0 0 3px rgba(20,155,215,.18); }.gc-model-menu:not([open])>.gc-model-menu-panel { display:none; }.gc-model-menu-panel { position:absolute; z-index:20; top:calc(100% + 7px); left:0; width:min(310px,calc(100vw - 24px)); margin:0; padding:10px; border:1px solid #9fb8c8; border-radius:10px; background:#fff; box-shadow:0 14px 34px rgba(7,32,48,.2); }.gc-model-menu-panel label { min-height:44px; display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:7px; font-weight:800; cursor:pointer; }.gc-model-menu-panel label:hover,.gc-model-menu-panel label:focus-within { background:#edf7fb; }.gc-model-menu-panel label:has(input:disabled) { color:#78909d; cursor:not-allowed; }.gc-model-menu-panel input { width:20px; height:20px; flex:0 0 auto; accent-color:#087eaf; }.gc-model-menu-note { margin:7px 5px 2px; color:var(--gc-muted); font-size:.78rem; font-weight:700; line-height:1.35; }
.gc-toolbar-actions { flex:0 0 auto; display:flex; }.gc-action-group { min-width:max-content; display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:6px; }.gc-action-group>.gc-model-menu { align-self:auto; flex:0 0 auto; }.gc-action-group .gc-model-menu>summary { padding-inline:11px; font-size:.9rem; }.gc-button { min-height:48px; padding:0 10px; border:1px solid #9fb8c8; border-radius:8px; color:var(--gc-ink); background:#fff; font-size:.9rem; font-weight:800; cursor:pointer; }.gc-button:hover,.gc-button:focus-visible { border-color:#006b99; box-shadow:0 0 0 3px rgba(20,155,215,.18); outline:0; }.gc-button.gc-primary { border-color:#087eaf; color:#fff; background:var(--gc-blue); }
.gc-worksheet-button { margin-left:4px; border-color:#087eaf; color:#fff; background:#087eaf; }
.gc-worksheet-button:hover,.gc-worksheet-button:focus-visible { color:#fff; background:#066f9c; }
.gc-chart-host .gattegno-interactive,.gc-chart-host .gattegno-model-host,.gc-chart-host .question-visual { height:100%; }
.gc-chart-host .gattegno-interactive,.gc-chart-host .gattegno-model-host { display:grid; grid-template-rows:minmax(0,1fr); }
.gc-workspace { min-width:0; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,360px); gap:14px; padding:14px; }.gc-model-panel,.gc-side-panel { min-width:0; min-height:0; border:1px solid var(--gc-line); border-radius:12px; background:#fff; box-shadow:0 8px 22px rgba(7,32,48,.07); }.gc-model-panel { display:grid; grid-template-rows:minmax(0,1fr); overflow:hidden; padding:12px; }.gc-model-panel[data-companion="on"] { grid-template-rows:minmax(250px,1fr) minmax(150px,.45fr); gap:10px; }.gc-chart-host { min-height:390px; display:grid; place-items:stretch; overflow:auto; }.gc-model-panel[data-companion="on"] .gc-chart-host { min-height:250px; }.gc-chart-host .gattegno-interactive,.gc-chart-host .gattegno-model-host,.gc-chart-host .question-visual { min-height:100%; }.gc-chart-host .question-visual { width:100%; margin:0; display:grid; grid-template-rows:minmax(0,1fr); }.gc-chart-host .diagram-frame,.gc-chart-host svg { width:100%; height:100%; min-height:390px; }.gc-model-panel[data-companion="on"] .gc-chart-host .diagram-frame,.gc-model-panel[data-companion="on"] .gc-chart-host svg { min-height:250px; }.gc-chart-host figcaption { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; white-space:nowrap; }.gc-chart-host .gattegno-relationship:empty { display:none; }.gc-key-help { margin:8px 4px 0; color:var(--gc-muted); font-size:.82rem; font-weight:700; }
.gc-companion-card { min-width:0; min-height:0; display:grid; grid-template-rows:auto auto minmax(0,1fr); padding:9px 11px; border:1px solid #b9d3df; border-radius:9px; background:#f7fbfd; overflow:hidden; }.gc-companion-heading { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px; }.gc-companion-heading h3 { margin:0; font-size:1rem; }.gc-companion-heading a { flex:0 0 auto; color:#006b99; font-size:.82rem; font-weight:800; }.gc-companion-heading a:focus-visible { border-radius:4px; outline:3px solid rgba(20,155,215,.28); outline-offset:3px; }.gc-companion-note { align-self:center; margin:8px 0 0; color:var(--gc-muted); font-weight:800; line-height:1.35; }.gc-companion-host { min-width:0; min-height:0; display:grid; place-items:stretch; overflow:hidden; }.gc-companion-host:empty { display:none; }.gc-companion-host .question-visual { min-width:0; min-height:0; width:100%; height:100%; display:grid; grid-template-rows:minmax(0,1fr); margin:0; }.gc-companion-host .diagram-frame,.gc-companion-host svg { min-width:0; min-height:0; width:100%; height:100%; }.gc-companion-host figcaption { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.gc-side-panel { overflow:auto; padding:14px; }.gc-prompt-card { margin-bottom:12px; padding:13px 14px; border-radius:9px; color:#fff; background:#073047; }.gc-eyebrow { margin:0 0 5px; color:#8fd8f3; font-size:.76rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }.gc-prompt-card h2 { margin:0 0 9px; color:#fff; font-size:clamp(1.08rem,2vw,1.4rem); }.gc-prompt-card ul { margin:0; padding-left:20px; line-height:1.42; }.gc-prompt-card li+li { margin-top:5px; }
.gc-working-card,.gc-progress-card { margin-bottom:10px; padding:12px; border:1px solid var(--gc-line); border-radius:9px; }.gc-working-card h3,.gc-progress-card h3 { margin:0 0 8px; font-size:1rem; }.gc-total { margin:0; color:#087eaf; font-size:clamp(1.8rem,2.5vw,2.25rem); font-weight:900; letter-spacing:-.02em; line-height:1.05; white-space:nowrap; }.gc-expanded { min-height:1.35em; margin:7px 0 10px; color:var(--gc-muted); font-weight:800; overflow-wrap:anywhere; }.gc-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:0; }.gc-facts div { min-width:0; padding:7px; border-radius:7px; background:#f2f7fa; text-align:center; }.gc-facts dt { color:var(--gc-muted); font-size:.7rem; font-weight:800; }.gc-facts dd { margin:3px 0 0; font-weight:900; text-transform:capitalize; }.gc-progress-card { border-color:#d4b15a; background:#fffaf0; }.gc-progress-card p { margin:0; color:#704e00; font-weight:800; line-height:1.4; }.gc-hint { min-height:1.2em; margin:0 0 10px; padding:10px 12px; border-left:5px solid #d4a000; border-radius:7px; color:#704e00; background:#fff8e7; font-weight:800; line-height:1.4; }.gc-hint:empty { display:none; }.gc-feedback { min-height:54px; display:flex; align-items:center; margin:0; padding:10px 12px; border-left:5px solid #6f8794; border-radius:7px; background:#f2f7fa; font-weight:800; line-height:1.4; }.gc-feedback[data-tone="success"] { border-left-color:var(--gc-green); color:#0b5934; background:#eef9f3; }.gc-feedback[data-tone="warning"] { border-left-color:#b07a00; color:#704e00; background:#fff8e7; }
.gc-tool>.gc-print-surface { display:none; }.gc-instructions { width:min(720px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; border:0; border-radius:11px; color:var(--gc-ink); box-shadow:0 24px 70px rgba(0,0,0,.35); }.gc-instructions::backdrop { background:rgba(4,19,29,.62); }.gc-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 17px; color:#fff; background:var(--gc-dark); }.gc-dialog-header h2 { margin:0; }.gc-dialog-body { padding:17px 20px; line-height:1.52; overflow:auto; }.gc-dialog-body h3 { margin-bottom:4px; }.gc-dialog-body p { margin-top:0; }
@media (prefers-reduced-motion:reduce) { .gc-tool * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media (min-width:901px) { .gc-tool { height:calc(100vh - 72px); overflow:hidden; } }
@media (max-width:900px) { .app { display:block; }.topbar { grid-template-columns:1fr; }.top-actions { justify-content:flex-start; flex-wrap:wrap; }.gc-toolbar { justify-content:flex-start; }.gc-model-menu>summary { justify-content:space-between; }.gc-workspace { grid-template-columns:1fr; }.gc-side-panel { order:1; overflow:visible; }.gc-model-panel { order:2; min-height:560px; }.gc-model-panel[data-companion="on"] { min-height:730px; grid-template-rows:minmax(500px,auto) minmax(180px,auto); }.gc-chart-host,.gc-chart-host .diagram-frame,.gc-chart-host svg,.gc-model-panel[data-companion="on"] .gc-chart-host,.gc-model-panel[data-companion="on"] .gc-chart-host .diagram-frame,.gc-model-panel[data-companion="on"] .gc-chart-host svg { min-height:500px; }.gc-tool { display:block; min-height:0; overflow-x:hidden; } }
@media (max-width:440px) { .brand h1 { font-size:1.2rem; }.brand-logo img { width:120px; }.gc-action-group { gap:4px; }.gc-action-group>.gc-model-menu { width:auto; }.gc-model-menu-panel { position:fixed; top:auto; right:8px; bottom:8px; left:8px; width:auto; max-height:calc(100vh - 16px); overflow:auto; }.gc-toolbar-actions .gc-button { min-width:44px; flex:0 0 auto; padding-inline:6px; font-size:.85rem; }.gc-workspace { padding:8px; }.gc-model-panel { min-height:490px; padding:6px; }.gc-model-panel[data-companion="on"] { min-height:640px; grid-template-rows:minmax(430px,auto) minmax(160px,auto); }.gc-chart-host { overflow-x:auto; }.gc-chart-host .question-visual { min-width:560px; }.gc-chart-host,.gc-chart-host .diagram-frame,.gc-chart-host svg,.gc-model-panel[data-companion="on"] .gc-chart-host,.gc-model-panel[data-companion="on"] .gc-chart-host .diagram-frame,.gc-model-panel[data-companion="on"] .gc-chart-host svg { min-height:430px; }.gc-companion-heading { align-items:flex-start; flex-direction:column; gap:5px; }.gc-companion-host .question-visual { min-width:0; }.gc-key-help { font-size:.76rem; }.gc-facts { grid-template-columns:1fr; } }
@media print {
  @page { size:A4 landscape; margin:8mm; }
  html,body { width:100%; height:auto!important; overflow:visible!important; background:#fff!important; }.topbar,.gc-toolbar,.gc-key-help,.gc-instructions,.gc-feedback,.classroom-tools-layer,.annotation-toolbar { display:none!important; }.app,.gc-tool,.gc-workspace { min-height:0!important; height:auto!important; }.gc-tool { display:block; background:#fff; }.gc-workspace { display:grid!important; grid-template-columns:minmax(0,1fr) 78mm; gap:4mm; padding:0; }.gc-model-panel,.gc-side-panel { height:145mm; overflow:hidden; border:1px solid #93a9b7; box-shadow:none; padding:4mm; break-inside:avoid; }.gc-side-panel { padding:3mm; }.gc-chart-host { min-height:125mm; overflow:hidden; }.gc-chart-host .diagram-frame,.gc-chart-host svg { min-height:118mm; }.gc-model-panel[data-companion="on"] { grid-template-rows:minmax(0,1fr) 43mm; gap:2mm; }.gc-model-panel[data-companion="on"] .gc-chart-host,.gc-model-panel[data-companion="on"] .gc-chart-host .diagram-frame,.gc-model-panel[data-companion="on"] .gc-chart-host svg { min-height:82mm; }.gc-companion-card { padding:2mm; }.gc-companion-heading a { display:none; }.gc-companion-heading h3 { font-size:10pt; }.gc-prompt-card { margin-bottom:2mm; padding:3mm; }.gc-prompt-card h2 { font-size:16pt; }.gc-total { font-size:18pt; white-space:normal; overflow-wrap:anywhere; }.gc-expanded { font-size:9.5pt; }.gc-facts { gap:1mm; }.gc-facts div { padding:1.5mm 1mm; }.gc-facts dt { font-size:7pt; }.gc-facts dd { font-size:9pt; overflow-wrap:anywhere; }.gc-tool>.gc-print-surface { position:fixed; left:8mm; right:8mm; bottom:5mm; display:flex!important; justify-content:space-between; align-items:end; border-top:1px solid #c7d7df; padding-top:2mm; color:var(--gc-muted); font-size:8pt; }.gc-print-surface .print-logo { width:34mm; height:auto; }
}
