:root {
    --bg: #f2f4f7;
    --bg-strong: #e8edf4;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.58);
    --text: #111318;
    --muted: #667085;
    --muted-strong: #475467;
    --line: rgba(15, 23, 42, 0.08);
    --accent: #0a84ff;
    --accent-strong: #0066cc;
    --accent-soft: rgba(10, 132, 255, 0.10);
    --success-soft: rgba(52, 199, 89, 0.12);
    --danger: #ff453a;
    --danger-soft: rgba(255, 69, 58, 0.10);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --nav-offset: 122px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, rgba(10, 132, 255, 0.16), transparent 28%),
        radial-gradient(circle at 100% 20%, rgba(52, 199, 89, 0.10), transparent 22%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 48%, var(--bg-strong) 100%);
    padding: 24px;
    overscroll-behavior-y: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    max-width: 1440px;
    margin: 0 auto;
    display: block;
}

.workspace-landing-active .study-timer-widget,
.workspace-landing-active .study-timer-restore,
.workspace-landing-active .smart-reminder-host,
.workspace-landing-active .main {
    display: none !important;
}

.workspace-landing {
    display: grid;
    gap: 22px;
    padding-bottom: 26px;
}

.workspace-landing[hidden] {
    display: none;
}

.workspace-landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: stretch;
    min-height: 440px;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 38px;
    background:
        radial-gradient(circle at 85% 12%, rgba(10, 132, 255, 0.18), transparent 28%),
        radial-gradient(circle at 16% 86%, rgba(16, 185, 129, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,248,252,0.88));
    border: 1px solid rgba(255, 255, 255, 0.74);
    overflow: hidden;
}

.workspace-landing-hero::after {
    content: "";
    position: absolute;
    right: clamp(28px, 6vw, 72px);
    top: clamp(28px, 5vw, 58px);
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(10,132,255,0.18) 54%, transparent 74%);
    pointer-events: none;
}

.workspace-landing-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
}

.workspace-landing-copy h1 {
    max-width: 780px;
    margin: 8px 0 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -0.075em;
}

.workspace-landing-copy p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.workspace-landing-side {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: end;
}

.workspace-landing-profile {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.workspace-landing-profile[hidden] {
    display: none;
}

.workspace-landing-profile span,
.workspace-landing-profile small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.workspace-landing-profile strong {
    color: var(--text);
    font-size: 28px;
    letter-spacing: -0.03em;
}

.workspace-landing-journey {
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.workspace-landing-journey span {
    display: block;
    color: var(--text);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.workspace-landing-journey p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.workspace-journey-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.workspace-journey-rail i {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.workspace-journey-rail i.done {
    background: rgba(52, 199, 89, 0.52);
}

.workspace-journey-rail i.active {
    background: linear-gradient(90deg, #0a84ff, #10b981);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.08);
}

.workspace-landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.workspace-landing-actions .button {
    min-width: 180px;
}

.workspace-landing-text-button {
    width: auto;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.workspace-landing-text-button[hidden] {
    display: none;
}

.workspace-landing-text-button:hover,
.workspace-landing-text-button:focus-visible {
    color: #075985;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.workspace-landing-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.workspace-showcase {
    position: relative;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.12), transparent 24%),
        radial-gradient(circle at 86% 28%, rgba(10, 132, 255, 0.15), transparent 28%),
        rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.workspace-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.workspace-showcase-head h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -0.065em;
}

.workspace-showcase-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.workspace-showcase-stage {
    position: relative;
    min-height: 430px;
}

.workspace-showcase-bubble {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(34vw, 280px);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.92), transparent 0 18%, rgba(255, 255, 255, 0) 28%),
        linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(10, 132, 255, 0.22));
    box-shadow: 0 30px 70px rgba(10, 132, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
    animation: workspaceBubbleDrift 14s ease-in-out infinite;
    pointer-events: none;
}

.workspace-preview-widget {
    position: absolute;
    z-index: 1;
    width: min(100%, 315px);
    min-height: 168px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    animation: workspaceWidgetFloat 9s ease-in-out infinite;
}

.workspace-preview-widget:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.grade-widget {
    left: 3%;
    top: 8%;
}

.arena-widget {
    right: 5%;
    top: 3%;
    animation-delay: -1.6s;
}

.calendar-widget {
    left: 15%;
    bottom: 2%;
    animation-delay: -3.2s;
}

.exam-widget {
    right: 13%;
    bottom: 8%;
    animation-delay: -4.8s;
}

.workspace-widget-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.workspace-widget-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workspace-widget-head strong {
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.045em;
}

.workspace-preview-widget p {
    margin: 14px 0 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.workspace-grade-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 76px;
    margin-top: 16px;
}

.workspace-grade-bars i {
    flex: 1;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #0a84ff, rgba(10, 132, 255, 0.24));
}

.workspace-arena-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.workspace-arena-pills span {
    padding: 9px 10px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.workspace-mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 18px;
}

.workspace-mini-calendar i {
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.05);
}

.workspace-mini-calendar i.filled {
    background: rgba(16, 185, 129, 0.22);
}

.workspace-mini-calendar i.exam {
    background: linear-gradient(145deg, rgba(255, 159, 10, 0.9), rgba(255, 214, 102, 0.78));
}

.workspace-exam-meter {
    height: 12px;
    margin-top: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.workspace-exam-meter span {
    display: block;
    width: 64%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9500, #0a84ff);
}

@keyframes workspaceBubbleDrift {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-28%, -66%) scale(1.08); }
    50% { transform: translate(-58%, -28%) scale(0.96); }
    75% { transform: translate(-76%, -58%) scale(1.05); }
}

@keyframes workspaceWidgetFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-showcase-bubble,
    .workspace-preview-widget {
        animation: none;
    }
}

.workspace-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.workspace-capability-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.055);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.workspace-capability-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -34% 38%;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.14), transparent 68%);
    opacity: 0.72;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.workspace-capability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 132, 255, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.workspace-capability-card:hover::after {
    transform: translate(-10px, -8px) scale(1.08);
    opacity: 0.95;
}

.workspace-capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.workspace-capability-card h3 {
    margin: 14px 0 0;
    font-size: 19px;
    letter-spacing: -0.04em;
}

.workspace-capability-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.workspace-card-mini {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    min-height: 54px;
}

.pass-mini,
.arena-mini {
    display: grid;
    gap: 7px;
}

.pass-mini i {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
}

.pass-mini i:nth-child(1) { width: 92%; }
.pass-mini i:nth-child(2) { width: 74%; background: rgba(10, 132, 255, 0.15); }
.pass-mini i:nth-child(3) { width: 84%; }

.grade-mini {
    display: flex;
    align-items: end;
    gap: 8px;
}

.grade-mini i {
    flex: 1;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.72), rgba(10, 132, 255, 0.12));
}

.grade-mini i:nth-child(1) { height: 34px; }
.grade-mini i:nth-child(2) { height: 52px; }
.grade-mini i:nth-child(3) { height: 42px; }

.tracker-mini {
    display: grid;
    align-content: center;
}

.tracker-mini i {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9500 0 38%, rgba(10, 132, 255, 0.2) 38% 100%);
    box-shadow: 0 0 0 6px rgba(255, 149, 0, 0.08);
}

.arena-mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
}

.arena-mini i {
    height: 34px;
    border-radius: 16px;
    background: rgba(10, 132, 255, 0.12);
}

.arena-mini i:nth-child(2) {
    background: rgba(16, 185, 129, 0.18);
}

.arena-mini i:nth-child(3) {
    background: rgba(99, 102, 241, 0.14);
}

.calendar-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.calendar-mini i {
    aspect-ratio: 1;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.06);
}

.calendar-mini i:nth-child(2),
.calendar-mini i:nth-child(4) {
    background: rgba(10, 132, 255, 0.18);
}

.calendar-mini i:nth-child(3) {
    background: rgba(255, 159, 10, 0.28);
}

.journey-mini {
    display: flex;
    align-items: center;
    gap: 7px;
}

.journey-mini i {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.journey-mini i:nth-child(-n + 2) {
    background: rgba(52, 199, 89, 0.48);
}

.journey-mini i:nth-child(3) {
    background: linear-gradient(90deg, #0a84ff, #10b981);
}

.glass-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.sidebar {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0a84ff, #4db7ff);
    color: white;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 28px rgba(10, 132, 255, 0.32);
}

.brand-copy h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.brand-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34c759;
    box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.14);
}

.sidebar-group {
    display: grid;
    gap: 10px;
}

.sidebar-label,
.eyebrow,
.section-label,
.label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-list {
    display: grid;
    gap: 10px;
}

.nav-item {
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 14px 14px 15px;
    background: transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-item:hover {
    transform: translateY(-1px);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.44);
}

.nav-item.active {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.72));
    border-color: rgba(10, 132, 255, 0.15);
    box-shadow: var(--shadow-md);
}

.nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.nav-item-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
}

.nav-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.12), rgba(255,255,255,0.52));
    border: 1px solid rgba(10, 132, 255, 0.10);
}

.sidebar-footer h2 {
    margin: 0 0 6px;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.sidebar-footer p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.5;
}

.main {
    display: grid;
    gap: 22px;
    padding-top: 14px;
}

.page-section {
    display: none;
    gap: 22px;
    scroll-margin-top: calc(var(--nav-offset) + 16px);
}

.page-section.active {
    display: grid;
}

.site-nav {
    position: sticky;
    top: 16px;
    z-index: 20;
    margin-bottom: 22px;
    padding: 12px 14px 12px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, top 0.35s ease;
}

.site-nav.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.workspace-landing-active .site-nav {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.82);
}

.site-nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 46px;
}

.brand-wordmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 0;
    color: var(--text);
    white-space: nowrap;
}

.brand-orbit-trail {
    position: absolute;
    left: 1px;
    top: 50%;
    width: 178px;
    height: 42px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 96% 72%, rgba(10, 132, 255, 0.42) 0 2px, transparent 2.4px),
        radial-gradient(circle at 84% 28%, rgba(16, 185, 129, 0.38) 0 2px, transparent 2.4px),
        radial-gradient(circle at 70% 62%, rgba(10, 132, 255, 0.34) 0 2px, transparent 2.4px),
        radial-gradient(circle at 55% 36%, rgba(16, 185, 129, 0.34) 0 2px, transparent 2.4px),
        radial-gradient(circle at 39% 58%, rgba(10, 132, 255, 0.30) 0 1.8px, transparent 2.2px),
        radial-gradient(circle at 22% 42%, rgba(16, 185, 129, 0.30) 0 1.8px, transparent 2.2px);
    filter: blur(0.1px);
    animation: brandTrailSweep 2.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.brand-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 0 18%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(145deg, #10b981, #0a84ff);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.42);
    animation: brandIntroOrbit 2.25s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both, brandPulse 1.8s ease-in-out 2.3s infinite;
    transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1), height 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-pulse-dot::after {
    content: "";
    width: 9px;
    height: 9px;
    border: 1.8px solid rgba(255, 255, 255, 0.9);
    border-left-color: transparent;
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.45) rotate(-18deg);
    transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-wordmark:hover .brand-pulse-dot,
.brand-wordmark:focus-visible .brand-pulse-dot {
    width: 26px;
    height: 26px;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22), 0 0 0 6px rgba(16, 185, 129, 0.10);
}

.brand-wordmark:hover .brand-pulse-dot::after,
.brand-wordmark:focus-visible .brand-pulse-dot::after {
    opacity: 1;
    transform: scale(1) rotate(-18deg);
}

.brand-wordmark-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.brand-wordmark-auc {
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: #075985;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-wordmark-companion {
    display: inline-flex;
    align-items: center;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    font-weight: 560;
    letter-spacing: 0;
}

.site-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 999px;
    background: rgba(247, 250, 253, 0.62);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.workspace-landing-active .site-nav-links {
    background: rgba(255, 255, 255, 0.58);
}

.workspace-landing-active .site-nav-links::before {
    content: "Workspace Preview";
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.10);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.student-workspace-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.student-workspace-button:hover,
.student-workspace-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.student-workspace-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0a84ff, #334bd7);
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.18);
}

.student-workspace-copy {
    display: grid;
    gap: 1px;
    text-align: left;
}

.student-workspace-copy strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.student-workspace-copy span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 96px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
}

.nav-link,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-dropdown-toggle {
    border: none;
    background: transparent;
}

.nav-link:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(10, 132, 255, 0.10);
    color: var(--accent-strong);
}

.workspace-landing-active .nav-link,
.workspace-landing-active .nav-dropdown-toggle {
    color: rgba(71, 84, 103, 0.78);
}

.workspace-landing-active .nav-link.active,
.workspace-landing-active .nav-dropdown-toggle.active {
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted-strong);
}

.workspace-landing-active .nav-link:hover,
.workspace-landing-active .nav-dropdown.open .nav-dropdown-toggle,
.workspace-landing-active .nav-dropdown:hover .nav-dropdown-toggle,
.workspace-landing-active .nav-dropdown:focus-within .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.90);
    color: var(--text);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
}

.nav-caret {
    font-size: 11px;
    color: var(--muted);
    transition: transform 0.22s ease;
}

.nav-dropdown.open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dropdown-menu a:hover {
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    transform: translateX(2px);
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.placeholder-card {
    padding: 24px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
}

.placeholder-card h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    letter-spacing: -0.05em;
}

.placeholder-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.single-placeholder {
    max-width: 920px;
}

