.app-shell{width:min(1120px,calc(100% - 40px));margin:32px auto 48px}.backup-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:20px 0}.app-shell button,.backup-button{border:1px solid var(--line);border-radius:var(--btn-radius-md);background:var(--surface);color:var(--text);padding:10px 14px;cursor:pointer;font:inherit}.app-shell button:hover,.backup-button:hover{border-color:var(--brand)}.app-shell button:disabled{opacity:.45;cursor:not-allowed}.app-shell .next-button{background:var(--brand);color:var(--brand-ink)}.app-shell .hero{padding:24px 0 36px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.app-shell h1{font-size:clamp(30px,4vw,48px);line-height:1.1;margin:0}.intro,.hint,.local-footer{color:var(--muted)}.streak-card{display:flex;flex-direction:column;gap:16px;min-width:0}.streak-card>div{overflow:auto}.streak-heatmap{display:grid;grid-template-rows:repeat(7,8px);grid-auto-flow:column;grid-auto-columns:8px;gap:2px}.heat-cell{background:var(--surface-2);width:8px;height:8px;border-radius:2px}.heat-cell.l1{background:color-mix(in srgb,var(--brand) 25%,var(--surface))}.heat-cell.l2{background:color-mix(in srgb,var(--brand) 50%,var(--surface))}.heat-cell.l3{background:color-mix(in srgb,var(--brand) 75%,var(--surface))}.heat-cell.l4{background:var(--brand)}.performance-chart svg{width:100%;max-width:400px;height:100px}.chart-key{display:flex;gap:20px;font-size:12px}.chart-key span:first-child{color:var(--brand)}.chart-key span+span{color:var(--amber)}.chart-grid{stroke:var(--line)}.speed-line,.accuracy-line{fill:none;stroke:var(--brand);stroke-width:2}.accuracy-line{stroke:var(--amber)}.performance-chart text{fill:var(--muted);font-size:8px}.workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.lesson-panel,.trainer,.report-card,.targets-block{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:20px;min-width:0}.lesson-panel{grid-row:span 2;align-self:start}.panel-heading,.trainer-head,.section-title{display:flex;justify-content:space-between;gap:12px}.level-list{display:grid;gap:8px;margin:16px 0}.app-shell .level{display:flex;gap:10px;text-align:left;font-size:13px}.level-name{flex:1}.level-name:after{content:' / 6';font-size:11px;color:var(--muted)}.app-shell .level.current{border-color:var(--brand);background:var(--surface-2)}.locked{opacity:.45;pointer-events:none}.tip-card,.section-label,.goal-nudge{color:var(--muted);font-size:13px}.trainer h2{font-size:20px;margin:0}.exercise-progress{font-size:12px;min-width:100px}.exercise-progress i,.goal-track{display:block;height:6px;background:var(--surface-2);border-radius:5px;overflow:hidden}#completionBar,#goalBar{display:block;height:100%;background:var(--brand)}.typing-card{margin-top:24px}.prompt{font:24px/1.8 ui-monospace,monospace;overflow-wrap:anywhere;min-height:110px}.pending{color:var(--muted)}.typed{color:var(--brand)}.wrong{color:var(--amber);text-decoration:underline}.cursor{background:var(--surface-2);border-bottom:2px solid var(--brand)}#typingInput{width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text)}#typingInput:focus{outline:2px solid var(--brand)}.hint{font-size:12px}.keyboard{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:24px 0}.key{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:min(42px,calc((100% - 55px)/12));height:44px;border:1px solid var(--line);border-radius:6px;padding:0;background:var(--surface-2);font-size:17px}.key.active{background:var(--brand);color:var(--brand-ink)}.break{flex-basis:100%;height:0}.space{width:40%;text-align:center}.lesson-navigation{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.nav-button kbd{font-size:11px}.finish-panel{margin-top:18px;padding:12px;background:var(--surface-2);border-radius:12px}.finish-panel p{display:grid;margin:0}.progress-section{grid-column:2}.section-title h2{font-size:24px;margin:0 0 20px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-card>span{color:var(--muted);font-size:13px}.report-card b{display:block;font-size:28px}.report-card small{font-size:12px}.report-card p{font-size:12px;color:var(--muted)}.momentum{margin-top:12px}.local-footer{padding:24px;text-align:center;font-size:12px}.local-footer a{color:var(--brand)}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:12px 18px;border-radius:12px;opacity:0;pointer-events:none;max-width:90vw}.toast.show{opacity:1}[hidden]{display:none!important}@media(max-width:800px){.app-shell .hero,.workspace{grid-template-columns:1fr}.lesson-panel{grid-row:auto}.level-list{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-section{grid-column:auto}.trainer-head{flex-wrap:wrap}}@media(max-width:450px){.app-shell{width:calc(100% - 28px)}.report-grid{grid-template-columns:1fr}.key{height:36px;font-size:14px}.level-list{grid-template-columns:1fr}.prompt{font-size:20px}}
