@font-face{font-family:"Noto Sans";src:url("../fonts/NotoSans-Regular.woff") format("woff");font-weight:400 500;font-display:swap}
@font-face{font-family:"Noto Sans";src:url("../fonts/NotoSans-Bold.woff") format("woff");font-weight:600 900;font-display:swap}
@font-face{font-family:"Noto Serif";src:url("../fonts/NotoSerif-Bold.woff") format("woff");font-weight:700;font-display:swap}
:root{
  color-scheme:light;--bg:#f8f7f3;--paper:#fff;--ink:#263449;--muted:#535e6c;--line:#dedfdc;
  --primary:#324b70;--coral:#ef7968;--green:#5c9d82;--accent:#a64032;--soft:#ebeff4;--button-ink:#fff;
  --radius:12px;--display:"Noto Serif",Georgia,serif;--body:"Noto Sans",Arial,sans-serif
}
:root[data-theme=dark]{
  color-scheme:dark;--bg:#171d29;--paper:#232d3d;--ink:#f1f4f8;--muted:#b9c3d2;--line:#3b4658;
  --primary:#9ebce8;--coral:#f19b89;--green:#86c5a7;--accent:#f2a596;--soft:#2d394c;--button-ink:#172132
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 var(--body);min-width:280px}
a{color:var(--primary);text-decoration-thickness:1px;text-underline-offset:4px}
a:hover{color:var(--accent)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.58}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
svg{flex:none;vertical-align:middle}
img{max-width:100%;height:auto}
h1,h2,h3,p{margin:0}
h1,h2{font-family:var(--display);line-height:1.18;letter-spacing:-.035em}
h1{font-size:clamp(2rem,5vw,3.55rem)}
h2{font-size:clamp(1.45rem,2.6vw,1.95rem)}
h3{font-size:1.05rem;line-height:1.36}
p{overflow-wrap:anywhere}
.shell{width:min(1180px,calc(100% - 64px));margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:8px;left:8px;z-index:99;background:var(--paper);padding:10px 14px}
.topbar{border-bottom:1px solid var(--line);background:var(--paper);position:relative;z-index:5}
.top-inner{display:flex;align-items:center;gap:32px;min-height:73px;position:relative}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-weight:800;letter-spacing:.045em;text-decoration:none;white-space:nowrap}
.brand img{display:block}
.navigation{display:flex;align-items:center;gap:24px;margin-inline:auto;color:var(--muted);font-size:.9rem}
.navigation>a,.nav-dropdown>summary{padding:10px 3px;color:inherit;text-decoration:none;white-space:nowrap}
.navigation [aria-current],.navigation>a:hover,.nav-dropdown>summary:hover{color:var(--primary);font-weight:700}
.nav-dropdown{position:relative}
.nav-dropdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:5px}
.nav-dropdown>summary::-webkit-details-marker{display:none}
.nav-list{position:absolute;top:calc(100% + 9px);left:-14px;min-width:275px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 30px #17213218}
.nav-list a{display:flex;align-items:center;gap:10px;padding:8px;text-decoration:none;border-radius:8px;color:var(--ink)}
.nav-list a:hover{background:var(--bg)}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.icon-button,.theme-switch{display:inline-grid;place-items:center;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:9px;min-width:41px;height:41px;text-decoration:none}
.theme-switch{display:flex;gap:2px;padding:4px;border-radius:30px;min-width:68px;height:38px}
.theme-switch span{height:27px;width:27px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}
:root[data-theme=light] .theme-sun,:root[data-theme=dark] .theme-moon{background:var(--soft);color:var(--primary)}
.mobile-menu{display:none}
.hero{display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:23px;padding:49px 0 43px;border-bottom:1px solid var(--line)}
.hero-copy{position:relative;z-index:2}
.kicker{display:flex;align-items:center;gap:8px;color:var(--primary);font-weight:700;font-size:.76rem;text-transform:uppercase;letter-spacing:.13em;margin-bottom:16px}
.kicker span{width:9px;height:9px;border-radius:50%;background:var(--coral)}
.hero h1{max-width:740px}
.hero h1 em{font-style:normal;color:var(--primary)}
.hero-description{margin-top:18px;color:var(--muted);max-width:560px;font-size:1.03rem}
.hero-art{justify-self:end;width:100%;max-width:475px}
:root[data-theme=dark] .hero-art{filter:brightness(.83) saturate(.85)}
.search-box{margin-top:25px;background:var(--paper);border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;gap:12px;min-height:58px;padding:6px 7px 6px 14px;color:var(--primary);max-width:555px}
.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px var(--soft)}
.search-box input{width:100%;min-width:0;background:transparent;border:0;color:var(--ink);outline:0;padding:7px 0}
.search-go{display:grid;place-items:center;background:var(--primary);color:var(--button-ink);border-radius:7px;min-width:43px;height:42px}
.search-go:hover{color:var(--button-ink);filter:brightness(.92)}
.search-results{position:absolute;top:100%;width:min(555px,100%);z-index:5;margin-top:4px;background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:8px;box-shadow:0 12px 30px #17213218}
.search-results a{display:block;padding:9px;border-radius:6px;text-decoration:none}
.search-results a:hover,.search-results a:focus{background:var(--soft)}
.categories,.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.categories{padding:23px 0}
.category-card,.tool-card{display:flex;align-items:center;gap:11px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:13px;color:var(--ink);text-decoration:none;min-width:0;transition:border-color .16s,background .16s}
.category-card{min-height:79px}
.category-card:hover,.tool-card:hover{color:var(--ink);border-color:var(--tone,var(--primary));background:color-mix(in srgb,var(--paper) 95%,var(--tone,var(--primary)))}
.category-card strong,.tool-card strong{display:block;font-size:.9rem;line-height:1.28}
.category-card small,.tool-card small{display:block;color:var(--muted);margin-top:5px;font-size:.8rem;line-height:1.42}
.category-card>svg,.card-arrow{margin-left:auto;color:var(--muted)}
.category-icon{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:9px;flex:none;background:var(--wash,var(--soft));color:var(--tone,var(--primary))}
.tone-actividades{--wash:#f7e5df;--tone:#993f34}
.tone-matematicas{--wash:#e5edf6;--tone:#315681}
.tone-docentes{--wash:#e1eee7;--tone:#2b674f}
.tone-organizacion{--wash:#f6ecd6;--tone:#795311}
:root[data-theme=dark] .tone-actividades{--wash:#4c3236;--tone:#ffc1b2}
:root[data-theme=dark] .tone-matematicas{--wash:#30435d;--tone:#bfd8ff}
:root[data-theme=dark] .tone-docentes{--wash:#2e473f;--tone:#afe2c8}
:root[data-theme=dark] .tone-organizacion{--wash:#4b4130;--tone:#f4d395}
.section-block{margin:25px 0 35px}
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:15px}
.section-heading>a,.section-heading>span{font-size:.86rem;white-space:nowrap}
.section-heading>span{color:var(--muted)}
.tool-card{align-items:flex-start;min-height:89px}
.card-arrow{align-self:center}
.catalog{border-top:1px solid var(--line);padding-top:26px}
.catalog-group{margin:21px 0}
.catalog-group h3{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.catalog-group h3 svg{color:var(--tone)}
.catalog-group .card-grid,.category-grid,.inner-page .section-block .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-note{display:flex;flex-wrap:wrap;gap:20px 35px;justify-content:center;padding:23px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:.89rem}
.home-note span{display:flex;align-items:center;gap:8px}
.home-note svg{color:var(--primary)}
.footer{border-top:1px solid var(--line);background:var(--paper);margin-top:35px}
.footer-inner{display:flex;justify-content:space-between;gap:22px;padding:28px 0}
.footer-inner p,.footer-bottom{font-size:.85rem;color:var(--muted)}
.footer-inner p{max-width:345px;margin-top:8px}
.footer-inner nav{display:grid;grid-template-columns:repeat(2,minmax(90px,auto));gap:7px 22px;font-size:.85rem}
.footer-bottom{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid var(--line)}
.inner-page{padding-block:20px 24px;min-height:55vh}
.crumbs{color:var(--muted);font-size:.81rem;margin-bottom:25px}
.crumbs ol{list-style:none;display:flex;gap:7px;flex-wrap:wrap;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:7px;color:var(--muted)}
.page-lead{padding:22px 0 28px;border-bottom:1px solid var(--line);margin-bottom:24px}
.page-lead .category-icon,.tool-lead .category-icon{width:54px;height:54px;border-radius:12px}
.page-lead h1{margin-top:12px}
.page-lead p,.tool-lead p,.intro{color:var(--muted);margin-top:8px}
.page-lead .button,.back-link{display:inline-flex;margin-top:25px}
.tool-lead{display:flex;gap:14px;align-items:center;margin:12px 0 23px}
.tool-lead h1{font-size:clamp(1.9rem,4.4vw,2.9rem)}
.tool-lead p{margin-top:4px}
.prose,.tool-help{max-width:820px}
.prose>*+*,.tool-help>*+*{margin-top:13px}
.prose h2,.tool-help h2{margin-top:27px}
.prose dt{font-weight:700;margin-top:9px}
.prose dd{margin-left:0;color:var(--muted)}
.tool-help{padding:20px 0 23px;margin:23px 0;border-bottom:1px solid var(--line)}
.tool-help details>p{margin-top:7px}
summary{cursor:pointer}
.button,.actions button,.study-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:8px 13px;text-decoration:none;font-weight:700;font-size:.86rem;line-height:1.25}
.button:hover,.actions button:hover,.study-actions button:hover{border-color:var(--primary);color:var(--primary)}
.button.primary,.actions .primary{background:var(--primary);color:var(--button-ink);border-color:var(--primary)}
.button.primary:hover,.actions .primary:hover{filter:brightness(.93);color:var(--button-ink)}
.actions,.study-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.workspace{display:grid;grid-template-columns:minmax(0,385px) minmax(0,1fr);gap:15px;align-items:start}
.editor,.result-panel{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:17px}
.editor h2,.result-panel h2{font-family:var(--body);font-size:1rem;letter-spacing:0}
.editor h2{margin-bottom:13px}
.result-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.result-top .actions button{min-height:35px;font-size:.78rem;padding:6px 9px}
.form-body,.print-fields,.row-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.field{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--ink);font-size:.83rem;font-weight:700}
.full{grid-column:1/-1}
.field small,.hint{font-size:.76rem;font-weight:400;color:var(--muted)}
.field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select{
  width:100%;min-width:0;min-height:41px;border:1px solid var(--line);border-radius:7px;padding:8px 9px;background:var(--bg);color:var(--ink);font-size:.9rem;font-weight:400
}
.field input[type=color]{padding:3px}
.field textarea{resize:vertical;min-height:96px}
.check-field{display:flex;align-items:center;gap:8px;min-height:32px}
.check-field input{accent-color:var(--primary);width:17px;height:17px;flex:none}
.editor>.actions,.editor form>.actions,.editor details,.form-body+div,.form-body+section{margin-top:13px}
.editor details{border-top:1px solid var(--line);padding-top:9px;font-size:.84rem}
.editor details>div,.editor details>.actions,.editor details>p{margin-top:9px}
.status{min-height:1.2em;font-size:.81rem;margin-top:8px;color:var(--muted)}
.status.error{color:var(--accent);font-weight:700}
.notice{padding:13px;border:1px dashed var(--line);border-radius:9px;color:var(--muted)}
.empty-preview{min-height:300px;display:grid;place-content:center;justify-items:center;text-align:center;gap:8px;background:var(--bg);border:1px dashed var(--line);border-radius:9px;color:var(--muted);padding:20px}
.empty-preview svg{color:var(--primary)}
.preview-sheet{width:100%;max-width:650px;height:auto;display:block;background:white;margin-inline:auto;box-shadow:0 1px 0 #0002}
.sheet-frame{background:var(--soft);padding:12px;border-radius:8px}
.result-content>p+p{margin-top:8px}
.result-content .study-actions{margin-top:12px}
.preview-nav{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:9px;font-size:.81rem;color:var(--muted)}
.preview-nav button{min-height:36px}
.projector:fullscreen{display:grid;place-content:center;background:var(--bg);padding:20px;text-align:center;overflow:auto}
.wheel{max-width:min(100%,60vh);height:auto;margin:auto;display:block}
.big-result{font-family:var(--display);font-size:clamp(1.55rem,5vw,3.5rem);overflow-wrap:anywhere}
.timer-face{font:700 clamp(3.4rem,13vw,7.4rem)/1.15 var(--body);font-variant-numeric:tabular-nums;letter-spacing:-.075em}
.timer-stage{border:1px solid var(--line);border-radius:11px;padding:18px;text-align:center}
.signal{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:.9rem}
.signal::before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--signal,#718095)}
.signal.green{--signal:#43876b}.signal.yellow{--signal:#d4972b}.signal.red{--signal:#dc6457}
.question-display{text-align:center;background:var(--bg);border-radius:10px;padding:18px}
.question-display .big-result{margin:11px 0}
.answer-form{display:flex;gap:8px;max-width:360px;margin:13px auto}
.answer-form input{min-width:0;flex:1;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px}
.fraction-visual{width:100%;max-width:560px;height:auto}
.fraction-card{border:1px solid var(--line);border-radius:8px;padding:10px;margin:10px 0}
.pair-grid,.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:8px;margin-top:12px}
.memory-card{min-height:69px;padding:7px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.memory-card.matched{border:2px solid var(--green);opacity:1}
.team-grid article{padding:10px;border:1px solid var(--line);border-radius:8px}
.team-grid ul{padding-left:19px;margin:6px 0}
.repeat-row{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px;margin:8px 0}
.repeat-row .field input,.repeat-row .field select{background:var(--paper)!important}
.repeat-row>.actions{margin-top:6px}
.study-card{width:100%;display:block;min-height:155px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:11px;padding:17px;text-align:center;overflow-wrap:anywhere;font-size:1.25rem}
.study-card small{display:block;font-size:.78rem;margin-bottom:7px;color:var(--muted)}
.ad-slot{margin:28px auto;text-align:center;font-size:.75rem;color:var(--muted);max-width:970px}
.ad-slot>div{min-height:100px}
@media(max-width:1020px){
 .shell{width:calc(100% - 46px)}
 .categories,.featured .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace{grid-template-columns:minmax(0,330px) minmax(0,1fr)}
}
@media(max-width:760px){
 .shell{width:calc(100% - 32px)}
 .top-inner{min-height:64px;gap:12px}
 .mobile-menu{display:inline-grid}
 .navigation{display:none;position:absolute;top:calc(100% + 1px);right:0;left:0;align-items:stretch;gap:4px;flex-direction:column;background:var(--paper);padding:9px 12px;border:1px solid var(--line);border-radius:0 0 11px 11px;box-shadow:0 12px 26px #17213216}
 .navigation.open{display:flex}
 .nav-list{position:static;min-width:0;box-shadow:none;padding:4px;margin:3px 0}
 .hero{grid-template-columns:minmax(0,1fr) minmax(0,.46fr);gap:9px;padding:28px 0 24px}
 .hero h1{font-size:clamp(1.9rem,5.8vw,3.15rem)}
 .hero-description{font-size:.92rem;margin-top:11px}
 .search-box{margin-top:17px}
 .workspace{grid-template-columns:1fr}
 .result-top .actions button{min-height:41px}
 .empty-preview{min-height:160px}
 .catalog-group .card-grid,.category-grid,.inner-page .section-block .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:470px){
 .hero{grid-template-columns:minmax(0,1fr)}
 .hero-art{display:none}
 .kicker{margin-bottom:10px}
 .categories{gap:8px;padding:15px 0}
 .category-card,.tool-card{padding:9px;gap:8px}
 .category-card{min-height:71px}
 .category-card>svg,.card-arrow{display:none}
 .category-icon{width:33px;height:33px}
 .featured .card-grid,.catalog-group .card-grid,.category-grid,.inner-page .section-block .card-grid{gap:8px;grid-template-columns:minmax(0,1fr)}
 .tool-card{min-height:65px;align-items:center}
 .footer-inner{flex-direction:column}
 .home-note{justify-content:flex-start;gap:8px}
 .section-heading{gap:5px}
 .tool-lead{align-items:flex-start}
 .tool-lead .category-icon{width:43px;height:43px}
 .sheet-frame{padding:6px}
 .header-actions{gap:6px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation-duration:.001ms!important;scroll-behavior:auto!important}}
@media print{
 body{background:#fff;color:#000}
 .topbar,.footer,.editor,.crumbs,.tool-lead,.tool-help,.section-block,.result-top,.preview-nav,.ad-slot,.skip{display:none!important}
 .shell,.workspace,.result-panel,.sheet-frame{display:block;width:100%;max-width:none;padding:0;margin:0;border:0;background:#fff}
 .preview-sheet{width:100%;max-width:none;box-shadow:none}
}
.projector.projected{position:fixed;inset:0;z-index:20;display:grid;place-content:center;overflow:auto;padding:18px;background:var(--bg);text-align:center}
[data-close-projector]{display:none}
.projector:fullscreen [data-close-projector],.projector.projected [data-close-projector]{display:inline-flex;justify-self:center;margin-bottom:10px}
.document-note,.form-hint{margin:8px 0}
.wheel-disk{transform-origin:150px 150px}
.roulette-stage{text-align:center}
.roulette-stage .actions{justify-content:center;margin-top:10px}
.timer-stage .actions{justify-content:center;margin-top:14px}
.schedule-week{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:8px}
.schedule-item{display:grid;border-left:3px solid;padding-left:8px;margin-top:8px}
.schedule-item strong{font-size:.76rem}
.check-field{flex-direction:row}
.check-field input{margin:0}
@media(max-width:470px){
 .search-box input,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{font-size:16px}
}
