:root {
    --hu-red: #ce2939;
    --hu-red-dark: #a61e2b;
    --hu-green: #477050;
    --hu-green-dark: #35563c;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --radius: 14px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-tap-highlight-color: transparent;
}

#app {
    width: 100%;
    max-width: 780px;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--hu-red);
}

/* Header & Brand */
.app-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.flag-pill {
    font-size: 2rem;
    line-height: 1;
}

.brand-title h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-label-short,
.stat-label-short {
    display: none;
}

.btn-icon-settings {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.95rem;
    line-height: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 1rem 0 0.85rem;
}

.stat-pill {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

/* Break Progress Bar */
.break-progress-wrap {
    margin: 0.75rem 0 0.85rem;
}

.break-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.interleave-badge {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
}

.progress-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hu-red), var(--hu-green));
    border-radius: 999px;
    transition: width 0.25s ease;
}

/* Toolbar & Filters */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-tab {
    background: var(--surface-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    transition: all 0.15s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
    color: var(--text);
}

.filter-tab.active {
    background: var(--text);
    color: #ffffff;
    border-color: var(--text);
}

.study-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.82rem;
    background: var(--surface-subtle);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-weight: 600;
}

.option-group select {
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}

.option-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    margin-left: auto;
}

.option-toggle + .option-toggle {
    margin-left: 0.25rem;
}

