/* IELTS Speaking — umumiy uslublar (hub, imtihon va dars sahifalari) */
/* ==============================================================
   IELTS Speaking — ranglar logotipdan olinadi:
   moviy #4A90E8, to'q binafsha #231043, yashil #45C247, oltin #FFC22E.
   Porlash (glow) va neon tuslar ishlatilmaydi.
   ============================================================== */
:root {
    --sp-blue: var(--primary);
    --sp-blue-hover: var(--primary);
    --sp-blue-text: var(--primary-text);
    --sp-blue-wash: var(--primary-soft);
    --sp-purple: var(--grape);
    --sp-purple-text: var(--grape);
    --sp-purple-wash: var(--grape-soft);
    --sp-green: var(--success);
    --sp-green-text: var(--success-text);
    --sp-green-wash: var(--success-soft);
    --sp-gold: var(--sun);
    --sp-gold-text: var(--sun-text);
    --sp-gold-wash: var(--sun-soft);
    --sp-red: var(--danger);
    --sp-red-text: var(--danger-text);
    --sp-red-wash: var(--danger-soft);
    --sp-line: var(--border-hairline);
    --sp-card: var(--bg-surface);
    --sp-inset: var(--bg-surface-elevated);
}
html.theme-light {
    --sp-blue-text: var(--primary-text);
    --sp-purple-text: var(--grape);
    --sp-purple-wash: var(--grape-soft);
    --sp-green-text: var(--success-text);
    --sp-gold-text: var(--sun-text);
    --sp-red-text: var(--danger-text);
    --sp-blue-wash: var(--primary-soft);
    --sp-gold-wash: var(--sun-soft);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    width: 100%; max-width: 100vw; min-height: 100vh;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100%;
}
button { font-family: inherit; }
.sp-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }
[data-ic] { display: inline-flex; }

.sp-wrap {
    max-width: 1040px; width: 100%; margin: 0 auto;
    padding: clamp(14px, 3vw, 28px) clamp(16px, 3vw, 24px) 96px;
}

/* ---------- Tugmalar ---------- */
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 12px;
    font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer;
    border: 2px solid transparent; text-decoration: none; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sp-btn:focus-visible, .sp-seg button:focus-visible, .sp-topic:focus-visible, .sp-link:focus-visible {
    outline: 2px solid var(--sp-blue); outline-offset: 2px;
}
.sp-btn:disabled { opacity: .55; cursor: not-allowed; }
.sp-btn-primary { background: var(--sp-blue); color: var(--on-primary); }
.sp-btn-primary:hover:not(:disabled) { background: var(--sp-blue-hover); }
.sp-btn-secondary { background: var(--sp-card); color: var(--text-primary); border-color: var(--border-strong); }
.sp-btn-secondary:hover:not(:disabled) { background: var(--sp-inset); }
.sp-btn-ghost { background: transparent; color: var(--text-secondary); padding: 0 10px; }
.sp-btn-ghost:hover { color: var(--text-primary); background: var(--sp-inset); }
.sp-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.sp-btn-block { width: 100%; }

.sp-link {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
    color: var(--text-secondary); font-size: 13.5px; font-weight: 600; cursor: pointer;
    padding: 6px 2px; border-radius: 6px; min-height: 40px;
}
.sp-link:hover { color: var(--sp-blue-text); }

/* ---------- Umumiy ---------- */
.sp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sp-muted { color: var(--text-muted); }
.sp-panel {
    background: var(--sp-card); border: 2px solid var(--sp-line);
    border-radius: 16px; padding: clamp(16px, 3vw, 24px);
}
.sp-part-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.sp-part-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--sp-blue)); }
.sp-part-1 { --dot: var(--sp-blue); }
.sp-part-2 { --dot: var(--sp-gold); }
.sp-part-3 { --dot: var(--sp-green); }

/* ---------- Hub ---------- */
.sp-head { margin: 22px 0 22px; }
.sp-head h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.sp-head p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 620px; }

.sp-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.sp-mode { display: flex; flex-direction: column; gap: 12px; }
.sp-mode-top { display: flex; align-items: center; gap: 12px; }
.sp-mode-icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--sp-blue-wash); color: var(--sp-blue-text);
}
.sp-mode-icon.gold { background: var(--sp-gold-wash); color: var(--sp-gold-text); }
.sp-mode h2 { font-size: 17px; font-weight: 800; }
.sp-mode .sp-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.sp-mode p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.sp-mode-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sp-tools { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; }

