/* ============================================================
   FLUENT.MVP  — styles.css
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark palette — steel navy + orange from logo */
  --bg:       #0f2238;
  --surface:  #163550;
  --surface2: #1d4264;
  --teal:     #5b9fd4;   /* globe blue */
  --amber:    #f5a523;   /* logo orange */
  --text:     #e8ecf7;
  --muted:    #7fa8cc;
  --border-d: rgba(127,168,204,.18);

  /* Light palette (course & unit content) */
  --c-bg:     #ffffff;
  --c-text:   #163550;
  --c-muted:  #4e6880;
  --c-border: #d8e4ee;

  /* Buttons */
  --btn:      #163550;
  --btn-h:    #1d4264;

  /* Shadows */
  --shadow:    0 0 20px rgba(0,0,0,.25);
  --shadow-lg: 0 0 20px rgba(0,0,0,.60);

  /* Geometry */
  --radius:    5px;
  --radius-sm: 3px;

}

html   { scroll-behavior: smooth; }
body   { font-family: Arial, sans-serif; font-size: 15px; background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }
body[data-page="course"],
body[data-page="unit"]   { background: var(--c-bg); }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img    { max-width: 100%; }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.40);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
  text-decoration: none;
}
.logo-icon {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}
.logo-title {
  height: 22px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}
.logo .dot { color: var(--amber); }

.header-right { display: flex; align-items: center; gap: 14px; }

.back-link {
  color: var(--muted);
  font-size: 14px;
  transition: color .18s;
}
.back-link:hover { color: #fff; }

/* ── Lang Switcher ──────────────────────────────────────────── */
.lang-select {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
}
.lang-select:hover { background: rgba(255,255,255,.16); }
.lang-select option { background: var(--surface); color: var(--text); }

/* ════════════════════════════════════════════════════════════
   LANDING PAGE  (dark theme throughout)
   ════════════════════════════════════════════════════════════ */

.hero {
  background: var(--surface);
  color: #fff;
  padding: 64px 24px 56px;
}
.hero-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-logo {
  width: 250px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.hero-content { flex: 1; }

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 18px;
  color: #fff;
}
.hero h1 em { font-style: normal; }

.hero-lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  background: var(--amber);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: background .18s;
}
.hero-cta:hover { background: #e09418; }

/* Sections */
.landing-section { padding: 64px 24px; }
.landing-section.dark { background: #091b2e; }
.section-inner { max-width: 780px; margin: 0 auto; }

.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  margin-bottom: 10px;
}

.section-inner h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.3;
}

.section-inner p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.section-inner p strong { color: var(--text); }

.problem-callout {
  background: rgba(245,165,35,.06);
  border-left: 2px solid var(--amber);
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text);
  line-height: 1.75;
}

/* Priority grid */
.priority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.priority-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border-d);
}
.priority-card .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.priority-card.critical { border-color: rgba(245,165,35,.35); border-top: 2px solid var(--amber); }
.priority-card.critical .label { color: var(--amber); }
.priority-card.optional .label { color: var(--muted); }
.priority-card ul { list-style: none; }
.priority-card ul li { font-size: 14px; color: var(--text); padding: 2px 0; }
.priority-card ul li::before { content: '— '; color: var(--muted); }
.priority-card.optional ul li { color: var(--muted); }

/* Courses section */
.courses-section { padding: 56px 24px 72px; background: var(--bg); }
.courses-inner { max-width: 960px; margin: 0 auto; }
.courses-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 24px;
  text-align: center;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.course-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  border-top: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background .18s;
}
.course-card:hover { background: var(--surface2); }