.single-placeholder[data-page="module-detail"] {
    width: 100%;
    max-width: none;
}

.single-placeholder[data-page="questions"] {
    width: 100%;
    max-width: none;
}

.single-placeholder[data-page="grades-saved"] {
    width: 100%;
    max-width: none;
}

.single-placeholder .placeholder-card {
    min-height: 320px;
    display: grid;
    align-content: start;
}

.modules-overview-page {
    gap: 18px;
}

.modules-overview-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240, 247, 255, 0.78));
}

.modules-overview-hero h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.modules-overview-hero p {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted-strong);
    line-height: 1.5;
}

.modules-current-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(236, 249, 243, 0.78));
}

.modules-current-panel h3 {
    margin: 4px 0 0;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.modules-current-panel p {
    margin: 8px 0 0;
    color: var(--muted-strong);
}

.modules-current-actions,
.modules-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modules-overview-section {
    display: grid;
    gap: 12px;
}

.modules-section-head h3 {
    margin: 3px 0 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.modules-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.modules-card-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modules-card {
    min-height: 210px;
    padding: 17px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modules-card.is-built {
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241, 247, 255, 0.82));
}

.modules-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.modules-card h4 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.05em;
}

.modules-card-top p,
.modules-card-copy {
    margin: 5px 0 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.modules-status {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.10);
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 900;
}

.modules-status.current {
    background: rgba(10, 132, 255, 0.10);
    color: var(--accent-strong);
}

.modules-status.completed {
    background: rgba(52, 199, 89, 0.12);
    color: #15703d;
}

.modules-status.available {
    background: rgba(124, 58, 237, 0.10);
    color: #5b21b6;
}

.modules-topic-hint {
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.modules-card-actions {
    margin-top: auto;
}

.modules-card-action,
.modules-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
}

.modules-card-action:disabled {
    color: var(--muted);
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.04);
}

.modules-empty-state {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 14px;
}

.module-workspace {
    display: grid;
    gap: 22px;
}

.module-workspace-hero {
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,248,252,0.88));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-lg);
}

.module-workspace-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.module-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.module-workspace-title {
    margin: 12px 0 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.module-workspace-subtitle {
    margin: 12px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.45;
}

.module-workspace-overview {
    margin: 18px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.module-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.subject-workspace {
    display: grid;
    gap: 18px;
    margin: 18px 0 22px;
}

.subject-shell {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,252,0.92));
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.06);
}

.subject-shell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.subject-shell-head h3 {
    margin: 4px 0 0;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.subject-shell-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subject-shell-actions[hidden] {
    display: none;
}

.subject-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.subject-breadcrumbs button {
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
}

.subject-breadcrumbs button:hover,
.subject-breadcrumbs button:focus-visible {
    transform: none;
    text-decoration: underline;
    background: transparent;
}

.subject-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.subject-nav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(255,255,255,0.82);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.subject-nav-card:hover,
.subject-nav-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.96);
}

.subject-nav-card.active {
    border-color: rgba(10, 132, 255, 0.16);
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(232,242,255,0.88));
    box-shadow: 0 18px 30px rgba(10, 132, 255, 0.08);
}

.subject-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.subject-nav-card.active .subject-nav-icon {
    background: rgba(10, 132, 255, 0.14);
    color: var(--accent-strong);
}

.subject-nav-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subject-nav-label strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.subject-nav-label span {
    color: var(--muted);
    font-size: 12px;
}

.subject-topic-panel {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.subject-topic-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.subject-topic-header h3 {
    margin: 4px 0 0;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.subject-topic-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.subject-topic-groups {
    display: grid;
    gap: 12px;
}

.subject-topic-group {
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.subject-topic-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subject-topic-group summary::-webkit-details-marker {
    display: none;
}

.subject-topic-group summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.subject-topic-list {
    display: grid;
    gap: 8px;
    padding: 0 18px 18px;
}

.subject-topic-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.86);
    color: var(--text);
    font-size: 14px;
}

.subject-topic-button {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.subject-topic-button:hover,
.subject-topic-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,1);
}

.topic-detail-panel {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.topic-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

.topic-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.topic-detail-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.topic-detail-card h4 {
    margin: 8px 0 8px;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.topic-detail-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.topic-workspace-page {
    display: grid;
    gap: 18px;
    margin: 18px 0 22px;
}

.topic-workspace-hero {
    padding: 26px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,252,0.92));
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.06);
}

.topic-workspace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topic-workspace-title {
    margin: 10px 0 0;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.topic-workspace-copy {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 18px 0 0;
}

.topic-workspace-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topic-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.topic-breadcrumbs button {
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
}

.topic-breadcrumbs button:hover,
.topic-breadcrumbs button:focus-visible {
    transform: none;
    text-decoration: underline;
    background: transparent;
}

.topic-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.topic-section-card {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.topic-section-card.full-width {
    grid-column: 1 / -1;
}

.topic-section-card h3 {
    margin: 10px 0 10px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.topic-section-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.topic-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.topic-callout {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(240,247,255,0.95), rgba(233,241,252,0.9));
    border: 1px solid rgba(10, 132, 255, 0.12);
}

.topic-callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.topic-bullet-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.topic-bullet-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

.topic-bullet-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.topic-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.topic-mini-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.topic-mini-card h4 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.topic-mini-card ul,
.topic-section-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.topic-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
}

.topic-compare-table th,
.topic-compare-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 14px;
    line-height: 1.5;
}

.topic-compare-table th {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-strong);
    background: rgba(255,255,255,0.7);
}

.topic-compare-table tr:last-child td {
    border-bottom: none;
}

.ida-pattern-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ida-pattern-stat {
    padding: 16px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.ida-pattern-stat strong {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ida-pattern-stat span {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.ida-rule {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,250,235,0.98), rgba(255,245,222,0.92));
    border: 1px solid rgba(229, 190, 106, 0.24);
    color: #7c5a12;
    font-size: 14px;
    line-height: 1.55;
}

.ida-rule strong {
    color: #8c6010;
}

.high-yield-callout {
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(233,241,252,0.92));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow: 0 16px 28px rgba(10, 132, 255, 0.06);
}

.high-yield-callout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.high-yield-callout-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.high-yield-callout-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
}

.high-yield-callout p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 560;
}

#ironDeficiencyTopicContent {
    display: grid;
    gap: 34px;
}

#thalassemiaTopicContent,
#acdTopicContent,
#genericHoadTopicContent {
    display: grid;
    gap: 34px;
}

#cavPhysicsFlowTopicContent {
    display: grid;
    gap: 34px;
}

.ida-flowchart {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.ida-flow-node {
    position: relative;
    padding: 22px 22px 22px 76px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ida-flow-node:hover,
.ida-flow-node:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.1);
}

.ida-flow-node::before {
    content: attr(data-step);
    position: absolute;
    left: 22px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 132, 255, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.ida-flow-node::after {
    content: "";
    position: absolute;
    left: 35px;
    top: calc(100% - 4px);
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(10,132,255,0.18), rgba(10,132,255,0));
}

.ida-flow-node:last-child::after {
    display: none;
}

.ida-flow-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.78);
    color: var(--accent-strong);
    font-size: 18px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.ida-flow-node strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.ida-flow-node p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.ida-flow-node.is-final {
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(232,242,255,0.9));
    border-color: rgba(10, 132, 255, 0.12);
}

.ida-final-rbc {
    margin-top: 14px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,0.92) 0 15%, rgba(255,244,244,0.88) 16% 22%, rgba(246,228,230,0.82) 23% 30%, rgba(227,122,134,0.34) 31% 43%, rgba(214,79,95,0.9) 44% 72%, rgba(184,43,61,0.98) 73% 100%);
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.16), inset 0 6px 10px rgba(255,255,255,0.18), 0 14px 24px rgba(133, 31, 44, 0.12);
}

.ida-final-rbc-note {
    margin-top: 10px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.5;
}

.ida-cause-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ida-cause-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ida-cause-card.is-emphasis {
    background: linear-gradient(180deg, rgba(255,250,235,0.98), rgba(255,244,227,0.92));
    border-color: rgba(226, 185, 94, 0.2);
    box-shadow: 0 18px 30px rgba(226, 185, 94, 0.12);
}

.ida-cause-card:hover,
.ida-cause-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.07);
}

.ida-cause-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.ida-cause-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ida-cause-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.ida-hepcidin-toggle {
    margin-top: 18px;
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.ida-hepcidin-button {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.ida-hepcidin-button.is-active {
    background: linear-gradient(180deg, rgba(10,132,255,0.14), rgba(10,132,255,0.08));
    color: var(--accent-strong);
}

.ida-hepcidin-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.ida-hepcidin-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ida-hepcidin-card h4 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.ida-hepcidin-gate {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,0.1);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.ida-hepcidin-pattern {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.5;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-diagram {
    position: relative;
    margin-top: 18px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(242,246,251,0.94));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: minmax(250px, 1.12fr) minmax(88px, auto) minmax(210px, 0.9fr);
    gap: 8px;
    align-items: end;
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell {
    position: relative;
    min-height: 246px;
    padding: 28px 28px 26px;
    border-radius: 42% 48% 44% 46% / 36% 42% 40% 44%;
    background: radial-gradient(circle at 30% 26%, rgba(255,255,255,0.9), rgba(247,236,221,0.82) 40%, rgba(239,222,198,0.92) 100%);
    border: 2px solid rgba(186, 152, 118, 0.26);
    box-shadow: inset 0 8px 18px rgba(255,255,255,0.36), 0 16px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 42% 48% 44% 46% / 36% 42% 40% 44%;
    border: 1px solid rgba(255,255,255,0.28);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 58%, rgba(255,255,255,0.24), transparent 18%),
        radial-gradient(circle at 58% 72%, rgba(255,255,255,0.16), transparent 24%),
        radial-gradient(circle at 78% 34%, rgba(255,255,255,0.14), transparent 18%);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell-nucleus {
    position: absolute;
    top: 34px;
    left: 30px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.88), rgba(210, 190, 222, 0.82) 55%, rgba(172, 144, 191, 0.9));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.26), 0 8px 14px rgba(117, 94, 129, 0.14);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-cell-title,
:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-title {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-storage-label {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-membrane {
    position: absolute;
    top: 18px;
    right: 10px;
    width: 22px;
    height: calc(100% - 36px);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(187, 153, 121, 0.9), rgba(166, 129, 94, 0.88));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
    z-index: 1;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 74px;
    height: 96px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(233,240,247,0.96));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    z-index: 3;
    display: grid;
    place-items: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel::before {
    content: "";
    width: 34px;
    height: 68px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(129, 196, 120, 0.88), rgba(83, 153, 93, 0.92));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.22);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-ferroportin-channel::after {
    content: "";
    position: absolute;
    inset: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-ferroportin-channel::before {
    background: linear-gradient(180deg, rgba(224, 111, 81, 0.9), rgba(181, 67, 50, 0.92));
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-channel-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    white-space: nowrap;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-hepcidin-blocker {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 8px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 171, 122, 0.98), rgba(247, 112, 78, 0.94));
    color: #8a2d17;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(247, 112, 78, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 4;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-hepcidin-blocker {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-hepcidin-note {
    position: absolute;
    top: calc(100% + 44px);
    left: 50%;
    transform: translateX(-50%);
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-hepcidin-note {
    opacity: 0.45;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-vessel {
    position: relative;
    min-height: 200px;
    padding: 22px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 241, 243, 0.98), rgba(252, 220, 226, 0.92));
    border: 1px solid rgba(228, 117, 140, 0.14);
    box-shadow: inset 0 10px 18px rgba(255,255,255,0.28), 0 16px 28px rgba(220, 102, 126, 0.08);
    overflow: hidden;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-vessel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-copy {
    display: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-rbcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-rbc {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 48%, rgba(255,255,255,0.88) 0 14%, rgba(255,244,244,0.84) 15% 22%, rgba(230,120,134,0.34) 23% 36%, rgba(214,79,95,0.88) 37% 72%, rgba(184,43,61,0.98) 73% 100%);
    box-shadow: 0 8px 14px rgba(133, 31, 44, 0.1);
    animation: hepRbcPulse 4.8s ease-in-out infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-fe-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-blood-fe {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 35%, rgba(255,247,220,0.98), rgba(241,177,57,0.96));
    color: #8b5a08;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(245, 180, 50, 0.07);
    opacity: 0;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="low"] .hep-blood-fe {
    animation: hepBloodFeFlow 3.2s linear infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-blood-fe {
    opacity: 0.05;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-status-label {
    align-self: center;
    margin-top: 0;
    padding: 14px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-status-label span {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-particle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-iron-particle {
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 35%, rgba(255,245,212,0.98), rgba(245,180,50,0.96));
    box-shadow: 0 0 0 4px rgba(245, 180, 50, 0.08);
    color: #8b5a08;
    font-size: 9px;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-path-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-path-label {
    color: #9a3412;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-captions {
    display: grid;
    grid-template-columns: minmax(250px, 1.12fr) minmax(88px, auto) minmax(210px, 0.9fr);
    gap: 8px;
    margin-top: 14px;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption strong {
    color: #111827;
    font-weight: 800;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption.is-center {
    text-align: center;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch) .hep-caption.is-right {
    text-align: left;
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="low"] .hep-iron-particle {
    animation: hepIronFlow 3.2s linear infinite;
    animation-delay: var(--delay);
}

:is(#ida-hepcidin-switch, #acd-hepcidin-switch)[data-state="high"] .hep-iron-particle {
    animation: hepIronTrap 2.2s ease-in-out infinite;
    animation-delay: var(--delay);
}

.ida-hep-explanation {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px;
}

.ida-summary-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(240,247,255,0.98), rgba(232,242,255,0.9));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow: 0 16px 28px rgba(10, 132, 255, 0.06);
}

.nbme-pearls-section {
    margin-top: 36px;
}

.nbme-pearls-shell {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.nbme-pearls-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nbme-pearls-shell h3 {
    margin: 16px 0 0;
    font-size: 31px;
    letter-spacing: -0.05em;
}

.nbme-pearls-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.nbme-pearl-card {
    padding: 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nbme-pearl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.nbme-pearl-card.is-blue {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
}

.nbme-pearl-card.is-yellow {
    background: linear-gradient(180deg, rgba(255,249,219,0.98), rgba(255,244,196,0.92));
}

.nbme-pearl-card.is-red {
    background: linear-gradient(180deg, rgba(255,240,238,0.98), rgba(255,228,225,0.92));
}

.nbme-pearl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    font-size: 18px;
}

.nbme-pearl-card strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #111827;
}

.nbme-pearl-card p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #475569;
}

.nbme-final-takeaway {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(238,247,255,0.98), rgba(227,240,255,0.92));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow: 0 16px 28px rgba(10, 132, 255, 0.06);
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
    color: #1f2937;
}

.nbme-final-takeaway strong {
    color: #111827;
}

#ida-lock-it-in {
    margin-top: 36px;
}

#ida-lock-it-in .ida-practice-shell {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

#ida-lock-it-in .ida-practice-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ida-lock-it-in h3 {
    margin: 16px 0 6px;
    font-size: 31px;
    letter-spacing: -0.05em;
}

#ida-lock-it-in .ida-practice-subtitle {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

#ida-lock-it-in .ida-question-progress {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

#ida-lock-it-in .ida-practice-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

#ida-lock-it-in .ida-practice-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

#ida-lock-it-in .ida-practice-stem {
    margin: 16px 0 0;
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #111827;
}

#ida-lock-it-in .ida-practice-options {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#ida-lock-it-in .ida-answer-choice {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#ida-lock-it-in .ida-answer-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.18);
}

