:root{--mica-light:#f3f3f3;--mica-dark:#202020;--nav-h:64px;--radius:8px;--radius-lg:12px;--ease:cubic-bezier(.1, .9, .2, 1);--dur:.2s;-webkit-text-size-adjust:100%}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--mica-light);overscroll-behavior-y:none}@media (prefers-color-scheme:dark){body{background:var(--mica-dark)}}.app-root{min-height:100%;color:var(--colorNeutralForeground1);background:radial-gradient(1200px 600px at 100% -10%, #0067c012, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0078780d, transparent 60%), var(--mica-light);-webkit-tap-highlight-color:transparent;background-attachment:fixed;font-size:17px;line-height:1.6}.app-root.dark{background:radial-gradient(1200px 600px at 100% -10%, #4cc2ff14, transparent 60%), radial-gradient(900px 500px at -10% 110%, #00a0a00d, transparent 60%), var(--mica-dark)}button{font:inherit;color:inherit}.m{white-space:nowrap}.katex{font-size:1.12em}.muted{color:var(--colorNeutralForeground3)}.small{font-size:14px}.warn{color:var(--colorPaletteRedForeground1)}.shell{flex-direction:column;min-height:100dvh;display:flex}.main{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));flex:1}.nav{z-index:10;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb, var(--colorNeutralBackground1) 78%, transparent);-webkit-backdrop-filter:blur(30px)saturate(1.4);border-top:1px solid var(--colorNeutralStroke2);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.nav-brand{display:none}.nav-item{cursor:pointer;color:var(--colorNeutralForeground2);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;display:flex;position:relative}.nav-item.active{color:var(--colorBrandForeground1);font-weight:600}.nav-item.active:before{content:"";background:var(--colorBrandBackground);border-radius:2px;width:20px;height:3px;position:absolute;top:6px}@media (min-width:900px){.shell{flex-direction:row}.nav{-webkit-backdrop-filter:none;background:0 0;border-top:0;flex-direction:column;flex:none;gap:4px;width:260px;height:100dvh;padding:16px 8px;display:flex;position:sticky;top:0}.nav-brand{color:var(--colorNeutralForeground2);padding:8px 16px 20px;font-size:15px;font-weight:600;display:block}.nav-item{height:40px;color:var(--colorNeutralForeground1);border-radius:6px;flex-direction:row;justify-content:flex-start;gap:14px;padding:0 14px;font-size:15px}.nav-item:hover{background:var(--colorSubtleBackgroundHover)}.nav-item.active{background:var(--colorSubtleBackgroundSelected);font-weight:400}.nav-item.active:before{width:3px;height:18px;top:11px;left:0}.main{max-width:900px;padding:24px 32px 48px 8px}}.page{flex-direction:column;gap:12px;max-width:640px;margin:0 auto;padding:20px 16px 24px;display:flex}.page-title{letter-spacing:.01em;margin:8px 0;font-size:26px;font-weight:600}.card{background:color-mix(in srgb, var(--colorNeutralBackground1) 82%, transparent);border:1px solid var(--colorNeutralStroke2);border-radius:var(--radius);padding:16px;box-shadow:0 1px 2px #0000000a}.card-title{align-items:center;gap:6px;font-size:16px;font-weight:600;display:flex}.card-sub{margin-top:16px;font-size:14px;font-weight:600}.card-text{color:var(--colorNeutralForeground2);font-size:15px}.row2{grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;display:grid}.pill{background:var(--colorNeutralBackground3);color:var(--colorNeutralForeground2);white-space:nowrap;border-radius:99px;padding:1px 8px;font-size:12px}.pill.accent{background:var(--colorBrandBackground2);color:var(--colorBrandForeground1)}.note{margin:8px 0;font-size:15px}.lead{margin:8px 0;font-size:18px}.home{min-height:calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom))}@media (min-width:900px){.home{min-height:70vh}}.home-top{flex-direction:column;gap:12px;display:flex}.home-bottom{flex-direction:column;gap:10px;margin-top:auto;padding-top:24px;display:flex}.hello{margin:16px 0 4px;font-size:30px;font-weight:600}.goal{align-items:center;gap:16px;display:flex}.goal-ring{--p:0%;background:radial-gradient(closest-side, var(--colorNeutralBackground1) 76%, transparent 78%), conic-gradient(var(--colorBrandBackground) var(--p), var(--colorNeutralBackground3) 0);width:64px;height:64px;color:var(--colorBrandForeground1);border-radius:50%;flex:none;place-items:center;font-size:24px;font-weight:600;display:grid}.cleared-line{color:var(--colorNeutralForeground2);padding:0 4px}.cleared-line strong{color:var(--colorNeutralForeground1);margin-left:4px;font-size:22px}.next-card{text-align:left;cursor:pointer;border-radius:var(--radius-lg);background:var(--colorBrandBackground);min-height:80px;color:var(--colorNeutralForegroundOnBrand);transition:transform var(--dur) var(--ease), background var(--dur);border:0;align-items:center;gap:14px;padding:16px;display:flex;box-shadow:0 2px 6px #0000001f}.next-card:hover{background:var(--colorBrandBackgroundHover)}.next-card:active{transform:scale(.98)}.next-card .badge{color:inherit;background:#ffffff2e}.next-text{flex-direction:column;flex:1;display:flex}.next-label{font-size:20px;font-weight:600}.next-title{opacity:.9;font-size:14px}.big{width:100%;min-height:52px;border-radius:var(--radius)!important;font-size:17px!important}.badge{background:var(--colorBrandBackground2);color:var(--colorBrandForeground1);border-radius:50%;flex:none;place-items:center;display:inline-grid}.badge.muted{background:var(--colorNeutralBackground3);color:var(--colorNeutralForeground3)}.badges{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px;margin-top:12px;display:grid}.badge-item{text-align:center;color:var(--colorNeutralForeground2);flex-direction:column;align-items:center;gap:4px;font-size:12px;display:flex}.unit-list{flex-direction:column;gap:8px;display:flex}.unit{padding:0;overflow:hidden}.unit-head{cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 16px;display:flex}.unit-head:hover{background:var(--colorSubtleBackgroundHover)}.unit-text{flex-direction:column;flex:1;line-height:1.3;display:flex}.unit-grade{color:var(--colorNeutralForeground3);font-size:12px}.unit-title{font-size:17px;font-weight:600}.unit-count{color:var(--colorNeutralForeground3);font-size:14px}.chev{transition:transform var(--dur) var(--ease);color:var(--colorNeutralForeground3)}.unit.open .chev{transform:rotate(90deg)}.step-list{border-top:1px solid var(--colorNeutralStroke2);margin:0;padding:0 0 8px;list-style:none}.step-row{cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 16px 0 24px;font-size:16px;display:flex}.step-row:hover{background:var(--colorSubtleBackgroundHover)}.step-row span:first-of-type{flex:1}.step-row.current{font-weight:600}.step-row .ok{color:var(--colorPaletteGreenForeground1)}.step-row .todo{color:var(--colorNeutralForeground3)}.cal-head{justify-content:space-between;align-items:center;display:flex}.cal{text-align:center;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:8px;display:grid}.cal-w{color:var(--colorNeutralForeground3);font-size:12px}.cal-d{aspect-ratio:1;border-radius:50%;place-items:center;font-size:15px;display:grid}.cal-d.today{outline:2px solid var(--colorBrandStroke1);outline-offset:-2px}.cal-d.some{background:var(--colorNeutralBackground3)}.cal-d.stamp{background:var(--colorBrandBackground2);color:var(--colorBrandForeground1)}.cal-legend{color:var(--colorNeutralForeground3);align-items:center;gap:6px;margin-top:8px;font-size:13px;display:flex}.link-row{cursor:pointer;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;width:100%;padding:0;display:flex}.link-row>span{flex-direction:column;display:flex}.danger-zone{background:0 0;border-style:dashed}.overlay{justify-content:center;min-height:100dvh;display:flex}.lesson{width:100%;max-width:560px;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom);flex-direction:column;display:flex}.lesson-head{align-items:center;gap:8px;min-height:56px;padding:8px 8px 0;display:flex}.lesson-title{flex-direction:column;flex:1;min-width:0;line-height:1.3;display:flex}.unit-name{color:var(--colorNeutralForeground3);font-size:12px}.step-name{white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.counter{color:var(--colorNeutralForeground3);padding:0 8px;font-size:14px}.dots{gap:6px;padding:0 8px;display:flex}.dot{background:var(--colorNeutralBackground3);border:1px solid var(--colorNeutralStroke1);width:10px;height:10px;transition:all var(--dur) var(--ease);border-radius:50%}.dot.done{background:var(--colorBrandBackground);border-color:#0000}.dot.now{border-color:var(--colorBrandStroke1);border-radius:5px;width:22px}.problem{animation:enter .26s var(--ease);flex-direction:column;flex:1;padding:8px 16px 12px;display:flex}.problem-top{flex-direction:column;gap:12px;padding:12px 4px;display:flex}.problem-top.center{text-align:center;align-items:center;padding-top:48px}.problem-bottom{flex-direction:column;gap:10px;margin-top:auto;display:flex}.question{font-size:24px;line-height:1.9}.question .katex{font-size:1.25em}.tag-label{color:var(--colorBrandForeground1);background:var(--colorBrandBackground2);border-radius:99px;align-self:flex-start;padding:2px 10px;font-size:13px;font-weight:600}.figure{background:var(--colorNeutralBackground1);border-radius:var(--radius);border:1px solid var(--colorNeutralStroke2);align-self:center;width:100%;max-width:300px}.fig-grid{stroke:var(--colorNeutralStroke2);stroke-width:1px}.fig-axis{stroke:var(--colorNeutralForeground2);stroke-width:1.5px}.fig-line,.fig-line path{stroke:var(--colorBrandForeground1);stroke-width:3px;fill:none;stroke-linecap:round}.fig-point{fill:var(--colorBrandForeground1);stroke:var(--colorNeutralBackground1);stroke-width:2px}.fig-label{fill:var(--colorNeutralForeground3);font-size:10px}.fig-axisname{fill:var(--colorNeutralForeground2);font-size:13px;font-style:italic}.steps{flex-direction:column;gap:6px;margin:0;padding-left:1.4em;font-size:17px;display:flex}.steps li{animation:enter .26s var(--ease) both}.example-steps{gap:10px;font-size:18px}.reveal{animation:enter .26s var(--ease) both}.choices{grid-template-columns:1fr 1fr;gap:8px;display:grid}.choice{cursor:pointer;border-radius:var(--radius);border:1px solid var(--colorNeutralStroke1);background:var(--colorNeutralBackground1);min-height:64px;transition:border-color var(--dur), background var(--dur), transform .1s;padding:8px;font-size:20px;box-shadow:0 1px 2px #0000000d}.choice:active:not(:disabled){transform:scale(.98)}.choice.sel{border:2px solid var(--colorBrandStroke1);background:var(--colorBrandBackground2)}.choice.out{opacity:.35;text-decoration:line-through}.choice.right{border:2px solid var(--colorPaletteGreenBorder2);background:var(--colorPaletteGreenBackground1)}.choice:disabled{cursor:default}.answer-row{gap:8px;display:flex}.answer-box{cursor:text;border-radius:var(--radius);background:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom:2px solid var(--colorNeutralStrokeAccessible);flex:1;align-items:center;gap:8px;min-height:60px;padding:0 16px;font-size:24px;display:flex}.answer-box.focus{border-bottom-color:var(--colorBrandStroke1)}.answer-box.done{border-bottom-color:var(--colorNeutralStroke1)}.answer-box .val{flex:1;align-items:center;min-width:0;display:flex;overflow:hidden}.answer-box .ph{color:var(--colorNeutralForeground4)}.answer-box .pre,.answer-box .suf{color:var(--colorNeutralForeground2)}.caret{background:var(--colorBrandForeground1);width:2px;height:1.1em;margin-left:2px;animation:1s step-end infinite blink}.keypad{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.key{border-radius:var(--radius);cursor:pointer;border:1px solid var(--colorNeutralStroke2);background:var(--colorNeutralBackground1);touch-action:manipulation;-webkit-user-select:none;user-select:none;place-items:center;height:54px;font-size:22px;display:grid;box-shadow:0 1px 1px #0000000f}.key.op{background:var(--colorNeutralBackground3)}.key:active{background:var(--colorNeutralBackground1Pressed);transform:scale(.97)}.key .katex{font-size:1em}.actions{flex-direction:column;gap:6px;display:flex}.switch{align-self:center}.fb{border-radius:var(--radius);animation:enter .22s var(--ease);align-items:flex-start;gap:12px;max-height:46dvh;padding:12px 14px;font-size:16px;display:flex;overflow:auto}.fb-title{margin-bottom:2px;font-size:17px;font-weight:600}.fb-sub{color:var(--colorNeutralForeground2);margin-top:4px;font-size:14px;display:block}.fb-ok{background:var(--colorPaletteGreenBackground1);color:var(--colorPaletteGreenForeground1);align-items:center}.fb-ok .fb-title{font-size:20px}.fb-hint{background:var(--colorPaletteYellowBackground1);color:var(--colorNeutralForeground1)}.fb-hint svg{color:var(--colorPaletteMarigoldForeground1,#8a5a00);flex:none}.fb-explain{background:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke2)}.fb-explain svg{color:var(--colorBrandForeground1);flex:none}.fb-note{background:var(--colorNeutralBackground3);color:var(--colorNeutralForeground2)}.fb-answer{margin-top:8px;font-size:18px;font-weight:600}.result h2{margin:12px 0 0;font-size:28px}.result p{margin:4px 0;font-size:17px}.badge-big{background:var(--colorBrandBackground2);width:112px;height:112px;color:var(--colorBrandForeground1);border-radius:50%;place-items:center;display:grid}.badge-big .badge{background:0 0}.okay{background:var(--colorNeutralBackground3);color:var(--colorNeutralForeground2);border-radius:99px;margin-top:20px;padding:6px 16px;font-size:15px}.goal-note{color:var(--colorBrandForeground1);font-weight:600}.start-name{font-weight:600;line-height:1.5;font-size:22px!important}.start-name .sub{color:var(--colorNeutralForeground2);font-size:16px;font-weight:400}ul.plain{flex-direction:column;gap:6px;padding-left:1.2em;font-size:17px;display:flex}.report-head{align-items:center;gap:4px;display:flex}.kv{grid-template-columns:auto 1fr;gap:6px 16px;margin:8px 0 0;font-size:15px;display:grid}.kv dt{color:var(--colorNeutralForeground3)}.kv dd{margin:0}.tbl{border-collapse:collapse;width:100%;margin-top:8px;font-size:14px}.tbl th,.tbl td{text-align:left;border-bottom:1px solid var(--colorNeutralStroke2);padding:6px 4px}.tbl th{color:var(--colorNeutralForeground3);font-size:12px;font-weight:600}.bars{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;font-size:14px;list-style:none;display:flex}.bars li{grid-template-columns:1fr 80px 40px;align-items:center;gap:8px;display:grid}.bars .bar{background:var(--colorBrandBackground);border-radius:4px;min-width:2px;height:8px}.bars .num{text-align:right;color:var(--colorNeutralForeground3)}.wrong-list{flex-direction:column;gap:12px;margin:8px 0 0;padding:0;list-style:none;display:flex}.wrong-list li{border-bottom:1px solid var(--colorNeutralStroke2);padding-bottom:10px}.day-list{margin:8px 0 0;padding:0;font-size:14px;list-style:none}.day-list li{border-bottom:1px solid var(--colorNeutralStroke2);justify-content:space-between;padding:4px 0;display:flex}@keyframes enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes popin{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.08)}to{transform:scale(1)}}@keyframes blink{50%{opacity:0}}.pop{animation:popin .36s var(--ease) both}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:1ms!important;animation-duration:1ms!important}}@media (max-width:360px){.question{font-size:20px}.key{height:50px}.choice{font-size:18px}}@media (max-height:700px){.key{height:46px}.problem-top{padding:4px}}.hello-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.user-chip{cursor:pointer;border:1px solid var(--colorNeutralStroke2);background:color-mix(in srgb, var(--colorNeutralBackground1) 82%, transparent);white-space:nowrap;text-overflow:ellipsis;border-radius:99px;align-items:center;gap:8px;max-width:50%;padding:4px 12px 4px 4px;font-size:15px;display:inline-flex;overflow:hidden}.user-chip:hover{background:var(--colorSubtleBackgroundHover)}.user-tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;display:grid}.user-tile{cursor:pointer;border-radius:var(--radius-lg);border:1px solid var(--colorNeutralStroke2);background:var(--colorNeutralBackground1);min-height:132px;transition:transform .1s, border-color var(--dur);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px 8px;display:flex;box-shadow:0 1px 2px #0000000d}.user-tile:hover{border-color:var(--colorBrandStroke1)}.user-tile:active{transform:scale(.98)}.user-tile.current{border:2px solid var(--colorBrandStroke1)}.user-tile .user-name{word-break:break-all;text-align:center;font-size:18px;font-weight:600}.user-list{flex-direction:column;gap:2px;margin:8px 0 12px;padding:0;list-style:none;display:flex}.user-list li{border-radius:6px;align-items:center;gap:2px;display:flex}.user-list li.current{background:var(--colorSubtleBackgroundSelected)}.user-row{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;flex:1;align-items:center;gap:12px;min-width:0;min-height:52px;padding:0 8px;display:flex}.user-row:hover{background:var(--colorSubtleBackgroundHover)}.user-row .user-name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:16px;overflow:hidden}
