:root{--blue:#0f6fc6;--blue2:#0a4fa0;--ink:#17324d;--muted:#63778c;--line:#cfe2f0;--orange:#f59a23;--orange2:#e77c0a;--green:#24a96b;--paper:#f4f9fd;--shadow:0 12px 30px rgba(26,72,112,.12)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Nunito,"Trebuchet MS",Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#eef7fc,#f7fbfe)}button,input,select{font:inherit}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;background:linear-gradient(135deg,#0f78cf,#0b55a6);color:#fff;box-shadow:0 5px 14px rgba(7,61,112,.22);z-index:5}.brand-kicker{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.84}.topbar h1{margin:2px 0 0;font-size:clamp(1.2rem,2.15vw,1.85rem);line-height:1.08}.top-actions{display:flex;gap:8px}.icon-btn{min-height:42px;padding:0 13px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-weight:900;cursor:pointer}.icon-btn:hover{background:rgba(255,255,255,.2)}
.modebar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:9px 14px;background:#fff;border-bottom:1px solid #d9e8f3;box-shadow:0 3px 10px rgba(45,84,119,.06);z-index:4}.mode-btn{min-height:44px;border:1px solid #c6dbeb;border-radius:13px;background:linear-gradient(180deg,#fff,#f0f7fc);color:#31536f;font-weight:900;cursor:pointer}.mode-btn.is-active{background:linear-gradient(180deg,#ffa52e,#ef820d);border-color:#e37806;color:#fff;box-shadow:0 6px 12px rgba(235,126,12,.22)}
.workspace{flex:1;display:grid;grid-template-columns:minmax(235px,295px) minmax(0,1fr);gap:14px;padding:14px;min-height:0}.control-panel{display:flex;flex-direction:column;gap:12px}.control-card{padding:14px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}.control-label{margin-bottom:10px;color:#0f6fc6;font-size:.78rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.range-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.range-presets button,.step-grid button,.compare-actions button,.direction-btn,.rhythm-dir{min-height:42px;border:1px solid #cbdfea;border-radius:12px;background:#f5faff;color:#214f72;font-weight:900;cursor:pointer}.range-presets button.is-active,.step-grid button.is-active,.direction-btn.is-active,.rhythm-dir.is-active{background:linear-gradient(180deg,#1c95e7,#1169c6);border-color:#1169c6;color:#fff}.big-number{display:grid;place-items:center;min-height:82px;border:2px solid #b9d9ed;border-radius:17px;background:linear-gradient(180deg,#fafdff,#edf7fd);color:#126ebd;font-size:2.8rem;font-weight:950}.tip{margin:10px 0 0;color:#708397;font-size:.78rem;line-height:1.38}.action-btn{width:100%;min-height:48px;margin-top:10px;border:0;border-radius:14px;color:#fff;font-weight:950;cursor:pointer;box-shadow:0 7px 14px rgba(30,92,143,.14)}.check,.run,.next{background:linear-gradient(180deg,#198ee1,#0f65bd)}.clear{background:linear-gradient(180deg,#f19c30,#df7510)}.feedback{min-height:34px;margin-top:9px;padding:8px 10px;border-radius:10px;font-size:.8rem;font-weight:850;line-height:1.25}.feedback:empty{padding:0}.feedback.ok{background:#e5f8ef;color:#117a4c}.feedback.no{background:#fff0ee;color:#ad3d30}.compare-numbers{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;text-align:center}.compare-numbers strong{display:grid;place-items:center;min-height:64px;border-radius:15px;background:#eef7ff;color:#126ebd;font-size:2rem}.compare-numbers span{font-weight:900;color:#7a8da0}.compare-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.compare-actions button{font-size:1.35rem}.field{display:grid;grid-template-columns:1fr 92px;gap:8px;align-items:center;margin:8px 0;color:#405e78;font-size:.82rem;font-weight:850}.field input,.field select{height:40px;border:1px solid #c7ddec;border-radius:10px;background:#fafdff;color:#173d5e;text-align:center;font-weight:900;outline:0}.direction-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.step-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sequence-box{min-height:44px;margin-top:10px;padding:9px;border-radius:12px;background:#f1f8fd;color:#265878;font-size:.8rem;font-weight:900;line-height:1.45;text-align:center}
.board-wrap{min-width:0;display:flex;flex-direction:column;gap:10px}.instruction-card{min-height:70px;padding:12px 18px;border:1px solid #f0c88f;border-radius:18px;background:linear-gradient(180deg,#fffaf3,#fff0d9);box-shadow:0 6px 16px rgba(156,96,25,.08)}.instruction-kicker{display:block;color:#c66a0c;font-size:.68rem;font-weight:950;letter-spacing:.09em}.instruction-card strong{display:block;margin-top:4px;color:#925111;font-size:clamp(1rem,1.6vw,1.35rem)}.math-chain{margin-top:10px;padding-top:9px;border-top:1px solid rgba(198,106,12,.20)}.math-chain-kicker{display:block;margin-bottom:5px;color:#b7630c;font-size:.62rem;font-weight:950;letter-spacing:.08em}.math-chain-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.math-chain-values{margin:0!important;min-width:0;color:#713d0b!important;font-size:clamp(.98rem,1.45vw,1.28rem)!important;line-height:1.35!important;letter-spacing:.01em;overflow-wrap:anywhere}.math-chain-rule{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 11px;border-radius:999px;background:#fff;color:#a25708;border:1px solid #efc57f;font-size:.78rem;font-weight:950;white-space:nowrap;box-shadow:0 2px 7px rgba(156,96,25,.06)}.numberline-card{flex:1;display:flex;flex-direction:column;min-height:430px;border:2px solid #b9daf0;border-radius:24px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.numberline-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:linear-gradient(180deg,#eaf7ff,#dff1fb);border-bottom:1px solid #c3deee}.zone-kicker{font-size:.68rem;font-weight:950;letter-spacing:.09em;color:#1172bd}.numberline-head h2{margin:2px 0 0;font-size:1rem}.marker-readout{display:grid;grid-template-columns:auto auto;align-items:center;gap:8px;padding:7px 10px;border-radius:12px;background:#1279c8;color:#fff}.marker-readout span{font-size:.7rem;font-weight:850;opacity:.86}.marker-readout strong{font-size:1.2rem}.numberline-stage{flex:1;min-height:330px;padding:10px;touch-action:none}.numberline-stage svg{display:block;width:100%;height:100%;min-height:330px;overflow:visible;user-select:none}.concept-strip{min-height:68px;display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px}.concept-strip>div{padding:10px 12px;border:1px solid var(--line);border-radius:17px;background:#fff;text-align:center;box-shadow:0 5px 14px rgba(30,76,116,.06)}.concept-strip span{display:block;color:#708397;font-size:.7rem;font-weight:850}.concept-strip strong{display:block;margin-top:4px;color:#146fbe;font-size:.94rem}.concept-main{background:linear-gradient(180deg,#fffaf3,#fff0d9)!important;border-color:#f2c88d!important}.concept-main strong{color:#c66a0c}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 16px;background:#e8f2f8;color:#60758a;border-top:1px solid #d0e1ec;font-size:.72rem;font-weight:800}.app-footer strong{color:#1c689f}[hidden]{display:none!important}
.tick-label{font:800 18px Nunito,Arial,sans-serif;fill:#47657d}.tick-label.major{font-size:22px;fill:#214c6e}.marker-label{font:950 22px Nunito,Arial,sans-serif;fill:#fff}.hop-label{font:900 18px Nunito,Arial,sans-serif;fill:#0f6fc6}.target-guide{stroke:#e97f0c;stroke-width:3;stroke-dasharray:8 8;opacity:.6}.compare-dot-a{fill:#1b8fe3}.compare-dot-b{fill:#ee8a17}
@media(max-width:980px){.workspace{grid-template-columns:1fr}.control-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));order:2}.board-wrap{order:1}.numberline-card{min-height:390px}.modebar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.topbar{padding:10px 12px}.icon-btn span{display:none}.icon-btn{min-width:42px;padding:0 10px}.modebar{grid-template-columns:1fr 1fr;padding:7px}.mode-btn{min-height:40px;font-size:.76rem}.workspace{padding:8px;gap:8px}.control-panel{grid-template-columns:1fr}.concept-strip{grid-template-columns:1fr 1fr}.concept-main{grid-column:1/-1;grid-row:1}.numberline-card{min-height:320px}.numberline-stage,.numberline-stage svg{min-height:280px}.app-footer{font-size:.62rem}.app-footer span{display:none}}
@media(max-width:420px){.topbar h1{font-size:1rem}.brand-kicker{font-size:.58rem}.mode-btn{font-size:.68rem}.numberline-stage{padding:2px}.concept-strip>div{padding:8px}.big-number{font-size:2.2rem}.tick-label{font-size:15px}.tick-label.major{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* v1.1.0 okunabilirlik ve sade kullanım düzeltmeleri */
.numberline-tools{display:flex;align-items:center;gap:10px}.view-switch{display:flex;gap:4px;padding:4px;border-radius:12px;background:#cfe8f8}.view-switch button{min-height:34px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#2a6289;font-weight:900;cursor:pointer}.view-switch button.is-active{background:#fff;color:#116fc3;box-shadow:0 2px 7px rgba(31,96,142,.14)}
.tip.compact{margin-top:8px;font-size:.72rem}.rhythm-range-note{margin-top:10px;padding:8px 10px;border-radius:11px;background:#eaf6ff;color:#1d5c88;font-size:.78rem;font-weight:850;text-align:center}.concept-bar{min-height:52px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:10px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 14px rgba(30,76,116,.06);text-align:center}.concept-bar span{color:#688198;font-size:.78rem;font-weight:900}.concept-bar strong{color:#176fba;font-size:.93rem}.numberline-stage svg{min-height:360px}.tick-label.major{font-size:20px}.marker-label{font-size:20px}.sequence-box{max-height:72px;overflow:hidden;font-size:.92rem;letter-spacing:.01em}.mode-btn{font-size:.92rem}.control-card{padding:12px}.workspace{grid-template-columns:minmax(220px,275px) minmax(0,1fr)}
@media(max-width:720px){.numberline-tools{gap:5px}.view-switch button{min-height:31px;padding:0 8px;font-size:.7rem}.marker-readout{padding:6px 8px}.concept-bar{grid-template-columns:1fr;gap:5px}.concept-bar span{display:none}.numberline-stage svg{min-height:300px}}

/* v1.2.0 — öğretmen kontrollü ders anlatımı */
.teacher-card{border-color:#bdd9ed;background:linear-gradient(180deg,#ffffff,#f8fcff)}
.teacher-step-box{margin-top:12px;padding:10px;border:1px solid #bddcf0;border-radius:15px;background:linear-gradient(180deg,#edf8ff,#e4f3fd)}
.teacher-step-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#42637e;font-size:.72rem;font-weight:900}
.teacher-step-head span{text-transform:uppercase;letter-spacing:.06em}.teacher-step-head strong{padding:4px 8px;border-radius:999px;background:#fff;color:#0f6fc6;box-shadow:0 2px 7px rgba(31,96,142,.1)}
.teacher-step-actions{display:grid;grid-template-columns:1fr 1.18fr;gap:8px}
.teacher-step{min-height:48px;border-radius:13px;font-weight:950;cursor:pointer}
.teacher-step.primary{border:1px solid #0e68c1;background:linear-gradient(180deg,#1c95e7,#1169c6);color:#fff;box-shadow:0 7px 14px rgba(17,105,198,.18)}
.teacher-step.secondary{border:1px solid #bdd6e8;background:#fff;color:#2b5d80}
.teacher-step:active{transform:translateY(1px)}
.teacher-tools-row{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:6px;margin-top:8px}
.teacher-tool{min-height:38px;padding:0 7px;border:1px solid #c7ddec;border-radius:11px;background:#fafdff;color:#2b5d80;font-size:.7rem;font-weight:900;cursor:pointer}
.teacher-tool:hover{border-color:#8fc5e5;background:#edf8ff}.teacher-tool.danger-lite{color:#a75a2a;background:#fff9f4;border-color:#efd1b7}
.secondary-run{margin-top:8px;background:linear-gradient(180deg,#5b91bd,#3e729d);box-shadow:none}
.hop-label.active{fill:#d96d05;font-size:20px}
@media(max-width:720px){.teacher-step-actions{grid-template-columns:1fr 1fr}.teacher-tools-row{grid-template-columns:1fr 1fr}.teacher-tools-row .danger-lite{grid-column:1/-1}.teacher-step{min-height:44px}}

@media(max-width:720px){.math-chain-row{align-items:flex-start;flex-direction:column;gap:7px}.math-chain-rule{align-self:flex-start}.math-chain-values{font-size:.98rem!important}}

/* v1.2.4 — Atlama modunda tahta üzerinden başlangıç seçimi */
.hop-touch-tip{margin:2px 0 8px!important;padding:8px 10px;border-radius:10px;background:#eef8ff;color:#35617f!important;font-weight:700;line-height:1.35}
body:has(.mode-btn[data-mode="hop"].is-active) .numberline-stage{cursor:crosshair}
@media(max-width:760px){.hop-touch-tip{font-size:.76rem}}
