:root {
    --bg: #f4f6fb;
    --ink: #0f1b2b;
    --muted: #5b6674;
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;
    --brand-2: #0ea5e9;
    --teal: #0d9488;
    --teal-soft: #f0fdfa;
    --teal-border: #99f6e4;
    --emerald: #059669;
    --emerald-dark: #047857;
    --emerald-soft: #ecfdf5;
    --emerald-border: #a7f3d0;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fffbeb;
    --amber-border: #fde68a;
    --green: #0d9488;
    --panel: #ffffff;
    --line: #e2e8f0;
    --danger: #dc2626;
    --warn: #d97706;
    --shadow-sm: 0 2px 8px rgba(15, 27, 43, 0.05);
    --shadow-md: 0 10px 28px rgba(15, 27, 43, 0.08);
    --shadow-lg: 0 18px 48px rgba(15, 27, 43, 0.10);
    --radius: 14px;
    --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

h2[id] { scroll-margin-top: 18px; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: linear-gradient(160deg, #f6f8fd 0%, #eef6f6 100%);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel {
    width: min(760px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-lg);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}

h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

a, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 0;
    background: var(--brand);
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease, border-color .15s ease;
}

a:hover, button:hover {
    background: var(--brand-dark);
}

a:active, button:active {
    transform: translateY(1px);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

.alert {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: var(--danger);
    border-radius: 10px;
}

.success {
    padding: 10px 12px;
    border: 1px solid #bbe9df;
    background: #ecfbf7;
    color: #0d6b5c;
    border-radius: 10px;
}

.dashboard {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 28px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.quick-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.quick-nav a {
    min-height: 34px;
    padding: 8px 14px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.quick-nav a:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.small-link {
    min-height: 36px;
    background: var(--ink);
}

.small-link:hover {
    background: #1c2c40;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.card-link {
    min-height: auto;
    display: block;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}

.card-link:hover {
    box-shadow: var(--shadow-md);
    border-color: #c9cdf5;
    transform: translateY(-1px);
    background: #ffffff;
}

article strong,
article span,
.card-link strong,
.card-link span {
    display: block;
}

article span,
.card-link span {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 400;
}

.table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    font-weight: 700;
}

tbody tr:hover {
    background: #fbfcff;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
    flex-wrap: wrap;
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

code {
    background: var(--brand-soft);
    border: 1px solid #dfe1fb;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 13px;
}

.json-preview {
    margin-top: 18px;
    overflow-x: auto;
    white-space: pre-wrap;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--ink);
}

textarea {
    width: 100%;
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

.mini-form {
    display: grid;
    gap: 8px;
}

.mini-form button {
    min-height: 36px;
}

.grey-locked {
    filter: grayscale(1);
    opacity: 0.55;
}

/* EASY10 v1.5 exam intelligence and project health */
h2 {
    margin: 30px 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.005em;
}

small {
    color: var(--muted);
    line-height: 1.45;
}

.wide-dashboard {
    width: min(1420px, 100%);
}

.notice {
    padding: 11px 13px;
    border: 1px solid #bfe0f7;
    background: #f1f8fe;
    color: #1c4a68;
    border-radius: 10px;
}

.muted-note,
.table-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.secondary-button {
    background: #eef0f4;
    color: var(--ink);
    border: 1px solid var(--line);
}

.secondary-button:hover {
    background: #e3e7ee;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stat-strip article strong {
    font-size: 25px;
}

.info-grid,
.featured-grid,
.snapshot-columns,
.pattern-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.feature-card {
    display: block;
    min-height: 155px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c9cdf5;
    transform: translateY(-1px);
}

.feature-card span {
    display: inline-block;
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
}

.feature-card strong {
    display: block;
    margin-top: 9px;
    font-size: 19px;
    font-weight: 700;
}

.feature-card p {
    margin-bottom: 0;
}

.feature-primary {
    border-color: #c9cdf5;
    background: linear-gradient(135deg, #ffffff 0%, #f3f2ff 100%);
}

.compact-form {
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto auto;
    align-items: end;
}

.rank-number {
    display: block;
    margin-bottom: 5px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.band-badge,
.kind-badge,
.status-pill,
.health-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.band-very_high {
    background: #e3f6ef;
    color: #0a7a5f;
}

.band-high {
    background: #e5f1fd;
    color: #0f66a8;
}

.band-medium {
    background: #fef3d7;
    color: #92620a;
}

.band-emerging {
    background: #feead9;
    color: #a1520c;
}

.band-low {
    background: #eef0f3;
    color: #5b6570;
}

.score-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0;
}

.score-line strong {
    font-size: 25px;
}

.score-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ecf5;
}

.score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.score-bar.large {
    height: 12px;
    margin-top: 8px;
}

.pattern-list {
    margin: 0;
    padding-left: 18px;
}

.pattern-list li {
    margin: 0 0 6px;
}

.pattern-list span {
    float: right;
    min-width: 28px;
    color: var(--brand);
    font-weight: 700;
    text-align: right;
}

.probability-table td {
    min-width: 135px;
}

.probability-table td:first-child,
.probability-table td:nth-child(5) {
    min-width: 230px;
}

.probability-table td strong,
.probability-table td span,
.probability-table td small {
    display: block;
}

.hero-score {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.hero-number {
    margin-top: 8px;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-dark);
}

.hero-number small {
    font-size: 18px;
    color: var(--muted);
    font-weight: 600;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.hero-metrics article {
    background: #f8f9ff;
}

.hero-metrics strong {
    font-size: 23px;
}

.pattern-card {
    border-top: 4px solid var(--brand);
}

.pattern-card-head,
.priority-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.pattern-card-head strong {
    font-size: 18px;
}

.pattern-card-head span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.score-chip {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    font-weight: 800;
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.metric-list div {
    padding: 9px;
    border-radius: 8px;
    background: #f7f9ff;
}

.metric-list dt {
    color: var(--muted);
    font-size: 12px;
}

.metric-list dd {
    margin: 3px 0 0;
    font-weight: 700;
}

.kind-repeated,
.status-ok,
.status-mapped,
.status-verified,
.status-completed {
    background: #e3f6ef;
    color: #0a7a5f;
}

.kind-variant,
.status-warning,
.status-partial,
.status-registered,
.status-attention {
    background: #fef3d7;
    color: #92620a;
}

.kind-unique,
.status-failed,
.status-needs_review,
.status-critical {
    background: #fde4e2;
    color: #a3241c;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.disclaimer-box {
    margin-top: 24px;
    padding: 15px;
    border: 1px dashed #a9b3d6;
    border-radius: 10px;
    background: #f8f8fe;
    color: #454c66;
}

.action-panel {
    width: 100%;
    margin-top: 20px;
}

.priority-chapters {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.priority-chapter-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.priority-heading h2 {
    margin: 4px 0 0;
}

.priority-score {
    display: block;
    margin-top: 7px;
    text-align: right;
    font-size: 22px;
}

.revision-range {
    margin: 16px 0;
    padding: 12px;
    border-radius: 10px;
    background: #f1f8fe;
}

.student-patterns {
    display: grid;
    gap: 10px;
    padding-left: 24px;
}

.student-patterns li {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.student-patterns span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.student-pattern-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.student-pattern-meta span {
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    font-size: 12px;
}

.snapshot-section {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.flow-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.flow-line span {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8f9ff;
    font-weight: 700;
}

.flow-line b {
    color: var(--brand);
}

.check-list,
.todo-list {
    display: grid;
    gap: 9px;
    padding-left: 22px;
}

.lead-text {
    font-size: 17px;
}

.health-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.health-hero > div:first-child span,
.health-hero > div:first-child strong {
    display: block;
}

.health-hero > div:first-child strong {
    margin-top: 5px;
    font-size: 24px;
}

.health-score-ring {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 10px solid #e2e8f7;
    border-radius: 50%;
}

.health-score-ring strong {
    align-self: center;
    font-size: 38px;
}

.health-summary {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.health-summary span {
    padding: 9px 11px;
    border-radius: 10px;
    background: #f7f9ff;
}

.health-healthy {
    border-left: 6px solid var(--green);
}

.health-attention {
    border-left: 6px solid var(--warn);
}

.health-critical {
    border-left: 6px solid var(--danger);
}

@media (max-width: 820px) {
    .compact-form,
    .hero-score,
    .health-hero {
        grid-template-columns: 1fr;
    }

    .health-summary {
        justify-content: flex-start;
    }

    .health-score-ring {
        width: 96px;
        height: 96px;
    }

    .pattern-card-head,
    .priority-heading {
        flex-direction: column;
    }

    .priority-score {
        text-align: left;
    }
}

/* EASY10 v1.6 verified question bank */
.wide-dashboard { width: min(1460px, 100%); }
.metric-grid, .stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.metric-grid article, .metric-grid .card-link, .stat-strip article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.metric-grid strong, .stat-strip strong { display: block; font-size: 26px; }
.status-pill {
    display: inline-flex;
    align-items: center;
    margin: 2px 4px 2px 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}
.status-teacher_approved, .status-published, .status-completed, .status-extracted, .status-easy {
    background: #e3f6ef;
    color: #0a7a5f;
}
.status-needs_review, .status-returned, .status-hidden, .status-review, .status-medium {
    background: #fef3d7;
    color: #92620a;
}
.status-rejected, .status-failed, .status-hard {
    background: #fde4e2;
    color: #a3241c;
}
.status-source_checked, .status-indexed, .status-registered {
    background: #e5f1fd;
    color: #0f66a8;
}
.status-warning { background: #fde9c3; color: #7d5700; }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}
.pagination span { font-weight: 700; }
.review-list, .practice-list { display: grid; gap: 16px; margin-top: 20px; }
.review-card, .practice-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.review-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.review-card-head h3 { margin: 10px 0 0; }
.review-card-head > strong { font-size: 24px; }
.question-text { color: var(--ink); font-size: 16px; }
.question-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 20px;
    margin-top: 20px;
}
.question-editor, .evidence-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.evidence-panel { align-self: start; position: sticky; top: 16px; }
.evidence-panel dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; }
.evidence-panel dt { font-weight: 700; }
.evidence-panel dd { margin: 0; color: var(--muted); }
.source-extract {
    max-height: 300px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafd;
    white-space: normal;
    line-height: 1.5;
}
.status-row, .practice-meta, .review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.compact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.review-actions button { flex: 1 1 180px; }
.button-secondary { background: #445d74; }
.button-secondary:hover { background: #37495a; }
.button-success { background: var(--green); }
.button-success:hover { background: #0b7d73; }
.button-warning { background: var(--warn); }
.button-warning:hover { background: #b8650a; }
.button-danger { background: var(--danger); }
.button-danger:hover { background: #b91c1c; }
.option-grid { display: grid; gap: 8px; }
.option-grid > div { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; }
.practice-meta span { padding: 5px 9px; background: var(--brand-soft); border-radius: 999px; font-size: 12px; font-weight: 700; }
.practice-card h3 { font-size: 18px; line-height: 1.55; }
.mcq-options { display: grid; gap: 7px; }
.answer-panel { margin-top: 14px; padding: 16px; border-left: 5px solid var(--green); background: #ecfbf7; border-radius: 10px; }
.snapshot-columns, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.notice {
    padding: 10px 12px;
    border: 1px solid #bfd6ef;
    background: #f1f8fe;
    color: #1c4a68;
    border-radius: 10px;
}
@media (max-width: 900px) {
    .question-layout { grid-template-columns: 1fr; }
    .evidence-panel { position: static; }
    .review-card-head { flex-direction: column; }
}

/* EASY10 v1.6.1 Missing Answer Resolver */
.filter-panel,
.batch-toolbar,
.resolver-inline {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.filter-panel .actions,
.batch-toolbar .actions,
.resolver-inline .actions { margin-top: 12px; }
.batch-toolbar { display: grid; gap: 12px; }
.batch-toolbar label,
.paid-confirm,
.select-all { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.paid-confirm {
    padding: 10px 12px;
    border: 1px solid #ecc373;
    border-radius: 10px;
    background: #fef6df;
}
.resolver-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.resolver-inline p { margin: 4px 0 0; }
.status-ai_draft,
.status-pending,
.status-warning { background: #fde9c3; color: #7d5700; }
.status-passed,
.status-approved,
.status-applied { background: #e3f6ef; color: #0a7a5f; }
.status-validation_failed,
.status-failed,
.status-rejected { background: #fde4e2; color: #a3241c; }
.status-processing,
.status-queued { background: #e5f1fd; color: #0f66a8; }
.status-completed_with_errors,
.status-returned { background: #fef3d7; color: #92620a; }
pre {
    max-width: 100%;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafd;
    white-space: pre-wrap;
}
code { overflow-wrap: anywhere; }
@media (max-width: 820px) {
    .resolver-inline { align-items: flex-start; flex-direction: column; }
}

/* EASY10 v1.6.2 Semi-Automatic AI_DRAFT Queue */
.status-ready,
.status-paused { background: #fef3d7; color: #92620a; }
.status-running { background: #e5f1fd; color: #0f66a8; }
.status-halted,
.status-cancelled { background: #fde4e2; color: #a3241c; }
.campaign-metrics article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.campaign-metrics article strong {
    display: block;
    margin-bottom: 6px;
    font-size: 25px;
}
.campaign-metrics article span { color: var(--muted); }

/* EASY10 v1.6.3 AI Draft Review & Validation Failure Dashboard */
.audit-metrics article,
.bulk-review-form .table-wrap { min-width: 0; }
.inline-form { display: inline-flex; margin: 0; }
.inline-form button { width: auto; }
.status-clean,
.status-low,
.status-heuristic_rule { background: #e3f6ef; color: #0a7a5f; }
.status-review,
.status-medium,
.status-mixed,
.status-evidence_gap,
.status-unknown_or_model_warning { background: #fef3d7; color: #92620a; }
.status-blocked,
.status-high,
.status-genuine_academic_risk,
.status-data_integrity_risk,
.status-quality_risk { background: #fde4e2; color: #a3241c; }
.bulk-review-form td { vertical-align: top; }
.bulk-review-form input[type="checkbox"] { width: auto; min-width: 18px; min-height: 18px; }
.review-actions { margin-top: 12px; }
.review-actions .button-success,
.review-actions .button-warning,
.review-actions .button-secondary { min-height: 44px; }
.validation-code-list { display: flex; flex-wrap: wrap; gap: 6px; }
.validation-code-list code { padding: 3px 6px; border-radius: 6px; background: #f2f5f8; }
@media (max-width: 720px) {
    .bulk-review-form .table-wrap { overflow-x: auto; }
    .audit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* EASY10 v1.6.4 Assignment & Test Paper Builder */
.builder-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: start;
}
.builder-wide { grid-column: 1 / -1; }
.builder-filter-grid select,
.builder-filter-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}
.builder-filter-grid select[multiple] { min-height: 190px; }
.paper-question-picker input[type="checkbox"] { width: 18px; height: 18px; }
.paper-summary-grid,
.paper-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.paper-summary-grid article strong,
.paper-counter-grid article strong { font-size: 25px; }
.paper-management-grid .filter-panel { margin-top: 0; }
.status-draft { background: #eef0f4; color: #475467; }
.status-assigned { background: #e5f1fd; color: #0f66a8; }
.status-submitted { background: #fef3d7; color: #92620a; }
.status-checked { background: #e3f6ef; color: #0a7a5f; }
.status-reviewed { background: #dcf5ee; color: #0a6b5c; }
.paper-print-body { background: #eef2f5; color: #111; }
.print-toolbar {
    width: min(900px, calc(100% - 24px));
    margin: 16px auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.print-sheet {
    position: relative;
    width: min(900px, calc(100% - 24px));
    min-height: 1120px;
    margin: 0 auto 32px;
    padding: 42px 50px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16,32,51,.14);
    overflow: hidden;
}
.print-header { display: block; border-bottom: 2px solid #111; padding-bottom: 15px; }
.print-header p { margin: 0 0 6px; color: #333; font-weight: 700; }
.print-header h1 { font-size: 28px; margin-bottom: 12px; }
.print-meta,
.student-fields {
    display: flex;
    gap: 14px 24px;
    flex-wrap: wrap;
    font-size: 13px;
}
.student-fields { justify-content: space-between; margin: 22px 0; }
.print-instructions { border: 1px solid #bbb; padding: 12px 16px; margin: 18px 0; }
.print-instructions h2 { font-size: 16px; margin: 0 0 8px; }
.print-instructions p { margin: 0; color: #222; }
.print-questions,
.answer-key-list { padding-left: 28px; }
.print-questions > li,
.answer-key-list > li { margin: 0 0 28px; padding-left: 8px; break-inside: avoid; }
.print-question-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.print-question-text { font-size: 15px; line-height: 1.55; }
.answer-space { min-height: 72px; border-bottom: 1px dashed #bbb; margin-top: 18px; }
.print-warning { padding: 8px 10px; border: 1px solid #e2b340; background: #fff8df; color: #6c4c00; }
.key-block { margin-top: 12px; padding: 10px 12px; border: 1px solid #ccc; }
.key-block h3 { margin: 0 0 7px; font-size: 14px; }
.key-block p { margin: 0; color: #111; white-space: pre-wrap; }
.source-evidence { background: #f7f9fb; padding: 8px; border-left: 4px solid #718096; }
.key-source { font-size: 11px; color: #555; }
.print-footer { border-top: 1px solid #bbb; margin-top: 30px; padding-top: 10px; font-size: 11px; text-align: center; }
.test-watermark {
    position: absolute;
    top: 45%;
    left: 5%;
    right: 5%;
    transform: rotate(-24deg);
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    color: rgba(180,35,24,.12);
    pointer-events: none;
    z-index: 0;
}
.print-sheet > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
    .print-sheet { padding: 28px 22px; }
    .print-question-head { flex-direction: column; }
}
@media print {
    @page { size: A4; margin: 14mm; }
    body.paper-print-body { background: #fff; }
    .print-toolbar { display: none !important; }
    .print-sheet { width: auto; min-height: auto; margin: 0; padding: 0; box-shadow: none; }
    a { color: inherit; text-decoration: none; }
    .answer-space { min-height: 54px; }
}

/* EASY10 v1.6.5 Student Assignment Delivery & Submission Bridge */
.nav-groups {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}
.nav-group-label {
    display: block;
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* EASY10 v1.6.6 Wave 2 Product Bible Controls */
.grey-locked-banner {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f5f6f8;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}

.late-night-lock {
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.doubt-chat-shell {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.writing-time-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f8fe;
    border: 1px solid #bfe0f7;
    color: #1c4a68;
    font-size: 12px;
    font-weight: 600;
}

/* EASY10 v1.7.0 Wave 3 Product Bible Complete */
.student-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.student-nav-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: #f6f8fb;
    border: 1px solid transparent;
}

.student-nav-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.student-nav-link.is-active {
    background: var(--brand);
    color: #ffffff;
}

.examiner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.examiner-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfd;
}

.examiner-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand);
}

.storyboard-box {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d5e6f5;
    border-radius: 10px;
    background: #f7fbff;
}

.storyboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}



/* EASY10 v1.7.3 India #1 Study Material & Step-by-Step Exam Practice Revamp */
body {
    font-family: var(--font-sans);
}

.formula-snapshot {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--teal-border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-soft) 0%, #f8fafc 100%);
}

.formula-snapshot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--teal);
    margin: 0 0 6px;
}

.formula-snapshot ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.55;
}

.practice-cta-btn {
    background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    padding: 9px 14px;
    min-height: 38px;
    font-size: 13.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
}

.practice-cta-btn:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #0f766e 100%);
}

.practice-simulator {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.sim-filter-bar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.sim-filter-bar label {
    min-width: 170px;
    flex: 1 1 180px;
}

.sim-filter-bar select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.sim-toggle-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--amber-border);
    background: var(--amber-soft);
    color: var(--amber-dark);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    min-height: 42px;
}

.sim-toggle-check input {
    width: auto;
    margin: 0;
}

.sim-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sim-progress-bar {
    flex: 1 1 220px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sim-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--teal), var(--emerald));
    border-radius: 999px;
    transition: width .25s ease;
}

.sim-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 16px;
}

.sim-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.sim-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sim-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.badge-indigo {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid #c7d2fe;
}

.badge-teal {
    background: var(--teal-soft);
    color: var(--teal);
    border: 1px solid var(--teal-border);
}

.badge-emerald {
    background: var(--emerald-soft);
    color: var(--emerald-dark);
    border: 1px solid var(--emerald-border);
}

.badge-amber {
    background: var(--amber-soft);
    color: var(--amber-dark);
    border: 1px solid var(--amber-border);
}

.sim-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sim-timer-pill.is-over {
    background: var(--amber-soft);
    border-color: var(--amber-border);
    color: var(--amber-dark);
}

.sim-question-body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
}

.sim-hint-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--amber-soft);
    border: 1px solid var(--amber-border);
    color: #78350f;
}

.sim-hint-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--amber-dark);
    font-size: 13.5px;
}

.sim-solution-box {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
    color: #064e3b;
    display: grid;
    gap: 10px;
}

.sim-solution-step {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
}

.sim-self-assess {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    align-items: center;
}

.btn-emerald {
    background: var(--emerald);
    color: #ffffff;
}

.btn-emerald:hover {
    background: var(--emerald-dark);
}

.btn-amber {
    background: var(--amber);
    color: #ffffff;
}

.btn-amber:hover {
    background: var(--amber-dark);
}

.btn-teal {
    background: var(--teal);
    color: #ffffff;
}

.btn-teal:hover {
    background: #0f766e;
}

.btn-ghost {
    background: #f8fafc;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}

@media (max-width: 720px) {
    .dashboard {
        padding: 16px;
    }
    .sim-card {
        padding: 16px;
    }
    .sim-filter-bar {
        padding: 12px;
    }
    .sim-self-assess > button,
    .sim-self-assess > a {
        flex: 1 1 100%;
    }
    .student-nav {
        padding: 8px;
        gap: 6px;
    }
    .student-nav-link {
        font-size: 12.5px;
        padding: 6px 10px;
    }
}