.sp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 38px 0 14px; }
.sp-section-head h2 { font-size: 18px; font-weight: 800; }

.sp-seg {
    display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px;
    background: var(--sp-inset); border: 2px solid var(--sp-line); flex-wrap: wrap;
}
.sp-seg button {
    background: transparent; border: none; cursor: pointer; border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.sp-seg button[aria-pressed="true"] { background: var(--sp-card); color: var(--text-primary); box-shadow:var(--shadow-sm); }

.sp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sp-topic {
    display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%;
    background: var(--sp-card); border: 2px solid var(--sp-line); border-radius: 14px;
    padding: 16px; cursor: pointer; color: inherit; font: inherit;
    transition: border-color .15s ease, background-color .15s ease;
}
.sp-topic:hover { border-color: var(--border-strong); background: var(--sp-inset); }
a.sp-topic, a.sp-topic:hover, a.sp-topic * { text-decoration: none; }
a.sp-topic { color: var(--text-primary); }
.sp-topic:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-topic-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-muted); }
.sp-topic h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.sp-topic p {
    font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-skel { height: 118px; border-radius: 14px; background: var(--sp-inset); animation: spFade 1.2s ease-in-out infinite alternate; }
@keyframes spFade { from { opacity: .55; } to { opacity: 1; } }

/* ---------- Xona ---------- */
.sp-roombar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 0 14px; margin-bottom: 14px; border-bottom: 2px solid var(--sp-line);
}
.sp-roombar-title { flex: 1; min-width: 0; }
.sp-roombar-title b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.sp-progress-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--sp-inset); overflow: hidden; min-width: 90px; }
.sp-progress-bar > i { display: block; height: 100%; background: var(--sp-blue); border-radius: 99px; transition: width .3s ease; }
.sp-progress span { font-size: 12.5px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.sp-room { display: grid; gap: 14px; }
.sp-examiner-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: var(--sp-purple-wash); color: var(--sp-purple-text);
}
.sp-examiner-name { flex: 1; min-width: 0; }
.sp-examiner-name b { display: block; font-size: 14px; }
.sp-examiner-name span { font-size: 12.5px; color: var(--text-muted); }
.sp-audio-ctrl { display: flex; gap: 6px; align-items: center; }
.sp-rate { font-variant-numeric: tabular-nums; min-width: 58px; }

.sp-question { font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; line-height: 1.45; margin: 18px 0 0; letter-spacing: -.01em; }

.sp-cue { margin-top: 16px; border: 2px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; }
.sp-cue h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.sp-cue ul { list-style: none; display: grid; gap: 6px; }
.sp-cue li { font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; padding-left: 16px; position: relative; }
.sp-cue li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }

.sp-prep { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--sp-line); flex-wrap: wrap; }
.sp-ring {
    --p: 1turn; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: conic-gradient(var(--sp-gold) var(--p), var(--sp-inset) 0);
}
.sp-ring > span {
    width: 46px; height: 46px; border-radius: 50%; background: var(--sp-card); display: grid; place-items: center;
    font-family: var(--font-display); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sp-prep-text { flex: 1; min-width: 180px; }
.sp-prep-text b { font-size: 14px; }
.sp-prep-text p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 2px; }

