:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f6f5f9;--surface:#fff;--text:#22202b;--muted:#63606f;--line:#dedbe7;--accent:#54488a;--on-accent:#fff;--none:#8b8896;--can-say:#2468b4;--used:#23784a;--on-status:#fff;--danger:#b3261e;--tab-height:60px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#17151f;--surface:#221f2d;--text:#eceaf3;--muted:#aaa6b8;--line:#393548;--accent:#b5a8ec;--on-accent:#1d1832;--none:#86829a;--can-say:#78b2f2;--used:#6bc994;--on-status:#15131c;--danger:#f2a39c}}*{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;margin:0;font:16px/1.6 system-ui,Noto Sans JP,sans-serif}button,a{touch-action:manipulation}button{min-height:44px;font:inherit;color:inherit;cursor:pointer}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}#view{max-width:640px;padding:calc(12px + env(safe-area-inset-top)) 16px calc(var(--tab-height) + env(safe-area-inset-bottom) + 32px);outline:none;margin:0 auto}h1{margin:0;font-size:22px;line-height:1.4}h2{color:var(--muted);margin:28px 0 8px;font-size:16px}.head{align-items:center;gap:4px;min-height:48px;margin-bottom:12px;display:flex}.head h1{flex:1}.icon-button{width:48px;height:48px;color:var(--muted);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.head .icon-button:first-child{margin-left:-12px}.head .icon-button:last-child{margin-right:-12px}svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.card{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:16px}.note{color:var(--muted);margin:0}.button{background:var(--accent);min-height:48px;color:var(--on-accent);border:0;border-radius:12px;padding:0 24px;font-weight:600}.button.plain{background:var(--line);color:var(--text)}.button.outline{border:1px solid var(--accent);color:var(--accent);background:0 0}.button.wide{width:100%}.button.used{background:var(--used);color:var(--on-status)}.button.danger{background:var(--danger);color:var(--on-status)}.counts{grid-template-columns:1fr 1fr;gap:12px;display:grid}.count{text-align:center}.count strong{font-variant-numeric:tabular-nums;font-size:52px;line-height:1.15;display:block}.count.used strong{color:var(--used)}.count.canSay strong{color:var(--can-say)}.total{text-align:center;color:var(--muted);margin:8px 0 0}.segments{background:var(--line);border-radius:14px;grid-auto-columns:1fr;grid-auto-flow:column;margin-bottom:12px;padding:4px;display:grid}.segments button{background:0 0;border:0;border-radius:10px}.segments [aria-pressed=true]{background:var(--surface);color:var(--accent);font-weight:600}.rows{margin:0;padding:0;list-style:none}.rows a{min-height:60px;color:inherit;align-items:center;gap:12px;margin-bottom:8px;padding:8px 16px;text-decoration:none;display:flex}.rows .title{flex:1}.dots{gap:6px;display:flex}.dot{border:2px solid var(--none);border-radius:50%;width:18px;height:18px}.dot.canSay{border-color:var(--can-say);background:linear-gradient(90deg, var(--can-say) 50%, transparent 50%)}.dot.used{border-color:var(--used);background:var(--used)}.scene{padding-bottom:76px}.goal{margin:0 0 16px;font-weight:600}.status-bar{inset:auto 0 calc(var(--tab-height) + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg);max-width:640px;margin:0 auto;padding:8px 16px;position:fixed}.status-bar .segments{margin:0}.status-bar button{min-height:48px}.status-bar [aria-pressed=true]{color:var(--on-status)}.status-bar .none[aria-pressed=true]{background:var(--surface);color:var(--text)}.status-bar .canSay[aria-pressed=true]{background:var(--can-say)}.status-bar .used[aria-pressed=true]{background:var(--used)}@media (prefers-reduced-motion:no-preference){.celebrate .used{animation:.45s ease-out pop}}@keyframes pop{40%{box-shadow:0 0 0 8px color-mix(in srgb, var(--used) 35%, transparent);transform:scale(1.12)}}.phrases{margin:12px 0;padding:0;list-style:none}.phrases li{gap:4px;margin-bottom:8px;padding:12px 4px 12px 16px;display:flex}.phrases .text{overflow-wrap:anywhere;flex:1;min-width:0}.phrases p{white-space:pre-wrap;margin:0}.phrases .en{margin-top:4px;font-size:20px;font-weight:600;line-height:1.4}.phrases .memo{color:var(--muted);margin-top:6px;font-size:14px}.phrases .side{flex:none}.reveal{border:1px dashed var(--none);color:var(--muted);background:0 0;border-radius:10px;margin-top:4px;padding:0 16px}.speak{color:var(--accent)}.speaking{background:var(--accent);color:var(--on-accent)}.logs{margin:0;padding:0 16px;list-style:none}.logs li{align-items:center;min-height:56px;padding:8px 0;display:flex}.logs li+li{border-top:1px solid var(--line)}.logs li>:first-child{overflow-wrap:anywhere;flex:1;min-width:0}.logs a{min-height:44px;color:inherit;text-decoration:none;display:block}.logs time{color:var(--used);font-weight:600}.logs p{white-space:pre-wrap;margin:0}.band+.band{margin-top:16px}.bar{border-radius:7px;gap:2px;height:14px;margin:6px 0;display:flex;overflow:hidden}.bar .used,.legend .used:before{background:var(--used)}.bar .canSay,.legend .canSay:before{background:var(--can-say)}.bar .none,.legend .none:before{background:var(--line)}.legend{color:var(--muted);flex-wrap:wrap;gap:0 16px;margin:0;font-size:14px;display:flex}.legend span:before{content:"";border-radius:50%;width:10px;height:10px;margin-right:6px;display:inline-block}.sheet{background:var(--surface);width:100%;max-width:640px;max-height:calc(100% - 24px);color:var(--text);border:0;border-radius:20px 20px 0 0;margin:auto auto 0;padding:0}.sheet::backdrop{background:#00000080}.sheet-body{padding:20px 16px calc(16px + env(safe-area-inset-bottom))}.sheet h2{color:inherit;overflow-wrap:anywhere;margin:0 0 12px;font-size:18px}.sheet label{color:var(--muted);margin-bottom:16px;display:block}.sheet input,.sheet textarea{border:1px solid var(--none);background:var(--bg);width:100%;min-height:48px;color:var(--text);font:inherit;resize:vertical;border-radius:10px;margin-top:4px;padding:10px 12px;display:block}.actions{gap:12px;margin-top:8px;display:flex}.actions .button{flex:1}.menu-item{border:0;border-bottom:1px solid var(--line);text-align:left;background:0 0;width:100%;min-height:52px;padding:0;display:block}#tabs{max-width:640px;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:var(--surface);grid-template-columns:repeat(5,1fr);margin:0 auto;display:grid;position:fixed;inset:auto 0 0}#tabs a{height:var(--tab-height);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;font-size:12px;line-height:1.4;text-decoration:none;display:flex}#tabs a[aria-current=page]{color:var(--accent);font-weight:700}#tabs .add{background:var(--accent);width:52px;height:52px;color:var(--on-accent);border-radius:50%;place-self:center}#tabs .add svg{stroke-width:2.5px;width:28px;height:28px}#update-bar{inset:auto 0 calc(var(--tab-height) + env(safe-area-inset-bottom) + 8px);background:var(--text);width:calc(100% - 32px);max-width:608px;color:var(--bg);border-radius:12px;justify-content:space-between;align-items:center;margin:0 auto;padding:4px 4px 4px 16px;display:flex;position:fixed}#update-bar button{background:0 0;border:0;min-width:72px;font-weight:700}#toast{inset:auto 16px calc(var(--tab-height) + env(safe-area-inset-bottom) + 80px);background:var(--text);max-width:608px;color:var(--bg);border-radius:12px;margin:0 auto;padding:12px 16px;position:fixed}@media (max-height:420px){#tabs,.status-bar{position:static}}body:has(.status-bar) #update-bar{bottom:calc(var(--tab-height) + env(safe-area-inset-bottom) + 84px)}
