:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4efe7;color:#172033;--app-background-image: url(/backgrounds/perapon-forest.jpg)}*{box-sizing:border-box}html{min-height:100%;background:#f4efe7}body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 22%,#fffbebb8 0,#fff7ed75 38%,#1720332e),linear-gradient(180deg,#fff7edb3,#f4efe738 44%,#43140729),var(--app-background-image);background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}a{color:inherit;text-decoration:none}button,.button{border:0;border-radius:999px;background:#f97316;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:#ea580c}button:active,.button:active{transform:scale(.98)}button:disabled,.button:disabled{opacity:.5;cursor:not-allowed;transform:none}button.secondary,.button.secondary{background:#e8eef7;color:#172033}button.secondary:hover,.button.secondary:hover{background:#d7e2f2}button.ghost{background:transparent;color:#172033;border:1px solid #cbd5e1}button.ghost:hover{background:#00000008}input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:18px;padding:.9rem 1rem;font:inherit;background:#ffffffd6;color:#172033}.stacked-form{display:grid;gap:.9rem;margin:1rem 0}.stacked-form label{display:grid;gap:.35rem;font-weight:800;color:#334155}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}.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:#b45309}.nav-scroll{display:flex;gap:.35rem;overflow-x:auto;flex:1;scrollbar-width:none}.nav-scroll a{white-space:nowrap;padding:.55rem .8rem;border-radius:999px;color:#475569;font-weight:700;font-size:.92rem}.nav-scroll a.active{background:#172033;color:#fff}.topbar-actions{display:flex;align-items:center;gap:.5rem}.topbar-icon-link{width:42px;height:42px;border-radius:999px;border:1px solid #cbd5e1;color:#172033;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)}main{padding:clamp(1rem,3vw,2.4rem)}.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:#166534}.offline-pill.offline{background:#fef3c7;color:#92400e}.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 70%,#92400e);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(249,115,22,.3),transparent 34%),radial-gradient(circle at 22% 18%,rgba(255,247,237,.95),transparent 36%),linear-gradient(145deg,#fffbebfa,#fed7aac7);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}.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}.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:#f8fafc;border-radius:22px;padding:1rem}.stat-grid strong{display:block;font-size:1.55rem}.stat-grid span{color:#64748b;font-size:.88rem}.field{display:grid;gap:.45rem;margin:.8rem 0;font-weight:800}.error{color:#b91c1c}.success{color:#166534;font-weight:800}.empty{color:#64748b}.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:#f8fafc;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:#64748b;font-size:.82rem}.deck-actions{display:flex;gap:.4rem;align-items:center}.link-button{background:transparent;color:#172033;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}.dashboard-join-card{border-top:1px solid #e2e8f0;padding-top:.95rem;display:grid;gap:.7rem}.dashboard-join-card h3{margin:0 0 .2rem}.dashboard-join-card p{margin:0;color:#64748b;font-size:.86rem}.dashboard-join-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center}.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}.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}.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}.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-input{width:100%;max-width:320px;padding:.7rem 1rem;font-size:1.2rem;border:2px solid #cbd5e1;border-radius:14px;outline:none;transition:border-color .15s;font-family:inherit;letter-spacing:.04em}.spelling-input:focus{border-color:#3b82f6}.spelling-input:disabled{background:#f1f5f9;color:#475569}.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:#8b5cf6!important;color:#fff!important}.spelling-btn:hover{background:#7c3aed!important}.drill-btn{background:#0f172a!important;color:#fff!important}.drill-btn:hover{background:#1e293b!important}.drill-page{min-height:calc(100vh - 140px);display:grid;align-content:start;gap:1rem;max-width:880px;margin:0 auto}.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-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}.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:#94a3b8;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}.conversation-shell{grid-template-columns:1fr;height:auto;min-height:0}.conversation-sidebar{max-height:260px}.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{align-items:flex-start;flex-wrap:wrap}.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,.teacher-summary-grid,.teacher-analytics-stats,.teacher-form-row,.teacher-form-row.three,.join-class-form,.dashboard-join-controls,.class-preview-meta,.teacher-student-row{grid-template-columns:1fr}.panel-title-row{align-items:flex-start;flex-direction:column}.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-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.suggestion-fab{position:fixed;right:1rem;bottom:4.2rem;z-index:25;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#f97316,#b45309);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:#64748b;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{background:#f1f5f9;color:#334155;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:#e2e8f0}.suggestion-chip.active{background:#fff7ed;border-color:#f97316;color:#9a3412}.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:#475569;margin-bottom:1rem;cursor:pointer}.suggestion-contact input[type=checkbox]{width:auto;accent-color:#f97316}.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:#9a3412}.upload-rights-header h2{margin:.15rem 0 0;color:#172033;font-size:1.35rem;letter-spacing:-.03em}.upload-rights-copy{margin:0;color:#475569;line-height:1.6}.upload-rights-file{display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa;padding:.85rem 1rem}.upload-rights-file span{flex-shrink:0;color:#9a3412;font-size:.85rem;font-weight:800}.upload-rights-check{display:flex;align-items:flex-start;gap:.65rem;color:#334155;font-weight:800;line-height:1.45;cursor:pointer}.upload-rights-check input[type=checkbox]{width:auto;margin-top:.2rem;accent-color:#f97316;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:#475569;line-height:1.6;margin:0 0 .8rem}.suggestion-counter{background:#f0fdf4;border-radius:999px;display:inline-block;padding:.4rem 1rem;font-size:.9rem;color:#166534}.suggestion-counter strong{color:#15803d}@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}}.welcome-modal{background:#fff;border-radius:28px;padding:2.2rem 2rem;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 32px 80px #0f172a33;animation:suggestion-slide-up .25s ease}.welcome-header{text-align:center;margin-bottom:1.4rem}.welcome-header h2{font-size:1.6rem;letter-spacing:-.04em;margin:.3rem 0 .5rem}.welcome-subtitle{color:#64748b;font-size:.95rem;line-height:1.6;margin:0;max-width:440px;margin-inline:auto}.welcome-features-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-bottom:1.4rem}.welcome-feature-item{display:flex;align-items:flex-start;gap:.65rem;background:#f8fafc;border:1px solid rgba(148,163,184,.2);border-radius:18px;padding:.85rem .9rem}.welcome-feature-icon{font-size:1.4rem;flex-shrink:0;margin-top:.1rem}.welcome-feature-item strong{display:block;font-size:.92rem;letter-spacing:-.02em;margin-bottom:.15rem}.welcome-feature-item p{margin:0;font-size:.82rem;color:#475569;line-height:1.45}.welcome-footer{text-align:center}.welcome-footer .button{padding:.85rem 2.4rem;font-size:1rem}@media(max-width:640px){.welcome-modal{padding:1.4rem;border-radius:22px;max-width:calc(100vw - 2rem)}.welcome-features-grid{grid-template-columns:1fr}.welcome-header h2{font-size:1.3rem}}.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)}.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}}.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(240px,300px) minmax(0,1fr);gap:1rem;height:calc(100vh - 140px);min-height:480px}.conversation-sidebar{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-y:auto}.conversation-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:.7rem;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-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}.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:calc(100vh - 140px);min-height:480px;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)}.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}.chat-messages{flex:1;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 #fed7aa;background:#fff7ed;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}.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 #cbd5e1;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:#f97316;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:#f97316;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:#ea580c}.send-button:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}.composer-bottom-actions{display:flex;justify-content:center;gap:.6rem}.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;height:auto;min-height:0}.conversation-sidebar{max-height:260px}}@media(max-width:640px){.conversation-shell{grid-template-columns:1fr;height:auto;min-height:0;gap:.75rem}.conversation-sidebar{max-height:230px;border-radius:22px}.conversation-delete-btn{opacity:1}.conversation-layout.chat-only{margin:0;height:calc(100vh - 70px);border-radius:0;border:none}.chat-message-row{max-width:95%}.chat-avatar{width:28px;height:28px}}
