:root {
  --ink: #17332c;
  --ink-soft: #547069;
  --green: #1e4d40;
  --green-2: #286957;
  --lime: #dffb7d;
  --lime-soft: #f0facd;
  --paper: #f7f8f4;
  --card: #ffffff;
  --line: #dfe7e1;
  --coral: #f19a7b;
  --shadow: 0 12px 36px rgba(36, 63, 54, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -5%, #edf9d8 0, transparent 28rem), var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 0 24px 116px; }
.topbar { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: max(18px, env(safe-area-inset-top)); }
.topbar h1 { margin: 5px 0 0; font-size: clamp(21px, 5vw, 28px); letter-spacing: -0.04em; }
.eyebrow { margin: 0; color: #71847e; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.avatar-button { position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(30, 77, 64, .2); }
.avatar-button i { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: #abda42; }
.card { border: 1px solid rgba(28, 68, 57, .09); border-radius: var(--radius); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.exam-countdown { position: relative; overflow: hidden; margin-bottom: 14px; padding: 22px 24px 18px; background: linear-gradient(135deg, #e9ff91 0%, #dafa6d 58%, #c7ee5e 100%); box-shadow: 0 16px 38px rgba(91, 123, 28, .16); }
.exam-countdown::after { content: ""; position: absolute; right: -65px; bottom: -95px; width: 210px; height: 210px; border: 1px solid rgba(24, 61, 49, .12); border-radius: 50%; box-shadow: 0 0 0 26px rgba(24, 61, 49, .035), 0 0 0 54px rgba(24, 61, 49, .025); }
.countdown-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.countdown-topline > span { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; }
.countdown-topline i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(30, 77, 64, .1); }
.countdown-topline em { padding: 5px 8px; border: 1px solid rgba(25, 63, 53, .14); border-radius: 8px; background: rgba(255,255,255,.35); font-size: 9px; font-style: normal; font-weight: 800; }
.countdown-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; margin-top: 14px; }
.countdown-number { display: flex; align-items: flex-end; min-width: 118px; color: var(--green); line-height: .82; }
.countdown-number strong { font-size: clamp(62px, 16vw, 86px); letter-spacing: -.09em; }
.countdown-number span { padding: 0 0 7px 7px; font-size: 16px; font-weight: 900; }
.countdown-meta { position: relative; z-index: 1; min-width: 0; }
.countdown-meta p { margin: 0 0 6px; color: #4f6a37; font-size: 11px; font-weight: 800; }
.countdown-meta h2 { margin: 0; font-size: clamp(17px, 4.8vw, 23px); letter-spacing: -.04em; }
.countdown-meta small { display: block; margin-top: 7px; color: #647645; font-size: 9px; }
.countdown-stage { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 15px; }
.countdown-stage > span { font-size: 9px; font-weight: 900; }
.countdown-stage > div { height: 4px; overflow: hidden; border-radius: 9px; background: rgba(24, 61, 49, .14); }
.countdown-stage i { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--green); transition: width .5s ease; }
.daily-motivation { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 14px; padding: 19px 20px; background: linear-gradient(135deg, #fffdf7, #f7f5ea); box-shadow: 0 10px 28px rgba(63,69,49,.07); }
.motivation-mark { color: var(--coral); font-family: Georgia, serif; font-size: 56px; line-height: .8; opacity: .75; }
.motivation-copy { min-width: 0; }
.motivation-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.motivation-label span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.motivation-label em { color: #88928a; font-size: 8px; font-style: normal; }
.motivation-copy blockquote { margin: 11px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 17px; font-weight: 700; line-height: 1.5; }
.motivation-copy cite { color: #738079; font-size: 10px; font-style: normal; }
.motivation-copy > p { margin: 10px 0 0; color: #586c65; font-size: 11px; line-height: 1.65; }
.motivation-actions { display: flex; gap: 7px; margin-top: 12px; }
.motivation-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #d7dfd9; border-radius: 10px; background: rgba(255,255,255,.72); color: var(--green); font-size: 9px; font-weight: 800; cursor: pointer; }
.motivation-actions button:last-child { width: 34px; padding: 0; font-size: 16px; }
.coach-brief { position: relative; overflow: hidden; padding: 24px; background: linear-gradient(135deg, #173f35 0%, #235b4a 100%); color: white; }
.coach-brief::after { content: "✦"; position: absolute; top: -52px; right: -12px; color: rgba(223, 251, 125, .1); font-size: 170px; line-height: 1; }
.brief-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.ai-badge { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.spark { color: var(--lime); font-style: normal; margin-right: 5px; }
.live-dot { display: flex; align-items: center; gap: 6px; color: #c6d7d1; font-size: 11px; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(223, 251, 125, .12); }
.coach-brief h2 { position: relative; z-index: 1; max-width: 460px; margin: 26px 0 8px; font-size: clamp(24px, 6vw, 34px); letter-spacing: -.04em; }
.coach-brief > p { position: relative; z-index: 1; max-width: 520px; margin: 0; color: #c6d7d1; font-size: 14px; line-height: 1.75; }
.brief-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 22px; }
.primary-button, .secondary-button { min-height: 48px; border: 0; border-radius: 15px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 0 18px; background: var(--lime); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.primary-button:active, .secondary-button:active { transform: translateY(2px); }
.primary-button b { font-size: 20px; }
.secondary-button { padding: 0 18px; border: 1px solid #b9ccc4; background: white; }
.wide { width: 100%; justify-content: center; }
.icon-button { width: 48px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.08); color: white; font-size: 22px; cursor: pointer; }
.progress-section, .task-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2, .page-title h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.04em; }
.section-heading.compact { align-items: center; }
.text-button { border: 0; background: transparent; color: var(--green-2); font-size: 12px; font-weight: 800; cursor: pointer; }
.progress-card { display: flex; align-items: center; gap: clamp(20px, 7vw, 54px); padding: 22px; }
.progress-ring { --progress: 0deg; position: relative; flex: 0 0 auto; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(var(--green) var(--progress), #e8eee8 0); }
.progress-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: white; }
.progress-ring strong, .progress-ring span { position: relative; z-index: 1; }
.progress-ring strong { font-size: 24px; letter-spacing: -.05em; }
.progress-ring span { color: #789088; font-size: 10px; }
.progress-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.progress-stats div { min-width: 0; }
.progress-stats span { display: block; color: #7b8c87; font-size: 11px; }
.progress-stats strong { display: block; margin-top: 6px; font-size: 16px; white-space: nowrap; }
.round-add { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green); color: white; font-size: 23px; cursor: pointer; }
.heading-actions { display: flex; align-items: center; gap: 7px; }
.ai-action { padding: 8px 10px; border: 1px solid #cfdbd5; border-radius: 10px; background: white; }
.task-list { display: grid; gap: 10px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); transition: opacity .2s ease, transform .2s ease; }
.task-item.done { opacity: .55; }
.task-item.done h3 { text-decoration: line-through; }
.task-check { width: 25px; height: 25px; display: grid; place-content: center; border: 1.5px solid #aac0b8; border-radius: 8px; background: white; color: white; cursor: pointer; }
.task-item.done .task-check { border-color: var(--green); background: var(--green); }
.task-copy { min-width: 0; }
.task-copy h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.task-copy p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: #7b8c87; font-size: 11px; }
.subject-tag { padding: 3px 7px; border-radius: 6px; background: #edf4e5; color: #4b6a40; font-weight: 700; }
.task-time { text-align: right; }
.task-time strong { display: block; font-size: 13px; }
.task-time span { color: #82918d; font-size: 10px; }
.empty-state { padding: 30px 18px; border: 1px dashed #c9d6d0; border-radius: 20px; color: #748680; text-align: center; }
.empty-state span { display: block; margin-bottom: 7px; font-size: 25px; }
.night-review { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin-top: 28px; padding: 18px; background: #f1f0e8; box-shadow: none; }
.night-review .moon-icon { width: 46px; height: 46px; display: grid; place-content: center; border-radius: 15px; background: var(--ink); color: var(--lime); font-size: 25px; }
.night-review h3 { margin: 4px 0; font-size: 14px; }
.night-review p:last-child { margin: 0; color: #77847f; font-size: 11px; }
.night-review .secondary-button { min-height: 40px; font-size: 12px; }
.view { display: none; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
.page-title { padding: 12px 0 25px; }
.page-title h2 { font-size: 31px; }
.page-title > p:last-child { margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 15px; background: #e8ede7; }
.segmented button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: #70817b; font-size: 12px; font-weight: 700; cursor: pointer; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 5px 15px rgba(41,72,62,.08); }
.plan-hero { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-top: 16px; padding: 20px; }
.plan-hero .primary-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
.ai-orb { width: 46px; height: 46px; display: grid; place-content: center; flex: 0 0 auto; border-radius: 15px; background: var(--green); color: var(--lime); font-size: 20px; }
.ai-orb.small { width: 39px; height: 39px; border-radius: 12px; }
.plan-hero h3, .input-card h3 { margin: 4px 0; font-size: 16px; }
.plan-hero p:last-child, .input-card p { margin: 0; color: #748680; font-size: 12px; line-height: 1.5; }
.plan-content { display: grid; gap: 10px; margin-top: 18px; }
.plan-block { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.75); }
.plan-block header { display: flex; justify-content: space-between; align-items: center; }
.plan-block h3 { margin: 0; font-size: 15px; }
.plan-block > p { margin: 9px 0 0; color: #6c817a; font-size: 12px; line-height: 1.65; }
.plan-block em { color: var(--green-2); font-size: 10px; font-style: normal; font-weight: 800; }
.data-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { padding: 18px; border-radius: 20px; background: var(--green); color: white; }
.metric-card.coral { background: #f3b195; color: #4d2c22; }
.metric-card span, .metric-card em { display: block; font-size: 10px; font-style: normal; opacity: .7; }
.metric-card strong { display: block; margin: 8px 0; font-size: 28px; letter-spacing: -.04em; }
.metric-card small { font-size: 11px; }
.input-card { margin-top: 14px; padding: 19px; }
.source-line { display: flex; align-items: center; gap: 12px; }
.source-icon { width: 40px; height: 40px; display: grid; place-content: center; border-radius: 12px; font-weight: 900; }
.source-icon.tick { background: #e7f3dc; color: #4d713c; }
.source-icon.tomato { background: #fff0e9; color: #c66546; }
textarea, input, select { width: 100%; border: 1px solid #d5dfda; outline: 0; background: #fbfcfa; color: var(--ink); transition: border .2s ease, box-shadow .2s ease; }
textarea:focus, input:focus, select:focus { border-color: #6e978a; box-shadow: 0 0 0 3px rgba(80,130,113,.1); }
.input-card textarea { min-height: 105px; resize: vertical; margin: 16px 0 10px; padding: 13px; border-radius: 14px; font-size: 13px; line-height: 1.6; }
.import-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 16px; padding: 4px; border-radius: 13px; background: #edf1ed; }
.import-methods button { min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: #73837d; font-size: 10px; font-weight: 800; cursor: pointer; }
.import-methods button.active { background: white; color: var(--green); box-shadow: 0 4px 12px rgba(32,64,53,.08); }
.import-panel { display: none; }
.import-panel.active { display: block; animation: fadeIn .2s ease; }
.image-dropzone { min-height: 190px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; margin: 12px 0 10px !important; padding: 18px; border: 1.5px dashed #a9bdb5; border-radius: 17px; background: #f8faf7; color: #60766e !important; cursor: pointer; text-align: center; }
.image-dropzone:hover { border-color: var(--green-2); background: #f2f7ef; }
.upload-icon { width: 46px; height: 46px; display: grid; place-content: center; margin-bottom: 10px; border-radius: 14px; background: #e8f2e1; color: var(--green); font-size: 23px; }
.image-dropzone strong { font-size: 13px; }
.image-dropzone small { margin-top: 6px !important; font-size: 9px !important; }
.image-dropzone img { width: 100%; max-height: 260px; margin-top: 12px; border-radius: 12px; object-fit: contain; }
.timeline-import-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 12px; color: #71837d; }
.timeline-import-hint span { color: var(--green-2); }
.timeline-import-hint p { margin: 0; font-size: 10px; line-height: 1.5; }
.focus-history { margin-top: 24px; }
.focus-history .section-heading strong { color: var(--green-2); font-size: 11px; }
.focus-timeline { display: grid; gap: 9px; }
.focus-session { position: relative; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; overflow: hidden; padding: 14px 14px 14px 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.78); }
.focus-session::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 5px 5px 0; background: var(--green-2); }
.focus-session-time strong, .focus-session-copy strong { display: block; }
.focus-session-time strong { font-size: 12px; }
.focus-session-time span { color: #899691; font-size: 9px; }
.focus-session-copy { min-width: 0; }
.focus-session-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.focus-session-copy span { display: block; margin-top: 5px; color: #778983; font-size: 10px; }
.focus-session-delete { width: 28px; height: 28px; border: 0; border-radius: 9px; background: #f0f3ef; color: #87948f; cursor: pointer; }
.task-focus-detail { color: var(--green-2); font-weight: 800; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.inline-form input { min-height: 46px; padding: 0 13px; border-radius: 13px; }
.inline-form button { padding: 0 19px; border: 0; border-radius: 13px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.insight-card { display: flex; gap: 13px; margin-top: 14px; padding: 19px; background: var(--lime-soft); box-shadow: none; }
.insight-card > span { color: var(--green); font-size: 19px; }
.insight-card h3 { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.profile-head { display: flex; align-items: center; gap: 16px; padding: 20px 2px 30px; }
.large-avatar { width: 68px; height: 68px; display: grid; place-content: center; border-radius: 22px; background: var(--green); color: white; font-size: 25px; font-weight: 800; }
.profile-head h2 { margin: 5px 0; font-size: 23px; }
.profile-head p:last-child { margin: 0; color: #748680; font-size: 12px; }
.profile-card { padding: 20px; }
.profile-card > p { margin: 5px 0 0; color: #5f756e; font-size: 13px; line-height: 1.75; }
.profile-ai-button { width: 100%; min-height: 40px; margin-top: 15px; border: 1px solid #cad9d2; border-radius: 12px; background: #f4f8f1; color: var(--green); font-size: 11px; font-weight: 800; cursor: pointer; }
.memory-status { padding: 5px 8px; border-radius: 8px; background: #eaf5dd; color: #587443; font-size: 9px; font-weight: 800; }
.settings-list { overflow: hidden; margin-top: 15px; box-shadow: none; }
.settings-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 70px; padding: 0 17px; border: 0; border-bottom: 1px solid #edf0ed; background: white; text-align: left; cursor: pointer; }
.settings-list button:last-child { border-bottom: 0; }
.settings-list button > span { width: 35px; height: 35px; display: grid; place-content: center; border-radius: 11px; background: #eff4ed; color: var(--green); }
.settings-list strong, .settings-list small { display: block; }
.settings-list strong { font-size: 13px; }
.settings-list small { margin-top: 5px; color: #85928e; font-size: 10px; }
.settings-list b { color: #aab5b1; font-size: 24px; font-weight: 400; }
.privacy-note { color: #8b9894; font-size: 10px; text-align: center; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 700px); height: 72px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 10px; border: 1px solid rgba(33,72,60,.12); border-radius: 24px; background: rgba(251,252,249,.93); box-shadow: 0 16px 40px rgba(23,52,44,.18); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; color: #84928e; cursor: pointer; }
.bottom-nav button span { font-size: 20px; line-height: 1; }
.bottom-nav button b { font-size: 9px; }
.bottom-nav button.active { color: var(--green); }
.bottom-nav .ai-nav { position: relative; top: -17px; color: var(--green); }
.bottom-nav .ai-nav span { width: 55px; height: 55px; display: grid; place-content: center; border: 5px solid var(--paper); border-radius: 50%; background: var(--green); color: var(--lime); box-shadow: 0 8px 18px rgba(20,66,53,.25); }
.overlay, .modal-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(15,35,29,.48); backdrop-filter: blur(4px); }
[hidden] { display: none !important; }
.coach-sheet { width: min(100%, 700px); max-height: min(88vh, 760px); display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--paper); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.coach-sheet > header, .modal > header { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.coach-sheet > header > div { display: flex; align-items: center; gap: 11px; }
.coach-sheet h2, .modal h2 { margin: 0; font-size: 18px; }
.coach-sheet header p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #768883; font-size: 10px; }
.coach-sheet header p i { width: 6px; height: 6px; border-radius: 50%; background: #85bd38; }
.coach-sheet header button, .modal header button { border: 0; background: transparent; color: #778782; font-size: 26px; cursor: pointer; }
.quick-prompts { display: flex; gap: 7px; overflow-x: auto; padding: 12px 18px 4px; scrollbar-width: none; }
.quick-prompts button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #cfdad5; border-radius: 11px; background: white; color: #526861; font-size: 10px; cursor: pointer; }
.chat-log { min-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding: 18px; }
.message { max-width: 84%; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.message.ai { align-self: flex-start; border-top-left-radius: 4px; background: white; }
.message.user { align-self: flex-end; border-top-right-radius: 4px; background: var(--green); color: white; }
.message.loading { color: #7d8c87; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--line); }
.chat-form textarea { max-height: 110px; resize: none; padding: 13px 14px; border-radius: 15px; font-size: 13px; }
.chat-form button { width: 45px; height: 45px; border: 0; border-radius: 14px; background: var(--green); color: var(--lime); font-size: 22px; cursor: pointer; }
.chat-hint { margin: 4px 0 12px; color: #95a19d; font-size: 9px; text-align: center; }
.modal-backdrop { align-items: center; overflow-y: auto; }
.modal { width: min(100%, 560px); max-height: 90vh; overflow-y: auto; border-radius: 26px; background: white; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.modal > header { position: sticky; z-index: 2; top: 0; background: white; }
.modal > label, .modal > .two-columns { display: block; margin: 16px 20px; }
.modal label { color: #465e56; font-size: 11px; font-weight: 800; }
.modal label input, .modal label select, .modal label textarea { display: block; min-height: 46px; margin-top: 7px; padding: 11px 12px; border-radius: 12px; font-size: 13px; font-weight: 400; resize: vertical; }
.modal label small { display: block; margin: 6px 2px 0; color: #8c9995; font-size: 9px; font-weight: 400; }
.modal > .primary-button { width: calc(100% - 40px); margin: 4px 20px 20px; }
.settings-section { margin: 14px 16px; padding: 17px; border: 1px solid #e2e8e4; border-radius: 19px; background: #fbfcfa; }
.settings-section > label { display: block; margin: 14px 0 0; }
.settings-section-title { display: flex; align-items: center; gap: 10px; }
.settings-section-title > span { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 11px; background: var(--green); color: var(--lime); font-size: 9px; font-weight: 900; }
.settings-section-title strong, .settings-section-title small { display: block; }
.settings-section-title strong { font-size: 13px; }
.settings-section-title small { margin-top: 3px; color: #899690; font-size: 9px; }
.direct-api-notice { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #eadfb8; border-radius: 13px; background: #fffaf0; color: #735d18; }
.direct-api-notice > span { font-size: 17px; }
.direct-api-notice p { margin: 0; }
.direct-api-notice strong, .direct-api-notice small { display: block; }
.direct-api-notice strong { font-size: 10px; }
.direct-api-notice small { margin-top: 4px; color: #8b7950; font-size: 9px; line-height: 1.5; }
.settings-grid { margin: 14px 0 0 !important; }
.model-description { display: flex; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 13px; background: #eefaDC; color: var(--green); }
.model-description > span { font-size: 17px; }
.model-description p { margin: 0; }
.model-description strong, .model-description small { display: block; }
.model-description strong { font-size: 10px; }
.model-description small { margin-top: 4px; color: #6c7f67; font-size: 9px; line-height: 1.45; }
.test-api-button { width: 100%; min-height: 38px; margin-top: 10px; border: 1px solid #cbd8d2; border-radius: 11px; background: white; color: var(--green); font-size: 10px; font-weight: 800; cursor: pointer; }
.profile-narrative-box { display: grid; grid-template-columns: auto 1fr; gap: 11px; margin: 16px 20px 20px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #eff8e4, #f7faef); }
.profile-narrative-box strong { display: block; font-size: 12px; }
.profile-narrative-box p { margin: 5px 0 0; color: #6f8079; font-size: 10px; line-height: 1.5; }
.profile-narrative-box textarea, .profile-narrative-box button { grid-column: 1 / -1; }
.profile-narrative-box textarea { min-height: 100px; padding: 12px; border-radius: 12px; resize: vertical; font-size: 12px; line-height: 1.6; }
.modal-actions { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin: 4px 20px 20px; }
.modal-actions .primary-button { width: 100%; justify-content: center; }
.modal-actions .secondary-button { color: #a64f3a; }
.modal-actions .secondary-button[hidden] + .primary-button { grid-column: 1 / -1; }
.two-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-columns label { margin: 0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 105px; max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 12px; background: #17372e; color: white; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .app-shell { padding-inline: 16px; }
  .progress-card { gap: 18px; }
  .progress-ring { width: 95px; height: 95px; }
  .progress-stats { grid-template-columns: 1fr; gap: 8px; }
  .progress-stats div { display: flex; justify-content: space-between; align-items: center; }
  .progress-stats strong { margin: 0; font-size: 13px; }
  .night-review { grid-template-columns: auto 1fr; }
  .night-review .secondary-button { grid-column: 1 / -1; width: 100%; }
  .exam-countdown { padding-inline: 19px; }
  .countdown-body { gap: 16px; }
  .countdown-number { min-width: 105px; }
}
@media (min-width: 900px) {
  .app-shell { padding-top: 12px; }
  .coach-brief { padding: 30px; }
}