#ida-lock-it-in .ida-answer-choice.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.24);
    color: #0f3d91;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.08);
}

#ida-lock-it-in .ida-answer-choice:disabled {
    cursor: default;
    opacity: 1;
}

#ida-lock-it-in .ida-answer-choice.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

#ida-lock-it-in .ida-answer-choice.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.choice-explanation-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.choice-explanation-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.choice-is-expanded .choice-explanation-glyph {
    transform: rotate(180deg);
}

.choice-explanation {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    animation: choiceExplanationIn 0.18s ease;
}

.choice-explanation p {
    margin: 0;
}

.choice-explanation p + p {
    margin-top: 10px;
}

.choice-teaching-point {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(219, 234, 254, 0.56);
    border: 1px solid rgba(147, 197, 253, 0.45);
    color: #1f2937;
    font-weight: 600;
}

.choice-teaching-point strong {
    color: #111827;
}

.high-yield-callout.is-violet {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.94));
    border-color: rgba(139, 92, 246, 0.16);
    box-shadow: 0 22px 38px rgba(139, 92, 246, 0.08);
}

.high-yield-callout.is-violet .high-yield-callout-label,
.high-yield-callout.is-violet .high-yield-callout-tag {
    color: #6d28d9;
}

.thal-genetics-grid,
.thal-correlate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.thal-genetics-grid {
    align-items: stretch;
}

.thal-info-card,
.thal-correlate-panel {
    padding: 22px 22px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.06);
}

.thal-info-card h4,
.thal-correlate-panel h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: #0f172a;
}

.thal-info-card p,
.thal-correlate-panel p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.thal-card-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thal-card-badge.is-danger {
    background: rgba(254, 226, 226, 0.8);
    color: #b91c1c;
}

.thal-genetics-visual {
    display: grid;
    gap: 18px;
}

.thal-gene-card {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 22px;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.thal-gene-card::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(8px);
}

.alpha-gene-card::before {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28), rgba(191, 219, 254, 0));
}

.beta-gene-card::before {
    background: radial-gradient(circle, rgba(196, 181, 253, 0.28), rgba(224, 231, 255, 0));
}

.thal-gene-card > * {
    position: relative;
    z-index: 1;
}

.thal-gene-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.alpha-gene-card .thal-gene-pill {
    background: rgba(224, 242, 254, 0.92);
    color: #0369a1;
}

.beta-gene-card .thal-gene-pill {
    background: rgba(237, 233, 254, 0.94);
    color: #6d28d9;
}

.thal-gene-card h4 {
    margin: 0;
    font-size: 1.18rem;
    color: #0f172a;
}

.thal-gene-subtitle {
    margin: 8px 0 18px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.thal-gene-track-wrap {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.thal-chromosome-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.thal-chromosome-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 88px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.96), rgba(241, 245, 249, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(148, 163, 184, 0.18);
}

.thal-chromosome-line::before {
    content: "";
    position: absolute;
    inset: 50% 18px auto 18px;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.72), rgba(226, 232, 240, 0.9));
}

.thal-gene-pair,
.thal-beta-alleles {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thal-beta-alleles {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
}

.thal-gene-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.thal-gene-box.alpha {
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.98), rgba(186, 230, 253, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #075985;
    box-shadow: 0 16px 28px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.thal-gene-box.beta {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(221, 214, 254, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.24);
    color: #5b21b6;
    box-shadow: 0 16px 28px rgba(109, 40, 217, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.thal-parent-labels,
.thal-allele-labels {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.thal-parent-labels span,
.thal-allele-labels span {
    flex: 1 1 0;
    text-align: center;
}

.thal-gene-takeaway {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.6;
}

.thal-gene-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thal-gene-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.alpha-gene-card .thal-gene-chip {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.beta-gene-card .thal-gene-chip {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.96), rgba(248, 250, 252, 0.98));
}

@media (max-width: 720px) {
    .thal-gene-card {
        padding: 22px 20px 20px;
    }

    .thal-chromosome-line {
        min-height: 82px;
        padding: 0 16px;
        gap: 18px;
    }

    .thal-gene-box {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.08rem;
    }

    .thal-parent-labels,
    .thal-allele-labels {
        font-size: 0.74rem;
    }
}

.thal-gel-lab {
    display: grid;
    gap: 18px;
}

.thal-management-section {
    display: grid;
    gap: 20px;
}

.thal-management-subtitle {
    margin: 0;
    max-width: 900px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.thal-minor-alert {
    display: grid;
    gap: 12px;
    padding: 24px 24px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.94));
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.thal-minor-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-minor-alert p {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.7;
}

.thal-domino-pathway {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.thal-pathway-head {
    display: grid;
    gap: 8px;
}

.thal-pathway-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-path-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
    padding: 22px 22px 20px;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.07);
}

.thal-path-card.is-fix {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.thal-path-card.is-consequence {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.96));
}

.thal-path-card.is-rescue {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.95));
}

.thal-path-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-path-card.is-fix .thal-path-label {
    background: rgba(219, 234, 254, 0.9);
    color: #1d4ed8;
}

.thal-path-card.is-consequence .thal-path-label {
    background: rgba(255, 255, 255, 0.68);
    color: #b45309;
}

.thal-path-card.is-rescue .thal-path-label {
    background: rgba(224, 242, 254, 0.92);
    color: #0369a1;
}

.thal-path-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.18rem;
}

.thal-path-card p {
    margin: 0;
    color: #334155;
    line-height: 1.65;
}

.thal-path-detail {
    padding-top: 2px;
    color: #7c2d12;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

.thal-path-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: #94a3b8;
    font-size: 1.6rem;
    font-weight: 800;
}

.thal-path-arrow::before {
    content: "→";
}

.thal-cure-callout {
    display: grid;
    gap: 10px;
    padding: 24px 24px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(224, 231, 255, 0.94));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 18px 36px rgba(99, 102, 241, 0.12);
}

.thal-cure-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #5b21b6;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thal-cure-callout p {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.7;
}

.thal-interactive-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.thal-interactive-card::after {
    content: "Learn why";
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #7c2d12;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.thal-interactive-card:hover,
.thal-interactive-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.16);
}

.thal-interactive-card:hover::after,
.thal-interactive-card:focus-within::after {
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}

.thal-hover-pearl {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: calc(100% + 14px);
    z-index: 6;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    color: rgba(241, 245, 249, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.thal-hover-pearl::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: rgba(30, 41, 59, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    transform: rotate(45deg);
}

.thal-hover-pearl strong {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.thal-hover-pearl p {
    margin: 0;
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.6;
}

.thal-interactive-card:hover .thal-hover-pearl,
.thal-interactive-card:focus-within .thal-hover-pearl {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .thal-domino-pathway {
        grid-template-columns: 1fr;
    }

    .thal-path-arrow {
        min-height: 28px;
        font-size: 1.35rem;
    }

    .thal-path-arrow::before {
        content: "↓";
    }

    .thal-hover-pearl {
        left: 14px;
        right: 14px;
    }
}

.thal-gel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.thal-gel-favorite {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.76);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thal-gel-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.gel-tab {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.98);
    color: #334155;
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gel-tab:hover,
.gel-tab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
    outline: none;
}

.gel-tab.is-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.96));
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.18);
    box-shadow: 0 20px 34px rgba(59, 130, 246, 0.14);
}

.gel-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.07);
}

.gel-visual-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.gel-note-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.55;
}

.gel-note-card strong {
    color: #0f172a;
}

.gel-patient-head {
    display: grid;
    gap: 6px;
}

.gel-visual {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.band-labels {
    position: relative;
    min-width: 96px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.05);
    min-height: 420px;
    padding: 18px 10px;
}

.band-label {
    position: absolute;
    left: 10px;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.gel-lane {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.62), rgba(248, 250, 252, 0.82));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    padding: 18px 18px 22px;
}

.gel-lane-copy {
    display: grid;
    gap: 10px;
}

.gel-lane::before {
    content: "";
    position: absolute;
    inset: 16px 18px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(226,232,240,0.12));
    pointer-events: none;
}

.gel-lane-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gel-lane-title.is-patient {
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
}

.gel-lane-note {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
}

.gel-band {
    position: absolute;
    left: 24px;
    right: 24px;
    height: var(--band-height, 12px);
    top: calc(var(--band-top) - (var(--band-height, 12px) / 2));
    border-radius: 999px;
    opacity: 0.95;
    box-shadow: 0 0 18px currentColor;
    transform: scaleX(0.96);
    animation: gelBandFadeIn 220ms ease;
}

.gel-band.is-a {
    color: rgba(14, 165, 233, 0.95);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.98), rgba(56, 189, 248, 0.35));
}

.gel-band.is-a2 {
    color: rgba(16, 185, 129, 0.95);
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.34), rgba(16, 185, 129, 0.98), rgba(110, 231, 183, 0.34));
}

.gel-band.is-f {
    color: rgba(99, 102, 241, 0.95);
    background: linear-gradient(90deg, rgba(165, 180, 252, 0.34), rgba(99, 102, 241, 0.98), rgba(165, 180, 252, 0.34));
}

.gel-band.is-h {
    color: rgba(245, 158, 11, 0.95);
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.36), rgba(245, 158, 11, 0.98), rgba(252, 211, 77, 0.36));
}

.gel-band.is-barts {
    color: rgba(239, 68, 68, 0.96);
    background: linear-gradient(90deg, rgba(252, 165, 165, 0.36), rgba(239, 68, 68, 0.98), rgba(252, 165, 165, 0.36));
}

.gel-band.is-high {
    --band-height: 18px;
}

.gel-band.is-medium {
    --band-height: 13px;
}

.gel-band.is-low {
    --band-height: 8px;
    opacity: 0.6;
}

.gel-band-label-inline {
    position: absolute;
    right: 26px;
    top: calc(var(--band-top) - 14px);
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.72);
}

.gel-explanation-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gel-abundance-caption {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.gel-comparison-callout {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.92), rgba(219, 234, 254, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.08);
}

.gel-comparison-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4338ca;
}

.gel-comparison-text {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #0f172a;
    font-weight: 700;
}

.gel-explanation-item {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.gel-explanation-item strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gel-explanation-item p {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.5;
    font-weight: 500;
}

.nbme-trap-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff8d8, #fff0a8);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.nbme-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #b45309;
    flex: 0 0 auto;
}

.nbme-trap-card h4 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
}

.nbme-trap-card p {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    color: #334155;
    max-width: 900px;
}

.nbme-trap-card strong {
    color: #0f172a;
    font-weight: 800;
}

@keyframes gelBandFadeIn {
    from {
        opacity: 0;
        transform: scaleX(0.85);
    }
    to {
        opacity: 0.95;
        transform: scaleX(0.96);
    }
}

.thal-major-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.92));
    border-color: rgba(239, 68, 68, 0.12);
}

.topic-practice-placeholder {
    margin-top: 8px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.topic-practice-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.topic-practice-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.acd-dark-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.acd-dark-section::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0));
    pointer-events: none;
}

.acd-dark-section > * {
    position: relative;
    z-index: 1;
}

