:root{--bg-page: #f4f7fb;--bg-card: #ffffff;--bg-soft: #eef3fa;--text-main: #0f172a;--text-muted: #475569;--text-soft: #64748b;--primary: #2563eb;--primary-hover: #1d4ed8;--primary-light: #dbeafe;--accent-orange: #f97316;--accent-emerald: #10b981;--accent-amber: #f59e0b;--danger: #ef4444;--border: #e2e8f0;--shadow-sm: 0 2px 10px rgba(15, 23, 42, .05);--shadow-md: 0 12px 32px rgba(37, 99, 235, .09);--radius-lg: 24px;--radius-md: 16px;--radius-sm: 12px}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;max-width:100vw;overflow-x:hidden;background:radial-gradient(circle at 15% 10%,#e0edff,#f4f7fb 46%,#fff7ed);color:var(--text-main);font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;min-height:100dvh}body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}#root{min-height:100dvh;width:100%;overflow-x:hidden}button,input,select,textarea{font-family:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}.app-shell{max-width:1200px;margin:0 auto;padding:14px 18px 28px;display:flex;flex-direction:column;gap:14px}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.top-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#ffffffe0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(226,232,240,.9);border-radius:20px;flex-wrap:wrap}.brand-group{display:flex;align-items:center;gap:12px}.brand-badge{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;display:grid;place-items:center;font-family:Nunito,sans-serif;font-weight:800;font-size:20px;box-shadow:0 6px 16px #2563eb40}.brand-title{margin:0;font-size:18px;font-weight:800;letter-spacing:-.02em}.brand-subtitle{margin:0;font-size:13px;color:var(--text-muted)}.header-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;font-size:13px;font-weight:700;background:var(--bg-soft);color:var(--text-main);border:1px solid var(--border);white-space:nowrap}.pill-btn{min-height:42px;border-radius:999px;padding:8px 14px;border:1px solid var(--border);background:#fff;color:var(--text-main);font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:6px;transition:transform .12s ease,background .15s ease}.pill-btn:active{transform:scale(.97)}.pill-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#ffffffd9;padding:6px;border-radius:18px;border:1px solid var(--border)}.mode-tab{min-height:48px;border:none;border-radius:13px;background:transparent;color:var(--text-muted);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;transition:all .16s ease}.mode-tab.active{background:var(--primary);color:#fff;box-shadow:0 6px 14px #2563eb38}.stage-grid{display:grid;grid-template-columns:1fr;gap:16px}.stage-grid.with-drawer{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start}@media(max-width:960px){.stage-grid.with-drawer{grid-template-columns:1fr}}.tutor-card{padding:18px 18px 20px;display:flex;flex-direction:column;align-items:center;gap:14px;background:linear-gradient(180deg,#fff,#f8fbff)}.avatar-stage{position:relative;width:286px;height:286px;max-width:100%;display:flex;align-items:center;justify-content:center}.avatar-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.avatar-svg-wrap{position:relative;z-index:2;width:204px;height:204px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 30%,#dbeafe,#eff6ff 72%,#e0e7ff);box-shadow:0 14px 32px #2563eb2e,inset 0 0 0 4px #fffffff2;transition:transform .25s ease}.status-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;font-size:14px;font-weight:800;letter-spacing:.01em}.status-ready{background:#eff6ff;color:#1d4ed8}.status-listening{background:#ecfdf5;color:#047857}.status-thinking{background:#fffbeb;color:#b45309}.status-speaking{background:#eef2ff;color:#4338ca}.status-muted{background:#fef2f2;color:#b91c1c}.status-dot{width:10px;height:10px;border-radius:50%;background:currentColor}.quick-actions{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.chip-btn{min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:var(--text-main);font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:6px}.chip-btn:disabled{opacity:.48;cursor:not-allowed}.subtitle-box{width:100%;background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:12px 14px;max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.bubble{padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.45;max-width:92%}.bubble.tutor{align-self:flex-start;background:#e0ecff;color:#1e3a8a}.bubble.student{align-self:flex-end;background:#dcfce7;color:#14532d}.primary-controls{width:100%;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.btn-primary-xl{min-height:58px;min-width:210px;padding:12px 24px;border-radius:18px;border:none;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 24px #2563eb47}.btn-danger-xl{min-height:58px;min-width:185px;padding:12px 22px;border-radius:18px;border:none;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 22px #ef444440}.btn-mute-xl{min-height:58px;padding:12px 20px;border-radius:18px;border:2px solid var(--border);background:#fff;color:var(--text-main);font-size:15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-mute-xl.muted{background:#fef2f2;border-color:#fca5a5;color:#b91c1c}.settings-grid{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:8px;border-top:1px solid var(--border)}@media(max-width:720px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.field-group{display:flex;flex-direction:column;gap:4px}.field-label{font-size:12px;font-weight:700;color:var(--text-muted)}.select-input,.text-input,.textarea-input{width:100%;min-height:44px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:var(--text-main);padding:8px 11px;font-size:14px;font-weight:600}.textarea-input{min-height:90px;resize:vertical;line-height:1.45}.pin-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:18px}.pin-card{width:100%;max-width:470px;padding:26px 24px;display:flex;flex-direction:column;gap:18px;box-shadow:var(--shadow-md)}.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.profile-tile{padding:14px 12px;border-radius:18px;border:2px solid var(--border);background:#f8fafc;display:flex;flex-direction:column;align-items:center;gap:6px;transition:all .15s ease}.profile-tile.selected{border-color:var(--primary);background:#eff6ff;box-shadow:0 6px 16px #2563eb24}.pin-dots{display:flex;justify-content:center;gap:12px;padding:8px 0}.pin-dot{width:16px;height:16px;border-radius:50%;border:2px solid #94a3b8;background:transparent}.pin-dot.filled{background:var(--primary);border-color:var(--primary)}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key-btn{min-height:58px;border-radius:16px;border:1px solid var(--border);background:#f8fafc;font-size:22px;font-weight:800;color:var(--text-main)}.key-btn:active{background:#dbeafe}.worksheet-card{padding:16px;display:flex;flex-direction:column;gap:12px;max-height:76dvh;overflow-y:auto}.question-item{border:1px solid var(--border);border-radius:16px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}.question-item.practiced{border-color:#86efac;background:#f0fdf4}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0f172a73;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px}.modal-card{width:100%;max-width:680px;max-height:90dvh;overflow-y:auto;background:#fff;border-radius:24px;padding:22px;box-shadow:0 24px 60px #0f172a40;display:flex;flex-direction:column;gap:16px}.error-banner{width:100%;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:14px;padding:10px 14px;font-size:13px;font-weight:700}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th,.data-table td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}.data-table th{color:var(--text-muted);font-weight:700}
