@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url('/manrope-400.ttf') format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url('/manrope-500.ttf') format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:600;font-display:swap;src:url('/manrope-600.ttf') format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url('/manrope-700.ttf') format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url('/manrope-800.ttf') format('truetype')}
:root{--blue:#2546d3;--action:#2546d3;--ink:#172348;--muted:#53607b;--soft:#e8edff;--paper:#f4f6ff;--coral:#f47457;--yellow:#f3cb45;--line:#d9e0f1;--nav:#fff;--focus:#2546d3;--radius:14px;font-family:Manrope,sans-serif;font-synthesis:none;background:var(--paper);color:var(--ink)}
body{font-size:16px;line-height:1.6}::selection{background:#c9d4ff;color:var(--ink)}input,textarea{caret-color:var(--blue)}
*{scrollbar-color:#a1afda var(--paper)}
h1{font-size:32px;font-weight:800;line-height:1.24;letter-spacing:-.03em}h2{font-size:19px;font-weight:750;line-height:1.4;letter-spacing:-.02em}h3{font-weight:700}h1:focus{outline:none}
button:hover,a.button:hover{filter:brightness(.96)}button:disabled{cursor:default;opacity:.6}
.skip{position:absolute;left:16px;top:-100px;background:white;padding:12px;z-index:30;min-height:44px}.skip:focus{top:8px}
.shell{display:flex;flex-direction:column;max-width:1100px;margin:auto;background:white;min-height:100dvh}
.app-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;min-height:74px;padding:12px 36px;border-bottom:1px solid var(--line)}
.brand{min-height:44px;gap:9px;font-size:24px;font-weight:800;letter-spacing:-.035em;line-height:1.2;flex-shrink:0}
.brand-mark{width:23px;height:23px;grid-template-columns:10px 10px;grid-template-rows:10px 10px;gap:3px;transform:none}
.brand-mark i{background:var(--blue);border-radius:1.5px}.brand-mark i:first-child{transform:rotate(-12deg);transform-origin:center}.brand-mark i:nth-child(2){background:var(--coral)}.brand-mark i:last-child{background:var(--yellow);grid-column:2}
.header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;min-width:0;max-width:100%}.header-profile{font-size:13px;color:var(--muted);text-align:right;line-height:1.5;overflow-wrap:anywhere}.header-profile small{display:block;font-size:12px}.header-actions .button{min-height:44px}
.content,.child-content{width:100%;max-width:none;padding:32px 36px 48px;flex:1;margin:0}
.content:focus{outline:none}
.screen-home .child-content,.screen-library .child-content,.screen-history .child-content,.screen-complete .child-content{max-width:940px;margin:0 auto}
.bottom-nav{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;border-top:1px solid var(--line);padding:8px 20px max(12px,env(safe-area-inset-bottom));background:white}
.bottom-nav a{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 16px;font-size:14px;text-decoration:none;color:var(--muted)}
.bottom-nav a.active{color:var(--blue);font-weight:750}
.button{min-height:50px;padding:12px 19px;border:0;border-radius:12px;font-size:15px;font-weight:700;line-height:1.4}
.button.primary{background:var(--blue);color:white}.button.primary:hover{background:#203dba}
.button.soft{background:var(--soft);color:var(--blue)}.button.quiet{color:var(--blue);min-height:44px;padding:8px 12px;font-size:14px;font-weight:650}
.button.compact{min-height:44px;padding:8px 12px;font-size:14px;color:var(--blue);background:transparent;border:0}
.page-heading{margin-bottom:26px}.page-heading p{font-size:15px;margin-top:12px}
.hero-lesson{position:relative;display:block;background:var(--blue);color:white;border:0;border-radius:16px;margin:0 0 24px;overflow:hidden}
.hero-copy{position:relative;padding:28px}.hero-copy h2{font-size:26px;max-width:23ch;margin:0;padding-right:54px}.hero-copy p{max-width:40ch;margin:18px 0 22px;position:relative}.hero-copy .note{color:#e5eaff;font-size:14px}
.hero-copy .primary{background:white;color:var(--blue)}
.color-blocks{position:absolute;right:24px;top:28px;display:grid;grid-template-columns:34px 34px;gap:5px}.color-blocks i{height:34px;background:var(--coral)}.color-blocks i:nth-child(2){background:var(--yellow)}.color-blocks i:nth-child(3){background:white;grid-column:2}
.session-parts{display:flex;flex-wrap:wrap;gap:20px;list-style:none;padding:0;margin:24px 0;font-size:13px}
.session-parts li{display:flex;align-items:center;gap:9px}.session-parts span{display:grid;place-items:center;background:var(--soft);color:var(--blue);width:26px;height:26px;border-radius:4px;font-weight:700}
.home-grid{grid-template-columns:1.3fr 1fr;gap:40px;margin-top:30px}.home-grid h2{font-size:19px}.home-grid .button{display:flex;justify-content:flex-start;text-align:left;min-height:50px;margin:8px 0}
.course-outline{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{cursor:pointer;min-height:54px;padding:14px 0}
.course-outline>summary{font-size:16px;font-weight:650}.course-plan h2{font-size:18px;margin-top:20px}.course-plan li{border-color:var(--line);font-size:14px}.course-plan small{color:var(--muted);white-space:normal;min-width:50px;text-align:right}
.lesson-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:0 0 20px}
.step-indicator{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}.step-indicator>span{display:flex;gap:4px}.step-indicator i{display:block;width:17px;height:6px;background:#e0e4ef}.step-indicator i.filled{background:var(--blue)}
.task-layout{grid-template-columns:minmax(0,620px) 230px;gap:60px}.task-sheet{border:0;border-radius:0;padding:0;min-width:0}.task-sheet h1{font-size:30px;margin:0;max-width:24ch;font-weight:800}
.task-text{font-size:17px;line-height:1.7;margin:24px 0 0;max-width:58ch}.task-text p{line-height:inherit}.task-text .question{margin:26px 0 22px!important;font-size:19px;font-weight:750;line-height:1.5}
.task-sheet>.note{font-size:13px;margin-top:14px}.answer-block{margin-top:22px}.answer-label{font-size:14px;font-weight:650;margin-bottom:8px}
.input{border:1px solid #8b98b6;border-radius:10px;min-height:50px;font-size:19px;color:var(--ink)}.input::placeholder{color:#65718a}.answer-block>.input{width:180px}.input:disabled{opacity:.85}.input:disabled:focus{outline:none}
.answer-block .actions.spaced{margin-top:14px}.packet-inputs{display:flex;flex-wrap:nowrap;gap:20px}.packet-inputs label{flex:1;min-width:0;max-width:230px}.packet-inputs .input{width:100%}.packet-inputs .packet{display:grid;place-items:center;height:48px;margin-bottom:10px;border-radius:5px;background:#e4eaff;color:#2546ad;font-size:18px;font-weight:800}.packet-inputs .packet.three{background:#ffe6d9;color:#99400c}
.ink-blue{color:#2546ad}.ink-orange{color:#99400c}
.save-status{font-size:13px;color:var(--muted);min-height:20px;margin-top:12px}
.feedback{font-size:15px;line-height:1.65;margin-top:20px;padding:16px;border-radius:12px;background:#e5f3e9;color:#205c3c}.feedback.error{background:#fff0df;color:#77411f}
.feedback:focus{outline:2px solid currentColor;outline-offset:3px}.hint-area{padding:20px;border:0;background:#f0f3fd;border-radius:12px;margin-top:24px;scroll-margin-top:16px}.hint-area h2{font-size:17px;margin:0 0 12px}.hint-area p{font-size:15px}.hint-area h3{font-size:16px}
.task-help{margin-top:24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.task-help .quiet{font-size:14px}
.task-aside{display:block;padding:8px 0 0 24px;border-left:1px solid var(--line);align-self:start}.task-aside h2{font-size:16px}.task-aside p{font-size:14px;line-height:1.8}.task-aside .button{font-size:14px}.task-links{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.task-links h2{font-size:16px;margin-bottom:8px}.task-links .button{display:flex;justify-content:flex-start;text-align:left;min-height:50px;margin:6px 0}
.task-aside textarea,#dialogue-form textarea,#feedback-text{width:100%;font-size:16px}.task-aside form button{width:100%}
.finish{max-width:700px}.finish h1{margin:0 0 18px}.finish>.note{margin-top:22px}.finish .actions{gap:12px}.result-line{font-size:14px}.result-line strong{font-weight:700}.result-line p{margin-top:4px}
.parent-children{gap:28px}.child-summary{border:0;border-radius:0;padding:22px 0;border-top:1px solid var(--line)}.child-summary h2{font-size:23px}.child-summary dd{font-weight:650}.parent-shell .aside-group{border-bottom:1px solid var(--line);padding-bottom:24px}.timeline .time{font-variant-numeric:tabular-nums}
.login{max-width:540px;background:white;border-radius:16px;padding:32px 36px;margin:40px auto}.login .brand{margin-bottom:32px}.login h1{font-size:32px;font-weight:800}.login>p{font-size:16px}.login form{max-width:none}.login .input{font-size:16px}.login .note{font-size:13px}.login .actions .button{width:100%}
#notice{position:sticky;top:0;z-index:20;background:#fff0df;color:#77411f;border-bottom:1px solid #d7b79d;padding:16px 24px;font-size:14px}
.theory-article{max-width:740px;margin:auto}.theory-article>p{font-size:16px}.theory-article .source summary{min-height:44px}.theory-article .input{font-size:19px}
@media(max-width:1100px){.task-layout{grid-template-columns:minmax(0,1fr) 210px;gap:36px}}
@media(max-width:800px){body{background:white}.shell{max-width:700px}.app-header{padding:10px 24px;min-height:64px}.content,.child-content{padding:24px 24px 40px}.task-layout{display:block}.task-aside{border-left:0;border-top:1px solid var(--line);margin-top:32px;padding:24px 0 0}.task-aside .aside-group{max-width:none}.task-aside .button{width:auto}.home-grid{display:block}.home-grid>section{margin-top:30px}.header-actions{gap:8px}.task-sheet h1{font-size:27px}.task-text{font-size:16px}.task-text .question{font-size:18px}.login{margin:20px auto}.parent-children{grid-template-columns:1fr}.theory-layout{display:block}.bottom-nav{gap:4px;justify-content:space-around}.bottom-nav a{gap:7px;padding:10px 8px;font-size:13px}.page-heading{gap:10px}.page-heading .button{flex-shrink:0}}
@media(max-width:440px){.app-header{padding:8px 20px;min-height:62px;gap:10px}.brand{font-size:23px}.header-profile{font-size:12px}.header-profile small{font-size:11px}.header-actions>.button{font-size:12px;padding:8px 0}.header-actions{gap:12px}.content,.child-content{padding:20px 20px 36px}h1{font-size:31px}.page-heading p{font-size:14px}.hero-copy{padding:24px}.hero-copy h2{font-size:24px;max-width:16ch;padding-right:0}.hero-copy p{font-size:15px}.color-blocks{right:18px;top:24px;grid-template-columns:22px 22px;opacity:.35}.color-blocks i{height:22px}.session-parts{display:grid;gap:12px}.lesson-toolbar{padding:0 0 16px}.step-indicator{font-size:12px;gap:8px}.step-indicator i{width:13px}.lesson-toolbar .button{font-size:13px;padding:8px}.task-sheet h1{font-size:25px;max-width:21ch}.task-text{line-height:1.65;margin-top:20px}.task-text .question{font-size:17px;line-height:1.55;margin:20px 0!important}.answer-block>.input{width:100%}.answer-block .actions .button{width:100%}.task-help{gap:8px;justify-content:space-between;margin-top:20px}.task-help .button{font-size:14px;padding:12px 16px}.task-help .quiet{font-size:13px;padding:8px 0}.hint-area{padding:18px;margin-top:20px}.result-line{grid-template-columns:100px minmax(0,1fr);gap:14px;font-size:13px}.timeline li{grid-template-columns:52px minmax(0,1fr);gap:16px}.login{border:0;border-radius:0;padding:24px 20px;margin:0 auto}.login h1{font-size:30px}.packet-inputs{gap:16px}.packet-inputs .answer-label{font-size:12px}.course-plan li{gap:10px}.course-plan small{font-size:12px}.bottom-nav .icon{width:18px;height:18px}.parent-shell .page-heading{flex-wrap:wrap}}
@media(max-width:360px){.header-profile small{display:none}.header-actions{gap:10px}.header-profile{max-width:92px}.brand{font-size:21px}.brand-mark{flex-shrink:0}.app-header{padding-inline:16px}.content,.child-content{padding-inline:16px}.bottom-nav a{font-size:12px;padding-inline:4px;gap:5px}}
@media(prefers-reduced-motion:no-preference){.button{transition:background-color 150ms ease-out}}