/* Mikrofon */
.sp-rec { display: flex; align-items: center; gap: 16px; }
.sp-mic {
    width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
    display: grid; place-items: center; color: var(--on-primary); background: var(--sp-blue);
    transition: background-color .15s ease, transform .15s ease;
    position: relative;
}
.sp-mic:hover { background: var(--sp-blue-hover); }
.sp-mic:active { transform: scale(.97); }
.sp-mic:focus-visible { outline: 3px solid var(--sp-blue-text); outline-offset: 3px; }
.sp-mic.rec { background: var(--sp-red); }
.sp-mic.rec::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--sp-red); opacity: .45; animation: spRing 1.6s ease-out infinite;
}
@keyframes spRing { from { transform: scale(.92); opacity: .5; } to { transform: scale(1.12); opacity: 0; } }
.sp-rec-info { flex: 1; min-width: 0; }
.sp-rec-status { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sp-rec-status.live { color: var(--sp-red-text); }
.sp-level { display: flex; align-items: center; gap: 3px; height: 28px; }
.sp-level i { width: 3px; height: 4px; border-radius: 2px; background: var(--border-strong); transition: height .08s linear; }
.sp-level.live i { background: var(--sp-blue); }
.sp-timer { text-align: right; flex-shrink: 0; }
.sp-timer b { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-timer b.warn { color: var(--sp-gold-text); }
.sp-timer span { font-size: 12px; color: var(--text-muted); }

.sp-answer {
    width: 100%; min-height: 136px; margin-top: 16px; padding: 14px 16px; resize: vertical;
    border-radius: 12px; border: 2px solid var(--sp-line); background: var(--sp-inset);
    color: var(--text-primary); font: 15px/1.65 var(--font-main); outline: none;
}
.sp-answer:focus { border-color: var(--sp-blue); }
.sp-answer[readonly] { cursor: default; }
.sp-answer-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.sp-words.ok { color: var(--sp-green-text); font-weight: 700; }

.sp-note {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    font-size: 13.5px; line-height: 1.55; color: var(--text-secondary);
    background: var(--sp-gold-wash); border: 2px solid var(--sun);
}
.sp-note .sp-ic { color: var(--sp-gold-text); margin-top: 1px; }
.sp-note.info { background: var(--sp-blue-wash); border-color: var(--primary); }
.sp-note.info .sp-ic { color: var(--sp-blue-text); }

.sp-clips { margin-top: 14px; display: grid; gap: 6px; }
.sp-clips-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.sp-clip { display: flex; align-items: center; gap: 10px; }
.sp-clip span { font-size: 12.5px; color: var(--text-muted); min-width: 56px; }
.sp-clip audio { flex: 1; min-width: 0; height: 36px; }

.sp-actions { display: flex; gap: 10px; margin-top: 16px; }
.sp-actions .sp-btn { flex: 1; min-height: 48px; }

.sp-tabs { margin: 22px 0 14px; }
.sp-sample { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.sp-sample-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-phrases { display: grid; gap: 6px; }
.sp-phrase {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
    background: var(--sp-inset); font-size: 14px;
}
.sp-phrase span { flex: 1; }
.sp-phrase small { color: var(--text-muted); font-size: 12.5px; }
.sp-icon-btn {
    width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--sp-line); background: var(--sp-card);
    color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.sp-icon-btn:hover { color: var(--sp-blue-text); border-color: var(--border-strong); }
.sp-icon-btn.on { color: var(--sp-blue-text); border-color: var(--sp-blue); }
.sp-locked { text-align: center; padding: 24px 12px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.sp-locked .sp-ic { margin-bottom: 6px; }

.sp-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.sp-eq i { width: 2px; background: currentColor; border-radius: 1px; animation: spEq .9s ease-in-out infinite alternate; }
.sp-eq i:nth-child(1) { height: 5px; } .sp-eq i:nth-child(2) { height: 11px; animation-delay: .2s; } .sp-eq i:nth-child(3) { height: 7px; animation-delay: .4s; }
@keyframes spEq { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.is-playing .sp-eq { display: inline-flex; }
.is-playing .sp-play-ic { display: none; }

/* Holat oynalari */
.sp-state { text-align: center; padding: clamp(36px, 7vw, 64px) 20px; }
.sp-state h2 { font-size: 20px; font-weight: 800; margin: 14px 0 8px; }
.sp-state p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; max-width: 520px; margin: 0 auto; }
.sp-state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.sp-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--sp-inset); border-top-color: var(--sp-blue); animation: spSpin .9s linear infinite; margin: 0 auto; }
@keyframes spSpin { to { transform: rotate(360deg); } }
.sp-state-icon { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--sp-gold-wash); color: var(--sp-gold-text); }

details.sp-details { margin-top: 16px; border: 2px solid var(--sp-line); border-radius: 12px; padding: 12px 14px; text-align: left; }
details.sp-details summary { cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.sp-details summary::-webkit-details-marker { display: none; }
details.sp-details[open] summary .sp-ic { transform: rotate(180deg); }
.sp-turn { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--sp-line); }
.sp-turn:first-of-type { border-top: none; padding-top: 4px; }
.sp-turn-meta { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.sp-turn-q { font-size: 13.5px; color: var(--sp-blue-text); margin: 3px 0 4px; }
.sp-turn-a { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Natija ---------- */
.sp-modal {
    position: fixed; inset: 0; z-index: 2400; background: var(--overlay);
    display: flex; align-items: flex-start; justify-content: center;
    padding: clamp(0px, 3vw, 32px); overflow-y: auto;
}
.sp-modal-card {
    background: var(--sp-card); border: 2px solid var(--sp-line); border-radius: 18px;
    width: 100%; max-width: 760px; margin: auto; padding: clamp(18px, 4vw, 32px);
    box-shadow:var(--shadow-md);
}
.sp-modal-card:focus { outline: none; }
.sp-result-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; padding-right: 44px; }
.sp-close { position: absolute; top: 0; right: 0; }
.sp-band { width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0; background: var(--band-wash); color: var(--band); }
.sp-band b { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; }
.sp-band small { display: block; font-size: 11px; font-weight: 700; text-align: center; margin-top: 4px; opacity: .85; }
.sp-result-title { flex: 1; min-width: 220px; }
.sp-result-title h2 { font-size: 20px; font-weight: 800; margin: 4px 0 6px; }
.sp-result-title p { font-size: 13.5px; color: var(--text-muted); }
.sp-summary { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

.sp-crits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-top: 20px; }
.sp-crit { border: 2px solid var(--sp-line); border-radius: 12px; padding: 14px; }
.sp-crit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-crit-top b { font-size: 14px; }
.sp-crit-top span { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--band); }
.sp-bar { height: 5px; border-radius: 99px; background: var(--sp-inset); overflow: hidden; margin: 8px 0 10px; }
.sp-bar > i { display: block; height: 100%; background: var(--band); border-radius: 99px; }
.sp-crit ul { list-style: none; display: grid; gap: 5px; }
.sp-crit li { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.sp-na { font-size: 11px; font-weight: 700; color: var(--sp-gold-text); background: var(--sp-gold-wash); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }

.sp-block { margin-top: 22px; }
.sp-block h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sp-fix { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 2px solid var(--sp-line); }
.sp-fix:first-of-type { border-top: none; padding-top: 0; }
.sp-fix-body { flex: 1; font-size: 14px; line-height: 1.5; }
.sp-fix-body s { color: var(--sp-red-text); }
.sp-fix-body b { color: var(--sp-green-text); }
.sp-fix-body small { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.sp-plan { padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.sp-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.sp-stats b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sp-unclear { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-unclear span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--sp-gold-wash); color: var(--text-secondary); }
.sp-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.sp-foot .sp-btn { flex: 1; min-width: 160px; }
.sp-disclaimer { margin-top: 16px; font-size: 12px; line-height: 1.55; color: var(--text-muted); }

.sp-steps { list-style: none; display: grid; gap: 12px; margin: 16px 0; counter-reset: step; }
.sp-steps li { display: flex; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.sp-steps li::before {
    counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--sp-blue-wash); color: var(--sp-blue-text);
}
.sp-steps b { color: var(--text-primary); }

/* Chop etiladigan hisobot (PDF) — ekranda ko'rinmaydi */
#sp-print { display: none; }
@media print {
    @page { size: A4; margin: 14mm; }
    body > *:not(#sp-print) { display: none !important; }
    html, body { background: var(--surface) !important; }
    #sp-print { display: block; color: var(--ink); font-family: var(--font-sans); }
}

.sp-roombar .sp-part-tag { white-space: nowrap; }

@media (max-width: 560px) {
    .sp-roombar { gap: 8px 10px; }
    .sp-progress { order: 3; flex-basis: 100%; }
    .sp-rec { flex-wrap: wrap; }
    .sp-timer { margin-left: auto; }
    .sp-band { width: 80px; height: 80px; }
    .sp-band b { font-size: 28px; }
    .sp-audio-ctrl { width: 100%; }
    .sp-audio-ctrl .sp-btn:first-child { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-mic.rec::after, .sp-eq i, .sp-skel, .sp-spinner { animation: none; }
}

/* ==============================================================
   Dars sahifasi (ielts-speaking-lesson.html)
   ============================================================== */
.sp-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 0; }
.sp-back:hover { color: var(--sp-blue-text); }
.sp-lesson-head { margin: 10px 0 18px; }
.sp-lesson-head h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.sp-lesson-head p { color: var(--text-muted); font-size: 14.5px; }
.sp-lesson-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.sp-best { color: var(--sp-green-text); font-weight: 700; }

.sp-stepper { margin-bottom: 18px; }
.sp-stepper button { display: inline-flex; align-items: center; gap: 6px; }
.sp-stepper .sp-step-no {
    width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
    font-size: 11.5px; font-weight: 800; background: var(--sp-card); border: 2px solid var(--border-strong);
}
.sp-stepper button[aria-pressed="true"] .sp-step-no { background: var(--sp-blue); border-color: var(--sp-blue); color: var(--on-primary); }
.sp-stepper button:disabled { opacity: .45; cursor: not-allowed; }

.sp-stack { display: grid; gap: 14px; }
.sp-section-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sp-structs { list-style: none; display: grid; gap: 8px; }
.sp-structs li { font-size: 14.5px; padding: 10px 12px; border-radius: 10px; background: var(--sp-inset); font-family: var(--font-display); font-size: 13.5px; color: var(--text-secondary); }
.sp-model-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-model-notes li { font-size: 13.5px; padding: 6px 12px; border-radius: 99px; border: 2px dashed var(--border-strong); color: var(--text-secondary); }
.sp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-cta .sp-btn { min-height: 48px; }

.sp-qnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-qnav button {
    min-width: 40px; height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer;
    border: 2px solid var(--sp-line); background: var(--sp-card); color: var(--text-secondary);
    font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.sp-qnav button.done { border-color: var(--success); color: var(--sp-green-text); }
.sp-qnav button[aria-current="step"] { border-color: var(--sp-blue); background: var(--sp-blue-wash); color: var(--text-primary); }
.sp-qnav .sp-qnav-sep { width: 1px; background: var(--sp-line); margin: 4px 4px; }

.sp-question.is-hidden { filter: blur(7px); user-select: none; cursor: pointer; }
.sp-hidden-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.sp-notes-box { margin-top: 14px; }
.sp-notes-box label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.sp-notes-box textarea {
    width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 10px; resize: vertical;
    border: 2px dashed var(--border-strong); background: transparent; color: var(--text-primary);
    font: 14px/1.6 var(--font-main); outline: none;
}
.sp-notes-box textarea:focus { border-color: var(--sp-blue); border-style: solid; }

.sp-nav { display: flex; gap: 10px; margin-top: 16px; }
.sp-nav .sp-btn { flex: 1; min-height: 48px; }
.sp-nav .sp-btn-secondary { flex: 0 0 auto; }

details.sp-sample-box { margin-top: 16px; border: 2px solid var(--sp-line); border-radius: 12px; padding: 12px 14px; }
details.sp-sample-box summary { cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.sp-sample-box summary::-webkit-details-marker { display: none; }
details.sp-sample-box[open] summary > .sp-ic { transform: rotate(180deg); }
details.sp-sample-box .sp-sample { margin-top: 10px; white-space: pre-line; }
.sp-sample-box.locked summary { color: var(--text-muted); cursor: default; }

.sp-review-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-review-crits { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.sp-review-crits span { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; background: var(--sp-inset); color: var(--text-secondary); }
.sp-review-crits b { color: var(--text-primary); font-family: var(--font-display); }
.sp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.sp-compare > div { border-radius: 12px; padding: 12px 14px; background: var(--sp-inset); }
.sp-compare h4 { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-compare p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); white-space: pre-line; }
.sp-compare .model { background: var(--sp-blue-wash); }
.sp-review-q { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.sp-review-item + .sp-review-item { margin-top: 14px; }

/* Hub: dars kartalari holati */
.sp-topic-status { font-size: 12px; font-weight: 700; color: var(--sp-green-text); display: inline-flex; align-items: center; gap: 4px; }
.sp-search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.sp-search input {
    width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 11px; border: 2px solid var(--sp-line);
    background: var(--sp-inset); color: var(--text-primary); font: 14px var(--font-main); outline: none;
}
.sp-search input:focus { border-color: var(--sp-blue); }
.sp-search .sp-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.sp-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.sp-group-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; }
.sp-empty { padding: 28px 12px; text-align: center; color: var(--text-muted); font-size: 14px; }

@media (max-width: 640px) {
    .sp-compare { grid-template-columns: 1fr; }
    .sp-search { max-width: none; }
}
