/* ── Homepage-specific styles (index.html) ── */

.home-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.5rem;
  max-width: none;
  visibility: hidden;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  max-width: 760px;
  padding-top: 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-fg);
  background: var(--blue-bg);
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #777;
  line-height: 1.7;
  text-align: right;
  flex: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 111, 237, 0.55);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f5f3;
  color: #1a1a1a;
}

.btn-secondary:hover {
  background: #eee;
}

/* ── Feature cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  width: 100%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: right;
  padding: 1.8rem;
  border-radius: 18px;
  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #ddd;
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f5f5f3;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Content showcase rows ── */
.showcase {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.showcase > * {
  flex: 1;
}

.showcase .media-placeholder {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

.showcase-text {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: right;
}

.showcase-text h2 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-text p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f4f2;
  border: 1px dashed #ccc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.95rem;
  text-align: center;
}

/* ── Bottom CTA banner ── */
.cta-banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.cta-banner p {
  color: #bbb;
  max-width: 440px;
  line-height: 1.7;
}

.cta-banner .btn-primary {
  margin-top: 0.4rem;
}

/* ── Personal dashboard (logged-in home) ── */
.dash-hero {
  padding-top: 0.6rem;
  width: 100%;
}

.dash-greeting {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-subtitle {
  font-size: 1rem;
  color: #888;
}

.dash-greeting-phase {
  font-size: 1rem;
  color: #888;
  margin-top: 0.15rem;
}

.dash-greeting-phase strong {
  color: #1a1a1a;
  font-weight: 700;
}

.dash-plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 620px;
}

.dash-level-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dash-level-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dash-level-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.dash-level-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.dash-progress-bar {
  height: 5px;
  background: #f0f0ee;
  border-radius: 3px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: #2F6FED;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.dash-level-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #aaa;
}

.dash-mastery-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2F6FED;
  text-decoration: none;
  margin-top: 0.2rem;
}
.dash-mastery-btn:hover { text-decoration: underline; }

.dash-block-heading {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.65rem;
  letter-spacing: 0;
}

