:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4efe7;color:var(--ink);--app-background-image: url(/backgrounds/perapon-forest.jpg);--page-padding: clamp(1rem, 3vw, 2.4rem);--page-padding-mobile: .75rem;--card-padding-mobile: .9rem;--radius-mobile: 20px;--safe-bottom: env(safe-area-inset-bottom, 0px);--color-primary: #f97316;--color-primary-hover: #ea580c;--color-primary-strong: #c2410c;--color-brand-ink: #9a3412;--color-brand-deep: #7c2d12;--color-brand-deepest: #431407;--color-brand-gold: #b45309;--surface-cream: #fff7ed;--surface-card: #fff;--surface-subtle: #f8fafc;--surface-peach: #ffedd5;--ink: #172033;--ink-soft: #334155;--ink-muted: #475569;--ink-faint: #64748b;--ink-disabled: #94a3b8;--border: #e2e8f0;--border-strong: #cbd5e1;--border-amber: #fed7aa;--success: #16a34a;--success-strong: #166534;--success-surface: #f0fdf4;--danger: #dc2626;--danger-strong: #b91c1c;--danger-surface: #fef2f2;--warning: #92400e;--warning-surface: #fffbeb;--warning-border: #fde68a;--info: #0369a1;--radius-pill: 999px;--radius-xl: 28px;--radius-lg: 24px;--radius-md: 18px;--radius-sm: 14px;--shadow-pop: 0 32px 80px rgba(15, 23, 42, .2);--shadow-soft: 0 18px 54px rgba(15, 23, 42, .07)}*{box-sizing:border-box}html{min-height:100%;width:100%;max-width:100%;overflow-x:hidden;background:#f4efe7}body{margin:0;min-height:100vh;width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;background:radial-gradient(circle at 50% 22%,#ffedd5c7 0,#fff7ed7a 38%,#43140738),linear-gradient(180deg,#fff7edb8,#fed7aa47 44%,#7f1d1d2e),var(--app-background-image);background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}#root{min-height:100%;width:100%;max-width:100%;min-width:0}@supports (overflow-x: clip){html,body{overflow-x:clip}}a{color:inherit;text-decoration:none}button,.button{border:0;border-radius:var(--radius-pill);background:var(--color-primary);color:#fff;padding:.78rem 1.1rem;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;transition:background .15s ease,transform .1s ease}button:hover,.button:hover{background:var(--color-primary-hover)}button:active,.button:active{transform:scale(.98)}button:disabled,.button:disabled{opacity:.5;cursor:not-allowed;transform:none}button.primary,.button.primary{background:var(--color-primary);color:#fff}button.primary:hover,.button.primary:hover{background:var(--color-primary-hover)}button.secondary,.button.secondary{background:#e8eef7;color:var(--ink)}button.secondary:hover,.button.secondary:hover{background:#d7e2f2}button.ghost,.button.ghost{background:transparent;color:var(--ink);border:1px solid var(--border-strong)}button.ghost:hover,.button.ghost:hover{background:#00000008}input,textarea,select{width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:.9rem 1rem;font:inherit;background:#ffffffd6;color:var(--ink)}.stacked-form{display:grid;gap:.9rem;margin:1rem 0}.stacked-form label{display:grid;gap:.35rem;font-weight:800;color:var(--ink-soft)}.field-hint{color:var(--ink-faint);font-weight:600;font-size:.78rem}.local-launcher{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(148,163,184,.28)}.local-launcher p{margin:.25rem 0 .8rem;color:var(--ink-muted)}.local-launcher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.local-launcher-grid button{border-radius:20px;flex-direction:column;align-items:flex-start;gap:.25rem;text-align:left}.local-launcher-grid button small{color:inherit;font-weight:600;opacity:.82}textarea{min-height:130px;resize:vertical}pre{white-space:pre-wrap;background:#111827;color:#e5e7eb;padding:1rem;border-radius:18px;overflow:auto}.app-shell{min-height:100vh}.app-shell.conversation-route{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.topbar{position:sticky;top:0;z-index:10;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);background:#fff7edd1;border-bottom:1px solid rgba(148,163,184,.25);box-shadow:0 10px 34px #43140714;display:flex;align-items:center;gap:1rem;padding:.8rem clamp(1rem,3vw,2rem)}.brand{font-size:1.25rem;font-weight:900;letter-spacing:-.04em;white-space:nowrap}.brand span{color:var(--color-brand-gold)}.nav-scroll{min-width:0;display:flex;gap:.35rem;overflow-x:auto;flex:1;scrollbar-width:none}.nav-scroll::-webkit-scrollbar{display:none}.nav-scroll a{white-space:nowrap;padding:.55rem .8rem;border-radius:var(--radius-pill);color:var(--ink-muted);font-weight:700;font-size:.92rem}.nav-scroll a.active{background:var(--ink);color:#fff}.topbar-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.direction-switcher{display:inline-flex;align-items:center;gap:.35rem;padding:.18rem .22rem .18rem .68rem;border:1px solid var(--border-strong);border-radius:var(--radius-pill);background:#ffffff6b;color:var(--ink-faint);font-size:.74rem;font-weight:900;letter-spacing:.02em;white-space:nowrap}.direction-switcher select{width:auto;min-width:86px;border:0;border-radius:var(--radius-pill);padding:.48rem 1.7rem .48rem .62rem;background:#ffffffe6;color:var(--ink);font-size:.82rem;font-weight:900}.direction-switcher select:disabled{opacity:.6;cursor:wait}.topbar-icon-link{width:42px;height:42px;border-radius:var(--radius-pill);border:1px solid var(--border-strong);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;background:#ffffff4d;transition:background .15s ease,transform .1s ease}.topbar-icon-link:hover,.topbar-icon-link.active{background:#17203314}.topbar-icon-link:active{transform:scale(.96)}.topbar-actions .install-button{white-space:nowrap;padding:.52rem .76rem;font-size:.82rem}main{padding:clamp(1rem,3vw,2.4rem)}main.conversation-main{flex:1;min-height:0;overflow:hidden;padding:clamp(.75rem,2vw,1rem)}.offline-pill{position:fixed;right:1rem;bottom:1rem;z-index:20;padding:.55rem .9rem;border-radius:999px;font-weight:800;box-shadow:0 16px 38px #0f172a29}.offline-pill.online{background:#dcfce7;color:var(--success-strong)}.offline-pill.offline{background:#fef3c7;color:var(--warning)}.install-help{position:fixed;left:1rem;bottom:calc(5.3rem + var(--safe-bottom));z-index:35;width:min(430px,calc(100vw - 2rem));display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.9rem;border:1px solid rgba(251,146,60,.34);border-radius:24px;background:#fff7edf5;box-shadow:0 24px 70px #4314072e;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.install-help-mark{width:42px;height:42px;border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--color-brand-deep),var(--color-brand-deepest));color:var(--border-amber);font-weight:950;box-shadow:inset 0 0 0 1px #ffffff1f}.install-help-copy{min-width:0}.install-help-copy strong{display:block;color:var(--color-brand-deepest);letter-spacing:-.02em}.install-help-copy p{margin:.18rem 0 0;color:var(--color-brand-deep);font-size:.86rem;line-height:1.4}.install-help-actions{display:flex;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.install-help-actions button{padding:.5rem .72rem;white-space:nowrap}.install-help-dismiss{padding:.5rem .72rem}.skeleton-block{display:grid;gap:.55rem}.skeleton-line{height:.95rem;border-radius:var(--radius-pill);background:linear-gradient(90deg,#94a3b82e 25%,#94a3b852,#94a3b82e 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}.skeleton-line:nth-child(2n){width:86%}.skeleton-line:nth-child(3n){width:72%}.skeleton-title{height:1.4rem;width:46%;margin-bottom:.9rem}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.skeleton-line{animation:none}}.empty-state{display:grid;justify-items:center;text-align:center;gap:.45rem;padding:1.4rem 1rem;color:var(--ink-faint)}.empty-state strong{color:var(--ink-soft);font-size:1.02rem}.empty-state p{margin:0;max-width:36ch;line-height:1.5}.empty-state.compact{padding:.8rem .5rem}.error-state{display:grid;justify-items:start;gap:.5rem;padding:.9rem 1rem;border:1px solid #fecaca;border-radius:var(--radius-md);background:var(--danger-surface);color:var(--danger-strong)}.error-state strong{font-size:1rem}.error-state p{margin:0;line-height:1.5}.toast{position:fixed;left:50%;bottom:calc(1.4rem + var(--safe-bottom));transform:translate(-50%);z-index:60;display:inline-flex;align-items:center;gap:.55rem;max-width:min(440px,calc(100vw - 2rem));padding:.7rem 1rem;border-radius:var(--radius-pill);font-weight:800;font-size:.92rem;box-shadow:var(--shadow-pop);animation:toast-in .22s ease}.toast-success{background:#dcfce7;color:var(--success-strong)}.toast-error{background:#fee2e2;color:var(--danger-strong)}.toast-info{background:#e0f2fe;color:var(--info)}.toast-dismiss{background:transparent;color:inherit;padding:0 .2rem;font-size:1.1rem;line-height:1}.toast-dismiss:hover{background:#0000000f}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.muted-note{color:var(--ink-faint);margin-top:0;font-size:.9rem}.correction-chip{background:var(--surface-cream);border:1px solid var(--border-amber);border-radius:16px;padding:.7rem .8rem}.correction-chip strong{color:var(--color-brand-ink)}.correction-chip p{margin:.25rem 0 0;color:var(--color-brand-deep);font-size:.82rem}.correction-chip .correction-original{text-decoration:line-through;opacity:.65}.correction-chip-list{display:grid;gap:.55rem}.meta-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.18rem .55rem;border-radius:var(--radius-pill);font-size:.72rem;font-weight:800;white-space:nowrap}.meta-badge.fit-easy{background:#dcfce7;color:var(--success-strong)}.meta-badge.fit-just-right{background:#e0f2fe;color:var(--info)}.meta-badge.fit-stretch{background:var(--warning-surface);color:var(--warning)}.meta-badge.fit-hard{background:#fee2e2;color:var(--danger-strong)}.meta-badge.lang{background:#ede9fe;color:#5b21b6}.meta-badge.source{background:var(--surface-subtle);color:var(--ink-muted);border:1px solid var(--border)}.runtime-info-table{display:grid;gap:.35rem}.runtime-info-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.6fr);gap:.6rem;align-items:baseline;background:var(--surface-subtle);border:1px solid var(--border);border-radius:10px;padding:.45rem .7rem;font-size:.84rem}.runtime-info-row span{color:var(--ink-faint);font-weight:700}.runtime-info-row strong{color:var(--ink-soft);font-weight:700;overflow-wrap:anywhere}.pera-ring-progress{transition:stroke-dasharray .7s ease}@media(prefers-reduced-motion:reduce){.pera-ring-progress{transition:none}}.hero-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:1rem;align-items:stretch}.hero-card{border-radius:38px;padding:clamp(2rem,5vw,5rem);box-shadow:0 24px 80px #0f172a26}.hero-card.dark{background:linear-gradient(135deg,#111827,#243041 64%,#7c2d12);color:#fff}.hero-card h1{max-width:880px;font-size:clamp(2.5rem,7vw,6.4rem);line-height:.92;letter-spacing:-.08em;margin:.3rem 0 1rem}.hero-card p{max-width:720px;font-size:1.12rem;color:#ffffffd1}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.76rem;font-weight:900;color:#b45309}.actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.25rem}.button.primary{background:#f97316}.stack{display:grid;gap:1rem}.feature-card,.panel,.price-card,.article-card{background:#ffffffd6;border:1px solid rgba(255,255,255,.62);box-shadow:0 24px 64px #4314071f;border-radius:28px;padding:1.3rem;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.feature-card{min-height:108px;display:flex;flex-direction:column;justify-content:center;font-size:1.1rem;font-weight:900}.hero-mascot-card{position:relative;overflow:hidden;border-radius:38px;padding:clamp(1rem,2.5vw,1.6rem);min-height:100%;background:radial-gradient(circle at 55% 22%,rgba(220,38,38,.18),transparent 32%),radial-gradient(circle at 26% 18%,rgba(255,247,237,.95),transparent 36%),linear-gradient(145deg,#fffbebfa,#fed7aad1 62%,#fb923c66);border:1px solid rgba(251,146,60,.34);box-shadow:0 24px 80px #9a341229;display:grid;gap:.8rem;align-content:space-between}.hero-mascot-card:before{content:"";position:absolute;inset:-35% auto auto -20%;width:72%;aspect-ratio:1;border-radius:50%;background:#ffffff61;filter:blur(18px);pointer-events:none}.hero-mascot-art-wrap{position:relative;z-index:1;display:flex;justify-content:center;margin:-.4rem -.2rem -1rem}.hero-mascot-illustration{width:min(100%,470px);margin-inline:auto}.hero-mascot-illustration svg,.hero-mascot-illustration img{display:block;width:100%;height:auto}.hero-mascot-image{border-radius:30px;box-shadow:0 24px 70px #43140729}.hero-mascot-copy{position:relative;z-index:1;background:#ffffff8f;border:1px solid rgba(251,146,60,.22);border-radius:26px;padding:1rem;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.hero-mascot-copy h2{margin:.2rem 0 .45rem;font-size:clamp(1.35rem,2.8vw,2rem);line-height:1.02;letter-spacing:-.055em;color:#431407}.hero-mascot-copy p:last-child{margin:0;color:#9a3412;font-weight:700;line-height:1.55}.hero-feature-chips{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:.5rem}.hero-feature-chips span{border-radius:999px;padding:.48rem .72rem;background:#ffffffb8;border:1px solid rgba(251,146,60,.24);color:#7c2d12;font-size:.82rem;font-weight:900;box-shadow:0 10px 22px #9a341214}.landing-page{max-width:1220px;margin:0 auto;display:grid;gap:1rem}.landing-hero-card{position:relative;overflow:hidden;display:grid;align-content:center}.landing-hero-card:after{content:"";position:absolute;inset:auto -12% -38% auto;width:min(520px,52vw);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,.34),transparent 68%);pointer-events:none}.landing-hero-card>*{position:relative;z-index:1}.landing-hero-card .eyebrow{color:#fed7aa}.landing-hero-card .button.secondary,.landing-final-card .button.secondary{background:#ffffffeb;color:#172033}.landing-hero-card .button.secondary:hover,.landing-final-card .button.secondary:hover{background:#fff}.landing-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1.6rem;max-width:920px}.landing-proof-card{border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:.95rem;background:#ffffff14;box-shadow:inset 0 1px #ffffff14}.landing-proof-card strong{display:block;color:#fdba74;font-size:1.35rem;line-height:1}.landing-proof-card span{display:block;margin-top:.35rem;color:#fff;font-weight:900}.landing-proof-card p{margin:.35rem 0 0;color:#ffffffb8;font-size:.88rem;line-height:1.45}.landing-section,.landing-showcase-card,.landing-final-card{background:#ffffffdb;border:1px solid rgba(255,255,255,.62);border-radius:30px;box-shadow:0 24px 64px #4314071f;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.landing-section,.landing-showcase-card,.landing-final-card{padding:clamp(1.2rem,3vw,2rem)}.landing-section-heading{display:grid;gap:.4rem;margin-bottom:1rem}.landing-section-heading .eyebrow,.landing-final-card .eyebrow,.landing-showcase-card .eyebrow{margin:0}.landing-section-heading h2,.landing-showcase-card h2,.landing-final-card h2{margin:0;color:#431407;letter-spacing:-.055em;line-height:1}.landing-section-heading h2{font-size:clamp(1.9rem,4vw,3.2rem)}.landing-section-heading p:not(.eyebrow),.landing-loop-card p,.landing-feature-card p,.landing-showcase-card p,.landing-final-card p{line-height:1.58}.landing-section-heading p:not(.eyebrow){max-width:860px;margin:0;color:#64748b;font-weight:750}.landing-loop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.landing-loop-card,.landing-feature-card{border:1px solid #e2e8f0;border-radius:24px;background:#f8fafc;padding:1rem}.landing-loop-card{min-height:100%}.landing-loop-card span{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:15px;background:#ffedd5;color:#9a3412;font-weight:950}.landing-loop-card h3,.landing-feature-card h3{margin:.8rem 0 .4rem;color:#172033;letter-spacing:-.035em}.landing-loop-card p,.landing-feature-card p{margin:0;color:#475569}.landing-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:.85rem}.landing-feature-card{display:grid;align-content:start;gap:.65rem;min-height:100%;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.landing-feature-card:hover{transform:translateY(-2px);border-color:#fed7aa;box-shadow:0 18px 42px #9a34121f}.landing-feature-head{display:flex;align-items:center;gap:.5rem}.landing-feature-icon{flex-shrink:0;color:var(--color-primary-strong)}.landing-feature-tag{width:fit-content;border-radius:999px;padding:.28rem .65rem;background:#ffedd5;color:#9a3412;font-size:.74rem;font-weight:900;letter-spacing:.04em}.landing-feature-card h3{margin:0;font-size:1.2rem}.landing-feature-card .link-button{justify-self:start;margin-top:.1rem;color:#c2410c;font-weight:900}.landing-split-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.landing-showcase-card{display:grid;align-content:start;gap:.75rem}.landing-showcase-card.featured{background:linear-gradient(135deg,#111827,#243041 68%,#9a3412);color:#fff;border-color:#ffffff24}.landing-showcase-card.featured .eyebrow{color:#fed7aa}.landing-showcase-card.featured h2{color:#fff}.landing-showcase-card h2,.landing-final-card h2{font-size:clamp(1.7rem,3.4vw,2.7rem)}.landing-showcase-card p,.landing-final-card p{margin:0;color:#64748b;font-weight:700}.landing-showcase-card.featured p{color:#ffffffc7}.landing-showcase-list{display:grid;gap:.55rem;margin-top:.25rem}.landing-showcase-list span{border-radius:18px;padding:.72rem .85rem;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;font-weight:800;line-height:1.45}.landing-showcase-card.featured .landing-showcase-list span{background:#ffffff1a;border-color:#ffffff24;color:#ffffffe6}.landing-final-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;background:radial-gradient(circle at 92% 14%,rgba(249,115,22,.22),transparent 36%),linear-gradient(135deg,#fffbebf5,#fed7aae0);border-color:#fb923c57}.landing-final-card p:not(.eyebrow){max-width:820px;color:#7c2d12}@media(max-width:980px){.landing-proof-grid,.landing-split-section,.landing-final-card{grid-template-columns:1fr}.landing-loop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-final-card .actions{justify-content:flex-start}}@media(max-width:640px){.landing-page{gap:.75rem}.landing-section,.landing-showcase-card,.landing-final-card{border-radius:var(--radius-mobile);padding:var(--card-padding-mobile)}.landing-loop-grid,.landing-feature-grid{grid-template-columns:1fr}.landing-proof-grid{gap:.55rem;margin-top:1rem}.landing-actions .button,.landing-actions button{width:100%}}.hero-tanu-float{animation:hero-tanu-float 4.2s ease-in-out infinite;transform-origin:260px 420px}.hero-tail-sway{animation:hero-tail-sway 2.6s ease-in-out infinite alternate;transform-origin:305px 380px}.hero-leaf-pulse{animation:hero-leaf-pulse 1.8s ease-in-out infinite alternate;transform-origin:250px 104px}.hero-eye-sparkle{animation:hero-eye-sparkle 5.6s ease-in-out infinite;transform-origin:250px 218px}.hero-flashcard-pop{animation:hero-flashcard-pop 2.8s cubic-bezier(.175,.885,.32,1.275) infinite;transform-origin:364px 317px}.hero-bubble-one,.hero-bubble-two,.hero-bubble-three{filter:drop-shadow(0 12px 24px rgba(67,20,7,.14))}.hero-bubble-one{animation:hero-bubble-float 3.6s ease-in-out infinite alternate}.hero-bubble-two{animation:hero-bubble-float 4s ease-in-out .4s infinite alternate-reverse}.hero-bubble-three{animation:hero-bubble-float 3.8s ease-in-out .8s infinite alternate}@keyframes hero-tanu-float{0%,to{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(-8px) rotate(.4deg)}}@keyframes hero-tail-sway{0%{transform:rotate(-2.4deg) translateY(2px)}to{transform:rotate(3.5deg) translateY(-4px)}}@keyframes hero-leaf-pulse{0%{transform:rotate(-4deg) translateY(0) scale(.98)}to{transform:rotate(5deg) translateY(-6px) scale(1.04)}}@keyframes hero-eye-sparkle{0%,88%,to{transform:scaleY(1)}91%{transform:scaleY(.09)}94%{transform:scaleY(1)}}@keyframes hero-flashcard-pop{0%,76%,to{transform:translateY(0) rotate(-2deg) scale(1)}84%{transform:translateY(-10px) rotate(3deg) scale(1.06)}92%{transform:translateY(1px) rotate(-1deg) scale(.99)}}@keyframes hero-bubble-float{0%{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-12px) rotate(1deg)}}.page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}.panel.wide{grid-column:span 2}.flashcards-grid{grid-template-columns:minmax(220px,.85fr) minmax(0,1.45fr) minmax(260px,.9fr)}.flashcards-grid>.panel.wide{grid-column:auto}.flashcards-review-card{scroll-margin-top:96px}.panel.narrow{max-width:720px;margin:0 auto}.panel h1,.panel h2,.panel h3{letter-spacing:-.04em}.panel h1{font-size:clamp(2rem,4vw,3.8rem);line-height:1;margin-top:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.stat-grid div{background:var(--surface-subtle);border-radius:22px;padding:1rem}.stat-grid strong{display:block;font-size:1.55rem}.stat-grid span{color:var(--ink-faint);font-size:.88rem}.stat-caption{display:block;margin-top:.35rem;color:var(--ink-disabled);font-size:.72rem;line-height:1.35}.next-pera-guide{margin-top:1.5rem;border:1px solid var(--border-amber);border-radius:var(--radius-lg);padding:1.1rem;background:linear-gradient(135deg,var(--surface-cream),var(--warning-surface) 55%,#fef3c7);box-shadow:inset 0 1px #ffffff9e}.next-pera-guide-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.next-pera-guide-head h2{margin:.15rem 0 .35rem;color:var(--color-brand-deep)}.next-pera-guide-head p:not(.eyebrow){margin:0;color:var(--color-brand-ink);line-height:1.5}.next-pera-guide-target{min-width:210px;border-radius:20px;padding:.8rem .9rem;background:#ffffffb8;border:1px solid rgba(251,146,60,.28)}.next-pera-guide-target span{display:block;color:var(--color-brand-gold);font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.next-pera-guide-target strong{display:block;margin-top:.18rem;color:var(--color-brand-deepest);font-size:1.05rem}.next-pera-guide-meter-row{display:flex;justify-content:space-between;gap:1rem;margin-top:1rem;color:var(--color-brand-deep);font-size:.82rem;font-weight:900}.next-pera-guide-meter{height:12px;margin-top:.45rem;border-radius:999px;background:#fed7aaad;overflow:hidden}.next-pera-guide-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--color-primary),var(--danger))}.next-pera-guide-steps{display:grid;gap:.7rem;margin-top:1rem}.next-pera-guide-step{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid rgba(251,146,60,.22);border-radius:18px;padding:.85rem;background:#ffffffbd}.next-pera-guide-step strong{display:block;color:var(--color-brand-deep)}.next-pera-guide-step p{margin:.25rem 0 0;color:var(--color-brand-deep);font-size:.86rem;line-height:1.45}.next-pera-guide-step .button{flex-shrink:0;white-space:nowrap}.daily-plan-card{margin-top:1.2rem;border:1px solid #bbf7d0;border-radius:22px;padding:1rem;background:linear-gradient(135deg,var(--success-surface),#ecfeff)}.daily-plan-card.hero{padding:1.15rem}.daily-plan-card .panel-title-row{margin-bottom:.8rem}.daily-plan-card .panel-title-row span{color:#15803d;font-weight:950}.daily-plan-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.daily-plan-step{display:grid;gap:.25rem;border:1px solid rgba(34,197,94,.28);border-radius:18px;padding:.85rem;color:inherit;background:#ffffffd1;text-decoration:none}.daily-plan-step.done{background:#dcfce7;border-color:#86efac}.daily-plan-step b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:var(--radius-pill);background:var(--success);color:#fff}.daily-plan-step strong{color:#14532d}.daily-plan-step small{color:#15803d;font-weight:900}.daily-plan-step p{margin:.2rem 0 0;color:var(--ink-muted);font-size:.82rem;line-height:1.4}.dashboard-progression-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;align-items:center;margin-top:1.3rem}.dashboard-streak-tile{background:var(--surface-cream);border:1px solid var(--border-amber);border-radius:var(--radius-md);padding:.9rem}.dashboard-streak-tile span{color:var(--color-brand-ink);font-weight:900;font-size:.78rem}.dashboard-streak-tile strong{display:block;font-size:2rem;color:var(--color-primary-strong)}.dashboard-streak-tile small{color:var(--color-brand-deep)}.dashboard-badge-tile{background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.9rem}.dashboard-badge-tile>span{color:var(--ink-muted);font-weight:900;font-size:.78rem}.dashboard-badge-list{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}.dashboard-badge-chip{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-pill);padding:.25rem .5rem;font-weight:900}.dashboard-level-callout{margin-top:1.5rem;background:var(--surface-cream);border:1px solid var(--border-amber);border-radius:var(--radius-md);padding:1.2rem;display:flex;justify-content:space-between;align-items:center;gap:1.2rem;flex-wrap:wrap}.dashboard-level-mascot{flex-shrink:0;display:flex;justify-content:center}.dashboard-level-copy{flex:1;min-width:240px}.dashboard-level-copy h3{margin:0 0 .25rem;color:var(--warning);font-size:1.1rem}.dashboard-level-copy p{margin:0;font-size:.85rem;color:var(--color-brand-gold)}.dashboard-level-copy .dashboard-level-reference{margin-top:.35rem;font-size:.78rem;color:var(--warning)}.dashboard-level-link{display:inline-flex;margin-top:.45rem;color:var(--warning);font-size:.82rem;font-weight:900}.dashboard-more-tools summary{cursor:pointer;color:var(--color-brand-deep);font-weight:950}.beginner-dashboard>.panel:not(:first-child):not(.dashboard-more-tools){display:none}.dashboard-focus-callout{display:grid;gap:.45rem;margin-bottom:.8rem;border:1px solid #bfdbfe;border-radius:16px;padding:.75rem .85rem;background:#eff6ff}.dashboard-focus-callout strong{color:#1d4ed8}.dashboard-focus-callout p{margin:0;color:var(--ink-muted);font-size:.86rem}.dashboard-focus-callout .button{width:fit-content}.level-movement-card{margin-top:1.2rem;border:1px solid #bfdbfe;border-radius:var(--radius-lg);padding:1.1rem;background:linear-gradient(135deg,#eff6ff,var(--surface-subtle))}.level-movement-card h2{margin:.15rem 0 .35rem;color:#1e3a8a}.level-movement-card p{color:var(--ink-muted);line-height:1.5}.level-movement-list{display:grid;gap:.7rem;margin-top:1rem}.level-movement-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid rgba(59,130,246,.2);border-radius:18px;padding:.85rem;background:#ffffffc2}.level-movement-item strong{display:block;color:#1e3a8a}.level-movement-item p{margin:.3rem 0;font-size:.86rem}.level-movement-item small{color:var(--ink-faint);font-weight:800}.level-signal{display:inline-flex;width:fit-content;margin-top:.35rem;border-radius:999px;padding:.2rem .5rem;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.level-signal.direct{background:#dcfce7;color:var(--success-strong)}.level-signal.practice{background:#f1f5f9;color:var(--ink-muted)}.progression-overview-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;align-items:center;margin-top:1.4rem;background:var(--surface-cream);border:1px solid var(--border-amber);border-radius:var(--radius-lg);padding:1rem}.progression-overview-card h2{margin-top:0}.progression-history-list{display:grid;gap:.5rem}.progression-history-item{display:grid;grid-template-columns:5rem 1fr;gap:.7rem;align-items:start;background:var(--surface-card);border:1px solid var(--border-amber);border-radius:var(--radius-sm);padding:.65rem .75rem}.progression-history-item strong{color:var(--color-primary-strong)}.progression-history-item span{color:var(--color-brand-deep);font-size:.85rem}.progression-history-item small{color:var(--ink-disabled)}.progression-history-empty{color:var(--color-brand-deep)}.badge-shelf{margin-top:1.4rem;background:var(--surface-subtle);border:1px solid var(--border);border-radius:20px;padding:1rem}.badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem}.badge-card{opacity:.45;background:var(--surface-card);border:1px solid var(--border);border-radius:16px;padding:.75rem}.badge-card.earned{opacity:1}.badge-card strong{display:block;font-size:1.4rem}.badge-card small{display:block;color:var(--ink-faint)}.field{display:grid;gap:.45rem;margin:.8rem 0;font-weight:800}.error{color:var(--danger-strong)}.success{color:var(--success-strong);font-weight:800}.empty{color:var(--ink-faint)}.list-row,.list-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin:.5rem 0;text-align:left}.list-row{background:var(--surface-subtle);border-radius:20px;padding:.8rem 1.2rem;margin:.75rem 0;border:1px solid #f1f5f9}.deck-info{display:flex;flex-direction:column;gap:.2rem;align-items:flex-start}.deck-count{color:var(--ink-faint);font-size:.82rem}.deck-actions{display:flex;gap:.4rem;align-items:center}.link-button{background:transparent;color:var(--ink);padding:0}.link-button:hover{text-decoration:underline;background:transparent}.manual-create-callout,.manual-create-deck-card,.manual-card-form{display:grid;gap:.7rem;border-radius:22px;border:1px solid #fed7aa;background:#fff7ed;padding:1rem;margin-bottom:1rem}.manual-create-callout h2,.manual-create-deck-card h2,.manual-card-form h3,.manual-card-list-header h3{margin:0;color:#172033}.manual-create-callout p,.manual-card-form p,.manual-deck-header p{margin:0;color:#64748b;line-height:1.45;font-size:.88rem}.manual-create-deck-card input,.manual-create-deck-card textarea,.manual-card-form input,.manual-card-form textarea{width:100%;border:1.5px solid #cbd5e1;border-radius:14px;padding:.68rem .8rem;background:#fff;color:#172033;font:inherit;outline:none}.manual-create-deck-card input:focus,.manual-create-deck-card textarea:focus,.manual-card-form input:focus,.manual-card-form textarea:focus{border-color:#f97316;box-shadow:0 0 0 3px #f973161f}.manual-form-actions,.manual-deck-header-actions{display:flex;flex-wrap:wrap;gap:.5rem}.manual-deck-detail{display:grid;gap:1rem}.manual-deck-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(148,163,184,.18)}.manual-deck-header h2{margin:.1rem 0 .35rem;font-size:clamp(1.45rem,3vw,2.3rem)}.manual-deck-header small{display:inline-flex;margin-top:.45rem;color:#92400e;background:#ffedd5;border-radius:999px;padding:.22rem .55rem;font-weight:800}.manual-card-form{background:#f8fafc;border-color:#e2e8f0}.manual-card-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.manual-card-form-heading button{white-space:nowrap}.manual-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.manual-card-grid label{display:grid;gap:.35rem;color:#475569;font-size:.78rem;font-weight:850}.manual-card-wide-field{grid-column:1 / -1}.manual-card-list-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.manual-card-list-header span{color:#64748b;font-weight:800;font-size:.82rem}.manual-card-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;background:#ffffffc7;border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:.85rem 1rem}.manual-card-main-line{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;color:#172033}.manual-card-main-line span{color:#94a3b8}.manual-card-meta-line{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.manual-card-meta-line span{display:inline-flex;background:#eef2ff;color:#3730a3;border-radius:999px;padding:.12rem .5rem;font-size:.72rem;font-weight:800}.manual-card-row p{margin:.45rem 0 0;color:#64748b;line-height:1.45}.manual-card-row small{display:block;margin-top:.35rem;color:#94a3b8;line-height:1.45}.manual-delete-card{color:#dc2626;font-size:.82rem;font-weight:900;white-space:nowrap}.manual-card-empty{text-align:center;padding:1.2rem;border-radius:16px;background:#f8fafc}.composer-actions{display:flex;flex-direction:column;gap:.65rem;margin:1rem 0}.composer-actions button{width:100%}.mini-form{display:grid;grid-template-columns:1fr 1fr auto;gap:.55rem;margin-bottom:1rem}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem}.price-card strong{display:block;font-size:1.7rem;margin-bottom:.6rem}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.8rem}.panel-title-row h2,.panel-title-row h3{margin:0}.actions.compact{margin-top:.8rem;gap:.5rem}.actions.compact .button,.actions.compact button{padding:.62rem .9rem;font-size:.85rem}.dashboard-homework-panel{display:grid;gap:.9rem}.assignment-list{display:grid;gap:.75rem}.assignment-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:.9rem}.assignment-card.completed{background:#f0fdf4;border-color:#bbf7d0}.assignment-card h3{margin:.55rem 0 .35rem;font-size:1rem}.assignment-card p{margin:0;color:#475569;font-size:.88rem;line-height:1.5}.assignment-card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.assignment-card-head span{background:#fff7ed;color:#9a3412;border-radius:999px;padding:.25rem .55rem;font-size:.75rem;font-weight:900}.assignment-card-head strong{color:#475569;font-size:.76rem}.assignment-meta{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem}.assignment-meta span{background:#fff;border:1px solid #e2e8f0;border-radius:999px;color:#64748b;font-size:.74rem;font-weight:800;padding:.25rem .55rem}.class-mini-card{display:grid;gap:.2rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.85rem;margin-bottom:.65rem}.class-mini-card span{color:#64748b;font-size:.82rem;font-weight:700}.focus-count{color:var(--color-primary);font-weight:900}.dashboard-deck-list{display:grid;gap:.55rem}.dashboard-deck-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:.65rem .8rem}.dashboard-deck-meta{display:grid;gap:.15rem;min-width:0}.dashboard-deck-meta strong{font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-deck-due{color:var(--ink-faint);font-size:.78rem;font-weight:800}.dashboard-deck-due.has-due{color:var(--color-primary-strong)}.teacher-page{align-items:stretch}.teacher-sidebar,.teacher-class-panel,.teacher-analytics-panel{min-height:100%}.teacher-school-name{color:#64748b;margin-top:-.5rem;font-weight:800}.teacher-summary-grid,.teacher-analytics-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.9rem 0 1rem}.teacher-analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-summary-grid div,.teacher-analytics-stats div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.8rem}.teacher-summary-grid strong,.teacher-analytics-stats strong{display:block;font-size:1.45rem;line-height:1}.teacher-summary-grid span,.teacher-analytics-stats span{color:#64748b;font-size:.76rem;font-weight:800}.teacher-create-card,.teacher-assignment-form{background:#fff7ed;border:1px solid #fed7aa;border-radius:22px;padding:1rem;margin-bottom:1rem}.teacher-create-card h2{margin-top:0}.teacher-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.teacher-form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-class-list{display:grid;gap:.55rem}.teacher-class-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;background:#f8fafc;color:#172033;border:1px solid #e2e8f0;border-radius:20px;padding:.85rem .95rem;text-align:left}.teacher-class-card:hover,.teacher-class-card.active{background:#172033;color:#fff}.teacher-class-card span:first-child{display:grid;gap:.15rem}.teacher-class-card small{color:inherit;opacity:.72;font-weight:800;letter-spacing:.08em}.teacher-class-hero{display:flex;align-items:stretch;justify-content:space-between;gap:1rem;padding:1rem;background:linear-gradient(135deg,#172033,#243041 68%,#9a3412);color:#fff;border-radius:26px;margin-bottom:1rem}.teacher-class-hero .eyebrow{color:#fed7aa}.teacher-class-hero h2{margin:.2rem 0 .8rem;font-size:clamp(1.75rem,3vw,3rem);line-height:1}.teacher-chip-row{display:flex;flex-wrap:wrap;gap:.45rem}.teacher-chip-row span{background:#ffffff24;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:.35rem .65rem;font-size:.78rem;font-weight:900}.join-code-card{min-width:190px;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);border-radius:22px;padding:1rem;display:grid;gap:.45rem;align-content:center;text-align:center}.join-code-card span{color:#fed7aa;font-size:.76rem;font-weight:900}.join-code-card strong{font-size:2rem;letter-spacing:.12em}.teacher-share-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fffbeb;border:1px solid #fde68a;border-radius:22px;padding:1rem;margin-bottom:1rem}.teacher-share-card h3,.teacher-share-card p{margin:0}.teacher-share-card p{color:#92400e;margin-top:.3rem;line-height:1.5}.teacher-section-title{margin-top:1.2rem}.teacher-assignment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.teacher-assignment-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:.9rem}.teacher-assignment-card div{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.teacher-assignment-card div span{background:#fff7ed;color:#9a3412;border-radius:999px;padding:.25rem .55rem;font-size:.72rem;font-weight:900}.teacher-assignment-card div strong{color:#166534;font-size:.74rem}.teacher-assignment-card h4{margin:.65rem 0 .35rem}.teacher-assignment-card p{color:#475569;font-size:.86rem;line-height:1.45;margin:0 0 .6rem}.teacher-assignment-card small{color:#64748b;font-weight:800}.teacher-roster{display:grid;gap:.65rem}.teacher-student-row{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(90px,auto));gap:.75rem;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:.85rem}.teacher-student-row div{display:grid;gap:.18rem}.teacher-student-row span{color:#64748b;font-size:.76rem;font-weight:800}.teacher-bars{height:180px;display:grid;grid-template-columns:repeat(auto-fit,minmax(34px,1fr));gap:.55rem;align-items:end;padding:1rem 0 .5rem;border-bottom:1px solid #e2e8f0}.teacher-bars div{display:grid;align-items:end;justify-items:center;gap:.25rem;height:100%;color:#64748b}.teacher-bars div span{width:100%;max-width:32px;display:block;background:linear-gradient(180deg,#f97316,#ea580c);border-radius:9px 9px 3px 3px}.teacher-bars small{font-size:.68rem}.teacher-bars strong{font-size:.74rem;color:#172033}.teacher-error-list{display:flex;flex-wrap:wrap;gap:.45rem}.teacher-error-list span{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:999px;padding:.35rem .6rem;font-size:.78rem;font-weight:800}.teacher-form-optional{margin:.7rem 0}.teacher-form-optional summary{cursor:pointer;font-weight:800;color:var(--color-brand-ink);padding:.3rem 0}.teacher-form-optional[open] summary{margin-bottom:.5rem}.teacher-form-optional .field{margin:0 0 .7rem}.teacher-roster-sort{display:inline-flex;align-items:center;gap:.45rem;font-size:.8rem;font-weight:800;color:var(--ink-faint)}.teacher-roster-sort select{width:auto;padding:.45rem 1.6rem .45rem .6rem;font-size:.82rem}.join-class-page{align-items:stretch}.join-class-hero{background:linear-gradient(135deg,#ffffffeb,#fff7edf0)}.join-class-hero h1{max-width:760px}.join-class-hero p{max-width:760px;color:#475569;line-height:1.6}.join-class-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:end;margin-top:1rem;max-width:720px}.join-class-form .field{margin:0}.join-class-help{display:grid;gap:.75rem;align-content:start}.join-step{display:flex;gap:.7rem;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.85rem}.join-step strong{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#172033;color:#fff;flex:0 0 auto}.join-step span{color:#475569;font-weight:800;line-height:1.45}.class-preview-card{display:grid;gap:1rem}.class-preview-card h2{margin:.2rem 0 .25rem;font-size:clamp(1.7rem,3vw,3rem)}.class-preview-card p{margin:0;color:#64748b}.class-preview-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.class-preview-meta span{display:grid;gap:.25rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.85rem;color:#64748b;font-size:.76rem;font-weight:800}.class-preview-meta strong{color:#172033;font-size:1.05rem;line-height:1.2}.conversation-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:1rem;align-items:start}.conversation-layout.chat-only{display:flex!important;flex-direction:column!important;grid-template-columns:unset!important}.composer{position:sticky;top:88px}.bubble{max-width:82%;padding:.9rem 1rem;border-radius:24px;margin:.7rem 0}.bubble.learner{margin-left:auto;background:#172033;color:#fff;border-bottom-right-radius:8px}.bubble.tutor{background:#fff7ed;border:1px solid #fed7aa;border-bottom-left-radius:8px}.bubble small{display:block;opacity:.75;margin-top:.4rem}.bubble audio{width:100%;margin-top:.55rem}.bubble.streaming{border-color:#f97316}.bubble .cursor{animation:blink .6s step-end infinite;font-weight:200;opacity:.6}@keyframes blink{50%{opacity:0}}.grammar-tip{margin-top:.55rem;background:#fbbf241f;border:1px solid rgba(251,191,36,.3);border-radius:14px;overflow:hidden}.grammar-tip-header{display:flex;justify-content:space-between;align-items:center;padding:.45rem .7rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s ease}.grammar-tip-header:hover{background:#fbbf241a}.grammar-tip-label{font-size:.78rem;font-weight:700;color:#d97706}.bubble.learner .grammar-tip-label{color:#fbbf24}.grammar-tip-chevron{font-size:.65rem;color:#d97706}.bubble.learner .grammar-tip-chevron{color:#fbbf24}.grammar-tip-body{padding:.35rem .7rem .55rem;border-top:1px solid rgba(251,191,36,.2)}.grammar-tip-item{padding:.35rem 0}.grammar-tip-item+.grammar-tip-item{border-top:1px solid rgba(251,191,36,.15);margin-top:.25rem;padding-top:.45rem}.grammar-tip-correction{font-size:.82rem;line-height:1.5}.grammar-tip-original{text-decoration:line-through;opacity:.6}.grammar-tip-arrow{opacity:.5;margin:0 .15rem}.grammar-tip-correction strong{color:#16a34a}.bubble.learner .grammar-tip-correction strong{color:#4ade80}.grammar-tip-explanation{margin-top:.25rem;font-size:.75rem;line-height:1.5}.grammar-tip-rule{display:block;opacity:.85;color:#b45309}.bubble.learner .grammar-tip-rule{color:#fcd34d}.grammar-tip-ja{display:block;opacity:.7;font-size:.72rem;margin-top:.1rem}.grammar-tip-saved{display:block;margin-top:.45rem;color:#92400e;font-size:.72rem;font-weight:800}.bubble.learner .grammar-tip-saved{color:#fcd34d}.bubble-actions{display:flex;gap:.5rem;align-items:center;margin-top:.5rem}.replay-btn{display:inline-flex;align-items:center;gap:.3rem;background:#f973161f;color:#9a3412;border:1px solid rgba(249,115,22,.25);border-radius:999px;padding:.3rem .7rem;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .15s ease}.replay-btn:hover{background:#f9731638}.replay-btn svg{flex-shrink:0}.translation-toggle{background:transparent;color:#6b7280;border:1px solid #e5e7eb;border-radius:999px;padding:.3rem .7rem;font-size:.78rem;font-weight:700;cursor:pointer;transition:all .15s ease}.translation-toggle:hover{color:#374151;border-color:#cbd5e1;background:#00000008}.translation-text{margin-top:.45rem;padding-top:.45rem;border-top:1px solid rgba(148,163,184,.25);font-size:.88rem;color:#475569;line-height:1.55}.transcript{min-height:70vh;overflow-y:auto;max-height:80vh;scroll-behavior:smooth}.summary{margin-top:1rem;background:#f8fafc;padding:1.2rem;border-radius:22px;width:100%}.rating{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.8rem}.review-card h2{font-size:2rem}.spelling-play-btn{font-size:1.3rem;padding:.6rem 1.4rem;border-radius:16px;background:#3b82f6;color:#fff;cursor:pointer;border:none;margin-bottom:.6rem;transition:background .15s}.spelling-play-btn:hover{background:#2563eb}.spelling-hint{font-size:1.4rem;margin:.5rem 0 1rem;color:#1e293b}.spelling-pos{font-size:.85rem;color:#64748b;margin-left:.4rem}.spelling-options{grid-template-columns:1fr;margin:.8rem 0}.spelling-options button{min-height:54px;font-size:.95rem}.spelling-result{margin-top:.8rem;padding:.8rem 1rem;border-radius:14px;font-size:1rem}.spelling-result.spelling-correct{background:#f0fdf4;border:1px solid #86efac}.spelling-result.spelling-wrong{background:#fef2f2;border:1px solid #fca5a5}.spelling-verdict{font-size:1.2rem;font-weight:700;margin:0 0 .4rem}.spelling-correct .spelling-verdict{color:#16a34a}.spelling-wrong .spelling-verdict{color:#dc2626}.spelling-your-answer,.spelling-correct-answer{font-size:.95rem;margin:.2rem 0;color:#334155}.spelling-correct-answer strong{color:#16a34a}.spelling-diff{font-family:monospace;font-size:1.1rem;letter-spacing:.06em}.spelling-match{color:#16a34a}.spelling-extra{color:#dc2626;text-decoration:line-through;background:#fee2e2;border-radius:3px;padding:0 1px}.spelling-missing{color:#dc2626;background:#fef9c3;border-radius:3px;padding:0 1px;text-decoration:underline}.spelling-btn{background:var(--color-primary-strong)!important;color:#fff!important}.spelling-btn:hover{background:var(--color-brand-ink)!important}.drill-btn{background:var(--ink)!important;color:#fff!important}.drill-btn:hover{background:var(--ink-soft)!important}.drill-page{min-height:calc(100vh - 140px);display:grid;align-content:start;gap:1rem;max-width:880px;margin:0 auto}.drill-source-sentence{display:block;color:#431407;font-size:1.05rem;line-height:1.7;white-space:pre-wrap}.drill-source-sentence mark{border-radius:.45rem;padding:.1rem .25rem;background:#fed7aa;color:#9a3412;text-decoration:line-through;text-decoration-thickness:.12em}.drill-source-translation{margin:.55rem 0 0;color:#475569;font-size:.9rem;line-height:1.45}.drill-topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;color:#64748b;font-size:.86rem}.drill-topbar-meta{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}.drill-topbar-meta span,.drill-retry-pill{display:inline-flex;align-items:center;border-radius:999px;background:#f8fafc;color:#475569;border:1px solid #e2e8f0;padding:.25rem .55rem;font-weight:800;font-size:.76rem}.drill-card{background:#fffffff0;border:1px solid rgba(148,163,184,.22);border-radius:28px;box-shadow:0 24px 60px #0f172a1a;padding:1.3rem;display:grid;gap:1rem}.drill-loading,.drill-empty,.drill-complete{text-align:center;justify-items:center;padding:2rem}.drill-progress-row{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.drill-progress-row h1,.drill-complete h1,.drill-empty h1{margin:.15rem 0 0;color:#0f172a;font-size:clamp(1.35rem,3vw,2rem);letter-spacing:-.04em}.drill-progress-row>span{color:#64748b;font-weight:900;white-space:nowrap}.drill-progress-track{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}.drill-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f97316,#0f172a);transition:width .2s ease}.drill-prompt{display:grid;gap:.35rem;padding:1.2rem;border-radius:22px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}.drill-prompt span,.drill-answer-card span{text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;font-weight:900;opacity:.7}.drill-prompt strong{color:#111827;font-size:clamp(1.8rem,6vw,3.4rem);line-height:1.08;letter-spacing:-.05em}.drill-study-card{gap:1.1rem}.drill-study-body{margin:0;color:#64748b;line-height:1.55}.drill-study-list{display:grid;gap:.75rem;max-height:min(58vh,620px);overflow-y:auto;padding-right:.2rem}.drill-study-item{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:.8rem 1rem;align-items:start;padding:.95rem;border-radius:20px;background:#f8fafc;border:1px solid #e2e8f0}.drill-study-word,.drill-study-meaning{display:grid;gap:.25rem}.drill-study-word strong{color:#0f172a;font-size:clamp(1.35rem,4vw,2.1rem);line-height:1.15}.drill-study-word span,.drill-study-meaning span,.drill-study-meaning small{color:#64748b;font-size:.78rem;font-weight:800}.drill-study-meaning>span{text-transform:uppercase;letter-spacing:.08em}.drill-study-meaning strong{color:#7c2d12;font-size:1.08rem;line-height:1.3}.drill-study-item p{grid-column:1 / -1;margin:0;color:#475569;line-height:1.45}.drill-prompt small{color:#92400e;font-weight:700}.drill-prompt.listening{align-items:center;justify-items:center;text-align:center;background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.drill-audio-btn{font-size:1.1rem;padding:.9rem 1.4rem;border-radius:18px;background:#2563eb;color:#fff}.drill-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.drill-options button{background:#f8fafc;color:#172033;border:1px solid #dbe3ef;border-radius:18px;padding:.9rem 1rem;min-height:68px;font-size:1rem;font-weight:850;text-align:left;box-shadow:0 6px 16px #0f172a0a}.drill-options button:hover:not(:disabled),.drill-options button.selected{border-color:#f97316;background:#fff7ed}.drill-options button.correct{border-color:#86efac;background:#dcfce7;color:#166534}.drill-options button.wrong{border-color:#fca5a5;background:#fee2e2;color:#991b1b}.drill-typing{display:flex;gap:.7rem;align-items:stretch}.drill-typing input{flex:1;border:2px solid #cbd5e1;border-radius:18px;padding:.85rem 1rem;font-size:1.2rem;font-weight:700;outline:none}.drill-typing input:focus{border-color:#f97316;box-shadow:0 0 0 4px #f973161f}.drill-reveal{display:grid;justify-items:center;gap:1rem}.drill-answer-card{width:100%;display:grid;gap:.35rem;padding:1rem;border-radius:20px;background:#f8fafc;border:1px solid #e2e8f0}.drill-answer-card strong{color:#0f172a;font-size:1.6rem;line-height:1.2}.drill-answer-card small{color:#64748b;line-height:1.45}.drill-grade-buttons,.drill-actions-row{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}.drill-grade-buttons .danger{background:#dc2626;color:#fff}.drill-feedback{border-radius:18px;padding:.85rem 1rem;border:1px solid transparent;display:grid;gap:.25rem}.drill-feedback.correct{background:#f0fdf4;border-color:#86efac;color:#166534}.drill-feedback.wrong{background:#fef2f2;border-color:#fecaca;color:#991b1b}.drill-feedback p{margin:0;line-height:1.45}.drill-footer-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}.drill-footer-row>div{display:flex;gap:.45rem;flex-wrap:wrap;color:#64748b;font-size:.8rem;font-weight:800}.drill-summary-grid{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.drill-summary-grid div{display:grid;gap:.2rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:.85rem}.drill-summary-grid span{color:#64748b;font-size:.78rem;font-weight:800}.drill-summary-grid strong{color:#0f172a;font-size:1.75rem;line-height:1}.bubble-text{margin:0}.typing-dots{display:inline-flex;align-items:center;gap:4px;padding:.2rem 0}.typing-dots i{width:7px;height:7px;border-radius:50%;background:var(--color-primary);opacity:.5;animation:typing-bounce 1.1s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.18s}.typing-dots i:nth-child(3){animation-delay:.36s}@keyframes typing-bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none}}.bubble.failed{border-color:#fecaca;background:var(--danger-surface)}.bubble-failed-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;font-size:.82rem;color:var(--danger-strong);font-weight:700}.bubble-retry-btn{padding:.3rem .8rem;font-size:.8rem;background:var(--danger)}.bubble-retry-btn:hover{background:var(--danger-strong)}.translation-text{margin:.4rem 0 0;border-top:1px dashed var(--border-amber);padding-top:.4rem;font-size:.85rem}.jump-to-latest{position:sticky;bottom:.6rem;z-index:5;display:flex;width:fit-content;margin:0 auto;padding:.45rem .95rem;font-size:.84rem;box-shadow:var(--shadow-pop)}.level-update-chip{background:#ecfeff;border-bottom:1px solid #a5f3fc;color:#155e75;padding:.65rem 1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}.level-update-dismiss{color:#155e75;font-weight:900}.summary{animation:summary-in .3s ease}@keyframes summary-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.summary{animation:none}}.summary-next-actions{margin-top:.9rem;border-top:1px solid #fde68a;padding-top:.8rem;display:flex;justify-content:flex-end}.grammar-tip-header:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.chat-header-actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}.drill-type-breakdown{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem;margin-top:.8rem}.drill-type-breakdown>span{color:var(--ink-faint);font-size:.78rem;font-weight:800}.drill-type-breakdown small{background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-pill);padding:.25rem .6rem;color:var(--ink-muted);font-weight:800}.drill-complete .tanu-container{margin:0 auto .6rem}.drill-typing{display:grid;gap:.6rem}.drill-textarea{width:100%;border:2px solid var(--border-strong);border-radius:var(--radius-md);padding:.85rem 1rem;font-size:1rem;font-weight:700;resize:vertical;font-family:inherit}.drill-original-strike{text-decoration:line-through;opacity:.72}.drill-mastery-meta{display:block;color:var(--ink-faint);font-weight:700;margin-top:.3rem}.drill-shortcut-hint{opacity:.7;font-weight:600;margin-left:.35rem}.drill-diff-note{display:block;color:var(--warning);font-weight:700;margin-top:.25rem}.drill-answer-card mark{background:#fde68a;border-radius:4px;padding:0 2px}.article-card{margin-bottom:1rem}.article-card-img{width:100%;max-height:200px;object-fit:cover;border-radius:18px;margin-bottom:.7rem}.sidebar-sticky{position:sticky;top:88px;max-height:calc(100vh - 100px);overflow-y:auto}.group-header{display:flex;align-items:center;gap:.5rem;padding:.6rem .2rem;cursor:pointer;-webkit-user-select:none;user-select:none;border-bottom:1px solid rgba(203,213,225,.4);margin-bottom:.6rem;margin-top:.8rem}.group-header:first-child{margin-top:0}.group-header h3{margin:0;font-size:.95rem;flex:1}.group-header .count{color:var(--ink-disabled);font-weight:400;font-size:.85rem}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}@media(max-width:980px){.hero-grid,.page-grid,.conversation-layout{grid-template-columns:1fr}.panel.wide{grid-column:span 1}.teacher-class-hero,.teacher-share-card{flex-direction:column}.class-preview-meta,.teacher-student-row{grid-template-columns:repeat(2,minmax(0,1fr))}.composer{position:static}.sidebar-sticky{position:static;max-height:none;overflow-y:visible}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.55rem .75rem;align-items:center}.brand{grid-column:1;grid-row:1}.topbar-actions{grid-column:2;grid-row:1;justify-self:end;min-width:0}.nav-scroll{grid-column:1 / -1;grid-row:2;width:100%;flex:none;padding-bottom:.05rem}.hero-mascot-card{min-height:auto}.hero-mascot-illustration{width:min(100%,430px)}}@media(max-width:640px){body{background-attachment:scroll;background-position:center top}main{padding:.75rem}.hero-card,.hero-mascot-card,.panel{border-radius:24px}.hero-mascot-card{padding:.85rem}.hero-mascot-art-wrap{margin:-1rem -.8rem -.8rem}.hero-mascot-copy{border-radius:20px;padding:.85rem}.hero-feature-chips span{font-size:.76rem;padding:.42rem .6rem}.stat-grid,.mini-form,.local-launcher-grid,.teacher-summary-grid,.teacher-analytics-stats,.teacher-form-row,.teacher-form-row.three,.join-class-form,.class-preview-meta,.teacher-student-row{grid-template-columns:1fr}.panel-title-row{align-items:flex-start;flex-direction:column}.next-pera-guide-head,.next-pera-guide-step{align-items:stretch;flex-direction:column}.next-pera-guide-target{min-width:0}.next-pera-guide-step .button{width:100%}.teacher-class-hero,.teacher-share-card{border-radius:22px}.join-code-card{width:100%}.bubble{max-width:100%}.deck-actions,.manual-form-actions,.manual-deck-header-actions{width:100%;align-items:stretch;flex-direction:column}.deck-actions button,.manual-form-actions button,.manual-deck-header-actions button{width:100%}.manual-deck-header,.manual-card-form-heading,.manual-card-row{flex-direction:column}.manual-card-grid{grid-template-columns:1fr}.drill-page{min-height:calc(100vh - 100px)}.drill-card{border-radius:22px;padding:1rem}.drill-topbar,.drill-progress-row,.drill-footer-row{align-items:stretch;flex-direction:column}.drill-options{grid-template-columns:1fr}.drill-typing{flex-direction:column}.drill-study-list{max-height:none;padding-right:0}.drill-study-item{grid-template-columns:1fr}.drill-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{gap:.45rem .55rem;padding:.55rem .75rem .5rem}.brand{font-size:1.1rem}.nav-scroll{gap:.25rem}.nav-scroll a{padding:.42rem .62rem;font-size:.8rem}.topbar-actions{flex-wrap:nowrap;justify-content:flex-end;gap:.35rem}.direction-switcher{padding-left:.22rem}.direction-switcher span{display:none}.direction-switcher select{min-width:72px;padding:.42rem 1.35rem .42rem .5rem;font-size:.76rem}.topbar-actions .install-button{padding:.42rem .58rem;font-size:.74rem}.topbar-icon-link{width:36px;height:36px}.topbar-actions button.ghost{padding:.48rem .65rem;font-size:.78rem}}.suggestion-fab{position:fixed;right:1rem;bottom:4.2rem;z-index:25;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,var(--color-primary),var(--color-brand-gold));color:#fff;border:0;padding:0;font-size:1.5rem;box-shadow:0 8px 28px #b4530959;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,box-shadow .2s ease}.suggestion-fab:hover{transform:scale(1.1);box-shadow:0 12px 36px #b4530973}.suggestion-fab:active{transform:scale(.95)}.suggestion-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0f172a73;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:suggestion-fade-in .2s ease}@keyframes suggestion-fade-in{0%{opacity:0}to{opacity:1}}.suggestion-modal{background:#fff;border-radius:28px;padding:2rem;width:100%;max-width:480px;box-shadow:0 32px 80px #0f172a33;animation:suggestion-slide-up .25s ease}@keyframes suggestion-slide-up{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.suggestion-header h2{font-size:1.4rem;letter-spacing:-.03em;margin:0 0 .25rem}.suggestion-subtitle{color:var(--ink-faint);margin:0 0 1rem;font-size:.95rem}.suggestion-label{font-weight:800;margin:0 0 .6rem;font-size:.95rem}.suggestion-categories{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1rem}.suggestion-chip{display:inline-flex;align-items:center;gap:.4rem;background:#f1f5f9;color:var(--ink-soft);border:2px solid transparent;border-radius:999px;padding:.55rem 1rem;font-size:.88rem;font-weight:700;cursor:pointer;transition:all .15s ease}.suggestion-chip:hover{background:var(--border)}.suggestion-chip.active{background:var(--surface-cream);border-color:var(--color-primary);color:var(--color-brand-ink)}.suggestion-modal textarea{margin-bottom:.8rem;min-height:100px;border-radius:18px}.suggestion-contact{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--ink-muted);margin-bottom:1rem;cursor:pointer}.suggestion-contact input[type=checkbox]{width:auto;accent-color:var(--color-primary)}.suggestion-actions{display:flex;justify-content:flex-end;gap:.5rem}.upload-rights-modal{display:grid;gap:1rem}.upload-rights-header{display:flex;align-items:center;gap:.75rem;color:var(--color-brand-ink)}.upload-rights-header h2{margin:.15rem 0 0;color:var(--ink);font-size:1.35rem;letter-spacing:-.03em}.upload-rights-copy{margin:0;color:var(--ink-muted);line-height:1.6}.upload-rights-file{display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-radius:18px;background:var(--surface-cream);border:1px solid var(--border-amber);padding:.85rem 1rem}.upload-rights-file span{flex-shrink:0;color:var(--color-brand-ink);font-size:.85rem;font-weight:800}.upload-rights-check{display:flex;align-items:flex-start;gap:.65rem;color:var(--ink-soft);font-weight:800;line-height:1.45;cursor:pointer}.upload-rights-check input[type=checkbox]{width:auto;margin-top:.2rem;accent-color:var(--color-primary);flex-shrink:0}.suggestion-thanks{text-align:center;padding:1rem 0}.suggestion-thanks-icon{font-size:2.5rem;margin-bottom:.5rem}.suggestion-thanks h2{font-size:1.4rem;margin:0 0 .6rem}.suggestion-thanks p{color:var(--ink-muted);line-height:1.6;margin:0 0 .8rem}.suggestion-counter{background:var(--success-surface);border-radius:var(--radius-pill);display:inline-block;padding:.4rem 1rem;font-size:.9rem;color:var(--success-strong)}.suggestion-counter strong{color:#15803d}.celebration-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a61;display:grid;place-items:center;z-index:80;padding:1rem}.celebration-card{width:min(420px,100%);background:linear-gradient(135deg,var(--surface-cream),var(--surface-card));border:1px solid var(--border-amber);border-radius:var(--radius-xl);padding:1.4rem;box-shadow:0 24px 80px #0f172a3d;text-align:center;animation:celebration-pop .32s cubic-bezier(.34,1.45,.64,1)}@keyframes celebration-pop{0%{opacity:0;transform:scale(.88) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(prefers-reduced-motion:reduce){.celebration-card{animation:none}}.celebration-card h2{margin-top:0}.celebration-card p:not(.eyebrow){color:var(--color-brand-deep)}.article-question-chips{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;margin:0 0 .5rem}.article-question-chips small{color:var(--ink-faint);font-weight:700}.article-question-chip{background:var(--surface-subtle);border:1px solid var(--border);border-radius:14px;color:var(--ink-muted);font-size:.82rem;font-weight:600;text-align:left;padding:.4rem .65rem}button.article-question-chip{cursor:pointer}button.article-question-chip:hover{background:var(--surface-cream);border-color:var(--border-amber);color:var(--color-brand-ink)}.celebration-mark{width:76px;height:76px;border-radius:var(--radius-pill);background:var(--surface-peach);display:grid;place-items:center;margin:0 auto .8rem;color:var(--color-primary-strong);font-size:2rem;font-weight:900}@media(max-width:640px){.suggestion-modal{padding:1.4rem;border-radius:22px}.suggestion-fab{bottom:4.5rem;right:.75rem;width:48px;height:48px;font-size:1.3rem}}.walkthrough-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:flex;align-items:flex-end;justify-content:flex-end;padding:1rem;background:linear-gradient(135deg,transparent 55%,rgba(249,115,22,.08));pointer-events:none;animation:suggestion-fade-in .2s ease}.walkthrough-card{position:relative;width:min(420px,100%);max-height:min(90vh,calc(100dvh - 2rem - var(--safe-bottom)));overflow-y:auto;display:grid;gap:1rem;padding:clamp(1.2rem,3vw,2rem);border-radius:30px;border:1px solid rgba(251,146,60,.34);background:radial-gradient(circle at 100% 0%,rgba(254,215,170,.56),transparent 35%),#fffffff5;box-shadow:0 34px 90px #0f172a42;animation:suggestion-slide-up .25s ease;pointer-events:auto}.walkthrough-close{position:absolute;top:.8rem;right:.8rem;width:38px;height:38px;padding:0;border-radius:50%;background:#f8fafc;color:#475569;border:1px solid #e2e8f0;font-size:1.25rem;line-height:1}.walkthrough-close:hover{background:#e2e8f0}.walkthrough-header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem;align-items:start;padding-right:2.2rem}.walkthrough-header .tanu-container{width:92px}.walkthrough-header .eyebrow{margin:0 0 .35rem}.walkthrough-header h2{margin:0;color:#431407;font-size:clamp(1.7rem,4vw,2.6rem);line-height:1;letter-spacing:-.055em}.walkthrough-header p:not(.eyebrow){margin:.6rem 0 0;color:#475569;line-height:1.6;font-weight:700}.walkthrough-feature-list{display:flex;flex-wrap:wrap;gap:.5rem}.walkthrough-feature-list span{display:inline-flex;border-radius:999px;padding:.42rem .68rem;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:.8rem;font-weight:900}.walkthrough-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(18px,1fr));gap:.35rem}.walkthrough-progress span,.walkthrough-progress .walkthrough-dot{height:7px;border-radius:999px;background:#e2e8f0;overflow:hidden;border:0;padding:0;cursor:pointer}.walkthrough-progress .walkthrough-dot:hover{background:var(--border-strong)}.walkthrough-progress span.active,.walkthrough-progress .walkthrough-dot.active{background:linear-gradient(90deg,#f97316,#b45309)}.walkthrough-progress .walkthrough-dot:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.walkthrough-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.2rem}.walkthrough-footer>span{color:#92400e;font-size:.82rem;font-weight:900;white-space:nowrap}.walkthrough-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}.walkthrough-actions button{padding:.62rem .9rem}.walkthrough-dismiss-hint{margin:-.2rem 0 0;color:#94a3b8;font-size:.78rem;line-height:1.45}@media(max-width:640px){.walkthrough-overlay{align-items:flex-end;padding:.65rem .65rem calc(.65rem + var(--safe-bottom))}.walkthrough-card{width:100%;max-height:40dvh;border-radius:24px;padding:.85rem;gap:.55rem}.walkthrough-header{grid-template-columns:auto minmax(0,1fr);gap:.65rem;padding-right:2rem;align-items:center}.walkthrough-header .tanu-container{width:50px;transform:scale(.58);transform-origin:center}.walkthrough-header h2{font-size:1.25rem}.walkthrough-header p:not(.eyebrow){margin-top:.35rem;font-size:.88rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.walkthrough-feature-list,.walkthrough-dismiss-hint{display:none}.walkthrough-progress span,.walkthrough-progress .walkthrough-dot{height:5px}.walkthrough-footer{align-items:stretch;flex-direction:column}.walkthrough-actions{width:100%}.walkthrough-actions button{flex:1}}@media(max-width:430px){.walkthrough-actions{flex-direction:column-reverse}.walkthrough-actions button{width:100%}}.tanu-container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transition:transform .4s cubic-bezier(.175,.885,.32,1.275)}.tanu-container:hover{transform:scale(1.12) translateY(-4px)}.tanu-container:active{transform:scale(.92) translateY(2px)}@media(hover:none),(pointer:coarse){.tanu-container:hover{transform:none}}.tanu-image-frame{width:100%;aspect-ratio:1;overflow:hidden;border-radius:28px;background:#fff7ed;border:3px solid rgba(255,250,240,.9);box-shadow:0 14px 34px #43140729;animation:tanu-breathe 2s ease-in-out infinite;transform-origin:bottom center}.tanu-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.tanu-state-listening{animation:tanu-alert-listen 1.2s ease-in-out infinite alternate}.tanu-state-thinking,.tanu-state-correction{animation:tanu-curious-tilt 1.65s ease-in-out infinite alternate}.tanu-state-cheer{animation:tanu-bounce-joy .5s ease-in-out infinite alternate}.tanu-state-error{animation:tanu-shiver .15s linear infinite}.tanu-breathe{animation:tanu-breathe 2s ease-in-out infinite;transform-origin:bottom center}.tanu-head{transform-origin:130px 140px}.tanu-listening .tanu-head{animation:tanu-head-tilt 1.8s ease-in-out infinite alternate}.tanu-tail{transform-origin:190px 210px;animation:tanu-tail-wag 1.6s ease-in-out infinite alternate}.tanu-hand-wave{transform-origin:75px 190px;animation:tanu-wave .8s ease-in-out infinite alternate}.tanu-bounce-joy{animation:tanu-bounce-joy .4s ease-in-out infinite alternate}.tanu-shiver{animation:tanu-shiver .15s linear infinite}.tanu-visor-glow{animation:tanu-visor-glow 1.5s ease-in-out infinite alternate}.tanu-cog{transform-origin:center;animation:tanu-cog-spin 3s linear infinite}.tanu-blush{animation:tanu-blush-pulse 1.4s ease-in-out infinite alternate}.tanu-float-heart-1{animation:tanu-float-up-left 1.5s ease-out infinite}.tanu-float-heart-2{animation:tanu-float-up-right 1.8s ease-out infinite}.tanu-float-note{animation:tanu-float-sway 2s ease-in-out infinite alternate}.tanu-bubble{background:#fff;border:2.5px solid #fed7aa;box-shadow:0 14px 40px #f973161f;border-radius:22px;padding:.75rem 1.1rem;font-size:.88rem;font-weight:800;color:#7c2d12;position:relative;max-width:250px;margin-bottom:.6rem;animation:tanu-pop-bubble .45s cubic-bezier(.175,.885,.32,1.275);text-align:center;line-height:1.5;letter-spacing:-.01em}.tanu-bubble:after{content:"";position:absolute;bottom:-8px;left:50%;transform:translate(-50%) rotate(45deg);width:12px;height:12px;background:#fff;border-right:2.5px solid #fed7aa;border-bottom:2.5px solid #fed7aa}@keyframes tanu-breathe{0%,to{transform:scaleY(1) scaleX(1)}50%{transform:scaleY(.95) scaleX(1.02) translateY(1px)}}@keyframes tanu-head-tilt{0%{transform:rotate(-3.5deg) translateY(-.5px)}to{transform:rotate(3.5deg) translateY(.5px)}}@keyframes tanu-tail-wag{0%{transform:rotate(-12deg)}to{transform:rotate(12deg)}}@keyframes tanu-wave{0%{transform:rotate(-8deg)}to{transform:rotate(35deg)}}@keyframes tanu-bounce-joy{0%{transform:translateY(0) scaleY(.96) scaleX(1.03)}to{transform:translateY(-12px) scaleY(1.03) scaleX(.97)}}@keyframes tanu-shiver{0%,to{transform:translate(0)}25%{transform:translate(-1.5px)}75%{transform:translate(1.5px)}}@keyframes tanu-visor-glow{0%{filter:drop-shadow(0 0 1px rgba(249,115,22,.4))}to{filter:drop-shadow(0 0 6px rgba(249,115,22,.8))}}@keyframes tanu-cog-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes tanu-blush-pulse{0%{opacity:.35;transform:scale(.95)}to{opacity:.7;transform:scale(1.1)}}@keyframes tanu-float-up-left{0%{transform:translate(5px,25px) scale(0);opacity:0}40%{opacity:1}to{transform:translate(-32px,-35px) scale(1.3) rotate(-20deg);opacity:0}}@keyframes tanu-float-up-right{0%{transform:translate(-5px,25px) scale(0);opacity:0}40%{opacity:1}to{transform:translate(32px,-40px) scale(1.2) rotate(20deg);opacity:0}}@keyframes tanu-float-sway{0%{transform:translate(-18px,15px) rotate(-15deg) scale(.8);opacity:.2}to{transform:translate(-36px,-15px) rotate(15deg) scale(1.2);opacity:.9}}@keyframes tanu-pop-bubble{0%{transform:scale(.4) translateY(20px);opacity:0}70%{transform:scale(1.06) translateY(-2px)}to{transform:scale(1) translateY(0);opacity:1}}.tanu-head{transform-origin:140px 132px}.tanu-tail{transform-origin:175px 214px;animation:tanu-crescent-tail-wag 1.45s ease-in-out infinite alternate}.tanu-hand-wave{transform-origin:198px 188px;animation:tanu-paw-wave .68s ease-in-out infinite alternate}.tanu-leaf{transform-origin:140px 64px;animation:tanu-leaf-bob 1.85s ease-in-out infinite alternate}.tanu-cheer .tanu-leaf,.tanu-greeting .tanu-leaf{animation-duration:.58s}.tanu-eyes{transform-origin:140px 124px}.tanu-idle .tanu-eyes{animation:tanu-slow-blink 4.8s ease-in-out infinite}.tanu-correction .tanu-head,.tanu-thinking .tanu-head{animation:tanu-curious-tilt 1.65s ease-in-out infinite alternate}.tanu-listening .tanu-head{animation:tanu-alert-listen 1.2s ease-in-out infinite alternate}.tanu-card-pop{transform-origin:198px 172px;animation:tanu-card-pop .42s cubic-bezier(.175,.885,.32,1.275)}.tanu-sound-puffs{animation:tanu-sound-pulse 1.05s ease-in-out infinite alternate}.tanu-orbit-dots{transform-origin:215px 84px;animation:tanu-orbit-dots 1.9s linear infinite}.tanu-spark-pop{transform-origin:218px 57px;animation:tanu-spark-pop .72s ease-out infinite alternate}@keyframes tanu-crescent-tail-wag{0%{transform:rotate(-5deg) translateY(1px)}to{transform:rotate(7deg) translateY(-2px)}}@keyframes tanu-paw-wave{0%{transform:rotate(-10deg) translateY(1px)}to{transform:rotate(28deg) translateY(-4px)}}@keyframes tanu-leaf-bob{0%{transform:rotate(-4deg) translateY(0)}to{transform:rotate(5deg) translateY(-3px)}}@keyframes tanu-slow-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes tanu-curious-tilt{0%{transform:rotate(-2deg) translateY(0)}to{transform:rotate(3deg) translateY(-1px)}}@keyframes tanu-alert-listen{0%{transform:rotate(-1deg) translateY(0)}to{transform:rotate(1deg) translateY(-3px)}}@keyframes tanu-card-pop{0%{transform:translate(14px,18px) scale(.2) rotate(10deg);opacity:0}70%{transform:translate(-2px,-2px) scale(1.08) rotate(-3deg);opacity:1}to{transform:translate(0) scale(1) rotate(0);opacity:1}}@keyframes tanu-sound-pulse{0%{opacity:.35;transform:scale(.96)}to{opacity:.95;transform:scale(1.04)}}@keyframes tanu-orbit-dots{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes tanu-spark-pop{0%{transform:scale(.68) rotate(-12deg);opacity:.45}to{transform:scale(1.18) rotate(12deg);opacity:1}}.jlpt-page{max-width:1240px;margin:0 auto}.jlpt-page h1,.jlpt-page h2,.jlpt-page h3,.jlpt-page p{margin-top:0}.jlpt-kicker{color:#7c3aed;font-size:.76rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;margin-bottom:.45rem}.jlpt-hero{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1rem;align-items:stretch;background:radial-gradient(circle at 12% 18%,rgba(196,181,253,.5),transparent 34%),radial-gradient(circle at 88% 10%,rgba(251,191,36,.34),transparent 30%),linear-gradient(135deg,#faf5fffa,#fffbebe6);border:1px solid rgba(124,58,237,.18);border-radius:34px;box-shadow:0 28px 80px #4314071f;padding:clamp(1.25rem,3vw,2.2rem);margin-bottom:1rem;overflow:hidden}.jlpt-hero h1{max-width:780px;font-size:clamp(2.25rem,5vw,4.7rem);line-height:.93;letter-spacing:-.085em;margin-bottom:.9rem;color:#24113f}.jlpt-hero p,.jlpt-muted{color:#64748b;line-height:1.65}.jlpt-hero-actions,.jlpt-card-actions,.jlpt-answer-actions,.jlpt-result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:1rem}.jlpt-card-actions.compact{margin-top:0}.jlpt-score-panel{display:flex;flex-direction:column;justify-content:center;gap:.25rem;border-radius:28px;background:linear-gradient(160deg,#24113f,#4338ca 58%,#0f766e);color:#fff;padding:1.25rem;min-height:190px;box-shadow:inset 0 1px #ffffff29}.jlpt-score-panel span,.jlpt-control-card span,.jlpt-level-card span,.jlpt-category-card span,.jlpt-resource-card span,.jlpt-score-grid span{font-size:.74rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;opacity:.78}.jlpt-score-panel strong{font-size:clamp(2.6rem,6vw,4.6rem);line-height:.95;letter-spacing:-.08em}.jlpt-score-panel small,.jlpt-score-panel b{color:#ddd6fe;font-size:.86rem}.jlpt-error{width:100%;justify-content:flex-start;border-radius:18px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;margin-bottom:1rem}.jlpt-controls,.jlpt-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 220px;gap:.8rem;margin-bottom:1rem}.jlpt-layout{grid-template-columns:minmax(0,1fr) 340px}.jlpt-control-card,.jlpt-panel,.jlpt-category-card,.jlpt-resource-card,.jlpt-question-card,.jlpt-runner-header{background:#ffffffe6;border:1px solid rgba(148,163,184,.24);border-radius:26px;box-shadow:0 18px 54px #0f172a12;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.jlpt-control-card{padding:1rem;display:flex;flex-direction:column;justify-content:center}.jlpt-control-card strong{font-size:2rem;letter-spacing:-.065em;color:#7c3aed}.jlpt-level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}.jlpt-level-card{min-height:118px;align-items:flex-start;flex-direction:column;text-align:left;border-radius:24px;background:linear-gradient(180deg,#fffffff0,#f8fafce6);color:#24113f;border:1px solid rgba(124,58,237,.16);box-shadow:0 16px 38px #0f172a0f}.jlpt-level-card.active{background:linear-gradient(135deg,#7c3aed,#4338ca);color:#fff}.jlpt-level-card strong{font-size:1.8rem;letter-spacing:-.06em}.jlpt-panel{padding:1.2rem;margin-bottom:1rem}.jlpt-panel.wide{min-width:0}.jlpt-panel-title{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:.9rem}.jlpt-panel-title h2,.jlpt-panel h2{margin-bottom:.4rem;font-size:1.28rem;letter-spacing:-.04em}.jlpt-panel-title span{color:#94a3b8;font-size:.8rem;font-weight:800;text-align:right}.jlpt-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.8rem}.jlpt-category-card{min-height:250px;padding:1rem;display:flex;flex-direction:column;justify-content:space-between}.jlpt-category-card h3{margin:.35rem 0 .5rem;font-size:1.25rem;letter-spacing:-.045em;color:#24113f}.jlpt-category-card p{color:#64748b;line-height:1.55;font-size:.92rem}.jlpt-history-list{display:grid;gap:.55rem}.jlpt-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .7rem;align-items:center;background:#faf5ff;border:1px solid #e9d5ff;border-radius:17px;padding:.8rem}.jlpt-history-row strong{min-width:0}.jlpt-history-row span{color:#7c3aed;font-weight:900}.jlpt-history-row small{grid-column:1 / -1;color:#94a3b8}.jlpt-resource-browser{overflow:hidden}.jlpt-resource-toolbar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr) auto;gap:.8rem;align-items:center;margin-bottom:1rem}.jlpt-tab-row{display:flex;flex-wrap:wrap;gap:.45rem}.jlpt-tab-row button{min-height:44px}.jlpt-tab-row button.active{background:#24113f}.jlpt-tab-row button small{opacity:.7}.jlpt-resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem;max-height:720px;overflow:auto;padding-right:.25rem}.jlpt-resource-grid.kana{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}.jlpt-resource-card{padding:1rem;display:grid;gap:.45rem;align-content:start}.jlpt-resource-card strong{font-size:1.7rem;line-height:1.05;letter-spacing:-.05em;color:#24113f}.jlpt-resource-card.kanji strong,.jlpt-resource-card.kana strong{font-size:3rem;letter-spacing:0}.jlpt-resource-card p,.jlpt-resource-card small{color:#64748b;line-height:1.45}.jlpt-resource-card blockquote{margin:.35rem 0 0;border-left:3px solid #c4b5fd;padding-left:.75rem;color:#475569;line-height:1.55}.jlpt-runner-header{position:sticky;top:74px;z-index:5;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.8rem;margin-bottom:1rem}.jlpt-runner-progress strong,.jlpt-runner-progress span{display:block}.jlpt-runner-progress span{color:#64748b;font-size:.84rem;margin-top:.1rem}.jlpt-progress-bar{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:.55rem}.jlpt-progress-bar div{height:100%;background:linear-gradient(90deg,#7c3aed,#0f766e);border-radius:inherit}.jlpt-question-layout{display:grid;grid-template-columns:76px minmax(0,1fr);gap:1rem}.jlpt-question-nav{position:sticky;top:178px;align-self:start;display:grid;grid-template-columns:repeat(2,1fr);gap:.35rem;background:#ffffffd9;border:1px solid rgba(148,163,184,.24);border-radius:20px;padding:.45rem}.jlpt-question-nav button{width:30px;height:30px;border-radius:10px;padding:0;font-size:.72rem;background:#e2e8f0;color:#334155}.jlpt-question-nav button.active{background:#24113f;color:#fff}.jlpt-question-nav button.answered{background:#ccfbf1;color:#115e59}.jlpt-question-meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.7rem}.jlpt-question-meta span,.jlpt-question-meta small{background:#f5f3ff;color:#6d28d9;border-radius:999px;padding:.32rem .7rem;font-size:.78rem;font-weight:900}.jlpt-question-meta small{background:#f1f5f9;color:#64748b}.jlpt-question-card{padding:1.15rem}.jlpt-question-card h2{white-space:pre-wrap;font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.35;letter-spacing:-.035em;margin-bottom:1rem}.jlpt-instruction{margin:0 0 .6rem;border-radius:999px;padding:.45rem .75rem;background:#eff6ff;color:#1d4ed8;font-size:.82rem;font-weight:900;display:inline-flex}.jlpt-cloze-stem{letter-spacing:0}.jlpt-audio-box{display:flex;align-items:center;gap:.75rem;background:#f5f3ff;color:#5b21b6;border:1px solid #ddd6fe;border-radius:18px;padding:.75rem;margin-bottom:.8rem}.jlpt-audio-box button{background:#24113f}.jlpt-options{display:grid;gap:.65rem}.jlpt-options button{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:.8rem;width:100%;min-height:58px;border-radius:18px;background:#f8fafc;color:#172033;border:1px solid #e2e8f0;text-align:left}.jlpt-options button strong{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e2e8f0}.jlpt-options button.selected{border-color:#7c3aed;background:#f5f3ff}.jlpt-options button.correct{border-color:#14b8a6;background:#f0fdfa}.jlpt-options button.wrong{border-color:#ef4444;background:#fef2f2}.jlpt-feedback{border-radius:18px;padding:.9rem 1rem;margin-top:1rem;line-height:1.55}.jlpt-feedback.correct{background:#f0fdfa;border:1px solid #99f6e4;color:#115e59}.jlpt-feedback.wrong{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.jlpt-score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.7rem;margin-bottom:1rem}.jlpt-score-grid button{align-items:flex-start;flex-direction:column;min-height:118px;border-radius:22px;background:#fff;color:#172033;border:1px solid rgba(148,163,184,.24);text-align:left}.jlpt-score-grid strong{color:#7c3aed;font-size:1.7rem}.jlpt-rec-line{background:#f5f3ff;color:#5b21b6;border-radius:16px;padding:.75rem .9rem;margin-bottom:.55rem}.jlpt-review-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;margin-bottom:.55rem}.jlpt-review-item summary{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;cursor:pointer;list-style:none}.jlpt-review-item summary::-webkit-details-marker{display:none}.jlpt-review-item summary span{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#24113f;color:#fff;font-size:.78rem;font-weight:900}.jlpt-review-item summary small{margin-left:auto;font-weight:900}.jlpt-review-item summary small.ok{color:#0f766e}.jlpt-review-item summary small.ng{color:#dc2626}.jlpt-review-body{border-top:1px solid #e2e8f0;padding:1rem;font-size:.9rem;line-height:1.65}.jlpt-review-explanation{color:#115e59;font-weight:700}@media(max-width:980px){.jlpt-hero,.jlpt-layout,.jlpt-question-layout,.jlpt-resource-toolbar{grid-template-columns:1fr}.jlpt-controls,.jlpt-level-grid{grid-template-columns:1fr 1fr}.jlpt-question-nav{position:static;grid-template-columns:repeat(auto-fill,minmax(32px,1fr))}}@media(max-width:640px){.jlpt-controls,.jlpt-level-grid,.jlpt-runner-header{grid-template-columns:1fr}.jlpt-runner-header{top:66px}.jlpt-options button{grid-template-columns:34px minmax(0,1fr)}.jlpt-resource-grid,.jlpt-resource-grid.kana{grid-template-columns:1fr;max-height:none}}.toeic-page{max-width:1180px;margin:0 auto}.toeic-page h1,.toeic-page h2,.toeic-page p{margin-top:0}.toeic-kicker{color:#c2410c;font-size:.78rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;margin-bottom:.45rem}.toeic-hero,.toeic-report-hero{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1rem;align-items:stretch;background:linear-gradient(135deg,#fff7edf5,#ffffffdb);border:1px solid rgba(249,115,22,.22);border-radius:30px;box-shadow:0 28px 70px #4314071f;padding:clamp(1.25rem,3vw,2rem);margin-bottom:1rem}.toeic-hero h1,.toeic-report-hero h1{font-size:clamp(2rem,4vw,3.8rem);line-height:.95;letter-spacing:-.075em;margin-bottom:.8rem}.toeic-hero p,.toeic-report-hero p,.toeic-muted{color:#64748b;line-height:1.65}.toeic-score-panel{display:flex;flex-direction:column;justify-content:center;gap:.25rem;border-radius:24px;background:#172033;color:#fff;padding:1.2rem;min-height:170px}.toeic-score-panel span,.toeic-score-card span,.toeic-mode-card span,.toeic-part-card span{font-size:.76rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;opacity:.76}.toeic-score-panel strong{font-size:clamp(2.3rem,5vw,4rem);line-height:.95;letter-spacing:-.08em}.toeic-score-panel.large strong{font-size:clamp(2.8rem,7vw,5.4rem)}.toeic-score-panel small{color:#cbd5e1}.toeic-error{width:100%;justify-content:flex-start;border-radius:18px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;margin-bottom:1rem}.toeic-mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}.toeic-mode-card,.toeic-part-card,.toeic-recommendation{align-items:flex-start;border-radius:24px;border:1px solid rgba(148,163,184,.24);background:#ffffffdb;color:#172033;flex-direction:column;min-height:150px;padding:1rem;text-align:left;box-shadow:0 16px 42px #0f172a0f}.toeic-mode-card.primary{background:linear-gradient(135deg,#f97316,#ea580c);color:#fff}.toeic-mode-card strong,.toeic-part-card strong,.toeic-recommendation strong{font-size:1.12rem;line-height:1.2}.toeic-mode-card small,.toeic-part-card small,.toeic-recommendation span{color:inherit;opacity:.72;line-height:1.45}.toeic-section-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1rem;margin-bottom:1rem}.toeic-panel{background:#ffffffdb;border:1px solid rgba(148,163,184,.24);border-radius:26px;box-shadow:0 18px 50px #0f172a12;padding:1.2rem;margin-bottom:1rem}.toeic-panel-title{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.8rem}.toeic-panel-title h2,.toeic-panel h2{margin-bottom:.7rem;font-size:1.18rem;letter-spacing:-.035em}.toeic-panel-title span{color:#94a3b8;font-size:.82rem;font-weight:800}.toeic-part-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.7rem}.toeic-part-card{min-height:130px;background:linear-gradient(180deg,#fff,#f8fafc)}.toeic-recommendation{min-height:0;width:100%;margin-bottom:.55rem;background:#fff7ed;border-color:#fed7aa;color:#9a3412}.toeic-history-list{display:grid;gap:.55rem}.toeic-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.8rem;align-items:center;background:#f8fafc;border-radius:16px;padding:.8rem 1rem}.toeic-history-row strong{min-width:0}.toeic-history-row span{color:#c2410c;font-weight:900}.toeic-history-row small{color:#94a3b8}.toeic-runner-header{position:sticky;top:74px;z-index:5;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.8rem;align-items:center;background:#fffffff0;border:1px solid rgba(148,163,184,.24);border-radius:24px;box-shadow:0 18px 46px #0f172a17;padding:.8rem;margin-bottom:1rem;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.toeic-runner-progress strong,.toeic-runner-progress span{display:block}.toeic-runner-progress span{color:#64748b;font-size:.84rem;margin-top:.1rem}.toeic-progress-bar{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:.55rem}.toeic-progress-bar div{height:100%;background:linear-gradient(90deg,#f97316,#16a34a);border-radius:inherit}.toeic-question-layout{display:grid;grid-template-columns:72px minmax(0,1fr);gap:1rem}.toeic-question-nav{position:sticky;top:178px;align-self:start;display:grid;grid-template-columns:repeat(2,1fr);gap:.35rem;background:#ffffffd1;border:1px solid rgba(148,163,184,.22);border-radius:20px;padding:.45rem}.toeic-question-nav button{width:28px;height:28px;border-radius:10px;padding:0;font-size:.72rem;background:#e2e8f0;color:#334155}.toeic-question-nav button.active{background:#172033;color:#fff}.toeic-question-nav button.answered{background:#bbf7d0;color:#14532d}.toeic-question-main{min-width:0}.toeic-question-meta{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.7rem}.toeic-question-meta span,.toeic-question-meta small{background:#fff7ed;color:#9a3412;border-radius:999px;padding:.32rem .7rem;font-size:.78rem;font-weight:900}.toeic-question-meta small{background:#f1f5f9;color:#64748b}.toeic-stimulus,.toeic-question-card{background:#ffffffe6;border:1px solid rgba(148,163,184,.24);border-radius:26px;box-shadow:0 18px 50px #0f172a12;padding:1.1rem;margin-bottom:1rem}.toeic-stimulus-image{width:100%;max-height:420px;object-fit:contain;border-radius:18px;border:1px solid #e2e8f0;background:#f8fafc;margin-bottom:.8rem}.toeic-audio-box{display:flex;align-items:center;gap:.75rem;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:18px;padding:.75rem;margin-bottom:.8rem}.toeic-audio-box button{background:#172033}.toeic-passage{white-space:pre-wrap;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#172033;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;line-height:1.7;max-height:540px}.toeic-transcript{color:#475569;font-size:.9rem}.toeic-question-card h2{font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.35;letter-spacing:-.035em;margin-bottom:1rem}.toeic-options{display:grid;gap:.65rem}.toeic-options button{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:.8rem;width:100%;min-height:58px;border-radius:18px;background:#f8fafc;color:#172033;border:1px solid #e2e8f0;text-align:left}.toeic-options button strong{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e2e8f0}.toeic-options button.selected{border-color:#f97316;background:#fff7ed}.toeic-options button.correct{border-color:#22c55e;background:#f0fdf4}.toeic-options button.wrong{border-color:#ef4444;background:#fef2f2}.toeic-writing-input{min-height:300px;line-height:1.7}.toeic-answer-actions,.toeic-result-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:1rem}.toeic-feedback{border-radius:18px;padding:.9rem 1rem;margin-top:1rem;line-height:1.55}.toeic-feedback.correct{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}.toeic-feedback.wrong{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.toeic-feedback.neutral{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}.toeic-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}.toeic-score-card{border-radius:24px;background:#ffffffe6;border:1px solid rgba(148,163,184,.24);padding:1.1rem}.toeic-score-card strong{display:block;font-size:2rem;letter-spacing:-.06em;color:#c2410c}.toeic-score-card small{color:#94a3b8}.toeic-rec-line{background:#fff7ed;color:#9a3412;border-radius:16px;padding:.75rem .9rem;margin-bottom:.55rem}.toeic-part-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem}.toeic-part-results button{flex-direction:column;align-items:flex-start;background:#f8fafc;color:#172033;border-radius:18px;border:1px solid #e2e8f0}.toeic-part-results strong{font-size:1.45rem;color:#c2410c}.toeic-skill-list{display:grid;gap:.6rem}.toeic-skill-row{display:grid;grid-template-columns:150px minmax(0,1fr) 52px;gap:.7rem;align-items:center}.toeic-skill-row span{font-size:.86rem;font-weight:800;color:#475569}.toeic-skill-row div{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.toeic-skill-row b{display:block;height:100%;background:linear-gradient(90deg,#f97316,#16a34a)}.toeic-review-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;margin-bottom:.55rem}.toeic-review-item summary{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;cursor:pointer;list-style:none}.toeic-review-item summary::-webkit-details-marker{display:none}.toeic-review-item summary span{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#172033;color:#fff;font-size:.78rem;font-weight:900}.toeic-review-item summary small{margin-left:auto;font-weight:900}.toeic-review-item summary small.ok{color:#15803d}.toeic-review-item summary small.ng{color:#dc2626}.toeic-review-body{border-top:1px solid #e2e8f0;padding:1rem;font-size:.9rem;line-height:1.65}.toeic-review-body pre{background:#fff;color:#172033;border:1px solid #e2e8f0}.toeic-review-explanation{color:#14532d;font-weight:700}@media(max-width:900px){.toeic-hero,.toeic-report-hero,.toeic-section-layout,.toeic-question-layout{grid-template-columns:1fr}.toeic-mode-grid,.toeic-score-grid{grid-template-columns:1fr 1fr}.toeic-question-nav{position:static;grid-template-columns:repeat(auto-fill,minmax(32px,1fr))}}@media(max-width:640px){.toeic-mode-grid,.toeic-score-grid,.toeic-history-row,.toeic-runner-header,.toeic-skill-row{grid-template-columns:1fr}.toeic-runner-header{top:66px}.toeic-options button{grid-template-columns:34px minmax(0,1fr)}}.conversation-shell{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr) minmax(260px,320px);gap:1rem;height:100%;min-height:0}.conversation-sidebar{display:flex;flex-direction:column;background:#ffffffe6;border:1px solid rgba(148,163,184,.22);border-radius:24px;box-shadow:0 20px 50px #43140714;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:.9rem;min-height:0;overflow:hidden}.conversation-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex:0 0 auto;padding:.15rem .2rem .8rem;border-bottom:1px solid rgba(148,163,184,.14);margin-bottom:.7rem}.conversation-sidebar-header h2{margin:0;color:#1e293b;font-size:1rem;letter-spacing:-.03em}.new-chat-btn{padding:.42rem .7rem;border-radius:12px;font-size:.78rem;white-space:nowrap}.conversation-sidebar-actions{display:flex;align-items:center;gap:.4rem}.conversation-sidebar-toggle{display:none;padding:.42rem .7rem;border-radius:12px;background:#e2e8f0;color:#334155;font-size:.78rem}.conversation-sidebar-body{flex:1 1 auto;min-height:0;overflow-y:auto}.conversation-history-list{display:grid;gap:.35rem}.conversation-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem;border-radius:16px;border:1px solid transparent;background:transparent;transition:background .15s ease,border-color .15s ease}.conversation-history-item:hover,.conversation-history-item.active{background:#fff7ed;border-color:#fed7aa}.conversation-history-item.draft{margin-bottom:.55rem}.conversation-history-main{min-width:0;display:grid;gap:.15rem;text-align:left;padding:.7rem .75rem;border-radius:15px;background:transparent;color:#172033;justify-content:stretch}.conversation-history-main:hover{background:transparent;color:#172033}.conversation-history-title,.conversation-history-preview,.conversation-history-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-history-title{font-size:.88rem;font-weight:850}.conversation-history-preview{color:#64748b;font-size:.76rem}.conversation-history-meta{color:#94a3b8;font-size:.7rem;font-weight:700}.conversation-delete-btn{width:28px;height:28px;padding:0;margin-right:.35rem;border-radius:9px;background:transparent;color:#94a3b8;font-size:1.05rem;opacity:0}.conversation-history-item:hover .conversation-delete-btn,.conversation-history-item.active .conversation-delete-btn{opacity:1}.conversation-delete-btn:hover{background:#fee2e2;color:#b91c1c}.conversation-history-status{margin:.5rem .2rem;color:#64748b;font-size:.8rem;line-height:1.45}.conversation-history-status.error{color:#b91c1c}.scenario-sidebar{display:flex;flex-direction:column;background:#ffffffe6;border:1px solid rgba(148,163,184,.22);border-radius:24px;box-shadow:0 20px 50px #43140714;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:.9rem;min-height:0;overflow:hidden}.scenario-sidebar-header{display:flex;justify-content:space-between;gap:.75rem;flex:0 0 auto;padding:.15rem .2rem .8rem;border-bottom:1px solid rgba(148,163,184,.14);margin-bottom:.7rem}.scenario-sidebar-header h2{margin:0;color:#1e293b;font-size:1rem;letter-spacing:-.03em}.scenario-sidebar-header p{margin:.22rem 0 0;color:#64748b;font-size:.75rem;line-height:1.35}.scenario-sidebar-toggle{display:none;align-self:flex-start;padding:.42rem .7rem;border-radius:12px;background:#e2e8f0;color:#334155;font-size:.78rem;white-space:nowrap}.scenario-sidebar-body{flex:1 1 auto;min-height:0;overflow-y:auto}.scenario-create-form{display:grid;gap:.55rem;padding:.75rem;border-radius:18px;background:#f8fafc;border:1px solid rgba(148,163,184,.2);margin-bottom:.75rem}.scenario-create-form input,.scenario-create-form textarea{border-radius:13px;padding:.62rem .7rem;font-size:.78rem;background:#fff}.scenario-create-form textarea{min-height:82px}.scenario-create-form button{border-radius:13px;padding:.62rem .75rem;font-size:.78rem}.scenario-status{margin:.5rem .2rem;color:#64748b;font-size:.8rem;line-height:1.45}.scenario-status.error{color:#b91c1c}.scenario-list{display:grid;gap:.45rem}.scenario-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.25rem;border-radius:17px;border:1px solid transparent;transition:background .15s ease,border-color .15s ease}.scenario-card:hover,.scenario-card.active{background:#f5f3ff;border-color:#ddd6fe}.scenario-card-main{min-width:0;display:grid;justify-content:stretch;gap:.22rem;width:100%;padding:.75rem;border-radius:16px;background:transparent;color:#172033;text-align:left}.scenario-card-main:hover{background:transparent;color:#172033}.scenario-card-main strong,.scenario-card-main span,.scenario-card-main small{min-width:0;overflow:hidden;text-overflow:ellipsis}.scenario-card-main strong{font-size:.88rem;line-height:1.25}.scenario-card-main span:not(.scenario-card-label){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;color:#64748b;font-size:.75rem;line-height:1.35}.scenario-card-main small{color:#6d28d9;font-size:.72rem;font-weight:850}.scenario-card-label{justify-self:start;border-radius:999px;padding:.12rem .45rem;background:#ede9fe;color:#6d28d9;font-size:.68rem;font-weight:900}.scenario-remove-btn{width:28px;height:28px;padding:0;margin:.55rem .45rem 0 0;border-radius:9px;background:transparent;color:#94a3b8;font-size:1.05rem;opacity:0}.scenario-card:hover .scenario-remove-btn,.scenario-card.active .scenario-remove-btn{opacity:1}.scenario-remove-btn:hover{background:#fee2e2;color:#b91c1c}.conversation-shell .conversation-layout.chat-only{height:100%;min-height:0;margin:0}.conversation-layout.chat-only{display:flex!important;flex-direction:column!important;grid-template-columns:unset!important;width:100%!important;max-width:100%!important;margin:0 auto;height:100%;min-height:0;background:#ffffffe6;border:1px solid rgba(148,163,184,.22);border-radius:24px;box-shadow:0 20px 50px #43140714;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);overflow:hidden}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.5rem;border-bottom:1px solid rgba(148,163,184,.12);background:#ffffffb3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);flex:0 0 auto}.chat-header h1{font-size:1.25rem!important;font-weight:800;color:#1e293b;margin:0}.mute-toggle-btn{display:inline-flex;align-items:center;gap:.4rem;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:999px;padding:.4rem .9rem;font-size:.8rem;font-weight:700;cursor:pointer;transition:all .2s ease}.mute-toggle-btn:hover{background:#e2e8f0;color:#1e293b}.mute-toggle-btn.muted{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.mute-toggle-btn.muted:hover{background:#fca5a5}.article-collapsible-header{background:#f0f9ff;border-bottom:1px solid #bae6fd;padding:.7rem 1.5rem;font-size:.8rem;line-height:1.5;flex:0 0 auto}.article-collapsible-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:.75rem;cursor:pointer;padding:0;border:0;border-radius:0;background:transparent;color:inherit;text-align:left}.article-collapsible-toggle:hover{background:transparent}.warning-banner{color:var(--warning);background:var(--warning-surface);border-bottom:1px solid var(--warning-border);padding:.7rem 1rem;font-size:.82rem;margin:0;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.warning-banner.compact{padding-block:.6rem;font-size:.8rem;flex-wrap:nowrap}.warning-banner-dismiss{padding:2px 8px;font-size:.75rem;background:#f59e0b;color:#fff;border-radius:4px}.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1rem;width:100%!important}.chat-messages-container{max-width:100%;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.composer-container{max-width:100%;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:.65rem}.chat-message-row{display:flex;align-items:flex-start;gap:.7rem;max-width:75%;width:100%}.chat-message-row.learner{margin-left:auto;justify-content:flex-end}.chat-message-row.tutor{margin-right:auto;justify-content:flex-start}.chat-avatar{flex-shrink:0;width:32px;height:32px;border-radius:10px;overflow:hidden;border:1.5px solid var(--border-amber);background:var(--surface-cream);box-shadow:0 4px 10px #0000000a}.chat-avatar .tanu-container{width:100%!important;height:100%!important}.chat-avatar .tanu-image-frame{border-radius:0!important;border:none!important;box-shadow:none!important;animation:none!important}.chat-only .bubble{max-width:100%;margin:0!important;padding:.85rem 1.1rem;box-shadow:0 4px 15px #00000008}.chat-only .bubble p{margin:0;white-space:pre-wrap;word-break:break-word}.chat-only .bubble.learner{border-bottom-right-radius:6px!important}.chat-only .bubble.tutor{border-bottom-left-radius:6px!important}.chat-composer-section{padding:1rem 1.5rem;border-top:1px solid rgba(148,163,184,.12);background:#ffffffd9;display:flex!important;flex-direction:column;gap:.65rem;width:100%!important;flex:0 0 auto}.composer-row{display:flex;gap:.8rem;align-items:flex-end}.mascot-input-widget{flex-shrink:0;margin-bottom:2px}.mascot-input-widget .tanu-image-frame{border-radius:14px!important;box-shadow:0 6px 15px #4314071a!important}.input-wrapper{flex:1;position:relative;display:flex;background:#fff;border:1.5px solid var(--border-strong);border-radius:20px;padding:.4rem .5rem .4rem 1rem;transition:all .2s ease;align-items:flex-end;box-shadow:0 2px 8px #00000005;width:100%}.input-wrapper:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 3px #f973161f}.input-wrapper textarea{flex:1;border:none!important;background:transparent!important;outline:none!important;resize:none!important;max-height:100px;min-height:34px!important;font-size:.92rem;padding:.35rem 0;line-height:1.4;color:#1e293b;box-shadow:none!important}.send-button{background:var(--color-primary);color:#fff;border:none;border-radius:12px;padding:.45rem 1.1rem;font-size:.85rem;font-weight:800;cursor:pointer;transition:background .2s ease;flex-shrink:0}.send-button:hover{background:var(--color-primary-hover)}.send-button:disabled{background:var(--border);color:var(--ink-disabled);cursor:not-allowed}.composer-bottom-actions{display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap}.strict-check-toggle{display:inline-flex;align-items:center;gap:.45rem;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;padding:.35rem .8rem;font-size:.78rem;font-weight:800;cursor:pointer;transition:all .2s ease}.strict-check-toggle small{color:#94a3b8;font-size:.68rem;font-weight:700}.strict-check-toggle.active{border-color:#f97316;background:#fff7ed;color:#9a3412}.strict-check-toggle.active small{color:#c2410c}.strict-check-toggle:hover{border-color:#cbd5e1;background:#f8fafc}.strict-check-toggle.active:hover{border-color:#ea580c;background:#ffedd5}.end-session-btn{font-size:.78rem!important;color:#64748b;border:1px solid #e2e8f0;border-radius:999px;padding:.35rem 1rem;background:#fff;font-weight:700;cursor:pointer;transition:all .2s ease}.end-session-btn:hover{background:#f8fafc;color:#0f172a;border-color:#cbd5e1}.composer-error{color:#dc2626;background:#fef2f2;padding:.55rem .9rem;border-radius:10px;font-size:.8rem;border:1px solid #fee2e2;cursor:pointer}.mascot-hint-bubble-inline{animation:tanu-slide-in .3s ease-out;border:1px solid #fed7aa}@keyframes tanu-slide-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:980px){.conversation-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0}.conversation-sidebar,.scenario-sidebar{max-height:clamp(150px,30dvh,260px)}}@media(max-width:640px){main.conversation-main{padding:0}.conversation-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0;gap:0}.conversation-sidebar,.scenario-sidebar{max-height:none;border-radius:0;border-top:0;border-inline:0;box-shadow:none;padding:.55rem .75rem}.conversation-sidebar-header,.scenario-sidebar-header{margin-bottom:0;padding:0;border-bottom:0}.conversation-sidebar-header h2,.scenario-sidebar-header h2{font-size:.9rem}.scenario-sidebar-header p{display:none}.conversation-sidebar-actions{gap:.3rem}.conversation-sidebar-toggle,.scenario-sidebar-toggle{display:inline-flex}.new-chat-btn,.conversation-sidebar-toggle,.scenario-sidebar-toggle{padding:.36rem .6rem;font-size:.74rem}.conversation-sidebar-body,.scenario-sidebar-body{display:none;max-height:min(260px,28dvh);margin-top:.55rem;padding-top:.55rem;border-top:1px solid rgba(148,163,184,.14);overflow-y:auto}.conversation-sidebar.open .conversation-sidebar-body,.scenario-sidebar.open .scenario-sidebar-body{display:block}.conversation-delete-btn,.scenario-remove-btn{opacity:1}.conversation-layout.chat-only{margin:0;height:100%;border-radius:0;border:none;box-shadow:none}.chat-header{padding:.55rem .75rem}.chat-header h1{font-size:1rem!important}.mute-toggle-btn{padding:.35rem .65rem;font-size:.74rem}.warning-banner,.article-collapsible-header{padding:.55rem .75rem!important;font-size:.76rem!important}.chat-messages{padding:.75rem;gap:.75rem}.chat-messages-container{gap:.75rem}.chat-message-row{max-width:98%;gap:.45rem}.chat-avatar{width:28px;height:28px}.chat-only .bubble{padding:.7rem .8rem;border-radius:18px;font-size:.9rem}.chat-composer-section{padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));gap:.45rem}.composer-container{gap:.45rem}.mascot-hint-bubble-inline{align-items:flex-start!important;font-size:.74rem!important;line-height:1.35}.composer-row{gap:0}.mascot-input-widget{display:none}.input-wrapper{border-radius:16px;padding:.3rem .35rem .3rem .75rem}.input-wrapper textarea{max-height:76px;min-height:30px!important;font-size:.9rem}.send-button{padding:.42rem .8rem;border-radius:11px}.composer-bottom-actions{gap:.35rem;justify-content:stretch}.strict-check-toggle{flex:1 1 100%;justify-content:center;border-radius:14px}.strict-check-toggle small{display:none}.end-session-btn{flex:1 1 auto}}.info-page{max-width:1180px;margin:0 auto;display:grid;gap:1rem}.info-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:1rem;align-items:stretch}.info-hero-card,.info-rule-card,.info-section,.info-footer-card{background:#ffffffdb;border:1px solid rgba(255,255,255,.62);border-radius:30px;box-shadow:0 24px 64px #4314071f;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.info-hero-card{min-height:360px;padding:clamp(1.6rem,4vw,3.8rem);display:grid;align-content:center;background:linear-gradient(135deg,#111827,#243041 68%,#9a3412);color:#fff}.info-hero-card .eyebrow{color:#fed7aa}.info-hero-card h1{max-width:780px;margin:.25rem 0 1rem;font-size:clamp(2.4rem,6vw,5.2rem);line-height:.95;letter-spacing:-.075em}.info-hero-card p{max-width:720px;color:#ffffffd1;font-size:1.08rem;line-height:1.65}.info-rule-card{padding:clamp(1.25rem,2.8vw,2rem);display:grid;align-content:center;gap:.75rem;background:radial-gradient(circle at 85% 10%,rgba(249,115,22,.24),transparent 38%),linear-gradient(145deg,#fffbebf5,#ffedd5e6);border-color:#fb923c6b}.info-rule-card span,.info-feature-card span{width:fit-content;border-radius:999px;padding:.28rem .65rem;background:#ffedd5;color:#9a3412;font-size:.74rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.info-rule-card h2,.info-footer-card h2,.info-section-heading h2{margin:0;color:#431407;letter-spacing:-.055em}.info-rule-card h2{font-size:clamp(1.6rem,3vw,2.4rem);line-height:1}.info-rule-card p,.info-rule-card small,.info-section-heading p,.info-step-card p,.info-feature-card p,.info-feature-card li,.info-level-row p,.info-level-note p,.info-footer-card p{line-height:1.55}.info-rule-card p{margin:0;color:#7c2d12;font-weight:800}.info-rule-card small{color:#9a3412;font-weight:700}.info-section,.info-footer-card{padding:clamp(1.2rem,3vw,2rem)}.info-section-heading{display:grid;gap:.35rem;margin-bottom:1rem}.info-section-heading p:not(.eyebrow){max-width:860px;margin:0;color:#64748b;font-weight:700}.info-section-heading h2{font-size:clamp(1.8rem,4vw,3rem)}.info-step-grid,.info-feature-grid{display:grid;gap:.85rem}.info-step-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.info-step-card,.info-feature-card,.info-level-note{border:1px solid #e2e8f0;border-radius:22px;background:#f8fafc;padding:1rem}.info-step-card h3,.info-feature-card h3,.info-level-note h3{margin:0 0 .45rem;color:#172033;letter-spacing:-.035em}.info-step-card p,.info-feature-card p,.info-level-note p{margin:0;color:#475569}.info-feature-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.info-feature-card{min-height:100%;display:grid;align-content:start;gap:.7rem}.info-feature-card h3{margin-bottom:0;font-size:1.2rem}.info-feature-card ul{margin:0;padding-left:1.1rem;display:grid;gap:.35rem}.info-feature-card li{color:#64748b;font-size:.9rem}.info-feature-card .link-button{justify-self:start;margin-top:.2rem;color:#c2410c;font-weight:900}.info-level-section{scroll-margin-top:104px}.info-level-table{display:grid;gap:.55rem}.info-level-row{display:grid;grid-template-columns:.72fr 1fr 1fr minmax(0,2.4fr);gap:.75rem;align-items:start;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:.85rem 1rem}.info-level-row.header{background:#172033;border-color:#172033;color:#fff;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.info-level-row strong{color:#c2410c;font-size:1rem}.info-level-row span{color:#334155;font-weight:850}.info-level-row p{margin:0;color:#64748b}.info-level-row.header span,.info-level-row.header strong{color:#fff}.info-level-row.current{background:var(--surface-cream);border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary)}.info-level-you{display:block;font-style:normal;margin-top:.2rem;color:var(--color-primary-strong);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.info-level-note{margin-top:.85rem;background:#fff7ed;border-color:#fed7aa}.info-level-note h3{color:#9a3412}.info-level-note p{color:#7c2d12}.info-footer-card{display:grid;gap:.75rem;justify-items:start;background:linear-gradient(135deg,#fffbebf2,#fed7aae0);border-color:#fb923c57}.info-footer-card p{max-width:880px;margin:0;color:#7c2d12;font-weight:750}@media(max-width:980px){.info-hero-grid,.info-step-grid{grid-template-columns:1fr}.info-hero-card{min-height:0}}@media(max-width:700px){.info-hero-card,.info-rule-card,.info-section,.info-footer-card{border-radius:var(--radius-mobile);padding:var(--card-padding-mobile)}.info-hero-card h1{font-size:clamp(2rem,11vw,3rem)}.info-hero-card p{font-size:.96rem}.info-hero-actions .button,.info-footer-card .button{width:100%}.info-feature-grid{grid-template-columns:1fr}.info-level-row.header{display:none}.info-level-row{grid-template-columns:1fr;gap:.35rem}}.app-shell,main,.topbar,.hero-grid,.page-grid,.info-page,.info-hero-grid,.info-step-grid,.info-feature-grid,.info-level-row,.conversation-shell,.conversation-layout{max-width:100%;min-width:0}img,video,canvas{max-width:100%;height:auto}.panel,.article-card,.assignment-card,.teacher-assignment-card,.manual-card-row,.drill-card,.jlpt-panel,.jlpt-question-card,.jlpt-resource-card,.toeic-panel,.toeic-question-card,.toeic-stimulus,.summary,.bubble,.drill-prompt,.drill-answer-card,.jlpt-review-body,.toeic-review-body{min-width:0;overflow-wrap:anywhere}.nav-scroll{padding-inline-end:1.1rem;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 1.2rem),transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 1.2rem),transparent 100%)}.vocab-table-scroll,.progress-chart,.jlpt-resource-grid,.toeic-passage,.jlpt-question-nav,.toeic-question-nav{-webkit-overflow-scrolling:touch}.nav-scroll,.vocab-table-scroll,.progress-chart,.teacher-bars,.jlpt-question-nav,.toeic-question-nav{max-width:100%;min-width:0;overscroll-behavior-x:contain}.settings-voice-row select,.settings-voice-row button,.dashboard-level-copy,.teacher-share-card strong,.class-preview-meta strong,.progress-history-row>div{min-width:0}@media(max-width:1180px){.hero-grid,.page-grid,.teacher-page,.join-class-page,.toeic-hero,.toeic-report-hero,.toeic-section-layout,.toeic-question-layout,.jlpt-hero,.jlpt-layout,.jlpt-question-layout,.jlpt-resource-toolbar{grid-template-columns:1fr}.panel.wide{grid-column:span 1}.teacher-class-hero,.teacher-share-card{flex-direction:column}.toeic-question-nav,.jlpt-question-nav{position:static}}@media(max-width:980px){body{background-attachment:scroll;background-position:center top}.sidebar-sticky{position:static;max-height:none;overflow:visible}.local-launcher-grid,.manual-card-grid,.teacher-form-row,.teacher-form-row.three,.join-class-form{grid-template-columns:1fr}.jlpt-runner-header,.toeic-runner-header{top:104px}.jlpt-question-nav,.toeic-question-nav{display:flex;gap:.45rem;overflow-x:auto;padding:.5rem;border-radius:18px}.jlpt-question-nav button,.toeic-question-nav button{flex:0 0 44px;width:44px;height:44px;border-radius:14px;font-size:.82rem}}@media(max-width:768px){.hero-card h1{font-size:clamp(2rem,10vw,3.4rem);line-height:1.02;letter-spacing:-.055em}.hero-card p{font-size:1rem}.hero-mascot-art-wrap{margin:-.3rem -.2rem -.55rem}.stat-grid,.drill-summary-grid,.class-preview-meta,.teacher-summary-grid,.teacher-analytics-stats,.toeic-mode-grid,.toeic-score-grid,.jlpt-controls,.jlpt-level-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}.list-row,.manual-deck-header,.manual-card-form-heading,.manual-card-row,.panel-title-row,.teacher-student-row,.toeic-history-row,.jlpt-history-row,.progress-history-row,.progress-latest-score{display:flex!important;flex-direction:column;align-items:stretch!important}.deck-actions,.manual-form-actions,.manual-deck-header-actions,.drill-actions-row,.drill-grade-buttons,.toeic-answer-actions,.toeic-result-actions,.jlpt-answer-actions,.jlpt-hero-actions,.jlpt-card-actions,.article-language-filter,.suggestion-actions{width:100%;align-items:stretch;flex-wrap:wrap}.deck-actions button,.manual-form-actions button,.manual-deck-header-actions button,.drill-actions-row button,.drill-actions-row .button,.drill-grade-buttons button,.toeic-answer-actions button,.toeic-result-actions button,.jlpt-answer-actions button,.jlpt-hero-actions button,.jlpt-card-actions button,.suggestion-actions button,.settings-voice-row button{flex:1 1 auto;min-width:min(100%,150px)}.dashboard-level-callout{align-items:flex-start!important;gap:.85rem!important;padding:1rem!important}.dashboard-level-mascot{width:100%}.dashboard-level-copy{min-width:0!important}.settings-voice-row{display:grid!important;grid-template-columns:1fr}.vocab-table-scroll{border-radius:14px!important;max-width:100%}.vocab-table{min-width:860px}.vocab-table-scroll:after{content:"Scroll sideways to see all columns";display:block;padding:.45rem .75rem;color:#64748b;background:#f8fafc;border-top:1px solid #e2e8f0;font-size:.74rem;font-weight:800}.teacher-share-card strong,.upload-rights-file strong{overflow-wrap:anywhere}.progress-page{max-width:980px;margin-inline:auto}.progress-chart{overflow-x:auto;min-height:180px;padding-inline:.25rem!important}.progress-chart-bar{min-width:48px}.progress-rubric-row{display:grid!important;grid-template-columns:1fr;align-items:stretch!important;gap:.35rem!important}}@media(max-width:640px){main:not(.conversation-main){padding:var(--page-padding-mobile);padding-bottom:calc(4.8rem + var(--safe-bottom))}.topbar{grid-template-columns:auto minmax(0,1fr)}.nav-scroll a{min-height:36px}.topbar-auth-button{padding:.48rem .65rem;font-size:.78rem;white-space:nowrap}.offline-pill{right:.75rem;bottom:calc(.75rem + var(--safe-bottom));max-width:min(82vw,320px);white-space:normal;font-size:.78rem}.suggestion-fab{right:.75rem;bottom:calc(4.15rem + var(--safe-bottom))}.install-help{left:.75rem;right:.75rem;bottom:calc(5.4rem + var(--safe-bottom));width:auto;grid-template-columns:auto minmax(0,1fr)}.install-help-dismiss{width:100%}.install-help-actions{grid-column:1 / -1;display:grid;grid-template-columns:1fr}.install-help-actions button{width:100%}.panel,.hero-card,.hero-mascot-card,.drill-card,.jlpt-panel,.jlpt-question-card,.jlpt-resource-card,.toeic-panel,.toeic-question-card,.toeic-stimulus,.toeic-score-card,.suggestion-modal{border-radius:var(--radius-mobile);padding:var(--card-padding-mobile)}.panel h1,.jlpt-hero h1,.toeic-hero h1,.toeic-report-hero h1{font-size:clamp(1.65rem,8vw,2.35rem);line-height:1.05;letter-spacing:-.055em}.actions,.actions.compact,.toeic-part-grid,.teacher-assignment-grid,.jlpt-category-grid,.jlpt-resource-grid,.jlpt-resource-grid.kana,.drill-options,.manual-card-grid{grid-template-columns:1fr}.actions .button,.actions button,.actions.compact .button,.actions.compact button,.join-class-form button,.manual-card-form-heading button{width:100%}.drill-page{min-height:auto;gap:.7rem}.drill-card{gap:.75rem}.drill-topbar,.drill-progress-row,.drill-footer-row{gap:.55rem}.drill-topbar-meta{justify-content:flex-start}.drill-prompt{padding:.9rem;border-radius:18px}.drill-prompt strong,.drill-answer-card strong{font-size:clamp(1.3rem,8vw,2rem);line-height:1.15;letter-spacing:-.025em}.drill-study-list{max-height:min(52dvh,520px);overflow-y:auto;padding-right:.15rem}.drill-study-item{grid-template-columns:1fr;padding:.8rem;border-radius:16px}.drill-typing,.drill-typing[style]{display:grid!important;grid-template-columns:1fr;gap:.55rem}.drill-typing input,.drill-textarea{min-height:48px;font-size:1rem!important;padding:.72rem .85rem!important;border-radius:15px!important}.drill-options button{min-height:56px;padding:.8rem .9rem}.jlpt-runner-header,.toeic-runner-header{position:static;grid-template-columns:1fr;border-radius:18px;margin-bottom:.75rem;padding:.65rem}.jlpt-question-nav,.toeic-question-nav{margin-bottom:.75rem;max-width:100%}.jlpt-audio-box,.toeic-audio-box{flex-direction:column;align-items:stretch;gap:.5rem}.jlpt-audio-box button,.toeic-audio-box button{width:100%}.jlpt-options button,.toeic-options button{grid-template-columns:32px minmax(0,1fr);gap:.55rem;min-height:54px;padding:.65rem .75rem}.jlpt-options button span,.toeic-options button span{min-width:0;overflow-wrap:anywhere}.toeic-passage{max-height:min(45dvh,340px);overflow-y:auto;font-size:.86rem}.toeic-writing-input{min-height:180px}.jlpt-resource-grid,.jlpt-resource-grid.kana{max-height:min(62dvh,620px);overflow-y:auto}.jlpt-tab-row button,.jlpt-card-actions.compact button{flex:1 1 160px}.jlpt-review-item summary,.toeic-review-item summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:.7rem}.jlpt-review-item summary strong,.toeic-review-item summary strong{min-width:0;overflow-wrap:anywhere}.toeic-skill-row{grid-template-columns:1fr;gap:.4rem}.teacher-bars{overflow-x:auto;grid-template-columns:repeat(7,minmax(42px,1fr))}.teacher-class-card,.assignment-card-head,.teacher-assignment-card div{align-items:flex-start;flex-direction:column}.class-preview-meta{grid-template-columns:1fr}.suggestion-overlay{padding:.75rem}.suggestion-modal{max-height:calc(100dvh - 1.5rem - var(--safe-bottom));overflow-y:auto}.suggestion-categories{grid-template-columns:1fr}.suggestion-chip{width:100%;justify-content:flex-start}.suggestion-actions{flex-direction:column-reverse}.upload-rights-file,.upload-rights-check{align-items:flex-start}}@media(max-width:430px){.topbar{gap:.38rem .45rem;padding:.48rem .6rem .45rem}.brand{font-size:1rem}.nav-scroll a{padding:.34rem .52rem;font-size:.76rem}.topbar-actions{gap:.25rem}.direction-switcher{border:0;background:transparent;padding:0}.direction-switcher select{min-width:64px;padding:.36rem 1.18rem .36rem .48rem;font-size:.72rem}.topbar-actions .install-button{padding:.34rem .45rem;font-size:.72rem}.topbar-icon-link{width:32px;height:32px}.topbar-auth-button{padding:.4rem .48rem;font-size:.72rem}main:not(.conversation-main){padding-inline:.55rem}.panel,.hero-card,.hero-mascot-card,.drill-card,.jlpt-panel,.jlpt-question-card,.jlpt-resource-card,.toeic-panel,.toeic-question-card,.toeic-stimulus,.suggestion-modal{padding:.78rem;border-radius:18px}.hero-card h1{font-size:clamp(1.85rem,11vw,2.55rem)}.stat-grid,.drill-summary-grid,.toeic-score-grid,.jlpt-score-grid{grid-template-columns:1fr}.drill-prompt strong,.drill-answer-card strong,.jlpt-resource-card strong{font-size:clamp(1.2rem,8vw,1.75rem)}.jlpt-resource-card.kanji strong,.jlpt-resource-card.kana strong{font-size:2.35rem}.offline-pill{left:.55rem;right:4.4rem;bottom:calc(.6rem + var(--safe-bottom));border-radius:16px}.suggestion-fab{width:46px;height:46px;bottom:calc(.55rem + var(--safe-bottom))}}@media(max-height:480px)and (orientation:landscape){.jlpt-runner-header,.toeic-runner-header,.sidebar-sticky,.toeic-question-nav,.jlpt-question-nav{position:static}.drill-study-list,.jlpt-resource-grid,.toeic-passage{max-height:48dvh}}
