/* ============================================================
   Sou Teacher Carlos — Mauro's Two-Week English Review
   Design tokens follow the official brand manual:
   Azul Índigo #092d5a / Verde-boêmia #b1d6c0 / Luscious Lemon #fff56e
   Typography: Inter only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&display=swap');

:root {
  --navy: #092d5a;
  --navy-light: #0f3d78;
  --navy-lighter: #164a8f;
  --green: #b1d6c0;
  --green-deep: #7fb494;
  --yellow: #fff56e;
  --yellow-deep: #e8dc3f;
  --white: #ffffff;
  --bg: #f3f6f9;
  --bg-card: #ffffff;
  --gray-100: #eef1f5;
  --gray-200: #dde3ea;
  --gray-400: #97a3b3;
  --gray-600: #5a6a7e;
  --text: #0c1e33;
  --text-soft: #45566c;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --success: #1f8a55;
  --success-bg: #e7f7ee;
  --info: #1d5fa8;
  --info-bg: #e8f1fc;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(9,45,90,0.08), 0 1px 2px rgba(9,45,90,0.06);
  --shadow-md: 0 8px 24px rgba(9,45,90,0.10), 0 2px 6px rgba(9,45,90,0.06);
  --shadow-lg: 0 18px 40px rgba(9,45,90,0.16);
  --sidebar-w: 272px;
  --content-max: 980px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--navy-light); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy);
  padding: .6em 1em; z-index: 999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Focus states everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy-light);
  outline-offset: 2px;
}

/* ============ LAYOUT ============ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, #071f40 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
.sidebar-brand {
  padding: 22px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-brand img { height: 40px; width: auto; }
.sidebar-student {
  padding: 14px 20px;
  font-size: .82rem;
  color: var(--green);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sidebar-student strong { display: block; color: var(--white); font-size: .98rem; margin-bottom: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-size: .92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 3px;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav-item .nav-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; flex-shrink: 0; color: rgba(255,255,255,0.85);
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active { background: var(--yellow); color: var(--navy); }
.nav-item.active .nav-num { background: var(--navy); color: var(--yellow); }
.nav-item .nav-check { margin-left: auto; font-size: .85rem; color: var(--green); }
.nav-item.active .nav-check { color: var(--navy); }

.sidebar-foot {
  padding: 14px 20px 20px;
  font-size: .74rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-topbar {
  display: none;
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--white);
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
}
.mobile-topbar img { height: 30px; }
.hamburger {
  background: rgba(255,255,255,0.12);
  border: none; color: var(--white);
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 1.3rem; cursor: pointer;
}

.main-col { flex: 1; min-width: 0; }
.main-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 28px 90px;
}

/* ============ CARDS / GENERIC ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-100);
}
.card-flat { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--gray-200); padding: 20px; }

.section-title { display:flex; align-items:center; gap:10px; margin-bottom: 4px; }
.section-title .emoji { font-size: 1.4rem; }
.section-sub { color: var(--text-soft); font-size: .96rem; margin-bottom: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.pill-not-started { background: var(--gray-100); color: var(--gray-600); }
.pill-in-progress { background: var(--info-bg); color: var(--info); }
.pill-completed { background: var(--success-bg); color: var(--success); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-accent { background: var(--yellow); color: var(--navy); }
.btn-accent:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--text); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm { padding: 8px 14px; font-size: .82rem; min-height: 36px; }
.btn-danger-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Progress bar */
.progressbar { height: 10px; background: var(--gray-100); border-radius: var(--radius-pill); overflow: hidden; }
.progressbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy) 0%, var(--navy-lighter) 100%); border-radius: var(--radius-pill); transition: width .4s ease; }
.progressbar.accent > span { background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.progress-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.progress-row .progressbar { flex: 1; }
.progress-label { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-soft); margin-bottom: 6px; font-weight: 600; }

/* Completion ring */
.ring-wrap { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--gray-100); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: var(--navy); }