.acd-dark-section .section-label {
    color: var(--accent-strong);
}

.acd-dark-section h3,
.acd-dark-section h4,
.acd-dark-section strong {
    color: #111827;
}

.acd-dark-section p,
.acd-dark-section li,
.acd-dark-section span {
    color: #475569;
}

.acd-trap-box {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 214, 0.96));
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.08);
}

.acd-trap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.acd-trap-title {
    margin: 0;
    font-size: 1.34rem;
    letter-spacing: -0.03em;
}

.acd-trap-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acd-trap-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
}

.acd-trap-box strong {
    color: #92400e;
}

.acd-quote-block {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: 32px 28px;
}

.acd-quote-line {
    width: 88px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.22), rgba(34, 211, 238, 0.96), rgba(59, 130, 246, 0.3));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

.acd-quote-text {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.acd-quote-subtext {
    margin: 0;
    max-width: 860px;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.8;
}

.acd-causes-shell {
    display: grid;
    gap: 18px;
}

.acd-epi-banner {
    padding: 14px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

.acd-cause-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.acd-cause-card {
    padding: 22px 22px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-cause-card h4 {
    margin: 0 0 14px;
    font-size: 1.08rem;
}

.acd-cause-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.acd-cause-card li::marker {
    color: currentColor;
}

.acd-cause-card.is-red {
    border-color: rgba(248, 113, 113, 0.24);
    box-shadow: 0 16px 30px rgba(248, 113, 113, 0.08);
}

.acd-cause-card.is-red h4,
.acd-cause-card.is-red li::marker {
    color: #fca5a5;
}

.acd-cause-card.is-purple {
    border-color: rgba(167, 139, 250, 0.24);
    box-shadow: 0 16px 30px rgba(167, 139, 250, 0.08);
}

.acd-cause-card.is-purple h4,
.acd-cause-card.is-purple li::marker {
    color: #c4b5fd;
}

.acd-cause-card.is-blue {
    border-color: rgba(56, 189, 248, 0.24);
    box-shadow: 0 16px 30px rgba(56, 189, 248, 0.08);
}

.acd-cause-card.is-blue h4,
.acd-cause-card.is-blue li::marker {
    color: #7dd3fc;
}

.acd-pathway-shell {
    display: grid;
    gap: 18px;
}

.acd-domino-pathway {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.acd-node {
    display: grid;
    gap: 12px;
    padding: 22px 22px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 132, 255, 0.08);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-node-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acd-node p {
    margin: 0;
    line-height: 1.7;
}

.acd-node.is-blockade p strong {
    color: #b91c1c;
}

.acd-path-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-strong);
    font-size: 1.6rem;
    font-weight: 800;
}

.acd-path-arrow::before {
    content: "→";
}

.acd-figure-intro {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.acd-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.acd-exam-chip {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 100%;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
}

.acd-exam-chip strong {
    display: block;
    margin: 0;
    color: #7dd3fc;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
}

.acd-exam-chip strong + strong {
    color: #111827;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 800;
}

.acd-practice-placeholder {
    margin-top: 8px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.acd-practice-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.acd-practice-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

#acd-hepcidin-switch .high-yield-callout {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .gel-visual-head {
        grid-template-columns: 1fr;
    }

    .gel-visual {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
    }

    .gel-lane-copy:last-child {
        grid-column: 1 / -1;
    }

    .band-labels {
        min-height: 360px;
    }

    .gel-lane {
        min-height: 360px;
    }

    .nbme-trap-card {
        padding: 22px 22px 24px;
        gap: 14px;
    }

    .nbme-trap-card p {
        font-size: 18px;
    }

    .acd-cause-grid,
    .acd-domino-pathway {
        grid-template-columns: 1fr;
    }

    .acd-path-arrow::before {
        content: "↓";
    }
}

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

#ida-lock-it-in .ida-practice-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#ida-lock-it-in .ida-practice-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ida-lock-it-in .ida-practice-arrow,
#ida-lock-it-in .ida-practice-submit,
#ida-lock-it-in .ida-practice-next,
#ida-lock-it-in .ida-practice-reset,
#ida-lock-it-in .ida-practice-restart {
    width: auto;
    min-width: 126px;
    padding: 14px 20px;
}

#ida-lock-it-in .ida-practice-arrow {
    min-width: 54px;
    padding: 14px 16px;
    border-radius: 18px;
}

#ida-lock-it-in .ida-practice-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#ida-lock-it-in .ida-practice-reset {
    background: rgba(255,255,255,0.9);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

#ida-lock-it-in .ida-practice-summary {
    text-align: center;
}

#ida-lock-it-in .ida-practice-summary-score {
    margin: 18px 0 0;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: #111827;
}

#ida-lock-it-in .ida-practice-summary-copy {
    margin: 10px auto 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

#thal-lock-it-in {
    margin-top: 36px;
}

#thal-lock-it-in .ida-practice-shell {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

#thal-lock-it-in .ida-practice-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#thal-lock-it-in h3 {
    margin: 16px 0 6px;
    font-size: 31px;
    letter-spacing: -0.05em;
}

#thal-lock-it-in .ida-practice-subtitle {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

#thal-lock-it-in .ida-question-progress {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

#thal-lock-it-in .ida-practice-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

#thal-lock-it-in .ida-practice-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

#thal-lock-it-in .ida-practice-stem {
    margin: 16px 0 0;
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #111827;
}

#thal-lock-it-in .ida-practice-options {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#thal-lock-it-in .ida-answer-choice {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#thal-lock-it-in .ida-answer-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.18);
}

#thal-lock-it-in .ida-answer-choice.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.24);
    color: #0f3d91;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.08);
}

#thal-lock-it-in .ida-answer-choice:disabled {
    cursor: default;
    opacity: 1;
}

#thal-lock-it-in .ida-answer-choice.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

#thal-lock-it-in .ida-answer-choice.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

#thal-lock-it-in .ida-practice-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#thal-lock-it-in .ida-practice-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

#thal-lock-it-in .ida-practice-arrow,
#thal-lock-it-in .ida-practice-submit,
#thal-lock-it-in .ida-practice-next,
#thal-lock-it-in .ida-practice-reset,
#thal-lock-it-in .ida-practice-restart {
    width: auto;
    min-width: 126px;
    padding: 14px 20px;
}

#thal-lock-it-in .ida-practice-arrow {
    min-width: 54px;
    padding: 14px 16px;
    border-radius: 18px;
}

#thal-lock-it-in .ida-practice-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#thal-lock-it-in .ida-practice-reset {
    background: rgba(255,255,255,0.9);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

#thal-lock-it-in .ida-practice-summary {
    text-align: center;
}

#thal-lock-it-in .ida-practice-summary-score {
    margin: 18px 0 0;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: #111827;
}

#thal-lock-it-in .ida-practice-summary-copy {
    margin: 10px auto 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.ida-plummer-shell {
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(243, 237, 252, 0.94));
    border: 1px solid rgba(139, 92, 246, 0.16);
    box-shadow: 0 18px 30px rgba(139, 92, 246, 0.08);
}

.ida-plummer-shell h3 {
    margin: 14px 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.ida-plummer-intro {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}

.ida-plummer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.ida-plummer-card {
    min-height: 100%;
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.ida-plummer-icon {
    font-size: 24px;
    line-height: 1;
}

.ida-plummer-card strong {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: #111827;
}

.ida-plummer-card span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.ida-plummer-buzzwords {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.12);
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.ida-plummer-buzzwords strong {
    color: #5b21b6;
}

#arena-builder-page {
    position: relative;
    padding: 30px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(103, 193, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.96));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.arena-hero {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 26px 26px 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(103, 193, 255, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,246,255,0.9));
    border: 1px solid rgba(10, 132, 255, 0.1);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.arena-hero::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 28px;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.94), rgba(103,193,255,0.3) 54%, transparent 74%);
    opacity: 0.9;
    pointer-events: none;
}

.arena-hero h3 {
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.arena-hero-subtitle {
    margin: 0;
    max-width: 780px;
    color: #475569;
    font-size: 18px;
    line-height: 1.65;
}

.arena-hero-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: #0f3d91;
    font-size: 13px;
    font-weight: 700;
}

.arena-builder-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.arena-builder-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.arena-builder-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
}

.arena-builder-panel,
.arena-filter-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.arena-builder-panel h4,
.arena-filter-card h4 {
    margin: 8px 0 0;
    font-size: 26px;
    letter-spacing: -0.05em;
}

.arena-builder-panel p,
.arena-filter-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.arena-pill-grid {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.arena-module-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 12px;
}

.arena-module-card,
.arena-filter-pill {
    width: auto;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
    box-shadow: none;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.arena-module-card {
    width: 100%;
    min-height: 86px;
    padding: 18px 16px;
    border-radius: 24px;
    text-align: left;
}

.arena-module-card:hover,
.arena-filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.14);
}

.arena-module-card.is-selected,
.arena-filter-pill.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.94));
    border-color: rgba(10, 132, 255, 0.2);
    color: #0f3d91;
    box-shadow: 0 14px 24px rgba(10, 132, 255, 0.08);
}

.arena-module-card strong,
.arena-filter-pill strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.arena-module-card strong {
    font-size: 20px;
    letter-spacing: -0.045em;
}

.arena-module-card span,
.arena-filter-pill span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: inherit;
    opacity: 0.86;
}

