/* Nexmate 5.2 -- one typography scale, semantic metadata and explicit time cards.
   This file is loaded last on desktop, mobile web and Android WebView.
   No external font download or font-file distribution is required. */
:root {
  --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", system-ui, sans-serif;
  --ink: #202d43;
  --muted: #59677d;
  --line: #dfe5ee;
  --surface: #fff;
  --surface-2: #f5f6fb;
  --brand-soft: #eff0ff;
  --brand-2: #5865c9;
  --success: #167258;
  --danger: #b83650;
  --radius: 20px;
  --shadow-soft: 0 3px 12px rgba(34, 44, 79, .035);
  --type-caption: .8125rem;
  --type-meta: .8125rem;
  --type-body: .9375rem;
  --type-card: 1.125rem;
}
html { font-family: var(--font); font-size: 100%; }
body { font-family: var(--font); font-size: var(--type-body); line-height: 1.65; letter-spacing: -.012em; color: var(--ink); background: var(--surface-2); }
button, input, select, textarea, output { font-family: var(--font); letter-spacing: inherit; }
button, input, textarea { -webkit-text-size-adjust: 100%; }
b, strong, .strong { font-weight: 700; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.45; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: break-word; }
h4,h5 { margin-top: 0; }
.small { font-size: .875rem; line-height: 1.65; }
.tiny, small { font-size: var(--type-caption); line-height: 1.55; }
.muted { color: var(--muted); }
/* break-word (not anywhere): still guards against long unbroken tokens like URLs,
   but unlike anywhere it does not shrink a flex/grid item's minimum size down to
   a single character, which is what was splitting short Korean labels (badges,
   chips, tabs) into one-syllable lines inside tight flex rows. */
