:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #192333;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(145deg, #f9fbff, #edf2f8); }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { min-height: 100vh; max-width: 760px; margin: 0 auto; padding-bottom: 92px; }
.app-content { padding: 28px 20px 20px; }
.page-header, .section-heading, .learning-focus, .audio-panel, .conversation-card, .settings-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-header { margin-bottom: 24px; }
.page-header h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 7vw, 40px); letter-spacing: -.04em; }
h2 { font-size: 20px; letter-spacing: -.02em; }
.eyebrow { color: #8995a7; font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 7px; }
.muted, small { color: #8995a7; }
.header-chip, .pill, .status-dot { color: #3564e8; background: #e8efff; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.status-dot { color: #247b57; background: #e5f8ed; }
.hero-card, .learning-focus, .audio-panel, .conversation-card, .settings-summary { border: 1px solid #e8edf4; border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 14px 40px rgba(41, 66, 104, .07); }
.hero-card { display: flex; align-items: center; justify-content: space-between; padding: 25px; margin-bottom: 30px; background: linear-gradient(135deg, #315fe6, #6e8df2); color: white; }
.hero-card__label { display: block; opacity: .8; font-size: 13px; margin-bottom: 9px; }
.hero-card strong { display: block; font-size: 34px; letter-spacing: -.05em; }
.hero-card p { margin-top: 8px; opacity: .84; font-size: 13px; }
.hero-orb { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 29px; }
.section-heading { margin: 0 0 13px; }
.text-button { color: #3564e8; background: transparent; font-size: 13px; font-weight: 700; }
.lesson-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 9px; padding: 19px; margin-bottom: 12px; border: 1px solid #e8edf4; border-radius: 20px; background: white; color: #192333; text-align: left; box-shadow: 0 8px 24px rgba(41, 66, 104, .05); }
.lesson-card.is-active { border-color: #aac0ff; box-shadow: 0 10px 28px rgba(53, 100, 232, .12); }
.lesson-card__top { display: flex; justify-content: space-between; width: 100%; color: #8b97a9; font-size: 12px; }
.lesson-card strong { font-size: 18px; }
.progress { display: block; width: 100%; height: 7px; overflow: hidden; border-radius: 99px; background: #eef1f6; }
.progress span { display: block; height: 100%; border-radius: inherit; background: #5279eb; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px; border-radius: 20px; background: white; color: #192333; text-align: left; box-shadow: 0 8px 24px rgba(41, 66, 104, .05); }
.quick-card > span { color: #5279eb; font-size: 24px; }
.quick-card small { font-size: 12px; }
.learning-focus { padding: 21px; margin-bottom: 17px; }
.primary-button { padding: 12px 18px; border-radius: 14px; background: #3564e8; color: white; font-weight: 800; white-space: nowrap; }
.circle-button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #3564e8; color: white; }
.audio-panel { padding: 19px; margin-top: 25px; }
.conversation-card { align-items: flex-start; padding: 21px; margin-bottom: 17px; }
.conversation-card__avatar, .intro-icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #e8efff; color: #3564e8; font-weight: 900; }
.conversation-card p:last-child { margin-top: 7px; color: #5e6c80; line-height: 1.6; }
.prompt-list { display: grid; gap: 9px; margin-bottom: 25px; }
.prompt-list button { display: flex; justify-content: space-between; padding: 14px 16px; border: 1px solid #e4eaf2; border-radius: 14px; background: white; color: #405066; text-align: left; }
.prompt-list span { color: #3564e8; font-size: 20px; line-height: 15px; }
.conversation-form { padding: 18px; border-radius: 20px; background: #e9eef7; }
.conversation-form label { display: block; margin-bottom: 10px; color: #657389; font-size: 13px; font-weight: 700; }
.input-row { display: flex; gap: 8px; }
.input-row input { min-width: 0; flex: 1; padding: 12px 13px; border: 1px solid #dce4f0; border-radius: 13px; outline: none; }
.input-row input:focus { border-color: #5279eb; box-shadow: 0 0 0 3px #dce6ff; }
.last-conversation { margin-top: 17px; color: #8995a7; font-size: 12px; }
.onboarding-intro { padding: 27px 5px 24px; text-align: center; }
.onboarding-intro .intro-icon { margin: 0 auto 17px; font-size: 25px; }
.onboarding-intro p { margin-top: 8px; color: #8995a7; font-size: 13px; }
.setup-list { display: grid; gap: 10px; }
.setup-step { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px; border: 1px solid #e8edf4; border-radius: 18px; background: white; color: #192333; text-align: left; }
.setup-step > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.setup-step .check { color: #a0aabd; font-size: 22px; }
.setup-step.is-complete .check { color: #2c9b69; }
.setup-step small { font-size: 12px; }
.settings-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 19px; margin-top: 25px; }
.settings-summary .eyebrow { grid-column: 1 / -1; }
.settings-summary div { display: flex; flex-direction: column; gap: 6px; padding-top: 9px; color: #8995a7; font-size: 12px; }
.settings-summary strong { color: #192333; font-size: 15px; }
.tab-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; justify-content: center; gap: 4px; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e6ebf2; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.tab { display: flex; flex: 1; max-width: 120px; flex-direction: column; align-items: center; gap: 3px; padding: 7px 10px; border-radius: 13px; background: transparent; color: #9aa5b5; }
.tab span { font-size: 19px; line-height: 20px; }
.tab small { color: inherit; font-size: 11px; }
.tab.is-active { background: #edf2ff; color: #3564e8; }
.empty-state { padding: 24px; border: 1px dashed #ccd6e5; border-radius: 18px; color: #8995a7; text-align: center; }
@media (min-width: 700px) { .app-content { padding: 44px 42px 30px; } .tab-bar { right: max(calc((100vw - 760px) / 2), 0px); left: max(calc((100vw - 760px) / 2), 0px); border-radius: 20px 20px 0 0; } }
