  :root {
    --bg: #0B0D10;
    --bg-elev: #171C22;
    --bg-card: #14181D;
    --ink: #EEF2F5;
    --ink-dim: #98A2AD;
    --ink-muted: #7D8792;
    --accent: #52D69A;
    --accent-warm: #F2C14E;
    --line: #252B33;
    --line-soft: #1D232B;
    --danger: #F2C14E;
    --success: #52D69A;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-feature-settings: "ss01" on;
    line-height: 1.6;
    overflow-x: hidden;
  }

  a { color: var(--accent); }

  /* === HERO === */
  .hero {
    padding: 32px 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
    position: relative;
  }

  .hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-text {
    flex: 1;
    min-width: 0;
  }

  .eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-dim);
    margin-bottom: 6px;
    font-weight: 600;
  }

  .eyebrow::before { content: ""; }

  h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 700;
    color: var(--ink);
  }

  h1 .accent {
    color: var(--accent);
    font-style: normal;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1em;
    display: inline;
    transform: none;
  }

  .readiness-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
    transition: opacity 0.2s;
  }

  .readiness-badge[data-status="READY"] {
    border-color: rgba(82, 214, 154, 0.28);
    background: rgba(82, 214, 154, 0.10);
    color: var(--success);
  }

  .readiness-badge[data-status="CAUTION"] {
    border-color: rgba(242, 193, 78, 0.28);
    background: rgba(242, 193, 78, 0.10);
    color: var(--accent-warm);
  }

  .readiness-badge[data-status="STOP"] {
    border-color: rgba(255, 87, 87, 0.28);
    background: rgba(255, 87, 87, 0.10);
    color: #ff6b6b;
  }

  @media (max-width: 600px) {
    .hero {
      padding: 20px 18px 16px;
    }
  }

  /* === DASHBOARD === */
  .dashboard {
    max-width: 1280px;
    margin: 0 auto 32px;
    padding: 24px 24px 0;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }

  /* ====== TODAY DECISION CARD (P1-1 + 2. szakasz) ====== */
  .today-card {
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .today-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .today-card-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .today-card-icon-runner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(82, 214, 154, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
  }

  .today-card-body {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .today-card-text {
    flex: 1;
    min-width: 0;
  }

  .today-card-meta {
    /* maradék kompatibilitás, ha valaki mégis hivatkozza */
    display: none;
  }

  .today-card-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 6px 0;
    font-weight: 700;
  }

  .today-card-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 1.4;
    margin: 0;
  }

  .today-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-dim);
  }

  .today-facts-sep {
    color: var(--line-soft);
  }

  .today-extra {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .today-extra-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.34fr) 1fr;
    gap: 12px;
    align-items: baseline;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.45;
  }

  .today-extra-label {
    color: var(--ink-dim);
    font-weight: 600;
  }

  .today-extra-row strong {
    color: var(--ink);
    font-weight: 600;
  }

  .today-card-ring {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .today-card-ring svg {
    width: 72px;
    height: 72px;
    display: block;
  }

  #readiness-ring-progress {
    transition: stroke-dashoffset 0.6s ease-out, stroke 0.3s ease;
  }

  .today-card-ring[data-status="CAUTION"] #readiness-ring-progress {
    stroke: var(--accent-warm);
  }

  .today-card-ring[data-status="STOP"] #readiness-ring-progress {
    stroke: #ff6b6b;
  }

  .today-card-ring-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .today-card-ring-number {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
  }

  .today-card-ring-label {
    margin-top: 1px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    font-weight: 700;
  }

  .today-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .today-card-meta-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-dim);
  }

  .today-card-meta-row strong {
    color: var(--ink);
    font-weight: 600;
  }

  .today-card-meta-icon {
    font-size: 14px;
  }

  .today-card-cta {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(82, 214, 154, 0.28);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s;
  }

  .today-card-cta:hover {
    background: rgba(82, 214, 154, 0.08);
  }

  @media (max-width: 600px) {
    .today-card {
      padding: 18px 18px;
    }
    .today-card-body {
      gap: 14px;
    }
    .today-card-ring {
      width: 64px;
      height: 64px;
    }
    .today-card-ring svg {
      width: 64px;
      height: 64px;
    }
    .today-card-ring-number {
      font-size: 17px;
    }
    .today-facts {
      font-size: 11px;
    }
    .today-extra {
      gap: 7px;
      padding: 10px 0;
    }
    .today-extra-row {
      grid-template-columns: 1fr;
      gap: 2px;
      font-size: 11px;
    }
  }

  /* ====== METRIC GRID (3. szakasz) ====== */
  .metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }

  .metric-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(82, 214, 154, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .metric-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dim);
    font-weight: 700;
    margin-bottom: 6px;
  }

  .metric-value {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow-wrap: break-word;
  }

  .metric-value #metric-week-num {
    font-size: 18px;
  }

  .metric-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.3;
  }

  .metric-progress-bar {
    height: 4px;
    background: var(--line-soft);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
  }

  .metric-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s ease-out;
  }

  @media (max-width: 600px) {
    .metric-grid {
      gap: 6px;
    }
    .metric-card {
      padding: 12px;
    }
    .metric-value {
      font-size: 13px;
    }
  }

  /* ====== STOP RULE CARD (4. szakasz) ====== */
  .stop-rule-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 24px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.1s;
    border: 1px solid;
    -webkit-appearance: none;
    appearance: none;
    color: inherit;
  }

  .stop-rule-card:hover {
    opacity: 0.92;
  }

  .stop-rule-card:active {
    transform: scale(0.99);
  }

  .stop-rule-card[data-status="READY"] {
    background: rgba(242, 193, 78, 0.08);
    border-color: rgba(242, 193, 78, 0.20);
  }

  .stop-rule-card[data-status="CAUTION"] {
    background: rgba(242, 193, 78, 0.14);
    border-color: rgba(242, 193, 78, 0.35);
  }

  .stop-rule-card[data-status="STOP"] {
    background: rgba(255, 107, 107, 0.10);
    border-color: rgba(255, 107, 107, 0.30);
  }

  .stop-rule-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .stop-rule-card[data-status="READY"] .stop-rule-icon {
    background: rgba(242, 193, 78, 0.12);
    color: var(--accent-warm);
  }

  .stop-rule-card[data-status="CAUTION"] .stop-rule-icon {
    background: rgba(242, 193, 78, 0.20);
    color: var(--accent-warm);
  }

  .stop-rule-card[data-status="STOP"] .stop-rule-icon {
    background: rgba(255, 107, 107, 0.18);
    color: #ff6b6b;
  }

  .stop-rule-content {
    flex: 1;
    min-width: 0;
  }

  .stop-rule-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .stop-rule-card[data-status="READY"] .stop-rule-title {
    color: var(--accent-warm);
  }

  .stop-rule-card[data-status="CAUTION"] .stop-rule-title {
    color: var(--accent-warm);
  }

  .stop-rule-card[data-status="STOP"] .stop-rule-title {
    color: #ff6b6b;
  }

  .stop-rule-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.5;
  }

  .stop-rule-card[data-status="STOP"] .stop-rule-text {
    color: #d7dee5;
  }

  .stop-rule-chevron {
    color: var(--ink-muted);
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.2s;
  }

  .stop-rule-card:hover .stop-rule-chevron {
    transform: translateX(2px);
  }

  @media (max-width: 600px) {
    .stop-rule-card {
      padding: 12px 14px;
    }
    .stop-rule-text {
      font-size: 12px;
    }
  }

  .stat {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .stat-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dim);
    font-weight: 700;
  }

  .stat-value {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 24px;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-weight: 700;
  }

  .stat-value.highlight { color: var(--accent); }
  .stat-value.success { color: var(--success); }

  .stat-unit {
    font-family: 'Inter', system-ui, sans-serif;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-muted);
    margin-left: 4px;
    font-weight: 600;
  }

  .stat-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--ink-muted);
  }

  .stat-sub.up::before { content: "▲ "; color: var(--success); }
  .stat-sub.down::before { content: "▼ "; color: var(--danger); }
  .stat-sub.neutral::before { content: "● "; color: var(--ink-muted); }

  /* === PROGRESS BAR === */
  .progress-section {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
  }

  .progress-label-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
  }

  .progress-label-pct {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 32px;
    color: var(--accent);
  }

  .progress-bar {
    height: 8px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
    transition: width 1s ease-out;
  }

  .progress-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }


  /* === RÉSZLETES / RÉGEBBI MUTATÓK === */
  .dashboard-details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.015);
    margin-top: 18px;
    overflow: hidden;
  }

  .dashboard-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--ink-dim);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    list-style: none;
  }

  .dashboard-details-summary::-webkit-details-marker { display: none; }

  .dashboard-details-summary::after {
    content: '+';
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 0;
  }

  .dashboard-details[open] .dashboard-details-summary::after { content: '−'; }

  .dashboard-details-body {
    padding: 0 14px 16px;
  }

  .dashboard-details .stats-grid {
    margin-top: 8px;
    margin-bottom: 18px;
  }

  .dashboard-details .progress-section {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  /* === AKTUÁLIS HÉT WIDGET === */
  .week-widget {
    margin: 0 0 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    position: relative;
  }

  .week-widget-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .week-widget-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
  }

  .week-widget-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.005em;
  }

  .week-widget-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }

  .week-widget-day {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .week-widget-day.today {
    border-color: var(--accent);
    border-width: 2px;
    background: rgba(212, 255, 58, 0.10);
    padding: 18px 20px;
    box-shadow: 0 0 24px rgba(212, 255, 58, 0.15);
    transform: scale(1.02);
  }

  .week-widget-day-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .week-widget-day.today .week-widget-day-name {
    color: var(--accent);
    font-size: 12px;
  }

  .week-widget-day.today .week-widget-day-content {
    font-size: 16px;
    font-weight: 700;
  }

  .week-widget-day.today .today-marker {
    padding: 3px 8px;
    font-size: 10px;
  }

  .week-widget-day-name .today-marker {
    background: var(--accent);
    color: var(--bg);
    padding: 2px 6px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .week-widget-day-content {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.4;
    font-weight: 600;
  }

  .week-widget-day-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--ink-dim);
  }

  .week-widget-loading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    padding: 20px 0;
  }

  .week-widget-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
  }

  .week-widget-cta:hover {
    border-color: var(--accent);
  }

  /* === TABS === */
  .tabs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
  }

  .tab {
    background: none;
    border: 0;
    padding: 24px 28px;
    color: var(--ink-dim);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tab:hover { color: var(--ink); }
  .tab.active { color: var(--accent); }

  .tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--accent);
  }

  .tab-num {
    color: var(--ink-muted);
    font-size: 10px;
  }

  .tab.active .tab-num { color: var(--accent); }

  /* === TAB CONTENT === */
  .tab-content {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 80px;
  }

  .tab-content.active { display: block; }

  /* === SECTION NAV (a heti terv fül tetején) === */
  .section-nav {
    background: transparent;
    border: 0;
    margin-bottom: 24px;
    padding: 0;
  }

  .section-nav-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .section-nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .section-nav-loading {
    color: var(--ink-muted);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
  }

  .section-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--ink-dim);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: normal;
    flex: 0 1 auto;
  }

  .section-nav-item:hover {
    background: var(--bg-elev);
    border-color: rgba(82, 214, 154, 0.35);
    color: var(--ink);
  }

  .section-nav-item.active {
    background: rgba(82, 214, 154, 0.10);
    color: var(--success);
    border-color: rgba(82, 214, 154, 0.28);
  }

  /* === MARKDOWN STYLES (Tab 1) === */
  .md h1, .md h2, .md h3, .md h4 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.005em;
    margin-top: 56px;
    margin-bottom: 18px;
    line-height: 1.05;
    scroll-margin-top: 80px;
  }

  .md h1 { font-size: clamp(36px, 5vw, 60px); }
  .md h2 {
    font-size: clamp(28px, 4vw, 42px);
    border-top: 1px solid var(--line);
    padding-top: 40px;
  }
  .md h3 { font-size: clamp(22px, 3vw, 28px); color: var(--ink); }
  .md h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-family: 'Inter', system-ui, sans-serif;
    margin-top: 32px;
    margin-bottom: 12px;
  }

  .md p {
    margin-bottom: 16px;
    color: var(--ink-dim);
    font-size: 17px;
    line-height: 1.65;
    max-width: 760px;
  }

  .md p strong { color: var(--ink); font-weight: 600; }
  .md p em { color: var(--ink); font-style: italic; }

  .md ul, .md ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    max-width: 760px;
  }

  .md li {
    color: var(--ink-dim);
    font-size: 16px;
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.6;
  }

  .md ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
  }

  .md li strong { color: var(--ink); font-weight: 600; }

  .md table {
    width: 100%;
    max-width: 880px;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow-x: auto;
  }

  .md th {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    font-weight: 400;
  }

  .md td {
    padding: 14px 16px;
    color: var(--ink-dim);
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  .md tr:last-child td { border-bottom: 0; }
  .md td strong { color: var(--ink); }

  .md blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--ink-dim);
    font-style: italic;
  }

  .md code {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    background: var(--bg-elev);
    padding: 2px 6px;
    color: var(--accent);
    border: 1px solid var(--line);
  }

  .md hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 56px 0;
  }

  .md a { color: var(--accent); }



  /* === MARKDOWN SZEKCIÓ LENYITÁSOK (progressive disclosure) === */
  .md-section-details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.012);
    margin: 18px 0;
    overflow: hidden;
  }

  .md-section-summary {
    cursor: pointer;
    list-style: none;
    padding: 0;
  }

  .md-section-summary::-webkit-details-marker { display: none; }

  .md-section-summary h2 {
    margin: 0;
    padding: 22px 48px 22px 22px;
    border-top: 0;
    position: relative;
  }

  .md-section-summary h2::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
  }

  .md-section-details[open] > .md-section-summary h2::after { content: '−'; }

  .md-section-body {
    padding: 0 22px 28px;
  }

  .md-section-body > :first-child { margin-top: 0; }

  @media (max-width: 720px) {
    .md-section-summary h2 {
      padding: 18px 42px 18px 16px;
      font-size: 24px;
    }
    .md-section-body { padding: 0 16px 22px; }
  }


  /* === FOOTER === */
  .footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    gap: 24px;
    align-items: end;
  }

  .footer-kicker {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
  }

  .footer-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 10px;
  }

  .footer-meta,
  .footer-update {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.55;
  }

  .footer-update {
    text-align: right;
    color: var(--ink-muted);
  }

  .footer-update strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    margin-top: 4px;
  }

  @media (max-width: 720px) {
    .tabs {
      padding: 0 8px;
    }
    .tab {
      flex: 1;
      justify-content: center;
      gap: 4px;
      padding: 14px 4px;
      font-size: 10px;
      letter-spacing: 0.08em;
      text-align: center;
    }
    .tab-num {
      font-size: 9px;
    }
    .tab.active::after {
      left: 4px;
      right: 4px;
    }
    .footer-inner {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .footer-update {
      text-align: left;
    }
    .stat-value { font-size: 20px; }
    .md table { font-size: 12px; }
    .md th, .md td { padding: 10px 12px; }
  }


  /* === GYAKORLAT-KALAUZ scope-olt stílusai (#kalauz scope) === */





  /* --- HEADER (a kalauz tab-on belül) --- */
  #kalauz .hero {
    padding: 0 0 28px;
    max-width: none;
    margin: 0 0 28px;
    border-bottom: 1px solid var(--line);
    position: relative;
  }

  #kalauz .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(82,214,154,.18) 0%, transparent 70%);
    opacity: 0.45;
    filter: blur(44px);
    z-index: 0;
    pointer-events: none;
  }

  #kalauz .eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 700;
  }

  #kalauz .eyebrow::before {
    content: "";
  }

  #kalauz h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    font-weight: 800;
  }

  #kalauz h1 .accent {
    color: var(--ink);
    font-style: normal;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1em;
    display: inline;
    transform: none;
  }

  #kalauz .lead {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--ink-dim);
    max-width: 760px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }

  #kalauz .lead strong {
    color: var(--ink);
    font-weight: 600;
  }

  /* --- TOC --- */
  #kalauz .toc {
    max-width: none;
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
  }

  #kalauz .toc h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    margin-bottom: 24px;
  }

  #kalauz .toc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  #kalauz .toc-item {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    flex: 1 1 220px;
    min-width: 0;
    padding: 11px 14px;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  #kalauz .toc-item:hover {
    background: var(--bg-elev);
    border-color: var(--accent);
  }

  #kalauz .toc-num {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--accent);
  }

  #kalauz .toc-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
  }

  #kalauz .toc-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    color: var(--ink-muted);
    white-space: nowrap;
  }

  /* --- SECTIONS --- */
  #kalauz .section {
    max-width: none;
    margin: 0;
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--line);
  }

  #kalauz .section:last-of-type {
    border-bottom: 0;
  }

  /* --- GYAKORLAT-KALAUZ: lenyitható kategóriák --- */
  #kalauz .section.guide-section-collapsible {
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
  }

  #kalauz .section.guide-section-collapsible:last-of-type {
    border-bottom: 1px solid var(--line-soft);
  }

  #kalauz .section.guide-section-collapsible .section-header {
    margin: 0;
    padding: 20px 56px 20px 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
  }

  #kalauz .section.guide-section-collapsible .section-header:hover {
    background: rgba(82, 214, 154, 0.04);
  }

  #kalauz .section.guide-section-collapsible .section-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(82, 214, 154, 0.28);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
  }

  #kalauz .section.guide-section-collapsible.is-open .section-header::after {
    content: '−';
  }

  #kalauz .guide-section-body {
    padding: 24px 0 40px;
    border-top: 1px solid var(--line-soft);
  }

  #kalauz .guide-section-body[hidden] {
    display: none;
  }

  #kalauz .section.guide-section-collapsible .section-title {
    font-size: clamp(30px, 5vw, 56px);
  }

  @media (max-width: 720px) {
    #kalauz .section.guide-section-collapsible .section-header {
      padding: 18px 52px 18px 18px;
    }
    #kalauz .guide-section-body {
      padding: 18px 0 32px;
    }
  }

  #kalauz .section-header {
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: end;
  }

  @media (max-width: 720px) {
    #kalauz .section-header {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  #kalauz .section-num {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  #kalauz .section-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.005em;
    margin-top: 12px;
  }

  #kalauz .section-desc {
    font-size: 17px;
    color: var(--ink-dim);
    line-height: 1.6;
  }

  /* --- EXERCISE GRID --- */
  #kalauz .exercises {
    display: grid;
    gap: 32px;
  }

  #kalauz .exercise {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.3s;
  }

  #kalauz .exercise:hover {
    border-color: var(--accent);
  }

  @media (max-width: 880px) {
    #kalauz .exercise {
      grid-template-columns: 1fr;
    }
  }

  #kalauz .exercise-video {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg);
    overflow: hidden;
    border-right: 1px solid var(--line);
  }

  @media (max-width: 880px) {
    #kalauz .exercise-video {
      aspect-ratio: 16 / 9;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
  }

  /* Thumbnail-as klikk-link az SVG ikonhoz + YouTube link */
  #kalauz .video-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
  }

  #kalauz .thumb-icon {
    width: 60%;
    max-width: 200px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }

  #kalauz .thumb-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  #kalauz .video-thumb:hover {
    background: var(--bg-elev);
  }

  #kalauz .video-thumb:hover .thumb-icon {
    transform: scale(1.06);
  }

  #kalauz .play-overlay {
    position: absolute;
    inset: auto 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  #kalauz .play-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-dim);
    background: rgba(14, 15, 12, 0.8);
    padding: 4px 10px;
    border: 1px solid var(--line);
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  #kalauz .video-thumb:hover .play-label {
    color: var(--accent);
    border-color: var(--accent);
  }

  #kalauz .exercise-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  @media (max-width: 880px) {
    #kalauz .exercise-body {
      padding: 24px;
    }
  }

  #kalauz .exercise-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    width: fit-content;
  }

  #kalauz .exercise-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
  }

  #kalauz .exercise-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
  }

  #kalauz .exercise-title small {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    color: var(--ink-dim);
    display: block;
    letter-spacing: 0.02em;
    margin-top: 6px;
  }

  #kalauz .exercise-desc {
    font-size: 16px;
    color: var(--ink-dim);
    line-height: 1.6;
  }

  #kalauz .exercise-cues {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  #kalauz .exercise-cues h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    font-weight: 400;
    margin-bottom: 4px;
  }

  #kalauz .cue {
    font-size: 14px;
    color: var(--ink);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
  }

  #kalauz .cue::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
  }

  #kalauz .cue.warning {
    color: #ffc8c8;
  }

  #kalauz .cue.warning::before {
    content: "!";
    font-weight: 800;
    color: var(--danger);
  }

  #kalauz .exercise-meta {
    display: flex;
    gap: 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  #kalauz .exercise-meta span strong {
    color: var(--ink);
    margin-left: 4px;
  }