:where(p,span,strong,small,time,td,th) { word-break: normal; overflow-wrap: break-word; }
:where(button,a,input,select,textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.meta-date, .flow-time, .study-clock, .study-end, .study-duration, .mentor-price strong, .service-price-row strong, .stat-value, .price, .point-pill, .day-number, .focus-clock { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.meta-date { font-size: inherit; white-space: normal; font-weight: 400; }

/* Shell: quiet background, readable navigation and modest brand color. */
.topbar { background: rgba(255,255,255,.97); }
.page-title h1 { font-size: 1.25rem; letter-spacing: -.02em; }
.page-title small { font-size: .6875rem; font-weight: 600; letter-spacing: .085em; color: #68758a; }
.sidebar { background: linear-gradient(180deg,#fff 50%,#f7f8ff); }
.sidebar-head-copy strong { font-size: 1.25rem; font-weight: 700; }
.sidebar-head-copy span { font-size: .75rem; color: var(--muted); }
.brand-mark { background: var(--brand); color: #fff; }
.role-card { background: #f0f2fc; border: 1px solid #e2e5f4; }
.role-card strong { font-size: .875rem; }
.role-card span { font-size: .75rem; line-height: 1.55; }
.nav-caption { color: #68758a; font-weight: 600; font-size: .6875rem; letter-spacing: .08em; }
.app-shell > .sidebar .nav-item { font-weight: 600; font-size: .875rem; letter-spacing: -.01em; line-height: 1.55; }
.app-shell > .sidebar .nav-item.active { background: var(--brand-soft); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.nav-label { line-height: 1.55; }
.page-head { gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.page-head p { font-size: var(--type-body); line-height: 1.75; color: var(--muted); max-width: 52em; }
.page-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.page-head-actions { flex-shrink: 0; }
.page-stack { gap: 26px; }
.section-head { row-gap: 12px; flex-wrap: wrap; }
.section-head h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; }
.section-head p { font-size: .875rem; line-height: 1.65; }
.section-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.section-actions { align-items: center; flex-shrink: 0; }
.card { padding: 24px; border-color: var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.card-soft { background: #f6f7ff; border-color: #e0e4f4; }
.card-dark { background: #233650; color: #fff; }
.card-dark .muted { color: #d2dced; }
.card > h3 { font-size: 1.125rem; margin-top: 0; }
.card > p { line-height: 1.7; }
.grid { gap: 18px; }

/* Buttons, tags and file selectors share one box model. */
.btn { height: auto; min-height: 44px; padding: 11px 16px; font-weight: 600; font-size: .875rem; line-height: 1.45; border-radius: 12px; gap: 8px; letter-spacing: -.01em; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 8px rgba(77,83,181,.12); }
.btn-primary:hover { filter: brightness(.96); }
.btn-outline { border-color: #d9dfeb; background: #fff; color: #42526b; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-good { background: #e8f7f1; color: #176b52; }
.btn-danger { background: #fff0f3; color: #ac2f49; }
.btn-ghost { color: #52627b; }
.btn-sm { font-size: .8125rem; min-height: 40px; height: auto; padding: 9px 12px; }
.btn-lg { font-size: .9375rem; min-height: 50px; }
.btn.active { box-shadow: inset 0 0 0 1px currentColor; }
.button-row { gap: 10px; }
.icon-btn { min-width: 44px; min-height: 44px; }
.chip-row { gap: 7px; row-gap: 7px; align-items: center; }
.chip, .badge { font-size: .75rem; line-height: 1.5; height: auto; min-height: 28px; padding: 5px 10px; font-weight: 600; letter-spacing: 0; word-break: keep-all; overflow-wrap: normal; white-space: normal; max-width: 100%; flex-shrink: 0; }
.chip { background: #f1f3f8; color: #536079; border: 1px solid #e9ecf4; border-radius: 9px; }
.badge { background: #f1f3f8; color: #536079; }
.badge-brand { color: #454cbc; background: #eceeff; }
.badge-good,.badge-free { color: #176b52; background: #e6f5ee; }
.badge-warn { color: #805711; background: #fff3d6; }
.badge-danger { color: #a42f47; background: #fff0f3; }
.badge-dark { color: #fff; background: #303348; }
.badge-line { color: #42526b; background: #fff; border-color: #dfe5ee; }
.tabs { padding: 5px; gap: 5px; border: 1px solid #e2e6f0; background: #f2f4f9; border-radius: 14px; align-items: stretch; }
.tab,.tab-btn { font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.5; color: #56627a; background: transparent; border: 0; border-radius: 10px; min-height: 42px; height: auto; padding: 10px 14px; word-break: keep-all; overflow-wrap: normal; white-space: normal; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.tab.active,.tab-btn.active { color: var(--brand); background: #fff; box-shadow: 0 2px 6px rgba(32,45,70,.07); }
.field { min-width: 0; gap: 8px; }
.field > span,.field-label { font-size: .875rem; line-height: 1.55; font-weight: 600; color: #33445e; letter-spacing: -.005em; }
.field small,.input-help,.form-help { font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.input,.select,.textarea { font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; border: 1px solid #cfd7e5; border-radius: 12px; padding: 11px 13px; min-width: 0; max-width: 100%; min-height: 46px; color: #283750; background-color: #fff; }
.input::placeholder,.textarea::placeholder { color: #6a768a; }
.input:focus,.select:focus,.textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #edeffd; }
input[type="time"],input[type="date"] { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.file-input,input[type="file"] { box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-width: 0; height: auto; min-height: 48px; padding: 6px; border: 1px solid #cfd7e5; border-radius: 12px; background: #fff; font-family: var(--font); font-size: .8125rem; line-height: 2; color: #56647b; overflow: hidden; }
input[type="file"]::file-selector-button { margin: 0 10px 0 0; padding: 8px 11px; min-height: 34px; border: 0; border-radius: 8px; background: #edf0ff; color: #454caf; font: inherit; font-weight: 600; line-height: 1.5; cursor: pointer; }
.nx-msg-file input[type="file"] { display: none; }
.check-row { align-items: flex-start; gap: 10px; }
.check-row input[type="checkbox"],.midnight-check input { margin-top: 4px; accent-color: var(--brand); flex-shrink: 0; }
.check-row span { font-size: .875rem; line-height: 1.7; }
.notice { background: #f3f6fe; border: 1px solid #dde5f6; border-radius: 14px; padding: 16px 18px; }
.notice strong { font-size: .875rem; font-weight: 600; color: #334660; }
.notice p { font-size: .875rem; line-height: 1.75; color: #566780; margin-bottom: 0; }

/* One author component. The avatar must not inherit caption styles. */
.post-author { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; min-width: 0; }
.post-author > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.post-author > div > strong { font-family: var(--font); display: block; font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.5; letter-spacing: -.01em; }
.post-author > div > span,.post-author > div > time { display: block; font-size: var(--type-meta); font-weight: 400; color: var(--muted); line-height: 1.6; letter-spacing: 0; }
.avatar { width: 42px; height: 42px; border-radius: 14px; background: #eceefe; color: #4952b7; font-size: 1rem; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.avatar-lg { width: 54px; height: 54px; font-size: 1.25rem; border-radius: 17px; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.75rem; border-radius: 24px; }
.post-author > .avatar { color: #4952b7; font-weight: 700; }
.post-card,.question-post { border-color: #e0e4ef; }
.post-card h4,.question-post h4 { margin: 10px 0 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.55; letter-spacing: -.025em; }
.post-card p,.question-post > p { font-size: .9375rem; line-height: 1.85; color: #4c5c74; }
.post-card .chip-row { margin: 8px 0 12px; }
.post-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #edf0f6; flex-wrap: wrap; gap: 10px; }
.answer { background: #f6f8fc; border-color: #e3e8f0; padding: 16px; }
.answer p { font-size: .875rem; line-height: 1.8; color: #44546d; }
.answer .post-author { margin-bottom: 10px; }
.answer.selected { background: #eff9f5; border-color: #bfe2d4; }
.bounty { font-size: .875rem; font-weight: 700; color: #805711; }

/* Mentor discovery: clear author, metadata, price and highlighted promotion. */
.mentor-card { gap: 16px; background: #fff; color: var(--ink); }
.mentor-card.featured { background: linear-gradient(135deg,#fffaf0 0%,#fff 75%); border: 1px solid #ecdba9; color: var(--ink); }
.mentor-card.featured p,.mentor-card.featured .muted { color: #59677d; }
.mentor-card.featured .post-author > div > strong { color: #202d43; }
.mentor-card.featured .post-author > div > span { color: #59677d; }
.mentor-card.featured .badge { background: #f5efd9; color: #7b5919; }
.featured-ribbon { position: static; transform: none; align-self: flex-start; width: auto; padding: 5px 10px; margin: 0; border-radius: 7px; font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: #805711; background: #fff0c7; }
.mentor-card .post-author { margin-bottom: 0; }
.mentor-card .post-author > div > strong { font-size: .9375rem; font-weight: 700; }
.mentor-card h3 { font-size: 1.125rem; line-height: 1.5; margin: 0; font-weight: 700; color: #202d43; }
.mentor-card > p { font-size: .875rem; line-height: 1.7; margin: 0; min-height: 0; color: #59677d; }
.mentor-card .chip-row { margin-top: 0; }
.mentor-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: auto; }
.mentor-metrics > div { background: #f7f8fc; border: 1px solid #e8ecf4; border-radius: 12px; padding: 12px 6px; text-align: center; }
.mentor-metrics b { display: block; font-size: 1rem; font-weight: 700; color: #283952; line-height: 1.5; }
.mentor-metrics span { display: block; font-size: .75rem; line-height: 1.5; margin-top: 3px; color: #59677d; }
.mentor-price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 14px 16px; margin: 0; background: #f0f2ff; border: 1px solid #e4e7fa; border-radius: 13px; color: #202d43; }
.mentor-price > span { font-size: .8125rem; font-weight: 500; color: #566582; }
.mentor-price strong { font-size: 1.375rem; font-weight: 700; color: #343e98; line-height: 1.35; white-space: nowrap; }
.mentor-card > .btn { margin-top: 0; }
.mentor-profile-content .badge,.mentor-profile-content .chip { background: rgba(255,255,255,.95); color: #374867; border-color: transparent; }
.mentor-profile-content h2 { font-size: 1.75rem; }
.mentor-profile-content p { font-size: .9375rem; line-height: 1.7; }
.mentor-profile-content > div { min-width: 0; }
.service-kicker { font-size: .6875rem; font-weight: 600; letter-spacing: .07em; color: #58677e; }
.service-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.service-price-row b { font-size: .9375rem; font-weight: 600; }
.service-price-row strong { font-size: 1.25rem; color: #3946a8; font-weight: 700; }
.subscription-summary strong,.subscription-summary .price { font-weight: 700; }

/* Roadmap time cards: time, minutes and end always remain different fields. */
.roadmap-preview-sections { display: flex; flex-direction: column; gap: 24px; }
.roadmap-card h4 { font-size: 1.125rem; line-height: 1.5; }
.roadmap-card p { font-size: .875rem; line-height: 1.75; }
.roadmap-plan-preview { padding: 15px 16px; background: #f5f7fc; border-color: #e2e7f2; }
.roadmap-plan-preview strong { font-size: .875rem; font-weight: 600; }
.roadmap-preview-hero h2 { font-size: 1.625rem; line-height: 1.5; }
.roadmap-preview-hero p { font-size: .9375rem; line-height: 1.75; }
.roadmap-journey-hero { color: #fff; background: linear-gradient(115deg,#243775,#386a89); border: 0; }
.roadmap-journey-copy h2 { font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.5; letter-spacing: -.025em; }
.roadmap-journey-copy p { font-size: .9375rem; line-height: 1.75; color: #e0eafa; }
.roadmap-journey-copy .badge-line { background: #eaf0ff; color: #334675; border: 0; }
.roadmap-now-item { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.roadmap-now-item small { color: #d8e8fc; font-size: .6875rem; letter-spacing: .07em; }
.roadmap-now-item strong { color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.7; }
.roadmap-quote-panel { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.roadmap-quote-panel small { font-size: .75rem; color: #e2ecfc; }
.roadmap-quote-panel blockquote { font-size: 1rem; font-weight: 600; line-height: 1.85; letter-spacing: -.01em; }
.roadmap-quote-panel p { font-size: .8125rem; line-height: 1.7; color: #dfebfa; }
.study-guide-summary { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); margin: 16px 0 20px; gap: 10px; }
.study-guide-summary > div { padding: 14px 16px; background: #eff2ff; border: 1px solid #e0e5f6; border-radius: 14px; }
.study-guide-summary > div:nth-child(2) { background: #edf8f5; border-color: #d6ebe4; }
.study-guide-summary > div:nth-child(3) { background: #fff7e9; border-color: #eee3c9; }
.study-guide-summary small { display: block; font-size: .75rem; font-weight: 500; color: #55647b; line-height: 1.5; letter-spacing: 0; }
.study-guide-summary strong { font-size: 1.1875rem; font-weight: 700; color: #253b63; line-height: 1.5; margin-top: 6px; letter-spacing: -.01em; }
.study-subject-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 12px; }
.study-subject-card { padding: 18px; border-radius: 15px; background: #fff; }
.study-subject-card h5 { margin: 10px 0 8px; font-size: .9375rem; line-height: 1.65; }
.study-subject-card p { font-size: .875rem; line-height: 1.8; color: #53617a; }
.study-schedule-head { margin: 24px 0 12px; }
.study-schedule-head h4 { font-size: 1rem; margin: 0 0 5px; font-weight: 700; }
.study-schedule-head p { font-size: .8125rem; color: #60708a; margin: 0; }
.study-week-grid { gap: 12px; margin-top: 12px; }
.study-week-row { display: grid; grid-template-columns: 124px minmax(0,1fr); align-items: start; gap: 18px; padding: 16px; background: #fff; border: 1px solid #dce3f0; border-radius: 16px; }
.study-week-time { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 12px; border-radius: 12px; background: #f0f2ff; grid-column: auto; font-size: .8125rem; font-weight: 400; color: #4a5a77; }
.study-time-label { display: block; font-size: .75rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.study-clock { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.35; color: #36449c; white-space: nowrap; }
.study-duration { display: block; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: #36449c; white-space: nowrap; margin-top: 2px; }
.study-end { display: block; font-size: .75rem; font-weight: 400; line-height: 1.55; color: #596780; }
.study-week-main { grid-column: auto; grid-row: auto; min-width: 0; padding-top: 5px; }
.study-week-main strong { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.5; color: #263954; }
.study-week-main p { font-size: .875rem; line-height: 1.8; color: #4c5e77; margin: 8px 0 10px; word-break: keep-all; overflow-wrap: break-word; }
.study-week-main .study-week-days { display: inline-block; background: #edf7f4; color: #346956; border-radius: 6px; font-size: .75rem; font-weight: 500; line-height: 1.7; letter-spacing: 0; padding: 3px 8px; margin: 0; }
.study-week-row.invalid-time { border-color: #e7adb6; }
.study-week-row.invalid-time .study-week-time { background: #fff0f3; }
.milestone { grid-template-columns: 82px minmax(0,1fr); }
.milestone-label { font-size: .8125rem; min-height: 40px; height: auto; padding: 8px; line-height: 1.5; font-weight: 600; }
.milestone-body { padding: 18px; }
.milestone-body h5 { font-size: .9375rem; line-height: 1.6; }
.milestone-body p,.check-item { font-size: .875rem; line-height: 1.75; }
.roadmap-source-list a { font-size: .8125rem; min-height: 40px; height: auto; padding: 8px 12px; font-weight: 500; }

/* Planner, stat cards and list detail labels. */
.student-hero { background: linear-gradient(110deg,#e9eeff,#eef8f5); border: 1px solid #dee6f5; }
.student-hero h2 { font-weight: 700; letter-spacing: -.035em; }
.stat-card { border-top: 3px solid #8187db; }
.stat-card:nth-child(4n+2) { border-top-color: #56a68d; }
.stat-card:nth-child(4n+3) { border-top-color: #d9ad55; }
.stat-card:nth-child(4n+4) { border-top-color: #cc8aab; }
.stat-value { font-weight: 700; font-size: 1.875rem; line-height: 1.3; margin-top: 22px; margin-bottom: 8px; }
.stat-label { color: #52647a; font-size: .8125rem; font-weight: 500; }
.stat-note { color: #637189; font-size: .75rem; line-height: 1.6; }
.stat-orb { background: #eef0ff; color: #535cbc; }
.stat-card:nth-child(4n+2) .stat-orb { background: #eaf7f0; color: #27745b; }
.stat-card:nth-child(4n+3) .stat-orb { background: #fff4d8; color: #875e18; }
.stat-card:nth-child(4n+4) .stat-orb { background: #faedf3; color: #9c557b; }
.attendance-card { border-color: #ebdfbe; background: #fffdf6; }
.reward-rule > div { border-color: #ece2cc; }
.reward-rule b { font-weight: 700; font-size: 1.0625rem; }
.reward-rule span { font-size: .75rem; }
.list-main strong { font-size: .9375rem; line-height: 1.6; font-weight: 600; }
.list-main p,.list-main small { font-size: .8125rem; color: var(--muted); line-height: 1.65; }
.list-row { gap: 12px; }
.list-row > b { font-size: .875rem; font-weight: 700; }
.resource-card h4 { font-size: 1.0625rem; }
.resource-card p { font-size: .875rem; line-height: 1.75; }
.source-line { font-size: .8125rem; line-height: 1.6; flex-wrap: wrap; }
.resource-meta { font-size: .8125rem; flex-wrap: wrap; }
.flow-time { height: auto; min-height: 40px; padding: 8px 6px; font-size: .875rem; font-weight: 600; line-height: 1.5; background: #eff2fc; }
.flow-title strong { font-size: .9375rem; line-height: 1.6; font-weight: 600; }
.flow-title span { font-size: .8125rem; line-height: 1.65; }
.flow-actions .btn { min-height: 40px; height: auto; }
.calendar-title { font-size: 1.375rem; font-weight: 700; }
.calendar-weekdays span { font-size: .8125rem; font-weight: 500; color: #60718b; }
.calendar-weekdays span:first-child { color: #b6465c; }
.calendar-weekdays span:last-child { color: #466bb5; }
.day-number { font-size: .8125rem; font-weight: 600; }
.day-event { font-size: .75rem; line-height: 1.5; background: #edf0fc; color: #4c58a3; }
.mini-week span { font-size: .75rem; color: #63728a; }
.mini-day { font-size: .75rem; line-height: 1.5; }
.plan-toggle .plan-edit-name { font-size: .9375rem; font-weight: 600; line-height: 1.6; }
.plan-editor-summary h4 { font-size: 1.125rem; font-weight: 700; }
.plan-editor-summary p,.plan-editor-section-head p { font-size: .875rem; line-height: 1.7; }
.plan-editor-item { padding: 18px; border: 1px solid #dce3f0; border-radius: 16px; background: #f9faff; }
.plan-editor-item-head strong { font-size: .9375rem; font-weight: 600; }
.plan-editor-item-head span { font-size: .8125rem; line-height: 1.65; color: #586880; }
.plan-duration-preview { display: block; margin-top: 14px; padding: 9px 12px; background: #eaf5ef; color: #276c51; border-radius: 8px; font-size: .8125rem; font-weight: 600; }
.plan-duration-preview.invalid { color: #a72d47; background: #fff0f2; }
.field > .midnight-check,.midnight-check { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; color: #60708a; font-size: .75rem; font-weight: 400; }
.habit-type-card h4 { font-size: 1.0625rem; }
.habit-type-card p { font-size: .875rem; line-height: 1.7; }
.habit-copy p { font-size: .9375rem; line-height: 1.7; }
.question-card strong { font-size: .9375rem; }
.scale span { font-size: .875rem; font-weight: 500; min-height: 44px; height: auto; padding: 8px; }
.scale-labels { font-size: .75rem; line-height: 1.5; }
.progress-meta { font-size: .8125rem; }
.table th { font-size: .8125rem; font-weight: 600; color: #506078; background: #f4f6fb; letter-spacing: 0; }
.table td { font-size: .875rem; line-height: 1.6; }
.promo-package .price { font-weight: 700; }
.promo-package > strong { font-size: 1.125rem; font-weight: 600; }

/* Modals and messages use the same font instead of invalid font shorthands. */
.modal-backdrop { z-index: 1800; }
.modal-head h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.5; }
.modal-head,.modal-foot { background: #fff; flex-shrink: 0; }
.modal-foot { gap: 10px; }
.modal-body { background: #fff; }
.modal-close { flex-shrink: 0; min-height: 44px; min-width: 44px; }
.toast-root { z-index: 2600; }
.toast { font-size: .875rem; line-height: 1.65; min-width: 0; }
.nx-msg-head p,.nx-msg-top span,.nx-msg-partner small { font-size: .8125rem; color: #5e6e85; }
.nx-msg-partner b { font-size: .875rem; font-weight: 600; line-height: 1.5; }
.nx-msg-bubble p { font-size: .9375rem; line-height: 1.75; }
.nx-msg-bubble time { font-size: .75rem; opacity: 1; color: #59677d; }
.nx-msg-bubble.is-mine time { color: #fff; opacity: .95; }
.nx-msg-compose textarea { font: inherit; font-size: 1rem; }
.nx-msg-top strong { font-weight: 600; }
.focus-clock { letter-spacing: -.03em; font-weight: 400; }
.focus-plan,.focus-note { color: #c9d1e2; font-size: .875rem; }
.focus-task { font-size: 1.25rem; }
.focus-badge { font-size: .8125rem; }
.focus-now { color: #c9d1e2; letter-spacing: .01em; }

@media(max-width: 1024px) {
  .mentor-profile-content h2 { font-size: 1.5rem; }
  .roadmap-journey-content { gap: 20px; }
}
@media(max-width: 767px) {
  body { font-size: .9375rem; }
  .content { padding: 22px 16px 122px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .page-title h1 { font-size: 1.0625rem; font-weight: 600; }
  .page-stack { gap: 22px; }
  .page-head h2 { font-size: 1.5rem; }
  .page-head p { font-size: .875rem; line-height: 1.75; }
  .card { padding: 20px; border-radius: 18px; }
  .section-head { flex-wrap: wrap; }
  .section-actions { justify-content: flex-start; }
  .section-head h3 { font-size: 1.0625rem; }
  .section-head p { font-size: .8125rem; }
  .btn-sm { min-height: 44px; font-size: .8125rem; }
  .btn { word-break: keep-all; }
  .page-head-actions .btn { width: auto; }
  .post-author > div > strong { font-size: .875rem; }
  .post-author > div > span,.post-author > div > time { font-size: .75rem; line-height: 1.7; }
  .post-card h4,.question-post h4 { font-size: 1.0625rem; line-height: 1.65; }
  .post-card p,.question-post > p { font-size: .875rem; line-height: 1.85; }
  .mentor-card { gap: 15px; }
  .mentor-card h3 { font-size: 1.0625rem; }
  .mentor-card .post-author > div > strong { font-size: .9375rem; }
  .mentor-card .post-author > div > span { font-size: .8125rem; }
  .mentor-price { padding: 12px 14px; }
  .mentor-price strong { font-size: 1.25rem; }
  .mentor-metrics b { font-size: .9375rem; }
  .mentor-profile-content { gap: 14px; }
  .mentor-profile-hero { padding: 22px 18px; }
  .mentor-service-card { padding: 18px; }
  .roadmap-journey-content { padding: 24px 20px; min-height: 0; }
  .roadmap-journey-copy h2 { font-size: 1.4375rem; }
  .roadmap-journey-copy p { font-size: .875rem; }
  .roadmap-quote-panel { padding: 18px; }
  .roadmap-now-item { padding: 13px 14px; }
  .roadmap-now-item strong { font-size: .8125rem; }
  .roadmap-preview-hero { padding: 20px 16px; }
  .roadmap-preview-hero h2 { font-size: 1.375rem; }
  .roadmap-preview-hero p { font-size: .875rem; }
  .study-guide-summary { grid-template-columns: 1fr; }
  .study-guide-summary > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; }
  .study-guide-summary strong { margin: 0; font-size: 1.0625rem; }
  .study-guide-summary small { font-size: .75rem; }
  .study-subject-card { padding: 16px; }
  .study-subject-card h5 { font-size: .9375rem; }
  .study-week-row { grid-template-columns: 104px minmax(0,1fr); gap: 12px; padding: 13px; }
  .study-week-time { padding: 10px; gap: 4px; grid-column: auto; }
  .study-clock { font-size: 1.25rem; }
  .study-week-main { grid-column: auto; grid-row: auto; }
  .study-week-main strong { font-size: .875rem; }
  .study-week-main p { font-size: .8125rem; line-height: 1.8; }
  .study-week-main .study-week-days { font-size: .75rem; }
  .milestone { grid-template-columns: 1fr; gap: 8px; }
  .milestone-label { justify-self: start; padding: 7px 12px; }
  .milestone-body { padding: 16px; }
  .roadmap-timeline { gap: 18px; }
  .calendar-main { padding: 18px 10px; }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-title { font-size: 1.125rem; }
  .calendar-day,.day-cell { min-height: 82px; padding: 6px 3px; }
  .day-event { display: block; font-size: .6875rem; padding: 2px; }
  .day-cell .day-number { font-size: .8125rem; }
  .mini-day { font-size: .8125rem; }
  .mini-week span { font-size: .75rem; }
  .flow-item { grid-template-columns: 60px minmax(0,1fr); padding: 14px 10px; gap: 10px; }
  .flow-time { font-size: .8125rem; padding: 7px 3px; min-height: 38px; }
  .flow-actions { grid-column: 1/-1; justify-content: flex-end; }
  .flow-actions .btn { flex: 1; min-height: 44px; font-size: .8125rem; padding: 9px 6px; }
  .flow-title span { font-size: .75rem; line-height: 1.75; }
  .grid-4 .stat-card { padding: 16px; }
  .stat-value { font-size: 1.5625rem; line-height: 1.4; }
  .stat-note { font-size: .75rem; }
  .student-hero { padding: 62px 20px 26px; }
  .student-hero h2 { font-size: 1.5rem; line-height: 1.55; }
  .reward-rule { gap: 7px; }
  .reward-rule > div { padding: 10px 6px; }
  .reward-rule b { font-size: .9375rem; }
  .reward-rule span { font-size: .75rem; }
  .plan-editor-item { padding: 16px; }
  .plan-editor-item-head { gap: 10px; flex-wrap: wrap; }
  .plan-editor-item-head span { font-size: .8125rem; }
  .plan-edit-hint { font-size: .8125rem; }
  .modal-body { padding: 20px 16px; }
  .modal-head { padding: 16px; }
  .modal-head h3 { font-size: 1.0625rem; }
  .modal-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .mobile-nav-item { font-family: var(--font); font-weight: 600; font-size: .75rem; letter-spacing: -.005em; min-height: 58px; line-height: 1.5; }
  .mobile-nav-item span { white-space: normal; text-overflow: clip; word-break: keep-all; overflow-wrap: break-word; }
  .mobile-nav-item.selected { background: #eff1ff; }
  .nx-msg-partner b { font-size: .75rem; white-space: normal; }
  .nx-msg-bubble p { font-size: .875rem; }
  .nx-msg-bubble time { font-size: .75rem; }
  .focus-clock { font-size: clamp(2.75rem,12vw,5rem); }
}
@media(max-width: 350px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  .study-week-row { grid-template-columns: 1fr; }
  .study-week-time { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 12px; padding: 10px 12px; }
  .study-clock { justify-self: end; }
  .study-duration { margin: 0; }
  .study-end { justify-self: end; }
  .study-week-main { padding: 0 2px; }
  .modal-foot { flex-wrap: wrap; }
  .grid-4 .stat-card { padding: 14px 12px; }
  .stat-value { font-size: 1.375rem; }
}
@media(prefers-reduced-motion: reduce) {
  .btn, .card, .nav-item { transition: none; }
}

/* Follow-up audit: remaining legacy 9-11px labels, selectors and verification rows. */
.calendar-toolbar .small { font-size: .8125rem; line-height: 1.7; }
.day-event { font-size: .75rem; }
.roadmap-now-item small { font-size: .75rem; font-weight: 600; }
.habit-mini b { font-size: .75rem; font-weight: 600; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 13px; height: auto; min-height: 44px; background: #fff; border: 1px solid #dae1ed; border-radius: 12px; font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: #56647b; }
.filter-chip span { margin: 0; min-width: 22px; height: auto; min-height: 22px; padding: 2px 6px; font-size: .75rem; line-height: 1.5; color: #596780; }
.filter-chip.active { background: #eff1ff; border-color: #cdd3ef; color: #414caf; }
.filter-chip.active span { background: #dfe4fc; color: #414caf; }
.verification-grid span { font-size: .8125rem; font-weight: 500; line-height: 1.6; }
.verification-grid .badge { font-size: .75rem; font-weight: 600; }
.location-consent-layout strong { font-size: .875rem; font-weight: 600; }
.metric-box b { font-size: 1.0625rem; font-weight: 700; }
.metric-box span,.status-line { font-size: .8125rem; color: #59677d; line-height: 1.6; }
.notification-row small { font-size: .8125rem; }
.resource-category-tag { font: inherit; font-size: .8125rem; line-height: 1.5; font-weight: 600; min-height: 40px; height: auto; padding: 9px 12px; color: #53627b; background: #f4f6fa; }
.resource-category-tag.active { color: #fff; background: var(--brand); }
.required-guide,.identity-privacy-note,.optional-verification-note,.identity-status p,.signup-section-title p,.form-error { font-size: .8125rem; line-height: 1.7; }
.signup-section-title strong,.identity-status strong { font-size: .9375rem; line-height: 1.6; font-weight: 600; }
.link-button { font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.5; min-height: 40px; }
.scale-row small { font-size: .75rem; line-height: 1.5; }
.habit-question legend { font-size: .9375rem; font-weight: 600; }
.habit-question legend span { font-size: .8125rem; }
.habit-question .scale-row label { min-width: 0; }
.checkout-balance>div { font-size: .875rem; line-height: 1.65; }
.checkout-price span,.checkout-policy { font-size: .875rem; line-height: 1.7; }
@media(min-width:768px) {
  .app-shell>.sidebar .sidebar-close,.topbar .menu-toggle { display: none; }
}
@media(max-width:767px) {
  .app-shell>.sidebar .sidebar-close { display: grid; }
  .habit-question .scale-row small { display: block; font-size: .75rem; word-break: keep-all; overflow-wrap: break-word; }
}
/* Read-only previews and checkout metadata must use the same caption scale. */
.checkout-mentor>div>span,.checkout-benefits span { font-size: .8125rem; color: #59677d; line-height: 1.6; }
.checkout-mentor>.avatar { font-size: 1rem; color: #4952b7; }
.checkout-benefits b,.checkout-balance b { font-weight: 600; font-size: .9375rem; }
.plan-edit-target .list-main strong { font-size: .875rem; font-weight: 600; line-height: 1.6; white-space: normal; overflow: visible; }
.plan-edit-target .list-main span { font-size: .75rem; line-height: 1.6; }
@media(max-width:767px) {
  .checkout-price { flex-wrap: wrap; }
  .checkout-price strong { font-size: 1.375rem; }
}

.field > label:not(.midnight-check) { font-size: .875rem; font-weight: 600; line-height: 1.6; color: #42536e; }
.midnight-check { align-items: center; gap: 8px; margin-top: 6px; margin-bottom: 6px; font-size: .75rem; line-height: 1.6; font-weight: 400; }

.mini-user > .avatar { display: grid; place-items: center; margin-top: 0; color: #4952b7; font-size: 1rem; line-height: 1; }
.mini-user > div > strong { font-size: .875rem; font-weight: 600; line-height: 1.55; }
.mini-user > div > span { font-size: .75rem; line-height: 1.65; color: var(--muted); }
