.cm-card{background:var(--card-bg);color:var(--card-ink);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:clamp(18px,3vw,28px);margin:24px 0;max-width:100%;box-sizing:border-box}
.cm-card h2{margin:0;font-size:1.3rem;color:var(--card-ink)}.cm-card .small{color:var(--card-ink-soft)}
.cm-head{display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative}
.cm-card button,.cm-full button{font:inherit;font-weight:600;border-radius:12px;border:1px solid var(--card-line);background:rgba(255,255,255,.08);color:var(--card-ink);padding:10px 16px;min-height:44px;cursor:pointer}
.cm-card button[aria-pressed=true],.cm-full button[aria-pressed=true]{outline:2px solid #c6ff4a;outline-offset:1px}
.cm-card button:focus-visible,.cm-full button:focus-visible,.cm-card input:focus-visible{outline:3px solid #22e6ff;outline-offset:2px}
.cm-card .cm-cta,.cm-full .cm-cta{background:#c6ff4a;color:#10141d;border-color:#c6ff4a}
.cm-help{width:44px;padding:0!important;border-radius:999px!important}
.cm-keys{background:#141a26;border-radius:14px;padding:12px 16px;margin:12px 0;font-size:.95rem}.cm-keys ul{margin:6px 0 0;padding-left:18px}.cm-keys kbd{background:#444c5b;border-radius:6px;padding:1px 6px;font:inherit;font-size:.85em}
.cm-mini{margin:14px 0}.cm-mini-clock{font-size:clamp(56px,12vw,96px);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:1.05;text-align:center}
.cm-track,.cm-bar{background:#444c5b;border-radius:999px;overflow:hidden;height:10px}.cm-track span,.cm-bar span{display:block;height:100%;width:100%;border-radius:999px;background:#c6ff4a;transition:width .25s linear}
[data-level=amber] .cm-track span,[data-level=amber] .cm-bar span{background:#ffc23a;background-image:repeating-linear-gradient(135deg,transparent 0 8px,rgba(0,0,0,.18) 8px 12px)}
[data-level=red] .cm-track span,[data-level=red] .cm-bar span,[data-level=done] .cm-bar span{background:#ff4d4d;background-image:repeating-linear-gradient(90deg,transparent 0 6px,rgba(0,0,0,.25) 6px 9px)}
.cm-chips,.cm-row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;align-items:center}.cm-chips button{border-radius:999px}
.cm-check{display:flex;gap:8px;align-items:center;margin:8px 0}
.cm-sub{border-top:1px solid var(--card-rule);padding-top:10px;margin-top:10px}.cm-sub summary{cursor:pointer;font-weight:600;min-height:32px}
.cm-list{padding:0;margin:8px 0;list-style:none;counter-reset:p}.cm-list li{display:flex;gap:8px;align-items:center;margin:6px 0}.cm-list li::before{counter-increment:p;content:counter(p);width:1.4em;color:var(--card-ink-soft)}
.cm-list input,.cm-thr input[type=range]{font:inherit;background:var(--field-bg);color:var(--card-ink);border:1px solid var(--field-line);border-radius:10px;padding:8px 10px;min-width:0}
.cm-list label:first-of-type{flex:1;min-width:0}.cm-list label:first-of-type input{width:100%;box-sizing:border-box}.cm-list input[type=number]{width:4.5em}
.cm-list button{padding:6px 12px!important}
.cm-thr{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cm-thr input{flex:1;min-width:120px}
.cm-light{display:inline-flex;gap:6px;background:#141a26;border-radius:999px;padding:6px 10px}.cm-light[hidden]{display:none}
.cm-light i{width:clamp(16px,5vw,28px);height:clamp(16px,5vw,28px);border-radius:50%;opacity:.25;display:block;border:2px solid rgba(255,255,255,.5)}
.cm-light i:nth-child(1){background:#c6ff4a}.cm-light i:nth-child(2){background:#ffc23a;border-radius:6px}.cm-light i:nth-child(3){background:#ff4d4d;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:0}
.cm-light[data-on=green] i:nth-child(1),.cm-light[data-on=amber] i:nth-child(2),.cm-light[data-on=red] i:nth-child(3){opacity:1}
.cm-light--mini i{width:20px;height:20px}
/* full screen */
.cm-full{position:fixed;inset:0;z-index:2147483000;background:#141a26;color:#f4f7fb;display:grid;grid-template-rows:auto 1fr auto;padding:2vh 3vw;box-sizing:border-box;font-family:var(--font);overflow:hidden}
.cm-full[hidden]{display:none}
.cm-top{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:2vw}
.cm-exit{width:44px;height:44px;padding:0!important;opacity:.4}.cm-exit:hover,.cm-exit:focus-visible{opacity:1}
.cm-label{font-size:clamp(18px,3vw,5vh);font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-mid{display:flex;align-items:center;justify-content:center;min-height:0}
.cm-clock{font-size:clamp(96px,25vw,42vh);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:1;color:#f4f7fb}
.cm-digits-red .cm-clock{color:#ff4d4d}
.cm-full .cm-bar{height:14px}.cm-state{margin:.6vh 0;font-size:clamp(14px,1.6vw,2.6vh);color:#b9c2d3;text-align:center}
.cm-strip{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:1vh 0;max-height:calc(2 * 44px + 8px);overflow:auto;justify-content:center}
.cm-chip{display:inline-flex;gap:8px;align-items:center;border-radius:999px;padding:6px 14px;background:#444c5b;font-size:clamp(13px,1.3vw,2.2vh)}.cm-chip b{font-variant-numeric:tabular-nums}
.cm-chip.done{opacity:.5}.cm-chip.now{box-shadow:inset 0 0 0 2px #c6ff4a;background:transparent}
.cm-ctl{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;transition:opacity .2s}
.cm-full.cm-idle .cm-ctl{opacity:0;pointer-events:none}.cm-full.cm-idle{cursor:none}
.cm-full[data-level=done]{box-shadow:inset 0 0 0 8px #ff4d4d}
body.cm-open{overflow:hidden}
body.cm-open .ad-slot,body.cm-open .google-auto-placed,body.cm-open ins.adsbygoogle,body.cm-open iframe[id^=aswift],body.cm-open .adsbygoogle-noablate{display:none!important}
@media (max-width:700px){.cm-full{padding:2vh 4vw}.cm-top{grid-template-columns:44px 1fr 44px}.cm-full .cm-top .cm-light{grid-column:1/-1;grid-row:2;justify-self:center}
.cm-clock{font-size:clamp(72px,22vw,30vh)}.cm-full .cm-bar{height:10px}.cm-strip{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}.cm-chip{flex:0 0 auto}.cm-ctl button{padding:8px 12px}}
@media (prefers-reduced-motion:reduce){.cm-track span,.cm-bar span,.cm-ctl{transition:none!important}}
/* for-teachers page */
.ft-sec{padding:clamp(56px,8vw,96px) 0 0}
.ft-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(24px,4vw,48px);align-items:start;padding-top:24px}
.ft-hero h1{margin:.2em 0 .3em}.ft-sub{font-size:1.15rem;color:var(--ink-soft)}
.ft-cta{font:inherit;font-weight:700;background:#c6ff4a;color:#10141d;border:0;border-radius:12px;padding:14px 22px;min-height:48px;cursor:pointer;float:none}
.ft-hero-text{display:flex;flex-direction:column;align-items:flex-start}.ft-hero-text .ft-cta{order:3;margin:6px 0 12px}.ft-hero-text .ft-sub{order:2}.ft-hero-text p:not(.ft-sub){order:4}
.ft-hero .cm-card{margin:0}
.ft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ft-card{background:var(--card-bg);color:var(--card-ink);border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.08);padding:22px}.ft-card h3{margin:.5em 0 .3em;font-size:1.1rem;color:var(--card-ink)}.ft-card p{color:var(--card-ink-soft);margin:0}.ft-card svg{color:#c6ff4a}
.ft-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}.ft-steps li{counter-increment:s}.ft-steps li::before{content:counter(s);display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;background:#c6ff4a;color:#10141d;font-weight:700}
.ft-presets button{font:inherit;font-weight:600;border-radius:999px;border:1px solid var(--line);background:var(--bg-2);color:var(--ink);padding:10px 16px;min-height:44px;cursor:pointer}
.ft-presets button:focus-visible,.ft-cta:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:860px){.ft-hero,.ft-grid,.ft-steps{grid-template-columns:1fr}.ft-hero-text .ft-cta{order:1;width:100%;margin:0 0 12px}}

/* cm2: sound switch */
.cm-check{display:flex;gap:10px;align-items:center;justify-content:flex-start;margin:8px 0;cursor:pointer;position:relative;text-align:left;min-height:44px}
.cm-check input{position:absolute;opacity:0;width:44px;height:26px;margin:0;cursor:pointer}
.cm-switch{flex:0 0 auto;width:44px;height:26px;border-radius:999px;background:#444c5b;position:relative;transition:background .15s}
.cm-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#f4f7fb;transition:transform .15s}
.cm-check input:checked+.cm-switch{background:#c6ff4a}.cm-check input:checked+.cm-switch::after{transform:translateX(18px);background:#10141d}
.cm-check input:focus-visible+.cm-switch{outline:3px solid #22e6ff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cm-switch,.cm-switch::after{transition:none}}
/* cm2: for-teachers story under the tool */
.ft-hero{grid-template-areas:"text tool" "story tool"}.ft-hero-text{grid-area:text}.ft-hero-tool{grid-area:tool}.ft-story{grid-area:story}.ft-story p:first-child{margin-top:0}
@media (max-width:860px){.ft-hero{grid-template-areas:"text" "tool" "story"}}
/* cm2: classroom-timer language fold (mobile only) */
.lang-fold{display:none;position:relative}
.lang-fold summary{list-style:none;cursor:pointer}.lang-fold summary::-webkit-details-marker{display:none}
.lang-fold-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:50;display:flex;flex-direction:column;gap:2px;background:var(--card-bg,#141a26);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.25);padding:6px;min-width:150px}
.lang-fold-link{display:block;padding:10px 12px;border-radius:8px;color:var(--card-ink,#f4f7fb);text-decoration:none}.lang-fold-link:hover,.lang-fold-link:focus-visible{background:rgba(255,255,255,.1)}
.short-answer--below{margin:24px 0}
@media (max-width:700px){body[data-mode=classroom] .header>.lang-switch{display:none!important}body[data-mode=classroom] .lang-fold{display:block}}
@media (min-width:701px){body[data-mode=classroom] .intro{padding-top:14px;padding-bottom:12px}}