/* Dashboard grid */
.dash-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-lighter) 100%);
  color: var(--white); border-radius: var(--radius-lg); padding: 30px 28px;
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: var(--yellow); opacity: .12; border-radius: 50%;
}
.dash-hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.dash-hero .sub { color: var(--green); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.dash-hero .welcome-msg { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); padding: 14px 18px; font-size: 1rem; max-width: 640px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.stat-card .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-lbl { color: var(--text-soft); font-size: .82rem; font-weight: 600; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.module-tile {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; width: 100%;
  transition: transform .12s ease, box-shadow .12s ease;
}
.module-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-tile .mt-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.module-tile h4 { margin: 0; font-size: .98rem; }

/* Activity card */
.activity-card { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 18px; }
.activity-card .ac-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.activity-card h3 { font-size: 1.08rem; margin: 0; }
.activity-card .ac-instructions { color: var(--text-soft); font-size: .92rem; margin-bottom: 14px; }
.activity-done-banner {
  display:flex; align-items:center; justify-content:space-between; gap: 10px; flex-wrap: wrap;
  background: var(--success-bg); color: var(--success); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; margin-top: 14px;
}

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); padding-bottom: 0; }
.tab-btn {
  background: transparent; border: none; padding: 10px 16px; font-weight: 700; color: var(--text-soft);
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: .9rem; border-radius: 8px 8px 0 0;
}
.tab-btn:hover { background: var(--gray-100); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--yellow-deep); }

/* Module header */
.module-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.module-header .mh-icon {
  width: 54px; height: 54px; border-radius: 16px; background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; flex-shrink: 0;
}
.module-header .mh-text h2 { margin-bottom: 2px; color: var(--navy); }
.module-header .mh-text p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.module-header .mh-progress { margin-left: auto; min-width: 180px; }

/* Vocab callout */
.vocab-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.vocab-chip { background: var(--green); color: var(--navy); padding: 7px 14px; border-radius: var(--radius-pill); font-size: .86rem; font-weight: 700; }

/* Multiple choice */
.mc-question { font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.mc-options { display: grid; gap: 10px; }
.mc-option {
  text-align: left; padding: 13px 16px; border-radius: var(--radius-sm); border: 2px solid var(--gray-200);
  background: var(--white); cursor: pointer; font-size: .95rem; font-weight: 600; color: var(--text);
  min-height: 46px; transition: border-color .12s ease, background .12s ease;
}
.mc-option:hover:not(:disabled) { border-color: var(--navy-light); }
.mc-option.correct { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.mc-option.incorrect { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.mc-option:disabled { cursor: default; }
.feedback-box { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.feedback-correct { background: var(--success-bg); color: var(--success); }
.feedback-incorrect { background: var(--danger-bg); color: var(--danger); }
.feedback-hint { background: var(--info-bg); color: var(--info); font-weight: 500; }

/* Text inputs */
.field-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.text-input, textarea.text-input, select.text-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--gray-200);
  font-size: 1rem; font-family: inherit; background: var(--white); color: var(--text);
}
.text-input:focus { border-color: var(--navy-light); }
textarea.text-input { resize: vertical; min-height: 120px; line-height: 1.6; }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input-row .text-input { flex: 1; min-width: 160px; }

/* Word counter */
.word-counter { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--text-soft); }
.word-counter.ok { color: var(--success); }
.word-counter.low { color: var(--danger); }
.checklist { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { font-size: .88rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.checklist li.met { color: var(--success); font-weight: 700; }
.checklist li .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--gray-400); flex-shrink: 0; display:flex; align-items:center; justify-content:center; font-size: .7rem; }
.checklist li.met .box { background: var(--success); border-color: var(--success); color: var(--white); }

/* Flashcards */
.flashcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.flashcard { perspective: 1200px; height: 150px; cursor: pointer; }
.flashcard-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.flashcard-front { background: var(--navy); color: var(--white); font-size: 1.2rem; font-weight: 800; }
.flashcard-back { background: var(--green); color: var(--navy); transform: rotateY(180deg); font-weight: 700; font-size: 1.02rem; }
.flashcard-hint { font-size: .72rem; opacity: .7; margin-top: 8px; font-weight: 500; }
.flashcard-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Matching (tap-to-match, mobile friendly) */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .match-grid { grid-template-columns: 1fr; gap: 10px; } }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-item {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--gray-200); background: var(--white);
  cursor: pointer; font-weight: 600; font-size: .92rem; text-align: left; min-height: 44px;
}
.match-item.selected { border-color: var(--navy); background: var(--info-bg); }
.match-item.matched { border-color: var(--success); background: var(--success-bg); color: var(--success); cursor: default; }
.match-item.shake { animation: shake .35s; border-color: var(--danger); }
@keyframes shake { 25%{transform:translateX(-4px);} 75%{transform:translateX(4px);} }