.arena-filter-grid {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.arena-filter-group {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.arena-filter-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.arena-filter-group-head strong {
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #111827;
}

.arena-filter-group-head span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.arena-filter-meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.arena-filter-meta .field-stack {
    margin: 0;
}

.arena-filter-note,
.arena-filter-empty {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.arena-filter-empty {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.8);
    border: 1px dashed rgba(15, 23, 42, 0.08);
}

.arena-toggle-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.arena-toggle-copy strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.arena-toggle-copy span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.arena-builder-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.arena-start-button {
    width: auto;
}

.arena-builder-match {
    margin-left: auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.arena-builder-inline-note {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}


@keyframes hepIronFlow {
    0% {
        transform: translateX(0);
        opacity: 0.1;
    }
    15% {
        opacity: 1;
    }
    70% {
        transform: translateX(152px);
        opacity: 1;
    }
    100% {
        transform: translateX(188px);
        opacity: 0.08;
    }
}

@keyframes hepIronTrap {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    35% {
        transform: translateX(18px) translateY(-4px);
    }
    70% {
        transform: translateX(4px) translateY(3px);
    }
}

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

@keyframes hepBloodFeFlow {
    0% {
        transform: translateX(-8px);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    75% {
        transform: translateX(16px);
        opacity: 1;
    }
    100% {
        transform: translateX(28px);
        opacity: 0;
    }
}

.pattern-grid,
.memory-grid,
.placeholder-grid-tight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pattern-card,
.memory-card,
.placeholder-card-tight {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.pattern-card strong,
.memory-card strong,
.placeholder-card-tight strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.pattern-card p,
.memory-card p,
.placeholder-card-tight p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.micro-lab-card {
    margin-top: 8px;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,252,0.92));
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.micro-lab-card[data-diagnosis="ida"] {
    box-shadow: 0 20px 42px rgba(10, 132, 255, 0.08);
}

.micro-lab-card[data-diagnosis="thal"] {
    box-shadow: 0 20px 42px rgba(52, 199, 89, 0.08);
}

.micro-lab-card[data-diagnosis="acd"] {
    box-shadow: 0 20px 42px rgba(245, 158, 11, 0.08);
}

.micro-lab-card[data-diagnosis="lead"] {
    box-shadow: 0 20px 42px rgba(100, 116, 139, 0.08);
}

.micro-lab-card[data-diagnosis="sidero"] {
    box-shadow: 0 20px 42px rgba(168, 85, 247, 0.08);
}

.micro-lab-head h3 {
    margin: 8px 0 10px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.micro-lab-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 760px;
}

.micro-lab-selector {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.micro-lab-tab {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255,255,255,0.82);
    color: var(--muted-strong);
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.micro-lab-tab:hover,
.micro-lab-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.micro-lab-tab.active {
    background: linear-gradient(180deg, rgba(10,132,255,0.14), rgba(10,132,255,0.08));
    border-color: rgba(10,132,255,0.14);
    color: var(--accent-strong);
}

.micro-lab-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.micro-lab-smear-panel,
.micro-lab-info {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.micro-lab-smear-header,
.micro-lab-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.micro-lab-smear-header h4,
.micro-lab-info-header h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.micro-lab-smear-caption,
.micro-lab-kicker {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.micro-lab-react-note {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--muted);
    font-size: 12px;
}

.micro-lab-smear-stage {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(10,132,255,0.08), transparent 30%),
        linear-gradient(180deg, rgba(250,252,255,0.98), rgba(239,244,250,0.94));
    border: 1px solid rgba(15, 23, 42, 0.04);
    isolation: isolate;
}

.micro-lab-real-smear {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.micro-lab-smear-stage[data-view="real"] .micro-lab-real-smear {
    opacity: 1;
    transform: scale(1);
}

.micro-lab-smear-stage[data-view="real"] .micro-rbc {
    opacity: 0;
    pointer-events: none;
}

.micro-lab-smear-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(240, 247, 255, 0.9);
    border: 1px solid rgba(10, 132, 255, 0.14);
}

.micro-lab-smear-toggle[hidden] {
    display: none;
}

.micro-lab-smear-arrow {
    width: 38px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #0a84ff;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.18);
}

.micro-lab-smear-arrow:hover,
.micro-lab-smear-arrow:focus-visible {
    background: #006edb;
}

.micro-lab-smear-toggle span {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.micro-rbc {
    position: absolute;
    z-index: 1;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) scale(var(--hover-scale, 1));
    transition: transform 0.35s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: microRbcFloat 7.5s ease-in-out infinite;
    animation-delay: var(--delay);
    background:
        radial-gradient(circle at 48% 46%, rgba(255,255,255,0.92) 0 15%, rgba(255,244,244,0.88) 16% 20%, rgba(248,232,234,0.8) 21% 29%, rgba(230,124,136,0.34) 30% 41%, rgba(214,79,95,0.9) 42% 71%, rgba(184,43,61,0.98) 72% 100%);
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.16), inset 0 6px 10px rgba(255, 255, 255, 0.18), 0 12px 22px rgba(133, 31, 44, 0.12);
    will-change: transform;
}

.micro-rbc::before,
.micro-rbc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.micro-rbc::before {
    inset: 18%;
    background: radial-gradient(circle at 50% 48%, rgba(255,255,255,0.82) 0 38%, rgba(255,255,255,0.3) 39% 54%, transparent 55% 100%);
}

.micro-rbc:hover,
.micro-lab-smear-stage.is-hovering .micro-rbc {
    box-shadow: inset 0 -8px 12px rgba(127, 22, 38, 0.18), inset 0 6px 10px rgba(255, 255, 255, 0.22), 0 18px 28px rgba(133, 31, 44, 0.16);
}

.micro-rbc:hover {
    --hover-scale: 1.06;
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc {
    filter: saturate(0.92) brightness(1.02);
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc:nth-child(3n) {
    width: calc(var(--size) * 0.82);
    height: calc(var(--size) * 0.82);
}

.micro-lab-smear-stage[data-diagnosis="ida"] .micro-rbc:nth-child(4n) {
    width: calc(var(--size) * 1.08);
    height: calc(var(--size) * 1.08);
}

.micro-lab-smear-stage[data-diagnosis="thal"] .micro-rbc {
    background:
        radial-gradient(circle at 50% 50%, rgba(182,35,57,0.92) 0 11%, rgba(255,247,247,0.88) 12% 25%, rgba(198,59,77,0.74) 26% 38%, rgba(255,241,242,0.42) 39% 52%, rgba(183,43,62,0.92) 53% 100%);
}

.micro-lab-smear-stage[data-diagnosis="thal"] .micro-rbc:nth-child(2n) {
    width: calc(var(--size) * 0.9);
    height: calc(var(--size) * 0.9);
}

.micro-lab-smear-stage[data-diagnosis="acd"] .micro-rbc {
    opacity: 0.9;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.76) 0 20%, rgba(255,255,255,0.3) 21% 32%, rgba(223,119,125,0.2) 33% 44%, rgba(205,97,107,0.64) 45% 72%, rgba(171,67,79,0.82) 73% 100%);
}

.micro-lab-smear-stage[data-diagnosis="lead"] .micro-rbc::after {
    inset: 18% 16%;
    background:
        radial-gradient(circle, rgba(54, 65, 83, 0.78) 0 1.4px, transparent 1.5px),
        radial-gradient(circle, rgba(54, 65, 83, 0.72) 0 1.2px, transparent 1.3px),
        radial-gradient(circle, rgba(54, 65, 83, 0.68) 0 1.1px, transparent 1.2px);
    background-size: 14px 14px, 12px 12px, 16px 16px;
    background-position: 0 0, 6px 2px, 3px 7px;
}

.micro-lab-smear-stage[data-diagnosis="sidero"] .micro-rbc {
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0 17%, rgba(255,255,255,0.24) 18% 30%, rgba(196,104,129,0.28) 31% 42%, rgba(171,76,189,0.5) 43% 58%, rgba(181,57,126,0.86) 59% 100%);
}

.micro-lab-smear-stage[data-diagnosis="sidero"] .micro-rbc:nth-child(3n)::before {
    inset: 8%;
    border: 2px dotted rgba(155, 84, 218, 0.34);
    background: none;
}

.micro-lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10,132,255,0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
}

.micro-lab-info h5 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.micro-lab-info-copy {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.micro-lab-labs {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.micro-lab-value {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.micro-lab-value.is-key {
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(236, 245, 255, 0.92));
    border-color: rgba(125, 166, 222, 0.2);
    box-shadow: 0 10px 22px rgba(10, 132, 255, 0.06);
}

.micro-lab-value.is-supporting {
    background: linear-gradient(180deg, rgba(247, 252, 245, 0.96), rgba(241, 250, 241, 0.92));
    border-color: rgba(114, 182, 135, 0.18);
}

.micro-lab-value.is-warning {
    background: linear-gradient(180deg, rgba(255, 251, 238, 0.96), rgba(255, 247, 228, 0.92));
    border-color: rgba(221, 181, 102, 0.2);
}

.micro-lab-value-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.micro-lab-value-output {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.micro-lab-notes {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.micro-lab-note {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.micro-lab-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.micro-lab-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.micro-lab-note em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

@keyframes microRbcFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) scale(var(--hover-scale, 1));
    }
    50% {
        transform: translate(-50%, -50%) translate3d(var(--shift-x, 0px), calc(var(--shift-y, 0px) + (var(--drift) * -1)), 0) scale(var(--hover-scale, 1));
    }
}

.module-workspace-card {
    padding: 24px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.module-workspace-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.module-workspace-card h3 {
    margin: 10px 0 8px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.module-workspace-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

#hoad-saved-assessments[hidden] {
    display: none;
}

.hoad-saved-assessment-list {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.hoad-saved-assessment-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hoad-saved-assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.hoad-saved-assessment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hoad-saved-assessment-head strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #111827;
}

.hoad-saved-assessment-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hoad-saved-assessment-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.hoad-saved-assessment-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hoad-saved-assessment-actions .button {
    width: auto;
}

.hoad-saved-assessment-empty {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.analytics-card {
    grid-column: 1 / -1;
}

.analytics-dropdown {
    padding: 0;
    overflow: hidden;
}

.analytics-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
}

.analytics-dropdown > summary::-webkit-details-marker {
    display: none;
}

.analytics-dropdown > summary strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.04em;
}

.analytics-dropdown-cue {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.analytics-dropdown[open] .analytics-dropdown-cue {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.analytics-dropdown[open] .analytics-dropdown-cue::before {
    content: "Close";
}

.analytics-dropdown[open] .analytics-dropdown-cue {
    font-size: 0;
}

.analytics-dropdown[open] .analytics-dropdown-cue::before {
    font-size: 12px;
}

.analytics-dropdown-body {
    padding: 0 22px 22px;
}

.analytics-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.analytics-context-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.analytics-context-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(10, 132, 255, 0.14);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 750;
}

.analytics-context-chip.muted {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(15, 23, 42, 0.08);
    color: #64748b;
}

.analytics-summary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.analytics-summary-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.analytics-summary-card strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.analytics-summary-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.analytics-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.analytics-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.analytics-focus-card {
    margin-top: 18px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
}

.analytics-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.analytics-focus-head h4 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.analytics-difficulty {
    margin-top: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.analytics-primary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 14px;
}

.analytics-primary-stat,
.analytics-secondary-stat,
.analytics-box {
    position: relative;
    padding: 16px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.analytics-primary-stat strong,
.analytics-secondary-stat strong {
    display: block;
    font-size: 36px;
    letter-spacing: -0.05em;
}

.analytics-primary-stat span,
.analytics-secondary-stat span,
.analytics-box span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.analytics-pill-row,
.analytics-box-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.analytics-metric-pill {
    position: relative;
    padding: 14px 16px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.12);
}

.analytics-metric-pill strong,
.analytics-box strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.analytics-visual {
    margin-top: 18px;
}

.analytics-range-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.08);
    overflow: visible;
}

.analytics-range-band {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10,132,255,0.18), rgba(10,132,255,0.42));
}

.analytics-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(15, 23, 42, 0.18);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.analytics-marker.mean {
    border-color: rgba(10, 132, 255, 0.56);
}

.analytics-marker.median {
    border-color: rgba(52, 199, 89, 0.56);
}

.analytics-marker.user {
    border-color: rgba(52, 199, 89, 0.9);
    background: rgba(52, 199, 89, 0.96);
}

.analytics-marker-labels {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.analytics-compare-score {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.analytics-compare-score h5 {
    margin: 0 0 12px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.analytics-score-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.analytics-score-label {
    margin-top: 6px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.analytics-percentile {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.analytics-tooltip-anchor {
    position: relative;
    cursor: help;
}

.analytics-tooltip-anchor::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(8px);
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10;
}

.analytics-tooltip-anchor:hover::after,
.analytics-tooltip-anchor:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.analytics-compare {
    margin-top: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255,255,255,0.72);
    overflow: hidden;
}

.analytics-compare summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
}

.analytics-compare summary::-webkit-details-marker {
    display: none;
}

.analytics-compare-content {
    padding: 0 18px 18px;
}

.analytics-compare-table {
    display: grid;
    gap: 10px;
}

.analytics-row {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.analytics-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.analytics-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.analytics-row-head h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.analytics-range {
    position: relative;
    margin-top: 14px;
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.08);
    overflow: hidden;
}

.analytics-range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10,132,255,0.18), rgba(10,132,255,0.46));
}

.analytics-stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.analytics-stat {
    padding: 12px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.analytics-stat strong {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.analytics-stat span {
    display: block;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    border: 1px solid rgba(10, 132, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.module-card-actions {
    margin-top: 18px;
}

.module-tool-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.module-tools-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));
}

.module-snapshot-card {
    grid-column: 1 / -1;
}

.module-snapshot-dropdown {
    padding: 0;
    overflow: hidden;
}

.module-snapshot-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
}

.module-snapshot-dropdown > summary::-webkit-details-marker {
    display: none;
}

.module-snapshot-dropdown > summary strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.04em;
}

.module-snapshot-dropdown-cue {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.module-snapshot-dropdown[open] .module-snapshot-dropdown-cue {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 0;
}

.module-snapshot-dropdown[open] .module-snapshot-dropdown-cue::before {
    content: "Close";
    font-size: 12px;
}

.module-snapshot-dropdown-body {
    padding: 0 22px 22px;
}

.exam-builder-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0s linear 0.24s;
    z-index: 120;
}

.exam-builder-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.exam-builder-modal {
    width: min(980px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,248,252,0.94));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
    transform: translateY(22px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.exam-builder-overlay.open .exam-builder-modal {
    transform: translateY(0) scale(1);
}

.exam-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.exam-builder-head h3 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.exam-builder-head p {
    margin: 12px 0 0;
    max-width: 650px;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.55;
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.78);
    color: var(--muted-strong);
    font-size: 18px;
    font-weight: 700;
    box-shadow: none;
}

.exam-builder-mode-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.exam-builder-mode-tab {
    padding: 11px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.exam-builder-mode-tab.active {
    background: linear-gradient(180deg, rgba(20,145,255,0.16), rgba(0,119,237,0.1));
    color: var(--accent-strong);
}

.exam-builder-panel {
    display: none;
    margin-top: 18px;
}

.exam-builder-panel.active {
    display: grid;
    gap: 18px;
}

.exam-builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.exam-builder-card {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
}

.exam-builder-card h4 {
    margin: 10px 0 8px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.exam-builder-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.exam-builder-card .field-grid + .toggle-row {
    margin-top: 24px;
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.switch-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 32px;
    flex: 0 0 auto;
}

.switch {
    position: relative;
    width: 54px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    transition: background 0.22s ease;
    pointer-events: none;
}

.switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    transition: transform 0.22s ease;
}

.switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.switch-input:checked + .switch {
    background: rgba(10, 132, 255, 0.46);
}

.switch-input:checked + .switch::after {
    transform: translateX(22px);
}

.section-list {
    display: grid;
    gap: 12px;
}

.exam-section-row {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(120px, 0.8fr) 52px;
    gap: 12px;
    align-items: center;
}

.delete-chip {
    width: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: rgba(255, 69, 58, 0.08);
    color: #b14a43;
    box-shadow: none;
}

.exam-builder-warning {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 244, 214, 0.64);
    border: 1px solid rgba(255, 159, 10, 0.16);
    color: #8b5a00;
    font-size: 13px;
    line-height: 1.5;
}

.exam-balance-copy {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.exam-balance-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.exam-balance-stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.exam-balance-stat strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.exam-balance-stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.timed-estimate {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.toggle-row + .timed-estimate {
    margin-top: 24px;
}

.timed-estimate + .module-card-actions {
    margin-top: 24px;
}

.exam-builder-preview {
    display: none;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
}

.exam-builder-preview.show {
    display: block;
    animation: examPreviewIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.template-save-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.template-save-controls {
    display: none;
    grid-template-columns: minmax(220px, 320px) auto;
    gap: 10px;
    align-items: end;
}

.template-save-controls.show {
    display: grid;
}

.saved-template-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
}

.saved-template-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.saved-template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.saved-template-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.saved-template-copy strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.saved-template-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.saved-template-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-template-load {
    box-shadow: none;
}

.preview-list,
.preview-meta {
    display: grid;
    gap: 10px;
}

.preview-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.preview-pill {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.preview-pill strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.preview-pill span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.preview-item span:last-child {
    color: var(--muted-strong);
    font-weight: 700;
}

.preview-warning {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 244, 214, 0.56);
    border: 1px solid rgba(255, 159, 10, 0.14);
    color: #8b5a00;
    font-size: 13px;
    line-height: 1.5;
}

#hoad-assessment-session .hoad-assessment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#hoad-assessment-session .hoad-assessment-pill,
#hoad-assessment-session .hoad-assessment-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

#hoad-assessment-session .hoad-assessment-badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#hoad-assessment-session .hoad-assessment-question {
    margin: 18px 0 0;
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: #111827;
}

#hoad-assessment-session .hoad-assessment-choices {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#hoad-assessment-session .hoad-assessment-choice {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#hoad-assessment-session .hoad-assessment-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.18);
}

