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

  :root {
    /* base surfaces */
    --bg: #FAFAF8;
    --panel: #FFFFFF;
    --panel-2: #F4F3EF;
    --line: #E7E5E0;
    /* brand + status */
    --amber: #B45309;
    --amber-dim: #C2761C;
    --amber-soft: #FBEEE0;
    --cream: #1C1B19;
    --cream-dim: #6E6B64;
    --green: #15803D;
    --green-soft: #E8F5EC;
    --red: #B91C1C;
    --red-soft: #FBEAEA;
    /* system tokens */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --shadow-card: 0 1px 2px rgba(28,27,25,0.05), 0 1px 1px rgba(28,27,25,0.03);
    --shadow-card-hover: 0 4px 12px rgba(28,27,25,0.07), 0 1px 2px rgba(28,27,25,0.04);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: 'Inter', -apple-system, 'SF Pro Text', system-ui, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  .display-font { font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }

  .board-header {
    border-bottom: 1px solid var(--line);
    padding: 32px 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
  }
  .board-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cream);
  }
  .board-subtitle {
    font-size: 14px;
    color: var(--cream-dim);
    margin-top: 4px;
    font-weight: 400;
  }
  .reset-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--cream-dim);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
  }
  .reset-link:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

  .cta-row { padding: 24px 32px 0; max-width: 680px; margin: 0 auto; }
  .cta-btn {
    width: 100%;
    background: var(--amber);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-card);
  }
  .cta-btn:disabled { background: var(--panel-2); color: var(--cream-dim); cursor: default; box-shadow: none; }
  .cta-btn:not(:disabled):hover { background: #9A4508; box-shadow: var(--shadow-card-hover); }
  .cta-row.centered { display: flex; justify-content: center; }
  .cta-btn-pill {
    width: auto; display: inline-flex; gap: 10px; padding: 10px 20px; border-radius: 999px; font-size: 13px;
  }
  .cta-btn-pill .display-font { font-size: 13px; }

  .board-body { padding: 8px 32px 48px; max-width: 680px; margin: 0 auto; }

  .block-section { margin-top: 32px; }
  .block-section.locked { opacity: 0.55; filter: grayscale(0.4); pointer-events: none; }
  .block-unlock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
  .block-lock-note {
    font-size: 12px; color: var(--cream-dim); font-weight: 500; display: flex; align-items: center; gap: 6px;
    pointer-events: auto; user-select: none;
  }
  .block-unlock-btn {
    pointer-events: auto; opacity: 1; filter: none;
    font-size: 11px; font-weight: 600; color: var(--amber); background: var(--amber-soft);
    border: 1px solid var(--amber-dim); border-radius: var(--radius-sm); padding: 5px 12px; cursor: pointer;
  }
  .block-unlock-btn:hover { background: var(--amber); color: #fff; }

  /* ---------- name gate & teacher dashboard ---------- */
  .teacher-top {
    border-bottom: 1px solid var(--line); padding: 24px 32px; display: flex;
    justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  }
  .roster-row {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md);
    margin-bottom: 8px; background: var(--panel); box-shadow: var(--shadow-card);
  }
  .roster-name { font-size: 15px; font-weight: 600; color: var(--cream); }
  .roster-meta { font-size: 12px; color: var(--cream-dim); display: flex; gap: 18px; flex-wrap: wrap; }
  .block-label {
    font-size: 13px; font-weight: 600; color: var(--cream-dim);
    padding-bottom: 8px; margin-bottom: 12px;
    display: flex; gap: 10px; align-items: baseline;
  }
  .block-letter { color: var(--amber); font-weight: 700; }

  .lesson-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.6fr) repeat(4, 1fr);
    gap: 8px; align-items: stretch; padding: 8px 0;
  }
  .lesson-name { font-size: 14px; color: var(--cream); font-weight: 500; display: flex; align-items: center; }
  .lesson-num { color: var(--amber); font-weight: 700; margin-right: 8px; }
  .lesson-row-locked { opacity: 0.6; }
  .lesson-locked-note {
    display: flex; align-items: center; font-size: 12px; color: var(--cream-dim); font-weight: 500;
    background: var(--panel-2); border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 0 14px;
  }
  .unlock-hint-box {
    margin-top: 18px; padding: 14px 16px; background: var(--amber-soft); border: 1px solid var(--amber-dim);
    border-radius: var(--radius-sm);
  }
  .unlock-hint-title { font-size: 12px; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
  .unlock-hint-words { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .unlock-hint-chip { font-size: 11px; font-weight: 600; color: var(--amber); background: var(--panel); border: 1px solid var(--amber-dim); border-radius: 999px; padding: 3px 10px; }
  .unlock-hint-sub { font-size: 11px; color: var(--cream-dim); }
  .struggle-hint-box {
    margin-top: 14px; padding: 14px 16px; background: #FBEAEA; border: 1px solid var(--red); border-radius: var(--radius-sm);
  }
  .struggle-hint-title { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
  .struggle-hint-text { font-size: 11px; color: var(--cream-dim); line-height: 1.5; }
  .lesson-row-done { opacity: 0.75; cursor: pointer; }
  .lesson-row-done:hover { opacity: 1; }
  .lesson-done-note {
    grid-column: span 4; display: flex; align-items: center; font-size: 12px; color: var(--green); font-weight: 600;
    background: var(--green-soft); border-radius: var(--radius-md); padding: 0 14px; cursor: pointer;
  }

  .current-lesson-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; margin: 8px 0; box-shadow: var(--shadow-card-hover);
  }
  .current-lesson-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .current-lesson-num { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--amber); }
  .current-lesson-badge { font-size: 11px; font-weight: 600; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 3px 12px; }
  .grammar-lesson-card { border-color: #7c5cbf; box-shadow: 0 0 0 1px #7c5cbf22, var(--shadow-card); }
  .grammar-lesson-tag { font-size: 11px; font-weight: 700; color: #7c5cbf; background: #7c5cbf1a; border-radius: 999px; padding: 3px 12px; margin-right: 6px; }
  .grammar-lesson-row { border-left: 3px solid #7c5cbf; }
  .unlock-notification { background: var(--amber-soft); border: 1px solid var(--amber); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; text-align: center; animation: chatPop .3s ease; }
  .praise-toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%) translateY(-30px); opacity: 0; z-index: 9999; background: var(--amber-soft); border: 1px solid var(--amber); border-radius: 999px; padding: 10px 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cream); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .3s ease, opacity .3s ease; max-width: 90vw; text-align: left; }
  .praise-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  .praise-toast-icon { font-size: 16px; }
  .insight-overlay { position: fixed; inset: 0; background: rgba(28,27,25,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px; animation: insightFade .25s ease; }
  @keyframes insightFade { from { opacity: 0; } to { opacity: 1; } }
  .insight-card { background: var(--panel); border-radius: 22px; padding: 34px 28px 26px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: insightPop .45s cubic-bezier(.34,1.56,.64,1); }
  @keyframes insightPop { 0% { transform: scale(.75) translateY(20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
  .insight-card.celebrate { border: 2px solid var(--amber); }
  .insight-icon { font-size: 58px; line-height: 1; margin-bottom: 14px; display: inline-block; }
  .insight-card.celebrate .insight-icon { animation: insightBounce .7s cubic-bezier(.34,1.56,.64,1) .12s both; }
  @keyframes insightBounce { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
  .insight-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
  .insight-text { font-size: 14.5px; line-height: 1.55; color: var(--cream-dim); margin-bottom: 22px; }
  .insight-btn { width: 100%; justify-content: center; font-size: 15px; padding: 13px; }
  .msg { display:flex; gap:9px; margin-bottom:12px; align-items:flex-start; }
  .msg .av { width:32px; height:32px; border-radius:50%; background:var(--panel-2); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
  .msg .bub { background:var(--panel-2); border-radius:14px; border-top-left-radius:4px; padding:11px 14px; font-size:15px; max-width:82%; }
  .msg.mine { justify-content:flex-end; }
  .msg.mine .bub { background:var(--amber-soft); border:1px solid var(--amber); border-top-left-radius:14px; border-top-right-radius:4px; }
  .pz-option.pz-selected { border-color: #B45309; background: rgba(180,83,9,0.12); color: #B45309; }
  .unlock-notification-text { font-size: 14px; color: var(--cream); line-height: 1.5; }
  .current-lesson-title { font-size: 21px; font-weight: 700; color: var(--cream); margin-bottom: 14px; }
  .current-lesson-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
  .progress-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
  .progress-dot.done { background: var(--green); animation: hopPop .55s ease; }
  .current-lesson-progress-text { font-size: 12px; color: var(--cream-dim); margin-left: 6px; }
  .lesson-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .lesson-action-row:last-child { margin-bottom: 0; }
  .lesson-phase-label {
    font-size: 11px; font-weight: 700; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 8px; margin-top: 4px;
  }
  .lesson-phase-label:first-child { margin-top: 0; }
  .lesson-action-btn {
    padding: 13px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
    cursor: pointer; background: var(--panel); border: 1.5px solid var(--line); color: var(--cream);
  }
  .lesson-action-btn:hover { border-color: var(--amber); }
  /* Jeden akcentní tón (amber) — barva teď nese informaci o STAVU, ne o typu aktivity:
     bílá/neutrální = dostupné, tichá zelená = hotovo, amber = doporučený další krok, šedá = zamčené */
  .action-locked { border-color: var(--line); color: var(--cream-dim); border-style: dashed; background: var(--panel-2); }
  .action-locked:hover { border-color: var(--line); }
  .action-done { background: var(--green-soft); border-color: var(--green); color: var(--green); opacity: 1; }
  .action-done:hover { border-color: var(--green); }
  .action-next {
    background: var(--amber) !important; border-color: var(--amber) !important; color: #fff !important;
    font-weight: 800; box-shadow: 0 2px 10px rgba(180,83,9,0.2);
  }
  .action-next-arrow { display: inline-block; margin-left: 2px; }

  .streak-row { text-align: center; font-size: 13px; font-weight: 600; color: var(--green); margin: 10px 0 4px; }
  .streak-inline { font-size: 13px; font-weight: 600; color: var(--cream-dim); white-space: nowrap; }

  .badge-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
  .badge-tile {
    flex-shrink: 0; width: 84px; text-align: center; padding: 12px 6px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--panel); opacity: .45;
  }
  .badge-tile.earned { opacity: 1; border-color: var(--amber); background: var(--amber-soft); }
  .badge-icon { font-size: 22px; margin-bottom: 4px; }
  .badge-label { font-size: 10px; font-weight: 600; color: var(--cream-dim); line-height: 1.3; }
  .badge-tile.earned .badge-label { color: var(--amber); }

  .faq-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }

  .pron-box { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); margin-bottom: 18px; overflow: hidden; }
  .pron-toggle {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer;
    font-size: 13px; font-weight: 700; color: var(--cream); background: var(--amber-soft);
  }
  .pron-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
  .pron-card { background: var(--panel); padding: 14px 16px; }
  .pron-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pron-card-letters { font-size: 17px; font-weight: 800; color: var(--amber); margin-bottom: 4px; letter-spacing: .02em; }
  .pron-card-hint { font-size: 12px; color: var(--cream-dim); line-height: 1.5; }
  @media (max-width: 480px) {
    .pron-grid { grid-template-columns: 1fr; }
    .pron-card:last-child:nth-child(odd) { grid-column: auto; }
  }
  .faq-toggle {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--cream);
  }
  .faq-chevron { transition: transform .15s; color: var(--cream-dim); }
  .faq-chevron.open { transform: rotate(180deg); }
  .faq-table { border-top: 1px solid var(--line); }
  .faq-row { display: flex; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .faq-row:last-child { border-bottom: none; }
  .faq-row-label { flex: 0 0 150px; font-weight: 700; color: var(--cream); }
  .faq-row-desc { color: var(--cream-dim); line-height: 1.5; }
  @media (max-width: 640px) {
    .faq-row { flex-direction: column; gap: 4px; }
    .faq-row-label { flex: none; }
  }

  .prep-card {
    margin: 20px 32px; padding: 20px; background: #EEF3FA; border: 1px solid #C7D9EF; border-radius: var(--radius-lg);
  }
  .prep-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .prep-card-badge { font-size: 13px; font-weight: 700; color: #3B6FB4; }
  .prep-card-hint { font-size: 11px; color: #6E85A6; }
  .prep-card-desc { font-size: 13px; color: var(--cream-dim); margin-bottom: 14px; }
  .prep-open-btn {
    background: #fff; border: 1.5px solid #3B6FB4; color: #3B6FB4; font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  }
  .prep-open-btn:hover { background: #EEF3FA; }
  @media (max-width: 640px) { .prep-card { margin: 20px 16px; } }

  .course-map {
    display: flex; align-items: center; padding: 24px 8px 30px; overflow-x: auto; gap: 0;
  }
  .map-node-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; transition: transform .2s; cursor: pointer; }
  .map-node-wrap.map-up { transform: translateY(-10px); }
  .map-node-wrap.map-down { transform: translateY(10px); }
  .map-node-wrap:hover { transform: translateY(-14px) scale(1.05); }
  .map-node {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
    background: var(--panel); border: 2px solid var(--line); color: var(--cream-dim);
  }
  .map-node.map-locked { background: var(--panel-2); border-color: var(--line); color: var(--cream-dim); opacity: 0.6; }
  .map-node.map-current { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 0 0 5px var(--amber-soft); }
  .map-node.map-done { background: var(--green); border-color: var(--green); color: #fff; }
  .map-line { flex: 1; height: 2px; background: var(--line); min-width: 20px; margin: 0 -4px; }


  .cat-cell {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 10px 8px;
    cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s, transform .1s;
    box-shadow: var(--shadow-card);
  }
  .cat-cell:hover { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
  .cat-abbr { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--cream-dim); display: block; text-transform: uppercase; }
  .cat-count { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; color: var(--cream); margin-top: 3px; }
  .cat-due { color: var(--amber); }

  .session-wrap { max-width: 640px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; }
  .session-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--cream-dim); margin-bottom: 20px; }
  .session-close {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream-dim);
    width: 32px; height: 32px; cursor: pointer; font-size: 16px; line-height: 1; font-family: 'Inter', sans-serif;
  }
  .session-close:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

  .extra-banner { background: var(--amber-soft); border: 1px solid var(--amber-dim); border-radius: var(--radius-sm); color: var(--amber); font-size: 13px; font-weight: 500; padding: 10px 14px; margin-bottom: 16px; }

  .flap-outer { perspective: 1400px; display: flex; align-items: center; justify-content: center; margin: 32px 0; }
  .help-fab {
    position: absolute; top: -8px; right: -8px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--amber-soft); border: 1.5px solid var(--amber); color: var(--amber);
    font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-card); z-index: 5;
  }
  .help-fab:hover { background: var(--amber); color: #fff; box-shadow: var(--shadow-card-hover); transform: scale(1.06); }
  .flap-card { width: 100%; min-height: 260px; position: relative; cursor: pointer; }
  .flap-inner { width: 100%; height: 100%; position: relative; }
  .flap-face {
    width: 100%; min-height: 260px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 32px 24px;
    box-shadow: var(--shadow-card-hover);
    animation: flapIn .25s ease;
  }
  @keyframes flapIn { from { opacity: 0; transform: scaleY(0.94); } to { opacity: 1; transform: scaleY(1); } }
  .flap-face::before { content: none; }
  .flap-back { }
  .flap-cat-tag { position: absolute; top: 18px; left: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--cream-dim); text-transform: uppercase; }
  .flap-text { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 700; color: var(--cream); line-height: 1.35; }
  .flap-back .flap-text { color: var(--cream); font-size: 17px; font-weight: 400; font-family: 'Inter', sans-serif; }
  .flap-hint { margin-top: 24px; font-size: 12px; font-weight: 500; color: var(--cream-dim); }

  .rate-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
  .rate-btn {
    padding: 14px 6px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius-sm);
    background: var(--panel); color: var(--cream); cursor: pointer; transition: border-color .15s, background .15s;
  }
  .rate-again { border-top-color: var(--red); }
  .rate-hard { border-top-color: var(--amber-dim); }
  .rate-good { border-top-color: var(--amber); }
  .rate-easy { border-top-color: var(--green); }
  .rate-again:hover { background: var(--red-soft); color: var(--red); }
  .rate-hard:hover { background: var(--amber-soft); color: var(--amber-dim); }
  .rate-good:hover { background: var(--amber-soft); color: var(--amber); }
  .rate-easy:hover { background: var(--green-soft); color: var(--green); }

  .progress-bar { height: 4px; background: var(--panel-2); border-radius: 2px; margin-top: 6px; position: relative; overflow: hidden; }
  .progress-fill { position: absolute; left:0; top:0; bottom:0; background: var(--amber); transition: width .3s; border-radius: 2px; }

  .summary-wrap { max-width: 480px; margin: 64px auto; padding: 0 24px; text-align: center; }
  .summary-title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 28px; }
  .summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 32px; }
  .summary-cell { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 4px; background: var(--panel); box-shadow: var(--shadow-card); }
  .summary-num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 22px; color: var(--cream); }
  .summary-label { font-size: 11px; font-weight: 500; color: var(--cream-dim); margin-top: 4px; }
  .summary-btn {
    background: var(--amber); color: #FFFFFF; border: none; border-radius: var(--radius-md); padding: 16px 32px;
    font-family: 'Inter', sans-serif; font-weight: 600; cursor: pointer; font-size: 14px; box-shadow: var(--shadow-card);
  }
  .summary-btn:hover { background: #9A4508; box-shadow: var(--shadow-card-hover); }

  .exc-cell {
    background: var(--panel); border: 1px solid var(--amber-dim); border-radius: var(--radius-md); padding: 10px 8px;
    cursor: pointer; text-align: center; transition: box-shadow .15s, transform .1s; box-shadow: var(--shadow-card);
  }
  .exc-cell:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
  .dikt-cell {
    background: var(--panel); border: 1px solid #3B6FB4; border-radius: var(--radius-md); padding: 10px 8px;
    cursor: pointer; text-align: center; transition: box-shadow .15s, transform .1s; box-shadow: var(--shadow-card);
  }
  .dikt-cell:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
  .dikt-cell .cat-abbr { color: #3B6FB4; }
  .dikt-cell .cat-count { color: #3B6FB4; }
  .exc-badge { font-size: 9px; font-weight: 600; letter-spacing: 0.03em; color: var(--amber-dim); text-transform: uppercase; margin-top: 6px; display: block; }
  .pilot-note { font-size: 13px; color: var(--cream-dim); padding: 0 32px 16px; max-width: 1000px; margin: 0 auto; line-height: 1.5; }

  .legend-box {
    max-width: 1000px; margin: 0 auto; padding: 0 32px 24px;
  }
  .legend-inner {
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 20px 24px;
    box-shadow: var(--shadow-card);
  }
  .legend-title {
    font-size: 13px; font-weight: 600; color: var(--cream);
    margin-bottom: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 8px 4px; margin: -8px -4px 8px;
  }
  .legend-title span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
    font-size: 16px; font-weight: 700; color: var(--amber); flex-shrink: 0; margin-left: 12px;
  }
  .legend-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .legend-row { border-left: 3px solid var(--line); padding: 2px 14px; }
  .legend-row.znovu { border-left-color: var(--red); }
  .legend-row.tezke { border-left-color: var(--amber-dim); }
  .legend-row.dobre { border-left-color: var(--amber); }
  .legend-row.lehke { border-left-color: var(--green); }
  .legend-cz { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--cream); font-weight: 600; }
  .legend-ru { font-size: 13px; color: var(--amber-dim); margin-top: 2px; font-weight: 500; }
  .legend-desc { font-size: 12px; color: var(--cream-dim); margin-top: 4px; line-height: 1.5; }

  .overlay {
    position: fixed; inset: 0; background: rgba(28,27,25,0.45); display: flex;
    align-items: center; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.overlay-open { position: fixed; width: 100%; overflow: hidden; }
  .phrases-panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 520px; width: 100%;
    padding: 28px; margin-top: 20px; box-shadow: var(--shadow-card-hover);
  }
  .reading-panel { max-width: 1040px; padding: 48px; }
  .reading-panel .phrases-panel-title { font-size: 26px; margin-bottom: 24px; }
  .reading-panel .reading-text { font-size: 22px !important; line-height: 1.8 !important; }
  .reading-hint { font-size: 13px; color: var(--cream-dim); margin-bottom: 16px; }

  .speaking-item { display: flex; flex-direction: column; gap: 10px; }
  .speaking-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .speaking-btn {
    background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; color: var(--cream);
    padding: 8px 14px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; cursor: pointer;
  }
  .speaking-btn:hover { border-color: #9333EA; }
  .speaking-btn.recording { background: var(--red-soft); border-color: var(--red); color: var(--red); }

  .read-aloud-box { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
  .read-aloud-title { font-size: 13px; color: var(--cream); margin-bottom: 10px; }
  .read-aloud-progress { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cream-dim); margin-bottom: 10px; }
  .read-aloud-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--panel-2); border: 1.5px solid var(--line); }
  .read-aloud-dot.done { background: #9333EA; border-color: #9333EA; }
  .read-letter { cursor: pointer; border-radius: 2px; }
  .read-letter.marked { background: var(--red-soft); color: var(--red); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
  .word-chip { background: var(--red-soft); color: var(--red); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

  .onb-screen { max-width: 560px; margin: 0 auto; padding: 40px 24px; text-align: left; }
  .onb-title { font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 6px; text-align: center; }
  .onb-sub { font-size: 13px; color: var(--cream-dim); text-align: center; margin-bottom: 28px; }
  .onb-question { margin-bottom: 20px; }
  .onb-question-text { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 8px; line-height: 1.5; }
  .onb-text-input, .onb-textarea {
    width: 100%; padding: 11px 14px; font-size: 14px; font-family: 'Inter', sans-serif; font-family: inherit;
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream); background: var(--panel);
    resize: vertical;
  }
  .onb-text-input:focus, .onb-textarea:focus { outline: none; border-color: var(--amber-dim); }
  .onb-result-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 4px 16px; }
  .onb-result-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .onb-result-block:last-child { border-bottom: none; }
  .onb-result-q { font-size: 12px; font-weight: 700; color: var(--amber); margin-bottom: 4px; }
  .onb-result-a { font-size: 13px; color: var(--cream); line-height: 1.5; white-space: pre-wrap; }
  .quick-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick-summary-chip { background: var(--amber-soft); border: 1px solid var(--amber-dim); border-radius: var(--radius-sm); padding: 10px 12px; }
  .quick-summary-label { font-size: 10px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
  .quick-summary-val { font-size: 12px; color: var(--cream); line-height: 1.4; }
  @media (max-width: 600px) { .quick-summary-grid { grid-template-columns: 1fr; } }

  .consent-box {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 18px; margin-bottom: 16px; max-height: 320px; overflow-y: auto; text-align: left;
  }
  .consent-heading { font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
  .consent-summary-heading { font-size: 11px; font-weight: 700; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .consent-line { font-size: 12px; color: var(--cream-dim); line-height: 1.55; margin-bottom: 10px; }
  .consent-line:last-child { margin-bottom: 0; }
  .consent-line strong { color: var(--cream); }
  .consent-checkbox-row {
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--cream); cursor: pointer;
  }
  .consent-checkbox-row input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--amber); }

  .privacy-doc h4 { font-size: 13px; font-weight: 700; color: var(--cream); margin: 18px 0 6px; }
  .privacy-doc h4:first-child { margin-top: 0; }
  .privacy-doc p { font-size: 13px; color: var(--cream-dim); line-height: 1.6; margin-bottom: 8px; }
  .privacy-doc ul { margin: 0 0 8px; padding-left: 20px; }
  .privacy-doc li { font-size: 13px; color: var(--cream-dim); line-height: 1.6; margin-bottom: 4px; }
  .privacy-doc strong { color: var(--cream); }

  .detail-section-title { font-size: 13px; font-weight: 700; color: var(--cream); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
  .detail-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .detail-bar-label { width: 90px; flex-shrink: 0; font-size: 13px; color: var(--cream-dim); }
  .detail-bar-track { flex: 1; height: 14px; background: var(--panel-2); border-radius: 999px; position: relative; overflow: hidden; }
  .detail-bar-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; transition: width .3s; }
  .detail-bar-fill.seen { background: var(--amber-soft); }
  .detail-bar-fill.mastered { background: var(--green); }
  .detail-bar-pct { width: 40px; flex-shrink: 0; text-align: right; font-size: 12px; font-weight: 700; color: var(--cream); }
  .detail-lesson-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .detail-lesson-row:last-child { border-bottom: none; }
  .detail-lesson-head { font-size: 13px; color: var(--cream); margin-bottom: 4px; }
  .detail-lesson-reason { font-size: 12px; color: var(--cream-dim); margin-top: 4px; line-height: 1.5; }
  .detail-activity-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .act-chip {
    font-size: 10px; font-weight: 600; color: var(--cream-dim); background: var(--panel-2);
    border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  }
  .act-chip.done { color: var(--green); background: var(--green-soft); border-color: var(--green); }
  .act-chip-toggle { cursor: pointer; font-family: inherit; }
  .act-chip-toggle:hover { border-color: var(--amber-dim); }
  .act-chip-hidden { color: var(--cream-dim); background: var(--panel-2); border-color: var(--line); text-decoration: line-through; opacity: .6; }
  .hide-lesson-btn { margin-top: 8px; background: var(--panel-2); }
  .hide-lesson-btn-active { color: var(--red); border-color: var(--red); background: var(--red-soft); }

  .detail-mistake-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line);
    font-size: 13px; color: var(--cream);
  }
  .detail-mistake-row:last-child { border-bottom: none; }
  .detail-mistake-count {
    flex-shrink: 0; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 12px;
    border-radius: 999px; padding: 3px 10px;
  }
  .phrases-panel-title { font-family: 'Inter', sans-serif; color: var(--cream); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
  .close-panel { display: block; margin: 20px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream-dim); padding: 9px 22px; cursor: pointer; font-size: 13px; font-weight: 500; }
  .close-panel:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

  .exc-wrap { max-width: 640px; margin: 0 auto; padding: 32px 24px 48px; }
  .exc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--cream-dim); margin-bottom: 20px; }
  .exc-prompt { text-align: center; margin: 32px 0 8px; }
  .exc-prompt-label { font-size: 12px; font-weight: 500; color: var(--cream-dim); margin-bottom: 10px; }
  .exc-prompt-word { font-family: 'Inter', sans-serif; font-size: 28px; color: var(--cream); font-weight: 700; }
  .exc-template { text-align: center; font-family: 'Inter', sans-serif; font-size: 18px; color: var(--cream); margin: 24px 0 32px; font-weight: 500; }
  .exc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .exc-option {
    padding: 16px 10px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream); cursor: pointer;
    box-shadow: var(--shadow-card);
  }
  .exc-option:hover { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); }
  .exc-option.correct { border-color: var(--green); color: var(--green); background: var(--green-soft); animation: hopPop .55s ease; }
  @keyframes hopPop {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-8px) scale(1.06); }
    55% { transform: translateY(0) scale(1.1); }
    75% { transform: translateY(-3px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
  }
  .exc-option.wrong { border-color: var(--red); color: var(--red); background: var(--red-soft); }
  .exc-option.disabled { pointer-events: none; }
  .exc-feedback { text-align: center; margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--cream); min-height: 26px; }
  .kor-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
  .kor-option { padding: 12px 14px; text-align: left; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream); cursor: pointer; box-shadow: var(--shadow-card); }
  .kor-option:hover:not(:disabled) { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); }
  .kor-option.kor-correct { border-color: var(--green); color: var(--green); background: var(--green-soft); }
  .kor-option.kor-wrong { border-color: var(--red); color: var(--red); background: var(--red-soft); }
  .kor-option:disabled { cursor: default; }
  .kor-explanation { font-size: 13px; color: var(--cream-dim); margin-top: 10px; padding: 10px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line); }
  .chat-history { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 340px; overflow-y: auto; text-align: left; }
  .chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; max-width: 80%; line-height: 1.4; }
  .chat-other { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); color: var(--cream); border-bottom-left-radius: 4px; }
  .chat-user { align-self: flex-end; background: var(--amber-dim); color: var(--bg); border-bottom-right-radius: 4px; margin-left: auto; }
  .chat-options { display: flex; flex-direction: column; gap: 8px; }
  .chat-option { padding: 10px 14px; text-align: left; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream); cursor: pointer; box-shadow: var(--shadow-card); }
  .chat-option:hover { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); }
  .phone-frame { width: 340px; max-width: 92vw; height: 640px; max-height: 88vh; background: var(--bg); border-radius: 36px;
    border: 8px solid #1a1a1a; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; overflow: hidden; position: relative; }
  .phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 20px;
    background: #1a1a1a; border-radius: 0 0 14px 14px; z-index: 5; }
  .phone-header { display: flex; align-items: center; gap: 10px; padding: 22px 14px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
  .phone-back { background: none; border: none; color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
  .phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-dim); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .phone-header-text { display: flex; flex-direction: column; }
  .phone-name { font-size: 14px; font-weight: 700; color: var(--cream); }
  .phone-status { font-size: 11px; color: var(--green); }
  .chat-history { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .chat-bubble { animation: chatPop .25s ease; }
  @keyframes chatPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .chat-typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px; width: fit-content; }
  .chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-dim); display: inline-block; animation: chatTypingBounce 1.1s infinite ease-in-out; }
  .chat-typing span:nth-child(2) { animation-delay: .15s; }
  .chat-typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  .phone-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 12px; }
  .chat-options { display: flex; flex-direction: column; gap: 6px; }
  .chat-input-decor { font-size: 12px; color: var(--cream-dim); text-align: center; padding: 4px; font-style: italic; }
  .chat-done { text-align: center; padding: 4px; }
  .kor-panel { max-width: 420px; }
  .kor-device { margin: 0 auto 14px; }
  .kor-prompt { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
  .kor-question-box { border-top: 1px solid var(--line); padding-top: 12px; }
  .email-window { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
  .email-topbar { display: flex; align-items: center; background: var(--bg); padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--cream); border-bottom: 1px solid var(--line); }
  .email-meta { padding: 10px 14px; font-size: 12px; color: var(--cream-dim); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
  .email-meta b { color: var(--cream); font-weight: 600; }
  .email-body { padding: 14px; min-height: 140px; font-size: 14px; color: var(--cream); line-height: 1.7; font-family: 'Georgia', serif; }
  .email-line { animation: chatPop .25s ease; margin-bottom: 4px; }
  .ad-placeholder { font-size: 12px; color: var(--cream-dim); font-style: italic; }
  .ad-card { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-card); }
  .ad-photo { width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--bg); border: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: center; font-size: 30px; }
  .ad-body { flex: 1; min-width: 0; }
  .ad-site { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--amber-dim); font-weight: 700; margin-bottom: 6px; }
  .ad-built-text { font-size: 14px; color: var(--cream); line-height: 1.6; }
  .registr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
  .registr-card { padding: 14px; text-align: left; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream); cursor: pointer; box-shadow: var(--shadow-card); }
  .registr-card:hover:not(:disabled) { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); }
  .registr-card:disabled { cursor: default; }
  @media (max-width: 480px) { .registr-grid { grid-template-columns: 1fr; } }
  .webform-panel { max-width: 440px; padding: 0; overflow: hidden; }
  .webform-browser-bar { display: flex; align-items: center; gap: 6px; background: #2a2a2a; padding: 8px 10px; }
  .webform-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; display: inline-block; }
  .webform-url { margin-left: 10px; font-size: 11px; color: #ccc; background: #1a1a1a; padding: 3px 10px; border-radius: 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .webform-title { font-size: 15px; font-weight: 700; color: var(--cream); padding: 14px 16px 4px; }
  .webform-field { padding: 8px 16px; }
  .webform-label { display: block; font-size: 12px; color: var(--cream-dim); margin-bottom: 4px; font-weight: 600; }
  .webform-input { width: 100%; box-sizing: border-box; padding: 9px 12px; font-family: 'Inter', sans-serif; font-size: 14px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--cream); }
  .webform-input:focus { outline: none; border-color: var(--amber-dim); }
  .webform-input-error { border-color: var(--red); background: var(--red-soft); }
  .webform-input-ok { border-color: var(--green); }
  .webform-error { font-size: 12px; color: var(--red); margin-top: 4px; }
  #webform-submit, #close-webform { margin-left: 16px; margin-right: 16px; width: calc(100% - 32px); }
  .ivr-frame { height: auto; max-height: 88vh; }
  .ivr-body { padding: 16px 14px; min-height: 100px; display: flex; align-items: center; justify-content: center; }
  .ivr-menu-text { font-size: 14px; color: var(--cream); line-height: 1.6; text-align: center; animation: chatPop .3s ease; }
  .ivr-connecting { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--cream-dim); font-style: italic; }
  .ivr-connecting span { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-dim); display: inline-block; animation: chatTypingBounce 1.1s infinite ease-in-out; }
  .ivr-connecting span:nth-child(2) { animation-delay: .15s; }
  .ivr-connecting span:nth-child(3) { animation-delay: .3s; }
  .ivr-keypad { display: flex; flex-direction: column; gap: 6px; }
  .ivr-key { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream); cursor: pointer; box-shadow: var(--shadow-card); }
  .ivr-key:hover:not(:disabled) { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); }
  .ivr-key:disabled { cursor: default; }
  .ivr-key-digit { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
  .ivr-key-label { font-size: 13px; font-weight: 500; }
  .vc-screen { position: relative; background: #111; height: 220px; display: flex; align-items: center; justify-content: center; }
  .vc-remote { width: 72px; height: 72px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; font-size: 34px; }
  .vc-self { position: absolute; bottom: 44px; right: 10px; width: 54px; height: 72px; border-radius: 8px; background: #2a2a2a; border: 1px solid #555;
    display: flex; align-items: center; justify-content: center; font-size: 22px; }
  .vc-controls { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
  .vc-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .vc-btn-end { background: var(--red); }
  .push-waiting { text-align: center; font-size: 13px; color: var(--cream-dim); font-style: italic; padding: 40px 0; }
  .push-banner { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-card-hover); animation: pushSlide .3s ease; }
  @keyframes pushSlide { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
  .push-banner-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--cream-dim); margin-bottom: 3px; }
  .push-timer { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 1px 8px; font-weight: 700; }
  .push-banner-text { font-size: 13px; color: var(--cream); font-weight: 500; }
  .grammar-rule { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .grammar-rule:last-of-type { border-bottom: none; }
  .grammar-rule-text { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
  .grammar-examples { display: flex; flex-direction: column; gap: 4px; }
  .grammar-example { font-size: 13px; color: var(--cream-dim); padding-left: 10px; border-left: 2px solid var(--amber-dim); }
  .exc-next-btn {
    display: block; margin: 24px auto 0; background: var(--amber); color: #FFFFFF; border: none; border-radius: var(--radius-md);
    padding: 14px 32px; font-family: 'Inter', sans-serif; font-weight: 600;
    cursor: pointer; font-size: 14px; box-shadow: var(--shadow-card);
  }
  .exc-next-btn:hover { background: #9A4508; box-shadow: var(--shadow-card-hover); }

  @media (max-width: 640px) {
    .lesson-row { grid-template-columns: 1fr; gap: 6px; }
    .lesson-name { margin-bottom: 4px; }
    .cat-cell, .exc-cell, .akt-cell, .dikt-cell { display: flex; justify-content: space-between; align-items: center; text-align: left; }
    .exc-options { grid-template-columns: 1fr; }
  }

  /* ---------- activities (aktivity) ---------- */
  .akt-cell {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 8px;
    cursor: pointer; text-align: center; transition: box-shadow .15s, transform .1s; box-shadow: var(--shadow-card);
  }
  .akt-cell:hover { border-color: var(--amber-dim); box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }

  .act-layout { display: grid; grid-template-columns: 260px 1fr; max-width: 1100px; margin: 0 auto; }
  .act-timeline { padding: 24px 16px; }
  .act-timeline-item { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--cream-dim); }
  .shr-cat-check { color: var(--green); font-weight: 700; }
  .shr-review-btn {
    width: 100%; background: var(--panel); border: 1.5px dashed var(--amber-dim); border-radius: var(--radius-sm);
    color: var(--amber); padding: 12px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer;
  }
  .shr-review-btn:hover { background: var(--amber-soft); border-style: solid; }
  .shr-review-done {
    width: 100%; background: var(--green-soft); border: 1.5px solid var(--green); border-radius: var(--radius-sm);
    color: var(--green); padding: 12px; font-size: 13px; font-weight: 600; text-align: center;
  }
  .act-timeline-item:hover { color: var(--cream); background: var(--panel-2); }
  .act-timeline-item.active { color: var(--amber); background: var(--amber-soft); font-weight: 600; }
  .act-timeline-item.done { color: var(--green); }
  .te-tab-item { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--cream-dim); }
  .te-tab-item:hover { color: var(--cream); background: var(--panel-2); }
  .te-tab-item.active { color: var(--amber); background: var(--amber-soft); font-weight: 600; }

  .te-panel { max-width: 640px; width: 92vw; max-height: 88vh; overflow-y: auto; padding: 40px; }
  .te-panel .phrases-panel-title { font-size: 22px; margin-bottom: 6px; }
  .te-layout { display: flex; gap: 0; margin-top: 24px; }
  .te-tabs { width: 170px; flex-shrink: 0; padding-right: 20px; border-right: none; }
  .te-content { flex: 1; padding-left: 32px; min-width: 0; border-left: 1px solid var(--line); }
  .te-content-title { font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
  .te-progress { font-size: 13px; font-weight: 600; color: var(--amber-dim); margin-bottom: 20px; }
  .te-nav-row { margin-top: 24px; }
  .te-tab-item { padding: 13px 14px; font-size: 14px; margin-bottom: 6px; }
  .te-content .shr-item { border: none; box-shadow: none; padding: 0; background: transparent; }
  .te-content .shr-cz { font-size: 18px; }
  .te-content .shr-ru { font-size: 15px; }

  .te-picker-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .te-picker-btn {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius-md);
    padding: 22px 26px; cursor: pointer; text-align: left; transition: border-color .12s, background .12s;
  }
  .te-picker-btn:hover { border-color: var(--amber-dim); background: var(--panel-2); }
  .te-picker-label { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 18px; color: var(--cream); }
  .te-picker-count { font-size: 13px; color: var(--cream-dim); }

  .te-focus-panel { max-width: 640px; padding: 48px; }
  .te-focus-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .te-back-btn {
    background: none; border: none; color: var(--cream-dim); font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 4px 0;
  }
  .te-back-btn:hover { color: var(--amber); }
  .act-nav-btn {
    background: var(--panel); border: 1.5px solid var(--line); color: var(--cream-dim); border-radius: 999px;
    padding: 11px 22px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer;
  }
  .act-nav-btn.primary { background: var(--amber); border-color: var(--amber); color: #fff; }
  .act-nav-btn.primary:hover { background: #9A4508; }
  .act-nav-btn:hover { border-color: var(--amber-dim); }
  .te-done { font-size: 16px; color: var(--green); font-weight: 600; padding: 30px 0; text-align: center; }
  @media (max-width: 640px) {
    .te-layout { flex-direction: column; }
    .te-tabs { width: 100%; display: flex; overflow-x: auto; gap: 6px; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 10px; margin-bottom: 14px; }
    .te-tab-item { white-space: nowrap; margin-bottom: 0; }
    .te-content { padding-left: 0; }
  }

  .skladani-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .skladani-item:last-child { border-bottom: none; }
  .skladani-answer-row {
    display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; padding: 8px 0; margin-bottom: 12px;
    border-bottom: 1.5px dashed var(--line);
  }
  .skladani-placeholder { font-size: 13px; color: var(--cream-dim); font-style: italic; align-self: center; }
  .skladani-bank-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .word-tile {
    background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius-md);
    padding: 11px 18px; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 500; color: var(--cream);
    cursor: pointer; transition: all .12s;
  }
  .word-tile:hover { border-color: var(--amber-dim); }
  .word-tile.placed { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); font-weight: 600; }
  .skladani-feedback { margin-top: 10px; font-size: 13px; font-weight: 600; }
  .skladani-feedback.correct { color: var(--green); }
  .skladani-feedback.wrong { color: var(--red); }

  .te-own-sentence { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
  .te-own-sentence label { display: block; font-size: 12px; color: var(--cream-dim); margin-bottom: 8px; }
  .te-own-sentence input {
    width: 100%; padding: 12px 14px; font-size: 15px; font-family: 'Inter', sans-serif;
    border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--cream); background: var(--panel);
  }
  .te-own-sentence input:focus { outline: none; border-color: var(--amber-dim); }
  .te-transform-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .te-transform-item .shr-cz { flex: 1; min-width: 180px; }
  .te-transform-input {
    flex: 1; min-width: 180px; padding: 10px 12px; font-size: 14px; font-family: 'Inter', sans-serif;
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream); background: var(--panel-2);
  }
  .te-transform-input:focus { outline: none; border-color: var(--amber-dim); background: var(--panel); }
  .te-transform-multi { flex-basis: 100%; }
  .transform-points-badge { font-size: 11px; font-weight: 700; color: var(--amber); margin-left: 6px; }

  .oprava-item { padding: 4px 0; }
  .oprava-hint { font-size: 13px; color: var(--cream-dim); margin-bottom: 18px; }
  .oprava-sentence { font-size: 26px; line-height: 2.1; font-weight: 600; }
  .oprava-letter {
    display: inline-block; padding: 2px 1px; cursor: pointer; border-radius: 4px; font-weight: 600; color: var(--cream);
  }
  .oprava-letter.space { cursor: default; }
  .oprava-letter.selected { background: var(--amber-soft); color: var(--amber); }
  .oprava-letter.true-error { background: var(--green-soft); color: var(--green); }
  .oprava-letter.false-select { background: var(--red-soft); color: var(--red); text-decoration: line-through; }
  .oprava-check-btn {
    margin-top: 14px; background: var(--amber); color: #fff; border: none; border-radius: var(--radius-sm);
    padding: 10px 20px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer;
  }
  .oprava-check-btn:hover { background: #9A4508; }
  .oprava-result { margin-top: 14px; font-size: 15px; color: var(--cream); }
  .act-timeline-time { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500; margin-bottom: 2px; opacity: .8; }

  .act-main { padding: 28px 32px 56px; }
  .act-seg-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
  .act-seg-time { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--cream-dim); }
  .act-seg-title { font-family: 'Inter', sans-serif; font-size: 21px; font-weight: 700; color: var(--cream); margin-top: 4px; }
  .act-timer-box { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); padding: 10px 18px; min-width: 130px; box-shadow: var(--shadow-card); }
  .act-timer-display { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 700; color: var(--cream); font-variant-numeric: tabular-nums; }
  .act-timer-display.warn { color: var(--amber); }
  .act-timer-display.over { color: var(--red); }
  .act-timer-btns { display: flex; gap: 6px; margin-top: 8px; justify-content: center; }
  .act-timer-btn { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream-dim); padding: 5px 10px; font-size: 11px; font-weight: 500; cursor: pointer; }
  .act-timer-btn:hover { border-color: var(--amber-dim); color: var(--amber); }

  .act-line-plain { font-size: 15px; color: var(--cream); margin-bottom: 12px; line-height: 1.6; }
  .act-line-quote { background: #EEF3FA; border-left: 3px solid #3B6FB4; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--cream); margin-bottom: 12px; line-height: 1.55; font-style: italic; }
  .act-line-label { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 4px; display: block; }
  .act-line-prep { border: 1px dashed var(--amber-dim); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 13px; background: var(--amber-soft); }
  .act-line-prep .act-line-label { color: var(--amber-dim); }
  .act-line-require { border-left: 3px solid var(--green); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; background: var(--green-soft); }
  .act-line-require .act-line-label { color: var(--green); }

  .mat-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
  .mat-title { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--amber); text-transform: uppercase; margin-bottom: 14px; }
  .mat-cat { margin-bottom: 12px; }
  .mat-cat:last-child { margin-bottom: 0; }
  .mat-cat-name { font-size: 12px; font-weight: 500; color: var(--cream-dim); margin-bottom: 6px; }
  .mat-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .mat-chip { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--cream); background: var(--panel-2); }
  .mat-quiz-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .mat-quiz-ru { color: var(--amber-dim); font-weight: 500; }
  .mat-helpers { margin-top: 12px; font-size: 13px; color: var(--cream-dim); }

  .widget-btn-row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
  .widget-btn {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream);
    padding: 10px 18px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer;
  }
  .widget-btn:hover:not(:disabled) { border-color: var(--amber-dim); color: var(--amber); background: var(--amber-soft); }
  .widget-btn:disabled { opacity: 0.4; cursor: default; }

  .wheel-chip { transition: background .1s, color .1s, transform .1s; }
  .wheel-chip.wheel-cycling { background: var(--amber); color: #fff; border-color: var(--amber); transform: scale(1.06); }
  .wheel-chip.wheel-winner { background: var(--green-soft); color: var(--green); border-color: var(--green); transform: scale(1.08); font-weight: 700; }
  .wheel-result { margin-top: 14px; font-size: 15px; color: var(--cream); font-weight: 500; }

  .race-box { text-align: center; }
  .race-progress { font-size: 12px; font-weight: 500; color: var(--cream-dim); margin-bottom: 10px; }
  .race-word { font-family: 'Inter', sans-serif; font-size: 26px; color: var(--cream); font-weight: 700; }
  .race-ru { font-size: 15px; color: var(--amber-dim); margin-top: 8px; font-weight: 500; }
  .race-timer { font-family: 'Inter', sans-serif; font-size: 19px; color: var(--cream); margin-top: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }

  .kims-hidden { background: var(--panel-2); border-style: dashed; color: var(--cream-dim); }

  .sort-item { cursor: pointer; }
  .sort-item.sort-selected { background: var(--amber); color: #fff; border-color: var(--amber); }
  .sort-empty { font-size: 13px; color: var(--cream-dim); font-style: italic; }
  .sort-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
  .sort-bucket { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 12px; min-height: 60px; cursor: pointer; }
  .sort-bucket:hover { border-color: var(--amber-dim); background: var(--amber-soft); }
  .sort-bucket-row { min-height: 30px; }
  .sort-placed.sort-correct { border-color: var(--green); color: var(--green); background: var(--green-soft); }
  .sort-placed.sort-wrong { border-color: var(--red); color: var(--red); background: var(--red-soft); }

  .quiz-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 36px 24px; text-align: center;
    cursor: pointer; margin-bottom: 4px; box-shadow: var(--shadow-card);
  }
  .quiz-face { font-family: 'Inter', sans-serif; font-size: 21px; color: var(--cream); font-weight: 700; }
  .quiz-hint { font-size: 11px; font-weight: 500; color: var(--cream-dim); margin-top: 12px; }
  .quiz-progress { font-size: 13px; color: var(--cream-dim); font-weight: 500; }

  .act-phrases-box { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }

  .shr-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
  .shr-item {
    border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel);
    padding: 16px 20px; box-shadow: var(--shadow-card);
  }
  .shr-item-prep { display: flex; align-items: center; gap: 14px; }
  .prep-panel .phrases-panel-title { margin-bottom: 4px; }
  .prep-panel {
    display: flex; flex-direction: column; max-height: 85vh; overflow: hidden;
    padding-bottom: 20px;
  }
  .prep-header { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
  .prep-header-text { min-width: 0; }
  .prep-sub { font-size: 13px; color: var(--cream-dim); margin: 0; }
  .prep-progress-badge {
    flex-shrink: 0; font-size: 12px; color: var(--amber); font-weight: 700;
    border: 1px solid var(--amber); background: var(--amber-soft); border-radius: 999px;
    padding: 5px 12px; white-space: nowrap;
  }

  .prep-chat {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: flex; flex-direction: column; gap: 14px; padding: 2px 4px; margin: 0 -4px 4px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .prep-chat::-webkit-scrollbar { width: 8px; }
  .prep-chat::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
  .prep-chat::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }
  .prep-panel > #prep-start-quiz,
  .prep-panel > #close-prep { flex-shrink: 0; }
  .prep-scene-title {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    text-transform: uppercase; color: var(--cream-dim); margin: 10px 0 2px;
  }
  .prep-scene-title:first-child { margin-top: 0; }

  .prep-msg { display: flex; align-items: flex-end; gap: 8px; }
  .prep-msg.student { justify-content: flex-start; }
  .prep-msg.partner { justify-content: flex-end; }
  .prep-avatar {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .prep-avatar-student { background: var(--amber-soft); border: 1px solid var(--amber); color: var(--amber); font-size: 14px; line-height: 1; }
  .prep-avatar-partner { background: var(--panel-2); border: 1px solid var(--line); color: var(--cream-dim); }
  .prep-bub { border-radius: 16px; padding: 12px 16px; box-shadow: none; }
  .prep-msg.student .prep-bub {
    max-width: 62%; background: var(--amber-soft); border: 1px solid var(--amber);
    border-top-left-radius: 4px;
  }
  .prep-msg.partner .prep-bub {
    max-width: 50%; background: var(--panel-2); border: 1px solid var(--line);
    border-top-right-radius: 4px;
  }
  .prep-bub-cz { font-family: 'Inter', sans-serif; color: var(--cream); }
  .prep-msg.student .prep-bub-cz { font-size: 16px; font-weight: 700; }
  .prep-msg.partner .prep-bub-cz { font-size: 14px; font-weight: 500; }
  .prep-bub-foot { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
  .prep-bub-ru { flex: 1; min-width: 0; }
  .prep-msg.student .prep-bub-ru { font-size: 13px; color: var(--amber-dim); font-weight: 500; }
  .prep-msg.partner .prep-bub-ru { font-size: 12px; color: var(--cream-dim); }
  .prep-play-btn {
    flex-shrink: 0; border: none; background: none; cursor: pointer; font-size: 14px;
    opacity: 0.7; padding: 2px; line-height: 1;
  }
  .prep-play-btn:hover { opacity: 1; }
  .prep-umim-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 4px; border-radius: 999px;
    border: 1px solid var(--amber); background: transparent; color: var(--amber);
    font-size: 12px; font-weight: 700; padding: 4px 10px; cursor: pointer; transition: all .15s;
  }
  .prep-umim-btn:hover { background: rgba(180,83,9,0.08); }
  .prep-umim-icon-btn {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--amber);
    background: transparent; color: var(--amber); font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
  }
  .prep-umim-icon-btn:hover { background: rgba(180,83,9,0.08); }
  .prep-umim-icon-btn.marked { background: var(--amber); color: #fff; }
  .prep-umim-btn.marked { background: var(--amber); color: #fff; }

  @media (max-width: 640px) {
    .prep-avatar { width: 24px; height: 24px; }
    .prep-msg.student .prep-bub { max-width: 87%; }
    .prep-msg.partner .prep-bub { max-width: 80%; }
    .prep-progress-badge { font-size: 11px; padding: 4px 9px; }
    /* dynamická výška místo statické 85vh — na iOS Safari se 85vh počítá podle
       největší možné výšky (s schovanou adresní lištou), takže panel občas přeteče
       a začne scrollovat celý overlay místo jen .prep-chat uvnitř — hlavička pak
       "uteče" nahoru mimo obrazovku. 85dvh se přepočítává podle skutečně viditelné výšky. */
    .prep-panel { max-height: 85dvh; }
    /* větší dotykové plochy pro přehrát/nahrát/umím — jen uvnitř téhle obrazovky,
       aby se nezměnila velikost stejných tlačítek jinde v appce */
    .prep-panel .speak-icon-btn,
    .prep-panel .prep-umim-icon-btn {
      width: 40px; height: 40px; font-size: 16px;
    }
    .prep-bub-foot { gap: 10px; row-gap: 8px; }
  }

  /* Desktop (≥641px): "Příprava a mluvení" se otevírá jako celoobrazovková stránka
     místo malého vystředěného okna. Mobil (viz @media max-width:640px výš) je beze změny. */
  @media (min-width: 641px) {
    .prep-panel {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      max-width: none;
      max-height: 100vh;
      margin: 0;
      border-radius: 0;
      padding: 48px 40px 32px;
      align-items: center;
    }
    .prep-panel .prep-header,
    .prep-panel .prep-chat,
    .prep-panel > #prep-start-quiz,
    .prep-panel > #close-prep {
      width: 100%;
      max-width: 760px;
    }
  }

  .prep-quiz-prompt { font-size: 13px; color: var(--cream-dim); margin-bottom: 6px; }
  .prep-quiz-ru { font-size: 19px; font-weight: 700; color: var(--cream); margin-bottom: 14px; line-height: 1.4; }
  .prep-quiz-mic {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream-dim);
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px;
  }
  .prep-quiz-reveal-btn { width: 100%; }
  .prep-quiz-answer {
    font-size: 19px; font-weight: 700; color: var(--amber); background: var(--amber-soft);
    border: 1px solid var(--amber); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; line-height: 1.4;
  }
  .prep-quiz-selfassess { display: flex; gap: 10px; margin-bottom: 16px; }
  .prep-quiz-know-btn, .prep-quiz-unknow-btn {
    flex: 1; border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
  }
  .prep-quiz-know-btn { border: 1px solid var(--green); background: var(--green-soft); color: var(--green); }
  .prep-quiz-know-btn:hover { background: var(--green); color: #fff; }
  .prep-quiz-unknow-btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--cream-dim); }
  .prep-quiz-unknow-btn:hover { border-color: var(--red); color: var(--red); }

  .speaking-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .speaking-header-text { min-width: 0; }
  .speaking-header .phrases-panel-title { margin-bottom: 2px; }
  .speaking-sub { font-size: 13px; color: var(--cream-dim); }
  .speaking-progress-badge {
    flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--green);
    border: 1px solid var(--green); background: var(--green-soft); border-radius: 999px;
    padding: 5px 12px; white-space: nowrap;
  }
  .speaking-list.shr-list { gap: 6px; }
  .speaking-list .shr-item.speaking-item {
    flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px;
  }
  .speaking-item-num {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--cream-dim); margin-top: 2px;
  }
  .speaking-item-text { flex: 1; min-width: 0; }
  .speaking-item-text .shr-cz { font-size: 15px; }
  .speaking-item-text .shr-ru { font-size: 12px; margin-top: 3px; }
  .speaking-item .speaking-controls {
    flex-shrink: 0; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 2px;
  }
  .speak-icon-btn {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--panel);
    display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: all .15s;
  }
  .speak-icon-btn:hover { border-color: #9333EA; }
  .speak-icon-btn.recording { background: var(--red-soft); border-color: var(--red); animation: hopPop .55s ease; }
  .speak-icon-btn.recorded { border-color: var(--green); background: var(--green-soft); }
  .speaking-privacy-note { font-size: 11px; color: var(--cream-dim); margin-top: 10px; text-align: center; }

  @media (max-width: 640px) {
    .speaking-list .shr-item.speaking-item { flex-wrap: wrap; }
    .speaking-item .speaking-controls { width: 100%; justify-content: flex-end; margin-left: 34px; }
  }
  .shr-cz { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: var(--cream); }
  .shr-ru { font-size: 14px; color: var(--amber-dim); margin-top: 6px; font-weight: 500; }
  .shr-example { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
  .shr-example-cz { font-size: 13px; color: var(--cream-dim); font-style: italic; }
  .shr-example-ru { font-size: 12px; color: var(--amber-dim); font-style: italic; margin-top: 3px; }
  .act-phrases-title { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--amber-dim); text-transform: uppercase; margin-bottom: 12px; }
  .act-phrase-item { font-size: 14px; color: var(--cream); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .act-phrase-ru { font-size: 12px; color: var(--amber-dim); margin-top: 3px; font-weight: 500; }

  .act-nav-row { display: flex; justify-content: space-between; margin-top: 32px; gap: 10px; }
  .act-nav-btn {
    flex: 1; padding: 14px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
    cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--cream);
  }
  .act-nav-btn:hover:not(:disabled) { border-color: var(--amber-dim); color: var(--amber); }
  .act-nav-btn:disabled { opacity: 0.35; cursor: default; }
  .act-nav-btn.primary { background: var(--amber); color: #fff; border-color: var(--amber); box-shadow: var(--shadow-card); }
  .act-nav-btn.primary:hover { background: #9A4508; box-shadow: var(--shadow-card-hover); }

  @media (max-width: 860px) {
    .act-layout { grid-template-columns: 1fr; }
    .act-timeline { border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 6px; }
    .act-timeline-item { border-left: none; white-space: nowrap; flex-shrink: 0; }
  }

  .dikt-stage-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber-dim); margin-bottom: 6px; }
  .dikt-text-block { font-size: 15px; line-height: 1.7; color: var(--cream); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 14px; }
  .dikt-wrong { color: var(--red); border-bottom: 2px solid var(--red); font-weight: 600; }
  .dikt-gap { display: inline-block; width: 24px; height: 1em; vertical-align: middle; border-bottom: 2px dotted var(--red); margin: 0 2px; }
  .dikt-correct-diff { color: var(--green); font-weight: 700; background: var(--green-soft); border-radius: 3px; padding: 0 2px; }
  .dikt-score { font-size: 28px; font-weight: 800; font-family: 'Inter', sans-serif; }
  .dikt-explain-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
  .dikt-explain-item { font-size: 13px; color: var(--cream); background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 6px; padding: 8px 10px; }
  .dikt-explain-item b { color: var(--amber-dim); }
  .dikt-speed-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .dikt-speed-row input[type="range"] { flex: 1; accent-color: var(--amber); }
  .dikt-speed-val { font-size: 12px; color: var(--cream-dim); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