/* Sentence builder (tap words in order + drag on desktop) */
.builder-target {
  min-height: 56px; border: 2px dashed var(--gray-400); border-radius: var(--radius-sm);
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 12px; align-items: center;
}
.builder-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.word-chip {
  background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .9rem; cursor: grab; border: none; min-height: 40px;
}
.word-chip.in-bank { background: var(--gray-200); color: var(--text); }
.word-chip:active { cursor: grabbing; }

/* Correction clinic */
.correction-item { border-left: 4px solid var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.correction-item .wrong-sentence { color: var(--danger); font-weight: 700; margin-bottom: 8px; }
.correction-model { border-left: 4px solid var(--success); background: var(--success-bg); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 10px; }
.correction-model .ok-sentence { color: var(--success); font-weight: 700; }
.correction-explain { color: var(--text-soft); font-size: .88rem; margin-top: 6px; }
.category-tag { display:inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: var(--navy); color: var(--white); padding: 3px 9px; border-radius: var(--radius-pill); margin-bottom: 8px; }

/* Speaking recorder */
.speaking-box { background: linear-gradient(135deg, var(--navy) 0%, #0d3468 100%); color: var(--white); border-radius: var(--radius-lg); padding: 22px; }
.speaking-box .field-label { color: var(--green); }
.rec-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5252; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.rec-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; }
audio { width: 100%; margin-top: 10px; }

/* Budget simulator */
.budget-total { display:flex; justify-content: space-between; align-items:center; background: var(--navy); color: var(--white); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; font-weight: 800; font-size: 1.1rem; }
.budget-total.over { background: var(--danger); }
.budget-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 12px; align-items: center; margin-bottom: 12px; }
@media (max-width: 560px) { .budget-row { grid-template-columns: 1fr; } }
.budget-row input[type=range] { width: 100%; accent-color: var(--navy); }
.budget-val { font-weight: 800; color: var(--navy); text-align: right; }

/* Slider self assessment */
.assess-row { margin-bottom: 18px; }
.assess-row .assess-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 700; }
.assess-row input[type=range] { width: 100%; accent-color: var(--navy); height: 30px; }
.star-val { color: var(--yellow-deep); font-weight: 800; background: var(--navy); padding: 2px 10px; border-radius: var(--radius-pill); font-size: .82rem; }

/* Ranking drag list */
.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-list li {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: grab;
}
.rank-list li .rank-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); display:flex; align-items:center; justify-content:center; font-size: .82rem; flex-shrink:0; }
.rank-move { display: flex; gap: 6px; margin-left: auto; }
.rank-move button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--gray-300); background: var(--gray-100); cursor: pointer; font-weight: 800; }

/* Mistake review */
.mistake-cat-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; margin-bottom: 20px; }
.mistake-cat-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mistake-cat-card .n { font-size: 1.5rem; font-weight: 800; color: var(--danger); }
.mistake-entry { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.mistake-entry.mastered { border-color: var(--success); background: var(--success-bg); }

/* Speech bubble accent */
.bubble-accent { position: absolute; width: 92px; opacity: .9; pointer-events: none; }

/* Toast */
#toast-region { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 700; box-shadow: var(--shadow-lg); font-size: .9rem; animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }

/* Results page */
.results-hero { text-align: center; padding: 30px 20px; }
.results-hero h1 { color: var(--navy); }
.big-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin: 22px 0; }
.big-metric { background: var(--white); border-radius: var(--radius-md); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.big-metric .val { font-size: 2rem; font-weight: 900; color: var(--navy); }
.big-metric .lbl { font-size: .8rem; color: var(--text-soft); font-weight: 700; }
.strength-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin-top: 16px;}
.strength-card { border-radius: var(--radius-md); padding: 18px; }
.strength-card.pos { background: var(--success-bg); border: 1px solid var(--success); }
.strength-card.focus { background: var(--yellow); border: 1px solid var(--yellow-deep); }

/* Job offer cards (final challenge) */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; margin-bottom: 18px; }
.offer-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.offer-card .oc-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); font-weight: 800; margin-bottom: 4px;}
.offer-card .oc-val { font-weight: 700; font-size: .95rem; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .main-content { padding: 20px 16px 80px; }
  .sidebar.mobile-open {
    display: flex; position: fixed; inset: 0 20% 0 0; height: 100vh; z-index: 60; box-shadow: var(--shadow-lg);
  }
  .sidebar-backdrop { display: none; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; }
}
@media (max-width: 480px) {
  .dash-hero h1 { font-size: 1.35rem; }
  .module-header .mh-progress { min-width: 100%; margin-left: 0; }
  :root { font-size: 15px; }
}