.c-flag   { font-size: 38px; margin-bottom: 8px; }
.c-name   { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.c-sub    { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.c-badges { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.badge-ready { background: rgba(52,211,153,.12); color: #34d399; }
.badge-soon  { background: rgba(127,168,204,.10); color: var(--muted); }
.badge-units { background: rgba(255,255,255,.07);  color: var(--muted); }

.btn-start {
  display: inline-block;
  padding: 8px 22px;
  background: var(--btn);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--surface2);
  transition: background .18s;
}
.btn-start:hover { background: var(--btn-h); }
.btn-start.disabled { background: rgba(255,255,255,.06); color: var(--muted); pointer-events: none; border-color: transparent; }

/* CTA strip */
.cta-strip {
  background: var(--surface);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.cta-strip h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.cta-strip p  { color: var(--muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.75; }
.cta-strip .hero-cta { display: inline-block; }

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  padding: 18px 24px;
  font-size: 13px;
  border-top: 1px solid var(--border-d);
}

/* ════════════════════════════════════════════════════════════
   COURSE PAGE  (white content area)
   ════════════════════════════════════════════════════════════ */

.course-top {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 28px 24px 22px;
}
.course-hero { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.course-flag { font-size: 48px; }
.course-info h1 { font-size: 26px; font-weight: 700; color: var(--c-text); }
.course-info p  { color: var(--c-muted); margin-top: 3px; }

.course-desc {
  max-width: 900px; margin: 16px auto 0;
  border-left: 2px solid var(--teal);
  padding: 12px 18px;
  font-size: 14px; color: var(--c-muted); line-height: 1.7;
}

.progress-section {
  background: var(--c-bg);
  max-width: 900px; margin: 0 auto; padding: 16px 24px 0;
}
.progress-label { font-size: 13px; color: var(--c-muted); display: flex; justify-content: space-between; margin-bottom: 6px; }
.progress-bar   { height: 4px; background: var(--c-border); border-radius: 2px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--amber); border-radius: 2px; transition: width .4s; }

.units-section {
  background: var(--c-bg);
  max-width: 900px; margin: 0 auto; padding: 24px 24px 48px;
}
.units-heading { font-size: 11px; color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 10px;
}
.unit-card {
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  display: block;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.unit-card:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(13,30,74,.18); }
.unit-num  { font-size: 10px; color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.unit-tde  { font-weight: 700; font-size: 14px; color: var(--c-text); margin-bottom: 2px; }
.unit-tru  { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.unit-char { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-sm); background: #eef4fa; color: var(--c-muted); display: inline-block; }
.unit-card.done .unit-num::after { content: ' ✓'; color: var(--teal); }

#toc-block { background: var(--c-bg); }

.coming-soon { background: var(--c-bg); text-align: center; padding: 80px 24px; }
.coming-soon .cs-icon { font-size: 48px; margin-bottom: 14px; }
.coming-soon h2 { font-size: 22px; font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.coming-soon p  { color: var(--c-muted); max-width: 360px; margin: 0 auto; }

/* ════════════════════════════════════════════════════════════
   UNIT PAGE  (white content area)
   ════════════════════════════════════════════════════════════ */

.unit-top {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.unit-title-bar {
  max-width: 860px; margin: 0 auto; padding: 20px 24px 0;
}
.unit-label {
  font-size: 13px; color: var(--c-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.unit-heading {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.unit-heading h1 { font-size: 22px; font-weight: 700; color: var(--c-text); }
.unit-heading .sub { font-size: 14px; color: var(--c-muted); }
.unit-gram-tag { font-size: 13px; color: var(--c-muted); padding: 8px 0 2px; line-height: 1.5; }

/* Tabs */
.tabs-bar {
  max-width: 860px; margin: 0 auto;
  display: flex; padding: 0 24px; overflow-x: auto;
  background: var(--c-bg);
}
.tab-btn {
  padding: 12px 16px;
  border: none; background: none;
  font-size: 14px; font-weight: 600;
  color: var(--c-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all .18s;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active { color: var(--c-text); border-bottom-color: var(--amber); }

/* Audio bar */
.audio-bar {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.audio-inner {
  max-width: 860px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.audio-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: var(--radius-sm); border: none;
  font-size: 13px; font-weight: 700; transition: background .18s;
}
.btn-play { background: var(--surface); color: #fff; }
.btn-play:hover { background: var(--surface2); }
.btn-play.playing { background: var(--teal); color: #fff; }
.btn-stop { background: transparent; color: var(--c-muted); border: 1px solid var(--c-border); }
.btn-stop:hover { border-color: var(--c-muted); color: var(--c-text); }
.btn-replay { background: transparent; color: var(--c-muted); border: 1px solid var(--c-border); font-size: 14px; }
.btn-replay:hover { border-color: var(--teal); color: var(--c-text); }

.speed-wrap { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.speed-wrap select {
  padding: 4px 8px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-size: 12px; background: var(--c-bg); color: var(--c-text);
}

.btn-qr {
  margin-left: auto;
  background: transparent; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: 13px; color: var(--c-muted);
  display: flex; align-items: center; gap: 6px;
  transition: all .18s;
}
.btn-qr:hover { border-color: var(--teal); color: var(--c-text); }

.unit-nav { display: flex; gap: 8px; }
.btn-nav {
  padding: 7px 14px; border: 1px solid var(--c-border);
  background: transparent; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--c-muted); transition: all .18s;
}
.btn-nav:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-nav:disabled { opacity: .30; pointer-events: none; }

/* Tab panes */
.tab-pane { display: none; max-width: 860px; margin: 0 auto; padding: 32px 24px; background: var(--c-bg); }
.tab-pane.active { display: block; }

/* Story text */
.unit-text { font-size: 15px; line-height: 1.75; color: var(--c-text); }
.unit-text p { margin-bottom: 1.1em; }
.unit-text hr { border: none; border-top: 1px solid var(--c-border); margin: 22px 0; }

/* Translation hints */
.tr { color: #6a90bb; font-size: .87em; }

/* Plain text (hide translations) */
.plain-view .tr { display: none; }
.plain-view { font-size: 15px; line-height: 1.75; }

/* Markdown (grammar + vocab) */
.md { font-size: 15px; line-height: 1.75; color: var(--c-text); }
.md h3 { font-size: 15px; font-weight: 700; color: var(--c-text); margin: 26px 0 10px; padding-bottom: 5px; border-bottom: 1px solid var(--c-border); text-transform: uppercase; letter-spacing: .5px; }
.md h3:first-child { margin-top: 0; }
.md h4 { font-size: 14px; font-weight: 700; color: var(--c-text); margin: 16px 0 6px; }
.md p  { margin-bottom: 10px; }
.md strong { font-weight: 700; color: var(--c-text); }
.md em { font-style: italic; color: var(--c-muted); }
.md blockquote {
  border-left: 2px solid var(--teal);
  padding: 8px 14px; margin: 12px 0;
  background: #f0f6fb;
}
.md blockquote p { margin: 0; }
.md code { background: #eef4fa; padding: 2px 5px; border-radius: var(--radius-sm); font-size: .9em; font-family: 'Courier New', monospace; color: var(--c-text); }
.md pre  { background: #f0f6fb; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 12px 0; }
.md pre code { background: none; padding: 0; }
.md ul, .md ol { padding-left: 20px; margin-bottom: 10px; }
.md li { margin-bottom: 3px; }
.md table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.md th { background: var(--surface); color: #fff; padding: 8px 12px; text-align: left; font-size: 13px; font-weight: 700; }
.md td { padding: 7px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; font-size: 14px; }
.md tr:nth-child(even) td { background: #f5f9fd; }
.md tr:hover td { background: #eef4fa; }

/* QR modal */
.qr-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 1000;
  align-items: center; justify-content: center;
}
.qr-overlay.open { display: flex; }
.qr-box {
  background: var(--c-bg); border-radius: var(--radius);
  padding: 28px 26px; text-align: center;
  max-width: 290px; width: 90%;
  box-shadow: var(--shadow-lg); position: relative;
  border: 1px solid var(--c-border);
}
.qr-box h3 { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.qr-box p  { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
#qr-canvas { display: block; margin: 0 auto; }
.qr-url    { font-size: 10px; color: var(--c-muted); margin-top: 8px; word-break: break-all; }
.qr-close  { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 20px; color: var(--c-muted); line-height: 1; }
.qr-close:hover { color: var(--c-text); }

/* Lang notice */
.lang-notice {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-d);
  padding: 10px 24px;
  font-size: 14px;
  color: var(--muted);
}
.lang-notice.show { display: flex; }
.lang-notice-btn {
  background: var(--btn); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 5px 14px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.lang-notice-btn:hover { background: var(--btn-h); }

/* Word tooltip */
.word-tooltip {
  display: none;
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 160px;
  max-width: 240px;
  z-index: 500;
  box-shadow: var(--shadow-lg);
}
.wt-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.wt-word { font-weight: 700; color: #fff; font-size: 15px; }
.wt-trans { color: var(--muted); font-size: 13px; margin-bottom: 10px; line-height: 1.4; }
.wt-speak { background: var(--amber); color: var(--bg); border: none; border-radius: var(--radius-sm); padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.wt-speak:hover { background: #e09418; }
.wt-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 0 0 6px; flex-shrink: 0; }
.wt-close:hover { color: #fff; }

/* Paragraph-level TTS navigation */
.para-play-btn {
  display: inline-block;
  background: none; border: none; padding: 0;
  color: var(--teal);
  font-size: 9px;
  opacity: 0;
  cursor: pointer;
  margin-right: 5px;
  vertical-align: baseline;
  transition: opacity .15s;
  line-height: inherit;
}
.unit-text p:hover .para-play-btn { opacity: 0.45; }
.unit-text p.tts-active .para-play-btn { opacity: 1; }
.unit-text p.tts-active {
  background: rgba(91,159,212,.08);
  border-radius: 3px;
  margin-left: -6px; padding-left: 6px;
}

/* Text panes — show cursor hint on hover */
#tab-text .unit-text, #tab-plain .unit-text { cursor: text; }

/* Server error banner */
.server-notice {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; color: #b91c1c;
  max-width: 860px; margin: 20px auto; display: none;
}
.server-notice code { background: #fee2e2; padding: 2px 5px; border-radius: var(--radius-sm); }
.server-notice.show { display: block; }

/* Print */
@media print {
  .site-header,.tabs-bar,.audio-bar,.unit-nav,
  .tab-pane:not(.tab-pane[data-tab="plain"]),.qr-overlay { display: none!important; }
  .tab-pane[data-tab="plain"] { display: block!important; }
  .qr-print { display: block!important; text-align: center; margin-top: 40px; }
  body { background: #fff; color: #000; }
}
.qr-print { display: none; }
.qr-print p { font-size: 11px; color: var(--c-muted); margin-top: 8px; }

/* Goal / who list */
.goal-list {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
}
.goal-list li {
  color: var(--muted);
  line-height: 1.75;
  padding: 3px 0;
}
.goal-list li::before { content: '— '; color: var(--amber); }
.goal-intro { margin-bottom: 0 !important; }
.goal-footer { font-style: italic; }

/* Pillar grid (3-column) */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.pillar-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-d);
  border-top: 2px solid var(--amber);
}
.pillar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.pillar-card p {
  font-size: 13px;
  margin-bottom: 8px;
}
.pillar-card ul {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}
.pillar-card ul li {
  font-size: 13px;
  color: var(--text);
  padding: 2px 0;
  line-height: 1.6;
}
.pillar-card ul li::before { content: '— '; color: var(--amber); }
.pillar-foot { color: var(--muted) !important; font-style: italic; margin-bottom: 0 !important; }

/* Step grid (2×2) */
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-d);
}
.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}
.step-card p { font-size: 14px; margin-bottom: 0 !important; }

/* Result section */
.result-inner { text-align: center; }
.result-inner h2 { margin-bottom: 14px; }
.result-tagline {
  margin-top: 24px !important;
  font-weight: 700;
  color: var(--text) !important;
  font-size: 15px;
}

/* Utilities */
.hidden  { display: none!important; }
.loading { text-align: center; padding: 60px; color: var(--c-muted); font-size: 15px; }

/* Responsive */
@media(max-width:640px){
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-logo  { width: 180px; }
  .hero h1 { font-size: 26px; }
  .section-inner h2 { font-size: 20px; }
  .cta-strip h2 { font-size: 20px; }
  .priority-grid { grid-template-columns: 1fr; }
  .pillar-grid   { grid-template-columns: 1fr; }
  .step-grid     { grid-template-columns: 1fr; }
  .tabs-bar { padding: 0 12px; }
  .tab-btn  { padding: 10px 12px; font-size: 13px; }
  .audio-inner { gap: 8px; }
  .btn-qr  { margin-left: 0; }
  .tab-pane { padding: 20px 14px; }
  .unit-text { font-size: 15px; }
}
