:root {
  --paper: #f5f3ec;
  --paper-deep: #ebe8df;
  --surface: #fffef9;
  --surface-soft: #faf9f4;
  --ink: #18302a;
  --ink-soft: #5f6f6a;
  --line: #dddcd4;
  --green: #176c58;
  --green-deep: #0d5645;
  --green-soft: #dceee7;
  --amber: #b77824;
  --amber-soft: #f5e8ce;
  --coral: #bc5949;
  --coral-soft: #f5dfda;
  --blue: #426f87;
  --blue-soft: #dce9ee;
  --shadow: 0 20px 60px rgba(28, 46, 40, 0.09);
  --shadow-soft: 0 8px 28px rgba(28, 46, 40, 0.07);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
svg { width: 1.35em; height: 1.35em; }

.app-shell { min-height: 100vh; }
.is-hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.inline-form { display: inline; }
.inline-form button { border: 0; padding: 3px 0 0; background: transparent; color: var(--ink-soft); text-align: left; font-size: 12px; }
.form-success { color: var(--green); }
.empty-state { padding: 38px 20px; text-align: center; color: var(--ink-soft); }
.main-stage { min-height: 100vh; margin-left: 244px; }
.page-wrap { width: min(100%, 1080px); margin: 0 auto; padding: 48px 52px 72px; }
.spacer { flex: 1; }
.desktop-only { display: inline-flex; }
.mobile-header, .bottom-nav { display: none; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand > span {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px;
  background: var(--green); color: white; font-family: "Noto Sans KR", sans-serif;
  font-weight: 800; font-size: 20px; box-shadow: 0 6px 16px rgba(23,108,88,.2);
}
.brand div { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 20px; letter-spacing: .08em; }
.brand small { margin-top: 6px; color: var(--ink-soft); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.brand.large > span { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; }
.brand.large strong { font-size: 25px; }

.side-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px; padding: 32px 24px;
  display: flex; flex-direction: column; background: rgba(255,254,249,.82);
  border-right: 1px solid rgba(221,220,212,.85); backdrop-filter: blur(18px);
}
.rail-nav { display: grid; gap: 8px; margin-top: 58px; }
.rail-nav button, .rail-nav .admin-link, .bottom-nav button, .bottom-nav .admin-link {
  border: 0; background: transparent; display: flex; align-items: center; gap: 14px;
  min-height: 49px; padding: 0 16px; border-radius: 15px; color: #6b7773; font-weight: 650;
  transition: .18s ease; text-decoration: none;
}
.rail-nav button svg { width: 21px; height: 21px; }
.rail-nav button:hover, .rail-nav .admin-link:hover { background: var(--surface-soft); color: var(--ink); }
.rail-nav button.active { color: var(--green); background: var(--green-soft); }
.rail-user { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--ink); color: white; font-weight: 750; }
.rail-user div { display: flex; flex-direction: column; min-width: 0; }
.rail-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.rail-user button { border: 0; padding: 3px 0 0; background: transparent; color: var(--ink-soft); text-align: left; font-size: 12px; }
.rail-exit-link { padding-top: 3px; color: var(--green); font-size: 12px; text-decoration: none; }
.avatar-button { border: 0; padding: 0; cursor: pointer; }

.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading h1 { margin: 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.18; }
.page-heading p:not(.eyebrow) { max-width: 650px; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.7; }
.page-heading.compact { margin-bottom: 28px; }

.primary-button, .secondary-button, .ghost-button, .text-button {
  border: 0; border-radius: 15px; min-height: 50px; padding: 0 22px; font-weight: 780;
  display: inline-flex; justify-content: center; align-items: center; gap: 9px; transition: .18s ease;
}
.primary-button { background: var(--green); color: white; box-shadow: 0 8px 22px rgba(23,108,88,.2); }
.primary-button:hover { background: var(--green-deep); transform: translateY(-1px); }
.primary-button.wide { width: 100%; }
.primary-button.small { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 13px; }
.secondary-button { background: var(--green-soft); color: var(--green-deep); }
.ghost-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.text-button { min-height: 36px; padding: 0 8px; background: transparent; color: var(--green); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

.catchup-banner {
  width: 100%; margin: 0 0 22px; padding: 16px 18px; border: 1px solid #ddc79f; border-radius: 18px;
  display: flex; align-items: center; gap: 14px; text-align: left; background: var(--amber-soft); box-shadow: var(--shadow-soft);
}
.catchup-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: white; color: var(--amber); font-size: 24px; }
.catchup-banner > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.catchup-banner small { color: #765c33; }
.catchup-banner > b { margin-left: auto; color: var(--amber); }

.today-card {
  padding: 24px; border-radius: 28px; background: var(--ink); color: white;
  box-shadow: 0 24px 60px rgba(24,48,42,.2); overflow: hidden; position: relative;
}
.today-card::after { content: "한"; position: absolute; right: -14px; top: 12px; color: rgba(255,255,255,.045); font: 900 172px/1 "Noto Sans KR", sans-serif; }
.today-topline { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #c8d7d2; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #75d6b7; box-shadow: 0 0 0 5px rgba(117,214,183,.12); }
.today-main { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 30px 2px 24px; }
.today-main p { margin: 0 0 3px; color: #adc1bb; font-size: 14px; }
.today-count strong { font-size: 60px; line-height: 1; letter-spacing: -.06em; }
.today-count > span { margin-left: 7px; color: #adc1bb; }
.today-side { display: flex; max-width: 430px; flex-direction: column; align-items: flex-end; gap: 17px; }
.daily-motivation { display: flex; align-items: baseline; justify-content: flex-end; gap: 9px; text-align: right; }
.daily-motivation strong { flex: 0 0 auto; color: #f2bf67; font-size: 15px; letter-spacing: 0; }
.daily-motivation span { color: #d6e1dd; font-size: 12px; line-height: 1.5; }
.today-breakdown { display: flex; gap: 24px; color: #adc1bb; font-size: 13px; }
.today-breakdown span { display: flex; flex-direction: column; }
.today-breakdown b { color: white; font-size: 21px; }
.study-cta { position: relative; z-index: 1; width: 100%; background: #f2bf67; color: #243a33; box-shadow: none; }
.study-cta:hover { background: #ffd080; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.stat-grid article { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.stat-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; }
.stat-icon.mint { background: var(--green-soft); color: var(--green); }
.stat-icon.sand { background: var(--amber-soft); color: var(--amber); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-grid p { margin: 18px 0 5px; color: var(--ink-soft); font-size: 12px; }
.stat-grid strong { font-size: 29px; }
.stat-grid small { margin-left: 5px; color: var(--ink-soft); }

.book-progress-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-title-row h2 { margin: 0; font-size: 20px; }
.section-title-row > strong { color: var(--green); font-size: 24px; }
.progress-track, .mini-progress { height: 7px; margin-top: 18px; border-radius: 99px; overflow: hidden; background: var(--paper-deep); }
.progress-track span, .mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.progress-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--ink-soft); font-size: 11px; }

.profile-page { max-width: 760px; }
.profile-card { padding: 25px; border: 1px solid var(--line); border-radius: 24px; display: flex; align-items: center; gap: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.profile-avatar { display: grid; place-items: center; width: 70px; height: 70px; flex: 0 0 70px; border-radius: 50%; color: white; background: var(--ink); font-size: 27px; font-weight: 850; }
.profile-card p { margin: 0 0 5px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.profile-card h2 { margin: 0; font-size: 22px; }
.profile-card small { display: block; margin-top: 7px; color: var(--ink-soft); }
.leave-app-button { width: 100%; min-height: 68px; margin-top: 20px; border-radius: 19px; display: flex; align-items: center; justify-content: center; color: white; background: var(--green); box-shadow: 0 10px 28px rgba(23,108,88,.2); text-decoration: none; font-size: 20px; font-weight: 850; }
.leave-app-note { margin: 10px 6px 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.profile-admin-card { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); }
.profile-admin-card h2 { margin: 0; font-size: 20px; }
.profile-admin-card p:not(.eyebrow) { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.profile-admin-card a { text-decoration: none; white-space: nowrap; }

.study-intro-page, .complete-page { min-height: 100vh; display: grid; place-items: center; }
.study-intro-card, .complete-card { width: min(100%, 590px); padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.study-orbit { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%; color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 12px rgba(220,238,231,.45); }
.study-orbit svg { width: 38px; height: 38px; }
.study-orbit strong { font: 800 40px/1 "Noto Sans KR", sans-serif; }
.study-intro-card h1, .complete-card h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.study-intro-card > p:not(.eyebrow), .complete-card > p:not(.eyebrow) { margin: 15px auto 24px; color: var(--ink-soft); line-height: 1.75; }
.mini-rules, .score-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.mini-rules span, .score-legend span { padding: 12px 8px; border-radius: 13px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; }
.mini-rules b, .score-legend b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.all-meaning-rule { padding: 12px 14px; border-radius: 13px; background: var(--amber-soft); color: #6e552e !important; font-size: 12px; }
.study-intro-card .text-button { margin-top: 12px; }

.study-page { max-width: 840px; }
.study-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.study-header .eyebrow { margin-bottom: 3px; }
.study-header span { color: var(--ink-soft); font-size: 12px; }
.audio-replay-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--green); font-weight: 700; }
.next-appearance-notice { display: flex; align-items: center; gap: 7px; width: fit-content; margin: -6px 0 14px; padding: 8px 11px; border-radius: 12px; background: var(--green-soft); color: #457a68; font-size: 11px; }
.next-appearance-notice svg { width: 14px; height: 14px; }
.study-card { position: relative; overflow: hidden; min-height: 580px; padding: 28px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.study-card.is-catchup { border-color: #d4b477; }
.card-context-row { display: flex; flex-wrap: wrap; gap: 7px; }
.catchup-chip, .repeat-chip { width: fit-content; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; color: #72531f; background: var(--amber-soft); font-size: 11px; font-weight: 750; }
.repeat-chip { color: var(--green); background: var(--green-soft); }
.new-word-chip { width: fit-content; padding: 7px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 780; }
.catchup-chip svg { width: 14px; }
.hangul-prompt { padding: 52px 20px 34px; text-align: center; }
.hangul-prompt > span { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hangul-prompt h1 { margin: 8px 0 10px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: clamp(54px, 10vw, 86px); line-height: 1.14; letter-spacing: -.035em; }
.hangul-prompt p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.hangul-prompt .audio-played { min-height: 34px; margin: 0 auto; padding: 0 11px; border: 1px solid #b9d9cf; border-radius: 11px; background: #f2faf7; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 730; }
.hangul-prompt .audio-played svg { width: 15px; }

.v2-initial > p, .score-actions > p { margin: 0 0 16px; text-align: center; font-weight: 720; }
.memory-check-actions > p { font-size: clamp(22px, 4.2vw, 28px); line-height: 1.25; }
.rating-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rating-buttons > button { min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; display: flex; justify-content: center; align-items: center; gap: 9px; background: white; font-weight: 800; }
.rating-buttons > button svg { width: 22px; }
.rating-buttons > button span { display: flex; flex-direction: column; text-align: left; }
.rating-buttons > button small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; font-weight: 550; }
.rating-buttons .known { border-color: #a8d5c6; color: var(--green); background: #f3fbf8; }
.rating-buttons .uncertain { border-color: #e5c993; color: var(--amber); background: #fffbf3; }
.rating-buttons .unknown { border-color: #e5b3aa; color: var(--coral); background: #fff8f6; }
.all-meaning-inline { margin: 12px 0 0 !important; color: var(--coral); font-size: 11px; text-align: center; }

.audio-check-stage { padding: 25px; border-radius: 22px; background: var(--surface-soft); text-align: center; }
.sound-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; min-height: 42px; margin: 0 auto 12px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 760; }
.sound-badge svg { width: 18px; height: 18px; }
.audio-check-stage h2 { margin: 0; font-size: 21px; }
.audio-check-stage > p { margin: 7px 0 19px; color: var(--ink-soft); font-size: 12px; }
.three-followups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.three-followups button, .score-actions button { min-height: 49px; border: 1px solid var(--line); border-radius: 13px; background: white; font-weight: 720; }
.three-followups small, .score-actions small { display: block; margin-top: 2px; color: inherit; opacity: .68; font-size: 10px; }
.confirm-yes { border-color: #a8d5c6 !important; background: #f0faf6 !important; color: var(--green); }
.confirm-no { border-color: #dfc592 !important; background: #fffbf2 !important; color: #91611f; }
.danger { border-color: #e2afa6 !important; background: #fff5f2 !important; color: var(--coral) !important; }

.answer-zone { display: grid; gap: 12px; }
.answer-main { padding: 21px; border-radius: 19px; background: var(--green-soft); }
.answer-main span, .origin-panel span, .romanization-panel span, .hanja-detail-panel span, .homophone-panel span, .letter-speech-panel span { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.answer-main h2 { margin: 8px 0 0; font-size: clamp(22px, 4vw, 31px); line-height: 1.45; }
.origin-panel, .romanization-panel { padding: 17px 18px; border: 1px solid var(--line); border-radius: 17px; background: white; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.origin-panel div { display: flex; flex-direction: column; gap: 5px; }
.origin-panel strong { line-height: 1.55; }
.origin-panel em { white-space: nowrap; padding: 5px 8px; border-radius: 99px; background: var(--paper); color: var(--ink-soft); font-size: 10px; font-style: normal; }
.romanization-panel { justify-content: flex-start; background: var(--blue-soft); border-color: transparent; }
.romanization-panel strong { margin-left: auto; color: var(--blue); font-size: 24px; letter-spacing: .03em; }
.romanization-panel small { color: #5d7180; font-size: 9px; }
.hanja-detail-panel, .homophone-panel { padding: 14px 16px; border-radius: 15px; display: grid; gap: 6px; }
.hanja-detail-panel { border: 1px solid #d9c694; background: #fff9ea; }
.hanja-detail-panel strong { color: #72551d; font-size: 14px; line-height: 1.65; }
.homophone-panel { border: 1px solid #c7dbe3; background: var(--blue-soft); }
.homophone-panel strong { color: #2e5968; font-size: 13px; line-height: 1.65; }
.homophone-panel small { color: #5d7180; font-size: 9px; line-height: 1.5; }
.letter-speech-panel { padding: 14px 16px; border: 1px solid #b8d8cd; border-radius: 15px; display: grid; gap: 6px; background: #f0faf6; }
.letter-speech-panel strong { color: var(--green); font-size: 22px; letter-spacing: .04em; }
.letter-speech-panel small { color: #52766b; font-size: 10px; line-height: 1.55; }
.word-note, .meaning-warning { margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.meaning-warning { background: var(--coral-soft); color: #85483e; }
.score-actions { margin-top: 15px; }
.score-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.memory-footnote { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; color: var(--ink-soft); font-size: 10px; }
.version-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 10px; text-align: center; letter-spacing: .08em; }

.complete-mark { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 21px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.complete-mark svg { width: 35px; height: 35px; }
.complete-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.complete-stats span { padding: 13px; border-radius: 13px; background: var(--surface-soft); color: var(--ink-soft); font-size: 12px; }
.complete-stats b { color: var(--ink); font-size: 20px; }

.settings-section { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.section-copy { display: flex; align-items: flex-start; gap: 12px; }
.section-copy > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 850; }
.section-copy h2 { margin: 0; font-size: 18px; }
.section-copy p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.book-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.book-choice { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-soft); text-align: left; }
.book-choice.selected { border: 2px solid var(--green); padding: 19px; background: #f6fbf9; }
.book-level { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 800; }
.book-choice h3 { margin: 12px 0 6px; }
.book-choice p { min-height: 38px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.book-choice small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 9px; }
.selected-check { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--green); color: white; }
.selected-check svg { width: 15px; }
.split-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.setting-card + .setting-card { border-left: 1px solid var(--line); padding-left: 28px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 13px; background: var(--paper); }
.segmented button { min-height: 41px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft); font-size: 12px; }
.segmented button.active { background: white; color: var(--green); box-shadow: var(--shadow-soft); font-weight: 750; }
.number-control { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.number-control button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.number-control input { width: 78px; border: 0; background: transparent; color: var(--ink); text-align: center; font-size: 25px; font-weight: 800; }
.range { width: 100%; accent-color: var(--green); }
.setting-card > .range { margin-top: 11px; }
.speech-setting { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.speed-row { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 11px; }
.speed-row strong { min-width: 48px; color: var(--green); }
.save-plan { position: sticky; bottom: 20px; width: 100%; }

.admin-tabs { display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 4px; margin-bottom: 18px; border-radius: 14px; background: var(--paper-deep); }
.admin-tabs button { min-width: 94px; min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-soft); }
.admin-tabs button.active { background: var(--surface); color: var(--green); font-weight: 750; box-shadow: var(--shadow-soft); }
.admin-section { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-soft); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.admin-toolbar h2 { margin: 0; }
.admin-toolbar p, .result-count { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }
.admin-list { display: grid; gap: 8px; }
.admin-list article { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.admin-list article.inactive, .word-table article.inactive { opacity: .53; }
.admin-item-main { display: flex; flex: 1; align-items: flex-start; gap: 12px; min-width: 0; }
.admin-item-main h3 { margin: 0 0 4px; font-size: 15px; }
.admin-item-main p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.admin-item-main small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 9px; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink-soft); font-size: 10px; }
.word-toolbar { display: grid; grid-template-columns: 190px 1fr auto; }
.word-toolbar select, .search-box { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.word-toolbar select { padding: 0 11px; }
.search-box { display: flex; align-items: center; padding-left: 12px; }
.search-box svg { width: 17px; color: var(--ink-soft); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 10px; background: transparent; }
.search-box button { align-self: stretch; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 13px; color: var(--green); }
.result-count { margin: 0 0 10px; }
.word-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.word-table-head, .word-table article { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr 120px; align-items: center; gap: 13px; padding: 11px 14px; }
.word-table-head { background: var(--paper); color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.word-table article { border-top: 1px solid var(--line); font-size: 12px; }
.word-table article > div { display: flex; flex-direction: column; }
.word-table article strong { font-size: 17px; }
.word-table article p { margin: 0; }
.word-table article small { color: var(--ink-soft); font-size: 9px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.pagination button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.pagination span { color: var(--ink-soft); font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(15,31,26,.48); backdrop-filter: blur(4px); }
.modal { width: min(100%, 620px); max-height: calc(100vh - 40px); overflow: auto; padding: 23px; border-radius: 23px; background: var(--surface); box-shadow: 0 30px 90px rgba(12,31,25,.3); }
.modal > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.modal h2 { margin: 0; }
.modal-form { display: grid; gap: 14px; }
.modal-form label, .login-card label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.modal-form input, .modal-form textarea, .modal-form select, .login-card input {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: white; color: var(--ink);
}
.modal-form textarea { min-height: 82px; resize: vertical; }
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus, .login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,108,88,.1); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.login-page {
  --login-green: #016b3b;
  --login-green-deep: #063d29;
  --login-orange: #e45532;
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(430px, .84fr); background: var(--surface);
}
.login-story {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; padding: 44px clamp(34px, 5vw, 76px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 76% 34%, rgba(23,117,75,.27), transparent 27%), linear-gradient(145deg, #073d2c 0%, #082f25 58%, #05271f 100%); color: white;
}
.login-story::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -250px; bottom: -215px;
  border: 1px solid rgba(154,206,178,.11); border-radius: 50%; box-shadow: 0 0 0 78px rgba(54,132,93,.055), 0 0 0 156px rgba(54,132,93,.035);
}
.login-story::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.34) .65px, transparent .65px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(135deg, transparent 4%, black 44%, transparent 78%);
  mask-image: linear-gradient(135deg, transparent 4%, black 44%, transparent 78%);
}
.login-brandline { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-brandname { display: flex; align-items: center; }
.login-brandname div { display: flex; flex-direction: column; line-height: 1; }
.login-brandname strong { font-size: 20px; letter-spacing: .08em; }
.login-brandname small { margin-top: 7px; color: #a9c8bb; font-size: 9px; font-weight: 750; letter-spacing: .19em; }
.login-version { padding: 6px 10px; border: 1px solid rgba(205,232,219,.2); border-radius: 999px; color: #bad3c8; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.login-brand-stage { position: absolute; z-index: 1; right: clamp(-150px, -7vw, -56px); top: 9%; width: clamp(440px, 43vw, 700px); opacity: .66; pointer-events: none; }
.login-brand-stage img { display: block; width: 100%; height: auto; }
.login-story-copy { position: relative; z-index: 2; max-width: 620px; }
.login-story-copy h1 { max-width: 650px; margin: 0; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -.055em; }
.login-story-copy > p:last-child { max-width: 570px; margin: 22px 0 0; color: #b9d0c6; line-height: 1.8; }
.login-story .eyebrow { color: #ef8d72; }
.login-panel { position: relative; display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 76% 18%, rgba(1,107,59,.055), transparent 26%), #f5f3ec; }
.login-panel::before { content: "+"; position: absolute; right: 9%; bottom: 8%; color: rgba(1,107,59,.045); font: 300 150px/1 system-ui, sans-serif; }
.login-card {
  position: relative; width: min(100%, 430px); display: grid; gap: 20px; padding: 38px;
  border: 1px solid #d9ddd7; border-radius: 30px; background: rgba(255,254,249,.96); box-shadow: 0 26px 80px rgba(28,46,40,.12);
}
.login-card::before { content: none; display: none; }
.login-card-heading { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 13px; }
.login-card-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: var(--login-green); box-shadow: 0 9px 22px rgba(1,107,59,.18); font-size: 27px; font-weight: 400; line-height: 1; }
.login-card-heading .eyebrow { margin-bottom: 5px; color: var(--login-green); }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.login-card .muted { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
.login-card .primary-button { background: var(--login-green); box-shadow: 0 10px 24px rgba(1,107,59,.19); }
.login-card .primary-button:hover { background: var(--login-green-deep); }
.login-card input:focus { border-color: var(--login-green); box-shadow: 0 0 0 3px rgba(1,107,59,.1); }
.form-error { margin: -4px 0; color: var(--coral); font-size: 12px; }
.microcopy { margin: -4px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; text-align: center; }
.microcopy > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--login-green); box-shadow: 0 0 0 4px rgba(1,107,59,.08); }

.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 17px; background: var(--paper); }
.loading-screen p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.loader { width: 28px; height: 28px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { display: grid; place-content: center; gap: 15px; }
.skeleton span { width: 220px; height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--paper) 25%, #fff 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; z-index: 100; left: calc(50% + 122px); bottom: 28px; transform: translateX(-50%); max-width: min(90vw, 520px); padding: 12px 16px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; animation: toastIn .2s ease-out; }
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }

.today-review-button { position: relative; z-index: 1; width: 100%; min-height: 44px; margin-top: 9px; padding: 0 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.06); color: #e6efec; font-size: 12px; font-weight: 750; }
.today-review-button svg { width: 17px; height: 17px; }
.today-review-button span { color: #9fc0b4; font-weight: 600; }

.study-history-button, .study-current-button, .subpage-back { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--green); font-size: 11px; font-weight: 760; }
.study-history-button svg { width: 15px; height: 15px; }
.study-current-button { color: var(--blue); }
.study-mode-chip { padding: 6px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue) !important; font-size: 10px !important; font-weight: 800; }
.history-header > div { text-align: center; }
.readonly-label { width: fit-content; margin: 0 auto; padding: 6px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.readonly-study-card { min-height: 0; }

.chinese-choice-stage { display: grid; justify-items: center; padding: 36px 16px 16px; text-align: center; }
.chinese-choice-stage > span { color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.chinese-choice-stage h1 { max-width: 660px; margin: 12px 0 8px; font-size: clamp(25px, 5vw, 40px); line-height: 1.45; }
.chinese-choice-stage > p { margin: 0 0 24px; color: var(--ink-soft); font-size: 12px; }
.korean-choice-grid { width: min(100%, 620px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.korean-choice { min-height: 72px; border: 1px solid #bfd3cc; border-radius: 16px; background: #f7fbf9; color: var(--ink); font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: clamp(24px, 5vw, 34px); font-weight: 780; }
.korean-choice:hover { border-color: var(--green); background: var(--green-soft); }
.korean-choice.is-wrong { border-color: #e1ada5; background: var(--coral-soft); color: var(--coral); text-decoration: line-through; opacity: .68; }
.choice-message { margin-top: 14px; padding: 9px 12px; border-radius: 11px; background: var(--coral-soft); color: #85483e; font-size: 11px; }

.pronunciation-panel { padding: 16px 18px; border: 1px solid #c6ded6; border-radius: 17px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 18px; background: #f2faf7; }
.pronunciation-panel > span { grid-row: 1 / 3; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pronunciation-panel > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pronunciation-panel strong { color: var(--green-deep); font-size: 22px; }
.pronunciation-panel b { color: var(--blue); font-family: "Noto Sans KR", Inter, sans-serif; font-size: 17px; letter-spacing: .02em; }
.pronunciation-panel small { grid-column: 2; color: var(--ink-soft); font-size: 9px; }

.today-learning-page { max-width: 840px; }
.subpage-header { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 18px; margin-bottom: 24px; }
.subpage-header h1 { margin: 0; font-size: 32px; }
.subpage-header p:not(.eyebrow) { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.today-word-list { display: grid; gap: 9px; }
.today-word-row { width: 100%; min-height: 78px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 17px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 13px; background: var(--surface); text-align: left; box-shadow: var(--shadow-soft); }
.today-word-number { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.today-word-row > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.today-word-row strong { font-size: 21px; }
.today-word-row small { overflow: hidden; color: var(--ink-soft); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.today-word-row > b { color: var(--green); font-size: 22px; }

@media (max-width: 959px) {
  .side-rail { display: none; }
  .main-stage { margin-left: 0; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .page-wrap { padding: 28px 22px calc(104px + env(safe-area-inset-bottom)); }
  .mobile-header { height: 70px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,254,249,.84); backdrop-filter: blur(16px); }
  .mobile-header .brand > span { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
  .mobile-header .brand strong { font-size: 17px; }
  .mobile-header .brand small { display: none; }
  .mobile-header .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .view-study .mobile-header { display: none; }
  .view-study .main-stage { min-height: 100dvh; padding-bottom: 0; }
  .view-study .study-page { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .view-study .v2-card { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .save-plan { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bottom-nav { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); min-height: 62px; padding: 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid rgba(221,220,212,.9); border-radius: 20px; background: rgba(255,254,249,.92); box-shadow: 0 14px 40px rgba(25,48,41,.16); backdrop-filter: blur(18px); }
  .bottom-nav button, .bottom-nav .admin-link { min-height: 49px; padding: 5px; flex-direction: column; justify-content: center; gap: 2px; border-radius: 14px; font-size: 9px; }
  .bottom-nav button svg { width: 20px; height: 20px; }
  .bottom-nav button.active { background: var(--green-soft); color: var(--green); }
  .toast { left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .login-story { min-height: 500px; }
  .login-page { grid-template-columns: 1fr; }
  .login-story-copy h1 { font-size: 48px; max-width: 600px; }
  .login-brand-stage { right: -105px; top: 54px; width: 390px; opacity: .62; }
  .login-panel { padding: 32px 20px; }
}

@media (max-width: 660px) {
  .page-wrap { padding: 23px 15px calc(104px + env(safe-area-inset-bottom)); }
  .desktop-only { display: none; }
  .page-heading { margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p:not(.eyebrow) { font-size: 13px; }
  .today-card { padding: 19px; border-radius: 23px; }
  .today-main { display: block; padding: 27px 0 20px; }
  .today-count strong { font-size: 54px; }
  .today-side { max-width: none; margin-top: 18px; align-items: flex-start; gap: 15px; }
  .daily-motivation { justify-content: flex-start; flex-wrap: wrap; gap: 4px 8px; text-align: left; }
  .daily-motivation strong { font-size: 14px; }
  .daily-motivation span { font-size: 11px; }
  .today-breakdown { margin-top: 19px; }
  .today-side .today-breakdown { margin-top: 0; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .stat-grid article { padding: 13px 10px; border-radius: 16px; }
  .stat-grid p { margin-top: 12px; font-size: 9px; }
  .stat-grid strong { font-size: 23px; }
  .stat-grid small { font-size: 8px; }
  .stat-icon { width: 31px; height: 31px; }
  .study-intro-page, .complete-page { min-height: calc(100vh - 150px); }
  .study-intro-card, .complete-card { padding: 27px 19px; border-radius: 24px; }
  .study-intro-card h1, .complete-card h1 { font-size: 28px; }
  .view-study .study-page { padding: 9px 10px calc(82px + env(safe-area-inset-bottom)); }
  .view-study .study-header { flex: 0 0 auto; margin-bottom: 5px; min-height: 22px; }
  .view-study .study-header .eyebrow { margin: 0; font-size: 10px; }
  .study-history-button, .study-current-button { min-height: 31px; padding: 0 7px; border-radius: 9px; font-size: 9px; }
  .study-mode-chip { padding: 5px 7px; font-size: 8px !important; }
  .history-header { gap: 5px; }
  .study-card { min-height: 0; padding: 13px 12px; border-radius: 22px; }
  .view-study .v2-card { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .card-context-row:not(:empty) { margin-bottom: 4px; }
  .new-word-chip, .catchup-chip { padding: 5px 8px; font-size: 9px; }
  .hangul-prompt { padding: 12px 7px 11px; }
  .hangul-prompt > span { font-size: 9px; }
  .hangul-prompt h1 { margin: 4px 0 6px; font-size: 48px; }
  .hangul-prompt p { font-size: 10px; }
  .hangul-prompt .audio-played { min-height: 30px; font-size: 10px; }
  .chinese-choice-stage { padding: 12px 5px 6px; }
  .chinese-choice-stage h1 { margin: 6px 0 4px; font-size: 24px; }
  .chinese-choice-stage > p { margin-bottom: 11px; font-size: 9px; }
  .korean-choice-grid { gap: 7px; }
  .korean-choice { min-height: 54px; border-radius: 12px; font-size: 25px; }
  .choice-message { margin-top: 8px; padding: 7px 9px; font-size: 9px; }
  .v2-initial > p, .score-actions > p { margin-bottom: 9px; font-size: 13px; }
  .rating-buttons { gap: 6px; }
  .rating-buttons > button { min-height: 58px; padding: 7px 3px; flex-direction: column; gap: 2px; border-radius: 13px; }
  .rating-buttons > button svg { width: 17px; height: 17px; }
  .rating-buttons > button span { text-align: center; }
  .rating-buttons > button small { font-size: 8px; }
  .all-meaning-inline { margin-top: 8px !important; font-size: 9px; }
  .audio-check-stage { padding: 14px 10px; border-radius: 16px; }
  .sound-badge { min-height: 36px; margin-bottom: 8px; }
  .audio-check-stage h2 { font-size: 17px; }
  .audio-check-stage > p { margin: 4px 0 11px; font-size: 10px; }
  .three-followups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .three-followups button, .score-actions button { min-height: 43px; padding: 4px 2px; border-radius: 11px; font-size: 11px; }
  .memory-check-actions > p { font-size: 20px; }
  .stage-known-check, .stage-uncertain-check, .stage-uncertain-reveal, .stage-unknown-reveal { display: flex; flex-direction: column; overflow: hidden !important; }
  .stage-known-check .v2-answer, .stage-uncertain-check .v2-answer, .stage-uncertain-reveal .v2-answer, .stage-unknown-reveal .v2-answer { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
  .answer-zone { gap: 7px; }
  .answer-main { padding: 11px 12px; border-radius: 14px; }
  .answer-main h2 { margin-top: 4px; font-size: 20px; line-height: 1.35; }
  .origin-panel, .romanization-panel { align-items: flex-start; flex-wrap: wrap; }
  .origin-panel, .romanization-panel, .pronunciation-panel, .hanja-detail-panel, .homophone-panel, .letter-speech-panel { padding: 10px 11px; border-radius: 13px; gap: 6px; }
  .pronunciation-panel { grid-template-columns: 1fr; }
  .pronunciation-panel > span, .pronunciation-panel small { grid-column: 1; grid-row: auto; }
  .pronunciation-panel > div { flex-wrap: wrap; gap: 3px 12px; }
  .pronunciation-panel strong { font-size: 18px; }
  .pronunciation-panel b { font-size: 14px; }
  .origin-panel strong { font-size: 13px; }
  .origin-panel em { padding: 3px 6px; font-size: 8px; }
  .romanization-panel strong { font-size: 18px; }
  .romanization-panel small { width: 100%; }
  .hanja-detail-panel strong, .homophone-panel strong { font-size: 11px; line-height: 1.5; }
  .letter-speech-panel strong { font-size: 18px; }
  .letter-speech-panel small { font-size: 9px; }
  .word-note, .meaning-warning { padding: 7px 9px; border-radius: 9px; font-size: 9px; }
  .score-actions { flex: 0 0 auto; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); background: var(--surface); }
  .score-actions > div { gap: 6px; }
  .next-appearance-notice { margin: 0 0 5px; padding: 5px 8px; font-size: 9px; }
  .memory-footnote { flex-direction: column; gap: 3px; }
  .subpage-header { grid-template-columns: 1fr; gap: 10px; margin-bottom: 17px; }
  .subpage-header h1 { font-size: 27px; }
  .subpage-back { width: fit-content; min-height: 34px; }
  .today-word-row { min-height: 70px; padding: 10px 12px; border-radius: 14px; grid-template-columns: 27px 1fr auto; gap: 9px; }
  .today-word-row strong { font-size: 19px; }
  .today-word-row small { font-size: 10px; }
  .book-choice-grid, .split-settings, .speech-setting { grid-template-columns: 1fr; }
  .profile-card { padding: 20px; border-radius: 20px; }
  .profile-avatar { width: 58px; height: 58px; flex-basis: 58px; font-size: 22px; }
  .profile-card h2 { font-size: 18px; line-height: 1.35; }
  .leave-app-button { min-height: 72px; font-size: 21px; }
  .profile-admin-card { align-items: stretch; flex-direction: column; }
  .profile-admin-card a { width: 100%; }
  .setting-card + .setting-card { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .speech-setting { gap: 20px; }
  .settings-section { padding: 18px; border-radius: 20px; }
  .word-toolbar { grid-template-columns: 1fr; }
  .word-toolbar .primary-button { width: 100%; }
  .word-table { border: 0; display: grid; gap: 9px; overflow: visible; }
  .word-table-head { display: none; }
  .word-table article { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
  .word-table article > div:nth-child(3) { grid-column: 1 / -1; }
  .word-table article .row-actions { grid-column: 1 / -1; flex-direction: row; }
  .admin-section { padding: 14px; }
  .admin-toolbar { align-items: flex-start; }
  .admin-list article { flex-wrap: wrap; }
  .admin-list .row-actions { width: 100%; justify-content: flex-end; }
  .field-pair { grid-template-columns: 1fr; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { max-height: 92vh; border-radius: 25px 25px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .login-story { min-height: 420px; padding: 24px 20px 56px; }
  .login-brandname strong { font-size: 17px; }
  .login-brandname small { margin-top: 6px; font-size: 8px; }
  .login-version { padding: 5px 8px; font-size: 8px; }
  .login-brand-stage { top: 55px; right: -94px; width: 310px; opacity: .68; }
  .login-story-copy { max-width: 100%; padding-right: 0; }
  .login-story-copy h1 { max-width: 330px; font-size: 36px; line-height: 1.08; }
  .login-story-copy > p:last-child { max-width: 305px; margin-top: 15px; color: #c3d6ce; font-size: 11px; line-height: 1.65; }
  .login-panel { z-index: 3; padding: 0 14px calc(32px + env(safe-area-inset-bottom)); }
  .login-card { margin-top: -24px; padding: 28px 21px 24px; border-radius: 24px; }
  .login-card::before { content: none; display: none; }
  .login-card-heading { grid-template-columns: 38px 1fr; gap: 11px; }
  .login-card-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 24px; }
  .login-card h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
