/* Информатика кабинеті: сол жақта робот тақтасы, оң жақта блоктар мен бағдарлама */
.in-view { background: #f4f8f4; }
.in-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.in-levels { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.in-levels button { font: inherit; font-weight: 700; font-size: 15px; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.in-levels button.done { background: #fff9db; border-color: #fcc419; color: #e67700; }
.in-levels button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.in-learn { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.in-hint { margin: 0; font-size: 14.5px; color: var(--ink); }
.in-max { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #c2410c; }
.in-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.in-palette button { font: inherit; font-size: 14.5px; font-weight: 700; min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 0; background: var(--bc); color: #fff; cursor: pointer; text-align: left; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.in-palette button:active { transform: translateY(1px); box-shadow: none; }
.in-prog { min-height: 120px; }
.in-root, .in-body { display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 2px dashed transparent; cursor: pointer; }
.in-root { background: #f8f9fb; min-height: 100px; align-content: start; }
.in-root.tgt, .in-body.tgt { border-color: var(--brand); background: #f6f3ff; }
.in-drop { font-size: 13px; color: var(--muted); text-align: center; padding: 6px; }
.in-b { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bc); color: #fff; font-weight: 700; font-size: 14.5px; cursor: default; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.in-b.act { outline: 4px solid #fcc419; outline-offset: 1px; }
.in-rep { display: block; padding: 0; background: color-mix(in srgb, var(--bc) 14%, #fff); border: 2px solid var(--bc); color: var(--ink); box-shadow: none; }
.in-b-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: var(--bc); color: #fff; border-radius: 7px 7px 0 0; }
.in-b-head > span:first-child { flex: 1; }
.in-n { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.in-n button { font: inherit; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255,255,255,.25); color: #fff; font-size: 16px; cursor: pointer; }
.in-n b { min-width: 18px; text-align: center; font-size: 16px; }
.in-body { margin: 6px 6px 6px 18px; background: #fff; }
.in-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); color: #fff; font-size: 17px; cursor: pointer; }
.in-run { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; margin-top: 12px; }
.in-run .btn { padding: 11px 14px; }
.phys-count.over { color: var(--danger); }
body.touch .in-palette button { min-height: 56px; font-size: 16px; }
body.touch .in-n button, body.touch .in-x { width: 36px; height: 36px; }
.phys-count { float: right; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; }

/* Түсінікті ету (sheber.education): қадамдар, нөмірленген бағдарлама, цикл белгісі, жеңіс терезесі */
.in-steps { list-style: none; margin: 12px 0 0; padding: 10px 12px; display: grid; gap: 6px; background: #f8f9fb; border-radius: 12px; font-size: 14px; color: var(--ink); }
.in-steps li { display: flex; align-items: center; gap: 8px; }
.in-steps b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; }
.in-root, .in-body { counter-reset: step; }
.in-root > .in-b:not(.in-rep), .in-body > .in-b:not(.in-rep) { counter-increment: step; }
.in-root > .in-b:not(.in-rep)::before, .in-body > .in-b:not(.in-rep)::before { content: counter(step); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.28); font-size: 12px; margin-left: -4px; }
.in-b > span { flex: 1; }
.in-target { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border-radius: 12px; background: #fff4e6; border: 1.5px solid #ffc078; font-size: 13.5px; color: #873800; }
.in-target button { font: inherit; font-weight: 700; font-size: 13px; padding: 8px 12px; min-height: 36px; border-radius: 999px; border: 0; background: #e8590c; color: #fff; cursor: pointer; white-space: nowrap; }
.in-win { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(244,248,244,.72); animation: inWin .18s ease-out both; }
.in-win[hidden] { display: none; }
.in-win-card { text-align: center; background: #fff; border-radius: 28px; padding: 28px 36px; box-shadow: 0 24px 60px rgba(20,16,44,.18); min-width: min(360px, 90%); }
.in-win-star { font-size: 64px; line-height: 1; color: #fcc419; text-shadow: 0 4px 0 #f08c00; }
.in-win-card h2 { font-size: 28px; margin: 8px 0 4px; }
.in-win-card p { margin: 0 0 18px; color: var(--text); font-size: 16px; }
.in-win-btns { display: flex; gap: 10px; justify-content: center; }
.in-win-btns .btn { padding: 14px 22px; font-size: 17px; }
@keyframes inWin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .in-win { animation: none; } }
.in-prog-card .in-run { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px 16px; background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 -8px 16px rgba(255,255,255,.9); }
.in-run .btn { white-space: nowrap; }
.in-view .lab-toast { top: auto; bottom: 64px; }