#hoad-assessment-session .hoad-assessment-choice.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.24);
    color: #0f3d91;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.08);
}

#hoad-assessment-session .hoad-assessment-choice:disabled {
    cursor: default;
    opacity: 1;
}

#hoad-assessment-session .hoad-assessment-choice.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

#hoad-assessment-session .hoad-assessment-choice.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

#hoad-assessment-session .hoad-assessment-feedback {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#hoad-assessment-session .hoad-assessment-feedback-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

#hoad-assessment-session .hoad-assessment-feedback-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1f2937;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#hoad-assessment-session .hoad-assessment-feedback-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

#hoad-assessment-session .hoad-assessment-nav {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#hoad-assessment-session .hoad-assessment-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#hoad-assessment-session .hoad-assessment-arrow,
#hoad-assessment-session .hoad-assessment-submit,
#hoad-assessment-session .hoad-assessment-reset,
#hoad-assessment-session .hoad-assessment-restart {
    width: auto;
    min-width: 126px;
    padding: 14px 20px;
}

#hoad-assessment-session .hoad-assessment-arrow {
    min-width: 54px;
    padding: 14px 16px;
    border-radius: 18px;
}

#hoad-assessment-session .hoad-assessment-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#hoad-assessment-session .hoad-assessment-reset {
    background: rgba(255,255,255,0.9);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

#hoad-assessment-session .hoad-assessment-empty {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

#hoad-assessment-session .hoad-assessment-summary {
    text-align: center;
}

#hoad-assessment-session .hoad-assessment-summary-score {
    margin: 18px 0 0;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: #111827;
}

#assessment-session-page .hoad-assessment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#assessment-session-page .hoad-assessment-pill,
#assessment-session-page .hoad-assessment-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

#assessment-session-page .hoad-assessment-badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#assessment-session-page .hoad-assessment-question {
    margin: 18px 0 0;
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: #111827;
}

#assessment-session-page .hoad-assessment-choices {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#assessment-session-page .hoad-assessment-choice {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.94);
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#assessment-session-page .hoad-assessment-choice:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 132, 255, 0.18);
}

#assessment-session-page .hoad-assessment-choice.is-selected {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.24);
    color: #0f3d91;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.08);
}

#assessment-session-page .hoad-assessment-choice:disabled {
    cursor: default;
    opacity: 1;
}

#assessment-session-page .hoad-assessment-choice.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

#assessment-session-page .hoad-assessment-choice.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

#assessment-session-page .hoad-assessment-feedback {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

#assessment-session-page .hoad-assessment-feedback-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

#assessment-session-page .hoad-assessment-feedback-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1f2937;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#assessment-session-page .hoad-assessment-feedback-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

#assessment-session-page .hoad-assessment-nav {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#assessment-session-page .hoad-assessment-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#assessment-session-page .hoad-assessment-arrow,
#assessment-session-page .hoad-assessment-submit,
#assessment-session-page .hoad-assessment-reset,
#assessment-session-page .hoad-assessment-restart {
    width: auto;
    min-width: 126px;
    padding: 14px 20px;
}

#assessment-session-page .hoad-assessment-arrow {
    min-width: 54px;
    padding: 14px 16px;
    border-radius: 18px;
}

#assessment-session-page .hoad-assessment-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#assessment-session-page .hoad-assessment-reset {
    background: rgba(255,255,255,0.9);
    color: #334155;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

#assessment-session-page .hoad-assessment-empty {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

#assessment-session-page .hoad-assessment-summary {
    text-align: center;
}

#assessment-session-page .hoad-assessment-summary-score {
    margin: 18px 0 0;
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -0.05em;
    color: #111827;
}

.assessment-session-page {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    background:
        radial-gradient(circle at top left, rgba(10, 132, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    overflow: auto;
}

.assessment-session-page.show {
    display: block;
    animation: fadeIn 0.24s ease;
}

.assessment-session-shell {
    min-height: 100vh;
    padding: 28px;
}

.assessment-session-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.arena-topbar-copy h3 {
    margin: 6px 0 0;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.assessment-session-topbar p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.arena-topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.arena-topbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.assessment-session-close {
    flex: 0 0 auto;
    width: auto;
}

#assessment-arena {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
}

.arena-sidebar,
.arena-question-panel,
.arena-summary-card {
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.arena-sidebar {
    padding: 22px 18px;
    align-self: start;
    position: sticky;
    top: 24px;
}

.arena-sidebar h4 {
    margin: 8px 0 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.arena-sidebar-copy {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.arena-sidebar-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.arena-nav-button {
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.arena-nav-button.is-current {
    background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(229,239,255,0.92));
    border-color: rgba(10, 132, 255, 0.22);
    color: #0f3d91;
    box-shadow: 0 12px 24px rgba(10, 132, 255, 0.1);
}

.arena-nav-button.is-submitted {
    border-color: rgba(148, 163, 184, 0.28);
}

.arena-nav-button.is-correct {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.92));
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

.arena-nav-button.is-wrong {
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 228, 230, 0.92));
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.arena-sidebar-stats {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.arena-sidebar-stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.arena-sidebar-stat strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.arena-sidebar-stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.arena-main {
    min-width: 0;
}

.arena-question-panel {
    padding: 26px;
}

.arena-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.arena-panel-head h4 {
    margin: 8px 0 0;
    font-size: 30px;
    letter-spacing: -0.05em;
}

.arena-feedback-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.arena-feedback-status.is-correct {
    background: rgba(236, 253, 245, 0.98);
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

.arena-feedback-status.is-wrong {
    background: rgba(255, 241, 242, 0.98);
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.arena-feedback {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.arena-feedback-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.arena-feedback-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f2937;
}

.arena-feedback-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #334155;
}

.arena-summary-card {
    padding: 28px;
}

.arena-summary-card h4 {
    margin: 8px 0 0;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.arena-summary-score {
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 62px);
    font-weight: 850;
    letter-spacing: -0.06em;
    color: #111827;
}

.arena-summary-percent {
    margin-top: 8px;
    color: var(--muted);
    font-size: 16px;
}

.arena-summary-missed {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.arena-summary-missed-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.arena-summary-missed-item strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.arena-summary-missed-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.arena-summary-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.arena-summary-actions .button {
    width: auto;
}

.quiz-save-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(244, 247, 251, 0.58);
    backdrop-filter: blur(18px);
}

.quiz-save-overlay.show {
    display: flex;
    animation: fadeIn 0.22s ease;
}

.quiz-save-modal {
    width: min(460px, 100%);
    padding: 26px;
    border-radius: 28px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

.quiz-save-modal h3 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.quiz-save-modal p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.quiz-save-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quiz-save-actions .button {
    width: auto;
}

.quiz-save-controls {
    display: none;
    margin-top: 18px;
    gap: 12px;
}

.quiz-save-controls.show {
    display: grid;
}

.quiz-save-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

@keyframes examPreviewIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .assessment-session-page {
        overflow: auto;
    }

    .assessment-session-shell {
        padding: 18px 14px 28px;
    }

    .assessment-session-topbar {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .arena-topbar-meta {
        justify-content: flex-start;
    }

    #assessment-arena {
        grid-template-columns: 1fr;
    }

    .arena-sidebar {
        position: static;
        overflow: hidden;
    }

    .arena-sidebar-grid {
        grid-template-columns: repeat(10, minmax(64px, 64px));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .arena-question-panel {
        padding: 22px;
    }

    #assessment-session-page .hoad-assessment-nav {
        flex-direction: column;
        align-items: stretch;
    }

    #assessment-session-page .hoad-assessment-nav-group {
        justify-content: space-between;
    }

    .arena-summary-actions .button {
        width: 100%;
    }

    .quiz-save-modal {
        padding: 22px;
        border-radius: 24px;
    }

    .quiz-save-actions {
        flex-direction: column;
    }

    .quiz-save-actions .button {
        width: 100%;
    }
}

.module-snapshot-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.module-snapshot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.module-snapshot-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.module-snapshot-stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.module-snapshot-stat-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-snapshot-stat-value {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.module-snapshot-message {
    margin-top: 16px;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.55;
}

.module-snapshot-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.module-snapshot-actions {
    margin-top: 18px;
}

.student-home-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.student-home-greeting[hidden] {
    display: none;
}

.student-home-greeting h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.student-home-greeting-meta {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-assessment-bar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 20%, rgba(255, 159, 10, 0.16), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 235, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-assessment-bar:hover,
.dashboard-assessment-bar:focus-within,
.dashboard-card:hover,
.dashboard-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
}

.dashboard-bar-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ff9f0a, #ff453a);
    color: white;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(255, 159, 10, 0.22);
}

.dashboard-assessment-copy {
    min-width: 0;
}

.dashboard-assessment-copy h3 {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.dashboard-assessment-copy p {
    margin: 4px 0 0;
    color: var(--muted-strong);
    font-size: 13px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0a84ff, #34c759);
}

.dashboard-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -34px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    pointer-events: none;
}

.dashboard-card:nth-child(2)::before {
    background: linear-gradient(90deg, #7c3aed, #0a84ff);
}

.dashboard-card:nth-child(2)::after {
    background: rgba(124, 58, 237, 0.09);
}

.dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-card h3,
.dashboard-card-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-soft-pill,
.dashboard-card-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.10);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-focus-stack {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.dashboard-focus-row {
    position: relative;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-focus-row::before,
.dashboard-study-next-list span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 999px;
    background: linear-gradient(145deg, #0a84ff, #34c759);
    vertical-align: 1px;
}

.dashboard-focus-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-focus-row strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.dashboard-focus-row small {
    display: block;
    margin-top: 5px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-study-next-list {
    display: grid;
    gap: 7px;
}

.dashboard-study-next-list span {
    display: block;
    padding: 9px 10px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.3;
    transition: transform 0.18s ease, background 0.18s ease;
}

.dashboard-study-next-list span:hover {
    transform: translateX(2px);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.88));
}

.dashboard-progress-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.dashboard-progress-bar {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.dashboard-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #34c759);
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-progress-shell strong {
    min-width: 42px;
    color: var(--muted-strong);
    font-size: 13px;
}

.dashboard-card-link {
    margin-top: auto;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.dashboard-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-quick-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-quick-actions a:hover,
.dashboard-quick-actions a:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-quick-actions a:nth-child(1) {
    color: #075985;
}

.dashboard-quick-actions a:nth-child(2) {
    color: #5b21b6;
}

.dashboard-quick-actions a:nth-child(3) {
    color: #15703d;
}

.dashboard-quick-actions a:nth-child(4) {
    color: #b42318;
}

.dashboard-quick-actions a:nth-child(5) {
    color: #9f5b00;
}

.journey-card {
    position: relative;
    overflow: visible;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,248,252,0.88));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    margin-top: 2px;
    animation: journeyCardIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.journey-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -90px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10,132,255,0.18), transparent 68%);
    pointer-events: none;
}

.journey-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.journey-copy h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.journey-copy p {
    margin: 16px 0 0;
    max-width: 720px;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.55;
}

.journey-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.journey-summary {
    display: grid;
    gap: 14px;
}

.journey-summary-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.22s ease;
    animation: journeyStatIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.journey-summary-card:nth-child(1) {
    animation-delay: 0.12s;
}

.journey-summary-card:nth-child(2) {
    animation-delay: 0.2s;
}

.journey-summary-card:nth-child(3) {
    animation-delay: 0.28s;
}

.journey-summary-card:nth-child(4) {
    animation-delay: 0.36s;
}

.journey-summary-card:hover,
.journey-summary-card:focus-within {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.journey-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.journey-summary-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.arena-question-widget {
    position: relative;
    margin: 22px 0 0 auto;
    display: grid;
    gap: 8px;
    width: min(320px, 100%);
    padding: 24px 24px 22px;
    text-align: left;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(103, 193, 255, 0.34), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
    border: 1px solid rgba(10, 132, 255, 0.12);
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255,255,255,0.6) inset,
        0 0 34px rgba(10, 132, 255, 0.12);
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.24s ease;
    animation: arenaWidgetFloat 6.6s ease-in-out infinite;
}

.arena-question-widget:hover,
.arena-question-widget:focus-visible {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 28px 52px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255,255,255,0.65) inset,
        0 0 44px rgba(10, 132, 255, 0.18);
    border-color: rgba(10, 132, 255, 0.18);
}

.arena-question-widget.is-pulsing {
    animation: arenaWidgetPulse 0.44s ease;
}

.arena-question-widget:hover .arena-question-count,
.arena-question-widget:focus-visible .arena-question-count {
    transform: scale(1.04);
}

.arena-question-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.1);
    color: #0a5fd0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.arena-question-badge {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(10, 132, 255, 0.08);
    color: #3b82c4;
    font-size: 12px;
    font-weight: 700;
}

