:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #eef2f7;
    --text: #1f2937;
    --muted: #64748b;
    --line: #d9e0ea;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --ok: #047857;
    --warning: #b45309;
    --accent: #21bfa6;
    --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.nav a:hover {
    color: var(--primary);
}

.nav-user {
    color: var(--text);
    font-weight: 600;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: stretch;
}

.panel,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 28px;
}

.card {
    padding: 20px;
}

.stack {
    display: grid;
    gap: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.15;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

p {
    margin: 0 0 12px;
}

.muted {
    color: var(--muted);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric strong {
    font-size: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    color: #0f172a;
    background: var(--surface-2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.badge.ok {
    color: #065f46;
    background: #d1fae5;
}

.badge.warn {
    color: #92400e;
    background: #fef3c7;
}

.badge.off {
    color: #991b1b;
    background: #fee2e2;
}

form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    font-size: 13px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(37, 99, 235, 0.15);
}

.check-row,
.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input,
.option-row input[type="radio"] {
    width: auto;
    min-height: auto;
}

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

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button.large {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
}

.button:hover,
button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.button.secondary:hover {
    color: var(--primary);
    background: var(--surface-2);
}

.button.ghost {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.button.danger {
    background: var(--danger);
    border-color: var(--danger);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    color: #075985;
    font-weight: 700;
}

.alert.error {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    background: var(--surface-2);
    font-size: 13px;
}

tr:last-child td {
    border-bottom: 0;
}

.exam-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.timer {
    position: sticky;
    top: 86px;
}

.timer strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.question {
    display: grid;
    gap: 12px;
}

.options {
    display: grid;
    gap: 10px;
}

.option-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.option-card input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}

.empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fff;
}

.landing-page {
    background:
        radial-gradient(circle at 55% 92%, rgba(45, 143, 227, 0.18), transparent 20%),
        radial-gradient(circle at 86% 30%, rgba(33, 191, 166, 0.12), transparent 25%),
        #fff;
}

.public-topbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    padding: 0 max(32px, calc((100vw - 1424px) / 2));
    background: rgba(248, 251, 255, 0.96);
    border-bottom: 1px solid #edf2f7;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #172033;
    font-size: 28px;
    font-weight: 800;
}

.public-logo {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 800;
}

.public-nav,
.public-actions,
.landing-buttons,
.trust-row {
    display: flex;
    align-items: center;
}

.public-nav {
    justify-content: center;
    gap: 34px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.public-nav a:hover {
    color: var(--primary);
}

.public-actions {
    justify-content: flex-end;
    gap: 14px;
}

.landing-wrap {
    width: min(1424px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(360px, 0.84fr) minmax(540px, 1.16fr);
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 64px 0 44px;
}

.landing-copy {
    display: grid;
    gap: 24px;
}

.pill {
    display: inline-flex;
    width: fit-content;
    min-height: 36px;
    align-items: center;
    padding: 7px 16px;
    color: #516070;
    background: #e6f6fb;
    border: 1px solid #cdebf4;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.landing-copy h1 {
    max-width: 640px;
    margin: 0;
    color: #111827;
    font-size: 60px;
    font-weight: 800;
    line-height: 1.22;
}

.landing-copy h1 span {
    color: var(--accent);
}

.landing-copy p {
    max-width: 560px;
    color: #556274;
    font-size: 21px;
    line-height: 1.35;
}

.landing-buttons {
    flex-wrap: wrap;
    gap: 16px;
}

.trust-row {
    flex-wrap: wrap;
    gap: 0;
    color: #4b5563;
    font-size: 15px;
}

.trust-row span {
    display: grid;
    width: 38px;
    height: 38px;
    margin-right: -8px;
    place-items: center;
    color: #111827;
    background: #e5e7eb;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.trust-row strong {
    margin-left: 18px;
    font-weight: 600;
}

.landing-media {
    position: relative;
    min-height: 540px;
}

.hero-img {
    position: absolute;
    display: block;
    width: min(44%, 330px);
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
}

.main-img {
    left: 12%;
    top: 36px;
}

.side-img {
    right: 0;
    top: 66px;
}

.progress-card,
.study-card {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.progress-card {
    left: 4%;
    top: 52px;
    width: 140px;
    padding: 16px;
}

.progress-dot {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 800;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    background: #dbe2ea;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    width: 78%;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.progress-card small,
.study-card small,
.study-card span {
    color: #5b6675;
}

.study-card {
    right: 2%;
    bottom: 42px;
    width: 150px;
    padding: 16px 18px;
}

.study-card strong {
    font-size: 26px;
    line-height: 1;
}

.landing-band {
    display: grid;
    gap: 24px;
    padding: 40px 0 70px;
}

.anchor-offset {
    display: block;
    height: 0;
    position: relative;
    top: -86px;
    visibility: hidden;
}

.career-showcase {
    align-items: center;
    display: grid;
    justify-items: center;
}

.career-device {
    background: #ffffff;
    border: 1px solid #dce8f3;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 45, 82, 0.16);
    display: grid;
    gap: 18px;
    max-width: 560px;
    padding: 28px;
    position: relative;
    width: min(86%, 560px);
    z-index: 1;
}

.career-device::before {
    background: #f3f8fd;
    border: 1px solid #e2edf7;
    border-radius: 18px;
    content: "";
    inset: 14px;
    position: absolute;
    z-index: -1;
}

.career-device-head,
.career-device-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.career-device-head span,
.career-device-footer small,
.career-focus-card span,
.career-mini-grid span,
.landing-section-head span,
.resources-cta span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.career-device-head strong {
    color: #0e2a4d;
    font-size: 20px;
}

.career-focus-card {
    background: linear-gradient(135deg, #0e2a4d 0%, #245f9b 100%);
    border-radius: 16px;
    color: #fff;
    display: grid;
    gap: 12px;
    padding: 24px;
}

.career-focus-card span {
    color: #9bd5ff;
}

.career-focus-card strong {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
}

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

.career-mini-grid article {
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 45, 82, 0.06);
    display: grid;
    gap: 8px;
    min-height: 92px;
    padding: 16px;
}

.career-mini-grid strong {
    color: #0e2a4d;
    font-size: 18px;
}

.career-device-footer {
    border-top: 1px solid #e6eef6;
    padding-top: 16px;
}

.career-device-footer a {
    color: var(--primary);
    font-weight: 800;
}

.career-floating-card,
.career-progress-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(220, 232, 243, 0.95);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 45, 82, 0.14);
    display: grid;
    gap: 8px;
    position: absolute;
    z-index: 2;
}

.career-floating-card {
    bottom: 48px;
    right: 2%;
    padding: 18px;
    width: 158px;
}

.career-floating-card strong {
    color: #0e2a4d;
    font-size: 30px;
    line-height: 1;
}

.career-floating-card small,
.career-floating-card span,
.career-progress-card small {
    color: #66758a;
}

.career-progress-card {
    left: 4%;
    padding: 16px;
    top: 62px;
    width: 156px;
}

.landing-section-head {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.landing-section-head h2,
.resources-cta h2 {
    color: #0e2a4d;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.landing-section-head p,
.resources-cta p {
    color: #5c6c80;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.career-section,
.tools-section,
.resources-cta {
    display: grid;
    gap: 28px;
    padding: 72px 0;
}

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

.career-card {
    background: #fff;
    border: 1px solid #dfe9f3;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 45, 82, 0.08);
    display: grid;
    gap: 12px;
    min-height: 178px;
    padding: 20px;
}

.career-card > span {
    align-items: center;
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 52px;
}

.career-card h3 {
    color: #0e2a4d;
    font-size: 20px;
    margin: 0;
}

.career-card p {
    color: #617186;
    line-height: 1.35;
    margin: 0;
}

.tone-blue > span { background: #2d8fe3; }
.tone-green > span { background: #1da36f; }
.tone-violet > span { background: #8b6bdc; }
.tone-amber > span { background: #c88718; }
.tone-navy > span { background: #0e2a4d; }
.tone-teal > span { background: #21a7a6; }

.how-section {
    background: #f5f9fd;
    border: 1px solid #e1ebf5;
    border-radius: 22px;
    margin: 20px 0;
    padding: 42px;
}

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

.how-grid article,
.tools-grid article {
    background: #fff;
    border: 1px solid #deebf6;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 45, 82, 0.07);
    display: grid;
    gap: 12px;
    padding: 22px;
}

.how-grid article > span {
    align-items: center;
    background: #e7f3fd;
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.how-grid h3,
.tools-grid h3 {
    color: #0e2a4d;
    font-size: 20px;
    margin: 0;
}

.how-grid p,
.tools-grid p {
    color: #5d6d81;
    line-height: 1.5;
    margin: 0;
}

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

.resources-cta {
    align-items: center;
    background: #0e2a4d;
    border-radius: 22px;
    color: #fff;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 26px 0 76px;
    padding: 42px;
}

.resources-cta h2,
.resources-cta p {
    color: #fff;
}

.resources-cta span {
    color: #9bd5ff;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(45, 143, 227, 0.12), transparent 34%),
        linear-gradient(180deg, #f4f9fd 0%, #eef5fb 100%);
}

.auth-shell {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 100vh;
    padding: clamp(24px, 5vh, 44px) 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(34px, 7vh, 68px);
    color: #172033;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    line-height: 1;
}

.auth-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 34px;
    font-weight: 800;
}

.auth-card {
    width: min(560px, 100%);
    padding: clamp(28px, 4vw, 46px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(218, 227, 237, 0.9);
    border-radius: 10px;
    box-shadow: 0 22px 48px rgba(26, 55, 88, 0.12);
}

.auth-card-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 8px;
    color: #0d4f83;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
}

.auth-card-header p {
    max-width: 360px;
    margin: 0 auto;
    color: #697789;
    font-size: 14px;
    line-height: 1.45;
}

.auth-card form {
    gap: 19px;
}

.auth-field {
    display: grid;
    gap: 9px;
}

.auth-field label {
    color: #48576b;
    font-size: 15px;
    font-weight: 600;
}

.auth-field input {
    min-height: 44px;
    padding: 11px 13px;
    border-color: #c8d2de;
    border-radius: 7px;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.035);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 143, 227, 0.13);
    outline: none;
}

.auth-field input::placeholder {
    color: #9aa3b4;
    font-style: italic;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
}

.auth-actions button {
    min-width: 116px;
    min-height: 44px;
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(45, 143, 227, 0.2);
}

.auth-actions button:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: var(--primary);
}

.auth-actions a,
.auth-register a {
    color: #1f83e0;
    font-weight: 500;
}

.auth-register {
    margin-top: 18px;
    color: #5d6879;
    font-size: 13px;
    text-align: center;
}

.signup-page {
    min-height: 100vh;
    background: #eef5fb;
}

.signup-brand {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #172033;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.signup-logo {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
}

.signup-shell {
    display: grid;
    justify-items: center;
    min-height: 100vh;
    padding: 144px 20px 46px;
}

.signup-progress {
    display: grid;
    grid-template-columns: repeat(5, 54px);
    justify-content: center;
    gap: 0;
    width: min(420px, 100%);
    margin: 0 0 72px;
    padding: 0;
    list-style: none;
}

.signup-progress li {
    position: relative;
    display: grid;
    place-items: center;
}

.signup-progress li::before {
    content: "";
    position: absolute;
    left: -50%;
    right: 50%;
    top: 50%;
    height: 2px;
    background: #cfd7e2;
    transform: translateY(-50%);
}

.signup-progress li:first-child::before {
    display: none;
}

.signup-progress span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    background: #fff;
    border: 2px solid #ccd4df;
    border-radius: 50%;
}

.signup-progress span::after {
    content: "";
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
}

.signup-progress .is-active span {
    border-color: var(--primary);
}

.signup-progress .is-active span::after {
    background: var(--primary);
}

.signup-progress .is-done::before,
.signup-progress .is-active::before {
    background: var(--primary);
}

.signup-progress .is-done span {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.signup-progress .is-done span::after {
    content: "✓";
    width: auto;
    height: auto;
    color: #fff;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
}

.signup-card {
    width: min(540px, 100%);
    min-height: 318px;
    padding: 46px 32px 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.signup-card h1 {
    margin-bottom: 34px;
    color: #0d4f83;
    text-align: center;
    font-size: 21px;
    font-weight: 800;
}

.signup-step {
    display: none;
}

.signup-step.is-active {
    display: grid;
    gap: 18px;
}

.signup-note {
    margin: 4px 0 0;
    color: #001b44;
    font-size: 17px;
    line-height: 1.55;
}

.signup-field-grid {
    display: grid;
    gap: 13px;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.label-row small,
.field-hint {
    color: #929bae;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
}

.field-hint {
    margin-top: -4px;
}

.email-status {
    min-height: 15px;
}

.email-status.is-error {
    color: #dc2626;
}

.email-status.is-ok {
    color: #047857;
}

.signup-card select {
    min-height: 44px;
    color: #29384c;
    border-color: #c8d2de;
    border-radius: 7px;
}

.signup-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.signup-actions button {
    min-width: 116px;
}

.signup-summary {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: #f3f8fc;
    border: 1px solid #d9e7f5;
    border-radius: 8px;
    text-align: center;
}

.signup-summary span {
    color: #5c6979;
}

.signup-summary strong {
    color: #0d4f83;
    font-size: 18px;
}

.signup-footer,
.signup-site {
    margin: 16px 0 0;
    color: #5d6879;
    font-size: 13px;
    text-align: center;
}

.signup-footer a,
.signup-site a {
    color: #1f83e0;
    font-weight: 500;
}

.signup-site {
    margin-top: 22px;
}

/* Registration redesign */
.signup-page {
    background:
        radial-gradient(circle at 50% -18%, rgba(45, 143, 227, 0.18), transparent 36%),
        linear-gradient(180deg, #f6fbff 0%, #eef5fb 52%, #eaf2f9 100%);
}

.signup-brand {
    position: absolute;
    top: 28px;
    left: max(24px, calc((100vw - 1180px) / 2));
    color: #11243d;
    font-size: clamp(24px, 2.2vw, 30px);
}

.signup-logo {
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 22px rgba(45, 143, 227, 0.22);
}

.signup-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 118px 24px 42px;
}

.signup-progress {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    width: min(560px, 100%);
    margin-bottom: 44px;
}

.signup-progress li {
    min-width: 0;
}

.signup-progress li::before {
    left: -50%;
    right: 50%;
    height: 3px;
    background: #d5dee9;
}

.signup-progress span {
    width: 34px;
    height: 34px;
    border-color: #c8d2de;
    box-shadow: 0 0 0 6px #eef5fb;
}

.signup-progress em {
    position: absolute;
    top: 46px;
    width: max-content;
    max-width: 82px;
    color: #6a7789;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.signup-progress .is-active em,
.signup-progress .is-done em {
    color: #145c94;
}

.signup-card {
    width: min(620px, 100%);
    min-height: 390px;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(220, 229, 239, 0.92);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(26, 55, 88, 0.14);
}

.signup-card h1 {
    margin-bottom: 8px;
    font-size: clamp(20px, 2vw, 24px);
}

.signup-step.is-active {
    gap: 17px;
    animation: signupFade 0.18s ease-out;
}

.signup-step-copy {
    max-width: 430px;
    margin: 0 auto 12px;
    color: #6a7789;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.signup-note {
    padding: 16px 18px;
    color: #15345d;
    background: #f3f8fd;
    border: 1px solid #dceaf7;
    border-radius: 10px;
    font-size: 15px;
}

.signup-field-grid {
    gap: 15px;
}

.signup-card .auth-field label,
.signup-card .label-row label {
    color: #45566c;
    font-weight: 700;
}

.signup-card .auth-field input,
.signup-card select {
    min-height: 46px;
    background: #fbfdff;
    border-color: #c9d4e2;
}

.signup-card .auth-field input:hover,
.signup-card select:hover {
    border-color: #aebdcd;
}

.signup-card .auth-field input:focus,
.signup-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 143, 227, 0.13);
    outline: none;
}

.field-hint {
    margin-top: -2px;
}

.signup-actions {
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.signup-actions button {
    min-width: 132px;
    min-height: 46px;
}

.signup-actions [data-register-next] {
    margin-left: auto;
    box-shadow: 0 12px 22px rgba(45, 143, 227, 0.18);
}

.signup-footer {
    margin-top: 20px;
}

.signup-site {
    margin-top: 14px;
}

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

@media (max-width: 820px) {
    .topbar,
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 14px 16px;
    }

    .hero,
    .split,
    .exam-shell,
    .landing-hero,
    .public-topbar {
        grid-template-columns: 1fr;
    }

    .public-topbar {
        gap: 14px;
        padding: 16px;
    }

    .public-nav,
    .public-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .landing-wrap {
        width: min(100% - 32px, 720px);
    }

    .landing-hero {
        min-height: auto;
        padding: 34px 0;
    }

    .landing-copy h1 {
        font-size: 38px;
    }

    .landing-copy p {
        font-size: 18px;
    }

    .landing-media {
        min-height: 720px;
    }

    .hero-img {
        width: 76%;
        height: 310px;
    }

    .main-img {
        left: 0;
        top: 70px;
    }

    .side-img {
        right: 0;
        top: 390px;
    }

    .progress-card {
        left: 8px;
        top: 10px;
    }

    .study-card {
        right: 8px;
        bottom: 0;
    }

    .auth-shell {
        min-height: 100dvh;
        padding: 24px 16px;
    }

    .auth-brand {
        margin-bottom: 30px;
    }

    .auth-logo {
        width: 48px;
        height: 48px;
    }

    .auth-card {
        padding: 28px 20px 24px;
    }

    .auth-card-header {
        margin-bottom: 24px;
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .auth-actions button {
        width: 100%;
    }

    .auth-actions a {
        text-align: center;
    }

    .signup-brand {
        position: static;
        justify-self: start;
        margin: 18px 0 0 18px;
        font-size: 24px;
    }

    .signup-shell {
        min-height: auto;
        padding: 46px 16px 38px;
    }

    .signup-progress {
        grid-template-columns: repeat(5, minmax(38px, 52px));
        margin-bottom: 38px;
    }

    .signup-card {
        padding: 32px 20px 24px;
    }

    .signup-card h1 {
        margin-bottom: 24px;
        font-size: 19px;
    }

    .signup-note {
        font-size: 15px;
    }

    .signup-actions {
        flex-direction: column;
    }

    .signup-actions button {
        width: 100%;
    }

    .timer {
        position: static;
        order: -1;
    }

    h1 {
        font-size: 28px;
    }
}

@media (max-width: 820px) {
    .signup-brand {
        position: static;
        margin: 18px 18px 0;
        font-size: 24px;
    }

    .signup-logo {
        width: 38px;
        height: 38px;
    }

    .signup-shell {
        width: 100%;
        padding: 34px 16px 34px;
    }

    .signup-progress {
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        width: 100%;
        margin-bottom: 42px;
    }

    .signup-progress span {
        width: 30px;
        height: 30px;
        box-shadow: 0 0 0 5px #eef5fb;
    }

    .signup-progress em {
        top: 42px;
        max-width: 58px;
        font-size: 10px;
    }

    .signup-card {
        min-height: auto;
        padding: 26px 18px 20px;
        border-radius: 12px;
    }

    .signup-card h1 {
        margin-bottom: 7px;
        font-size: 21px;
    }

    .signup-step-copy {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .signup-note {
        padding: 13px 14px;
        font-size: 14px;
    }

    .signup-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
        padding-top: 16px;
    }

    .signup-actions button {
        width: 100%;
    }

    .signup-actions [data-register-next] {
        margin-left: 0;
        order: 1;
    }

    .signup-actions [data-register-back] {
        order: 2;
    }
}

@media (max-width: 430px) {
    .signup-progress em {
        display: none;
    }

    .signup-progress {
        margin-bottom: 28px;
    }

    .signup-card {
        padding: 24px 16px 18px;
    }

    .label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.student-app {
    min-height: 100vh;
    color: #061f43;
    background: #fff;
}

.student-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 12px 24px;
    color: #fff;
    background: #102f56;
    box-shadow: 0 12px 28px rgba(6, 20, 46, 0.16);
}

.student-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.student-logo {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: #2d8fe3;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.student-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 0;
}

.student-menu a,
.student-sidebar-footer a,
.student-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    color: #f3f8ff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.student-menu a:hover,
.student-sidebar-footer a:hover,
.student-menu a.is-active {
    background: #214b82;
}

.student-menu span,
.student-sidebar-footer span,
.student-user span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #d7ebff;
    border: 1px solid rgba(215, 235, 255, 0.82);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
}

.student-sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
    margin-top: 0;
}

.student-sidebar-footer small {
    display: none;
    margin: 0 0 6px 2px;
    color: #9ec5ec;
    font-size: 11px;
    font-weight: 800;
}

.student-user {
    max-width: 190px;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-user.is-active {
    background: #214b82;
}

.student-user span {
    border-radius: 50%;
}

.student-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 72px;
}

.student-hero {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 350px;
    gap: 64px;
    align-items: center;
}

.student-intro h1,
.student-section h2 {
    margin: 0 0 24px;
    color: #062653;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.08;
}

.student-intro p,
.student-intro li,
.student-section p {
    color: #001f49;
    font-size: 15px;
    line-height: 1.48;
}

.student-intro ol {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding-left: 22px;
}

.student-action-list {
    display: grid;
    gap: 24px;
}

.student-action {
    display: grid;
    min-height: 62px;
    place-items: center;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.24);
    font-size: 13px;
    font-weight: 900;
}

.student-action.blue {
    background: #2f91dd;
}

.student-action.cyan {
    background: #6cc4ee;
}

.student-action.violet {
    background: #9479df;
}

.student-rule {
    width: min(868px, 100%);
    height: 1px;
    margin: 78px auto 92px;
    background: #d8dfe8;
}

.student-section h2 {
    margin-bottom: 10px;
    font-size: 30px;
}

.student-notice,
.student-result,
.student-empty {
    width: 100%;
    margin-top: 30px;
    padding: 16px 18px;
    color: #034987;
    background: #d3eaff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11);
    font-size: 13px;
    font-weight: 800;
}

.student-result {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

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

.student-stats article {
    display: grid;
    gap: 5px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid #ddebf7;
    border-radius: 8px;
}

.student-stats strong {
    color: #062653;
    font-size: 28px;
}

.student-stats span {
    color: #607086;
    font-size: 13px;
    font-weight: 700;
}

.analytics-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.analytics-header > div > span,
.analytics-latest span,
.analytics-overview article > span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.analytics-header h2 {
    margin-bottom: 10px;
}

.analytics-latest {
    display: grid;
    min-width: 230px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.analytics-latest strong {
    color: #062653;
    font-size: 30px;
    line-height: 1;
}

.analytics-latest small {
    margin-top: 6px;
    color: #607086;
    font-weight: 700;
}

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

.analytics-overview article,
.analytics-panel {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.analytics-overview article {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 150px;
    padding: 18px;
}

.analytics-overview strong {
    color: #062653;
    font-size: 24px;
    line-height: 1.12;
}

.analytics-score-card strong {
    font-size: 34px;
}

.analytics-overview small {
    color: #607086;
    font-size: 13px;
    font-weight: 700;
}

.analytics-meter {
    height: 9px;
    overflow: hidden;
    background: #dce7f3;
    border-radius: 999px;
}

.analytics-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #21bfa6);
    border-radius: inherit;
}

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

.analytics-panel {
    padding: 22px;
}

.analytics-panel h3 {
    color: #062653;
    font-size: 21px;
    font-weight: 900;
}

.analytics-panel p {
    color: #607086;
    font-size: 14px;
}

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

.analytics-category-list article {
    display: grid;
    gap: 9px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e1ecf6;
    border-radius: 8px;
}

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

.analytics-category-row strong {
    color: #062653;
}

.analytics-category-row span {
    color: var(--primary);
    font-weight: 900;
}

.analytics-category-list p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.analytics-advice {
    display: grid;
    align-content: start;
    gap: 12px;
}

.analytics-advice strong {
    color: #062653;
}

.statistics-main {
    padding-top: 66px;
}

.statistics-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.statistics-hero span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.statistics-hero h1 {
    margin: 0 0 10px;
    color: #062653;
    font-size: 42px;
    font-weight: 900;
}

.statistics-hero p {
    max-width: 720px;
    color: #42526b;
    font-size: 15px;
}

.statistics-kpis {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.statistics-kpis article,
.statistics-panel {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.statistics-kpis article {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 154px;
    padding: 18px;
}

.statistics-kpis span,
.statistics-last-box span,
.statistics-missed-list span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.statistics-kpis strong {
    color: #062653;
    font-size: 24px;
    line-height: 1.12;
}

.statistics-primary-kpi strong {
    font-size: 38px;
}

.statistics-kpis small {
    color: #607086;
    font-size: 13px;
    font-weight: 700;
}

.statistics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.statistics-lower {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 18px;
}

.statistics-panel {
    padding: 22px;
}

.statistics-panel h2 {
    margin-bottom: 8px;
    color: #062653;
    font-size: 24px;
    font-weight: 900;
}

.statistics-panel p {
    color: #607086;
    font-size: 14px;
}

.statistics-plan {
    display: grid;
    gap: 14px;
}

.statistics-plan strong {
    color: #062653;
}

.statistics-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.statistics-last-box {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 16px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
}

.statistics-last-box strong {
    color: #062653;
    font-size: 30px;
}

.statistics-last-box small {
    color: #607086;
    font-weight: 700;
}

.statistics-trend {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.statistics-trend article {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e1ecf6;
    border-radius: 8px;
}

.statistics-trend article > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.statistics-trend strong {
    color: #062653;
    font-size: 22px;
}

.statistics-trend span,
.statistics-trend small {
    color: #607086;
    font-size: 13px;
    font-weight: 700;
}

.statistics-missed-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.statistics-missed-list article {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #fff8f8;
    border: 1px solid #f2dddd;
    border-radius: 8px;
}

.statistics-missed-list span {
    color: #b42318;
}

.statistics-missed-list p {
    margin: 0;
    color: #344154;
    font-weight: 700;
}

.resources-main {
    padding-top: 66px;
}

.resources-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.resources-hero > div > span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.resources-hero h1 {
    margin: 0 0 10px;
    color: #062653;
    font-size: 42px;
    font-weight: 900;
}

.resources-hero p {
    max-width: 720px;
    color: #42526b;
    font-size: 15px;
}

.resources-search-card {
    display: grid;
    gap: 4px;
    padding: 20px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.resources-search-card strong {
    color: #062653;
    font-size: 36px;
    line-height: 1;
}

.resources-search-card span {
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
}

.resources-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dbe4ee;
}

.resources-filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    color: #24405f;
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.resources-filters a.is-active,
.resources-filters a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.resources-featured {
    margin-bottom: 34px;
}

.resources-featured h2,
.resources-library h2 {
    color: #062653;
    font-size: 28px;
    font-weight: 900;
}

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

.resources-grid.featured {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.resource-card {
    display: grid;
    gap: 14px;
    align-content: space-between;
    min-height: 260px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.resource-card.is-featured {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: #cae3f8;
}

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

.resource-card-top span {
    width: fit-content;
    padding: 6px 10px;
    color: #075985;
    background: #dff1ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-card-top small,
.resource-card > small {
    color: #66758a;
    font-weight: 800;
}

.resource-card h3 {
    color: #062653;
    font-size: 19px;
    line-height: 1.18;
}

.resource-card p {
    color: #5f6d80;
}

.resource-admin-list {
    display: grid;
    gap: 14px;
    max-height: 760px;
    overflow: auto;
    padding-right: 4px;
}

.student-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.student-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.student-exam-card {
    display: grid;
    gap: 16px;
    align-content: space-between;
    min-height: 230px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.student-exam-card h3 {
    color: #062653;
}

.student-exam-card p {
    color: #5f6d80;
}

.student-exam-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6a7789;
    font-size: 13px;
}

.student-exam-meta strong {
    color: #0d4f83;
}

.student-score {
    padding: 12px;
    background: #f3f8fd;
    border-radius: 7px;
    font-weight: 800;
}

.student-progress-line {
    height: 9px;
    overflow: hidden;
    background: #dce7f3;
    border-radius: 999px;
}

.student-progress-line span {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.student-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-card-actions form {
    display: inline-flex;
}

.student-card-actions .button {
    min-height: 38px;
}

.profile-main {
    padding-top: 72px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
    gap: 34px;
    align-items: start;
}

.profile-summary {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.profile-summary > span {
    width: fit-content;
    padding: 7px 11px;
    color: #075985;
    background: #dff1ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-summary h1 {
    margin: 0;
    color: #062653;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.08;
}

.profile-summary p {
    max-width: 440px;
    color: #42526b;
    font-size: 15px;
}

.profile-identity {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
}

.profile-identity strong {
    color: #062653;
    font-size: 18px;
}

.profile-identity small {
    color: #66758a;
    font-weight: 700;
}

.profile-card {
    padding: clamp(24px, 4vw, 34px);
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.profile-card h2 {
    margin-bottom: 22px;
    color: #062653;
    font-size: 24px;
    font-weight: 900;
}

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

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.manage-flashcards-main {
    padding-top: 66px;
}

.manage-flashcards-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: end;
    margin-bottom: 28px;
}

.manage-flashcards-header > div > span {
    width: fit-content;
    padding: 7px 11px;
    color: #075985;
    background: #dff1ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.manage-flashcards-header h1 {
    margin: 12px 0 10px;
    color: #062653;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.08;
}

.manage-flashcards-header p {
    max-width: 690px;
    color: #42526b;
    font-size: 15px;
}

.manage-flashcards-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.manage-flashcards-stats article {
    display: grid;
    gap: 4px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
}

.manage-flashcards-stats strong {
    color: #062653;
    font-size: 30px;
    line-height: 1;
}

.manage-flashcards-stats span {
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
}

.manage-flashcards-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.8fr) minmax(420px, 1.2fr);
    gap: 24px;
    align-items: start;
}

.manage-flashcards-form,
.manage-flashcards-list {
    padding: clamp(22px, 3vw, 30px);
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.manage-flashcards-form h2,
.manage-flashcards-list h2 {
    color: #062653;
    font-size: 24px;
    font-weight: 900;
}

.manage-flashcards-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.manage-flashcard-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #dfeaf5;
    border-radius: 8px;
}

.manage-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.manage-card-badges span {
    width: fit-content;
    padding: 5px 9px;
    color: #075985;
    background: #dff1ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.manage-card-badges .is-shared {
    color: #047857;
    background: #d1fae5;
}

.manage-card-badges .is-private {
    color: #92400e;
    background: #fef3c7;
}

.manage-flashcard-card h3 {
    margin-bottom: 8px;
    color: #062653;
}

.manage-flashcard-card p {
    color: #5f6d80;
}

.flashcards-main {
    padding-top: 72px;
}

.flashcards-setup-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 464px;
    gap: 92px;
    align-items: start;
    padding-top: 18px;
}

.flashcards-setup-copy h1 {
    margin: 0 0 8px;
    color: #062653;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.08;
}

.flashcards-setup-copy h2 {
    margin: 18px 0 16px;
    color: #001f49;
    font-size: 15px;
    font-weight: 900;
}

.flashcards-setup-copy p {
    max-width: 820px;
    color: #001f49;
    font-size: 15px;
    line-height: 1.5;
}

.flashcards-options-panel {
    padding-top: 48px;
}

.flashcards-options-panel h2 {
    margin: 0 0 20px;
    color: #001f49;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.flashcards-options-panel form {
    gap: 17px;
}

.flashcards-options-panel button {
    width: fit-content;
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13px;
}

.flashcards-options-panel button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.flashcards-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.flashcards-hero h1 {
    margin: 8px 0 14px;
    color: #062653;
    font-size: 44px;
    font-weight: 900;
}

.flashcards-hero p {
    max-width: 680px;
    color: #42526b;
    font-size: 16px;
}

.flashcards-summary {
    display: grid;
    gap: 2px;
    padding: 20px;
    background: #f7fbff;
    border: 1px solid #dceaf8;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.flashcards-summary strong {
    color: #062653;
    font-size: 36px;
    line-height: 1;
}

.flashcards-summary span {
    color: #66758a;
    font-size: 13px;
    font-weight: 800;
}

.flashcard-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dbe4ee;
}

.flashcard-filter-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    color: #24405f;
    background: #fff;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.flashcard-filter-bar a.is-active,
.flashcard-filter-bar a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.flashcard-filter-bar span {
    color: inherit;
    opacity: 0.72;
}

.flashcard-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.flashcards-session-actions {
    margin: -8px 0 24px;
}

.study-flashcard {
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 330px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.study-flashcard.is-open {
    border-color: rgba(45, 143, 227, 0.42);
    box-shadow: 0 18px 34px rgba(15, 75, 130, 0.13);
}

.study-flashcard-top {
    display: grid;
    gap: 8px;
}

.study-flashcard-top span,
.study-flashcard-back span {
    width: fit-content;
    padding: 5px 9px;
    color: #075985;
    background: #dff1ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.study-flashcard-top strong {
    color: #062653;
    font-size: 19px;
    line-height: 1.18;
}

.study-flashcard-front {
    min-height: 92px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #e4edf7;
    border-radius: 8px;
}

.study-flashcard-front p,
.study-flashcard-back p {
    margin: 0;
    color: #1f3048;
}

.study-flashcard-back {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #eefbf7;
    border: 1px solid #c7efe2;
    border-radius: 8px;
}

.study-flashcard-back[hidden] {
    display: none;
}

.flashcard-admin-list {
    display: grid;
    gap: 14px;
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
}

.flashcard-session-page {
    min-height: 100vh;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(26, 74, 123, 0.96), rgba(18, 54, 98, 0.98)),
        #183f72;
}

.flashcard-session-main {
    min-height: 100vh;
}

.flashcard-session {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(22px, 4vw, 34px) clamp(16px, 3vw, 28px) clamp(38px, 6vw, 72px);
}

.flashcard-session-brand {
    position: absolute;
    top: clamp(18px, 3vw, 28px);
    left: clamp(16px, 3vw, 30px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5f9ff;
    font-size: 26px;
    font-weight: 800;
}

.flashcard-session-brand .student-logo {
    width: 34px;
    height: 34px;
}

.flashcard-session-exit {
    position: absolute;
    top: clamp(16px, 2.6vw, 24px);
    right: clamp(14px, 2.6vw, 24px);
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #dceeff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 21px;
    font-weight: 900;
}

.flashcard-session-exit:hover {
    background: rgba(255, 255, 255, 0.14);
}

.flashcard-session-stage {
    display: grid;
    justify-items: center;
    align-content: start;
    width: min(560px, 100%);
    margin: 0 auto;
    padding-top: clamp(42px, 8vh, 72px);
}

.flashcard-session-counter {
    justify-self: end;
    margin: 0 4px 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.flashcard-session-counter strong {
    font-size: 18px;
}

.flashcard-session-progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    margin: 0 0 18px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.flashcard-session-progress span {
    display: block;
    width: 8%;
    height: 100%;
    background: #39a8f2;
    border-radius: inherit;
    transition: width 0.24s ease;
}

.flashcard-session-card {
    width: min(520px, 100%);
    min-height: clamp(260px, 38vw, 330px);
    perspective: 1200px;
}

.flashcard-session-card[hidden] {
    display: none;
}

.flashcard-inner {
    position: relative;
    min-height: clamp(260px, 38vw, 330px);
    transform-style: preserve-3d;
    transition: transform 0.62s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.flashcard-session-card.is-reversed .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 24px;
    min-height: clamp(260px, 38vw, 330px);
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
    color: #071f49;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(218, 231, 244, 0.9);
    border-radius: 10px;
    box-shadow: 0 24px 54px rgba(5, 18, 42, 0.22);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard-face span {
    width: fit-content;
    padding: 6px 10px;
    color: #0d4f83;
    background: #e3f2ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.flashcard-face p {
    margin: 0;
    color: #071f49;
    font-size: 18px;
    line-height: 1.42;
}

.flashcard-front p {
    align-self: center;
    text-align: center;
}

.flashcard-back p {
    align-self: start;
    font-size: 16px;
}

.flashcard-session-controls {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 28px;
}

.flashcard-session-controls button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(6, 20, 46, 0.2);
}

.flashcard-session-controls > button {
    background: #2d8fe3;
    border-color: #2d8fe3;
}

.flashcard-grade-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.flashcard-grade-actions[hidden] {
    display: none;
}

.flashcard-grade-actions button:first-child {
    background: #2d8fe3;
    border-color: #2d8fe3;
}

.flashcard-grade-actions button:last-child {
    background: #aab4c1;
    border-color: #aab4c1;
}

.flashcard-session-result {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(440px, 100%);
    margin-top: 8px;
    padding: 34px;
    color: #071f49;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 54px rgba(5, 18, 42, 0.22);
    text-align: center;
}

.flashcard-session-result[hidden] {
    display: none;
}

.flashcard-session-result h1 {
    margin: 0;
    color: #062653;
    font-size: 26px;
}

.flashcard-session-result p {
    color: #40516a;
}

.flashcard-session-empty {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(520px, calc(100% - 32px));
    margin: 180px auto 0;
    padding: 34px;
    color: #071f49;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.exam-mode-main {
    padding-top: 86px;
}

.exam-mode-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 420px;
    gap: 72px;
    align-items: start;
}

.exam-continue-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
    gap: 24px;
    margin-bottom: 42px;
    padding: 24px;
    background: #f7fbff;
    border: 1px solid #dbeaf7;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 47, 86, 0.08);
}

.exam-continue-panel > div > span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.exam-continue-panel h2 {
    margin: 0 0 8px;
    color: #062653;
    font-size: 26px;
}

.exam-continue-panel p {
    margin: 0;
    color: #607086;
    line-height: 1.5;
}

.exam-continue-list {
    display: grid;
    gap: 14px;
}

.exam-continue-list article {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 10px;
}

.exam-continue-list strong {
    display: block;
    color: #062653;
    font-size: 16px;
}

.exam-continue-list small {
    color: #607086;
    font-weight: 700;
}

.exam-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #0b5798;
    background: #e6f3ff;
    border: 1px solid #cde7ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.exam-mode-copy h1 {
    margin: 0 0 14px;
    color: #062653;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.08;
}

.exam-mode-copy p,
.exam-mode-copy li {
    color: #001f49;
    font-size: 16px;
    line-height: 1.62;
}

.exam-mode-copy p {
    max-width: 720px;
    margin-bottom: 18px;
}

.exam-mode-copy ul {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 20px 22px 20px 42px;
    background: #f7fbff;
    border: 1px solid #dbeaf7;
    border-radius: 12px;
}

.exam-create-panel {
    padding: 26px;
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(15, 47, 86, 0.12);
}

.exam-create-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.exam-create-head span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.exam-create-panel h2 {
    margin: 0 0 6px;
    color: #001f49;
    font-size: 24px;
    font-weight: 900;
}

.exam-create-head p {
    margin: 0;
    color: #66758a;
    font-size: 14px;
}

.exam-create-panel form {
    gap: 18px;
}

.exam-option-field {
    display: grid;
    gap: 9px;
}

.exam-option-field label {
    color: #3f5066;
    font-size: 13px;
    font-weight: 900;
}

.exam-option-field select {
    min-height: 44px;
    padding: 10px 12px;
    color: #334155;
    background: #fbfdff;
    border-color: #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.exam-option-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 143, 227, 0.13);
    outline: none;
}

.exam-tip {
    max-width: 720px;
    padding: 16px 18px;
    color: #17416e;
    background: #eef7ff;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.55;
}

.exam-categories {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f7fbff;
    border: 1px solid #dceaf7;
    border-radius: 12px;
}

.exam-categories[hidden] {
    display: none;
}

.exam-categories p {
    margin: 0;
    color: #52647b;
    font-size: 13px;
    font-weight: 800;
}

.exam-categories label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #001f49;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.exam-categories input {
    width: 14px;
    min-height: auto;
}

.exam-categories small {
    color: #607086;
    font-size: 12px;
    font-weight: 700;
}

.exam-categories input:disabled + span {
    color: #94a3b8;
}

.exam-create-panel button {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 12px 22px rgba(45, 143, 227, 0.18);
}

.exam-create-panel button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.practice-page {
    min-height: 100vh;
    color: #fff;
    background: #1b477d;
}

.practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 76px;
}

.practice-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.practice-logo {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: #2d8fe3;
    border-radius: 50%;
    font-size: 24px;
}

.practice-header strong {
    align-self: flex-end;
    font-size: 18px;
    font-weight: 900;
}

.practice-shell {
    width: min(974px, calc(100% - 40px));
    margin: 0 auto;
}

.practice-question {
    display: none;
}

.practice-question.is-active {
    display: block;
}

.practice-prompt {
    position: relative;
    min-height: 100px;
    padding: 28px 58px 24px 26px;
    color: #061f43;
    background: #fff;
    border-radius: 5px;
}

.practice-prompt span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 5px 9px;
    color: #0b4f86;
    background: #dcefff;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.practice-prompt p {
    color: #061f43;
    font-size: 14px;
}

.practice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
}

.practice-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 20px 48px;
    color: #061f43;
    background: #fff;
    border: 3px solid #2d8fe3;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.practice-option:hover {
    transform: translateY(-1px);
}

.practice-option input {
    width: 15px;
    min-height: auto;
    accent-color: #2d8fe3;
}

.practice-option.is-correct {
    border-color: #16a34a;
    background: #ecfdf3;
}

.practice-option.is-wrong {
    border-color: #dc2626;
    background: #fff1f2;
}

.practice-question.is-answered .practice-option {
    cursor: default;
}

.practice-question.is-answered .practice-option:hover {
    transform: none;
}

.practice-feedback {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 18px 20px;
    color: #062653;
    background: #fff;
    border-left: 6px solid #2d8fe3;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.practice-feedback[hidden] {
    display: none;
}

.practice-feedback.is-correct {
    border-left-color: #16a34a;
}

.practice-feedback.is-wrong {
    border-left-color: #dc2626;
}

.practice-feedback strong {
    font-size: 18px;
}

.practice-feedback span {
    color: #123967;
    font-weight: 800;
}

.practice-feedback p {
    margin: 0;
    color: #4b5c72;
}

.practice-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.practice-actions .button.secondary {
    border-color: rgba(255, 255, 255, 0.42);
}

.practice-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.result-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 42px;
    color: #062653;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.result-card > span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: #0b4f86;
    background: #dcefff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.result-card h1 {
    margin-bottom: 28px;
    color: #062653;
    font-size: 26px;
}

.result-score {
    display: grid;
    gap: 6px;
    justify-items: center;
    margin-bottom: 22px;
}

.result-score strong {
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 46px;
    box-shadow: 0 16px 30px rgba(45, 143, 227, 0.28);
}

.result-score p,
.result-percent {
    margin: 0;
    color: #4b5c72;
    font-weight: 800;
}

.result-meter {
    height: 10px;
    overflow: hidden;
    margin: 22px 0 10px;
    background: #dce7f3;
    border-radius: 999px;
}

.result-meter span {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

@media (max-width: 980px) {
    .student-sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
        padding: 14px 16px;
    }

    .student-brand {
        justify-content: center;
    }

    .student-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }

    .student-sidebar-footer {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }

    .student-sidebar-footer small {
        display: none;
    }

    .student-menu a,
    .student-sidebar-footer a,
    .student-user {
        justify-content: center;
        min-width: 0;
    }

    .student-user {
        max-width: none;
    }

    .student-main {
        width: min(100% - 32px, 860px);
        margin: 0 auto;
        padding: 42px 0 56px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .manage-flashcards-header,
    .manage-flashcards-layout {
        grid-template-columns: 1fr;
    }

    .student-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .analytics-header {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-overview,
    .analytics-grid,
    .statistics-kpis,
    .statistics-layout,
    .statistics-lower {
        grid-template-columns: 1fr;
    }

    .statistics-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .resources-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .exam-mode-main {
        padding-top: 42px;
    }

    .exam-mode-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .flashcards-setup-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .flashcards-options-panel {
        padding-top: 0;
    }

    .exam-continue-panel {
        grid-template-columns: 1fr;
    }

    .exam-create-panel {
        padding: 22px;
        background: #f8fbff;
        border: 1px solid #dfeaf5;
        border-radius: 8px;
    }

    .practice-header {
        padding-bottom: 44px;
    }

    .practice-options {
        grid-template-columns: 1fr;
    }

    .student-action-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .flashcards-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .flashcard-session-stage {
        margin-top: 0;
        padding-top: 72px;
    }

    .student-rule {
        margin: 46px auto;
    }
}

.student-area-label {
    color: #48627d;
    font-size: 14px;
    margin: -6px 0 18px;
}

.student-area-label strong {
    color: #0a2b57;
}

.inline-form {
    align-items: center;
    display: flex;
    gap: 10px;
}

.inline-form select {
    min-width: 150px;
}

.inline-form button {
    white-space: nowrap;
}

@media (max-width: 620px) {
    .student-menu,
    .student-sidebar-footer,
    .student-action-list,
    .student-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-sidebar {
        padding: 12px;
    }

    .student-brand {
        font-size: 22px;
    }

    .student-menu a,
    .student-sidebar-footer a,
    .student-user {
        gap: 7px;
        min-height: 38px;
        padding: 8px 7px;
        font-size: 11px;
        text-align: center;
        white-space: normal;
    }

    .student-menu span,
    .student-sidebar-footer span,
    .student-user span {
        width: 17px;
        height: 17px;
        font-size: 9px;
    }

    .student-user {
        grid-column: 1 / -1;
    }

    .student-intro h1 {
        font-size: 32px;
    }

    .student-section h2 {
        font-size: 26px;
    }

    .analytics-overview article {
        min-height: 0;
    }

    .profile-summary h1 {
        font-size: 34px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .manage-flashcards-header h1 {
        font-size: 34px;
    }

    .statistics-hero h1 {
        font-size: 34px;
    }

    .resources-hero h1 {
        font-size: 34px;
    }

    .resources-grid.featured {
        grid-template-columns: 1fr;
    }

    .manage-flashcards-stats {
        grid-template-columns: 1fr;
    }

    .exam-mode-copy h1 {
        font-size: 32px;
    }

    .flashcards-hero h1 {
        font-size: 34px;
    }

    .flashcards-setup-copy h1 {
        font-size: 34px;
    }

    .flashcard-session {
        padding: 76px 16px 34px;
    }

    .flashcard-session-brand {
        top: 18px;
        left: 16px;
        font-size: 22px;
    }

    .flashcard-session-stage {
        margin-top: 0;
        padding-top: 28px;
    }

    .flashcard-session-card,
    .flashcard-inner,
    .flashcard-face {
        min-height: 250px;
    }

    .flashcard-face {
        gap: 18px;
        padding: 22px;
    }

    .flashcard-face p {
        font-size: 16px;
    }

    .flashcard-back p {
        font-size: 15px;
    }

    .flashcard-session-controls {
        width: 100%;
        margin-top: 22px;
    }

    .flashcard-session-controls button {
        width: 100%;
        max-width: 260px;
    }

    .flashcard-grade-actions {
        width: 100%;
    }

    .flashcard-grade-actions button {
        flex: 1 1 120px;
    }

    .exam-mode-copy ul {
        padding: 16px 18px 16px 34px;
    }

    .exam-create-panel {
        border-radius: 12px;
    }

    .student-result {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .practice-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 22px 0 32px;
    }

    .practice-header strong {
        align-self: flex-end;
    }

    .practice-shell {
        width: min(100% - 24px, 520px);
    }

    .practice-prompt {
        padding: 22px 18px;
    }

    .practice-option {
        min-height: 74px;
        padding: 18px;
    }

    .practice-actions {
        flex-direction: column;
    }

    .practice-actions a,
    .practice-actions button {
        width: 100%;
    }

    .result-card {
        padding: 30px 20px;
    }
}

/* Polished registration flow */
.signup-page {
    background:
        radial-gradient(circle at 50% -140px, rgba(45, 143, 227, 0.22), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 48%, #e9f2f9 100%);
}

.signup-brand {
    color: #102642;
}

.signup-shell {
    align-content: start;
    gap: 0;
    width: min(100%, 1160px);
    padding-top: 116px;
}

.signup-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    width: min(650px, 100%);
    margin: 0 0 48px;
    padding: 0;
}

.signup-progress li {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.signup-progress li::before {
    background: #d6e2ee;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: -50%;
    position: absolute;
    right: 50%;
    top: 18px;
    transform: none;
    z-index: 0;
}

.signup-progress li:first-child::before {
    display: none;
}

.signup-progress span {
    align-items: center;
    background: #fff;
    border: 2px solid #c8d6e6;
    border-radius: 999px;
    box-shadow: 0 0 0 7px #eef5fb;
    color: #65758b;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: relative;
    width: 36px;
    z-index: 1;
}

.signup-progress span::after {
    display: none;
}

.signup-progress em {
    color: #66758a;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    margin-top: 10px;
    max-width: 90px;
    min-height: 16px;
    overflow: hidden;
    position: static;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.signup-progress .is-active::before,
.signup-progress .is-done::before {
    background: linear-gradient(90deg, var(--primary), #58b5f7);
}

.signup-progress .is-active span {
    border-color: var(--primary);
    box-shadow: 0 0 0 7px rgba(45, 143, 227, 0.13), 0 10px 20px rgba(45, 143, 227, 0.18);
    color: var(--primary);
}

.signup-progress .is-done span {
    background: var(--primary);
    border-color: var(--primary);
    color: transparent;
    font-size: 0;
}

.signup-progress .is-done span::before {
    color: #fff;
    content: "\2713";
    font-size: 15px;
    font-weight: 900;
}

.signup-progress .is-active em,
.signup-progress .is-done em {
    color: #0d4f83;
}

.signup-card {
    border: 1px solid rgba(212, 225, 238, 0.95);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 45, 82, 0.14);
    min-height: 0;
    padding: clamp(28px, 4vw, 48px);
    width: min(680px, 100%);
}

.signup-card h1 {
    color: #0d4f83;
    font-size: clamp(22px, 2.1vw, 26px);
    margin: 0 0 8px;
}

.signup-step-copy {
    color: #5f7187;
    font-size: 14px;
    line-height: 1.5;
}

.signup-note {
    background: #f5f9fd;
    border: 1px solid #dce9f6;
    border-radius: 12px;
    color: #183a62;
    font-size: 15px;
}

.signup-card .auth-field input,
.signup-card select {
    border-radius: 10px;
    min-height: 48px;
}

.signup-actions {
    border-top: 1px solid #edf3f8;
    margin-top: 30px;
    padding-top: 20px;
}

.signup-actions button {
    border-radius: 10px;
    min-height: 46px;
}

@media (max-width: 760px) {
    .signup-brand {
        margin: 18px 16px 0;
    }

    .signup-shell {
        padding: 32px 14px 32px;
    }

    .signup-progress {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
        margin-bottom: 34px;
    }

    .signup-progress li::before {
        height: 3px;
        top: 16px;
    }

    .signup-progress span {
        box-shadow: 0 0 0 5px #eef5fb;
        font-size: 12px;
        height: 32px;
        width: 32px;
    }

    .signup-progress em {
        font-size: 10px;
        margin-top: 8px;
        max-width: 58px;
    }

    .signup-card {
        border-radius: 14px;
        padding: 24px 16px 18px;
    }

    .signup-actions {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .signup-actions [data-register-next],
    .signup-actions [data-register-back] {
        margin-left: 0;
        width: 100%;
    }

    .signup-actions [data-register-next] {
        order: 1;
    }

    .signup-actions [data-register-back] {
        order: 2;
    }
}

@media (max-width: 420px) {
    .signup-progress em {
        display: none;
    }

    .signup-progress {
        margin-bottom: 24px;
    }

    .signup-progress span {
        height: 30px;
        width: 30px;
    }
}

/* Multi-career landing responsive refinements */
@media (max-width: 1180px) {
    .career-grid,
    .tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .career-showcase.landing-media {
        min-height: 520px;
    }

    .career-device {
        width: 100%;
    }

    .career-progress-card {
        left: 12px;
        top: 0;
    }

    .career-floating-card {
        bottom: 10px;
        right: 12px;
    }

    .career-grid,
    .how-grid,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .career-section,
    .tools-section {
        padding: 46px 0;
    }

    .how-section,
    .resources-cta {
        border-radius: 16px;
        padding: 26px 18px;
    }

    .resources-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .career-showcase.landing-media {
        min-height: auto;
        padding: 22px 0 96px;
    }

    .career-device {
        padding: 20px;
    }

    .career-device-head,
    .career-device-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .career-mini-grid,
    .career-grid,
    .how-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .career-progress-card {
        display: none;
    }

    .career-floating-card {
        bottom: 0;
        left: 18px;
        right: auto;
        width: 150px;
    }

    .landing-section-head h2,
    .resources-cta h2 {
        font-size: 30px;
    }
}

/* Professional admin redesign */
.admin-app {
    background: #f4f7fb;
    color: #102033;
}

.admin-app .topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dde8f3;
    box-shadow: 0 10px 30px rgba(15, 45, 82, 0.06);
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 72px;
    padding: 0 max(24px, calc((100vw - 1320px) / 2));
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-app .brand {
    color: #102a46;
    font-size: 20px;
}

.admin-app .brand-mark {
    background: #0e2a4d;
    border-radius: 12px;
}

.admin-app .nav {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.admin-app .nav a:not(.button) {
    border-radius: 999px;
    color: #53657a;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
}

.admin-app .nav a:not(.button):hover {
    background: #eef5fb;
    color: #0e2a4d;
}

.admin-app .nav-user {
    color: #5b6c82;
    font-size: 13px;
    margin-left: 8px;
}

.admin-app .page {
    margin: 0 auto;
    padding: 34px 24px 70px;
    width: min(1320px, 100%);
}

.admin-content,
.admin-dashboard {
    display: grid;
    gap: 24px;
}

.admin-hero,
.admin-page-head {
    align-items: center;
    background: #0e2a4d;
    border-radius: 20px;
    color: #fff;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
}

.admin-hero span,
.admin-page-head span,
.admin-card-head span {
    color: #70c4ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-hero h1,
.admin-page-head h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.05;
    margin: 6px 0 10px;
}

.admin-hero p,
.admin-page-head p {
    color: #d7e6f6;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 780px;
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-metrics article,
.admin-quick-grid a,
.admin-form-card,
.admin-list-panel,
.admin-question-builder {
    background: #fff;
    border: 1px solid #dce7f2;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 45, 82, 0.07);
}

.admin-metrics article {
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 20px;
}

.admin-metrics span,
.admin-metrics small,
.admin-list-meta span,
.admin-list-main p,
.admin-card-head p {
    color: #607187;
}

.admin-metrics strong {
    color: #0e2a4d;
    font-size: 36px;
    line-height: 1;
}

.admin-quick-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick-grid a {
    color: #102033;
    display: grid;
    gap: 10px;
    min-height: 164px;
    padding: 22px;
}

.admin-quick-grid a span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-quick-grid a strong {
    color: #0e2a4d;
    font-size: 20px;
    line-height: 1.2;
}

.admin-quick-grid a small {
    color: #64758a;
    line-height: 1.45;
}

.admin-two-column,
.admin-editor-grid {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
}

.admin-category-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-card,
.admin-list-panel,
.admin-question-builder {
    padding: 24px;
}

.admin-settings-card {
    position: sticky;
    top: 96px;
}

.admin-card-head {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-card-head.compact {
    margin-bottom: 8px;
}

.admin-card-head h2 {
    color: #0e2a4d;
    font-size: 25px;
    line-height: 1.15;
    margin: 0;
}

.admin-card-head p {
    line-height: 1.45;
    margin: 0;
}

.admin-form-card form,
.admin-question-builder form {
    display: grid;
    gap: 16px;
}

.admin-app .field label {
    color: #40536b;
    font-weight: 800;
}

.admin-app input,
.admin-app textarea,
.admin-app select {
    background: #fbfdff;
    border-color: #c9d6e3;
    border-radius: 10px;
}

.admin-app input:focus,
.admin-app textarea:focus,
.admin-app select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 143, 227, 0.12);
    outline: none;
}

.admin-form-row {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 160px;
}

.admin-toggle-list {
    display: grid;
    gap: 12px;
}

.admin-toggle-list label {
    align-items: center;
    background: #f7fbff;
    border: 1px solid #ddeaf5;
    border-radius: 12px;
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 58px;
    padding: 12px 14px;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-toggle-list label:hover {
    background: #f1f8ff;
    border-color: #bdd8f0;
}

.admin-toggle-list input[type="checkbox"] {
    appearance: none;
    background: #cbd6e2;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 28px;
    margin: 0;
    position: relative;
    transition: background 0.18s ease;
    width: 52px;
}

.admin-toggle-list input[type="checkbox"]::before {
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(15, 45, 82, 0.18);
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 0.18s ease;
    width: 22px;
}

.admin-toggle-list input[type="checkbox"]:checked {
    background: var(--primary);
}

.admin-toggle-list input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.admin-toggle-list input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px rgba(45, 143, 227, 0.18);
    outline: none;
}

.admin-toggle-list span {
    color: #21344d;
    font-weight: 800;
    line-height: 1.35;
}

.admin-settings-card button[type="submit"] {
    min-height: 48px;
    width: 100%;
}

.admin-form-actions,
.admin-list-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-list-actions form {
    margin: 0;
}

.admin-exam-list,
.admin-flashcard-list,
.admin-resource-list,
.admin-question-list {
    display: grid;
    gap: 12px;
}

.admin-list-item {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #dfeaf4;
    border-radius: 14px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 18px;
}

.admin-list-main {
    display: grid;
    gap: 8px;
}

.admin-list-main h3 {
    color: #102a46;
    font-size: 20px;
    margin: 0;
}

.admin-list-main p {
    line-height: 1.45;
    margin: 0;
}

.admin-list-meta {
    display: grid;
    gap: 8px;
    min-width: 132px;
}

.admin-list-meta span {
    background: #eef5fb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    text-align: center;
}

.admin-options-builder {
    background: #f5f9fd;
    border: 1px solid #dce9f5;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.admin-option-input {
    align-items: center;
    background: #fff;
    border: 1px solid #d6e3ef;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 34px minmax(0, 1fr);
    padding: 10px;
}

.admin-option-input > span {
    align-items: center;
    background: #e8f3fd;
    border-radius: 10px;
    color: var(--primary);
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.admin-question-card {
    background: #fbfdff;
    border: 1px solid #dfeaf4;
    border-radius: 14px;
    overflow: hidden;
}

.admin-question-card summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    list-style: none;
    padding: 16px;
}

.admin-question-card summary::-webkit-details-marker {
    display: none;
}

.admin-question-card summary > span {
    align-items: center;
    background: #0e2a4d;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.admin-question-card summary strong {
    color: #102a46;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-question-card summary em {
    background: #eef5fb;
    border-radius: 999px;
    color: #586b82;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    padding: 7px 10px;
}

.admin-question-body {
    border-top: 1px solid #e2edf6;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.admin-answer-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-answer-list div {
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.admin-answer-list div.is-correct {
    border-color: #75c49b;
    box-shadow: inset 4px 0 0 #22a663;
}

.admin-answer-list span {
    color: #607187;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-answer-list p {
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-area-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
}

.admin-area-filter a {
    background: #eef5fb;
    border: 1px solid #d8e6f3;
    border-radius: 999px;
    color: #52667d;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
}

.admin-area-filter a.is-active,
.admin-area-filter a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.admin-app table {
    background: #fff;
}

@media (max-width: 1120px) {
    .admin-metrics,
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-two-column,
    .admin-editor-grid {
        grid-template-columns: 1fr;
    }

    .admin-settings-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .admin-app .topbar {
        grid-template-columns: 1fr;
        padding: 14px 16px;
        position: static;
    }

    .admin-app .nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .admin-app .page {
        padding: 22px 14px 48px;
    }

    .admin-hero,
    .admin-page-head {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .admin-head-actions {
        justify-content: flex-start;
    }

    .admin-category-layout,
    .admin-metrics,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-item {
        grid-template-columns: 1fr;
    }

    .admin-list-meta {
        align-items: start;
        display: flex;
        flex-wrap: wrap;
        min-width: 0;
    }

    .admin-form-row,
    .admin-answer-list {
        grid-template-columns: 1fr;
    }

    .admin-question-card summary {
        align-items: start;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .admin-question-card summary em {
        grid-column: 2;
        justify-self: start;
    }

    .admin-question-card summary strong {
        white-space: normal;
    }
}

/* Compact exam list inside admin/exams.php */
.admin-exam-list {
    gap: 8px;
}

.admin-exam-list .admin-list-item {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px 14px;
}

.admin-exam-list .admin-list-main {
    align-items: center;
    display: grid;
    gap: 4px 10px;
    grid-template-columns: auto minmax(0, 1fr);
}

.admin-exam-list .admin-list-main .badge {
    font-size: 11px;
    grid-row: 1 / span 2;
    padding: 6px 9px;
}

.admin-exam-list .admin-list-main h3 {
    font-size: 16px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-exam-list .admin-list-main p {
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-exam-list .admin-list-meta {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.admin-exam-list .admin-list-meta span {
    font-size: 11px;
    padding: 6px 9px;
    white-space: nowrap;
}

.admin-exam-list .admin-list-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

.admin-exam-list .admin-list-actions .button {
    font-size: 13px;
    min-height: 34px;
    padding: 8px 12px;
}

@media (max-width: 900px) {
    .admin-exam-list .admin-list-item {
        grid-template-columns: 1fr;
    }

    .admin-exam-list .admin-list-actions,
    .admin-exam-list .admin-list-meta {
        flex-wrap: wrap;
    }
}

.admin-section-switch {
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(14, 42, 77, .07);
    display: inline-flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 6px;
}

.admin-section-switch a {
    border-radius: 10px;
    color: #52667d;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 14px;
}

.admin-section-switch a.is-active,
.admin-section-switch a:hover {
    background: #eaf4ff;
    color: #0d63b0;
}

.admin-create-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.admin-create-card {
    max-width: none;
}

.admin-create-card textarea {
    resize: vertical;
}

.admin-step-card {
    background: #f7fbff;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(14, 42, 77, .08);
    display: grid;
    gap: 14px;
    padding: 24px;
    position: sticky;
    top: 96px;
}

.admin-step-card span {
    color: #2387d8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-step-card h2 {
    color: #0e2a4d;
    font-size: 24px;
    margin: 0;
}

.admin-step-card ol {
    color: #52667d;
    display: grid;
    gap: 12px;
    line-height: 1.45;
    margin: 0;
    padding-left: 20px;
}

.admin-step-card li::marker {
    color: #2387d8;
    font-weight: 900;
}

@media (max-width: 980px) {
    .admin-create-layout {
        grid-template-columns: 1fr;
    }

    .admin-step-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .admin-section-switch {
        display: grid;
        width: 100%;
    }
}