/* Flashcard Area */
#flashcard {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-vocab { background: #dbeafe; color: #1e40af; }
.badge-cloze { background: #fef3c7; color: #92400e; }
.badge-grammar { background: #f3e8ff; color: #6b21a8; }
.badge-dialog { background: #dcfce7; color: #166534; }
.badge-spatial { background: #fae8ff; color: #86198f; border: 1px solid #f0abfc; }
.badge-recipe { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.badge-unit { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.badge-notes { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-dir { background: #e2e8f0; color: #334155; }
.badge-srs { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.card-text {
    font-size: 1.45rem;
    line-height: 1.5;
    margin: 0.85rem 0;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    white-space: pre-line;
    word-break: break-word;
}

.cloze-blank {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    border-bottom: 2px dashed #d97706;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-weight: 800;
    margin: 0 0.15rem;
}

.cloze-filled {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 0 0.45rem;
    border-radius: 6px;
    font-weight: 800;
}

.card-back {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 600;
    font-size: 1.25rem;
}

.format-example {
    margin: -0.35rem 0 0.65rem;
    padding: 0.45rem 0.75rem;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    font-size: 0.86rem;
    color: #334155;
}

.format-example strong {
    color: #0f172a;
}

/* Hints */
.hint-row {
    margin: 0.5rem 0;
}

.btn-link {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
    background: transparent;
}

.hint-box {
    margin-top: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Audio Button */
.audio-row {
    margin: 0.6rem 0;
}

.btn-audio {
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-audio:hover {
    background: #e2e8f0;
}

/* Active Recall Area */
.recall-area {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.choice-btn {
    background: white;
    color: var(--text);
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    transition: all 0.15s ease;
}

.choice-btn:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.choice-btn.correct {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
}

.choice-btn.wrong {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.typing-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accent-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.accent-key {
    background: white;
    color: var(--text);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    min-width: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accent-key:hover {
    background: #e2e8f0;
}

.input-row {
    display: flex;
    gap: 0.5rem;
}

#answer-input {
    flex: 1;
    padding: 0.7rem 0.9rem;
    font-size: 1.05rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

#answer-input:focus {
    border-color: var(--primary);
}

.feedback-banner {
    margin: 0.75rem 0;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-exact {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.feedback-accent {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.feedback-miss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Buttons & Controls */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

button:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-large {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.08rem;
}

.btn-secondary {
    background: var(--surface-subtle);
    color: var(--text);
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

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

.btn-Secondary.active, .btn-secondary.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
}

.kbd-hint {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Rating Buttons */
.rate-prompt {
    margin: 0.25rem 0 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.rating-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.45rem;
}

.rate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.35rem;
    border-radius: 8px;
    color: white;
    margin: 0;
}

.rate-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.rate-interval {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

.rate-0 { background-color: #64748b; }
.rate-1 { background-color: #dc2626; }
.rate-2 { background-color: #ea580c; }
.rate-3 { background-color: #2563eb; }
.rate-4 { background-color: #16a34a; }
.rate-5 { background-color: #059669; }

.rate-btn.suggested {
    outline: 3px solid #0f172a;
    outline-offset: 2px;
}

/* SuperMemo-2 Rating Guide (hidden by default, toggled by #btn-rating-guide or "?") */
.rate-prompt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.25rem 0 0.6rem;
}

.rate-prompt-row .rate-prompt {
    margin: 0;
}

.rating-guide-toggle {
    margin: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
}

.rating-guide-toggle:hover,
.rating-guide-toggle[aria-expanded="true"] {
    background: #2563eb;
    color: #fff;
}

.rating-guide-toggle .kbd-hint {
    opacity: 0.75;
    font-weight: 400;
}

.rating-guide {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.rating-guide-intro,
.rating-guide-foot {
    margin: 0 0 0.6rem;
    color: var(--text-muted);
}

.rating-guide-foot {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
}

.rating-guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin: 0;
}

.rg-item {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #fff;
    border-left: 5px solid #64748b;
}

.rg-item dt {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.rg-item dd {
    margin: 0;
}

.rg-item dd em {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rg-0 { border-left-color: #64748b; }
.rg-1 { border-left-color: #dc2626; }
.rg-2 { border-left-color: #ea580c; }
.rg-3 { border-left-color: #2563eb; }
.rg-4 { border-left-color: #16a34a; }
.rg-5 { border-left-color: #059669; }

@media (max-width: 600px) {
    .rating-guide-list { grid-template-columns: 1fr; }
}

/* Cat Break Section */
#cat-break {
    text-align: center;
    padding: 0.5rem 0;
}

.cat-header h2 {
    margin: 0 0 0.25rem;
    color: var(--hu-red);
}

.cat-header p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cat-media-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.cat-stage {
    background: #0f172a;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-gif-wrap img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 8px;
    object-fit: contain;
}

.cat-caption {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.cat-yt-wrap {
    width: 100%;
}

#cat-video {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
}

.cat-lesson-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.cat-lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.cat-hu {
    font-size: 1.15rem;
    font-weight: 700;
    color: #14532d;
    margin: 0.25rem 0;
}

.cat-en {
    font-size: 0.95rem;
    color: #166534;
    margin: 0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal-panel {
    background: var(--surface);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.btn-close {
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
}

.modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sync-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.deck-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#deck-search-input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.deck-count-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.deck-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 48vh;
    overflow-y: auto;
}

.deck-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-subtle);
    text-align: left;
    font-size: 0.88rem;
}

.deck-item-main {
    flex: 1;
    min-width: 0;
}

.deck-item-front {
    font-weight: 700;
    color: var(--text);
}

.deck-item-back {
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.hidden {
    display: none !important;
}

/* Interactive Activity Plugins (Spatial Stage & Recipe Pot) */
.activity-stage-mount {
    margin: 0.75rem 0;
    text-align: left;
}

.spatial-stage-wrap,
.recipe-stage-wrap {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.spatial-header-bar,
.recipe-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.spatial-mode-pill {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

.spatial-legend {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.spatial-instruction {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #334155;
}

.spatial-canvas {
    position: relative;
    width: 100%;
    height: 295px;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 68%, #dcfce7 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.spatial-vector-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.spatial-landmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.landmark-caption {
    margin-top: -4px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.spatial-zones-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.spatial-zone {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.86);
    border: 2px dashed #64748b;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

.spatial-zone:hover,
.spatial-zone.zone-hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translate(-50%, -50%) scale(1.05);
}

.spatial-zone.zone-selected {
    border: 2.5px solid #16a34a;
    background: #dcfce7;
}

.spatial-zone.zone-start {
    border: 2.5px solid #d97706;
    background: #fef3c7;
}

.spatial-zone.zone-via {
    border: 2.5px solid #2563eb;
    background: #dbeafe;
}

.spatial-zone.zone-end {
    border: 2.5px solid #ce2939;
    background: #fee2e2;
}

.zone-en {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.zone-hu {
    font-size: 0.66rem;
    color: #475569;
    font-weight: 600;
}

.spatial-actor {
    position: absolute;
    left: 14%;
    top: 20%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    z-index: 6;
    transition: left 0.14s ease, top 0.14s ease, transform 0.1s ease;
    touch-action: none;
}

.spatial-actor.is-dragging {
    cursor: grabbing;
    transition: none;
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.22));
}

.spatial-actor-locked {
    cursor: default;
}

.spatial-actor-ghost {
    opacity: 0.48;
    pointer-events: none;
    z-index: 5;
}

.actor-badge {
    margin-top: -3px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.spatial-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.spatial-readout {
    font-size: 0.85rem;
    color: #334155;
}

.spatial-actions {
    display: flex;
    gap: 0.45rem;
}

/* Recipe Pot Layout */
.recipe-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0.85rem;
    align-items: center;
    margin-top: 0.5rem;
}

.recipe-pantry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.pantry-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.15s ease;
}

.pantry-card.pantry-active {
    border-color: #16a34a;
    background: #f0fdf4;
}

.pantry-emoji {
    font-size: 1.45rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.pantry-info {
    flex: 1;
    min-width: 0;
}

.pantry-hu {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
}

.pantry-en {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pantry-stepper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-step {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-step:hover {
    background: #cbd5e1;
}

.pantry-qty {
    font-size: 0.9rem;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
}

.recipe-pot-area {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px dashed #fb923c;
    border-radius: 12px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pot-svg-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pot-floating-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.pot-chip {
    background: #ffffff;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #9a3412;
}

.pot-summary-text {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #7c2d12;
}

/* Recipe Cooking Verbs Action Bar */
.recipe-actions-bar {
    margin-top: 0.65rem;
    padding: 0.55rem 0.7rem;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recipe-actions-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #9a3412;
}

.recipe-verb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.recipe-verb-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1.5px solid #fdba74;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.recipe-verb-btn:hover {
    background: #ffedd5;
}

.recipe-verb-btn.verb-active {
    background: #ea580c;
    border-color: #9a3412;
    color: #ffffff;
}

.recipe-verb-btn .verb-hu {
    font-size: 0.68rem;
    font-weight: 800;
    opacity: 0.9;
}

/* Spatial Map Backdrops & Actor Number Pill */
.spatial-backdrop-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.actor-number-pill {
    background: #0f172a;
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    margin-bottom: -4px;
    z-index: 2;
}

/* Spatial Fleet / Vehicle Selector Bar */
.spatial-fleet-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
}

.fleet-bar-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
    margin-right: 0.25rem;
}

.fleet-choice-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.14s ease;
}

.fleet-choice-btn:hover {
    border-color: #64748b;
    transform: translateY(-1px);
}

.fleet-choice-btn.fleet-choice-active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.fleet-sprite-wrap svg {
    width: 52px;
    height: 34px;
    display: block;
}

.fleet-hu-reveal {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0f172a;
    background: #fef08a;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

.spatial-actor-unselected {
    opacity: 0;
    pointer-events: none;
}

/* Color Studio Activity */
.badge-color {
    background: #fae8ff;
    color: #86198f;
}

.color-studio-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.color-palette-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
}

.color-swatch-slot {
    position: relative;
    display: inline-flex;
}

.color-swatch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.swatch-shade-caret {
    font-size: 0.72rem;
    color: #64748b;
    margin-left: -0.1rem;
    transition: transform 0.15s ease;
}

.color-swatch-slot:hover .swatch-shade-caret {
    color: #0f172a;
}

.swatch-shade-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    z-index: 40;
    animation: popup-fade-in 0.15s ease-out;
}

.swatch-shade-popup.hidden {
    display: none;
}

.shade-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: #f8fafc;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.shade-mini-btn:hover {
    border-color: #64748b;
    transform: scale(1.1);
}

.shade-mini-btn.shade-active {
    border-color: #0f172a;
    background: #e2e8f0;
}

.shade-mini-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.3);
    display: inline-block;
}

.shade-hu-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
}

@keyframes popup-fade-in {
    from { opacity: 0; transform: translate(-50%, -4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.color-swatch-btn:hover {
    transform: translateY(-1px);
    border-color: #64748b;
}

.color-swatch-btn.swatch-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
    transform: scale(1.06);
}

.swatch-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(15, 23, 42, 0.35);
    display: inline-block;
}

.swatch-hu-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
}

.color-scene-stage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    min-height: 148px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 2px solid #cbd5e1;
    border-radius: 14px;
}

.color-scene-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 2px dashed transparent;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-scene-item.item-paintable:hover {
    border-color: #6366f1;
    background: #ffffff;
    transform: translateY(-2px);
}

.color-scene-item.item-is-painted {
    border-style: solid;
    border-color: #0f172a;
    background: #ffffff;
}

.color-scene-item.item-reference {
    cursor: default;
    opacity: 0.95;
    background: rgba(254, 249, 195, 0.55);
    border: 1.5px solid #fde047;
}

.color-slot-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    background: #e2e8f0;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
}

.color-item-reveal {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    background: #fef08a;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

.sprite-size-sm {
    transform: scale(0.76);
    transform-origin: bottom center;
}

.sprite-size-lg {
    transform: scale(1.16);
    transform-origin: bottom center;
}

.lab-intro {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.miss-streak-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: #b45309;
}

/* =========================================================================
   PEDAGOGICAL MICRO-BREAK ENGINE (Stress-Free Active Rest)
   ========================================================================= */
#cat-break {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.15rem;
    overflow: hidden;
}

.break-transition-splash {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    opacity: 1;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    cursor: pointer;
}

.break-transition-splash.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
    animation: splashPopIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashPopIn {
    0% { transform: scale(0.92) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.splash-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.splash-card h2 {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.65rem;
    color: #0f172a;
}

.splash-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
}

.break-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.break-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.break-title-block h2 {
    margin: 0.25rem 0 0.15rem;
    font-size: 1.25rem;
    color: #0f172a;
}

.break-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.break-controls-cluster {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.break-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
    color: #0f172a;
}

.btn-xs {
    font-size: 0.75rem;
    padding: 0.1rem 0.25rem;
}

.break-Clean-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
}

.break-game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.break-game-tab {
    padding: 0.38rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.break-game-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.break-scaffolding-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.break-scaffolding-group select {
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
}

.break-game-canvas-mount {
    min-height: 270px;
}

.break-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.35rem;
}

.break-footer-note {
    font-size: 0.78rem;
    color: #64748b;
}

/* Gentle end-of-break nudge (break never auto-closes) */
.break-return-nudge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #fefce8;
    border: 1.5px solid #facc15;
    color: #713f12;
    animation: nudge-slide-in 0.4s ease-out;
}

.break-return-nudge .nudge-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.break-return-nudge .nudge-text strong {
    font-size: 0.95rem;
}

.break-return-nudge .nudge-actions {
    display: flex;
    gap: 0.45rem;
}

.break-timer-pill.timer-overtime {
    border-color: #facc15;
    background: #fefce8;
    color: #713f12;
}

.btn-nudge-pulse {
    animation: nudge-pulse 2.4s ease-in-out infinite;
}

@keyframes nudge-slide-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nudge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .break-return-nudge,
    .btn-nudge-pulse {
        animation: none;
    }
}

/* Game A: Vowel Blender (Magánhangzó-harmónia) */
.vb-stage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 295px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.vb-sky {
    position: relative;
    flex: 1;
    min-height: 180px;
    z-index: 10;
}

.vb-score-pill {
    display: inline-block;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    color: #334155;
}

.vb-hint-pill {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.vb-vowel-orb {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid #0f172a;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transition: background-color 0.2s ease, transform 0.15s ease;
    touch-action: none;
    z-index: 10;
}

.vb-orb-char {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.05;
}

.vb-orb-word {
    font-size: 0.65rem;
    font-weight: 700;
    color: #334155;
    margin-top: 0.1rem;
}

/* Level 1: Orb shares matching 3-way group background color */
.vb-stage[data-level="1"] .vb-vowel-orb[data-group="magas_reses"] {
    background: #bae6fd;
    border-color: #0284c7;
}

.vb-stage[data-level="1"] .vb-vowel-orb[data-group="magas_kerek"] {
    background: #e9d5ff;
    border-color: #9333ea;
}

.vb-stage[data-level="1"] .vb-vowel-orb[data-group="mely"] {
    background: #fed7aa;
    border-color: #ea580c;
}

.vb-orb-bounce {
    animation: vbGentleBounce 0.38s ease;
}

@keyframes vbGentleBounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -62%) scale(1.08); }
}

.vb-buckets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    z-index: 5;
}

.vb-center-chute {
    display: none;
}

@media (max-width: 640px) {
    .vb-sky {
        min-height: 165px;
    }
    .vb-vowel-orb {
        width: 76px;
        height: 76px;
    }
    .vb-orb-char {
        font-size: 1.55rem;
    }
    .vb-buckets-row {
        grid-template-columns: 1fr 48px 1fr;
        column-gap: 0;
        row-gap: 0.55rem;
        align-items: stretch;
    }
    .vb-bucket-magas-reses {
        grid-column: 1;
        grid-row: 1;
    }
    .vb-center-chute {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
        color: #94a3b8;
        font-size: 1.25rem;
        font-weight: 900;
        pointer-events: none;
    }
    .vb-bucket-magas-kerek {
        grid-column: 3;
        grid-row: 1;
    }
    .vb-bucket-mely {
        grid-column: 1 / 4;
        grid-row: 2;
        width: 68%;
        justify-self: center;
    }
    .vb-bucket {
        padding: 0.48rem 0.35rem;
    }
    .vb-bucket-title {
        font-size: 0.78rem;
    }
    .vb-bucket-sub {
        font-size: 0.72rem;
    }
    .vb-bucket-suffix {
        font-size: 0.62rem;
        padding: 0.08rem 0.35rem;
    }
}

.vb-bucket {
    padding: 0.6rem 0.5rem;
    border-radius: 12px;
    border: 2.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Levels 1 & 2: Buckets retain explicit 3-way group color coding */
.vb-stage[data-level="1"] .vb-bucket-magas-reses,
.vb-stage[data-level="2"] .vb-bucket-magas-reses {
    background: #e0f2fe;
    border-color: #0284c7;
}

.vb-stage[data-level="1"] .vb-bucket-magas-kerek,
.vb-stage[data-level="2"] .vb-bucket-magas-kerek {
    background: #f3e8ff;
    border-color: #9333ea;
}

.vb-stage[data-level="1"] .vb-bucket-mely,
.vb-stage[data-level="2"] .vb-bucket-mely {
    background: #fed7aa;
    border-color: #c2410c;
}

.vb-stage[data-level="1"] .vb-bucket-mely .vb-bucket-title,
.vb-stage[data-level="2"] .vb-bucket-mely .vb-bucket-title {
    color: #7c2d12;
}

.vb-bucket-title {
    font-size: 0.86rem;
    font-weight: 900;
    color: #0f172a;
}

.vb-bucket-sub {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
}

.vb-bucket-suffix {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-top: 0.1rem;
}

/* Level 3: Pure acoustic sorting — hide explicit vowel letter lists on buckets */
.vb-stage[data-level="3"] .vb-bucket-sub {
    display: none;
}

/* Game B: Suffix Stack (Toldalék-torony) */
.ss-stage {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.75rem;
}

.ss-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ss-word-preview {
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
}

.ss-legend-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ss-pill {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.ss-physics-well {
    position: relative;
    min-height: 170px;
    background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.ss-crane {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    pointer-events: none;
}

.ss-crane-hook {
    font-size: 0.7rem;
    font-weight: 800;
    background: #0f172a;
    color: #facc15;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
}

.ss-status-banner {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin: 1.3rem 0 0.45rem;
    text-align: center;
}

.ss-tower-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.ss-tower-slip {
    animation: ssSlipWobble 0.42s ease;
}

@keyframes ssSlipWobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-2deg); }
    75% { transform: translateX(10px) rotate(2deg); }
}

.ss-tower-block,
.ss-tray-block {
    min-width: 140px;
    padding: 0.32rem 0.75rem;
    border-radius: 8px;
    border: 2px solid #334155;
    background: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ss-tower-block-removable {
    cursor: pointer;
}

.ss-tower-block-removable:hover {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
    filter: brightness(0.97);
}

.ss-remove-chip {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-left: 0.2rem;
}

.ss-root-block {
    background: #fef08a;
    border-color: #854d0e;
    min-width: 168px;
}

/* Levels 2 & 3: Grammatical Category Color Coding */
.ss-stage[data-level="2"] .ss-cat-plural,
.ss-stage[data-level="3"] .ss-cat-plural {
    background: #bbf7d0;
    border-color: #166534;
    color: #14532d;
}

.ss-stage[data-level="2"] .ss-cat-possessive,
.ss-stage[data-level="3"] .ss-cat-possessive {
    background: #fecaca;
    border-color: #991b1b;
    color: #7f1d1d;
}

.ss-stage[data-level="2"] .ss-cat-locative,
.ss-stage[data-level="3"] .ss-cat-locative {
    background: #bae6fd;
    border-color: #075985;
    color: #0c4a6e;
}

.ss-block-hu {
    font-size: 0.92rem;
    font-weight: 900;
}

.ss-block-en {
    font-size: 0.66rem;
    font-weight: 700;
    opacity: 0.85;
}

.ss-tray-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ss-block-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ss-tray-block {
    min-width: 105px;
    cursor: pointer;
}

.ss-tray-block.ss-block-used {
    opacity: 0.65;
    border-style: dashed;
    cursor: pointer;
}

.ss-tray-block.ss-block-used:hover {
    opacity: 0.92;
}

.ss-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Game C: The 60-Second Stretch (Physical TPR Loop) */
.tpr-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 265px;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 14px;
    padding: 0.85rem;
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.tpr-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpr-figure-wrap {
    margin: 0.25rem 0;
}

.tpr-anim-shoulders .tpr-arm-left,
.tpr-anim-shoulders .tpr-arm-right {
    animation: tprShoulderRoll 2.2s ease-in-out infinite;
    transform-origin: 90px 76px;
}

.tpr-anim-reach .tpr-arm-left,
.tpr-anim-reach .tpr-arm-right {
    animation: tprReachHigh 2.4s ease-in-out infinite;
    transform-origin: 90px 76px;
}

.tpr-anim-neck .tpr-head {
    animation: tprHeadTurn 2.6s ease-in-out infinite;
    transform-origin: 90px 48px;
}

.tpr-anim-breathe .tpr-aura {
    animation: tprBreatheAura 3.2s ease-in-out infinite;
    transform-origin: 90px 90px;
}

.tpr-anim-hands .tpr-figure-svg {
    animation: tprGentleShake 1.6s ease-in-out infinite;
}

@keyframes tprShoulderRoll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes tprReachHigh {
    0%, 100% { transform: scaleY(1); }
    50% { transform: translateY(-12px) scaleY(1.08); }
}

@keyframes tprHeadTurn {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-6px) rotate(-5deg); }
    70% { transform: translateX(6px) rotate(5deg); }
}

@keyframes tprBreatheAura {
    0%, 100% { transform: scale(0.92); opacity: 0.5; }
    50% { transform: scale(1.14); opacity: 0.85; }
}

@keyframes tprGentleShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.tpr-hu-command {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
}

.tpr-en-meaning {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0369a1;
    margin-top: 0.15rem;
}

.tpr-grammar-note {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.2rem;
}

.tpr-cta-pill {
    margin-top: 0.45rem;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

/* ============================================================================
   INTERACTIVE DIALOG LAB (Physical Space Scene & Modern Chat Thread)
   ============================================================================ */
.dlg-activity-shell {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.4rem;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.8rem;
}

.dlg-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.dlg-level-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dlg-level-pill {
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dlg-level-pill.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.dlg-role-picker,
.dlg-level1-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dlg-role-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: #475569;
}

.dlg-role-btn {
    padding: 0.26rem 0.6rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.dlg-role-btn.active {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
}

/* Physical Scene Stage ('scene') */
.dlg-scene-stage {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dlg-scene-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dlg-scene-loc-badge {
    font-size: 0.8rem;
    font-weight: 900;
    color: #0f172a;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

.dlg-scene-props {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dlg-prop-chip {
    font-size: 0.74rem;
    font-weight: 800;
    background: #fef3c7;
    color: #78350f;
    border: 1.5px solid #f59e0b;
    padding: 0.14rem 0.52rem;
    border-radius: 999px;
}

.dlg-scene-canvas {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dlg-scene-svg {
    width: 100%;
    height: 105px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.dlg-scene-actors-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.6rem;
}

.dlg-scene-actor {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
}

.dlg-scene-actor.speaking {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px);
}

.dlg-actor-name {
    font-size: 0.82rem;
    font-weight: 900;
    color: #0f172a;
}

.dlg-actor-role {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.dlg-you-tag {
    font-size: 0.62rem;
    font-weight: 900;
    background: #2563eb;
    color: #ffffff;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.2rem;
}

/* Modern Chat Header ('chat') */
.dlg-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
}

.dlg-chat-avatars {
    display: flex;
    align-items: center;
}

.dlg-mini-avatar svg {
    width: 34px;
    height: 34px;
}

.dlg-chat-title-block {
    flex: 1;
}

.dlg-chat-title {
    font-size: 0.88rem;
    font-weight: 900;
}

.dlg-chat-sub {
    font-size: 0.7rem;
    color: #cbd5e1;
}

.dlg-chat-online-dot {
    font-size: 0.72rem;
    font-weight: 800;
    color: #4ade80;
}

/* Turn Feed & Chat Bubbles */
.dlg-turns-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 310px;
    overflow-y: auto;
    padding: 0.45rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
}

.dlg-feed-chat {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dlg-turn-row {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}

.dlg-turn-right {
    flex-direction: row-reverse;
}

.dlg-turn-avatar svg {
    width: 34px;
    height: 34px;
}

.dlg-turn-bubble {
    max-width: 82%;
    padding: 0.5rem 0.72rem;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dlg-turn-right .dlg-turn-bubble {
    background: #dbeafe;
    border-color: #93c5fd;
}

.dlg-turn-highlight .dlg-turn-bubble {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
}

.dlg-turn-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.dlg-turn-speaker {
    font-size: 0.76rem;
    color: #0f172a;
}

.dlg-turn-role {
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 700;
}

.btn-dlg-speak-turn {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.05rem 0.2rem;
}

.dlg-turn-hu {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.dlg-turn-en {
    font-size: 0.77rem;
    color: #475569;
    margin-top: 0.2rem;
    font-style: italic;
}

/* Rich Multimedia Chat Attachments */
.dlg-chat-attachment {
    margin: 0.3rem 0 0.4rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dlg-att-visual {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dlg-att-icon {
    font-size: 1.55rem;
}

.dlg-att-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: #0f172a;
}

.dlg-att-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
}

.dlg-att-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dlg-att-badge {
    font-size: 0.68rem;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
}

/* Active Learner Roleplay Prompt Panel (Levels 2 & 3) */
.dlg-prompt-panel {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dlg-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dlg-your-turn-badge {
    font-size: 0.8rem;
    font-weight: 900;
    color: #1d4ed8;
}

.dlg-turn-counter {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
}

.dlg-intent-cue {
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.dlg-turn-feedback {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
}

.dlg-choices-list {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.dlg-choice-btn {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 9px;
    border: 1.5px solid #93c5fd;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dlg-choice-btn:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.dlg-type-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dlg-accent-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.dlg-input-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dlg-type-input {
    flex: 1;
    min-width: 180px;
    padding: 0.48rem 0.7rem;
    border-radius: 8px;
    border: 1.5px solid #94a3b8;
    font-size: 0.92rem;
    font-weight: 700;
}

.dlg-complete-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #166534;
}

/* =====================================================================
   Story Adventure Engine UI
   ===================================================================== */
.story-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.story-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.story-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-progress-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.story-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.story-scene-banner {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}

.story-scene-title {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.story-narrative-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.narrative-hu-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.narrative-hu {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.4;
}

.speak-narrative-btn {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.speak-narrative-btn:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
}

.speak-narrative-btn.speaking {
    background: #fef08a;
    border-color: #facc15;
    color: #854d0e;
}

.btn-narrative-trans {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-narrative-trans:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.narrative-en {
    font-size: 0.86rem;
    color: #475569;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    font-style: normal;
}

.story-accent-bar {
    margin: 0.25rem 0 0.5rem 0;
    justify-content: flex-start;
}

.story-accent-key {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.1s ease, border-color 0.1s ease;
}

.story-accent-key:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.story-accent-key:active {
    background: #e2e8f0;
    transform: translateY(1px);
}

.story-step-canvas {
    min-height: 180px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
}

.story-typed-step {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.story-step-prompt {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.story-step-fmt {
    font-size: 0.78rem;
    color: #64748b;
}

.story-input-row {
    display: flex;
    gap: 0.5rem;
}

.story-input-row input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
}

.story-input-row input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.story-footer-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-feedback {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.story-feedback-exact {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.story-feedback-accent {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.story-feedback-miss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.story-feedback-hint {
    background: #f0fdf4;
    color: #15803d;
    border: 1px dashed #4ade80;
}

.story-nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.story-completed-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #86efac;
    border-radius: 14px;
}

.story-completed-icon {
    font-size: 2.5rem;
    margin-bottom: 0.35rem;
}

.story-completed-card h2 {
    color: #166534;
    margin: 0 0 0.4rem 0;
}

.story-completed-sub {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 1rem;
}

.story-completed-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.story-level-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

.story-level-pill {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.story-level-pill:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.story-level-pill.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.story-level-desc-bar {
    font-size: 0.76rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    font-weight: 600;
}

.story-reading-step {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.35rem 0;
}

.story-reading-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-reading-choices {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.story-reading-choice-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.12s ease;
}

.story-reading-choice-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.story-reading-choice-btn.selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.story-reading-choice-btn.choice-correct {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
}

.story-reading-choice-btn.choice-wrong {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.story-reading-choice-btn .choice-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.story-reading-choice-btn.selected .choice-letter {
    background: #2563eb;
    color: #ffffff;
}

/* =========================================================================
   WORKSHOP BUILDER ACTIVITY (🛠️ MŰHELY-KEA Flat-Pack Instructions, L1–L3)
   ========================================================================= */
.badge-builder {
    background: #fef3c7;
    color: #92400e;
}

.builder-stage-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.builder-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
}

.builder-brand-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.builder-brand-badge {
    background: #0284c7;
    color: #fde047;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
}

.builder-code-pill {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 800;
    background: #0f172a;
    color: #ffffff;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.builder-step-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.builder-level-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.builder-lvl-btn {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.builder-lvl-btn:hover {
    border-color: #64748b;
    color: #0f172a;
}

.builder-lvl-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.builder-top-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0.65rem;
    align-items: stretch;
}

.builder-blueprint-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 12px;
    box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.12);
}

.builder-blueprint-svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.builder-workbench-summary {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #334155;
    text-align: center;
    line-height: 1.35;
}

.builder-panel {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

.builder-panel-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.4rem;
}

.builder-material-grid,
.builder-pegboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem;
}

.builder-mat-btn,
.builder-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.4rem 0.45rem;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.builder-mat-btn:hover,
.builder-tool-btn:hover {
    border-color: #64748b;
    transform: translateY(-1px);
}

.builder-mat-btn.mat-active,
.builder-tool-btn.tool-active {
    border-color: #0284c7;
    background: #e0f2fe;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.builder-mat-en,
.builder-tool-en,
.builder-part-en {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.builder-hu-reveal {
    font-size: 0.72rem;
    font-weight: 700;
    color: #854d0e;
    background: #fef9c3;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
}

.builder-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.45rem;
}

.builder-part-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
}

.builder-part-card.part-active {
    border-color: #16a34a;
    background: #f0fdf4;
}

.builder-part-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.builder-part-info {
    flex: 1;
    min-width: 0;
}

.builder-l2-grammar-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

.builder-verb-row,
.builder-inst-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.builder-verb-btn,
.builder-inst-btn {
    padding: 0.32rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.12s ease;
}

.builder-verb-btn.verb-active,
.builder-inst-btn.inst-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.builder-l3-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.builder-l3-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.builder-cue-pill {
    font-size: 0.76rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e3a8a;
}

.builder-cue-tense {
    background: #fae8ff;
    color: #701a75;
}

.builder-l3-prompt {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.builder-l3-subhint {
    font-size: 0.78rem;
    color: #475569;
}

.builder-l3-solution {
    margin-top: 0.25rem;
    font-size: 0.84rem;
}

/* =========================================================================
   BODY, MORNING ROUTINE & FASHION STUDIO (🪞 Mirror & 🧥 Closet, L1–L3)
   ========================================================================= */
.badge-routine {
    background: #fce7f3;
    color: #9d174d;
}

.routine-stage-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.routine-brand-badge {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
}

.routine-brand-mirror {
    background: #0284c7;
    color: #ffffff;
}

.routine-brand-closet {
    background: #9333ea;
    color: #ffffff;
}

.routine-weather-pill {
    font-size: 0.74rem;
    font-weight: 800;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
}

.routine-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0.65rem;
    align-items: stretch;
}

.routine-canvas-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
}

.routine-figure-stage {
    position: relative;
    width: 254px;
    height: 258px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.routine-figure-svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.routine-hitboxes-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.routine-hitbox {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    padding: 0.16rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    border: 1.8px dashed #64748b;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
    transition: all 0.12s ease;
    z-index: 5;
}

.routine-hitbox:hover,
.routine-hitbox.hitbox-hover {
    border-style: solid;
    border-color: #0284c7;
    background: #e0f2fe;
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 10;
}

.routine-hitbox.hitbox-filled {
    border-style: solid;
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.routine-canvas-summary {
    margin-top: 0.35rem;
    font-size: 0.74rem;
    color: #334155;
    text-align: center;
    line-height: 1.35;
}

.routine-drag-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.1rem;
}

.routine-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.45rem;
}

.routine-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.4rem;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: all 0.12s ease;
}

.routine-item-card:hover {
    border-color: #64748b;
    transform: translateY(-1px);
}

.routine-item-card.item-selected {
    border-color: #0284c7;
    background: #e0f2fe;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.routine-item-card.item-placed {
    border-color: #16a34a;
    background: #f0fdf4;
}

.routine-item-en {
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.routine-hu-reveal {
    font-size: 0.68rem;
    font-weight: 700;
    color: #854d0e;
    background: #fef9c3;
    padding: 0.06rem 0.32rem;
    border-radius: 4px;
    text-align: center;
}

.routine-l2-box {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1.5px dashed #cbd5e1;
}

.routine-drag-ghost {
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
    z-index: 9999;
}

/* =========================================================================
   MYTH & MONSTER BUILDER ACTIVITY (🐉 SZÖRNY ÉS MÍTOSZ, L1–L3)
   ========================================================================= */

.monster-studio {
    background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 100%);
    border: 2px solid #d97706;
    border-radius: 14px;
    padding: 0.85rem;
    margin-top: 0.65rem;
    box-shadow: 0 6px 18px rgba(180, 83, 9, 0.08);
}

.monster-studio.framing-social {
    background: linear-gradient(180deg, #fdf2f8 0%, #f8fafc 100%);
    border-color: #db2777;
}

.monster-studio.framing-chat {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #2563eb;
}

.monster-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.monster-brand-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.monster-brand-pill {
    background: #78350f;
    color: #fef3c7;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
}

.monster-creature-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.monster-level-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.monster-lvl-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.24rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.monster-lvl-btn.active {
    background: #b45309;
    border-color: #78350f;
    color: #ffffff;
}

.monster-frame-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
}

.monster-frame-flyer {
    background: #fef3c7;
    border: 1.5px dashed #b45309;
    color: #78350f;
}

.monster-flyer-stamp {
    font-weight: 900;
    background: #92400e;
    color: #fffbeb;
    padding: 0.14rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.monster-flyer-title {
    font-weight: 800;
}

.monster-frame-social {
    background: #ffffff;
    border: 1.5px solid #fbcfe8;
}

.monster-social-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.monster-social-handle {
    font-weight: 800;
    color: #9d174d;
}

.monster-social-loc,
.monster-flyer-loc {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.monster-social-stats {
    font-size: 0.72rem;
    font-weight: 700;
    color: #be185d;
}

.monster-frame-chat {
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
    color: #1e3a8a;
}

.monster-chat-pill {
    font-weight: 800;
    font-size: 0.74rem;
}

.monster-chat-bubble-in {
    background: #ffffff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.monster-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.75rem;
    align-items: start;
}

.monster-figure-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem;
}

.monster-svg-wrap {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
}

.monster-stage-svg {
    width: 100%;
    height: auto;
    display: block;
}

.monster-slots-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.monster-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.32rem 0.4rem;
    font-size: 0.74rem;
    cursor: pointer;
}

.monster-slot-btn.active {
    background: #fef3c7;
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.monster-slot-btn.has-part {
    background: #f0fdf4;
    border-color: #86efac;
}

.monster-slot-btn.reveal-correct {
    background: #dcfce7;
    border-color: #16a34a;
}

.monster-slot-btn.reveal-target {
    border-color: #f59e0b;
    background: #fef9c3;
}

.slot-en {
    font-weight: 800;
    color: #0f172a;
}

.slot-placed-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #15803d;
}

.slot-empty-tag {
    font-size: 0.66rem;
    color: #94a3b8;
}

.monster-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.monster-section,
.monster-counter-box,
.monster-modifier-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem;
}

.monster-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.4rem;
}

.monster-clear-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.12rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.monster-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 0.35rem;
}

.monster-part-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.32rem 0.25rem;
    cursor: pointer;
}

.monster-part-btn.selected {
    background: #fef3c7;
    border-color: #d97706;
}

.monster-part-icon {
    width: 34px;
    height: 34px;
}

.monster-part-svg {
    width: 100%;
    height: 100%;
}

.monster-part-en {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
}

.monster-hu-reveal {
    font-size: 0.66rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    padding: 0.05rem 0.28rem;
    border-radius: 4px;
    text-align: center;
}

.monster-adjust-row {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 0.5rem;
}

.monster-counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding-top: 0.2rem;
}

.monster-cnt-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.monster-cnt-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: #b45309;
    min-width: 24px;
    text-align: center;
}

.monster-mod-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.monster-mod-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.monster-mod-btn.active {
    background: #fef3c7;
    border-color: #d97706;
}

.mod-swatch-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #0f172a;
    display: inline-block;
}

.monster-level2-panel {
    margin-top: 0.65rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.monster-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.monster-choice-btn {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
}

.monster-choice-btn.selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e3a8a;
}

.monster-choice-btn.reveal-correct {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
}

.monster-level3-panel {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.monster-l3-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.monster-l3-svg {
    width: 120px;
    flex-shrink: 0;
}

.monster-l3-cues {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.monster-l3-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.monster-cue-pill {
    background: #fef3c7;
    color: #78350f;
    font-size: 0.74rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
}

.monster-l3-en-cue {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.monster-l3-hint {
    font-size: 0.76rem;
    color: #475569;
}

.monster-accent-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.monster-accent-key {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.monster-l3-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
}

.monster-l3-model-answer {
    background: #dcfce7;
    border: 1.5px solid #16a34a;
    color: #14532d;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* =========================================================================
   GUIDED LEARNING PATH (🗺️ TANÖSVÉNY) & CONCEPT PRIMERS
   ========================================================================= */

.modal-panel-wide {
    max-width: 820px;
}

.curriculum-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.curriculum-toolbar .lab-intro {
    flex: 1;
    min-width: 240px;
    margin: 0;
}

.curriculum-unlock-toggle {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e3a8a;
    cursor: pointer;
}

.curriculum-module-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.curriculum-module-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    transition: all 0.15s ease;
}

.curriculum-module-card.recommended {
    border-color: #2563eb;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.curriculum-module-card.completed {
    border-color: #16a34a;
    background: #f0fdf4;
}

.curriculum-module-card.locked {
    opacity: 0.72;
    background: #f8fafc;
}

.curr-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.curr-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.curr-mod-num {
    font-size: 0.78rem;
    font-weight: 900;
    color: #0f172a;
}

.curr-rec-badge {
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.curr-done-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.curr-lock-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.curr-mod-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.curr-mod-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
}

.curr-step-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.15rem;
}

.curr-step-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
}

.curr-progress-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.curr-progress-bar {
    flex: 1;
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.curr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #16a34a);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.curr-progress-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    min-width: 72px;
    text-align: right;
}

.curr-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.guided-module-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guided-banner-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.guided-banner-title-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.guided-step-counter {
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
}

.guided-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.guided-banner-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.guided-nav-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
}

.guided-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.guided-step-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex: 1;
}

.guided-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.guided-step-dot.completed {
    background: #dcfce7;
    border-color: #16a34a;
}

.guided-step-dot.active {
    background: #2563eb;
    border-color: #1e3a8a;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.primer-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.primer-summary {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #1e293b;
}

.primer-examples-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.primer-examples-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #334155;
}

.primer-example-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}

.primer-hu {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.primer-en {
    font-size: 0.8rem;
    color: #475569;
}

.primer-tip-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #14532d;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.84rem;
}

.primer-actions-footer {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    body { padding: 0.4rem; }
    #app { padding: 0.75rem; border-radius: 14px; }
    .app-header { padding-bottom: 0.65rem; margin-bottom: 0.75rem; }
    .brand-row { gap: 0.5rem; }
    .flag-pill { font-size: 1.45rem; }
    .brand-title { gap: 0.45rem; }
    .brand-title h1 { font-size: 1.15rem; }
    .subtitle { display: none; }
    .btn-label-full,
    .stat-label-full { display: none; }
    .btn-label-short,
    .stat-label-short { display: inline; }
    .header-actions {
        width: 100%;
        gap: 0.3rem;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .header-actions .btn-sm {
        padding: 0.38rem 0.48rem;
        font-size: 0.76rem;
        flex: 1 1 auto;
        justify-content: center;
        white-space: nowrap;
    }
    .header-actions .btn-icon-settings {
        flex: 0 0 auto;
        padding: 0.38rem 0.52rem;
        font-size: 0.92rem;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
        margin: 0.55rem 0 0.5rem;
    }
    .stat-pill {
        padding: 0.28rem 0.2rem;
        border-radius: 8px;
    }
    .stat-label { font-size: 0.62rem; letter-spacing: 0.02em; }
    .stat-value { font-size: 0.98rem; }
    .break-progress-wrap { margin: 0.5rem 0 0.5rem; }
    .break-progress-labels { font-size: 0.72rem; gap: 0.35rem; flex-wrap: wrap; }
    .interleave-badge { font-size: 0.68rem; padding: 0.1rem 0.4rem; }
    .study-options {
        gap: 0.45rem;
        padding: 0.45rem 0.55rem;
    }
    .option-group {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 0.78rem;
    }
    .option-group select {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        font-size: 0.8rem;
    }
    .rating-buttons { grid-template-columns: repeat(3, 1fr); }
    .choices-grid { grid-template-columns: 1fr; }
    .card-text { font-size: 1.25rem; padding: 0.9rem; }
    .recipe-layout { grid-template-columns: 1fr; }
    .recipe-pantry { grid-template-columns: 1fr; }
    .builder-top-grid { grid-template-columns: 1fr; }
    .builder-l2-grammar-bar { grid-template-columns: 1fr; }
    .routine-main-grid { grid-template-columns: 1fr; }
    .monster-main-grid { grid-template-columns: 1fr; }
    .monster-adjust-row { grid-template-columns: 1fr; }
    .spatial-canvas { height: 260px; }
}

/* --- Plural Builder & Number Forge Mindful Breaks --- */
.pb-stage, .nf-stage {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
}

.pb-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pb-harmony-legend, .nf-place-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pb-leg-pill, .nf-leg-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1.5px solid;
}

.pb-leg-mely, .pb-chip-mely { background: #ffedd5; border-color: #ea580c; color: #9a3412; }
.pb-leg-magas_reses, .pb-chip-magas_reses { background: #e0f2fe; border-color: #0284c7; color: #075985; }
.pb-leg-magas_kerek, .pb-chip-magas_kerek { background: #f3e8ff; border-color: #9333ea; color: #6b21a8; }

.pb-v-mely { color: #ea580c; font-weight: 900; text-decoration: underline; }
.pb-v-magas_reses { color: #0284c7; font-weight: 900; text-decoration: underline; }
.pb-v-magas_kerek { color: #9333ea; font-weight: 900; text-decoration: underline; }
.pb-v-muted { text-decoration: none; opacity: 0.7; }

.pb-prompt-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
}

.pb-graphic { font-size: 2.8rem; line-height: 1; }

.pb-singular-btn {
    background: none;
    border: none;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
}

.pb-en-gloss { font-size: 0.9rem; color: #475569; font-weight: 600; }

.pb-equation-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px dashed #cbd5e1;
}

.pb-slot {
    min-width: 64px;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
}

.pb-slot.filled, .pb-slot-k {
    background: #ecfdf5;
    border-color: #16a34a;
    color: #166534;
}

.pb-plus, .pb-equals { font-weight: 900; color: #64748b; font-size: 1.1rem; }

.pb-result-word {
    font-size: 1.2rem;
    font-weight: 800;
    color: #334155;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    background: #f1f5f9;
}

.pb-result-word.solved {
    background: #dcfce7;
    color: #15803d;
}

.pb-choices-area { display: flex; flex-direction: column; gap: 0.65rem; }
.pb-choice-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; justify-content: center; }
.pb-choice-label { font-size: 0.85rem; font-weight: 700; color: #475569; }
.pb-chip-row, .nf-chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }

.pb-chip, .nf-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pb-chip.selected { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35); border-color: #2563eb; }
.nf-chip:disabled { opacity: 0.35; cursor: not-allowed; }

.nf-role-th { background: #f3e8ff; border-color: #9333ea; color: #6b21a8; }
.nf-role-h  { background: #dcfce7; border-color: #16a34a; color: #166534; }
.nf-role-t  { background: #e0f2fe; border-color: #0284c7; color: #075985; }
.nf-role-o  { background: #fee2e2; border-color: #dc2626; color: #991b1b; }

.nf-prompt-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
}

.nf-dir-badge { font-size: 0.78rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.nf-prompt-main { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; font-size: 1.6rem; font-weight: 900; }
.nf-tok { padding: 0.15rem 0.4rem; border-radius: 8px; border: 1.5px solid transparent; }

.nf-answer-tray {
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    background: #ffffff;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
}

.nf-tray-placeholder { color: #94a3b8; font-weight: 600; font-size: 0.9rem; }
.nf-chip-controls, .nf-typed-area { display: flex; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 0.35rem; }
.nf-typed-input { padding: 0.55rem 0.8rem; border-radius: 10px; border: 1.5px solid #cbd5e1; font-size: 1rem; font-weight: 700; min-width: 220px; }

/* --- Inline Concept Visual Diagrams for Spatial & Locative Cloze Cards --- */
.card-visual-slot {
    display: flex;
    justify-content: center;
    margin: 0.35rem 0 0.55rem;
}

.concept-visual-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

/* --- Guided Path vs. Review Mode Clean Toolbar Toggle --- */
#app.guided-path-active .toolbar {
    display: none !important;
}

#app.guided-path-active #btn-open-curriculum {
    box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.35);
}

/* --- Settings Modal (Voice, Audio, Direction, Deck & Sync) --- */
.modal-panel-compact {
    max-width: 480px;
}

.settings-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.settings-section-title {
    margin: 0 0 0.15rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.settings-row select {
    flex: 0 1 230px;
    min-width: 0;
    max-width: 100%;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.86rem;
    color: var(--text);
    font-weight: 500;
}

.settings-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0;
}

.settings-toggle-row input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--hu-green);
    cursor: pointer;
    flex-shrink: 0;
}

.settings-full-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}

/* --- Two-Stage Level-Aware Vocab Morphology Drill --- */
.morphology-stage-slot {
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.morph-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.morph-title { font-size: 0.85rem; font-weight: 800; color: #0f172a; }
.morph-lvl-pills { display: flex; gap: 0.25rem; }
.morph-lvl-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
}
.morph-lvl-pill.active { background: #1e293b; color: #ffffff; border-color: #1e293b; }

.morph-prompt-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
}

.morph-pronoun-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
}

.morph-choices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.morph-chip-btn {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

.morph-chip-mely { background: #ffedd5; border-color: #ea580c; color: #9a3412; }
.morph-chip-magas_reses { background: #e0f2fe; border-color: #0284c7; color: #075985; }
.morph-chip-magas_kerek { background: #f3e8ff; border-color: #9333ea; color: #6b21a8; }

.morph-typed-row { display: flex; gap: 0.45rem; justify-content: center; }
.morph-typed-input { flex: 1; max-width: 260px; padding: 0.5rem 0.75rem; border-radius: 9px; border: 1.5px solid #cbd5e1; font-size: 1rem; font-weight: 700; }

.morphology-table-box {
    margin-top: 0.65rem;
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    text-align: left;
}

.morphology-table-box summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 0.86rem;
    color: #334155;
}

.morphology-table-body {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.35rem;
    font-size: 0.84rem;
}

.morph-table-row {
    padding: 0.3rem 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
}

/* --- Interactive Onboarding Tutorial Modal --- */
.tutorial-modal-panel {
    max-width: 560px;
}

.tut-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tut-step-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.tut-dots-bar {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem 0.2rem;
}

.tut-dot {
    width: 28px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.tut-dot.done {
    background: #86efac;
}

.tut-dot.active {
    background: var(--hu-green);
    width: 40px;
}

.tut-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tut-badge {
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #166534;
    background: #dcfce7;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.tut-heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.tut-hu {
    color: var(--hu-red);
}

.tut-lead {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tut-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.tut-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--surface-subtle);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tut-tile:hover {
    border-color: #94a3b8;
}

.tut-tile.active {
    border-color: var(--hu-green);
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.tut-tile-icon {
    font-size: 1.45rem;
    line-height: 1;
}

.tut-tile-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.tut-callout {
    padding: 0.8rem 0.95rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: 4px solid var(--hu-green);
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text);
}

.tut-callout-sub {
    margin-top: 0.45rem;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.tut-mini-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
}

.tut-mini-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.tut-mini-en {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tut-mini-hu {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text);
}

.tut-mini-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tut-input-row {
    display: flex;
    gap: 0.45rem;
}

.tut-text-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    border: 1.5px solid #cbd5e1;
    font-size: 1rem;
    font-weight: 700;
}

.tut-accent-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.tut-accent-btn {
    min-width: 34px;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

.tut-accent-highlight {
    border-color: var(--hu-red);
    background: #fef2f2;
    color: var(--hu-red);
}

.tut-audio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.tut-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.tut-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.tut-swatch::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--swatch, #dc2626);
    display: inline-block;
}

.tut-swatch.active {
    border-color: var(--swatch, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.tut-house-row {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
}

.tut-house-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.12s ease;
}

.tut-house-btn:active {
    transform: scale(0.95);
}

.tut-house-btn.painted {
    border-style: solid;
    color: var(--text);
}

.tut-choice-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tut-choice-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.tut-choice-btn {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all 0.12s ease;
}

.tut-choice-row .tut-choice-btn {
    flex: 1 1 auto;
    text-align: center;
}

.tut-choice-btn.correct {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

.tut-choice-btn.wrong {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b;
}

.tut-verb-equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
}

.tut-eq-pronoun {
    color: #2563eb;
}

.tut-eq-stem {
    color: var(--text);
}

.tut-eq-slot {
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1.5px dashed #94a3b8;
    min-width: 44px;
    text-align: center;
}

.tut-eq-slot.solved,
.tut-eq-result.solved {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.tut-feedback {
    padding: 0.6rem 0.75rem;
    border-radius: 9px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.tut-feedback-neutral {
    background: #f1f5f9;
    color: #334155;
}

.tut-feedback-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.tut-feedback-warn {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.tut-rating-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.tut-rate-pill {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.45rem;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
}

.tut-rate-pill strong {
    font-size: 0.82rem;
}

.tut-rate-pill.active.tut-rate-low {
    border-color: #ea580c;
    background: #ffedd5;
}

.tut-rate-pill.active.tut-rate-mid {
    border-color: #2563eb;
    background: #dbeafe;
}

.tut-rate-pill.active.tut-rate-high {
    border-color: #16a34a;
    background: #dcfce7;
}

.tut-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.tut-launch-btn {
    flex: 1 1 200px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    justify-content: center;
}

.tut-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-top: 1px solid var(--border);
    background: var(--surface-subtle);
    border-radius: 0 0 16px 16px;
}

.tut-footer-nav {
    display: flex;
    gap: 0.45rem;
}

.curriculum-tutorial-card {
    border-left: 4px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.tut-level-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tut-level-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tut-lvl-pill {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tut-lvl-pill.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.tut-num-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 900;
}

.tut-num-tens {
    color: #0284c7;
    background: #e0f2fe;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

.tut-num-ones {
    color: #dc2626;
    background: #fee2e2;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

.tut-nf-chip-tens {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
}

.tut-nf-chip-ones {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

/* --- Contextual Vocab Graduation (Stages 1–3), Dual-Coding Visuals & Tap-to-Gloss --- */
.vocab-visual-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 2.35rem;
    line-height: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.ctx-blank-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.12rem 0.62rem;
    margin: 0 0.15rem;
    background: #fef9c3;
    border: 2px dashed #ca8a04;
    border-radius: 10px;
    color: #854d0e;
    font-size: 0.92em;
    font-weight: 800;
    vertical-align: baseline;
}

.ctx-blank-hu-cue {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
    cursor: pointer;
}

.ctx-blank-icon {
    font-size: 1.05em;
    line-height: 1;
}

.ctx-cloze-filled {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.1rem 0.55rem;
    background: #dcfce7;
    border: 1.5px solid #16a34a;
    border-radius: 9px;
    color: #166534;
    font-weight: 800;
}

.ctx-target-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.08rem 0.5rem;
    background: #dbeafe;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    color: #1e3a8a;
    font-weight: 800;
}

.ctx-gloss-word {
    appearance: none;
    background: none;
    border: none;
    border-bottom: 1.5px dotted #64748b;
    padding: 0 0.06rem;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    border-radius: 4px 4px 0 0;
}

.ctx-gloss-word:hover,
.ctx-gloss-word.active {
    background: #e0f2fe;
    color: #0369a1;
    border-bottom-color: #0284c7;
}

.ctx-scaffold-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0.7rem;
    margin: -0.2rem 0 0.45rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ctx-gloss-readout {
    font-weight: 600;
}

.ctx-peek-en-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.ctx-peek-en-btn:hover {
    background: #f1f5f9;
}

.ctx-en-peeked {
    font-weight: 700;
    color: #1e293b;
}

.ctx-back-sentence {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.ctx-back-en {
    font-size: 0.96rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.ctx-back-lemma {
    font-size: 0.84rem;
    color: var(--text-muted);
    padding-top: 0.3rem;
    border-top: 1px dashed #cbd5e1;
}

@media (max-width: 640px) {
    .tut-rating-pills {
        grid-template-columns: 1fr;
    }
    .tut-heading {
        font-size: 1.08rem;
    }
    .tut-mini-hu {
        font-size: 1.35rem;
    }
}

/* =========================================================================
   ízészó — Ház (Home Hub), Focused Section Views & Calm Break Reminder
   ========================================================================= */

.brand-home-btn {
    background: transparent;
    border: none;
    padding: 0.2rem 0.4rem;
    margin: -0.2rem -0.4rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: background-color 0.15s ease;
}

.brand-home-btn:hover {
    background: var(--surface-subtle);
}

.brand-wordmark {
    font-size: 1.55rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    color: var(--text);
}

.header-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.hub-view {
    animation: hubFadeIn 0.18s ease-out;
}

@keyframes hubFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ház Hero Resume Card */
.hub-resume-slot {
    margin-bottom: 1.35rem;
}

.hub-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1f2 0%, #f8fafc 55%, #ecfdf5 100%);
    border: 1.5px solid #fecdd3;
    box-shadow: 0 4px 14px -4px rgba(206, 41, 57, 0.1);
}

.hub-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hu-red);
    margin-bottom: 0.25rem;
}

.hub-hero-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
}

.hub-hero-sub {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: #475569;
}

.hub-hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.hub-section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.hub-section-heading {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.hub-section-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Ház Section Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.1rem 1.15rem;
    border-radius: 13px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.hub-card:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.1);
}

.hub-card-wide {
    grid-column: 1 / -1;
}

.hub-card-guided {
    border-top: 4px solid var(--hu-red);
}

.hub-card-review {
    border-top: 4px solid #2563eb;
}

.hub-card-tracks {
    border-top: 4px solid var(--hu-green);
}

.hub-card-stories {
    border-top: 4px solid #7c3aed;
}

.hub-card-labs {
    border-top: 4px solid #d97706;
}

.hub-card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.hub-card-icon {
    font-size: 1.65rem;
    line-height: 1;
}

.hub-card-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: #334155;
}

.hub-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
}

.hub-card-desc {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #475569;
    flex: 1;
}

.hub-card-cta {
    font-size: 0.84rem;
    font-weight: 750;
    color: var(--primary);
}

/* Section Page Headers & Grids (#/guided, #/tracks, #/stories, #/labs) */
.section-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.section-page-title {
    margin: 0 0 0.3rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text);
}

.section-page-sub {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
    max-width: 580px;
}

.tracks-group-heading {
    margin: 1.1rem 0 0.65rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: #1e293b;
}

.tracks-grid,
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.track-item-card,
.story-shelf-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    gap: 0.55rem;
}

.track-item-top,
.story-shelf-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.track-item-title,
.story-shelf-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
}

.track-item-desc {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.42;
    color: #475569;
    flex: 1;
}

.track-item-footer,
.story-shelf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px dashed #cbd5e1;
}

.story-shelf-actions {
    justify-content: flex-end;
}

.story-shelf-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.track-item-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Active Section Context Banner (Tracks, Stories, Labs) */
.section-context-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.95rem;
    border-radius: 11px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
}

.section-context-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-context-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Calm, Non-Blocking Mindful Break Reminder Banner */
.mindful-break-reminder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #064e3b;
}

.mbr-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mbr-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.mbr-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mbr-copy strong {
    font-size: 0.9rem;
}

.mbr-copy span {
    font-size: 0.8rem;
    color: #047857;
}

.mbr-actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hub-hero-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .hub-grid,
    .tracks-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .header-section-pill {
        display: none;
    }

    .mindful-break-reminder {
        flex-direction: column;
        align-items: stretch;
    }

    .mbr-actions {
        justify-content: flex-end;
    }
}

/* =========================================================================
   👩‍🏫 Live Tutor Co-Pilot Console & Share Modal
   ========================================================================= */

#app.tutor-console-active {
    max-width: 1080px;
}

.companion-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1.5px solid #34d399;
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.companion-live-pill:hover {
    background: #d1fae5;
}

.hub-tutor-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
    padding: 0.85rem 1.05rem;
    border-radius: 12px;
    background: var(--surface-subtle);
    border: 1px dashed #cbd5e1;
    font-size: 0.85rem;
    color: #334155;
}

.hub-tutor-bar-copy {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
}

.companion-privacy-note {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #334155;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.companion-status-banner {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.companion-url-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0.9rem;
}

.companion-footer-actions {
    display: flex;
    justify-content: flex-end;
}

.copilot-toast {
    padding: 0.6rem 0.95rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    color: #1e3a8a;
    font-size: 0.86rem;
    font-weight: 700;
}

/* Tutor Console Layout */
.tutor-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tutor-top-left,
.tutor-top-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.tutor-peer-status {
    font-size: 0.85rem;
    font-weight: 750;
    color: #334155;
}

.tutor-console-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.1rem;
    align-items: start;
}

.tutor-stage-panel,
.tutor-copilot-panel {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 1rem;
}

.tutor-breadcrumb-bar {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.7rem;
}

.tutor-live-card-box {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
    min-height: 210px;
}

.tutor-empty-state {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tutor-live-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tutor-live-prompt {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.7rem;
    line-height: 1.35;
}

.tutor-live-stream {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    color: #1e293b;
}

.tutor-answer-key-box {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 11px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 0.86rem;
    line-height: 1.45;
}

.tutor-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tutor-tab {
    flex: 1;
    padding: 0.5rem 0.65rem;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    color: #475569;
    cursor: pointer;
}

.tutor-tab.active {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1d4ed8;
}

.tutor-pane-hint {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    color: #475569;
}

.tutor-sub-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 750;
    color: #334155;
    margin-bottom: 0.35rem;
}

.tutor-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    font-family: inherit;
}

.tutor-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.tutor-search-results {
    max-height: 220px;
    margin-bottom: 0.9rem;
}

.tutor-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.tutor-item-main {
    min-width: 0;
    flex: 1;
}

.tutor-item-front {
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--text);
}

.tutor-item-sub {
    font-size: 0.77rem;
    color: var(--text-muted);
}

.tutor-quick-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 190px;
    overflow-y: auto;
}

.tutor-list-empty {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 0.6rem 0.2rem;
}

@media (max-width: 820px) {
    .tutor-console-grid {
        grid-template-columns: 1fr;
    }
}