.arena-question-count {
    display: block;
    margin-top: 2px;
    font-size: clamp(58px, 7vw, 74px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: #111827;
    transition: transform 0.24s ease;
}

.arena-question-title {
    display: block;
    margin-top: 2px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.arena-question-subtitle {
    display: block;
    max-width: 240px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.arena-question-orb,
.arena-question-spark {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.arena-question-orb {
    right: 22px;
    top: 24px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(103,193,255,0.38) 52%, rgba(10,132,255,0.08) 75%, transparent 100%);
    filter: blur(0.2px);
    opacity: 0.95;
}

.arena-question-spark {
    right: 76px;
    top: 44px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(186,230,253,0.8));
    box-shadow: 0 0 18px rgba(10, 132, 255, 0.2);
}

.arena-question-toast {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.arena-question-toast.show {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes arenaWidgetPulse {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.018);
    }
    100% {
        transform: scale(1);
    }
}

#journeyStepTimelineDetails {
    white-space: pre-line;
}

.journey-progress-wrap {
    margin-top: 24px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow: visible;
}

.journey-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.08);
    overflow: hidden;
}

.journey-track-fill {
    height: 100%;
    border-radius: inherit;
    width: 0%;
    background: linear-gradient(90deg, #0a84ff, #34c759);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.module-rail {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.module-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted);
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    gap: 8px;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.24s ease, filter 0.22s ease;
}

.module-pill.completed {
    background: rgba(52, 199, 89, 0.14);
    color: #15703d;
    border-color: rgba(52, 199, 89, 0.18);
}

.module-pill.current {
    background: rgba(10, 132, 255, 0.14);
    color: var(--accent-strong);
    border-color: rgba(10, 132, 255, 0.22);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.1);
    transform: translateY(-1px);
}

.module-pill.future {
    background: rgba(17, 19, 24, 0.04);
    color: #98a2b3;
}

.module-pill:hover,
.module-pill:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
    filter: saturate(1.01);
    outline: none;
    z-index: 5;
}

.module-pill.completed:hover,
.module-pill.completed:focus-visible {
    box-shadow: 0 15px 28px rgba(52, 199, 89, 0.12);
}

.module-pill.current:hover,
.module-pill.current:focus-visible {
    box-shadow: 0 16px 30px rgba(10, 132, 255, 0.12);
}

.module-pill.future:hover,
.module-pill.future:focus-visible {
    background: rgba(17, 19, 24, 0.07);
    color: #667085;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.module-pill-label {
    position: relative;
    z-index: 1;
}

.module-pill-check {
    display: none;
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: #15703d;
    opacity: 0.82;
}

.module-pill.completed .module-pill-check {
    display: inline-flex;
}

.module-pill.current::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(10, 132, 255, 0.16);
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.12);
    animation: currentModulePulse 2.6s ease-out infinite;
    pointer-events: none;
}

.module-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px) scale(0.98);
    width: max-content;
    max-width: 250px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.22s;
    transition-delay: 0s, 0s, 0.22s;
    z-index: 20;
}

.module-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.module-tooltip-code {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.module-tooltip-name {
    display: block;
    margin-top: 3px;
    color: var(--muted-strong);
}

.module-tooltip-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.module-pill:hover .module-tooltip,
.module-pill:focus-visible .module-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0.3s, 0.3s, 0.3s;
}

.journey-motivation {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 700;
}

.journey-status-line {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px) scale(0.98);
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
    z-index: 80;
}

.home-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s, 0s, 0s;
}

@keyframes currentModulePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.12);
        opacity: 0.8;
    }

    70% {
        box-shadow: 0 0 0 9px rgba(10, 132, 255, 0);
        opacity: 0;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0);
        opacity: 0;
    }
}

@keyframes brandPulse {
    0%, 100% {
        opacity: 0.72;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes brandIntroOrbit {
    0% {
        transform: translate(172px, 18px) scale(1.18);
        box-shadow: 0 12px 26px rgba(10, 132, 255, 0.26), 0 0 0 7px rgba(16, 185, 129, 0.10);
    }

    18% {
        transform: translate(138px, -13px) scale(1.08);
    }

    38% {
        transform: translate(104px, 15px) scale(1.16);
    }

    58% {
        transform: translate(66px, -9px) scale(1.05);
    }

    78% {
        transform: translate(28px, 8px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes brandTrailSweep {
    0% {
        opacity: 0;
        clip-path: inset(0 0 0 100%);
    }

    12% {
        opacity: 1;
        clip-path: inset(0 0 0 76%);
    }

    36% {
        opacity: 1;
        clip-path: inset(0 0 0 48%);
    }

    68% {
        opacity: 0.92;
        clip-path: inset(0 0 0 18%);
    }

    86% {
        opacity: 0.72;
        clip-path: inset(0 0 0 0);
    }

    100% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes journeyCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes journeyStatIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-card,
    .journey-summary-card,
    .module-pill.current::before,
    .arena-question-widget,
    .brand-pulse-dot,
    .brand-orbit-trail {
        animation: none;
    }

    .journey-summary-card,
    .module-pill,
    .module-tooltip,
    .journey-track-fill,
    .home-toast,
    .arena-question-widget,
    .arena-question-count,
    .arena-question-toast {
        transition-duration: 0.01ms;
    }
}

.topbar {
    padding: 18px 22px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-copy h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.topbar-copy p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-radius: 36px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10,132,255,0.20), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 22px;
    align-items: stretch;
}

.hero-copy h3 {
    margin: 14px 0 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.button,
button {
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button {
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.button.primary,
button {
    background: linear-gradient(180deg, #1491ff, #0077ed);
    color: white;
    box-shadow: 0 16px 30px rgba(10, 132, 255, 0.22);
}

.button.secondary {
    background: rgba(255,255,255,0.76);
    color: var(--text);
    border: 1px solid var(--line);
}

.button:hover,
button:hover {
    transform: translateY(-1px);
}

.exam-builder-modal .icon-button,
.exam-builder-modal .exam-builder-mode-tab,
.exam-builder-modal .delete-chip {
    box-shadow: none;
}

.exam-builder-modal .icon-button {
    padding: 0;
    background: rgba(255,255,255,0.78);
    color: var(--muted-strong);
}

.exam-builder-modal .exam-builder-mode-tab {
    background: transparent;
    color: var(--muted-strong);
}

.exam-builder-modal .exam-builder-mode-tab.active {
    background: linear-gradient(180deg, rgba(20,145,255,0.16), rgba(0,119,237,0.1));
    color: var(--accent-strong);
}

.exam-builder-modal .delete-chip {
    padding: 0;
    background: rgba(255, 69, 58, 0.08);
    color: #b14a43;
}

.hero-card {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62));
    border: 1px solid rgba(255, 255, 255, 0.62);
    display: grid;
    gap: 14px;
    align-content: start;
}

.metric-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.metric-row strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.metric-row span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.08);
    overflow: hidden;
}

.progress > div {
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #67c1ff);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mini-card,
.tool-card,
.feature-card {
    padding: 24px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
}

.mini-card h4,
.feature-card h4,
.tool-card h4 {
    margin: 14px 0 8px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.mini-card p,
.feature-card p,
.tool-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 800;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.82fr);
    gap: 22px;
    align-items: start;
}

.grade-dashboard {
    grid-template-columns: 1fr;
}

.tool-stack {
    display: grid;
    gap: 22px;
}

.tool-card {
    border-radius: 32px;
}

.card-header {
    margin-bottom: 18px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h3,
.card-title {
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 780;
    letter-spacing: -0.05em;
}

.card-subtitle {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.feature-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--success-soft);
    color: #15703d;
    font-size: 12px;
    font-weight: 700;
}

textarea,
input,
select {
    width: 100%;
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 15px 16px;
    border-radius: 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    min-height: 182px;
    resize: vertical;
    line-height: 1.5;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(10, 132, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.tool-card button {
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.button-row button,
.button-row .button {
    width: auto;
    min-width: 180px;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted-strong);
    border: 1px solid var(--line);
}

.setup-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.grade-setup-dropdown {
    padding: 0;
    overflow: hidden;
}

.grade-setup-dropdown > summary {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
}

.grade-setup-dropdown > summary::-webkit-details-marker {
    display: none;
}

.grade-setup-summary-copy strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.grade-setup-summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.grade-setup-body {
    padding: 0 24px 24px;
}

.grade-setup-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(10, 132, 255, 0.09);
    border: 1px solid rgba(10, 132, 255, 0.14);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.4;
}

.grade-setup-prompt strong {
    flex: 0 0 auto;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grade-pilot-ready .grade-setup-prompt {
    display: none;
}

.grade-assessment-entry-card {
    position: relative;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.grade-setup-needed .grade-assessment-entry-card {
    opacity: 0.62;
    background: rgba(248, 250, 252, 0.74);
}

.grade-setup-needed .grade-assessment-entry-card::before {
    content: "Set your current module in Course Setup to start entering assessments.";
    display: block;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 204, 0, 0.13);
    border: 1px solid rgba(255, 149, 0, 0.18);
    color: #8a5a00;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-stack[hidden] {
    display: none;
}

.field-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.setup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.setup-actions button {
    width: auto;
    min-width: 160px;
}

.grade-save-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(10, 132, 255, 0.1);
}

.grade-save-panel.saved {
    background: linear-gradient(145deg, rgba(236, 253, 245, 0.86), rgba(255, 255, 255, 0.9));
    border-color: rgba(52, 199, 89, 0.18);
    box-shadow: 0 16px 34px rgba(52, 199, 89, 0.08);
}

.grade-save-panel h3 {
    margin: 6px 0 0;
    font-size: 22px;
    letter-spacing: -0.045em;
}

.grade-save-panel p {
    max-width: 620px;
}

.grade-save-panel .setup-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.grade-plan-locked .grade-setup-dropdown,
.grade-plan-locked .grade-row,
.grade-plan-locked .import-panel {
    opacity: 0.78;
}

.grade-plan-locked input:disabled,
.grade-plan-locked select:disabled,
.grade-plan-locked textarea:disabled {
    color: var(--muted-strong);
    background: rgba(248, 250, 252, 0.72);
    cursor: default;
}

.grade-plan-locked #rows .s {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(10, 132, 255, 0.26);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.08);
}

.module-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.grade-row {
    display: grid;
    grid-template-columns: 1.05fr 1.45fr 1.08fr 0.9fr 0.9fr minmax(118px, 0.9fr) 52px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    position: relative;
}

.grade-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.grade-row-status.scored {
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.16);
    color: #15703d;
}

.grade-row-status.upcoming {
    background: rgba(10, 132, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.14);
    color: var(--accent-strong);
}

.grade-row-status.missing-score {
    background: rgba(255, 159, 10, 0.13);
    border-color: rgba(255, 159, 10, 0.18);
    color: #9a5d00;
}

.grade-row-status.missing-weight {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.14);
    color: #b42318;
}

.grade-date-suggestion {
    grid-column: 2 / 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(10, 132, 255, 0.18);
    background: rgba(10, 132, 255, 0.07);
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1.35;
}

.grade-date-suggestion label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.grade-date-suggestion-select {
    min-height: 30px;
    padding: 4px 26px 4px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.grade-date-suggestion-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.grade-date-suggestion-actions button {
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: none;
}

.grade-date-dismiss {
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted-strong);
}

.header-row {
    margin-bottom: 10px;
}

.delete-btn {
    background: var(--danger-soft);
    color: var(--danger);
    box-shadow: none;
    padding: 15px 0;
    border-radius: 16px;
}

.delete-btn:hover {
    background: rgba(255, 69, 58, 0.16);
}

.result-panel {
    margin-top: 26px;
    padding: 30px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,0.88));
    border: 1px solid var(--line);
}

.grade-clarity-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.grade-clarity-heading h3 {
    margin: 5px 0 0;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.course-setup-heading {
    margin-top: 18px;
}

.grade-clarity-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.grade-clarity-pill.muted {
    background: rgba(15, 23, 42, 0.05);
    color: var(--muted-strong);
}

.predictor-card {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,252,0.9));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.84);
    overflow: hidden;
    transition: box-shadow 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.predictor-card.risk-green {
    box-shadow: 0 18px 40px rgba(52, 199, 89, 0.08), inset 0 1px 0 rgba(255,255,255,0.84);
}

.predictor-card.risk-blue {
    box-shadow: 0 18px 40px rgba(10, 132, 255, 0.08), inset 0 1px 0 rgba(255,255,255,0.84);
}

.predictor-card.risk-yellow {
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255,255,255,0.84);
}

.predictor-card.risk-red {
    box-shadow: 0 18px 40px rgba(255, 69, 58, 0.08), inset 0 1px 0 rgba(255,255,255,0.84);
}

