/* Lünktekst — looja + vastaja stiilid (jarjesta mustrite järgi; tume režiim teemamuutujatega) */

/* Rakenduse aktsendi pehme taust — kolmes kohas, sest tume teema
   tuleb nii käsitsi lülitist kui süsteemi eelistusest (vt DISAIN.md) */
/* --lt-accent-text: aktsendivärviline TEKST pehmel taustal (#00d1b2 valgel jääb alla 4.5:1) */
:root { --lt-accent-soft: rgba(0, 209, 178, 0.12); --lt-accent-text: #007a65; }
[data-theme="dark"] { --lt-accent-soft: rgba(34, 211, 238, 0.14); --lt-accent-text: #5ee3f5; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --lt-accent-soft: rgba(34, 211, 238, 0.14); --lt-accent-text: #5ee3f5; }
}

.lt-container { max-width: 1040px; }

/* ---------- Ühised väikesed ehitusplokid ---------- */
.lt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 13px;
    background: transparent;
    color: var(--text-secondary, #4a4a4a);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.lt-icon-btn:hover { background: var(--bg-hover, #f5f5f5); }
.lt-icon-btn.is-danger-hover:hover { color: #cc0f35; }
[data-theme="dark"] .lt-icon-btn.is-danger-hover:hover { color: #ff6685; }
.lt-icon-btn:disabled { opacity: 0.4; cursor: default; }
.lt-icon-btn:disabled:hover { background: transparent; }

.lt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    font-size: 13px;
    color: var(--text-primary, #363636);
    white-space: nowrap;
}
.lt-pill i { color: var(--text-muted, #999); font-size: 12px; }
.lt-pill b { font-variant-numeric: tabular-nums; font-weight: 600; }
.lt-pill-label { color: var(--text-muted, #999); font-size: 12px; }

/* ---------- Nimekirja vaade ---------- */
.lt-page-head { display: flex; align-items: center; gap: 16px; }
.lt-app-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.lt-app-badge.is-muted { background: var(--bg-hover, #f5f5f5); color: var(--text-muted, #999); }
.lt-h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text-primary, #363636);
}
.lt-page-sub { margin: 2px 0 0; font-size: 15px; color: var(--text-muted, #999); }
.lt-new-wrap { margin-top: 24px; }

/* "Sinu harjutused" päis + otsing */
.lt-list-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 12px;
}
.lt-list-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary, #363636);
}
.lt-count { font-size: 13px; color: var(--text-muted, #999); margin-right: auto; }
.lt-search { position: relative; width: 260px; max-width: 100%; }
.lt-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted, #999);
    pointer-events: none;
}
.lt-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--border-color, #dbdbdb);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #363636);
    font-size: 14px;
    font-family: inherit;
}
.lt-search input:focus { outline: 2px solid var(--accent-color, #00d1b2); outline-offset: 1px; border-color: transparent; }

/* Harjutuskaardid */
#ltExercisesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
    gap: 12px;
    align-items: stretch;
}
#ltExercisesList > .lt-empty,
#ltExercisesList > p { grid-column: 1 / -1; }
.lt-ex-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 14px 18px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 12px;
    box-shadow: var(--shadow-card, 0 2px 4px rgba(0, 0, 0, 0.06));
    transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
    .lt-ex-card:hover {
        box-shadow: var(--shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.12));
        transform: translateY(-1px);
    }
}
.lt-ex-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
}
/* Kitsal ekraanil jääks tegevustele pealkirja kõrval ~190 px ja rida murduks
   nii, et prügikast satub üksi omaette reale. Anname reale terve laiuse ja
   laseme jagatud `.dk-actions` mustril (css/style.css) nupud ikoonideks
   tõmmata. */
@media (max-width: 480px) {
    .lt-ex-actions {
        flex: 1 0 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
    /* Ikooninupud puutealani; .dk-act-icon annab laiuse, siin kõrgus */
    .lt-ex-actions .lt-icon-btn { height: 44px; }
}
.lt-type-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.lt-type-badge.is-muted { background: var(--bg-hover, #f5f5f5); color: var(--text-muted, #999); }
.lt-ex-main { min-width: 0; flex: 1 1 240px; }
.lt-ex-title { margin: 0; font-weight: 600; font-size: 16px; color: var(--text-primary, #363636); word-break: break-word; }
.lt-ex-meta { margin: 2px 0 0; font-size: 13px; color: var(--text-muted, #999); }
.lt-ex-note { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted, #999); }
.lt-join-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    flex-shrink: 0;
    white-space: nowrap;
}
.lt-join-pill i { font-size: 10px; }
.lt-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #999);
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.lt-link-btn i { font-size: 12px; }
.lt-link-btn:hover { color: var(--accent-color, #00d1b2); background: var(--bg-hover, #f5f5f5); }

/* Tühi olek */
.lt-empty {
    background: var(--bg-card, #fff);
    border: 1px dashed var(--border-color, #dbdbdb);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
}
.lt-empty-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.5rem;
}
.lt-empty-text { color: var(--text-secondary, #4a4a4a); }

/* ---------- Redaktor ---------- */
body.lt-editor-open .navbar { display: none; }
body.lt-editor-open #ltListSection { display: none; }

.lt-editor-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border-light, #eee);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.lt-ebar-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.lt-ebar-mid { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
#ltTitleInput {
    min-width: 0;
    flex: 0 1 300px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary, #363636);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: inherit;
}
#ltTitleInput:hover, #ltTitleInput:focus { border-color: var(--border-color, #dbdbdb); outline: none; }
.lt-save-status {
    font-size: 13px;
    color: var(--text-muted, #999);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.lt-save-status i { font-size: 11px; }
.lt-conflict-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 20px;
    background: var(--bg-secondary, #f5f5f5);
    border-bottom: 1px solid var(--border-light, #eee);
    border-left: 4px solid #f14668;
    color: var(--text-primary, #363636);
    font-size: 14px;
}
.lt-conflict-bar .icon { color: #f14668; }
.lt-conflict-bar.is-hidden { display: none; }
.lt-save-status .fa-check { color: var(--accent-color, #00d1b2); }

.lt-editor-body { display: flex; align-items: stretch; min-height: calc(100vh - 56px); }
.lt-editor-main {
    flex: 1;
    min-width: 0;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lt-editor-side {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card, #fff);
    border-left: 1px solid var(--border-light, #eee);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
}
.lt-side-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary, #363636); }
.lt-side-group {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #999);
}
.lt-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    cursor: pointer;
}
.lt-set-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-set-label { font-size: 14px; line-height: 1.35; color: var(--text-primary, #363636); }
.lt-set-desc { font-size: 12px; line-height: 1.4; color: var(--text-muted, #999); }
.lt-set-desc.is-reason { color: var(--text-secondary, #4a4a4a); }
.lt-setting-row.is-disabled { cursor: default; }
.lt-setting-row.is-disabled .lt-set-label, .lt-setting-row.is-disabled .lt-switch { opacity: 0.55; }
.lt-side-hint {
    background: var(--lt-accent-soft);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-secondary, #4a4a4a);
}
.lt-side-hint i { color: var(--accent-color, #00d1b2); margin-right: 5px; }

/* Lüliti (switch) — sisemiselt tavaline checkbox */
.lt-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.lt-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.lt-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color, #dbdbdb);
    border-radius: 999px;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lt-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lt-switch input:checked + .lt-slider { background: var(--accent-color, #00d1b2); }
.lt-switch input:checked + .lt-slider::before { transform: translateX(20px); }
.lt-switch input:focus-visible + .lt-slider { outline: 2px solid var(--accent-color, #00d1b2); outline-offset: 2px; }

/* Valikukaardid (vastamise viis, tulemuse näitamine): 2 veergu, ikoon nime kohal */
.lt-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-mode-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 12px 8px;
    background: var(--bg-card, #fff);
    border: 1.5px solid var(--border-color, #dbdbdb);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lt-mode-choice > i { font-size: 16px; color: var(--text-muted, #999); }
.lt-mode-choice.is-selected { border-color: var(--accent-color, #00d1b2); background: var(--lt-accent-soft); }
.lt-mode-choice.is-selected > i { color: var(--accent-color, #00d1b2); }
@media (hover: hover) {
    .lt-mode-choice:hover { border-color: var(--accent-color, #00d1b2); }
}
.lt-mode-name { display: block; font-weight: 600; font-size: 14px; color: var(--text-primary, #363636); }
.lt-choice-desc { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted, #999); }

/* Tööriistarida: „Tee lüngaks" + süntaksi vihje + lünkade arv */
.lt-text-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.lt-text-tools .button { margin-bottom: 0; }
.lt-syntax-hint {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #999);
}
.lt-syntax-hint code {
    padding: 2px 6px;
    border: 1px solid var(--border-light, #eee);
    border-radius: 6px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #363636);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}
.lt-gap-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--border-light, #eee);
    border-radius: 999px;
    background: var(--bg-card, #fff);
    font-size: 13px;
    color: var(--text-primary, #363636);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lt-gap-pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-color, #00d1b2); }
.lt-gap-pill.is-warning { border-color: #f5a623; }
.lt-gap-pill.is-warning::before { background: #f5a623; }

/* Tekst ja vastaja vaade kõrvuti */
.lt-editor-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.lt-editor-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lt-col-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #999);
}
/* Märgistuse tagakiht ja textarea PEAVAD jagama kõiki tekstivoogu mõjutavaid omadusi
   (font, polster, ääris, murdmine, kerimisriba ruum) — muidu nihkub värv tekstist */
.lt-ta-wrap {
    position: relative;
    height: 300px;
    border-radius: 10px;
    background: var(--bg-card, #fff);
}
.lt-ta-hl, #ltTextArea {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #dbdbdb);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    tab-size: 4;
    overflow-y: auto;
    scrollbar-gutter: stable;
}
.lt-ta-hl {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: transparent;
    border-color: transparent;
    pointer-events: none;
}
.lt-ta-hl mark {
    color: transparent;
    background: var(--lt-accent-soft);
    border-radius: 4px;
    box-shadow: inset 0 -2px 0 var(--accent-color, #00d1b2);
}
#ltTextArea {
    position: relative;
    display: block;
    background: transparent;
    color: var(--text-primary, #363636);
    resize: none;
}
.lt-editor-preview {
    box-sizing: border-box;
    height: 300px;
    overflow-y: auto;
    padding: 14px 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 10px;
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-primary, #363636);
    white-space: pre-wrap;
    word-break: break-word;
}
.lt-preview-empty { margin: 0; color: var(--text-muted, #999); font-size: 13.5px; line-height: 1.5; white-space: normal; }
/* Vastaja vaate lünk: nummerdatud tühi kast (vastused on loendis all) */
.lt-prev-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 28px;
    margin: 0 2px;
    padding: 0 8px;
    vertical-align: middle;
    border: 2px dashed var(--text-muted, #999);
    border-radius: 8px;
    background: var(--bg-hover, #f5f5f5);
    line-height: 1;
    white-space: nowrap;
}
.lt-prev-gap b { font-size: 11px; color: var(--text-muted, #999); font-variant-numeric: tabular-nums; }

/* Lüngad ja õiged vastused */
.lt-gap-list {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 12px;
    overflow: hidden;
}
.lt-gap-list-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.lt-gap-list-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-primary, #363636); }
.lt-gap-list-note { margin: 0; font-size: 12px; color: var(--text-muted, #999); }
.lt-gap-rows { margin: 0; padding: 0; list-style: none; }
.lt-gap-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.lt-gap-row:last-child { border-bottom: none; }
.lt-gap-row.is-empty { font-size: 13px; color: var(--text-muted, #999); }
.lt-gap-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--bg-hover, #f5f5f5);
    color: var(--text-muted, #999);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.lt-gap-answers { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lt-gap-answer {
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--lt-accent-soft);
    color: var(--lt-accent-text);
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}
.lt-gap-note { flex-shrink: 0; font-size: 12px; color: var(--text-muted, #999); }

/* ---------- Vastaja: fookusrežiim ---------- */
.lt-play-body { background: var(--bg-primary, #f4f4f4); }
.lt-topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 24px;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border-light, #eee);
}
.lt-brand { font-size: 14px; font-weight: 700; color: var(--accent-color, #00d1b2); text-decoration: none; flex-shrink: 0; }
.lt-topbar-sep { width: 1px; height: 18px; background: var(--border-color, #dbdbdb); flex-shrink: 0; }
.lt-topbar-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #363636);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lt-play-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 48px;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
    display: flex;
    flex-direction: column;
}
.lt-play-wrap > #ltNameScreen, .lt-play-wrap > .lt-panel-center { margin: auto; }

/* Paneel (algus/lõpp) */
.lt-panel {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 2px 4px rgba(0, 0, 0, 0.06));
    padding: 32px 36px;
    text-align: center;
}
.lt-panel .lt-app-badge { margin: 0 auto 14px; }
.lt-panel h1 {
    margin: 0 0 4px;
    font-size: clamp(1.3rem, 2.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary, #363636);
}
.lt-panel-sub { margin: 0 0 20px; font-size: 14.5px; color: var(--text-muted, #999); }

/* Sõnapank */
.lt-bank {
    position: sticky;
    top: 8px;
    z-index: 20;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 14px;
    box-shadow: var(--shadow-card, 0 2px 4px rgba(0, 0, 0, 0.06));
    padding: 12px 16px;
    margin-bottom: 16px;
}
.lt-bank-label { margin: 0 0 8px; font-size: 13px; color: var(--text-muted, #999); }
.lt-bank-label.is-picking { color: var(--lt-accent-text); font-weight: 600; }
.lt-bank-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
/* Sõna kodu: tühjaks jäänud kodu (sõna on lüngas) hoiab oma koha kriipsjoonega */
.lt-chip-home { display: inline-flex; border-radius: 8px; }
.lt-chip-home:empty { border: 2px dashed var(--border-color, #dbdbdb); background: var(--bg-hover, #f5f5f5); }
.lt-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-card, #fff);
    border: 2px solid var(--border-color, #dbdbdb);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text-primary, #363636);
    word-break: break-word;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
    .lt-chip:hover { border-color: var(--text-muted, #999); transform: translateY(-1px); }
}
.lt-chip.is-selected {
    border-color: var(--accent-color, #00d1b2);
    box-shadow: 0 0 0 3px var(--lt-accent-soft);
}
.lt-chip:disabled { opacity: 0.6; cursor: default; }
/* Pesas olev kiip näeb välja nagu pesa sisu, mitte eraldi kaart */
.lt-slot .lt-chip {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 2px;
    font-size: 16px;
    transition: none;
}
@media (hover: hover) {
    .lt-slot .lt-chip:hover { transform: none; }
}
/* Lohistuse olekud (Sortable) */
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.lt-slot.sortable-chosen, .lt-slot .sortable-chosen { box-shadow: none; }

/* Tekst lünkadega */
.lt-text-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #eee);
    border-radius: 14px;
    box-shadow: var(--shadow-card, 0 2px 4px rgba(0, 0, 0, 0.06));
    padding: 24px 28px;
    font-size: 17px;
    line-height: 2.3;
    color: var(--text-primary, #363636);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Lünk: trükkimise sisend */
.lt-gap-input {
    display: inline-block;
    vertical-align: baseline;
    margin: 0 3px;
    /* Parem polster hoiab ✓/✗ märgile ruumi sisendi SEES — nii ei lisa märk
       tekstivoogu midagi ega nihuta kontrollimisel ülejäänud teksti paigast */
    padding: 2px calc(var(--lt-mark-w, 1em) + 5px) 2px 10px;
    height: 34px;
    border: none;
    border-bottom: 2px solid var(--text-muted, #999);
    border-radius: 6px 6px 0 0;
    background: var(--bg-hover, #f5f5f5);
    color: var(--text-primary, #363636);
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lt-gap-input:focus { outline: none; border-bottom-color: var(--accent-color, #00d1b2); background: var(--lt-accent-soft); }

/* Lünk: sõnapanga pesa. Fikseeritud kõrgus + vertical-align: middle — tühja ja
   täidetud pesa baseline arvutuks muidu erinevalt ja rea kõrgus hüppaks täitmisel.
   --lt-slot-w mõõdab play.js pikima sõnapanga sõna järgi: sisu lisamine ei tohi pesa
   laiust muuta, muidu ei mahu rea lõpus olev pesa lohistuse ajal enam reale ära */
.lt-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: var(--lt-slot-w, 96px);
    max-width: 100%;
    height: 34px;
    margin: 0 3px;
    padding: 0 12px;
    border: 2px dashed var(--text-muted, #999);
    border-radius: 8px;
    background: var(--bg-hover, #f5f5f5);
    color: var(--text-primary, #363636);
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
@media (hover: hover) {
    .lt-slot:hover:not(:disabled) { border-color: var(--accent-color, #00d1b2); }
}
.lt-slot.is-filled { border-style: solid; border-color: var(--border-color, #dbdbdb); background: var(--bg-card, #fff); }
.lt-slot:disabled { cursor: default; }
/* Tühja pesa number (data-num) — vastaja näeb, mitu lünka on ja millises järjekorras */
.lt-slot:not(.is-filled)::before {
    content: attr(data-num);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #999);
    font-variant-numeric: tabular-nums;
}
/* Sõna valitud: vabad lüngad esile */
.lt-text-panel.is-picking .lt-slot:not(.is-filled) {
    border-color: var(--accent-color, #00d1b2);
    background: var(--lt-accent-soft);
    box-shadow: 0 0 0 3px var(--lt-accent-soft);
}
.lt-text-panel.is-picking .lt-slot:not(.is-filled)::before { color: var(--lt-accent-text); }

/* Õige/vale olekud (+ märgid värvipimedate toeks) */
.lt-gap-input.is-ok { border-bottom-color: #48c78e; background: rgba(72, 199, 142, 0.12); }
.lt-gap-input.is-wrong { border-bottom-color: #f14668; background: rgba(241, 70, 104, 0.1); }
.lt-slot.is-ok { border-color: #48c78e; background: rgba(72, 199, 142, 0.12); }
.lt-slot.is-wrong { border-color: #f14668; background: rgba(241, 70, 104, 0.1); }
.lt-slot.is-ok::after { content: "\2713"; color: #48c78e; font-weight: 700; margin-left: 6px; }
.lt-slot.is-wrong::after { content: "\2717"; color: #f14668; font-weight: 700; margin-left: 6px; }
/* Märk ei võta tekstivoos ruumi (width: 0) ja joonistub tagasinihkega sisendi enda
   parempoolsesse polstrisse — nii ei nihuta kontrollimisel ilmuv ✓/✗ midagi paigast.
   --lt-mark-w mõõdab play.js päris fondiga */
.lt-mark {
    display: inline-block;
    position: relative;
    width: 0;
    left: calc(-1 * var(--lt-mark-w, 1em) - 6px);
    font-weight: 700;
}
.lt-mark.is-ok { color: #48c78e; }
.lt-mark.is-wrong { color: #f14668; }
.lt-slot.is-revealed, .lt-gap-input.is-revealed { border-style: dashed; }
.lt-gap-input.is-locked, .lt-slot.is-locked { opacity: 0.85; }

.lt-check-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}
.lt-check-hint { margin: 0; font-size: 13px; color: var(--text-muted, #999); min-height: 1.2em; font-variant-numeric: tabular-nums; }
/* Päise edenemisriba (täidetud lüngad) */
.lt-progress { display: inline-flex; align-items: center; gap: 10px; }
.lt-progress-bar { width: 120px; height: 6px; border-radius: 999px; background: var(--border-light, #eee); overflow: hidden; }
#ltProgressFill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--accent-color, #00d1b2); transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1); }
.lt-progress-text { font-size: 13px; color: var(--text-primary, #363636); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tulemus */
.lt-result-greeting { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; color: var(--text-muted, #999); }
.lt-result-greeting.is-perfect { color: #48c78e; }
.lt-result-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #363636);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.lt-pill-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lt-praise {
    font-size: 2.2rem;
    line-height: 1;
    animation: lt-pop 0.45s ease-out;
}
@keyframes lt-pop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- Modaalid ---------- */
.lt-modal-card {
    position: relative;
    width: 660px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--bg-card, #fff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}
.lt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light, #eee);
}
.lt-modal-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lt-modal-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--lt-accent-soft);
    color: var(--accent-color, #00d1b2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.lt-modal-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text-primary, #363636); }
.lt-modal-sub { margin: 0; font-size: 12.5px; color: var(--text-muted, #999); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid var(--border-light, #eee);
    background: var(--bg-primary, #f4f4f4);
    border-radius: 0 0 16px 16px;
}
.lt-danger-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    font-size: 12.5px;
    background: transparent;
    color: #cc0f35;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.lt-danger-text-btn:hover { background: rgba(204, 15, 53, 0.1); }
[data-theme="dark"] .lt-danger-text-btn { color: #ff6685; }

/* Jagamise modaal: „Klassiga" + „Kõigile" (Link / QR-kood / Liitumiskood vahelehtedena) */
#ltShareModal .lt-modal-card { width: 560px; }
#ltShareModal .lt-modal-head { padding: 12px 16px 12px 24px; }
.lt-close-btn { width: 44px; height: 44px; font-size: 14px; }
.lt-share-body { display: flex; flex-direction: column; }
.lt-share-sec { padding: 16px 24px; }
.lt-share-sec + .lt-share-sec { border-top: 1px solid var(--border-light, #eee); }
.lt-share-link { padding-bottom: 20px; }
/* Klassita kasutaja: klassiplokk lõppu (järjekord CSS-iga, DOM jääb samaks) */
.lt-share-body.is-class-last .lt-share-class { order: 2; border-top: 1px solid var(--border-light, #eee); }
.lt-share-body.is-class-last .lt-share-link { border-top: none; }
.lt-share-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-bottom: 12px;
}
.lt-share-sec-head .lt-share-h, .lt-share-sec-head .lt-share-sub { margin: 0; }
.lt-share-h { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--text-primary, #363636); }
.lt-share-sub { margin: 0 0 12px; font-size: 12px; color: var(--text-muted, #999); }
.lt-share-class > .lt-foot-link { margin-top: 2px; }
/* Segmenteeritud vahelehed */
.lt-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    margin-bottom: 12px;
    background: var(--bg-primary, #f4f4f4);
    border-radius: 10px;
}
.lt-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #4a4a4a);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lt-tab i { font-size: 13px; color: var(--text-muted, #999); }
.lt-tab[aria-selected="true"] {
    background: var(--bg-card, #fff);
    color: var(--text-primary, #363636);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.lt-tab[aria-selected="true"] i { color: var(--accent-color, #00d1b2); }
@media (hover: hover) {
    .lt-tab:not([aria-selected="true"]):hover { color: var(--text-primary, #363636); }
}
/* Ühtne kõrgus — vahelehe vahetus ei hüpita akent */
.lt-tab-panel { min-height: 196px; }
.lt-tab-panel .lt-share-sub { margin: 8px 0 0; }
.lt-tab-qr { display: flex; align-items: center; gap: 16px; }
.lt-qr-box {
    flex-shrink: 0;
    padding: 8px;
    background: #fff;   /* QR vajab alati heledat tausta — ka tumedas teemas */
    border: 1px solid var(--border-light, #eee);
    border-radius: 10px;
    line-height: 0;
}
.lt-tab-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lt-tab-side p, .lt-code-off p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary, #4a4a4a); }
.lt-code-off {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px dashed var(--border-color, #dbdbdb);
    border-radius: 12px;
}
.lt-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px;
    background: var(--lt-accent-soft);
    border-radius: 12px;
}
.lt-code-text { display: flex; flex-direction: column; gap: 4px; }
.lt-code-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.lt-join-code {
    margin: 0;
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.1;
    color: var(--text-primary, #363636);
    font-variant-numeric: tabular-nums;
}
.lt-code-under { margin: 0; font-size: 12px; color: var(--text-secondary, #4a4a4a); }
.lt-code-under b { color: var(--text-primary, #363636); }
.lt-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--text-secondary, #4a4a4a);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.lt-foot-link i { color: var(--text-muted, #999); }
@media (hover: hover) {
    .lt-foot-link:hover, .lt-foot-link:hover i { color: var(--accent-color, #00d1b2); }
}
.lt-copy-row { display: flex; margin-bottom: 10px; }
.lt-copy-row input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-color, #dbdbdb);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: var(--bg-primary, #f4f4f4);
    color: var(--text-secondary, #4a4a4a);
    font-size: 12.5px;
    font-family: inherit;
}
.lt-copy-row button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--accent-color, #00d1b2);
    color: var(--on-accent, #001f1a);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.lt-copy-row button:hover { background: var(--accent-hover, #00c4a7); }
[data-theme="dark"] .lt-copy-row button { color: #1a1a2e; }
.lt-copy-row.is-large { margin-bottom: 0; }
.lt-copy-row.is-large input { height: 40px; padding: 0 12px; font-size: 13px; }
.lt-copy-row.is-large button { height: 40px; padding: 0 16px; gap: 8px; font-size: 14px; }

/* Tulemuste tabel + lünkade koond */
.lt-results-body { padding: 16px 24px 20px; }
.lt-gap-stats { margin-bottom: 16px; }
.lt-gap-stats-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted, #999); }
.lt-gap-stats-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-gap-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-hover, #f5f5f5);
    border: 1px solid var(--border-light, #eee);
    font-size: 12.5px;
    color: var(--text-primary, #363636);
}
.lt-gap-stat b { font-variant-numeric: tabular-nums; }
.lt-gap-stat.is-hard { border-color: #f14668; }
.lt-gap-stat.is-hard b { color: #f14668; }
.lt-gap-stat-word { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-results-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-primary, #363636); }
.lt-results-table th {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color, #dbdbdb);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #999);
    white-space: nowrap;
}
.lt-results-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-light, #eee);
    font-variant-numeric: tabular-nums;
}
.lt-results-table .lt-result-row { cursor: pointer; }
@media (hover: hover) {
    .lt-results-table .lt-result-row:hover td { background: var(--bg-hover, #f5f5f5); }
}
.lt-results-table .lt-result-row td:first-child { font-weight: 600; }
.lt-results-table .lt-result-row td:nth-last-child(2) { color: var(--text-muted, #999); }
.lt-result-detail td { background: var(--bg-primary, #f4f4f4); }
.lt-detail-list { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.lt-detail-gap { white-space: nowrap; }
.lt-detail-gap.is-ok { color: #257953; }
[data-theme="dark"] .lt-detail-gap.is-ok { color: #48c78e; }
.lt-detail-gap.is-wrong { color: #cc0f35; }
[data-theme="dark"] .lt-detail-gap.is-wrong { color: #ff6685; }
.lt-detail-gap small { color: var(--text-secondary, #4a4a4a); font-size: 12px; }
.lt-detail-note { margin: 0; font-size: 12.5px; color: var(--text-muted, #999); }
.lt-detail-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-muted, #999); }

/* ---------- Klassiõppija tuvastus (play.php) ---------- */
.lt-ident { margin-bottom: 14px; }
.lt-ident-code { text-transform: uppercase; letter-spacing: 0.15em; font-variant-numeric: tabular-nums; }
.lt-ident-class { margin: 0 0 8px; font-size: 13.5px; color: var(--text-secondary, #4a4a4a); }
.lt-ident-done {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--lt-accent-soft);
    font-size: 14px;
    color: var(--text-primary, #363636);
}
.lt-ident-done > i { color: var(--accent-color, #00d1b2); }
.lt-ident-already { margin-top: 12px; font-size: 13.5px; color: var(--text-secondary, #4a4a4a); }
.lt-ident-already p { margin: 0 0 10px; }
.lt-ident-already strong { color: var(--text-primary, #363636); }
.lt-linkbtn {
    margin-left: auto;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-link, #485fc7);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Isiklik tulemuslink (play.php tulemuskast + tulemus.php) ---------- */
.lt-res-share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light, #eee); text-align: left; }
.lt-play-wrap > .lt-res-share { margin: 16px auto 0; padding-top: 24px; border-top: 1px solid var(--border-light, #eee); }
.lt-res-share-body .lt-copy-row { margin-bottom: 10px; }
.lt-res-share-actions { flex-wrap: wrap; }
.lt-res-note { margin: 6px 0 14px; font-size: 13.5px; color: var(--text-secondary, #4a4a4a); }
.lt-res-status { margin: 4px 0 0; font-size: 1.35rem; font-weight: 700; color: var(--text-primary, #363636); }
.lt-play-wrap > .lt-res-head { margin: 0 auto 16px; }
.lt-res-meta strong { color: var(--text-primary, #363636); }
.lt-res-head .lt-result-title { margin: 6px 0 0; }
.lt-res-text { line-height: 2.1; }
.lt-res-gap {
    display: inline-block;
    margin: 0 2px;
    padding: 0 8px;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--text-muted, #999);
    background: var(--bg-hover, #f5f5f5);
    line-height: 1.7;
    white-space: normal;
}
.lt-res-gap em { color: var(--text-muted, #999); font-size: 0.9em; }
.lt-res-gap.is-ok { border-bottom-color: #48c78e; background: rgba(72, 199, 142, 0.14); }
.lt-res-gap.is-wrong { border-bottom-color: #f14668; background: rgba(241, 70, 104, 0.12); }
.lt-res-mark { margin-left: 5px; font-weight: 700; }
.lt-res-gap.is-ok .lt-res-mark { color: #257953; }
.lt-res-gap.is-wrong .lt-res-mark { color: #cc0f35; }
[data-theme="dark"] .lt-res-gap.is-ok .lt-res-mark { color: #48c78e; }
[data-theme="dark"] .lt-res-gap.is-wrong .lt-res-mark { color: #ff6685; }
.lt-res-correct {
    display: inline-block;
    margin: 0 2px;
    padding: 0 7px;
    border: 1px dashed #48c78e;
    border-radius: 6px;
    color: #257953;
    font-size: 0.9em;
    line-height: 1.6;
}
[data-theme="dark"] .lt-res-correct { color: #48c78e; }
.lt-res-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--text-muted, #999);
}
.lt-res-legend .lt-res-gap { line-height: 1.5; padding: 0 6px; }
.lt-res-legend .lt-res-mark { margin-left: 0; }

/* ---------- Jagamisaken: klassiga sidumine ---------- */
.lt-class-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light, #eee);
    border-radius: 12px;
    background: var(--bg-primary, #f4f4f4);
}
.lt-class-row-head { display: flex; align-items: center; gap: 8px; }
.lt-class-row-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--text-primary, #363636);
}
.lt-class-row-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-class-row-name > i { color: var(--text-muted, #999); }
.lt-class-code-label { font-size: 12px; color: var(--text-muted, #999); white-space: nowrap; }
.lt-class-code {
    padding: 2px 10px;
    border: 1px solid var(--border-light, #eee);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #363636);
    font-size: 16px;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}
.lt-class-row-head .lt-icon-btn { color: var(--text-muted, #999); }
.lt-class-row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-class-row-actions .button { margin-bottom: 0; }
.lt-class-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.lt-class-add .select select { max-width: 260px; }
.lt-class-none { margin: 0; }
.lt-class-none a { color: var(--text-link, #485fc7); text-decoration: underline; }

/* ---------- Tulemuste aken: avaldamine + klassi ülevaade ---------- */
.lt-release-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 24px;
    background: rgba(255, 183, 15, 0.14);
    border-bottom: 1px solid var(--border-light, #eee);
}
.lt-release-bar.is-released { background: var(--lt-accent-soft); }
.lt-release-bar p { flex: 1 1 260px; margin: 0; font-size: 13.5px; color: var(--text-primary, #363636); }
.lt-results-h { margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted, #999); }
.lt-class-overview { margin-bottom: 18px; }
.lt-class-overview-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.lt-class-overview-head .lt-results-h { margin: 6px 0; }
.lt-class-table tr.lt-not-submitted td { color: var(--text-muted, #999); }
.lt-class-table td:first-child { font-weight: 600; }
.lt-results-table td.lt-result-linkcell { width: 40px; padding: 2px 4px; text-align: right; }
.lt-hidden-pill { background: rgba(255, 183, 15, 0.18); }

/* ---------- Ligipääsetavus ---------- */
@media (prefers-reduced-motion: reduce) {
    .lt-praise { animation: none; }
    .lt-ex-card, .lt-chip, .lt-slot, .lt-slider, .lt-slider::before, .lt-mode-choice { transition: none; }
}

/* ---------- Mobiil ---------- */
@media (max-width: 768px) {
    .lt-editor-body { flex-direction: column; }
    .lt-editor-side { width: 100%; border-left: none; border-top: 1px solid var(--border-light, #eee); }
    /* Tekst ja vastaja vaade üksteise all; textarea veidi madalam */
    .lt-editor-cols { grid-template-columns: minmax(0, 1fr); }
    .lt-ta-wrap, .lt-editor-preview { height: 240px; }
}
@media (max-width: 520px) {
    .lt-search { width: 100%; }
    .lt-count { margin-right: 0; }
    .lt-editor-main { padding: 16px 12px 32px; }
    .lt-gap-pill { margin-left: 0; }
    .lt-gap-row { padding: 8px 12px; }
    .lt-panel { padding: 24px 20px; }
    .lt-play-wrap { padding: 14px 12px 32px; }
    .lt-topbar { padding: 10px 12px; }
    /* Kitsal ekraanil pealkiri oma reale — pillid ei litsu seda kokku */
    .lt-topbar-title { flex-basis: 100%; order: 5; white-space: normal; }
    .lt-topbar-sep { display: none; }
    .lt-editor-bar { padding: 8px 10px; }
    #ltTitleInput { font-size: 15px; flex: 1 1 140px; }
    /* Salvestusolek: kitsal ainult ikoon (tekst jääb ekraanilugejale) — muidu jääb pealkirjast „Ee" */
    .lt-save-status span {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap;
    }
    .lt-text-panel { padding: 16px 14px; font-size: 16px; line-height: 2.4; }
    .lt-bank { padding: 10px 12px; }
    .lt-progress-bar { width: 64px; }
    .lt-ex-card { padding: 12px 14px; }
    .lt-gap-stat-word { max-width: 120px; }
    /* Kitsal ekraanil jääb ajatempel ära — muidu lükkab see töö lingi nupu kerimise taha */
    .lt-results-table .lt-col-when { display: none; }
    .lt-results-body { padding: 14px 14px 18px; }
    .lt-share-sec { padding: 16px; }
    /* Klassi nimi oma reale — muidu lõikavad kood ja ikoonid selle „7…"-ks */
    .lt-class-row-head { flex-wrap: wrap; }
    .lt-class-row-name { flex-basis: 100%; }
    .lt-class-row-head .lt-class-code { margin-right: auto; }
    .lt-class-row-actions { grid-template-columns: 1fr; }
    #ltShareModal .lt-modal-head { padding: 8px 8px 8px 16px; }
    /* Kitsas: vahelehe ikoon ära, silt mahub (Liitumiskood) */
    .lt-tab { font-size: 13px; }
    .lt-tab i { display: none; }
    .lt-tab-qr { flex-direction: column; align-items: flex-start; }
    .lt-code-actions { flex-direction: row; flex-wrap: wrap; }
    .lt-modal-foot { padding: 12px 16px; }
    .lt-release-bar { padding: 12px 14px; }
}