.dash-section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.dash-plan-wrap {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.plan-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.plan-tab {
  padding: 0.4rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.plan-tab:hover { border-color: #aaa; color: #444; }

.plan-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.plan-panel { display: none; }
.plan-panel.active { display: block; }

.plan-placeholder {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
  border: 1px dashed #e8e8e6;
  border-radius: 8px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.plan-table thead th {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  padding: 0 1rem 0.7rem;
  border-bottom: 1.5px solid #1a1a1a;
  white-space: nowrap;
}

.plan-row td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0ee;
  vertical-align: middle;
}

.plan-row-locked td { color: #bbb; }

.plan-level-header td {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-bottom: none;
}
.plan-level-header.plan-level-active td { background: #f7f7f5; color: #1a1a1a; border-top: 2px solid #1a1a1a; }
.plan-level-header.plan-level-done   td { background: transparent; color: #999; border-top: 1px solid #e8e8e8; }
.plan-level-header.plan-level-locked td { background: transparent; color: #ccc; border-top: 1px solid #f0f0ee; }

.plan-cell-name {
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}

.plan-cell-techs { font-size: 0.92rem; color: #666; }
.plan-row-locked .plan-cell-techs { color: #ccc; }

.plan-badge {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan-badge-weak        { background: #1a1a1a; color: #fff; }
.plan-badge-needs_work  { background: #f0f0ee; color: #1a1a1a; border: 1px solid #ccc; }
.plan-badge-maintenance { background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; }
.plan-badge-locked      { background: #f5f5f5; color: #bbb; }
.plan-badge-pending     { background: transparent; color: #bbb; border: none; }
/* Phase 2 mastery labels */
.plan-badge-medium  { background: #f0f0ee; color: #1a1a1a; border: 1px solid #ccc; }
.plan-badge-strong  { background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; }
.plan-badge-mentor  { background: #2F6FED; color: #fff; border: none; }

.plan-suggestion {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #888;
}

.sim-weeks        { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.sim-week-row     { display: grid; grid-template-columns: 5rem 3rem 1fr; align-items: center; font-size: 0.9rem; }
.sim-week-lbl     { font-weight: 600; }
.sim-week-q       { color: #555; }
.sim-week-note    { color: #bbb; font-size: 0.82rem; }

.plan-cell-progress { min-width: 120px; }

.plan-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plan-bar {
  flex: 1;
  height: 4px;
  background: #ebebeb;
  border-radius: 2px;
  overflow: hidden;
}

.plan-bar-fill {
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.plan-meta {
  font-size: 0.85rem;
  color: #aaa;
  white-space: nowrap;
}

.plan-mastery-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2F6FED;
  text-decoration: none;
  margin-top: 0.2rem;
}
.plan-mastery-link:hover { text-decoration: underline; }
.plan-mastery-nudge { color: #e67e22; }

.plan-clock-link {
  display: inline-block;
  font-size: 1.4rem;
  text-decoration: none;
  color: #1a1a1a;
  margin-top: 0.2rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s, transform 0.15s;
}
.plan-clock-link:hover {
  opacity: 1;
  transform: scale(1.12);
}

.plan-explainer {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #aaa;
  text-align: right;
}

.plan-detail-wrap { margin-top: 0.5rem; }
.plan-detail-toggle {
  display: inline-block; cursor: pointer; font-size: 0.82rem; color: #aaa;
  padding: 0.2rem 0; user-select: none;
}
.plan-detail-toggle:hover { color: #555; }
.plan-detail-wrap[open] .plan-detail-toggle { color: #555; }

/* ── Phase 2 loop panel ─────────────────────────────────────────────────── */
.ph2-panel { margin: 0 0 1.5rem; }

.ph2-levels { display: flex; flex-direction: column; gap: 0.5rem; }

.ph2-level-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid #eee; border-radius: 10px; background: #fff;
}
.ph2-level-card.is-done { border-color: #c8ecd4; background: #f8fff9; }

.ph2-level-name {
  font-size: 0.88rem; font-weight: 600; color: #1a1a1a;
  min-width: 9rem; flex-shrink: 0;
}
.ph2-level-card.is-done .ph2-level-name { color: #5cb97e; }

.ph2-steps { display: flex; align-items: center; gap: 0.35rem; flex: 1; }

.ph2-step {
  font-size: 0.76rem; color: #ccc;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  border: 1px solid #eee;
}
.ph2-step.done { color: #bbb; background: #f5f5f5; border-color: transparent; text-decoration: line-through; }
.ph2-step.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; font-weight: 600; }

.ph2-sep { color: #ddd; font-size: 0.65rem; }

.ph2-cta {
  font-size: 0.82rem; font-weight: 600; color: #555;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.ph2-cta:hover { color: #1a1a1a; }
.ph2-cta-primary {
  background: #1a1a1a; color: #fff;
  padding: 0.28rem 0.75rem; border-radius: 6px;
}
.ph2-cta-primary:hover { background: #333; }

/* ── Verbal level cards ─────────────────────────────────────────────────── */
.ph2-level-card--verbal { flex-direction: column; align-items: stretch; gap: 0.6rem; }
.ph2-level-card.is-locked { opacity: 0.45; }

.ph2-vunit-rows { display: flex; flex-direction: column; gap: 0.3rem; }
.ph2-vunit-row { display: flex; align-items: center; gap: 0.6rem; }
.ph2-vunit-label { font-size: 0.78rem; color: #444; flex: 1; }
.ph2-vunit-range { font-size: 0.72rem; color: #aaa; white-space: nowrap; flex-shrink: 0; }

.ph2-vskills { display: flex; flex-direction: column; gap: 0.4rem; }
.ph2-vskill { display: flex; align-items: center; gap: 0.6rem; }
.ph2-vskill-label { font-size: 0.78rem; color: #555; min-width: 7.5rem; flex-shrink: 0; }
.ph2-vskill-bar { flex: 1; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.ph2-vskill-fill { height: 100%; background: #1a1a1a; border-radius: 2px; }
.ph2-vskill-meta { font-size: 0.72rem; color: #aaa; min-width: 2.8rem; text-align: left; direction: ltr; }
.ph2-vskill.ph2-vskill-done .ph2-vskill-label { color: #bbb; text-decoration: line-through; }
.ph2-vskill.ph2-vskill-done .ph2-vskill-fill { background: #c8ecd4; }

/* ── Phase 2 complete banner ────────────────────────────────────────────── */
.ph2-complete-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem; margin-bottom: 1.25rem;
  background: #f0faf4; border: 1px solid #b8e4c8; border-radius: 10px;
}
.ph2-complete-icon { font-size: 1.4rem; flex-shrink: 0; }
.ph2-complete-body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.ph2-complete-body strong { font-size: 0.92rem; font-weight: 700; color: #1a4d2e; }
.ph2-complete-body span  { font-size: 0.82rem; color: #4a7a5c; }
.ph2-complete-btn {
  flex-shrink: 0; font-size: 0.84rem; font-weight: 600;
  background: #1a4d2e; color: #fff;
  padding: 0.38rem 0.9rem; border-radius: 7px;
  text-decoration: none; white-space: nowrap;
}
.ph2-complete-btn:hover { background: #14391f; }

/* ── Phase 3 marathon panel ─────────────────────────────────────────────── */
.ph3-panel { margin: 0 0 1.5rem; }

.ph3-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.ph3-header-text { display: flex; flex-direction: column; }
.ph3-season-label { font-size: 0.82rem; color: #888; }

.ph3-countdown { text-align: center; }
.ph3-weeks-num {
  display: block; font-size: 2.4rem; font-weight: 700;
  color: #1a1a1a; line-height: 1;
}
.ph3-weeks-label { font-size: 0.75rem; color: #aaa; letter-spacing: 0.04em; }

.ph3-targets {
  display: flex; gap: 0.75rem; margin-bottom: 1rem;
}
.ph3-target {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0.65rem 0.5rem;
  border: 1px solid #eee; border-radius: 10px; background: #fafafa;
}
.ph3-target-num { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.1; }
.ph3-target-label { font-size: 0.72rem; color: #aaa; margin-top: 0.2rem; text-align: center; }

.ph3-diag-btn {
  display: block; text-align: center; text-decoration: none;
  font-size: 0.87rem; font-weight: 600; font-family: inherit;
  background: #1a4d2e; color: #fff;
  padding: 0.5rem 1rem; border-radius: 8px; margin-top: 0.25rem;
}
.ph3-diag-btn:hover { background: #14391f; }

/* Sprint panel inside status block */
.ph3-sb-panel { margin-bottom: 1rem; }
.ph3-sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.ph3-sb-countdown { display: flex; flex-direction: column; align-items: center; }
.ph3-sb-season { font-size: 0.82rem; color: #888; }
.ph3-sb-next { display: flex; flex-direction: column; gap: 0.45rem; }
.ph3-sb-next-row { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.83rem; }
.ph3-sb-next-cat { color: #aaa; min-width: 4.5rem; flex-shrink: 0; }
.ph3-sb-next-name { color: #333; }
.ph3-sb-next-link { color: #1a4d2e; text-decoration: none; font-weight: 500; }
.ph3-sb-next-link:hover { text-decoration: underline; }

/* ── Phase 3 work plan sections ─────────────────────────────────────────── */
.ph3-work-section { border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 0.65rem; }
.ph3-work-hdr { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; background: #fafafa; border-bottom: 1px solid #eee; }
.ph3-work-title { font-size: 0.92rem; font-weight: 700; color: #333; letter-spacing: 0.02em; }
.ph3-work-reset { font-size: 0.75rem; color: #bbb; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.ph3-work-counter { font-size: 0.75rem; color: #aaa; margin-inline-start: auto; padding-inline-start: 0.5rem; }
.ph3-cat-details { margin-bottom: 0.45rem; }
.ph3-cat-details:last-child { margin-bottom: 0; }
.tk-doc-pane { }
.tk-type-pane { }
.ph3-work-reset:hover { color: #555; }
.ph3-work-empty { font-size: 0.82rem; color: #ccc; padding: 0.75rem 1rem; margin: 0; }
.ph3-work-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 1rem; border-top: 1px solid #f4f4f4; }
.ph3-work-item-inner { flex: 1; min-width: 0; }
.ph3-work-item-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.ph3-work-item-name { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; flex: 1; min-width: 0; }
.ph3-work-item-link { font-size: 0.9rem; color: #1a1a1a; text-decoration: none; flex: 1; }
.ph3-work-item-link:hover { text-decoration: underline; }
.ph3-work-item-done .ph3-work-item-name,
.ph3-work-item-done .ph3-work-item-link { color: #ccc; text-decoration: line-through; }
.ph3-work-subject { font-size: 0.71rem; color: #aaa; background: #f5f5f5; border-radius: 4px; padding: 0.1rem 0.4rem; white-space: nowrap; flex-shrink: 0; }
.ph3-work-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.ph3-work-link { font-size: 0.79rem; color: #555; background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 5px; padding: 0.25rem 0.65rem; text-decoration: none; white-space: nowrap; }
.ph3-work-link:hover { background: #ebebeb; }
.ph3-report-btn { font-size: 0.79rem; color: #fff; background: #1a1a1a; border: none; border-radius: 5px; padding: 0.28rem 0.7rem; cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.ph3-report-btn:hover { background: #333; }

/* ── Phase 3 self-report modal ───────────────────────────────────────────── */
.ph3-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.ph3-modal { background: #fff; border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 400px; }
.ph3-modal-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 1.25rem; color: #1a1a1a; }
.ph3-modal-field { margin-bottom: 1rem; }
.ph3-modal-label { display: block; font-size: 0.8rem; color: #555; margin-bottom: 0.35rem; font-weight: 600; }
.ph3-modal-input { width: 5rem; font-size: 0.9rem; font-family: inherit; padding: 0.4rem 0.6rem; border: 1px solid #ddd; border-radius: 6px; }
.ph3-modal-textarea { width: 100%; font-size: 0.88rem; font-family: inherit; padding: 0.4rem 0.6rem; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; min-height: 70px; resize: vertical; }
.ph3-modal-radios { display: flex; gap: 1.2rem; }
.ph3-modal-radio { display: flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; color: #333; cursor: pointer; }
.ph3-modal-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.ph3-modal-save { flex: 1; background: #1a1a1a; color: #fff; border: none; border-radius: 7px; padding: 0.65rem; font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer; }
.ph3-modal-save:hover { background: #333; }
.ph3-modal-cancel { background: #f5f5f5; color: #555; border: 1px solid #e0e0e0; border-radius: 7px; padding: 0.65rem 1.1rem; font-size: 0.9rem; font-family: inherit; cursor: pointer; }
.ph3-modal-cancel:hover { background: #ebebeb; }

.ph3-all-done-banner {
  background: #f0faf3;
  border: 1px solid #b2dfdb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
  text-align: center;
}

.plan-phase-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 0.3rem;
}

.plan-mastery-pending {
  display: block;
  font-size: 1.05rem;
  color: #aaa;
  margin-top: 0.2rem;
}

.dash-chart-wrap {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
}

.dash-chart-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-chart-tab {
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: none;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-chart-tab:hover { border-color: #aaa; color: #444; }

.dash-chart-tab-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.dash-chart-pane-hidden { display: none; }

.dash-chart-panel {
  width: 100%;
  box-sizing: border-box;
}

.dash-chart-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #f0f0ee;
  margin-bottom: 0.75rem;
}

.dash-chart-empty {
  font-size: 1.05rem;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

/* Sub-tabs (לפי טכניקה / לפי נושא) */
.dash-subtabs {
  display: flex; gap: 0; margin-bottom: 1rem;
  border-bottom: 1.5px solid #e8e8e8; padding-bottom: 0;
}
.dash-subtab {
  font-size: 0.88rem; font-weight: 400; font-family: inherit; cursor: pointer;
  padding: 0.38rem 1.2rem 0.42rem; border-radius: 0;
  border: none; border-bottom: 2.5px solid transparent;
  background: none; color: #999;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1.5px;
}
.dash-subtab:hover { color: #444; }
.dash-subtab-active { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 600; }
.dash-subpane-hidden { display: none; }

/* Topic bar chart */
.tbc-vert {
  display: flex; flex-direction: row; align-items: flex-end;
  gap: 0.75rem; padding: 0.5rem 0.25rem 0; overflow-x: auto;
  min-height: 280px;
}
.tbc-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 5rem; max-width: 8rem;
}
.tbc-val {
  font-size: 0.9rem; font-weight: 700; color: #333;
  margin-bottom: 0.35rem;
}
.tbc-col-bar-wrap {
  width: 100%; height: 200px; background: #f0f0f0; border-radius: 6px 6px 0 0;
  display: flex; align-items: flex-end; overflow: hidden;
}
.tbc-col-bar { width: 100%; border-radius: 6px 6px 0 0; transition: height 0.4s ease; }
.tbc-col-label {
  font-size: 0.8rem; color: #555; text-align: center; margin-top: 0.45rem;
  line-height: 1.3; word-break: break-word; max-width: 100%;
}
.tbc-n { font-size: 0.72rem; color: #bbb; margin-top: 0.2rem; }

.dash-chart-cta {
  margin-top: 0.75rem;
}

.dash-chart-cta-link {
  font-size: 0.85rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}

.dash-chart-cta-link:hover {
  border-bottom-color: #1a1a1a;
}

.progress-chart {
  width: 100%;
  max-width: 900px;
  display: block;
}

/* ── Slow / hard question bank ── */
.dash-slow-wrap {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0.75rem 0;
}

.dash-slow-sub {
  font-size: 0.88rem;
  color: #aaa;
  margin-bottom: 1rem;
}

/* ── יד שנייה: stats + groups ─────────────────────────── */
.slow-stats-block {
  margin-bottom: 1.2rem;
}
.slow-stats-totals {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.slow-stat-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}
.slow-chip-wrong { background: #f5e6e6; color: #8B1A1A; }
.slow-chip-slow  { background: #f0f0ee; color: #666; }

.slow-stats-by-topic { display: flex; flex-direction: column; gap: 0.25rem; }
.slow-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.83rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid #f4f4f2;
}
.slow-stat-topic { color: #444; }
.slow-stat-counts { color: #888; font-size: 0.79rem; }

.slow-groups { display: flex; flex-direction: column; gap: 0; }
.slow-group { border-top: 1px solid #f0f0ee; }
.slow-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.slow-group-head::-webkit-details-marker { display: none; }
.slow-group-count {
  background: #f0f0ee;
  color: #666;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
}
.slow-group-body { padding-bottom: 0.5rem; }

.slow-pane-hidden { display: none; }

.slow-bank-empty {
  font-size: 0.88rem;
  color: #bbb;
  padding: 1rem 0;
}

.slow-item {
  border-bottom: 1px solid #f0f0ee;
  padding: 0.9rem 0;
}
.slow-item:first-child { border-top: 1px solid #f0f0ee; }

.slow-item-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.slow-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.slow-badge-wrong { background: #f5e6e6; color: #8B1A1A; }
.slow-badge-slow  { background: #f0f0ee; color: #888; }

.slow-item-time {
  font-size: 0.75rem;
  color: #bbb;
  font-variant-numeric: tabular-nums;
}

.slow-item-q {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #333;
  font-family: 'David Libre', serif;
  direction: rtl;
}

.dash-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

/* ── Embedded checklist (plan-panel-checklist) ────────────────────────────── */

.cl-progress-mini { margin-bottom: 1.25rem; }
.cl-progress-text { font-size: 0.83rem; color: #888; margin-bottom: 0.4rem; }
.cl-progress-track { height: 3px; background: #eee; border-radius: 2px; overflow: hidden; }
.cl-progress-fill  { height: 100%; background: #1a1a1a; border-radius: 2px; transition: width 0.3s ease; }

/* Accordion (quant panels) */
.cl-accordion { border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 0.75rem; }
.cl-accordion-item { border-bottom: 1px solid #f0f0f0; }
.cl-accordion-item:last-child { border-bottom: none; }
.cl-accordion-item summary { list-style: none; }
.cl-accordion-item summary::-webkit-details-marker { display: none; }
.cl-accordion-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}
.cl-accordion-head::after {
  content: '›';
  font-size: 1rem;
  color: #bbb;
  transition: transform 0.18s;
  flex-shrink: 0;
}
.cl-accordion-item[open] > .cl-accordion-head::after { transform: rotate(90deg); }
.cl-acc-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #bbb; flex: 1;
}
.cl-acc-badge {
  font-size: 0.72rem; color: #999; font-weight: 500;
}
.cl-accordion-body { }

.cl-section { border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 0.75rem; }

.cl-section-rows {
  max-height: calc(5 * 2.4rem);
  overflow-y: auto;
}
.cl-section-rows::-webkit-scrollbar { width: 4px; }
.cl-section-rows::-webkit-scrollbar-track { background: transparent; }
.cl-section-rows::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.cl-section-head {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #bbb;
  padding: 0.55rem 1rem 0.45rem;
  border-bottom: 1px solid #f0f0f0; background: #fafafa;
}
/* ── English units (Phase 1) ─────────────────────────────────────────────── */
.cl-unit-item { border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 0.6rem; }
.cl-unit-item summary { list-style: none; }
.cl-unit-item summary::-webkit-details-marker { display: none; }
.cl-unit-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1rem; background: #fafafa;
  cursor: pointer; user-select: none; gap: 0.5rem;
}
.cl-unit-head::after { content: '›'; font-size: 1rem; color: #bbb; transition: transform 0.18s; flex-shrink: 0; }
.cl-unit-item[open] > .cl-unit-head::after { transform: rotate(90deg); }
.cl-unit-label { font-size: 0.85rem; font-weight: 600; color: #444; flex: 1; }
.cl-unit-check { font-size: 0.82rem; color: #aaa; font-weight: 600; }
.cl-unit-item-done .cl-unit-label { color: #bbb; }
.cl-unit-item-locked { opacity: 0.45; }
.cl-unit-item-locked .cl-unit-head { cursor: default; }
.cl-unit-item-locked .cl-unit-head::after { display: none; }
.cl-unit-instruction { font-size: 0.82rem; color: #888; line-height: 1.6; padding: 0.75rem 1rem 0.5rem; margin: 0; border-bottom: 1px solid #f4f4f4; }
.cl-unit-links { display: flex; justify-content: flex-end; padding: 0.5rem 1rem; gap: 0.5rem; }
.cl-unit-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border-bottom: 1px solid #ebebeb; }
.cl-unit-row:last-child { border-bottom: none; }
.cl-unit-row-inner { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.cl-unit-row-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: nowrap; }
.cl-unit-row-top .tp-name-b { flex: 1; min-width: 0; }
.cl-unit-progress { font-size: 0.78rem; color: #bbb; margin: 0; padding-inline-start: 1.6rem; padding-inline-end: 1.7rem; }
.cl-unit-range { font-size: 0.78rem; color: #bbb; margin: 0; text-align: right; padding-inline-start: 1.6rem; }
.cl-unit-name-sub { font-size: 0.8rem; color: #999; font-weight: 400; margin: 0; padding-inline-start: 1.6rem; }
.cl-unit-sub { font-size: 0.8rem; color: #aaa; line-height: 1.55; margin: 0; padding-inline-start: 1.6rem; }
.cl-unit-extra-row { border-top: 1px solid #f4f4f4; }
.cl-unit-row:not(.cl-unit-extra-row) .tp-check:disabled,
.tp-row .tp-check:disabled { opacity: 1; cursor: default; }
.cl-unit-nocheck { width: 1rem; flex-shrink: 0; }
.cl-all-topics-label { font-size: 0.78rem; color: #bbb; margin: 2.5rem 0 0.6rem; text-align: right; padding-top: 1.5rem; border-top: 1px solid #f0f0f0; }

.cl-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid #f4f4f4;
  cursor: pointer; user-select: none; transition: background 0.1s;
}
.cl-item:last-child { border-bottom: none; }
.cl-item:hover { background: #fafafa; }
.cl-check {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 1.5px solid #ccc; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: transparent; transition: all 0.15s;
}
.cl-item.is-done .cl-check { border-color: #1a1a1a; background: #1a1a1a; color: #fff; }
.cl-label { flex: 1; font-size: 0.9rem; color: #333; line-height: 1.5; }
.cl-item.is-done .cl-label { color: #bbb; text-decoration: line-through; }

.cl-advance-btn {
  width: 100%; margin-top: 1.25rem; padding: 0.8rem;
  font-size: 0.95rem; font-weight: 600; font-family: inherit;
  background: #1a1a1a; color: #fff; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.cl-advance-btn:not(:disabled):hover { background: #333; }
.cl-advance-btn:disabled { background: #ccc; cursor: not-allowed; }
.cl-advance-note { font-size: 0.8rem; color: #bbb; text-align: center; margin-top: 0.5rem; }

/* ── Tirgul quota rows inside checklist ─────────────────────────────────── */
.cl-tirgul-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid #f0f0ee;
  font-size: 0.85rem;
  color: #555;
}
.cl-tirgul-row:last-child { border-bottom: none; }
.cl-tirgul-name { flex: 0 0 6rem; font-size: 0.82rem; }
.cl-tirgul-bar { flex: 1; height: 6px; background: #eee; border-radius: 999px; overflow: hidden; }
.cl-tirgul-fill { height: 100%; background: #999; border-radius: 999px; transition: width 0.3s; }
.cl-tirgul-count { flex: 0 0 3rem; text-align: left; font-size: 0.78rem; color: #aaa; }
.cl-tirgul-row.met .cl-tirgul-fill { background: #4caf50; }
.cl-tirgul-row.met .cl-tirgul-name { color: #2e7d32; }
.cl-tirgul-row.met .cl-tirgul-count { color: #2e7d32; }

/* ── Checklist phase header ──────────────────────────────────────────────── */
.cl-phase-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0ee;
}
.cl-phase-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  flex: 1;
}
.cl-demo-note {
  font-size: 0.68rem;
  font-weight: 400;
  color: #bbb;
  margin-inline-start: 0.6rem;
}
.cl-phase-progress {
  font-size: 0.78rem;
  color: #aaa;
  flex-shrink: 0;
}

/* ── Subject progress header (per tab) ──────────────────────────────────── */
.cl-subject-progress {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0ee;
}
.cl-subject-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.cl-subject-text {
  font-size: 0.85rem;
  color: #555;
  font-weight: 400;
}
.cl-subject-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.cl-subject-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
}
.cl-subject-bar-wrap {
  width: 100%;
  height: 7px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.cl-subject-bar-fill {
  height: 100%;
  background: #1a1a1a;
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 0;
}

.cl-lightning-note {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

/* ── Technique pathway rows ─────────────────────────────────────────────── */
.tp-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr 5rem 7rem;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f4f4f4;
}
.tp-row:last-child { border-bottom: none; }
.tp-row:hover { background: #fafafa; }

.tp-check {
  width: 1rem;
  height: 1rem;
  accent-color: #888;
  cursor: pointer;
  flex-shrink: 0;
}

/* Topic name — bold, non-link */
.tp-name-b {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
}
.tp-row-done .tp-name-b {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 400;
}
.tp-row-done .tp-pill { opacity: 0.4; }

/* Pill buttons: שיעור / תרגול / שינון */
.tp-pill {
  display: block;
  font-size: 0.73rem;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  min-width: 4rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #f5f5f5;
  text-align: center;
}
.tp-pill:hover { background: #eaeaea; color: #111; }
.tp-pill-done {
  color: #2e7d32;
  border-color: #c8e6c9;
  background: #f1f8f1;
}
.tp-pill-mastery {
  color: #555 !important;
  border-color: #d8d0ec;
  background: #f8f6fd;
}
.tp-pill-mastery:hover { background: #ece6f7; color: #333; }
.tp-pill-exam {
  color: #555 !important;
  border-color: #e0b8b8;
  background: #fef5f5;
}
.tp-pill-exam:hover { background: #fae0e0; color: #333; }
.tp-pill-wn {
  color: #9b3060;
  border-color: #f0b8d0;
  background: #fdf0f5;
}
.tp-pill-wn:hover { background: #fce4ee; color: #7a1f4a; }
.tp-pill-submit {
  color: #555 !important;
  border-color: #e2d890;
  background: #fefcf4;
}
.tp-pill-submit:hover { background: #f5f0cc; color: #333; }
.tp-pill-tirgul {
  color: #555;
  border-color: #f0ccaa;
  background: #fef8f2;
}
.tp-pill-tirgul:hover { background: #fde4cc; color: #333; }
.tp-pill.tp-pill-shinun {
  color: #555 !important;
  border-color: #a8d8c8 !important;
  background: #f6fdfb !important;
}
.tp-pill.tp-pill-shinun:hover { background: #e0f4ed !important; color: #333 !important; }
.tp-pill.tp-pill-lesson {
  color: #555 !important;
  border-color: #a4d0ec !important;
  background: #f3f9fd !important;
}
.tp-pill.tp-pill-lesson:hover { background: #d8edf8 !important; color: #333 !important; }
.cl-unit-row-mastery { border-top: 1px solid #ede8f5; margin-top: 0.3rem; padding-top: 0.75rem; }
.tp-pill-locked {
  display: block;
  font-size: 0.73rem;
  color: #bbb;
  white-space: nowrap;
  min-width: 4rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #fafafa;
  text-align: center;
  cursor: default;
}

/* Locked row */
.tp-row-locked { opacity: 0.4; }
.tp-row-locked:hover { background: transparent; }
.tp-name-locked { grid-column: 1; font-size: 0.9rem; color: #aaa; font-weight: 600; }
.tp-lock-badge {
  font-size: 0.7rem;
  color: #bbb;
  background: #f5f5f5;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #eee;
}

/* ── Skipped (optional) items block ────────────────────────────────────── */
.cl-skipped-details {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.cl-skipped-toggle {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: #bbb;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.cl-skipped-toggle::marker,
.cl-skipped-toggle::-webkit-details-marker { display: none; }
.cl-skipped-toggle::after {
  content: '▸';
  font-size: 0.68rem;
  margin-inline-start: auto;
  transition: transform 0.15s;
}
.cl-skipped-details[open] .cl-skipped-toggle::after { content: '▾'; }
.cl-skipped-rows { padding: 0; }
.tp-row--skipped .tp-name-b { color: #ccc; font-weight: 400; }
.tp-skip-badge {
  font-size: 0.68rem;
  color: #ccc;
  background: #f5f5f5;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #eee;
  white-space: nowrap;
  text-align: center;
}
.tp-row--skipped .tp-pill { color: #ccc; border-color: #ebebeb; background: #fafafa; }
.tp-row--skipped .tp-pill:hover { background: #f0f0f0; color: #888; }

/* ── Phase CTA (action bar below hero) ───────────────────────────────────── */

.dash-phase-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* ── Phase 3 CTA banner ───────────────────────────────────────────────────── */

.dash-phase3-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: #f8fff9;
  border: 1.5px solid #c8ecd4;
  border-radius: 12px;
  width: 100%;
}

.dash-phase3-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.dash-phase3-sub {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.55;
}

.dash-phase3-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Marathon countdown panel ─────────────────────────────────────────────── */

.dash-marathon-wrap {
  width: 100%;
}

.dash-marathon-counter {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1.5px solid #e8e8e6;
  border-radius: 12px;
}

.dash-marathon-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  min-width: 2.5ch;
  font-variant-numeric: tabular-nums;
}

.dash-marathon-meta {
  flex: 1;
}

.dash-marathon-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.dash-marathon-season {
  font-size: 0.82rem;
  color: #999;
  margin-top: 0.15rem;
}

.dash-marathon-change {
  font-size: 0.82rem;
  color: #bbb;
  text-decoration: none;
}
.dash-marathon-change:hover { color: #888; }


/* ── Status block ──────────────────────────────────────────────────────────── */

.dash-status-block {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.sb-divider {
  border: none;
  border-top: 1px solid #f0f0ee;
  margin: 0;
}

.sb-greeting-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.sb-phase-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
}

.sb-phase-desc {
  font-size: 0.82rem;
  color: #888;
  margin: 0.1rem 0 0.5rem;
  line-height: 1.5;
}

.sb-stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.sb-progress-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sb-progress-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.sb-stat {
  font-size: 0.88rem;
  font-weight: 400;
  color: #b0b0ad;
}

.sb-next-note {
  font-size: 0.88rem;
  color: #b0b0ad;
}

.sb-next-note.unlocked {
  color: #1a1a1a;
  font-weight: 400;
}

.sb-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sb-progress-bar {
  width: 80px;
  height: 5px;
  background: #f0f0ee;
  border-radius: 3px;
  overflow: hidden;
}

.sb-progress-fill {
  height: 100%;
  background: #2F6FED;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.sb-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  min-width: 2rem;
}

.sb-unlock-banner {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  background: #f7f7f6;
  border: 1px solid #dcdcda;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  gap: 1rem;
}

.sb-unlock-wow {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.sb-unlock-text {
  font-size: 0.88rem;
  font-weight: 400;
  color: #555;
}

.sb-unlock-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #2e7d32;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.sb-unlock-cta:hover { opacity: 0.85; }

.sb-resume-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.sb-resume-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.6rem;
}

.sb-resume-heading {
  font-size: 0.82rem;
  font-weight: 400;
  color: #b0b0ad;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sb-resume-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sb-resume-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #222;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sb-resume-cta:hover { background: #444; }

.sb-what-next-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b0b0ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sb-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
}

.sb-task-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.sb-task-track {
  font-size: 0.88rem;
  font-weight: 700;
  color: #777;
}

.sb-task-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0.3rem 0;
}

.sb-task-step {
  font-size: 0.72rem;
  color: #888;
  margin-top: auto;
}

.sb-task-cta {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  color: #444;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  white-space: nowrap;
  margin-top: auto;
}
.sb-task-cta:hover { background: #eaeaea; color: #111; }

.sb-phase-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #444;
  padding: 0.15em 0.6em;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.sb-next-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.1rem;
}

/* ── Phase bar ─────────────────────────────────────────────────────────────── */

.dash-phase-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.1rem;
}

.pbar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.pbar-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f0f0ee;
  border: 2px solid #e0e0dd;
  color: #b0b0ad;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pbar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b0b0ad;
  letter-spacing: 0.03em;
}

.pbar-step.active .pbar-dot {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.pbar-step.active .pbar-label { color: #1a1a1a; }

.pbar-step.done .pbar-dot {
  background: #e8f0fe;
  border-color: #2F6FED;
  color: #2F6FED;
}
.pbar-step.done .pbar-label { color: #2F6FED; }

.pbar-line-wrap {
  flex: 1;
  position: relative;
  height: 4px;
  background: #e8eaed;
  border-radius: 3px;
  margin: 0 0.5rem;
  margin-bottom: 1.35rem;
  min-width: 3rem;
  overflow: visible;
}

.pbar-line-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #1a1a1a;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.pbar-line-pct {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ── Phase details ─────────────────────────────────────────────────────────── */

.dash-phase-details {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 420px;
}

.dash-phase-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-phase-detail-stat {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

.dash-phase-detail-note {
  font-size: 0.78rem;
  color: #b0b0ad;
  text-align: left;
}

.dash-phase-detail-note.unlocked {
  color: #2F6FED;
  font-weight: 600;
}

.dash-phase-det-bar {
  height: 4px;
  background: #f0f0ee;
  border-radius: 3px;
  overflow: hidden;
}

.dash-phase-det-fill {
  height: 100%;
  background: #2F6FED;
  border-radius: 3px;
  transition: width 0.4s ease;
}


/* ── Word Nerd strip ── */
.dash-wn-strip {
  width: 100%;
  margin-top: 0.5rem;
}
.dash-wn-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  max-width: 480px;
  transition: border-color 0.15s;
}
.dash-wn-card:hover { border-color: #aaa; }
.dash-wn-label {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.dash-wn-sub {
  font-size: 0.87rem;
  color: #666;
  flex: 1;
}
.dash-wn-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .showcase { flex-direction: column; gap: 1.5rem; }

  .hero-top { flex-direction: column; align-items: center; gap: 0.8rem; }
  .hero-title, .hero-subtitle { text-align: center; white-space: normal; flex: none; }

  .showcase-text { flex-direction: column; gap: 0.8rem; }
  .showcase-text h2 { white-space: normal; }

  .dash-phase3-cta { flex-direction: column; align-items: flex-start; }
}

/* ── Phase unlock popup ── */
.phase-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-popup-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  max-width: 360px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.phase-popup-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.phase-popup-body {
  font-size: 1rem;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

.phase-popup-sub {
  font-size: 0.88rem;
  color: #777;
  margin: 0;
}

.phase-popup-close {
  margin-top: 0.8rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  align-self: center;
}
.phase-popup-close:hover { opacity: 0.82; }
