:root {
  --ink: #132238;
  --ink-soft: #4f6073;
  --ink-faint: #718196;
  --canvas: #f6f7f9;
  --paper: #ffffff;
  --line: #e2e7ee;
  --brand: #2d5bff;
  --brand-dark: #1745e7;
  --brand-soft: #e9eeff;
  --mint: #d9f4e8;
  --mint-ink: #0c6542;
  --orange: #be5428;
  --orange-soft: #fff0e9;
  --red: #b42318;
  --red-soft: #fff0ef;
  --shadow: 0 18px 45px rgba(16, 31, 55, .10);
  --radius: 22px;
  --tab-height: 76px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100dvh; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #f3b663; outline-offset: 3px; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; transition: top .18s ease; }
.skip-link:focus { top: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 780; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 24px; font-style: italic; line-height: 1; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: #fff; color: var(--ink); }
.eyebrow { display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-light { color: #b7c6ff; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 750; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px rgba(45, 91, 255, .20); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-secondary { border: 1px solid #e0a58e; background: #fff; color: #913b1d; }
.btn-quiet { background: transparent; color: var(--ink-soft); }
.btn-inline { width: auto; }
.text-button { margin: 0; border: 0; padding: 0; background: transparent; color: var(--brand); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 18px 0; padding: 13px 14px; border: 1px solid #d9e1ff; border-radius: 12px; background: var(--brand-soft); color: #334168; font-size: 13px; }
.splash { display: grid; min-height: 100dvh; place-content: center; justify-items: center; gap: 10px; padding: 28px; text-align: center; }.splash .logo { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 38px; font-style: italic; }.splash h1 { margin: 0; letter-spacing: -.05em; }.splash p { max-width: 320px; margin: 0; color: var(--ink-soft); }.spinner { width: 27px; height: 27px; margin-top: 8px; border: 3px solid #dce3ef; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }

/* Authentication */
.auth-page { display: grid; min-height: 100dvh; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); }
.auth-story { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px clamp(32px, 6vw, 92px); background: radial-gradient(circle at 80% 20%, #325ad9 0, rgba(50, 90, 217, 0) 25%), radial-gradient(circle at 17% 82%, #466fcb 0, rgba(70, 111, 203, 0) 24%), linear-gradient(145deg, #10213a, #172e52); color: #fff; }
.story-content { max-width: 585px; margin: auto 0; padding: 80px 0; }
.story-content h1 { max-width: 600px; margin: 16px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6.1vw, 82px); font-weight: 500; letter-spacing: -.07em; line-height: .99; }
.story-content h1 em { color: #c8ffdd; }
.story-content p { max-width: 480px; margin: 0; color: #ced8eb; font-size: clamp(16px, 1.65vw, 20px); line-height: 1.65; }
.story-proof { display: inline-flex; align-items: center; gap: 10px; color: #dae4ff; font-size: 13px; font-weight: 600; }
.auth-panel { display: grid; min-height: 100%; place-items: center; padding: 42px 24px; background: #fff; }
.auth-card { width: min(100%, 440px); }
.auth-card h2 { margin: 12px 0 6px; font-size: 33px; letter-spacing: -.055em; line-height: 1.08; }
.lede { margin: 0 0 28px; color: var(--ink-soft); line-height: 1.65; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .admin-fields label, .json-label { color: #334357; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e5; border-radius: 12px; padding: 12px 13px; color: var(--ink); background: #fff; transition: border-color .14s ease, box-shadow .14s ease; }
input::placeholder, textarea::placeholder { color: #8492a4; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(45, 91, 255, .13); }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-switch { margin: 23px 0 0; color: var(--ink-soft); font-size: 14px; text-align: center; }
.auth-fineprint { max-width: 360px; margin: 34px auto 0; color: #78879a; font-size: 11px; line-height: 1.6; text-align: center; }
.mobile-brand { display: none; align-items: center; gap: 9px; margin-bottom: 36px; font-size: 19px; letter-spacing: -.04em; }

/* Onboarding and application shell */
.onboarding-page { min-height: 100dvh; padding: 22px clamp(18px, 5vw, 72px) 64px; background: radial-gradient(circle at 80% 20%, #e8eeff, transparent 24%), var(--canvas); }
.simple-header, .topbar { display: flex; align-items: center; justify-content: space-between; }
.simple-header { max-width: 1080px; margin: 0 auto; }
.account-link { border: 0; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.onboarding-card { width: min(100%, 780px); margin: clamp(56px, 13vh, 130px) auto 0; }
.onboarding-card h1, .page-intro h1, .today-hero h1, .review-result h1 { margin: 9px 0 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.065em; line-height: 1.03; }
.onboarding-card > p { max-width: 590px; margin: 0 0 32px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level-choice { position: relative; display: grid; min-height: 208px; align-content: start; gap: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 10px 24px rgba(19, 34, 56, .04); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.level-choice:hover { border-color: #afc0ff; box-shadow: var(--shadow); transform: translateY(-3px); }
.level-choice strong { font-size: 21px; letter-spacing: -.04em; }
.level-choice > span:nth-of-type(2) { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.level-choice i { position: absolute; right: 18px; bottom: 15px; color: var(--brand); font-size: 20px; font-style: normal; }
.level-cefr { width: max-content; border-radius: 99px; padding: 4px 8px; background: var(--brand-soft); color: #2549c9; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.topbar { position: sticky; z-index: 20; top: 0; height: 72px; border-bottom: 1px solid rgba(210, 219, 230, .8); padding: 0 max(20px, calc((100vw - 1120px) / 2)); background: rgba(246, 247, 249, .88); backdrop-filter: blur(17px); }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.admin-chip { border: 1px solid #c9d4ff; border-radius: 99px; padding: 4px 9px; background: #fff; color: #3554c4; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.avatar-button, .avatar-large { display: grid; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(135deg, #243e76, #4779df); color: #fff; font-weight: 800; }
.avatar-button { width: 38px; height: 38px; }
.avatar-large { width: 46px; height: 46px; font-size: 18px; }
.app-main { width: min(100%, 940px); min-height: calc(100dvh - var(--tab-height) - 72px); margin: 0 auto; padding: clamp(28px, 5vw, 58px) max(18px, 3vw) calc(var(--tab-height) + 42px); }
.tabbar { position: fixed; z-index: 25; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; display: flex; width: min(calc(100% - 28px), 540px); min-height: 62px; transform: translateX(-50%); border: 1px solid rgba(202, 212, 225, .9); border-radius: 19px; padding: 5px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 35px rgba(19, 34, 56, .16); backdrop-filter: blur(20px); }
.tab { display: grid; min-width: 0; flex: 1; place-items: center; gap: 1px; border: 0; border-radius: 13px; padding: 6px 4px; background: transparent; color: var(--ink-faint); font-size: 10px; font-weight: 750; }
.tab > span:first-child { font-size: 18px; line-height: 1; }
.tab.active { background: var(--brand-soft); color: #2548c7; }

/* Core lesson */
.today-hero { position: relative; overflow: hidden; margin-bottom: 42px; border-radius: 28px; padding: clamp(28px, 5vw, 48px); background: radial-gradient(circle at 90% 14%, #627fff 0, rgba(98, 127, 255, 0) 28%), linear-gradient(140deg, #142744, #1d3964); color: #fff; }
.today-hero::after { position: absolute; right: -42px; bottom: -62px; width: 210px; height: 210px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; content: ''; }
.today-hero .eyebrow { color: #b8c9ff; }
.today-hero h1 { position: relative; z-index: 1; margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.today-hero h1 em { color: #c8ffdd; }
.today-hero > p { margin: 0; color: #c7d3e8; font-size: 14px; font-weight: 600; }
.hero-meter { position: relative; z-index: 1; display: grid; width: min(100%, 340px); gap: 8px; margin-top: 30px; color: #d5dff2; font-size: 12px; font-weight: 700; }
.hero-meter > div, .progress-track { overflow: hidden; height: 7px; border-radius: 99px; background: rgba(255,255,255,.18); }
.hero-meter i, .progress-track i { display: block; height: 100%; border-radius: inherit; background: #b9ffd6; transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .studio-card h2 { margin: 5px 0 0; font-size: clamp(21px, 3vw, 27px); letter-spacing: -.05em; line-height: 1.1; }
.date-badge { flex: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: var(--ink-soft); background: #fff; font-size: 12px; font-weight: 700; }
.word-stack { display: grid; gap: 13px; }
.word-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 7px 18px rgba(19, 34, 56, .035); }
.word-card-top { display: flex; align-items: stretch; }
.word-toggle { display: grid; min-width: 0; flex: 1; grid-template-columns: 32px 1fr 24px; align-items: center; gap: 14px; border: 0; padding: 19px 12px 19px 19px; background: #fff; color: var(--ink); text-align: left; }
.word-toggle:hover { background: #fbfcff; }
.word-index { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #f0f3f8; color: #5d6b7c; font-size: 11px; font-weight: 800; }
.word-summary { display: grid; min-width: 0; gap: 6px; }
.word-summary > strong { overflow: hidden; font-size: clamp(18px, 3vw, 22px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.word-summary > span { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.word-summary em { font-style: italic; }
.word-summary small { overflow: hidden; color: #8996a6; text-overflow: ellipsis; white-space: nowrap; }
.kind { border-radius: 99px; padding: 3px 6px; font-size: 9px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.kind-word { background: #e9eeff; color: #314fbc; }.kind-phrase { background: #e1f7ec; color: #11633f; }.kind-expression { background: #f6e9ff; color: #754099; }
.chevron { color: #657488; font-size: 20px; transition: transform .18s ease; }.word-card.open .chevron { transform: rotate(180deg); }
.speak-btn { width: 51px; flex: none; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 23px; }.speak-btn:hover { background: var(--brand-soft); }
.word-detail { display: grid; gap: 19px; border-top: 1px solid var(--line); padding: 22px; animation: reveal .22s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.word-detail h3 { margin: 0 0 7px; color: #69788b; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }.word-detail p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.word-meaning { color: var(--ink) !important; font-size: 18px !important; font-weight: 690; line-height: 1.45 !important; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }.detail-grid section { min-width: 0; }
blockquote { margin: 7px 0; border-left: 2px solid #9eb2ff; padding: 6px 0 6px 11px; color: #405269; font-size: 13px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }.chips span { border-radius: 99px; padding: 6px 9px; background: #f1f4f8; color: #3d4e64; font-size: 12px; font-weight: 650; }
.mistake { border: 1px solid #ffd5c3; border-radius: 13px; padding: 13px; background: #fffaf8; }.mistake p { display: grid; gap: 4px; }.mistake del { color: #a75437; }.mistake strong { color: #147247; }.mistake span { color: #6d7b8e; font-size: 12px; }
.quick-check { border-top: 1px solid var(--line); padding-top: 17px; }.quick-check > p { margin-bottom: 10px; color: var(--ink); font-weight: 650; }
.quiz-options { display: grid; gap: 8px; }.quiz-option { border: 1px solid #d8e0ea; border-radius: 11px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 13px; text-align: left; }.quiz-option:hover:not(:disabled) { border-color: #7693ff; background: #fafbff; }.quiz-option.correct { border-color: #43a878; background: #effbf4; color: #0b6940; }.quiz-option.wrong { border-color: #dd8564; background: #fff4f0; color: #953c20; }.quiz-option.locked { cursor: default; }
.quiz-feedback { margin-top: 10px !important; font-size: 13px !important; font-weight: 750; }.quiz-feedback.success { color: #0c7045; }.quiz-feedback.error { color: #a34427; }
.mission { display: flex; align-items: start; gap: 10px; border-radius: 12px; padding: 13px; background: #eff9f4; color: #205d43; cursor: pointer; }.mission input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: #1b9560; }.mission span { display: grid; gap: 2px; font-size: 13px; line-height: 1.5; }.mission b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.mission.done span { color: #647d71; text-decoration: line-through; }
.master-button { width: 100%; border: 1px solid #abbdfc; border-radius: 12px; padding: 11px 14px; background: #fff; color: #2549c9; font-size: 14px; font-weight: 800; }.master-button:hover { background: var(--brand-soft); }.master-button.done { border-color: #8fd3b1; background: #effbf4; color: #0c7045; }

/* Supporting views */
.page-intro { max-width: 650px; margin-bottom: 30px; }.page-intro h1 { margin-top: 8px; }.page-intro > p { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.empty-card, .review-result { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 25px; padding: clamp(34px, 7vw, 64px) 25px; background: #fff; text-align: center; box-shadow: 0 10px 28px rgba(19, 34, 56, .04); }.empty-card > span { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-size: 27px; }.empty-card h2 { margin: 18px 0 7px; font-size: 24px; letter-spacing: -.05em; }.empty-card p, .review-result p { max-width: 420px; margin: 0 0 20px; color: var(--ink-soft); line-height: 1.65; }
.review-intro { margin-bottom: 22px; }.review-card { width: min(100%, 610px); margin: 0 auto; border: 1px solid var(--line); border-radius: 25px; padding: clamp(24px, 5vw, 38px); background: #fff; box-shadow: var(--shadow); }.review-word { display: block; margin-bottom: 17px; color: var(--brand); font-family: Georgia, serif; font-size: clamp(35px, 5vw, 47px); font-weight: 600; letter-spacing: -.055em; }.review-card > p { margin: 0 0 18px; color: var(--ink); font-size: 17px; font-weight: 650; }.review-next { display: grid; gap: 10px; margin-top: 11px; }.review-next .btn { width: 100%; }.score-orb { display: grid; width: 132px; height: 132px; place-items: center; margin: 20px 0; border-radius: 50%; background: linear-gradient(145deg, #eff2ff, #d9e3ff); color: #274acb; font-size: 49px; font-weight: 800; letter-spacing: -.07em; }.score-orb small { align-self: end; margin: 0 0 34px -19px; color: #5871c9; font-size: 16px; letter-spacing: 0; }
.history-list { display: grid; gap: 10px; }.history-day { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }.history-day > div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 4px 12px; padding: 15px 17px; }.history-day > div > span { grid-row: span 2; color: #2949bd; font-size: 12px; font-weight: 800; letter-spacing: .04em; }.history-day strong { font-size: 14px; }.history-day small { color: var(--ink-soft); font-size: 12px; }.history-day p { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; border-top: 1px solid var(--line); padding: 11px 17px; }.history-day p span { border-radius: 7px; padding: 4px 7px; background: #f2f5f9; color: #3c4d60; font-size: 12px; }.history-day p b { color: #16804f; }.history-day.locked { opacity: .68; }.history-day.locked > i { display: none; }
.stat-grid, .admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }.stat-grid article, .admin-stats article { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 17px; padding: 17px; background: #fff; }.stat-grid strong, .admin-stats strong { font-size: 30px; letter-spacing: -.06em; line-height: 1; }.stat-grid strong small { color: #75849a; font-size: 15px; letter-spacing: 0; }.stat-grid span, .admin-stats span { color: var(--ink-soft); font-size: 12px; font-weight: 650; }.progress-panel { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 29px); background: #fff; }.level-progress { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }.level-progress:first-of-type { border-top: 0; }.level-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; }.level-progress strong { font-size: 14px; }.level-progress strong small { color: var(--ink-soft); font-weight: 550; }.level-progress span { color: var(--ink-soft); font-size: 12px; }.progress-track { height: 9px; background: #e7ebf0; }.progress-track i { background: linear-gradient(90deg, #6d88ff, #2d5bff); }

/* Admin */
.admin-intro { max-width: 700px; }.admin-stats { margin-top: -5px; }.admin-stats article { background: linear-gradient(135deg, #fff, #f9fbff); }.studio-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr); gap: 17px; }.studio-card, .recent-content { border: 1px solid var(--line); border-radius: 21px; padding: clamp(19px, 3vw, 27px); background: #fff; }.studio-card form { display: grid; }.admin-fields { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 10px; margin: 3px 0 15px; }.admin-fields label, .json-label { display: grid; gap: 6px; }.admin-fields input, .admin-fields select { padding: 10px; }.json-label textarea { min-height: 310px; resize: vertical; margin-top: 1px; background: #f9fbfe; font: 12px/1.52 ui-monospace, SFMono-Regular, Menlo, monospace; }.json-label small { color: var(--ink-faint); font-size: 11px; font-weight: 500; }.studio-card .btn { width: 100%; margin-top: 16px; }.studio-notes { align-content: start; background: linear-gradient(145deg, #182d50, #234579); color: #fff; }.studio-notes .eyebrow { color: #aec2ff; }.studio-notes h2 { margin: 8px 0 14px; }.studio-notes p, .studio-notes li { color: #d5e0f7; font-size: 13px; line-height: 1.65; }.studio-notes code { border-radius: 5px; padding: 2px 4px; background: rgba(255,255,255,.14); color: #fff; font-size: 11px; }.studio-notes ul { margin: 17px 0 0; padding-left: 18px; }.recent-content { margin-top: 17px; }.content-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.content-list article { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; }.content-list span { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.content-list strong { font-size: 15px; letter-spacing: -.02em; }.content-list small { min-height: 38px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }.content-list .text-button { width: max-content; margin-top: 6px; font-size: 12px; }.empty-copy { color: var(--ink-soft); }

/* Account modal and feedback */
.modal-veil { position: fixed; z-index: 50; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgba(13, 25, 43, .45); backdrop-filter: blur(3px); }.modal { position: relative; width: min(100%, 520px); max-height: min(90dvh, 720px); overflow: auto; border-radius: 24px; padding: 27px; background: #fff; box-shadow: 0 28px 70px rgba(9, 20, 37, .34); }.modal h2 { margin: 6px 0 20px; font-size: 26px; letter-spacing: -.05em; }.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; background: #f1f4f8; color: var(--ink-soft); font-size: 23px; line-height: 1; }.account-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; border-radius: 14px; padding: 12px; background: #f7f9fc; }.account-identity div { display: grid; }.account-identity strong { font-size: 14px; }.account-identity span:last-child { color: var(--ink-soft); font-size: 12px; }.setting-section { display: grid; gap: 8px; }.setting-label { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.level-setting { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; color: var(--ink); text-align: left; }.level-setting.selected { border-color: #9db0ff; background: #f4f6ff; }.level-setting span { display: grid; gap: 2px; }.level-setting small { color: var(--ink-soft); font-size: 11px; }.level-setting b { color: var(--brand); }.setting-actions { display: grid; grid-template-columns: 1.25fr .8fr; gap: 9px; margin-top: 20px; }.toast { position: fixed; z-index: 100; bottom: max(94px, calc(env(safe-area-inset-bottom) + 86px)); left: 50%; width: min(calc(100% - 32px), 480px); transform: translateX(-50%); border-radius: 12px; padding: 12px 15px; background: var(--ink); color: #fff; box-shadow: 0 15px 32px rgba(15, 27, 46, .28); font-size: 13px; font-weight: 700; text-align: center; animation: toast-in .25s ease both; }.toast-success { background: #0c7045; }.toast-warning { background: #735923; }.toast-error { background: #a63d28; }@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; }.auth-story { min-height: 285px; padding: 24px clamp(24px, 8vw, 52px); }.auth-story .brand { align-self: start; }.story-content { margin: auto 0 0; padding: 38px 0 0; }.story-content h1 { font-size: clamp(43px, 11vw, 60px); }.story-content p { max-width: 480px; font-size: 15px; }.story-proof { display: none; }.auth-panel { min-height: auto; padding: 43px 24px 55px; }.mobile-brand { display: flex; }.level-grid { grid-template-columns: 1fr; }.level-choice { min-height: 126px; grid-template-columns: auto 1fr; gap: 7px 13px; }.level-choice .level-cefr { grid-row: span 2; align-self: start; }.level-choice > span:nth-of-type(2) { grid-column: 2; }.level-choice i { top: 50%; bottom: auto; transform: translateY(-50%); }.studio-grid { grid-template-columns: 1fr; }.content-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }.topbar { height: 65px; padding: 0 17px; }.brand { font-size: 18px; }.brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 22px; }.app-main { min-height: calc(100dvh - var(--tab-height) - 65px); padding: 27px 16px calc(var(--tab-height) + 34px); }.today-hero { margin: 0 -2px 31px; border-radius: 21px; padding: 28px 23px; }.today-hero h1 { font-size: 38px; }.section-heading { align-items: start; }.section-heading h2 { font-size: 22px; }.date-badge { display: none; }.word-toggle { grid-template-columns: 28px 1fr 17px; gap: 10px; padding: 16px 8px 16px 14px; }.word-index { width: 27px; height: 27px; font-size: 10px; }.word-summary > strong { font-size: 18px; }.word-summary > span { gap: 6px; }.word-summary small { display: none; }.speak-btn { width: 46px; }.word-detail { gap: 17px; padding: 17px; }.detail-grid { grid-template-columns: 1fr; gap: 16px; }.page-intro { margin-bottom: 23px; }.page-intro h1 { font-size: 35px; }.page-intro > p { font-size: 14px; }.stat-grid { gap: 8px; }.stat-grid article { min-width: 0; padding: 13px 10px; }.stat-grid strong { font-size: 25px; }.stat-grid span { font-size: 10px; }.history-day > div { grid-template-columns: 64px 1fr; padding: 13px; }.admin-stats { grid-template-columns: 1fr; }.admin-fields { grid-template-columns: 1fr 1fr; }.admin-fields label:first-child { grid-column: span 2; }.content-list { grid-template-columns: 1fr; }.json-label textarea { min-height: 240px; }.setting-actions { grid-template-columns: 1fr; }.modal { padding: 23px 18px; }.tabbar { bottom: max(9px, env(safe-area-inset-bottom)); width: calc(100% - 18px); }.tab { font-size: 9px; }.tab > span:first-child { font-size: 16px; }.admin-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