.predictor-toggle {
    width: 100%;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.predictor-toggle:hover,
.predictor-toggle:focus-visible {
    background: rgba(255,255,255,0.48);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.predictor-toggle:hover {
    transform: translateY(-2px) scale(1.01);
}

.predictor-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.predictor-summary-line {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 750;
    letter-spacing: -0.04em;
    color: var(--text);
}

.predictor-summary-meta {
    font-size: 13px;
    color: var(--muted);
}

.predictor-toggle-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.predictor-risk-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.predictor-risk-pill.risk-green {
    background: rgba(52, 199, 89, 0.12);
    color: #15703d;
}

.predictor-risk-pill.risk-blue {
    background: rgba(10, 132, 255, 0.12);
    color: #0a63c7;
}

.predictor-risk-pill.risk-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: #a16207;
}

.predictor-risk-pill.risk-red {
    background: rgba(255, 69, 58, 0.12);
    color: #b42318;
}

.predictor-chevron {
    font-size: 16px;
    color: var(--muted);
    transition: transform 0.22s ease;
}

.predictor-card.expanded .predictor-chevron {
    transform: rotate(180deg);
}

.predictor-details {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    padding: 0 22px;
    border-top: 1px solid transparent;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.24s ease, padding 0.24s ease, border-color 0.24s ease;
}

.predictor-card.expanded .predictor-details {
    max-height: 1100px;
    opacity: 1;
    transform: translateY(0);
    padding: 16px 22px 22px;
    border-top-color: rgba(15, 23, 42, 0.05);
    pointer-events: auto;
}

.predictor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.predictor-stat {
    min-height: 164px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.predictor-stat.secondary {
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.predictor-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.predictor-value {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--text);
}

.predictor-context {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: rgba(71, 85, 105, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.predictor-risk-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.predictor-stat.secondary .predictor-value {
    font-size: clamp(24px, 3vw, 34px);
    opacity: 0.9;
}

.scenario-card {
    margin-top: 18px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.scenario-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.scenario-feedback {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.scenario-feedback.passing {
    background: rgba(52, 199, 89, 0.12);
    color: #15703d;
}

.scenario-feedback.risk {
    background: rgba(255, 69, 58, 0.12);
    color: #b42318;
}

.scenario-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    margin-top: 18px;
    align-items: stretch;
}

.scenario-slider-wrap {
    padding: 18px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.scenario-slider-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.scenario-slider-value {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.scenario-range {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10,132,255,0.18), rgba(10,132,255,0.58));
    outline: none;
}

.scenario-range::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(10,132,255,0.16);
    box-shadow: 0 10px 20px rgba(10,132,255,0.16);
}

.scenario-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(10,132,255,0.16);
    box-shadow: 0 10px 20px rgba(10,132,255,0.16);
}

.scenario-slider-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.scenario-output {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.scenario-output.updating {
    transform: translateY(-2px);
    opacity: 0.92;
}

.scenario-output-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scenario-output-value {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.scenario-insight {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.predictor-copy {
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.result-panel > .summary-grid:first-of-type {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr);
}

.course-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-setup-metrics[hidden] {
    display: none;
}

.course-setup-complete-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.16);
    color: #15703d;
}

.course-setup-complete-strip[hidden] {
    display: none;
}

.course-setup-complete-strip strong {
    display: block;
    margin-top: 4px;
    color: #14532d;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.course-setup-complete-strip > span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.summary-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.summary-card.secondary-metric {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.summary-card .label {
    display: block;
    margin-bottom: 6px;
}

.summary-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.summary-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.current-grade {
    display: block;
    margin: 10px 0;
    font-size: clamp(56px, 9vw, 92px);
    font-weight: 850;
    letter-spacing: -0.08em;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 600;
}

.status-badge {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted-strong);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.target-block {
    margin-top: 18px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.target-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: end;
}

.target-output {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.target-output strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.target-output span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.import-panel {
    margin-top: 18px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.54);
    overflow: hidden;
}

.import-panel summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.import-panel summary::-webkit-details-marker {
    display: none;
}

.import-panel summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.import-content {
    padding: 0 20px 20px;
}

.empty-state {
    padding: 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(15, 23, 42, 0.10);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.status-platinum {
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(231, 241, 255, 0.9));
    border-color: rgba(62, 115, 255, 0.24);
    box-shadow: 0 16px 34px rgba(62, 115, 255, 0.12);
}

.status-green {
    background: linear-gradient(180deg, rgba(245, 255, 249, 0.98), rgba(232, 249, 239, 0.92));
    border-color: rgba(52, 199, 89, 0.22);
    box-shadow: 0 16px 34px rgba(52, 199, 89, 0.12);
}

.status-yellow {
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 244, 214, 0.92));
    border-color: rgba(255, 159, 10, 0.24);
    box-shadow: 0 16px 34px rgba(255, 159, 10, 0.12);
}

.status-red {
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(255, 231, 231, 0.92));
    border-color: rgba(255, 69, 58, 0.22);
    box-shadow: 0 16px 34px rgba(255, 69, 58, 0.12);
}

.badge-platinum {
    background: rgba(62, 115, 255, 0.12);
    color: #3053cc;
    border-color: rgba(62, 115, 255, 0.18);
}

.badge-green {
    background: rgba(52, 199, 89, 0.12);
    color: #15703d;
    border-color: rgba(52, 199, 89, 0.18);
}

.badge-yellow {
    background: rgba(255, 159, 10, 0.14);
    color: #9a5d00;
    border-color: rgba(255, 159, 10, 0.18);
}

.badge-red {
    background: rgba(255, 69, 58, 0.12);
    color: #b3261e;
    border-color: rgba(255, 69, 58, 0.18);
}

.saved-modules {
    display: grid;
    gap: 14px;
}

.saved-modules-dropdown {
    padding: 0;
    overflow: hidden;
}

.saved-modules-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    cursor: pointer;
    list-style: none;
}

.saved-modules-dropdown > summary::-webkit-details-marker {
    display: none;
}

.saved-modules-dropdown > summary strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.saved-modules-dropdown > summary .card-subtitle {
    display: block;
    margin-top: 8px;
}

.saved-modules-dropdown-cue {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.saved-modules-dropdown[open] .saved-modules-dropdown-cue {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 0;
}

.saved-modules-dropdown[open] .saved-modules-dropdown-cue::before {
    content: "Close";
    font-size: 12px;
}

.saved-modules-dropdown-body {
    padding: 0 22px 22px;
}

.saved-modules[hidden] {
    display: none;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.history-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-md);
    animation: historyCardIn 0.36s ease both;
}

.history-card h4 {
    margin: 10px 0 6px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.history-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.history-card-subtitle {
    margin-top: 6px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.history-card-note {
    margin-top: 8px;
    color: #15703d;
    font-size: 12px;
    font-weight: 700;
}

.history-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.12);
    color: #15703d;
    border: 1px solid rgba(52, 199, 89, 0.16);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.history-card.passed {
    background: linear-gradient(180deg, rgba(247, 255, 250, 0.96), rgba(238, 250, 243, 0.9));
    border-color: rgba(52, 199, 89, 0.16);
    box-shadow: 0 18px 36px rgba(52, 199, 89, 0.1), 0 0 0 1px rgba(52, 199, 89, 0.04);
    transform: translateY(-2px);
    animation: passedHistoryCardIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes historyCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes passedHistoryCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.history-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.history-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.history-stat {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.history-stat strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.history-stat span {
    display: block;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.history-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.history-actions button {
    width: auto;
    min-width: 110px;
}

.student-profile-overlay,
.saved-editor-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0s linear 0.24s;
    z-index: 130;
}

.student-profile-overlay.open,
.saved-editor-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.student-profile-modal,
.saved-editor-modal {
    width: min(1080px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,248,252,0.94));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
    transform: translateY(22px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.student-profile-overlay.open .student-profile-modal,
.saved-editor-overlay.open .saved-editor-modal {
    transform: translateY(0) scale(1);
}

.student-profile-head,
.saved-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.student-profile-form {
    display: grid;
    gap: 20px;
}

.student-profile-form[hidden],
.student-profile-summary[hidden] {
    display: none;
}

.student-profile-summary {
    display: grid;
    gap: 18px;
}

.student-profile-summary-card {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 253, 0.82));
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.student-profile-summary-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.student-profile-summary-main strong {
    display: block;
    margin-top: 4px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.student-profile-current-module {
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 22px;
    background: var(--accent-soft);
    border: 1px solid rgba(10, 132, 255, 0.16);
    color: var(--accent-strong);
}

.student-profile-current-module span,
.student-profile-summary-grid span,
.student-profile-summary-completed > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-profile-current-module strong {
    margin-top: 4px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.student-profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.student-profile-summary-grid div {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.student-profile-summary-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.student-profile-summary-completed {
    display: grid;
    gap: 10px;
}

.student-profile-summary-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.student-profile-summary-pills span,
.student-profile-summary-pills em {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: var(--muted-strong);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.student-profile-summary-card p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.student-profile-summary-actions,
.student-profile-form-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-profile-completed {
    display: grid;
    gap: 12px;
}

.student-profile-module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.student-profile-module-pill {
    cursor: pointer;
}

.student-profile-module-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.student-profile-module-pill span {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.student-profile-module-pill:hover span,
.student-profile-module-pill input:focus-visible + span {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
}

.student-profile-module-pill input:checked + span {
    background: var(--accent-soft);
    border-color: rgba(10, 132, 255, 0.24);
    color: var(--accent-strong);
}

.student-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.student-profile-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.saved-editor-rows {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.saved-editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.ghost-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(255, 69, 58, 0.14);
    box-shadow: none;
}

.celebration-burst {
    position: absolute;
    top: 50%;
    right: 62px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 3;
}

.burst-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    opacity: 0;
    animation: burst-pop 820ms ease-out forwards;
}

.nice-work-tag {
    position: absolute;
    top: -8px;
    right: 4px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.88);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(6px);
    animation: tag-rise 1200ms ease-out forwards;
    pointer-events: none;
}

@keyframes burst-pop {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(1.05);
    }
}

@keyframes tag-rise {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-18px);
    }
}

.aside-stack {
    display: grid;
    gap: 22px;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.feature-item {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.feature-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.roadmap {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.roadmap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.roadmap-item strong {
    font-size: 14px;
    letter-spacing: -0.02em;
}

.roadmap-item span {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.05);
    color: var(--muted-strong);
}

.footer-note {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 6px 0 16px;
}

@media (max-width: 1180px) {
    .dashboard-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modules-card-grid,
    .modules-card-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-grid,
    .hero-grid,
    .placeholder-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body {
        padding: 16px;
    }

    .hero,
    .tool-card,
    .mini-card,
    .feature-card,
    .site-nav,
    .topbar {
        border-radius: 26px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .modules-overview-hero,
    .modules-current-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-grid,
    .target-grid,
    .setup-grid,
    .history-grid,
    .history-meta,
    .module-rail,
    .subject-card-grid,
    .module-workspace-grid,
    .topic-workspace-grid,
    .topic-columns,
    .pattern-grid,
    .memory-grid,
    .placeholder-grid-tight,
    .ida-pattern-grid,
    .ida-cause-grid,
    .nbme-pearls-grid,
    .hep-diagram,
    .hep-captions,
    .ida-hep-explanation,
    .micro-lab-grid,
    .micro-lab-labs,
    .exam-builder-grid,
    .field-grid,
    .topic-detail-grid,
    .preview-meta,
    .module-snapshot-grid,
    .analytics-summary-grid,
    .analytics-stats-grid,
    .exam-balance-grid,
    .predictor-grid,
    .scenario-grid,
    .modules-card-grid,
    .modules-card-grid.compact {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        top: 12px;
    }

    .site-nav-brand {
        width: 100%;
    }

    .site-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav-links {
        justify-content: flex-start;
        width: 100%;
        border-radius: 24px;
    }

    .student-home-greeting {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-home-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-assessment-bar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-assessment-bar .dashboard-card-note,
    .dashboard-assessment-bar .dashboard-card-link {
        grid-column: 1 / -1;
    }

    .dashboard-card-head {
        flex-direction: column;
    }

    .student-profile-summary-main {
        flex-direction: column;
    }

    .student-profile-current-module {
        width: 100%;
    }

    .student-profile-grid,
    .student-profile-summary-grid,
    .student-profile-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    :root {
        --nav-offset: 156px;
    }

    .workspace-landing {
        gap: 14px;
        padding-bottom: 14px;
    }

    .workspace-landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 30px;
    }

    .workspace-landing-copy h1 {
        letter-spacing: -0.06em;
    }

    .workspace-capability-grid {
        grid-template-columns: 1fr;
    }

    .workspace-showcase-stage {
        min-height: 0;
        display: grid;
        gap: 12px;
    }

    .workspace-showcase-bubble {
        display: none;
    }

    .workspace-preview-widget {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        animation: none;
    }

    .workspace-landing-actions .button {
        width: 100%;
    }

    .grade-row {
        grid-template-columns: 1fr;
    }

    .grade-date-suggestion {
        grid-column: 1 / -1;
        align-items: flex-start;
        flex-direction: column;
    }

    .grade-date-suggestion-actions {
        width: 100%;
    }

    .header-row {
        display: none;
    }

    .delete-btn {
        width: 100%;
    }

    .hero-copy h3 {
        font-size: clamp(34px, 12vw, 54px);
    }

    .hero-copy p {
        font-size: 16px;
    }

    .site-nav-links {
        gap: 8px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-landing-active .site-nav-links::before {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .nav-link,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown {
        width: 100%;
    }

    .student-workspace-button {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        margin-top: 8px;
        width: 100%;
    }

    .main {
        padding-top: 18px;
    }

    .journey-card {
        padding: 26px 22px;
    }

    .arena-question-widget {
        margin: 18px 0 0;
        width: 100%;
    }

    .exam-builder-modal {
        padding: 22px;
    }

    .exam-builder-head {
        flex-direction: column;
    }

    .exam-section-row {
        grid-template-columns: 1fr;
    }

}
