*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --nav-bg: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 15px;
}

/* === NAVIGATION === */
.nav {
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-brand {
    color: #f1f5f9;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 0.2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #f1f5f9;
    background: rgba(255,255,255,0.08);
}

.nav-links a.active {
    color: #e2e8f0;
    background: rgba(255,255,255,0.1);
}

.nav-links a.nav-teacher {
    color: #7dd3fc;
    border: 1px solid rgba(125,211,252,0.25);
    margin-left: 0.5rem;
}

.nav-links a.nav-teacher:hover {
    color: #e0f2fe;
    background: rgba(125,211,252,0.1);
    border-color: rgba(125,211,252,0.5);
}

.nav-links a.nav-teacher.active {
    color: #e0f2fe;
    background: rgba(125,211,252,0.15);
    border-color: rgba(125,211,252,0.4);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-outline {
    background: var(--surface);
    color: #374151;
    border-color: #d1d5db;
}
.btn-outline:hover { background: #f9fafb; border-color: #9ca3af; }

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

/* === TABLE === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

thead {
    background: #1e293b;
    color: #f1f5f9;
}

th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    padding: 0.5625rem 1rem;
    border-bottom: 1px solid var(--border);
    color: #334155;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #f8fafc; }

/* === DAILY ASSIGNMENT BADGES === */
.daily-badge {
    display: inline-block;
    margin-top: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.daily-badge--remaining { background: #fef3c7; color: #92400e; }
.daily-badge--done      { background: #d1fae5; color: #065f46; }

/* === TYPOGRAPHY === */
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }

p { margin-bottom: 0.875rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

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

code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

/* === LANDING SCREEN === */

.landing {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.landing-card h1 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.landing-card p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-status {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* === HOME PAGE === */

.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.hero-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1.75rem;
}

.hero h1 {
    color: #0f172a;
    margin-bottom: 0.625rem;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 3rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 780px;
    margin: 0 auto;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.app-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: #93c5fd;
    color: inherit;
}

.app-card-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
}

.app-card h2 {
    font-size: 1.125rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.app-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

.footer-strip {
    margin-top: 5rem;
    background: #0f172a;
    color: #475569;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.footer-strip strong { color: #94a3b8; }

/* === APP HEADER (shared by KenKen + SAT) === */

.game-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.game-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.auth-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.timer-display {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.game-footer {
    padding: 0.875rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* === KENKEN === */

#container {
    padding: 2rem;
    min-height: 400px;
}

#playerData {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

#submitMessage {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

.kk-cell {
    cursor: pointer;
    transition: filter 0.12s;
}

.kk-cell:hover { filter: brightness(0.91); }
.kk-cell:focus { outline: none; }

.kk-answer-btn,
.kk-memo-btn {
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
    font-family: inherit;
}

.kk-answer-btn:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

.kk-memo-btn:hover {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

/* === SAT PRACTICE === */

.quiz-area {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.begin-bar {
    text-align: center;
    margin-bottom: 2rem;
}

#Question {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.65;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

#questionDiv {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.answer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.answer-option:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.answer-option input[type="radio"] {
    margin-top: 0.1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.answer-label-letter {
    font-weight: 700;
    color: var(--muted);
    font-size: 0.875rem;
    flex-shrink: 0;
    width: 1rem;
}

label[id$=" Button"] {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    display: block;
}

#Rationale {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    margin-top: 1rem;
}

.action-bar {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.action-bar .btn-ghost-small {
    font-size: 0.8125rem;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
}

.action-bar .btn-ghost-small:hover {
    color: var(--text);
    background: #f1f5f9;
}

/* === DARK HERO PAGE HEADER (Skill Maps index + ReadMe) === */

.page-header {
    background: #0f172a;
    padding: 3.5rem 2rem;
    text-align: center;
}

.page-header h1 { color: #f1f5f9; margin-bottom: 0.4rem; }
.page-header p { color: #64748b; font-size: 0.9375rem; }

/* === SKILL MAPS INDEX === */

.maps-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem 5rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    gap: 1.25rem;
    justify-content: center;
}

.map-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.map-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: #93c5fd;
    color: inherit;
}

.map-card-dept {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
    display: block;
}

.map-card h2 {
    font-size: 1.0625rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.map-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.map-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.map-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.coming-soon {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.75rem;
}

/* === README === */

.toc {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 0;
    position: sticky;
    top: 56px;
    z-index: 90;
}

.toc-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.toc-inner a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}

.toc-inner a:hover {
    color: var(--accent);
    background: #eff6ff;
}

.content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 6rem;
}

.section { margin-bottom: 4rem; }

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 0 0 4rem;
}

.callout {
    background: #eff6ff;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.callout p { margin: 0; color: #1e40af; font-weight: 500; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.privacy-section h2 {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.privacy-section h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy-meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.policy-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
}

/* === SKILL MAP VISUALIZATION === */

body.skill-map {
    background: #0b0b1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

#app {
    display: flex;
    width: 100vw;
    height: calc(100vh - 56px);
}

#web-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.15s ease;
}

#web-container.fading { opacity: 0; }

#web-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes skillNodeIn {
    from {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.topic-node.skill-entering {
    animation: skillNodeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

#page-title {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    white-space: nowrap;
}

#back-btn {
    display: none;
    position: absolute;
    top: 18px;
    left: 20px;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 20;
}

#back-btn.visible { display: flex; }

#back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

#svg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#center-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 148px;
    height: 148px;
    background: radial-gradient(circle at 40% 35%, #1e1e4a, #0f0f28);
    border: 2px solid rgba(180, 180, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #e8e8ff;
    z-index: 10;
    box-shadow:
        0 0 0 8px rgba(100, 100, 255, 0.05),
        0 0 40px rgba(100, 100, 255, 0.15);
    transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

#center-node.sub-view {
    cursor: pointer;
    font-size: 11px;
}

.topic-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s ease;
}

.topic-node:hover { transform: translate(-50%, -50%) scale(1.07); }

.node-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 2px solid var(--nc);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--nc);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 14px var(--nc-glow);
}

.topic-node:hover .node-circle,
.topic-node.active .node-circle {
    background: var(--nc-bg);
    box-shadow: 0 0 28px var(--nc-glow), 0 0 60px var(--nc-glow);
}

.topic-node.skill-node .node-circle {
    width: 72px;
    height: 72px;
    font-size: 15px;
}

.node-circle .material-symbols-rounded {
    font-size: 34px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    color: inherit;
}

.topic-node.skill-node .node-circle .material-symbols-rounded {
    font-size: 26px;
}

.node-label {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 112px;
    line-height: 1.4;
    transition: color 0.25s;
}

.topic-node:hover .node-label,
.topic-node.active .node-label { color: rgba(255, 255, 255, 0.9); }

#info-panel {
    width: 0;
    min-width: 0;
    flex-shrink: 0;
    background: #10102b;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: width 0.3s ease-out;
}

#info-panel.open {
    width: 340px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

#panel-inner {
    padding: 20px 26px 32px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#info-panel.open #panel-inner {
    opacity: 1;
    transition-delay: 0.18s;
}

#panel-header {
    display: flex;
    justify-content: flex-end;
}

#close-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

#close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#panel-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

.panel-topic-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.panel-accent-bar {
    display: block;
    height: 3px;
    width: 36px;
    border-radius: 2px;
}

.panel-description {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin-bottom: 0;
}

.cluster-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cluster-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.cluster-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cluster-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* === SAT SESSION SUMMARY === */

#session-view {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.session-loading {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9375rem;
}

.session-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.session-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.session-date {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.session-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.session-total-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.session-total-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.session-total-label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.session-back-btn {
    font-size: 0.875rem;
}

.session-empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9375rem;
    margin-top: 1.5rem;
}

.session-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.session-domain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.session-domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 0.875rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.session-domain-name {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.session-domain-tally {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.session-skills {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.session-skill-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.session-skill-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.session-skill-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.session-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.session-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    gap: 0.25rem;
}

.pill-good { background: #dcfce7; color: #15803d; }
.pill-ok   { background: #fef9c3; color: #a16207; }
.pill-bad  { background: #fee2e2; color: #b91c1c; }
