:root {
    /* PRONCAD type system: Urbanist for hierarchy, Roboto for interface copy. */
    --proncad-font-heading: var(--heading-font, "Urbanist", sans-serif);
    --proncad-font-body: var(--body-font, "Roboto", "Segoe UI", sans-serif);
    --proncad-text-xs: 0.625rem;
    --proncad-text-sm: 0.6875rem;
    --proncad-text-md: 0.75rem;
    --proncad-text-base: 0.8125rem;
    --proncad-text-lg: 0.9375rem;
    --proncad-ink: #172033;
    --proncad-muted: #69758b;
    --proncad-line: #e7ebf3;
    --proncad-surface: #ffffff;
    --proncad-canvas: #f6f8fc;
    --proncad-blue: #4f6df5;
    --proncad-blue-dark: #3549c8;
    --proncad-orange: #ff7a45;
}

body {
    background: var(--proncad-canvas);
    font-family: var(--proncad-font-body);
    font-size: var(--proncad-text-base);
    line-height: 1.55;
}

button,
input,
select,
textarea {
    font-family: var(--proncad-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--proncad-font-heading);
}

input,
select,
textarea,
.form-control,
.form-select {
    font-size: var(--proncad-text-md);
    line-height: 1.45;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #98a2b4;
    font-family: var(--proncad-font-body);
    font-size: var(--proncad-text-sm) !important;
    font-weight: 400;
    opacity: 1;
}

.dashboard-body {
    max-width: 1680px;
    margin-inline: auto;
}

.proncad-topbar-brand {
    align-items: center;
    gap: 11px;
    color: var(--proncad-ink);
}

.proncad-topbar-brand > span:first-child {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--proncad-blue);
    background: #eef1ff;
    font-size: 21px;
}

.proncad-topbar-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.proncad-topbar-brand strong {
    color: var(--proncad-ink);
    font: 700 14px/1.2 var(--heading-font);
}

.proncad-topbar-brand small {
    margin-top: 3px;
    color: var(--proncad-muted);
    font-size: 11px;
}

.proncad-hero {
    min-height: 300px;
    padding: clamp(28px, 4vw, 52px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%, rgba(121, 149, 255, .38), transparent 28%),
        radial-gradient(circle at 65% 120%, rgba(255, 122, 69, .28), transparent 35%),
        linear-gradient(135deg, #18213d 0%, #25346f 55%, #405ed6 100%);
    box-shadow: 0 22px 55px rgba(31, 48, 115, .18);
}

.proncad-hero::before,
.proncad-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
}

.proncad-hero::before {
    width: 430px;
    height: 430px;
    right: -120px;
    top: -205px;
}

.proncad-hero::after {
    width: 300px;
    height: 300px;
    right: 80px;
    bottom: -225px;
}

.proncad-hero-copy,
.proncad-hero-visual,
.proncad-admin-quicklinks {
    position: relative;
    z-index: 1;
}

.proncad-eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #dce4ff;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .025em;
}

.proncad-hero h1 {
    max-width: 760px;
    margin: 17px 0 12px;
    color: #fff;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.proncad-hero-copy > p {
    max-width: 680px;
    margin: 0;
    color: #cdd7f5;
    font-size: 15px;
    line-height: 1.75;
}

.proncad-hero-actions {
    margin-top: 27px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.proncad-btn-primary,
.proncad-btn-secondary {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 650;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.proncad-btn-primary {
    color: #1d2a52 !important;
    background: #fff;
    box-shadow: 0 10px 25px rgba(4, 12, 39, .18);
}

.proncad-btn-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.07);
}

.proncad-btn-primary:hover,
.proncad-btn-secondary:hover {
    transform: translateY(-2px);
}

.proncad-btn-primary:hover {
    color: #fff !important;
    background: var(--proncad-blue);
    box-shadow: 0 12px 28px rgba(53, 73, 200, .3);
}
.proncad-btn-secondary:hover { color: #fff !important; }

.proncad-loader-card {
    width: min(88vw, 270px);
    padding: 30px 28px 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid #e4e8f1;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 65px rgba(26, 39, 76, .13);
}

.proncad-loader-mark {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 17px;
    display: grid;
    place-items: center;
}

.proncad-loader-mark > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--proncad-blue);
    background: #edf1ff;
    font-size: 24px;
}

.proncad-loader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid #e1e6f2;
    border-top-color: var(--proncad-blue);
    border-radius: 50%;
    animation: proncad-loader-spin .85s linear infinite;
}

.proncad-loader-card > strong {
    color: var(--proncad-ink);
    font-size: 17px;
    letter-spacing: .11em;
}

.proncad-loader-card > span {
    margin-top: 4px;
    color: var(--proncad-muted);
    font-size: 11px;
}

.proncad-loader-track {
    width: 100%;
    height: 4px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f6;
}

.proncad-loader-track i {
    width: 42%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #506cf0, #8aa0ff);
    animation: proncad-loader-progress 1.05s ease-in-out infinite;
}

@keyframes proncad-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes proncad-loader-progress {
    from { transform: translateX(-115%); }
    to { transform: translateX(255%); }
}

.proncad-hero-visual {
    min-height: 210px;
    display: grid;
    place-items: center;
}

.proncad-hero-orbit {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 0 45px rgba(255,255,255,.08), 0 24px 50px rgba(6,16,57,.22);
    backdrop-filter: blur(10px);
}

.proncad-hero-orbit::after {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: inherit;
}

.proncad-hero-orbit > span {
    font-size: 25px;
    color: #ffd0ba;
}

.proncad-hero-orbit strong {
    margin: 5px 0 0;
    color: #fff;
    font: 750 42px/1 var(--heading-font);
}

.proncad-hero-orbit small {
    margin-top: 7px;
    color: #dce4ff;
    font-weight: 500;
}

.proncad-float-chip {
    position: absolute;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    color: #fff;
    background: rgba(13,25,71,.72);
    box-shadow: 0 13px 30px rgba(5,12,42,.2);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(9px);
}

.proncad-float-chip i { color: #9eafff; font-size: 17px; }
.proncad-float-chip.chip-one { top: 12px; right: 3%; }
.proncad-float-chip.chip-two { bottom: 8px; left: 0; }

.proncad-metric-card {
    height: 100%;
    min-height: 142px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    border: 1px solid var(--proncad-line);
    border-radius: 18px;
    background: var(--proncad-surface);
    box-shadow: 0 8px 28px rgba(36, 50, 87, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.proncad-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(36, 50, 87, .1);
}

.proncad-metric-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 23px;
}

.proncad-tone-blue { color: #3c5ce4; background: #edf1ff; }
.proncad-tone-violet { color: #7a4ce0; background: #f4edff; }
.proncad-tone-orange { color: #dc6a33; background: #fff0e8; }
.proncad-tone-green { color: #148361; background: #e6f8f1; }

.proncad-metric-label {
    margin: 0 0 6px;
    color: var(--proncad-muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.proncad-metric-card h3 {
    margin: 0;
    color: var(--proncad-ink);
    font-size: 29px;
    letter-spacing: -.025em;
}

.proncad-metric-card div > span {
    display: block;
    margin-top: 5px;
    color: #8993a6;
    font-size: 12px;
}

.proncad-panel {
    padding: clamp(20px, 2.4vw, 28px);
    border: 1px solid var(--proncad-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(36, 50, 87, .05);
}

.proncad-section-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.proncad-section-heading div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--proncad-blue);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.proncad-section-heading h4 {
    margin: 0;
    color: var(--proncad-ink);
    font-size: 20px;
}

.proncad-section-heading > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--proncad-blue);
    font-size: 13px;
    font-weight: 650;
}

.proncad-activity-list {
    display: flex;
    flex-direction: column;
}

.proncad-activity-item {
    min-width: 0;
    padding: 14px 2px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid #edf0f5;
    color: inherit;
}

.proncad-activity-item:first-child { padding-top: 2px; }
.proncad-activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.proncad-activity-item:hover .proncad-activity-copy strong { color: var(--proncad-blue); }

.proncad-activity-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #5068d9;
    background: #eff2ff;
    font-size: 19px;
}

.proncad-activity-copy { min-width: 0; }
.proncad-activity-copy strong,
.proncad-activity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proncad-activity-copy strong { color: var(--proncad-ink); font-size: 14px; transition: color .18s ease; }
.proncad-activity-copy small { margin-top: 4px; color: var(--proncad-muted); font-size: 12px; }

.proncad-score {
    min-width: 58px;
    padding: 6px 9px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 750;
}

.proncad-score.is-pass { color: #087657; background: #e5f8f0; }
.proncad-score.is-review { color: #bd5429; background: #fff0e7; }

.proncad-empty-state {
    min-height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d9dfeb;
    border-radius: 16px;
    background: #fafbfe;
}

.proncad-empty-state > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--proncad-blue);
    background: #edf1ff;
    font-size: 25px;
}

.proncad-empty-state h5 { margin: 14px 0 5px; color: var(--proncad-ink); }
.proncad-empty-state p { max-width: 380px; margin: 0 0 17px; color: var(--proncad-muted); font-size: 13px; }

.proncad-performance-card { text-align: center; }
.proncad-performance-card .proncad-section-heading { text-align: left; }

.proncad-score-ring {
    width: 158px;
    height: 158px;
    margin: 24px auto;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(var(--proncad-blue) var(--score), #e9edf6 0deg);
}

.proncad-score-ring::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    background: #fff;
}

.proncad-score-ring div { position: relative; z-index: 1; }
.proncad-score-ring strong { display: block; color: var(--proncad-ink); font: 750 31px/1 var(--heading-font); }
.proncad-score-ring span { display: block; margin-top: 7px; color: var(--proncad-muted); font-size: 12px; }

.proncad-performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--proncad-line);
    border-radius: 14px;
    background: #fafbfe;
}

.proncad-performance-grid div { padding: 13px; }
.proncad-performance-grid div + div { border-left: 1px solid var(--proncad-line); }
.proncad-performance-grid strong,
.proncad-performance-grid span { display: block; }
.proncad-performance-grid strong { color: var(--proncad-ink); font-size: 18px; }
.proncad-performance-grid span { margin-top: 3px; color: var(--proncad-muted); font-size: 11px; }
.proncad-performance-card > p { margin: 17px 8px 0; color: var(--proncad-muted); font-size: 12px; line-height: 1.6; }

.proncad-training-card {
    height: 100%;
    min-height: 245px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--proncad-line);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #fafbff);
    transition: transform .2s ease, box-shadow .2s ease;
}

.proncad-training-card::before {
    content: "";
    width: 80px;
    height: 80px;
    position: absolute;
    top: -35px;
    right: -25px;
    border-radius: 50%;
    background: var(--training-wash);
}

.proncad-training-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,45,88,.09); }
.proncad-training-tone-1 { --training-accent: #4964df; --training-wash: #e8edff; }
.proncad-training-tone-2 { --training-accent: #7c4ed8; --training-wash: #f0e8ff; }
.proncad-training-tone-3 { --training-accent: #d96937; --training-wash: #ffede3; }
.proncad-training-tone-4 { --training-accent: #128263; --training-wash: #e0f7ef; }

.proncad-training-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--proncad-muted);
    font-size: 11px;
    font-weight: 650;
}

.proncad-training-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--training-accent);
    background: var(--training-wash);
    font-size: 19px;
}

.proncad-training-card h5 { margin: 19px 0 8px; color: var(--proncad-ink); font-size: 16px; line-height: 1.35; }
.proncad-training-card > p { margin: 0; color: var(--proncad-muted); font-size: 12px; line-height: 1.6; }

.proncad-training-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf0f5;
}

.proncad-training-footer > span { color: #168261; font-size: 11px; font-weight: 650; }
.proncad-training-footer a { display: flex; align-items: center; gap: 4px; color: var(--training-accent); font-size: 12px; font-weight: 750; }
.proncad-inline-empty { width: 100%; padding: 34px; border: 1px dashed #d9dfeb; border-radius: 14px; color: var(--proncad-muted); text-align: center; }

.proncad-catalog-card,
.proncad-exam-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--proncad-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(35, 49, 86, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.proncad-catalog-card:hover,
.proncad-exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 38px rgba(35, 49, 86, .1);
}

.proncad-catalog-cover {
    min-height: 126px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.8), transparent 25%),
        linear-gradient(135deg, #edf1ff, #dde6ff);
}

.proncad-catalog-cover::before,
.proncad-catalog-cover::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(78, 103, 218, .13);
    border-radius: 50%;
}

.proncad-catalog-cover::before { width: 150px; height: 150px; right: -45px; top: -90px; }
.proncad-catalog-cover::after { width: 90px; height: 90px; right: 60px; bottom: -68px; }

.proncad-catalog-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border-radius: 15px;
    color: #425edc;
    background: rgba(255,255,255,.78);
    box-shadow: 0 9px 22px rgba(54, 74, 161, .12);
    font-size: 26px;
}

.proncad-access-pill {
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.proncad-access-pill.is-active { color: #087657; background: rgba(229, 248, 240, .92); }
.proncad-access-pill.is-locked { color: #a64d29; background: rgba(255, 238, 228, .94); }

.proncad-catalog-content {
    min-height: 275px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.proncad-catalog-content h5,
.proncad-exam-card h5 {
    margin: 0;
    color: var(--proncad-ink);
    font-size: 17px;
    line-height: 1.4;
}

.proncad-catalog-content > p,
.proncad-exam-card > p {
    margin: 9px 0 17px;
    color: var(--proncad-muted);
    font-size: 12px;
    line-height: 1.65;
}

.proncad-catalog-meta {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.proncad-catalog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--proncad-muted);
    font-size: 11px;
}

.proncad-catalog-meta i { color: var(--proncad-blue); font-size: 16px; }
.proncad-catalog-meta strong { color: var(--proncad-ink); }
.proncad-catalog-action { margin-top: auto; padding-top: 17px; }

.proncad-exam-card {
    min-height: 370px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.proncad-exam-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.proncad-exam-number {
    color: var(--proncad-blue);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.proncad-exam-status {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.proncad-exam-status.is-ready { color: #087657; background: #e5f8f0; }
.proncad-exam-status.is-empty { color: #8a6470; background: #f5edf0; }

.proncad-exam-icon {
    width: 54px;
    height: 54px;
    margin: 19px 0 17px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #4964df;
    background: linear-gradient(145deg, #eef1ff, #e1e7ff);
    font-size: 27px;
}

.proncad-exam-stats {
    margin-top: auto;
    margin-bottom: 17px;
    padding: 13px;
    display: grid;
    gap: 9px;
    border-radius: 13px;
    background: #f8f9fc;
}

.proncad-exam-stats div {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    color: var(--proncad-muted);
    font-size: 11px;
}

.proncad-exam-stats i { color: var(--proncad-blue); font-size: 15px; }
.proncad-exam-stats strong { color: var(--proncad-ink); }
.proncad-exam-card .start-exam-btn { display: flex; align-items: center; justify-content: center; gap: 7px; }

.proncad-report-header {
    padding: 21px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.proncad-report-header > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--proncad-blue);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.proncad-report-header h4 { margin: 0; color: var(--proncad-ink); font-size: 19px; }
.proncad-report-header > span { padding: 6px 9px; border-radius: 999px; color: var(--proncad-muted); background: #f1f3f8; font-size: 11px; font-weight: 650; }
.proncad-report-table { margin: 0; }
.proncad-report-table thead th { padding: 14px 22px; border: 0; background: #f8f9fc; color: #7a8599 !important; font-size: 11px; text-transform: uppercase; letter-spacing: .055em; }
.proncad-report-table tbody td { padding: 16px 22px; vertical-align: middle; border-color: #edf0f5; }
.proncad-report-exam { display: flex; align-items: center; gap: 11px; }
.proncad-report-exam > span { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 10px; color: var(--proncad-blue); background: #edf1ff; font-size: 17px; }
.proncad-report-exam strong { color: var(--proncad-ink); font-size: 13px; }
.proncad-table-score { color: var(--proncad-ink); font-size: 14px; }
.proncad-result-pill { min-width: 54px; padding: 6px 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.proncad-result-pill.is-pass { color: #087657; background: #e5f8f0; }
.proncad-result-pill.is-review { color: #bd5429; background: #fff0e7; }
.proncad-table-date { color: var(--proncad-muted); font-size: 12px; }
.proncad-table-action { display: inline-flex; align-items: center; gap: 5px; color: var(--proncad-blue); font-size: 12px; font-weight: 700; white-space: nowrap; }

.proncad-question-progress {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: var(--proncad-blue);
    background: #edf1ff;
    font-size: 11px;
    font-weight: 700;
}

body.proncad-dialog-open {
    overflow: hidden;
}

.proncad-exam-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    padding: 24px;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(19, 27, 47, .68);
    backdrop-filter: blur(6px);
    animation: proncad-modal-fade .18s ease-out;
}

.proncad-exam-dialog {
    position: relative;
    width: min(100%, 570px);
    overflow: hidden;
    border: 1px solid rgba(226, 230, 239, .9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 25, 50, .28);
    animation: proncad-dialog-enter .24s cubic-bezier(.2, .8, .2, 1);
}

.proncad-exam-dialog--confirm {
    padding: 34px;
}

.proncad-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e8f0;
    border-radius: 11px;
    color: #667085;
    background: rgba(255,255,255,.88);
    font-size: 18px;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.proncad-dialog-close:hover {
    color: var(--proncad-ink);
    border-color: #cfd6e3;
    background: #f7f8fb;
}

.proncad-dialog-close:focus-visible,
.proncad-dialog-actions .btn:focus-visible {
    outline: 3px solid rgba(80, 108, 240, .24);
    outline-offset: 2px;
}

.proncad-dialog-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 26px;
}

.proncad-dialog-icon.is-warning {
    color: #c45126;
    background: #fff0e8;
    box-shadow: 0 0 0 7px #fff8f4;
}

.proncad-dialog-heading > span,
.proncad-result-content > span {
    display: block;
    margin-bottom: 6px;
    color: var(--proncad-blue);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.proncad-dialog-heading h2,
.proncad-result-content h2 {
    margin: 0;
    color: var(--proncad-ink);
    font-size: clamp(23px, 4vw, 29px);
    letter-spacing: -.035em;
}

.proncad-dialog-heading p,
.proncad-result-content > p {
    margin: 10px 0 0;
    color: var(--proncad-muted);
    font-size: 13px;
    line-height: 1.65;
}

.proncad-submit-summary {
    margin: 25px 0 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e9ecf2;
    border-radius: 16px;
    background: #f8f9fc;
}

.proncad-submit-summary > div {
    padding: 2px 12px;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px solid #e1e5ed;
}

.proncad-submit-summary > div:last-child {
    border-right: 0;
}

.proncad-submit-summary strong {
    color: var(--proncad-ink);
    font-size: 21px;
    line-height: 1.2;
}

.proncad-submit-summary span {
    margin-top: 4px;
    color: var(--proncad-muted);
    font-size: 10px;
    font-weight: 650;
}

.proncad-submit-summary .has-warning strong {
    color: #c45126;
}

.proncad-dialog-notice {
    margin-bottom: 20px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #f5d4c5;
    border-radius: 12px;
    color: #9d4826;
    background: #fff8f4;
    font-size: 11px;
    font-weight: 650;
}

.proncad-dialog-notice i {
    flex: 0 0 auto;
    font-size: 17px;
}

.proncad-dialog-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.proncad-dialog-actions .btn {
    min-height: 44px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 750;
}

.proncad-dialog-secondary {
    color: #566176 !important;
    border: 1px solid #dce1ea;
    background: #fff;
}

.proncad-dialog-secondary:hover {
    color: var(--proncad-ink) !important;
    border-color: #c9d0dc;
    background: #f8f9fb;
}

.proncad-dialog-danger {
    color: #fff;
    border: 1px solid #c94d43;
    background: linear-gradient(135deg, #dc5b50, #c8463d);
    box-shadow: 0 9px 20px rgba(200, 70, 61, .2);
}

.proncad-dialog-danger:hover {
    color: #fff;
    background: linear-gradient(135deg, #cf4e44, #b93c34);
}

.proncad-dialog-primary {
    color: #fff;
    border: 1px solid #506cf0;
    background: linear-gradient(135deg, #6078ee, #435fdf);
    box-shadow: 0 9px 20px rgba(67, 95, 223, .2);
}

.proncad-dialog-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #536dec, #3854d2);
}

.proncad-exam-dialog--result {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
}

.proncad-result-banner {
    min-height: 420px;
    padding: 31px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.proncad-result-banner.is-pass {
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(155deg, #12a777, #087657);
}

.proncad-result-banner.is-review {
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(155deg, #f08b4f, #bd5429);
}

.proncad-result-status {
    align-self: flex-start;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .075em;
}

.proncad-result-status i {
    font-size: 16px;
}

.proncad-score-ring {
    position: relative;
    width: 165px;
    height: 165px;
    margin: auto 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#fff calc(var(--score) * 1%), rgba(255,255,255,.22) 0);
    box-shadow: 0 18px 34px rgba(0,0,0,.13);
}

.proncad-score-ring::before {
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    display: none;
    content: "";
}

.proncad-score-ring > div {
    position: relative;
    z-index: 1;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    background: rgba(10, 87, 67, .94);
}

.is-review .proncad-score-ring > div {
    background: rgba(153, 62, 27, .94);
}

.proncad-score-ring strong {
    color: #fff;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.proncad-score-ring span {
    margin-top: 7px;
    color: rgba(255,255,255,.8);
    font-size: 10px;
    font-weight: 650;
}

.proncad-result-content {
    padding: 42px 35px 33px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.proncad-result-metrics {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.proncad-result-metrics > div {
    min-width: 0;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e7eaf1;
    border-radius: 13px;
    background: #f8f9fc;
}

.proncad-result-metrics i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--proncad-blue);
    background: #eaf0ff;
    font-size: 17px;
}

.proncad-result-metrics span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: var(--proncad-muted);
    font-size: 9px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.proncad-result-metrics strong {
    margin-top: 2px;
    color: var(--proncad-ink);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

@keyframes proncad-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes proncad-dialog-enter {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.proncad-admin-hero { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.proncad-admin-quicklinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.proncad-admin-quicklinks a { min-width: 0; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); transition: background .18s ease, transform .18s ease; }
.proncad-admin-quicklinks a:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateX(3px); }
.proncad-admin-quicklinks > a > i { flex: 0 0 auto; font-size: 23px; color: #aebcff; }
.proncad-admin-quicklinks span { display: flex; flex-direction: column; }
.proncad-admin-quicklinks strong,
.proncad-admin-quicklinks small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proncad-admin-quicklinks strong { font-size: 12px; }
.proncad-admin-quicklinks small { margin-top: 3px; color: #cdd7f5; font-size: 11px; }

.proncad-admin-insights {
    overflow: hidden;
    border: 1px solid var(--proncad-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(30, 44, 78, .045);
}

.proncad-admin-insights-heading {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f5;
}

.proncad-admin-insights-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--proncad-blue);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.proncad-admin-insights-heading h4 {
    margin: 0;
    color: var(--proncad-ink);
    font-size: 16px;
}

.proncad-admin-insights-heading a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--proncad-blue);
    font-size: 11px;
    font-weight: 750;
}

.proncad-admin-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proncad-admin-insight {
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #edf0f5;
}

.proncad-admin-insight:last-child {
    border-right: 0;
}

.proncad-admin-insight > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--proncad-blue);
    background: #edf1ff;
    font-size: 19px;
}

.proncad-admin-insight > div {
    min-width: 0;
    display: grid;
}

.proncad-admin-insight small {
    color: var(--proncad-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.proncad-admin-insight strong {
    margin-top: 1px;
    color: var(--proncad-ink);
    font-size: 18px;
    line-height: 1.25;
}

.proncad-admin-insight p {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--proncad-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proncad-training-overview { display: flex; flex-direction: column; gap: 4px; }
.proncad-overview-row { padding: 13px 2px; display: grid; grid-template-columns: minmax(0, 1fr) 100px 44px; align-items: center; gap: 13px; border-bottom: 1px solid #edf0f5; }
.proncad-overview-row:last-child { border-bottom: 0; }
.proncad-overview-row > div:first-child { min-width: 0; }
.proncad-overview-row strong,
.proncad-overview-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proncad-overview-row strong { color: var(--proncad-ink); font-size: 13px; }
.proncad-overview-row > div:first-child span { margin-top: 4px; color: var(--proncad-muted); font-size: 11px; }
.proncad-overview-row b { color: var(--proncad-ink); text-align: right; font-size: 13px; }
.proncad-overview-meter { height: 6px; overflow: hidden; border-radius: 999px; background: #e9edf5; }
.proncad-overview-meter span { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #506cf0, #8799f7); }

.proncad-page-toolbar {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.proncad-page-heading { min-width: 0; flex: 1; }
.proncad-page-heading span { display: block; margin-bottom: 3px; color: var(--proncad-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.proncad-page-heading h1 { margin: 0; color: var(--proncad-ink); font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -.025em; }

.proncad-back-button,
.proncad-home-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dfe4ee;
    border-radius: 12px;
    color: #536078;
    background: #fff;
    box-shadow: 0 4px 13px rgba(30,44,78,.04);
    font-size: 13px;
    font-weight: 650;
}

.proncad-back-button { padding: 9px 14px; }
.proncad-home-button { width: 42px; flex: 0 0 42px; }
.proncad-back-button:hover,
.proncad-home-button:hover { color: var(--proncad-blue); border-color: #bec9fb; background: #f7f8ff; }
.proncad-back-button i,
.proncad-home-button i { font-size: 17px; }

.dashboard-body > .breadcrumb,
.dashboard-body > .breadcrumb-with-buttons .breadcrumb {
    display: none;
}

.sidebar-menu__link.is-active {
    color: var(--main-600);
    background: var(--main-50);
}

.sidebar-menu__link.is-active .icon {
    color: #fff;
    background: var(--main-600);
}

@media (max-width: 991px) {
    .proncad-hero,
    .proncad-admin-hero { grid-template-columns: 1fr; }
    .proncad-hero-visual { display: none; }
    .proncad-admin-quicklinks { grid-template-columns: 1fr 1fr; }
    .proncad-admin-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proncad-admin-insight:nth-child(2) { border-right: 0; }
    .proncad-admin-insight:nth-child(-n+2) { border-bottom: 1px solid #edf0f5; }
}

@media (max-width: 575px) {
    .proncad-hero { min-height: auto; padding: 27px 22px; border-radius: 19px; }
    .proncad-hero h1 { font-size: 30px; }
    .proncad-hero-actions { align-items: stretch; flex-direction: column; }
    .proncad-hero-actions .btn { width: 100%; }
    .proncad-admin-quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proncad-admin-insights-heading { align-items: flex-start; flex-direction: column; }
    .proncad-admin-insights-grid { grid-template-columns: 1fr; }
    .proncad-admin-insight,
    .proncad-admin-insight:nth-child(2) { border-right: 0; border-bottom: 1px solid #edf0f5; }
    .proncad-admin-insight:last-child { border-bottom: 0; }
    .proncad-metric-card { min-height: 125px; }
    .proncad-panel { border-radius: 16px; }
    .proncad-activity-item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
    .proncad-activity-icon { width: 38px; height: 38px; }
    .proncad-overview-row { grid-template-columns: minmax(0, 1fr) 42px; }
    .proncad-overview-meter { display: none; }
    .proncad-page-toolbar { gap: 10px; }
    .proncad-back-button { width: 42px; padding: 0; font-size: 0; }
    .proncad-back-button i { font-size: 18px; }
    .proncad-home-button { display: none; }
    .proncad-exam-modal { padding: 13px; place-items: end center; }
    .proncad-exam-dialog { border-radius: 21px 21px 15px 15px; }
    .proncad-exam-dialog--confirm { padding: 27px 20px 20px; }
    .proncad-submit-summary { padding: 13px 5px; }
    .proncad-submit-summary > div { padding: 2px 5px; }
    .proncad-dialog-actions { flex-direction: column-reverse; }
    .proncad-dialog-actions .btn { width: 100%; }
    .proncad-exam-dialog--result { display: block; }
    .proncad-result-banner { min-height: 220px; padding: 23px; }
    .proncad-score-ring { width: 126px; height: 126px; margin: 19px auto 0; }
    .proncad-score-ring strong { font-size: 28px; }
    .proncad-result-content { padding: 27px 20px 20px; }
}

@media (max-width: 380px) {
    .proncad-admin-quicklinks { grid-template-columns: 1fr; }
}

@keyframes proncad-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(100deg, #edf0f6 25%, #f8f9fc 42%, #edf0f6 60%);
    background-size: 220% 100%;
    animation: proncad-shimmer 1.35s ease-in-out infinite;
}

.skeleton-hero { height: 300px; border-radius: 24px; }
.skeleton-card-row { min-height: 142px; padding: 22px; display: flex; gap: 17px; border: 1px solid var(--proncad-line); border-radius: 18px; background: #fff; }
.skeleton-card-row > span { flex: 1; }
.skeleton-square { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; }
.skeleton-line { height: 11px; margin-bottom: 11px; }
.skeleton-line.large { height: 18px; }
.skeleton-line.full { width: 100%; }
.skeleton-line.medium { width: 64%; }
.skeleton-line.short { width: 38%; }
.skeleton-panel { min-height: 330px; padding: 28px; border: 1px solid var(--proncad-line); border-radius: 20px; background: #fff; }
.skeleton-panel-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.skeleton-list-row { width: 100%; height: 52px; margin-top: 13px; border-radius: 12px; }
.skeleton-circle { width: 158px; height: 158px; margin-bottom: 25px; border-radius: 50%; }
.skeleton-card { height: 100%; min-height: 390px; overflow: hidden; border: 1px solid var(--proncad-line); border-radius: 18px; background: #fff; }
.skeleton-card-cover { height: 126px; border-radius: 0; }
.skeleton-card-body { padding: 20px; }
.skeleton-button { height: 42px; margin-top: 38px; border-radius: 12px; }
.skeleton-exam { padding: 24px; min-height: 350px; }
.skeleton-pill { width: 82px; height: 25px; border-radius: 999px; }
.skeleton-option { height: 58px; border-radius: 12px; }
.skeleton-report { min-height: 390px; padding: 26px; }
.skeleton-table-row td { padding: 8px 20px !important; }
.skeleton-table-row .skeleton-list-row { height: 42px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
    .proncad-exam-modal,
    .proncad-exam-dialog { animation: none; }
}

/* Exam modes and case-study experience */
.proncad-exam-mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.proncad-exam-mode-picker label { min-width: 0; margin: 0; position: relative; cursor: pointer; }
.proncad-exam-mode-picker input { position: absolute; opacity: 0; }
.proncad-exam-mode-picker label > span { min-height: 74px; padding: 12px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 9px; border: 1px solid #dde3ed; border-radius: 12px; background: #fbfcfe; }
.proncad-exam-mode-picker label > span > i { width: 30px; height: 30px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 9px; color: var(--proncad-blue); background: #edf1ff; font-size: 15px; }
.proncad-exam-mode-picker b { color: var(--proncad-ink); font-size: var(--proncad-text-md); }
.proncad-exam-mode-picker small { color: var(--proncad-muted); font-size: var(--proncad-text-xs); line-height: 1.4; }
.proncad-exam-mode-picker input:checked + span { border-color: #9cacfa; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(79,109,245,.09); }
.proncad-case-setup { padding: 15px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 13px; border: 1px solid #dfe5f2; border-radius: 13px; background: #f8f9ff; }
.proncad-case-setup[hidden] { display: none !important; }
.proncad-case-setup__heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; }
.proncad-case-setup__heading > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--proncad-blue); background: #e9edff; font-size: 16px; }
.proncad-case-setup__heading > div { display: grid; gap: 2px; }
.proncad-case-setup__heading strong { color: var(--proncad-ink); font-size: var(--proncad-text-md); }
.proncad-case-setup__heading small { color: var(--proncad-muted); font-size: var(--proncad-text-xs); }
.proncad-case-setup textarea { min-height: 150px !important; }

.proncad-case-exam-layout { min-height: 560px; display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); gap: 20px; }
.proncad-case-composition { max-height: calc(100vh - 245px); padding: 23px; position: sticky; top: 92px; overflow-y: auto; border: 1px solid #dde3ee; border-radius: 17px; background: linear-gradient(145deg,#f9faff,#fff); box-shadow: 0 12px 30px rgba(25,40,78,.06); }
.proncad-case-composition > span { display: inline-flex; align-items: center; gap: 6px; color: var(--proncad-blue); font-size: var(--proncad-text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.proncad-case-composition h2 { margin: 11px 0 14px; color: var(--proncad-ink); font-size: 22px; line-height: 1.25; }
.proncad-case-composition p { margin: 0 0 12px; color: #4f5b70; font-size: var(--proncad-text-md); line-height: 1.75; }
.proncad-case-question { min-width: 0; padding: 8px 2px; }
.proncad-case-author-summary { margin: 0 0 18px; padding: 19px 21px; border: 1px solid #d9e1f2; border-radius: 15px; background: linear-gradient(135deg,#f5f7ff,#fff); box-shadow: 0 9px 24px rgba(31,48,87,.06); }
.proncad-case-author-summary__label { display: flex; align-items: center; gap: 7px; color: var(--proncad-blue); font-size: var(--proncad-text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.proncad-case-author-summary h3 { margin: 9px 0 7px; color: var(--proncad-ink); font-size: 18px; }
.proncad-case-author-summary p { max-height: 145px; margin: 0 0 11px; overflow: auto; color: #536078; font-size: var(--proncad-text-sm); line-height: 1.65; }
.proncad-case-author-summary small { display: flex; align-items: center; gap: 7px; color: #6f7b91; font-size: var(--proncad-text-xs); font-weight: 650; }
.proncad-response-question { min-width: 0; }
.proncad-response-heading > span { color: var(--proncad-blue); font-size: var(--proncad-text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.proncad-response-heading h3 { margin: 7px 0 5px; color: var(--proncad-ink); font-size: 18px; line-height: 1.5; }
.proncad-response-heading p { margin: 0 0 14px; color: var(--proncad-muted); font-size: var(--proncad-text-sm); }
.proncad-direct-answer { max-width: 620px; margin-top: 22px; display: grid; gap: 7px; color: #37435a; font-size: var(--proncad-text-sm); font-weight: 750; }
.proncad-direct-answer .form-control,
.proncad-direct-answer .form-select { min-height: 48px; padding: 11px 13px; border: 1px solid #dce2ec; border-radius: 11px; background-color: #fff; }
.proncad-question-reference { margin: 18px 0; }
.proncad-question-reference img { max-width: 100%; max-height: 420px; border-radius: 13px; object-fit: contain; }

.proncad-live-hotspot { max-width: 800px; overflow: hidden; border: 1px solid #dde3ed; border-radius: 14px; background: #f2f4f8; box-shadow: 0 10px 25px rgba(29,42,77,.08); }
.proncad-live-hotspot canvas { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: none; }
.hotspot-container .hotspot-canvas { max-width: 100%; height: auto; display: block; }
.proncad-enhanced-target-label { min-width: 210px; display: grid; grid-template-columns: 28px minmax(150px,1fr); align-items: center; gap: 7px; }
.proncad-enhanced-target-label > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--proncad-blue); font-size: var(--proncad-text-xs); font-weight: 800; }
.proncad-enhanced-target-label input { min-height: 36px !important; }
.proncad-enhanced-stage { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 14px; align-items: start; }
.proncad-enhanced-canvas { position: relative; overflow: hidden; border: 1px solid #dce2eb; border-radius: 14px; background: #eef1f6; }
.proncad-enhanced-canvas > img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: fill; }
.proncad-enhanced-zone { position: absolute; display: grid; place-items: center; border: 2px dashed rgba(79,109,245,.7); border-radius: 8px; background: rgba(238,242,255,.42); transition: .16s ease; }
.proncad-enhanced-zone:empty::before { content: "Drop here"; color: #5368ca; font-size: 9px; font-weight: 800; }
.proncad-enhanced-zone.is-filled { border-style: solid; background: rgba(255,255,255,.9); }
.proncad-enhanced-bank { padding: 13px; border: 1px solid #dfe4ed; border-radius: 13px; background: #fafbfc; }
.proncad-enhanced-bank > strong { display: block; margin-bottom: 9px; color: #3b475d; font-size: var(--proncad-text-sm); }
.proncad-enhanced-bank > div { display: grid; gap: 7px; }
.proncad-enhanced-token { padding: 8px 10px; display: block; border: 1px solid #cfd8fa; border-radius: 9px; color: #4057bd; background: #fff; box-shadow: 0 5px 12px rgba(49,67,137,.09); font-size: var(--proncad-text-xs); font-weight: 750; cursor: grab; }
.proncad-enhanced-token.is-selected { color: #fff; background: var(--proncad-blue); }

@media (max-width: 900px) {
    .proncad-case-exam-layout { grid-template-columns: 1fr; }
    .proncad-case-composition { max-height: 340px; position: static; }
    .proncad-enhanced-stage { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .proncad-exam-mode-picker,
    .proncad-case-setup { grid-template-columns: 1fr; }
}

/* Collapsible desktop navigation */
.sidebar-collapse-btn {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 88px;
    right: -15px;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 1px solid #dce2ec;
    border-radius: 10px;
    color: #526179;
    background: #fff;
    box-shadow: 0 7px 18px rgba(28, 42, 74, .14);
    font-size: 12px;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar-collapse-btn:hover { color: #fff; background: var(--proncad-blue); transform: scale(1.06); }
.proncad-sidebar,
.dashboard-main-wrapper { transition: width .22s ease, margin-inline-start .22s ease, transform .22s ease; }

@media (min-width: 1200px) {
    body.proncad-sidebar-collapsed .proncad-sidebar { width: 82px; }
    body.proncad-sidebar-collapsed .dashboard-main-wrapper { margin-inline-start: 82px; }
    body.proncad-sidebar-collapsed .proncad-sidebar-head { padding-inline: 12px; justify-content: center; }
    body.proncad-sidebar-collapsed .proncad-sidebar-brand { gap: 0; }
    body.proncad-sidebar-collapsed .proncad-sidebar-brand > span,
    body.proncad-sidebar-collapsed .proncad-nav-label,
    body.proncad-sidebar-collapsed .sidebar-menu__link .text,
    body.proncad-sidebar-collapsed .proncad-nav-caret,
    body.proncad-sidebar-collapsed .proncad-sidebar-support > div { display: none; }
    body.proncad-sidebar-collapsed .proncad-sidebar .sidebar-menu-wrapper { padding-inline: 10px; }
    body.proncad-sidebar-collapsed .proncad-sidebar .sidebar-menu { margin-bottom: 13px; }
    body.proncad-sidebar-collapsed .proncad-sidebar .sidebar-menu__link { min-height: 48px; padding: 7px; justify-content: center; }
    body.proncad-sidebar-collapsed .proncad-sidebar .sidebar-menu__link .icon { width: 35px; height: 35px; flex-basis: 35px; }
    body.proncad-sidebar-collapsed .proncad-sidebar-support { padding: 10px; justify-content: center; }
    body.proncad-sidebar-collapsed .sidebar-collapse-btn { right: -15px; }
}

@media (max-width: 1199px) {
    .sidebar-collapse-btn { display: none; }
}

/* Unified question editor */
.proncad-question-layout { display: grid; gap: 17px; }
.proncad-builder-section { overflow: hidden; border: 1px solid #e1e6ef; border-radius: 17px; background: #fff; }
.proncad-builder-section > header { min-height: 72px; padding: 15px 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #e9edf4; background: linear-gradient(135deg, #fbfcff, #f7f9fd); }
.proncad-builder-section > header > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; color: #4963dc; background: #e9edff; font-size: 9px; font-weight: 850; }
.proncad-builder-section > header > div { min-width: 0; display: grid; gap: 2px; }
.proncad-builder-section > header h3 { margin: 0; color: #263249; font-size: 13px; font-weight: 820; letter-spacing: -.015em; }
.proncad-builder-section > header p { margin: 0; color: #7f8a9e; font-size: 8.5px; line-height: 1.45; }
.proncad-builder-section > header em { margin-left: auto; padding: 5px 8px; border-radius: 99px; color: #566bd1; background: #edf1ff; font-size: 7.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.proncad-builder-section__body { padding: 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.proncad-builder-field { min-width: 0; display: grid; gap: 7px; }
.proncad-builder-field--wide { grid-column: 1 / -1; }
.proncad-builder-field > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #344159; font-size: 10px; font-weight: 780; }
.proncad-builder-field > label small { color: #8c97aa; font-size: 7.5px; font-weight: 600; }
.proncad-builder-field .form-control { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dce2ec; border-radius: 11px; color: #29364e; background: #fbfcfe; font-size: 10.5px; line-height: 1.5; }
.proncad-builder-field textarea.form-control { min-height: 112px; resize: vertical; }
.proncad-builder-field .form-control:focus { border-color: #8fa1ef; background: #fff; box-shadow: 0 0 0 3px rgba(81, 109, 240, .11); }
.proncad-field-hint { display: flex; align-items: center; gap: 5px; color: #7c889b; font-size: 8px; }
.proncad-field-hint i { color: #d08431; font-size: 13px; }
.proncad-answer-input { position: relative; }
.proncad-answer-input > i { position: absolute; left: 13px; top: 50%; z-index: 1; color: #25a477; font-size: 17px; transform: translateY(-50%); }
.proncad-answer-input .form-control { padding-left: 41px; }

/* Image drag and drop */
.proncad-image-drop { min-height: 142px; overflow: hidden; border: 1.5px dashed #c8d1e3; border-radius: 14px; background: #f9faff; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.proncad-image-drop:hover,
.proncad-image-drop.is-dragging { border-color: #6f85eb; background: #f2f5ff; box-shadow: 0 0 0 4px rgba(81,109,240,.08); }
.proncad-image-drop.is-dragging { transform: scale(1.008); }
.proncad-image-drop__empty { min-height: 142px; padding: 18px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; cursor: pointer; }
.proncad-image-drop__empty[hidden],
.proncad-image-drop__preview[hidden] { display: none !important; }
.proncad-image-drop__empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #506be7; background: #e8edff; font-size: 22px; }
.proncad-image-drop__empty > div { min-width: 0; display: grid; gap: 3px; }
.proncad-image-drop__empty strong { color: #30405b; font-size: 11px; font-weight: 800; }
.proncad-image-drop__empty p { margin: 0; color: #758298; font-size: 8.5px; line-height: 1.45; }
.proncad-image-drop__empty small { color: #9aa3b3; font-size: 7.5px; }
.proncad-image-drop__empty > b { padding: 9px 12px; border: 1px solid #ccd5eb; border-radius: 9px; color: #445cd2; background: #fff; font-size: 8px; font-weight: 800; white-space: nowrap; }
.proncad-image-drop__preview { min-height: 142px; padding: 13px; display: grid; grid-template-columns: 124px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.proncad-image-drop__preview > img { width: 124px; height: 96px; object-fit: cover; border: 1px solid #dce2ec; border-radius: 11px; background: #fff; }
.proncad-image-drop__preview > div { min-width: 0; display: grid; gap: 3px; }
.proncad-image-drop__preview strong { overflow: hidden; color: #344159; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.proncad-image-drop__preview small { color: #7f8b9e; font-size: 8px; }
.proncad-image-drop__preview button { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #edc9d1; border-radius: 9px; color: #be435a; background: #fff5f7; font-size: 8px; font-weight: 750; }
.proncad-image-drop__preview button i { font-size: 13px; }

/* Answer option cards */
.proncad-option-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 10px; }
.proncad-option-card { min-width: 0; padding: 11px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto 31px; align-items: center; gap: 9px; border: 1px solid #dfe5ee; border-radius: 13px; background: #fbfcfe; transition: border-color .17s ease, background .17s ease, box-shadow .17s ease; }
.proncad-option-card:focus-within { border-color: #a8b6ef; background: #fff; box-shadow: 0 8px 22px rgba(38,55,107,.07); }
.proncad-option-card.is-correct { border-color: #9fd9c4; background: #f4fbf8; box-shadow: inset 3px 0 #28a77b; }
.proncad-option-letter { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #4961d4; background: #e9edff; font-size: 9px; font-weight: 850; }
.proncad-option-input { min-width: 0; display: grid; gap: 3px; }
.proncad-option-input label { color: #7d889b; font-size: 7.5px; font-weight: 700; }
.proncad-option-input .form-control { min-height: 38px; padding: 8px 10px; border-color: #dfe4ec; border-radius: 9px; background: #fff; font-size: 9.5px; }
.proncad-correct-control { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.proncad-correct-control input { position: absolute; opacity: 0; pointer-events: none; }
.proncad-correct-control span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #d8dee8; border-radius: 8px; color: #9aa4b4; background: #fff; font-size: 12px; transition: .16s ease; }
.proncad-correct-control b { color: #8490a3; font-size: 7px; font-weight: 750; }
.proncad-correct-control input:checked + span { color: #fff; border-color: #27a77b; background: #27a77b; box-shadow: 0 5px 11px rgba(39,167,123,.22); }
.proncad-option-card.is-correct .proncad-correct-control b { color: #238661; }
.proncad-option-card .delete-option-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e2e6ed; border-radius: 8px; color: #8994a6; background: #fff; font-size: 13px; }
.proncad-option-card .delete-option-btn:hover { color: #c13f58; border-color: #edc6ce; background: #fff3f5; }
.proncad-add-row { grid-column: 1 / -1; min-height: 39px; padding: 9px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; border: 1px dashed #aebbef; border-radius: 10px; color: #465fd4; background: #f7f8ff; font-size: 8.5px; font-weight: 780; }
.proncad-add-row:hover { border-style: solid; color: #fff; background: #506be3; }

/* Matching pair authoring */
.proncad-match-guide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr); align-items: center; gap: 8px; color: #7e899c; font-size: 8px; text-align: center; }
.proncad-match-guide span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.proncad-match-guide > i { color: #536ce0; font-size: 16px; }
.proncad-match-pairs { grid-column: 1 / -1; display: grid; gap: 10px; }
.proncad-match-pair { min-width: 0; padding: 11px; display: grid; grid-template-columns: 34px minmax(0,1fr) 72px minmax(0,1fr) 32px; align-items: center; gap: 8px; border: 1px solid #dfe5ee; border-radius: 14px; background: #fbfcfe; transition: border-color .18s ease, box-shadow .18s ease; }
.proncad-match-pair:focus-within { border-color: #aab8ef; box-shadow: 0 8px 22px rgba(40,56,111,.07); }
.proncad-match-pair.is-complete { border-color: #b8dccc; background: #f8fcfa; }
.proncad-match-number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #4c63d6; background: #e9edff; font-size: 8px; font-weight: 850; }
.proncad-puzzle-input { min-width: 0; min-height: 58px; padding: 7px 9px; position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid #dce3ed; background: #fff; }
.proncad-puzzle-input--source { border-radius: 12px 4px 4px 12px; }
.proncad-puzzle-input--target { border-radius: 4px 12px 12px 4px; }
.proncad-puzzle-input > i { flex: 0 0 auto; color: #9aa5b6; font-size: 15px; }
.proncad-puzzle-input > div { min-width: 0; display: grid; flex: 1; gap: 2px; }
.proncad-puzzle-input label { color: #8792a5; font-size: 7px; font-weight: 750; }
.proncad-puzzle-input .form-control { min-height: 31px; padding: 5px 7px; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 9px; }
.proncad-puzzle-input > b { width: 16px; height: 24px; position: absolute; top: 50%; z-index: 2; background: #fbfcfe; transform: translateY(-50%); }
.proncad-puzzle-input--source > b { right: -9px; border-radius: 50% 0 0 50%; border: 1px solid #dce3ed; border-right: 0; }
.proncad-puzzle-input--target > b { left: -9px; border-radius: 0 50% 50% 0; border: 1px solid #dce3ed; border-left: 0; }
.proncad-magnet-link { height: 38px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #6076df; }
.proncad-magnet-link span { width: 18px; height: 1px; background: #b9c4ed; transition: width .2s ease; }
.proncad-magnet-link i { font-size: 17px; transition: transform .2s ease; }
.proncad-match-pair:focus-within .proncad-magnet-link i,
.proncad-match-pair.is-complete .proncad-magnet-link i { transform: scale(1.15) rotate(-8deg); }
.proncad-match-pair.is-complete .proncad-magnet-link span { width: 24px; background: #61b594; }
.proncad-pair-remove { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #e1e5ec; border-radius: 9px; color: #8994a5; background: #fff; font-size: 13px; }
.proncad-pair-remove:hover { color: #c03f57; border-color: #edc5cd; background: #fff4f6; }

/* Hotspot builder */
.proncad-hotspot-empty { grid-column: 1 / -1; min-height: 200px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px dashed #ced6e5; border-radius: 14px; color: #8792a5; text-align: center; background: #fafbfe; }
.proncad-hotspot-empty[hidden],
.proncad-hotspot-workspace[hidden] { display: none !important; }
.proncad-hotspot-empty > i { width: 47px; height: 47px; margin-bottom: 5px; display: grid; place-items: center; border-radius: 14px; color: #516ce3; background: #e9edff; font-size: 22px; }
.proncad-hotspot-empty strong { color: #36435a; font-size: 11px; }
.proncad-hotspot-empty p { margin: 0; font-size: 8px; }
.proncad-hotspot-workspace { grid-column: 1 / -1; overflow: hidden; border: 1px solid #dde3ec; border-radius: 15px; background: #f7f9fc; }
.proncad-hotspot-toolbar { min-height: 52px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dfe5ed; background: #fff; }
.proncad-hotspot-toolbar > span { display: flex; align-items: center; gap: 6px; color: #69768c; font-size: 8px; }
.proncad-hotspot-toolbar > span i { color: #506ae0; font-size: 14px; }
.proncad-hotspot-toolbar > div { display: flex; gap: 5px; }
.proncad-hotspot-toolbar button { min-height: 32px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dce2ea; border-radius: 8px; color: #5f6c82; background: #fff; font-size: 7.5px; font-weight: 750; }
.proncad-hotspot-toolbar button:hover { color: #4760d2; border-color: #bdc9ef; background: #f4f6ff; }
.proncad-hotspot-canvas-wrap { padding: 14px; display: grid; place-items: center; overflow: auto; background-image: linear-gradient(45deg,#eef1f6 25%,transparent 25%),linear-gradient(-45deg,#eef1f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef1f6 75%),linear-gradient(-45deg,transparent 75%,#eef1f6 75%); background-size: 18px 18px; background-position: 0 0,0 9px,9px -9px,-9px 0; }
.proncad-hotspot-canvas-wrap canvas { max-width: 100%; height: auto; display: block; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(28,40,70,.13); cursor: crosshair; touch-action: none; }
.proncad-hotspot-options { min-height: 64px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #dfe5ed; background: #fff; }
.proncad-hotspot-options > div:first-child { display: grid; gap: 2px; }
.proncad-hotspot-options strong { color: #344159; font-size: 9.5px; }
.proncad-hotspot-options small { color: #8a95a7; font-size: 7.5px; }
#correctOptionsContainer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.proncad-region-choice { min-height: 33px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dce2ea; border-radius: 9px; color: #66738a; background: #fff; font-size: 7.5px; font-weight: 700; cursor: pointer; }
.proncad-region-choice input { position: absolute; opacity: 0; }
.proncad-region-choice span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: #5068da; background: #e9edff; font-size: 8px; font-weight: 850; }
.proncad-region-choice.is-selected { color: #21805f; border-color: #9fd5c1; background: #f0faf6; }
.proncad-region-choice.is-selected span { color: #fff; background: #27a579; }
.proncad-no-regions { color: #929cad; font-size: 8px; }

/* Magnetic matching inside an exam */
.proncad-exam-match-question { padding: 2px 0 16px; }
.proncad-exam-match-heading { margin-bottom: 17px; }
.proncad-exam-match-heading > span { display: block; margin-bottom: 5px; color: #5069dd; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.proncad-exam-match-heading h3 { margin: 0; color: #243149; font-size: 16px; font-weight: 800; line-height: 1.45; }
.proncad-exam-match-heading p { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: #758197; font-size: 8.5px; }
.proncad-exam-match-heading p i { color: #526ce2; font-size: 14px; }
.proncad-exam-match-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.proncad-exam-match-board > section { min-width: 0; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 16px; background: #f9fafe; }
.proncad-exam-match-board > section > header { min-height: 61px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #e3e7ef; background: #fff; }
.proncad-exam-match-board > section > header > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #5069df; background: #e9edff; font-size: 16px; }
.proncad-exam-match-board > section > header > div { display: grid; gap: 1px; }
.proncad-exam-match-board > section > header strong { color: #334058; font-size: 10px; }
.proncad-exam-match-board > section > header small { color: #8c96a8; font-size: 7.5px; }
.proncad-exam-match-board .source-container,
.proncad-exam-match-board .target-container { min-height: 250px; margin: 0; padding: 13px; display: flex; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 9px; }
.proncad-exam-match-board .source-item { width: 100%; min-height: 62px; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,.9fr); align-items: stretch; overflow: visible; border: 1px solid #dce3ed; border-radius: 13px; color: #344159; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.proncad-exam-match-board .source-item::after { display: none; }
.proncad-source-piece { min-width: 0; padding: 11px 14px; position: relative; display: flex; align-items: center; border-radius: 12px 0 0 12px; background: #fff; }
.proncad-source-piece > span { overflow: hidden; text-overflow: ellipsis; }
.proncad-source-piece > i { width: 18px; height: 26px; position: absolute; right: -9px; top: 50%; z-index: 3; border: 1px solid #dce3ed; border-right: 0; border-radius: 50% 0 0 50%; background: #f4f6fb; transform: translateY(-50%); }
.proncad-match-slot { min-width: 0; min-height: 60px; padding: 6px; display: grid; place-items: center; border-left: 1px dashed #cbd3e2; border-radius: 0 12px 12px 0; color: #8a95a8; background: #f4f6fb; transition: background .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2,.9,.25,1.35); }
.proncad-match-slot > span { display: flex; align-items: center; gap: 5px; font-size: 7.5px; }
.proncad-match-slot > span i { color: #6175d8; font-size: 13px; }
.proncad-exam-match-board .source-item.is-attracting { border-color: #7287e8; box-shadow: 0 0 0 4px rgba(81,109,240,.12), 0 12px 28px rgba(49,67,142,.12); transform: scale(1.015); }
.proncad-exam-match-board .source-item.is-attracting .proncad-match-slot { color: #4059cf; background: #e9edff; transform: translateX(-6px); animation: proncad-magnet-pulse .7s ease-in-out infinite alternate; }
.proncad-exam-match-board .source-item.is-matched { border-color: #8dd2b7; box-shadow: 0 7px 18px rgba(34,137,99,.08); }
.proncad-exam-match-board .source-item.is-matched .proncad-match-slot { padding: 0; border-left-style: solid; border-left-color: #8dd2b7; background: #eaf8f3; }
.proncad-exam-match-board .target-item { width: 100%; min-height: 54px; margin: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; position: relative; border: 1px solid #9caef0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#5672e9,#3f59cf); box-shadow: 0 7px 16px rgba(55,77,184,.17); font-size: 9px; font-weight: 750; cursor: grab; transform: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.proncad-exam-match-board .target-item::before { content: ""; width: 18px; height: 26px; position: absolute; left: -1px; top: 50%; border-radius: 0 50% 50% 0; background: #f9fafe; transform: translate(-50%,-50%); }
.proncad-exam-match-board .target-item.draggable::after { display: none; }
.proncad-exam-match-board .target-item:hover { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(52,73,176,.24); }
.proncad-exam-match-board .target-item.is-selected { border-color: #ffae73; box-shadow: 0 0 0 4px rgba(255,122,69,.16), 0 11px 22px rgba(52,73,176,.2); transform: translateY(-2px); }
.proncad-exam-match-board .target-item.is-dragging { opacity: .62; transform: scale(.97); }
.proncad-exam-match-board .target-item.locked { min-height: 60px; border: 0; border-radius: 0 11px 11px 0; background: linear-gradient(135deg,#37ad84,#238c67) !important; box-shadow: none; cursor: grab; }
.proncad-exam-match-board .target-item.locked::before { background: #fff; }
.proncad-exam-match-board .target-item.is-snapping { animation: proncad-magnetic-snap .42s cubic-bezier(.2,1.4,.4,1); }
.proncad-exam-match-board .target-container:empty::after { content: "All pieces are connected"; min-height: 150px; display: grid; place-items: center; color: #2a8c69; font-size: 9px; font-weight: 750; }
@keyframes proncad-magnet-pulse { to { box-shadow: inset 0 0 0 2px rgba(81,109,240,.16); } }
@keyframes proncad-magnetic-snap { 0% { transform: translateX(26px) scale(.94); opacity: .65; } 62% { transform: translateX(-5px) scale(1.025); } 100% { transform: translateX(0) scale(1); opacity: 1; } }

@media (max-width: 900px) {
    .proncad-builder-section__body { grid-template-columns: 1fr; }
    .proncad-builder-field--wide,
    .proncad-option-grid,
    .proncad-match-guide,
    .proncad-match-pairs,
    .proncad-hotspot-empty,
    .proncad-hotspot-workspace,
    .proncad-add-row { grid-column: auto; }
    .proncad-option-grid { grid-template-columns: 1fr; }
    .proncad-match-pair { grid-template-columns: 31px minmax(0,1fr) 34px; }
    .proncad-match-pair .proncad-puzzle-input { grid-column: 2 / 3; }
    .proncad-match-pair .proncad-magnet-link { grid-column: 2 / 3; height: 25px; transform: rotate(90deg); }
    .proncad-pair-remove { grid-column: 3; grid-row: 1; }
    .proncad-exam-match-board { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .proncad-builder-section > header { align-items: flex-start; }
    .proncad-builder-section > header em { display: none; }
    .proncad-builder-section__body { padding: 13px; }
    .proncad-image-drop__empty { grid-template-columns: 43px minmax(0,1fr); }
    .proncad-image-drop__empty > b { grid-column: 1 / -1; text-align: center; }
    .proncad-image-drop__preview { grid-template-columns: 82px minmax(0,1fr); }
    .proncad-image-drop__preview > img { width: 82px; height: 70px; }
    .proncad-image-drop__preview button { grid-column: 1 / -1; justify-content: center; }
    .proncad-option-card { grid-template-columns: 31px minmax(0,1fr) 30px; }
    .proncad-correct-control { grid-column: 2; }
    .proncad-option-card .delete-option-btn { grid-column: 3; grid-row: 1; }
    .proncad-hotspot-toolbar,
    .proncad-hotspot-options { align-items: flex-start; flex-direction: column; }
    .proncad-exam-match-board .source-item { grid-template-columns: 1fr; }
    .proncad-source-piece { min-height: 50px; border-radius: 11px 11px 0 0; }
    .proncad-source-piece > i { right: 50%; top: auto; bottom: -13px; border: 1px solid #dce3ed; border-bottom: 0; border-radius: 50% 50% 0 0; transform: translateX(50%); }
    .proncad-match-slot { border-left: 0; border-top: 1px dashed #cbd3e2; border-radius: 0 0 11px 11px; }
    .proncad-exam-match-board .target-item.locked { border-radius: 0 0 11px 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .proncad-exam-match-board .source-item.is-attracting .proncad-match-slot,
    .proncad-exam-match-board .target-item.is-snapping { animation: none !important; }
}

/* Application shell refresh */
.proncad-loader-mark > span img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.proncad-sidebar {
    width: 276px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e7ebf3;
    background: #fff;
    box-shadow: 8px 0 30px rgba(36, 49, 82, .035);
}

.proncad-sidebar-head {
    min-height: 77px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
}

.proncad-sidebar-brand { display: flex; align-items: center; gap: 11px; color: var(--proncad-ink); }
.proncad-sidebar-brand:hover { color: var(--proncad-ink); }
.proncad-sidebar-brand img { width: 39px; height: 39px; padding: 4px; object-fit: contain; border-radius: 12px; background: #edf1ff; }
.proncad-sidebar-brand span { display: grid; gap: 1px; }
.proncad-sidebar-brand strong { font-size: 14px; font-weight: 850; letter-spacing: .09em; }
.proncad-sidebar-brand small { color: #8490a5; font-size: 9px; font-weight: 650; letter-spacing: .025em; }
.proncad-sidebar .sidebar-close-btn { position: static; width: 34px; height: 34px; place-items: center; border: 1px solid #e4e8f0; border-radius: 10px; color: #637087; background: #fff; }

.proncad-sidebar .sidebar-menu-wrapper {
    max-height: calc(100vh - 77px) !important;
    min-height: 0;
    padding: 18px 13px 17px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.proncad-sidebar-nav { display: block; }
.proncad-sidebar .sidebar-menu { margin: 0 0 18px; padding: 0; }
.proncad-sidebar .sidebar-menu__item:not(:last-child) { margin-bottom: 4px; }
.proncad-nav-label { margin: 0 11px 7px; display: block; color: #9aa4b6; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.proncad-sidebar .sidebar-menu__link {
    min-height: 52px;
    padding: 8px 9px;
    gap: 10px;
    border-radius: 12px;
    color: #5b6780;
    text-transform: none;
}
.proncad-sidebar .sidebar-menu__link .icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: #697895; background: #f3f5f9; font-size: 17px; transition: .18s ease; }
.proncad-sidebar .sidebar-menu__link .text { min-width: 0; display: grid; flex: 1; gap: 1px; }
.proncad-sidebar .sidebar-menu__link .text strong { color: inherit; font-size: 11px; font-weight: 750; }
.proncad-sidebar .sidebar-menu__link .text small { overflow: hidden; color: #98a2b4; font-size: 8.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.proncad-nav-caret { color: #adb5c4; font-size: 11px; }
.proncad-sidebar .sidebar-menu__link:hover { color: #3e56ce; background: #f4f6ff; }
.proncad-sidebar .sidebar-menu__link:hover .icon { color: var(--proncad-blue); background: #e8edff; }
.proncad-sidebar .sidebar-menu__link.is-active { color: #fff !important; background: linear-gradient(135deg, #516ff0, #405bcc); box-shadow: 0 9px 21px rgba(69, 92, 211, .22); }
.proncad-sidebar .sidebar-menu__link.is-active .icon { color: #fff !important; background: rgba(255,255,255,.14); }
.proncad-sidebar .sidebar-menu__link.is-active .text small,
.proncad-sidebar .sidebar-menu__link.is-active .proncad-nav-caret { color: rgba(255,255,255,.7); }

.proncad-sidebar-support { margin-top: auto; padding: 13px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #e5e9f4; border-radius: 14px; background: linear-gradient(145deg, #f8f9ff, #f2f5ff); }
.proncad-sidebar-support > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; color: var(--proncad-blue); background: #fff; box-shadow: 0 5px 12px rgba(52,70,145,.09); font-size: 15px; }
.proncad-sidebar-support > div { min-width: 0; display: grid; gap: 2px; }
.proncad-sidebar-support strong { color: #34415a; font-size: 9.5px; font-weight: 800; }
.proncad-sidebar-support small { color: #818ca0; font-size: 8px; line-height: 1.45; }

.dashboard-main-wrapper { margin-inline-start: 276px; background: #f5f7fb; }
.proncad-topbar {
    min-height: 77px;
    padding-block: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 98;
    border-bottom: 1px solid #e7ebf2;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
}
.proncad-topbar-left,
.proncad-topbar-right { display: flex; align-items: center; gap: 10px; }
.proncad-topbar .toggle-btn { width: 38px; height: 38px; place-items: center; border: 1px solid #e1e5ed; border-radius: 11px; color: #56637a; background: #fff; font-size: 19px; }
.proncad-topbar-context { display: grid; gap: 1px; }
.proncad-topbar-context span { color: var(--proncad-blue); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.proncad-topbar-context strong { color: var(--proncad-ink); font-size: 15px; font-weight: 800; letter-spacing: -.015em; }
.proncad-topbar-quick { min-height: 38px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dce2f3; border-radius: 11px; color: #435ad1; background: #f7f8ff; font-size: 9.5px; font-weight: 750; }
.proncad-topbar-quick:hover { color: #fff; border-color: var(--proncad-blue); background: var(--proncad-blue); }
.proncad-topbar-quick i { font-size: 15px; }
.proncad-role-chip { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 10px; color: #627089; background: #f1f3f7; font-size: 8.5px; font-weight: 750; }
.proncad-role-chip i { color: var(--proncad-blue); font-size: 13px; }
.proncad-profile-trigger { min-height: 44px; padding: 4px 7px 4px 4px; display: flex; align-items: center; gap: 8px; border: 1px solid #e1e5ed; border-radius: 13px; color: #69758b; background: #fff; }
.proncad-profile-trigger:hover { border-color: #cbd4ed; box-shadow: 0 7px 18px rgba(33,47,82,.08); }
.proncad-profile-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #526ff0, #768df0); font-size: 9px; font-weight: 850; box-shadow: 0 5px 12px rgba(81,109,240,.22); }
.proncad-profile-copy { max-width: 140px; display: grid; text-align: left; gap: 0; }
.proncad-profile-copy strong,
.proncad-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proncad-profile-copy strong { color: #35415a; font-size: 9.5px; font-weight: 800; }
.proncad-profile-copy small { color: #8b95a8; font-size: 7.5px; }
.proncad-profile-trigger > i { font-size: 10px; }
.proncad-profile-menu { width: 245px; margin-top: 8px !important; padding: 8px; border: 1px solid #e2e6ee; border-radius: 15px; box-shadow: 0 18px 45px rgba(24,36,65,.16); }
.proncad-profile-summary { margin-bottom: 6px; padding: 10px; display: flex; align-items: center; gap: 9px; border-radius: 11px; background: #f6f8fc; }
.proncad-profile-summary > div { min-width: 0; display: grid; }
.proncad-profile-summary strong,
.proncad-profile-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proncad-profile-summary strong { color: #344058; font-size: 10px; }
.proncad-profile-summary small { color: #8792a5; font-size: 8px; }
.proncad-profile-menu > a,
.proncad-profile-menu > button { width: 100%; min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 9px; color: #58657c; background: transparent; font-size: 9.5px; font-weight: 700; text-align: left; }
.proncad-profile-menu > a:hover { color: var(--proncad-blue); background: #f3f5ff; }
.proncad-profile-menu > button:hover { color: #be4059; background: #fff2f5; }
.proncad-profile-menu i { font-size: 15px; }

.proncad-footer { min-height: 74px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #e5e9f1; border-bottom: 0; background: rgba(255,255,255,.86); }
.proncad-footer-brand { display: flex; align-items: center; gap: 9px; }
.proncad-footer-brand img { width: 31px; height: 31px; padding: 4px; border-radius: 9px; background: #edf1ff; }
.proncad-footer-brand span { display: grid; }
.proncad-footer-brand strong { color: var(--proncad-ink); font-size: 10px; font-weight: 850; letter-spacing: .07em; }
.proncad-footer-brand small { color: #8a94a7; font-size: 8px; }
.proncad-footer-meta { display: flex; align-items: center; gap: 15px; }
.proncad-footer-meta span { display: flex; align-items: center; gap: 6px; color: #298367; font-size: 8.5px; font-weight: 700; }
.proncad-footer-meta span i { width: 6px; height: 6px; border-radius: 50%; background: #35ad81; box-shadow: 0 0 0 4px #e4f6ef; }
.proncad-footer-meta p { margin: 0; color: #8c96a8; font-size: 8.5px; }

/* Loading and notifications */
.loading-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 12500;
    display: grid;
    place-items: center;
    background: rgba(24,34,57,.36);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}
.proncad-loading-card { min-width: 260px; padding: 19px 21px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; color: var(--proncad-ink); background: rgba(255,255,255,.96); box-shadow: 0 22px 65px rgba(20,31,58,.22); }
.proncad-loading-mark { width: 48px; height: 48px; flex: 0 0 48px; position: relative; display: grid; place-items: center; border-radius: 14px; background: #edf1ff; }
.proncad-loading-mark img { width: 31px; height: 31px; object-fit: contain; }
.proncad-loading-mark i { position: absolute; inset: -4px; border: 2px solid transparent; border-top-color: var(--proncad-blue); border-radius: 50%; animation: proncad-loader-spin .8s linear infinite; }
.proncad-loading-card > div { display: grid; gap: 2px; }
.proncad-loading-card strong { color: var(--proncad-ink); font-size: 12px; font-weight: 800; }
.proncad-loading-card .loading-text { margin: 0; color: var(--proncad-muted); font-size: 9px; letter-spacing: 0; }
.proncad-toast-region { position: fixed; top: 88px; right: 22px; z-index: 13000; width: min(390px, calc(100vw - 28px)); pointer-events: none; }
.alert-toast.proncad-toast { width: 100%; max-width: none; min-height: 78px; padding: 14px 42px 14px 14px; position: relative; top: auto; right: auto; display: grid; grid-template-columns: 39px minmax(0,1fr); align-items: center; gap: 11px; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 15px; color: var(--proncad-ink); background: #fff; text-align: left; box-shadow: 0 18px 48px rgba(20,32,62,.18); transform: translateX(28px) scale(.98); transition: opacity .2s ease, transform .2s ease, visibility .2s; pointer-events: auto; }
.alert-toast.proncad-toast.show { transform: translateX(0) scale(1); }
.proncad-toast-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #238464; background: #e8f7f1; font-size: 20px; }
.proncad-toast-copy { min-width: 0; display: grid; gap: 2px; }
.proncad-toast-copy strong { color: #27334a; font-size: 10.5px; font-weight: 800; }
.proncad-toast-copy p { margin: 0; color: #6f7a8f; font-size: 9px; line-height: 1.45; }
#alert-close { width: 27px; height: 27px; padding: 0; top: 9px; right: 9px; display: grid; place-items: center; border-radius: 8px; color: #8d97a8; font-size: 14px; }
#alert-close:hover { color: #48556c; background: #f1f3f7; transform: none; }
.proncad-toast-progress { position: absolute; inset: auto 0 0; height: 3px; background: #42aa83; transform-origin: left; }
.proncad-toast-progress.is-running { animation: proncad-toast-timer 5s linear forwards; }
.alert-toast.proncad-toast.error .proncad-toast-icon { color: #c4405a; background: #ffedf1; }
.alert-toast.proncad-toast.error .proncad-toast-progress { background: #d64b65; }
.alert-toast.proncad-toast.warning .proncad-toast-icon { color: #a86a19; background: #fff3dc; }
.alert-toast.proncad-toast.warning .proncad-toast-progress { background: #d89235; }
.alert-toast.proncad-toast.info .proncad-toast-icon { color: #3c5fd0; background: #edf1ff; }
.alert-toast.proncad-toast.info .proncad-toast-progress { background: #526ff0; }
@keyframes proncad-toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Content management and exam builder */
.proncad-management-page { display: grid; gap: 20px; }
.proncad-management-hero { min-height: 185px; padding: 30px 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; border-radius: 23px; color: #fff; background: radial-gradient(circle at 87% 12%, rgba(111,139,255,.35), transparent 26%), linear-gradient(135deg,#18213d,#334896 72%,#4e69dc); box-shadow: 0 20px 44px rgba(37,52,112,.16); }
.proncad-management-hero::after { content: ""; width: 190px; height: 190px; position: absolute; right: 6%; top: -120px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.proncad-management-hero--compact { min-height: 175px; }
.proncad-management-hero > div:first-child { max-width: 730px; position: relative; z-index: 1; }
.proncad-page-kicker { margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--proncad-blue); font-size: 8.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.proncad-management-hero .proncad-page-kicker { color: #bfcaff; }
.proncad-management-hero h1 { margin: 0 0 7px; color: #fff; font-size: clamp(24px,3vw,34px); font-weight: 820; letter-spacing: -.035em; }
.proncad-management-hero p { max-width: 660px; margin: 0; color: rgba(255,255,255,.72); font-size: 10.5px; line-height: 1.65; }
.proncad-back-link { margin-bottom: 13px; display: flex; align-items: center; gap: 6px; width: fit-content; color: rgba(255,255,255,.75); font-size: 9px; font-weight: 700; }
.proncad-back-link:hover { color: #fff; }
.proncad-action-button { min-height: 42px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; position: relative; z-index: 1; border: 1px solid transparent; border-radius: 11px; color: #fff; background: var(--proncad-blue); font-size: 10px; font-weight: 780; box-shadow: 0 9px 20px rgba(55,76,189,.23); }
.proncad-management-hero .proncad-action-button { color: #3047b7 !important; background: #fff; box-shadow: 0 11px 28px rgba(13,22,57,.18); }
.proncad-management-hero .proncad-action-button:hover { color: #fff !important; background: var(--proncad-orange); }
.proncad-action-button:hover { color: #fff; background: #3d56d4; }
.proncad-action-button i { font-size: 15px; }
.proncad-button-secondary { min-height: 42px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dde3ed; border-radius: 11px; color: #59667d !important; background: #fff; font-size: 10px; font-weight: 750; }
.proncad-button-secondary:hover { color: var(--proncad-blue) !important; border-color: #bdc8f5; background: #f5f7ff; }
.proncad-management-hero .proncad-button-secondary { color: #fff !important; border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.09); }
.proncad-management-hero .proncad-button-secondary:hover { color: #273caa !important; background: #fff; }
.proncad-builder-actions { max-width: none !important; display: flex; align-items: center; gap: 8px; }

.proncad-content-panel,
.proncad-question-editor { overflow: hidden; border: 1px solid #e4e8f0; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(30,43,74,.055); }
.proncad-content-panel > header,
.proncad-question-editor > header { min-height: 78px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0f5; background: linear-gradient(135deg,#fff,#fafbfe); }
.proncad-content-panel > header > div,
.proncad-question-editor > header > div:first-child { display: flex; align-items: center; gap: 11px; }
.proncad-panel-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; color: var(--proncad-blue); background: #edf1ff; font-size: 18px; }
.proncad-content-panel h2,
.proncad-question-editor h2 { margin: 0; color: var(--proncad-ink); font-size: 14px; font-weight: 800; letter-spacing: -.015em; }
.proncad-content-panel header p,
.proncad-question-editor header p { margin: 2px 0 0; color: #8a94a7; font-size: 8.5px; }
.proncad-content-grid { padding: 21px; }
.proncad-content-card { height: 100%; min-height: 300px; padding: 20px; display: flex; flex-direction: column; gap: 17px; border: 1px solid #e3e7ef; border-radius: 17px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.proncad-content-card:hover { transform: translateY(-3px); border-color: #ccd5f0; box-shadow: 0 15px 35px rgba(31,44,78,.10); }
.proncad-content-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proncad-content-card__icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: var(--proncad-blue); background: linear-gradient(135deg,#edf1ff,#e4eaff); font-size: 21px; }
.proncad-price-pill,
.proncad-pass-pill { padding: 6px 9px; border-radius: 999px; color: #16815e; background: #e8f7f1; font-size: 8.5px; font-weight: 800; }
.proncad-pass-pill { color: #435bd1; background: #edf1ff; }
.proncad-content-card__copy { display: grid; gap: 7px; }
.proncad-content-card__copy h3 { margin: 0; color: #263249; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.proncad-content-card__copy p { margin: 0; overflow: hidden; display: -webkit-box; color: #748095; font-size: 9.5px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.proncad-content-card__metrics { padding: 12px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.proncad-content-card__metrics span { display: inline-flex; align-items: center; gap: 5px; color: #7d889b; font-size: 8.5px; }
.proncad-content-card__metrics i { color: var(--proncad-blue); font-size: 14px; }
.proncad-content-card__metrics strong { color: #3a475f; font-size: 9px; }
.proncad-content-card__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proncad-content-card__actions > div { display: flex; gap: 5px; }
.proncad-content-card__actions button { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #e0e5ed; border-radius: 9px; color: #66738a; background: #fff; font-size: 14px; }
.proncad-content-card__actions .btn-edit:hover { color: var(--proncad-blue); border-color: #c5cff5; background: #f4f6ff; }
.proncad-content-card__actions .btn-delete:hover { color: #c43f58; border-color: #f0c6cf; background: #fff3f5; }
.proncad-content-card__actions > a { min-height: 34px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; color: #fff; background: #4058ce; font-size: 8.5px; font-weight: 750; }
.proncad-content-card__actions > a:hover { color: #fff; background: #3047b7; }
.proncad-content-empty { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #8290a5; text-align: center; }
.proncad-content-empty > i { width: 50px; height: 50px; margin-bottom: 5px; display: grid; place-items: center; border-radius: 15px; color: var(--proncad-blue); background: #edf1ff; font-size: 23px; }
.proncad-content-empty strong { color: #344159; font-size: 13px; }
.proncad-content-empty p { max-width: 340px; margin: 0; font-size: 9px; line-height: 1.55; }

/* Question bank and editor */
.proncad-question-bank { padding: 22px; display: grid; gap: 20px; }
.proncad-question-review-card { margin: 0 !important; overflow: hidden; border: 1px solid #dfe5ef !important; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(25,39,73,.065); }
.proncad-review-card-header { min-height: 67px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e6eaf1; background: linear-gradient(135deg,#f9faff,#fff); }
.proncad-review-card-identity { display: flex; align-items: center; gap: 10px; }
.proncad-review-question-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#4964dd,#704fd5); font-size: 12px; font-weight: 850; box-shadow: 0 6px 15px rgba(76,95,207,.22); }
.proncad-review-card-identity > div { display: grid; gap: 1px; }
.proncad-review-card-identity small { color: #8993a5; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.proncad-review-card-identity span { color: #344058; font-size: 10px; font-weight: 800; }
.proncad-question-card-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.proncad-question-card-action { min-height: 34px; padding: 7px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #dce3f2; border-radius: 9px; font-size: 9px; font-weight: 750; line-height: 1; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.proncad-question-card-action:hover { transform: translateY(-1px); }
.proncad-question-card-action.is-edit { color: #405bd4; background: #f6f8ff; }
.proncad-question-card-action.is-edit:hover { color: #314bc3; border-color: #bdc9f1; background: #edf1ff; }
.proncad-question-card-action.is-delete { color: #c44059; border-color: #f0cbd2; background: #fff5f7; }
.proncad-question-card-action.is-delete:hover { color: #a82f46; border-color: #e8aebb; background: #ffedf1; }
.proncad-question-card-action i { font-size: 13px; }
.proncad-review-prompt { padding: 21px 22px 19px; }
.proncad-review-type { width: fit-content; padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #4058c7; background: #edf1ff; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.proncad-review-type i { font-size: 12px; }
.proncad-review-prompt h3 { max-width: 930px; margin: 11px 0 0; color: #29354b; font-size: 14px; font-weight: 750; line-height: 1.65; }
.proncad-review-reference { max-width: 720px; margin: 16px 0 0; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 13px; background: #f3f5f9; }
.proncad-review-reference img { width: 100%; max-height: 390px; display: block; object-fit: contain; }
.proncad-review-response { padding: 18px 22px 22px; border-top: 1px solid #e8ecf2; background: #fafbfe; }
.proncad-review-section-heading { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proncad-review-section-heading > div { display: grid; gap: 1px; }
.proncad-review-section-heading span { color: #8a94a6; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.proncad-review-section-heading h4 { margin: 0; color: #344058; font-size: 11px; }
.proncad-review-section-heading > small { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #167657; background: #e8f7f1; font-size: 8px; font-weight: 750; }
.proncad-review-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.proncad-review-choice { min-height: 48px; padding: 10px 12px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid #e1e6ee; border-radius: 11px; color: #566176; background: #fff; font-size: 10px; line-height: 1.45; }
.proncad-review-choice.is-correct { color: #246b55; border-color: #9fd7c2; background: #f0fbf6; box-shadow: inset 3px 0 #25a678; }
.proncad-review-choice-marker { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #dce2ec; border-radius: 50%; color: #69758a; background: #f8f9fc; font-size: 8px; font-weight: 800; }
.proncad-review-choice-marker.is-square { border-radius: 7px; }
.proncad-review-choice.is-correct .proncad-review-choice-marker { color: #fff; border-color: #25a678; background: #25a678; }
.proncad-review-choice small { color: #21815f; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.proncad-review-pulldown { max-width: 760px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 12px; }
.proncad-review-pulldown label { display: grid; gap: 5px; color: #667187; font-size: 8px; font-weight: 750; }
.proncad-review-select { min-height: 45px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dbe1eb; border-radius: 10px; color: #354158; background: #fff; font-size: 10px; }
.proncad-review-answer-note { padding: 9px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #b8dfd0; border-radius: 10px; color: #20805f; background: #effaf5; }
.proncad-review-answer-note > i { font-size: 18px; }
.proncad-review-answer-note > span { display: grid; gap: 1px; color: #2f6655; font-size: 9px; font-weight: 750; }
.proncad-review-answer-note small { color: #648f80; font-size: 7px; text-transform: uppercase; letter-spacing: .05em; }
.proncad-review-fill { max-width: 820px; display: grid; gap: 12px; }
.proncad-review-text-field { min-height: 48px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dce2ec; border-radius: 10px; color: #98a1b0; background: #fff; font-size: 9.5px; }
.proncad-review-text-field i { color: #6277d8; font-size: 17px; }
.proncad-review-accepted { display: grid; gap: 6px; }
.proncad-review-accepted > small { color: #788398; font-size: 8px; font-weight: 750; }
.proncad-review-accepted > div { display: flex; flex-wrap: wrap; gap: 6px; }
.proncad-review-accepted > div span { padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; color: #21775b; background: #eaf8f2; font-size: 8.5px; font-weight: 700; }
.proncad-review-match-list { max-width: 900px; display: grid; gap: 7px; }
.proncad-review-match-labels,.proncad-review-match-row { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); align-items: center; gap: 8px; }
.proncad-review-match-labels span { padding: 0 10px; color: #8993a5; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.proncad-review-match-row > div { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe4ed; border-radius: 10px; color: #4d596e; background: #fff; font-size: 9.5px; }
.proncad-review-match-row > div small,.proncad-review-match-row > div > i { width: 24px; height: 24px; display: grid; flex: 0 0 24px; place-items: center; border-radius: 7px; color: #536bd2; background: #edf1ff; font-size: 8px; font-weight: 800; }
.proncad-review-match-row > div.is-target { border-color: #c9d3f6; background: #f7f8ff; }
.proncad-review-match-connector { display: grid; place-items: center; color: #7382bf; }
.proncad-review-visual-layout,.proncad-review-enhanced { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,27%); gap: 14px; align-items: start; }
.proncad-review-diagram,.proncad-review-enhanced-workspace { overflow: hidden; border: 1px solid #dce2eb; border-radius: 13px; background: #fff; box-shadow: 0 7px 19px rgba(32,45,76,.06); }
.proncad-review-diagram canvas { width: 100%; height: auto; display: block; }
.proncad-review-visual-key,.proncad-review-enhanced-bank { padding: 14px; display: grid; gap: 8px; border: 1px solid #dfe4ed; border-radius: 13px; background: #fff; }
.proncad-review-visual-key > span,.proncad-review-enhanced-bank > span { display: flex; align-items: center; gap: 6px; color: #4d64ce; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.proncad-review-visual-key h5,.proncad-review-enhanced-bank h5 { margin: 0; color: #344058; font-size: 11px; }
.proncad-review-visual-key > div,.proncad-review-enhanced-bank > div { display: grid; gap: 6px; }
.proncad-review-visual-key > div > span { padding: 8px; display: flex; align-items: center; gap: 7px; border-radius: 9px; color: #536176; background: #f6f8fb; font-size: 8.5px; }
.proncad-review-visual-key b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #21a677; font-size: 8px; }
.proncad-review-visual-key > small,.proncad-review-enhanced-bank > small { color: #8b95a7; font-size: 7.5px; line-height: 1.5; }
.proncad-review-enhanced-instruction { min-height: 42px; padding: 9px 12px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #e3e7ee; color: #657187; background: #fff; font-size: 8.5px; }
.proncad-review-enhanced-instruction i { color: #5269d4; font-size: 15px; }
.proncad-review-enhanced-diagram { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #eef1f6; }
.proncad-review-enhanced-diagram > img { width: 100%; height: 100%; display: block; object-fit: fill; }
.proncad-review-enhanced-zone { min-width: 45px; min-height: 27px; padding: 4px; position: absolute; display: flex; align-items: center; justify-content: center; border: 2px solid #4f68db; border-radius: 7px; color: #2d438e; background: rgba(239,242,255,.92); box-shadow: 0 4px 12px rgba(37,52,112,.18); }
.proncad-review-enhanced-zone small { width: 20px; height: 20px; position: absolute; top: -9px; left: -9px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #4f68db; font-size: 7px; font-weight: 850; }
.proncad-review-enhanced-zone span { overflow: hidden; font-size: clamp(6px,.75vw,9px); font-weight: 800; text-align: center; text-overflow: ellipsis; }
.proncad-review-enhanced-bank > div > div { min-height: 37px; padding: 7px 8px; display: grid; grid-template-columns: 22px minmax(0,1fr) 15px; align-items: center; gap: 7px; border: 1px solid #e0e5ed; border-radius: 9px; background: #fafbfe; }
.proncad-review-enhanced-bank b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #536bd2; background: #e9edff; font-size: 8px; }
.proncad-review-enhanced-bank > div span { color: #4d596e; font-size: 8px; font-weight: 700; }
.proncad-review-enhanced-bank > div i { color: #25a678; font-size: 13px; }
.proncad-review-explanation { padding: 14px 22px 17px; display: flex; gap: 9px; border-top: 1px solid #e7ebf1; background: #fffdf6; }
.proncad-review-explanation > i { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 9px; color: #9d7215; background: #fff2c9; font-size: 15px; }
.proncad-review-explanation > div { display: grid; gap: 2px; }
.proncad-review-explanation span { color: #8a681f; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.proncad-review-explanation p { margin: 0; color: #625a46; font-size: 9px; line-height: 1.6; }
.proncad-review-unsupported { padding: 18px; display: flex; align-items: center; gap: 7px; border: 1px dashed #e1c6cb; border-radius: 11px; color: #a64b5c; background: #fff7f8; font-size: 9px; }
.proncad-editor-tools { display: flex; align-items: center; gap: 6px; }
.proncad-inline-button { min-height: 35px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dde3ec; border-radius: 9px; color: #5c697f; background: #fff; font-size: 9px; font-weight: 700; }
.proncad-inline-button:hover { color: var(--proncad-blue); border-color: #c5cff2; background: #f5f7ff; }
.proncad-inline-button.is-danger:hover { color: #c44059; border-color: #efc7d0; background: #fff4f6; }
.proncad-editor-empty { min-height: 390px; padding: 35px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.proncad-editor-empty[hidden],
.proncad-editor-form[hidden] { display: none !important; }
.proncad-editor-empty > span { width: 62px; height: 62px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 19px; color: var(--proncad-blue); background: #edf1ff; font-size: 27px; box-shadow: 0 10px 28px rgba(62,83,189,.10); }
.proncad-editor-empty h3 { margin: 0 0 6px; color: #29364d; font-size: 16px; font-weight: 800; }
.proncad-editor-empty p { max-width: 420px; margin: 0 0 18px; color: #7e899c; font-size: 9.5px; line-height: 1.6; }
.proncad-editor-form { position: relative; padding: 22px; }
.proncad-editor-form #questionFormContainer { display: grid; gap: 17px; }
.proncad-editor-form .form-control,
.proncad-editor-form .form-select { min-height: 45px; border: 1px solid #dfe4ed; border-radius: 11px; color: #2f3b52; background: #fafbfc; font-size: 10.5px; }
.proncad-editor-form .form-control:focus,
.proncad-editor-form .form-select:focus { border-color: #90a1ef; background: #fff; box-shadow: 0 0 0 3px rgba(81,109,240,.11); }
.proncad-editor-form textarea.form-control { min-height: 110px; }
.proncad-unsaved-indicator { margin-top: 15px; align-items: center; gap: 5px; color: #c07424; font-size: 8.5px; }
.proncad-unsaved-indicator:not([hidden]) { display: flex !important; }

body.proncad-modal-open { overflow: hidden; }
.proncad-question-type-modal { position: fixed; inset: 0; z-index: 12000; padding: 22px; display: grid; place-items: center; visibility: hidden; opacity: 0; background: rgba(20,29,52,.58); backdrop-filter: blur(8px); transition: opacity .18s ease, visibility .18s; }
.proncad-question-type-modal.is-open { visibility: visible; opacity: 1; }
.proncad-question-type-dialog { width: min(760px,100%); max-height: calc(100vh - 44px); overflow: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: #fff; box-shadow: 0 28px 85px rgba(15,25,52,.30); transform: translateY(12px) scale(.985); transition: transform .2s ease; }
.proncad-question-type-modal.is-open .proncad-question-type-dialog { transform: translateY(0) scale(1); }
.proncad-question-type-dialog > header { padding: 25px 26px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f5; background: linear-gradient(135deg,#fff,#f8f9ff); }
.proncad-question-type-dialog > header > div { max-width: 580px; }
.proncad-question-type-dialog h2 { margin: 0 0 5px; color: #202d44; font-size: 20px; font-weight: 820; letter-spacing: -.025em; }
.proncad-question-type-dialog header p { margin: 0; color: #7d899d; font-size: 9.5px; line-height: 1.55; }
.question-type-close { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #dfe4ed; border-radius: 10px; color: #6b778c; background: #fff; font-size: 16px; }
.question-type-close:hover { color: #c23e57; border-color: #edc5ce; background: #fff4f6; }
.proncad-question-type-grid { padding: 20px 26px 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.proncad-question-type-grid .select-type { min-height: 76px; padding: 13px; display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; align-items: center; gap: 11px; border: 1px solid #e1e6ef; border-radius: 14px; color: #66738a; background: #fff; text-align: left; transition: .17s ease; }
.proncad-question-type-grid .select-type:hover,
.proncad-question-type-grid .select-type:focus-visible { border-color: #aebcf3; background: #f6f8ff; box-shadow: 0 9px 24px rgba(45,63,137,.09); transform: translateY(-2px); outline: none; }
.proncad-question-type-grid .select-type > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--proncad-blue); background: #edf1ff; font-size: 19px; }
.proncad-question-type-grid .select-type > div { min-width: 0; display: grid; gap: 2px; }
.proncad-question-type-grid .select-type strong { color: #334058; font-size: 10.5px; font-weight: 800; }
.proncad-question-type-grid .select-type small { color: #8791a4; font-size: 8px; line-height: 1.4; }
.proncad-question-type-grid .select-type > i { color: #a5aec0; font-size: 13px; }
.proncad-question-type-dialog > footer { min-height: 66px; padding: 13px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #edf0f5; background: #fafbfc; }
.proncad-question-type-dialog > footer span { display: flex; align-items: center; gap: 6px; color: #7e899c; font-size: 8.5px; }
.proncad-question-type-dialog > footer span i { color: var(--proncad-blue); font-size: 14px; }

@media (max-width: 1199px) {
    .dashboard-main-wrapper { margin-inline-start: 0; }
    .proncad-sidebar .sidebar-close-btn { display: grid !important; }
}

@media (max-width: 767px) {
    .proncad-topbar { min-height: 65px; }
    .proncad-profile-copy,
    .proncad-role-chip,
    .proncad-topbar-quick span { display: none; }
    .proncad-topbar-quick { width: 38px; padding: 0; justify-content: center; }
    .proncad-management-hero { min-height: 220px; padding: 24px 20px; align-items: flex-start; flex-direction: column; }
    .proncad-management-hero .proncad-action-button,
    .proncad-builder-actions { width: 100%; }
    .proncad-builder-actions .btn { flex: 1; }
    .proncad-content-panel > header,
    .proncad-question-editor > header { align-items: flex-start; flex-direction: column; }
    .proncad-editor-tools { width: 100%; }
    .proncad-editor-tools button { flex: 1; justify-content: center; }
    .proncad-content-grid,
    .proncad-question-bank,
    .proncad-editor-form { padding: 14px; }
    .proncad-question-type-modal { padding: 10px; align-items: end; }
    .proncad-question-type-dialog { max-height: calc(100vh - 20px); border-radius: 20px 20px 12px 12px; }
    .proncad-question-type-grid { padding: 14px 16px 18px; grid-template-columns: 1fr; }
    .proncad-question-type-dialog > header { padding: 20px 17px 16px; }
    .proncad-question-type-dialog > footer { padding: 12px 17px; align-items: stretch; flex-direction: column; }
    .proncad-footer { align-items: flex-start; flex-direction: column; }
    .proncad-footer-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
    .proncad-toast-region { top: 73px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .proncad-loading-mark i,
    .proncad-toast-progress.is-running { animation: none !important; }
    .proncad-content-card,
    .proncad-question-type-dialog,
    .proncad-question-type-grid .select-type { transition: none !important; transform: none !important; }
}

/* Authentication and student onboarding */
body.proncad-auth-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--proncad-ink);
    background: #f7f9fd;
}

.proncad-auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(420px, .92fr) minmax(560px, 1.08fr);
}

.proncad-auth-story {
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(32px, 4.5vw, 66px);
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 75% 18%, rgba(104, 133, 255, .35), transparent 28%),
        radial-gradient(circle at 15% 88%, rgba(255, 122, 69, .2), transparent 27%),
        linear-gradient(145deg, #151d36 0%, #23326c 58%, #415fdb 100%);
}

.proncad-auth-story::after {
    content: "";
    width: 360px;
    height: 360px;
    position: absolute;
    right: -185px;
    bottom: -145px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02);
}

.proncad-auth-brand {
    width: fit-content;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
}
.proncad-auth-brand img { width: 114px; padding: 8px 10px; border-radius: 12px; background: #fff; }
.proncad-auth-brand span { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.2); color: #dce4ff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.proncad-auth-story-copy { max-width: 650px; position: relative; z-index: 2; margin: clamp(45px, 8vh, 100px) 0; }
.proncad-auth-kicker { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dce4ff; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .075em; }
.proncad-auth-story h1 { max-width: 630px; margin: 20px 0 15px; color: #fff; font-size: clamp(36px, 4.1vw, 61px); line-height: 1.04; letter-spacing: -.045em; }
.proncad-auth-story-copy > p { max-width: 570px; margin: 0; color: #cbd5f4; font-size: 14px; line-height: 1.75; }

.proncad-auth-steps { max-width: 570px; margin: 35px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; }
.proncad-auth-steps li { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(5px); }
.proncad-auth-steps li > span { width: 29px; height: 29px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: rgba(126,151,255,.28); font-size: 9px; font-weight: 800; }
.proncad-auth-steps strong { display: block; color: #fff; font-size: 11px; }
.proncad-auth-steps small { display: block; margin-top: 4px; color: #bfcaf0; font-size: 9px; line-height: 1.45; }

.proncad-auth-proof { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 19px; color: #d8e0f8; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.proncad-auth-proof span { display: inline-flex; align-items: center; gap: 6px; }
.proncad-auth-proof i { color: #9eb0ff; font-size: 15px; }
.proncad-auth-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.proncad-auth-orb.orb-one { width: 14px; height: 14px; top: 19%; right: 15%; background: #ff8c61; box-shadow: 0 0 28px rgba(255,140,97,.65); }
.proncad-auth-orb.orb-two { width: 9px; height: 9px; bottom: 21%; left: 12%; background: #8da2ff; box-shadow: 0 0 25px rgba(141,162,255,.75); }

.proncad-auth-panel { min-height: 100vh; min-height: 100svh; padding: 44px clamp(27px, 6vw, 90px) 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f8f9fc; }
.proncad-auth-app { width: 100%; max-width: 650px; }
.proncad-auth-card { width: 100%; padding: clamp(27px, 3.6vw, 46px); border: 1px solid #e4e8f0; border-radius: 25px; background: #fff; box-shadow: 0 24px 65px rgba(31, 46, 84, .09); }
.proncad-auth-mobile-brand { display: none; }
.proncad-auth-heading > span { display: block; margin-bottom: 5px; color: var(--proncad-blue); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.proncad-auth-heading h2 { margin: 0; color: var(--proncad-ink); font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -.035em; }
.proncad-auth-heading p { margin: 8px 0 0; color: var(--proncad-muted); font-size: 11px; line-height: 1.6; }

.proncad-auth-tabs { margin: 25px 0 21px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 13px; background: #f0f3f8; }
.proncad-auth-tabs button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; color: #6a7589; background: transparent; font-size: 11px; font-weight: 750; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.proncad-auth-tabs button.is-active { color: var(--proncad-blue); background: #fff; box-shadow: 0 5px 15px rgba(39,52,91,.08); }
.proncad-auth-tabs i { font-size: 15px; }

.proncad-auth-form[hidden] { display: none !important; }
.proncad-auth-form { display: grid; gap: 17px; }
.proncad-auth-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.proncad-auth-field { min-width: 0; display: grid; gap: 7px; }
.proncad-auth-field--wide { grid-column: 1 / -1; }
.proncad-auth-field label { margin: 0; color: #344057; font-size: 10px; font-weight: 750; }
.proncad-auth-field > div:not(.proncad-auth-label-row) { min-height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe4ed; border-radius: 11px; background: #fbfcfe; transition: border .15s ease, box-shadow .15s ease, background .15s ease; }
.proncad-auth-field > div:focus-within { border-color: #8ca0fa; background: #fff; box-shadow: 0 0 0 3px rgba(79,109,245,.11); }
.proncad-auth-field > div > i { margin-left: 13px; color: #8993a7; font-size: 16px; }
.proncad-auth-field input { min-width: 0; height: 44px; flex: 1; border: 0; outline: 0; color: var(--proncad-ink); background: transparent; font-size: 11px; }
.proncad-auth-field input::placeholder { color: #a2aabb; }
.proncad-auth-field [data-password-toggle] { width: 39px; height: 44px; flex: 0 0 39px; display: grid; place-items: center; border: 0; color: #7b8699; background: transparent; font-size: 16px; }

.proncad-auth-submit { min-height: 46px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--proncad-blue), #3e59db); box-shadow: 0 12px 25px rgba(79,109,245,.23); font-size: 11px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.proncad-auth-submit:hover:not(:disabled) { color: #fff; transform: translateY(-1px); box-shadow: 0 15px 29px rgba(79,109,245,.29); }
.proncad-auth-submit:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.proncad-auth-switch { margin: -1px 0 0; color: var(--proncad-muted); text-align: center; font-size: 10px; }
.proncad-auth-switch button { padding: 0; border: 0; color: var(--proncad-blue); background: transparent; font-weight: 750; }
.proncad-auth-legal { max-width: 590px; margin: 18px auto 0; color: #949daf; text-align: center; font-size: 9px; line-height: 1.5; }

.proncad-auth-form-error { margin: 0 0 17px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #f1ccd3; border-radius: 10px; color: #aa4053; background: #fff5f7; font-size: 10px; line-height: 1.5; }
.proncad-auth-form-error[hidden] { display: none; }
.proncad-auth-form-error i { margin-top: 1px; font-size: 15px; }

.proncad-batch-picker { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.proncad-batch-picker legend { margin: 0 0 10px; display: grid; gap: 3px; }
.proncad-batch-picker legend span { color: #344057; font-size: 11px; font-weight: 800; }
.proncad-batch-picker legend small { color: var(--proncad-muted); font-size: 9px; line-height: 1.5; }
.proncad-auth-batch-list { max-height: 207px; padding-right: 4px; display: grid; gap: 7px; overflow-y: auto; scrollbar-width: thin; }
.proncad-auth-batch-option { min-width: 0; margin: 0; padding: 11px 12px; position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid #e0e5ee; border-radius: 11px; background: #fff; cursor: pointer; transition: border .15s ease, background .15s ease, box-shadow .15s ease; }
.proncad-auth-batch-option:hover:not(.is-full),
.proncad-auth-batch-option:has(input:checked) { border-color: #9cadf8; background: #f8f9ff; box-shadow: 0 5px 16px rgba(79,109,245,.08); }
.proncad-auth-batch-option.is-full { opacity: .64; cursor: not-allowed; background: #f7f8fa; }
.proncad-auth-batch-option input { position: absolute; opacity: 0; pointer-events: none; }
.proncad-auth-radio { width: 17px; height: 17px; display: grid; place-items: center; border: 1.5px solid #c7cfdd; border-radius: 50%; background: #fff; }
.proncad-auth-radio i { width: 7px; height: 7px; border-radius: 50%; background: var(--proncad-blue); transform: scale(0); transition: transform .14s ease; }
.proncad-auth-batch-option input:checked + .proncad-auth-radio { border-color: var(--proncad-blue); }
.proncad-auth-batch-option input:checked + .proncad-auth-radio i { transform: scale(1); }
.proncad-auth-batch-copy { min-width: 0; display: grid; gap: 3px; }
.proncad-auth-batch-copy strong { overflow: hidden; color: var(--proncad-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.proncad-auth-batch-copy small { display: inline-flex; align-items: center; gap: 4px; color: var(--proncad-muted); font-size: 8px; }
.proncad-auth-batch-space { padding: 5px 7px; border-radius: 999px; color: #16775a; background: #e9f8f2; font-size: 8px; font-weight: 800; white-space: nowrap; }
.proncad-auth-batch-space.is-full { color: #a44b5c; background: #f9e9ed; }
.proncad-auth-batch-empty { min-height: 75px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px dashed #d6dce7; border-radius: 11px; background: #fafbfc; }
.proncad-auth-batch-empty > i { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 10px; color: var(--proncad-blue); background: #eaf0ff; font-size: 17px; }
.proncad-auth-batch-empty div { display: grid; gap: 2px; }
.proncad-auth-batch-empty strong { color: var(--proncad-ink); font-size: 10px; }
.proncad-auth-batch-empty span { color: var(--proncad-muted); font-size: 9px; }
.proncad-auth-batch-skeleton { height: 59px; padding: 12px; display: grid; grid-template-columns: 18px 1fr 65px; align-items: center; gap: 10px; border: 1px solid #e8ebf1; border-radius: 11px; }
.proncad-auth-batch-skeleton > * { display: block; border-radius: 6px; background: linear-gradient(100deg, #edf0f6 25%, #fafbfc 42%, #edf0f6 60%); background-size: 220% 100%; animation: proncad-shimmer 1.35s ease-in-out infinite; }
.proncad-auth-batch-skeleton i { width: 17px; height: 17px; border-radius: 50%; }
.proncad-auth-batch-skeleton span { width: 70%; height: 10px; }
.proncad-auth-batch-skeleton b { height: 21px; border-radius: 99px; }

@media (max-width: 1080px) {
    .proncad-auth-shell { grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr); }
    .proncad-auth-story { padding: 38px; }
    .proncad-auth-steps { grid-template-columns: 1fr; }
    .proncad-auth-steps li { display: flex; align-items: center; gap: 10px; }
    .proncad-auth-steps li > span { margin: 0; flex: 0 0 29px; }
}

@media (max-width: 820px) {
    .proncad-auth-shell { display: block; }
    .proncad-auth-story { min-height: 250px; padding: 28px; position: relative; }
    .proncad-auth-story-copy { margin: 38px 0 5px; }
    .proncad-auth-story h1 { max-width: 620px; font-size: clamp(31px, 8vw, 48px); }
    .proncad-auth-story-copy > p { max-width: 650px; }
    .proncad-auth-steps,
    .proncad-auth-proof { display: none; }
    .proncad-auth-panel { min-height: 0; padding: 28px 20px 24px; }
}

@media (max-width: 560px) {
    .proncad-auth-story { min-height: 205px; padding: 22px; }
    .proncad-auth-brand img { width: 96px; }
    .proncad-auth-brand span { display: none; }
    .proncad-auth-story-copy { margin: 26px 0 0; }
    .proncad-auth-story-copy > p { display: none; }
    .proncad-auth-story h1 { margin-bottom: 0; font-size: 31px; }
    .proncad-auth-panel { padding: 18px 12px 21px; }
    .proncad-auth-card { padding: 24px 17px; border-radius: 19px; }
    .proncad-auth-fields-grid { grid-template-columns: 1fr; }
    .proncad-auth-field--wide { grid-column: auto; }
    .proncad-auth-batch-option { grid-template-columns: 18px minmax(0, 1fr); }
    .proncad-auth-batch-space { grid-column: 2; width: fit-content; }
}

/* Student cohort onboarding */
.proncad-cohort-card,
.proncad-cohort-onboarding {
    border: 1px solid var(--proncad-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(30,44,78,.045);
}
.proncad-cohort-card { padding: 18px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.proncad-cohort-card.is-joined { border-color: #dce5ff; background: linear-gradient(110deg, #fff, #f7f9ff); }
.proncad-cohort-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; color: var(--proncad-blue); background: #eaf0ff; font-size: 20px; }
.proncad-cohort-copy { min-width: 0; }
.proncad-cohort-copy > small,
.proncad-cohort-onboarding-heading > div > small { display: block; margin-bottom: 2px; color: var(--proncad-blue); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.proncad-cohort-copy h4,
.proncad-cohort-onboarding-heading h4 { margin: 0; color: var(--proncad-ink); font-size: 15px; }
.proncad-cohort-copy p,
.proncad-cohort-onboarding-heading p { margin: 4px 0 0; color: var(--proncad-muted); font-size: 10px; line-height: 1.55; }
.proncad-cohort-copy p i { margin-right: 4px; }
.proncad-cohort-copy p span { margin: 0 4px; color: #b1b9c7; }
.proncad-cohort-status { padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; color: #14795a; background: #e8f8f1; font-size: 9px; font-weight: 800; white-space: nowrap; }
.proncad-cohort-status.is-pending { color: #8a6470; background: #f5edf0; }
.proncad-cohort-onboarding { padding: 20px; }
.proncad-cohort-onboarding-heading { display: flex; align-items: flex-start; gap: 13px; }
.proncad-cohort-options { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.proncad-cohort-option { min-width: 0; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid #e3e7ef; border-radius: 12px; background: #fbfcfe; }
.proncad-cohort-option > div { min-width: 0; display: grid; gap: 3px; }
.proncad-cohort-option strong { overflow: hidden; color: var(--proncad-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.proncad-cohort-option small { color: var(--proncad-muted); font-size: 8px; }
.proncad-cohort-option > span { height: fit-content; padding: 4px 6px; border-radius: 99px; color: #15795b; background: #e8f8f1; font-size: 8px; font-weight: 750; white-space: nowrap; }
.proncad-cohort-option button { min-height: 31px; grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 8px; color: var(--proncad-blue); background: #edf1ff; font-size: 9px; font-weight: 800; }
.proncad-cohort-option button:hover:not(:disabled) { color: #fff; background: var(--proncad-blue); }
.proncad-cohort-option.is-full { opacity: .64; }
.proncad-cohort-option.is-full > span { color: #a04d5c; background: #f8e9ed; }
.proncad-cohort-option button:disabled { color: #7f899a; background: #eceff3; cursor: not-allowed; }

@media (max-width: 1100px) {
    .proncad-cohort-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .proncad-cohort-card { grid-template-columns: 44px minmax(0, 1fr); }
    .proncad-cohort-status { width: fit-content; grid-column: 2; }
    .proncad-cohort-options { grid-template-columns: 1fr; }
}

/* Shared admin data tables */
.proncad-data-card {
    overflow: hidden;
    border: 1px solid var(--proncad-line) !important;
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 44, 78, .055);
}

.proncad-data-header {
    padding: 23px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #edf0f5;
}

.proncad-data-header > div { min-width: 0; }
.proncad-data-header > div > span { display: block; margin-bottom: 3px; color: var(--proncad-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.proncad-data-header h4 { margin: 0; color: var(--proncad-ink); font-size: 18px; letter-spacing: -.01em; }
.proncad-data-header p { margin: 5px 0 0; color: var(--proncad-muted); font-size: 12px; }
.proncad-action-button { min-height: 42px; padding: 10px 17px; display: inline-flex; align-items: center; gap: 7px; border-radius: 12px; white-space: nowrap; font-size: 12px; font-weight: 750; }
.proncad-action-button i { font-size: 16px; }

.proncad-data-table { width: 100%; min-width: 760px; margin: 0 !important; border-collapse: separate; border-spacing: 0; }
.proncad-data-table thead th { padding: 13px 21px !important; border: 0 !important; border-bottom: 1px solid #e9edf4 !important; color: #778198 !important; background: #fafbfc; font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.proncad-data-table tbody td { padding: 15px 21px !important; vertical-align: middle; border: 0 !important; border-bottom: 1px solid #eef1f5 !important; color: #47536a; font-size: 12px; }
.proncad-data-table tbody tr { transition: background .16s ease; }
.proncad-data-table tbody tr:hover { background: #fafbff; }
.proncad-data-table tbody tr:last-child td { border-bottom: 0 !important; }

.proncad-person-cell,
.proncad-batch-cell { min-width: 180px; display: flex; align-items: center; gap: 11px; }
.proncad-person-cell > span,
.proncad-batch-cell > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #516df0, #7890f7); font-size: 11px; font-weight: 800; box-shadow: 0 6px 14px rgba(81,109,240,.2); }
.proncad-batch-cell > span { color: var(--proncad-blue); background: #edf1ff; box-shadow: none; font-size: 17px; }
.proncad-person-cell > div,
.proncad-batch-cell > div,
.proncad-schedule-cell { min-width: 0; display: grid; gap: 2px; }
.proncad-person-cell strong,
.proncad-batch-cell strong,
.proncad-schedule-cell strong { overflow: hidden; color: var(--proncad-ink); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.proncad-person-cell small,
.proncad-batch-cell small,
.proncad-schedule-cell small { color: var(--proncad-muted); font-size: 10px; }

.proncad-role-pill,
.proncad-batch-pill,
.proncad-status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: #425bd0; background: #edf1ff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.proncad-batch-pill.is-unassigned { color: #7a8498; background: #f1f3f6; }
.proncad-status-pill.is-ongoing,
.proncad-status-pill.is-open,
.proncad-status-pill.is-active { color: #16835f; background: #e9f8f2; }
.proncad-status-pill.is-closed { color: #8b5260; background: #f8ecef; }
.proncad-status-pill > i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.proncad-row-actions { display: flex; align-items: center; gap: 6px; }
.proncad-row-actions button,
.proncad-row-actions a { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e0e5ef; border-radius: 9px; color: #536078; background: #fff; font-size: 10px; font-weight: 700; }
.proncad-row-actions button:hover,
.proncad-row-actions a:hover { color: var(--proncad-blue); border-color: #bec9fb; background: #f6f8ff; }
.proncad-row-actions .is-danger:hover { color: #c53d58; border-color: #f0c7d0; background: #fff6f8; }
.proncad-row-actions .is-primary { color: var(--proncad-blue); border-color: #ced7ff; background: #f5f7ff; }
.proncad-row-actions .is-primary:hover { color: #fff; border-color: var(--proncad-blue); background: var(--proncad-blue); }
.proncad-row-actions i { font-size: 14px; }

.proncad-access-summary { width: fit-content; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.proncad-access-summary.is-ready { color: #16835f; background: #e9f8f2; }
.proncad-access-summary.is-attention { color: #a26732; background: #fff4df; }

.proncad-enrollment { width: 135px; display: grid; gap: 7px; }
.proncad-enrollment > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.proncad-enrollment strong { color: var(--proncad-ink); font-size: 11px; }
.proncad-enrollment span { color: var(--proncad-muted); font-size: 9px; }
.proncad-enrollment > i { height: 5px; overflow: hidden; border-radius: 99px; background: #e9edf5; }
.proncad-enrollment > i > b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #526ff0, #86a0fa); }

.proncad-table-empty { min-height: 210px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--proncad-muted); text-align: center; }
.proncad-table-empty > i { width: 45px; height: 45px; margin-bottom: 5px; display: grid; place-items: center; border-radius: 14px; color: var(--proncad-blue); background: #edf1ff; font-size: 21px; }
.proncad-table-empty strong { color: var(--proncad-ink); font-size: 14px; }
.proncad-table-empty span { font-size: 11px; }

.proncad-table-search { margin: 17px 22px 3px; max-width: 500px; height: 42px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe4ee; border-radius: 11px; background: #fff; }
.proncad-table-search > i { margin-left: 13px; color: #8791a6; font-size: 16px; }
.proncad-table-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--proncad-ink); background: transparent; font-size: 11px; }
.proncad-table-search button { height: 32px; margin-right: 5px; padding: 0 13px; border: 0; border-radius: 8px; color: #fff; background: var(--proncad-blue); font-size: 10px; font-weight: 750; }
.proncad-table-footer { padding: 15px 21px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #edf0f5; color: var(--proncad-muted); font-size: 10px; }
.proncad-table-footer > div { display: flex; gap: 7px; }
.proncad-page-button { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dfe4ee; border-radius: 9px; color: #536078; background: #fff; font-size: 10px; font-weight: 700; }
.proncad-page-button:hover:not(:disabled) { color: var(--proncad-blue); border-color: #bec9fb; background: #f6f8ff; }
.proncad-page-button:disabled { opacity: .45; cursor: not-allowed; }

/* Shared application modals */
.modal.proncad-form-modal,
#global-modal.modal,
.modal:has(.modal-content) { inset: 0; z-index: 11500; padding: 22px; align-items: center; justify-content: center; overflow-y: auto; background: rgba(20, 29, 52, .55); backdrop-filter: blur(7px); }
.modal .modal-content { width: min(620px, 100%); max-width: 620px; margin: auto; padding: 0 !important; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 21px !important; background: #fff; box-shadow: 0 28px 80px rgba(17, 27, 52, .25); animation: proncad-modal-in .2s ease-out; }
.modal .modal-header { padding: 22px 23px !important; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f5 !important; background: linear-gradient(135deg, #fff, #f8f9ff); }
.modal .modal-title { margin: 0; color: var(--proncad-ink); font-size: 18px !important; font-weight: 800; letter-spacing: -.02em; }
.modal .close-btn { position: static !important; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid #e0e5ef !important; border-radius: 10px; color: #69758b; background: #fff; font-size: 17px; }
.modal .close-btn:hover { color: #c53d58; border-color: #f0c7d0 !important; background: #fff5f7; }
.modal .close-btn:empty::before { content: \"×\"; }
.modal .modal-body { padding: 22px 23px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.modal .modal-body > label { margin-bottom: -11px; grid-column: 1 / -1; color: #37435a; font-size: 11px; font-weight: 750; }
.modal .modal-body > input,
.modal .modal-body > select,
.modal .modal-body > textarea { grid-column: 1 / -1; margin-bottom: 1px; }
.modal .modal-body textarea { min-height: 105px; resize: vertical; }
.modal .form-control,
.modal .form-select { min-height: 45px; padding: 10px 12px; border: 1px solid #dfe4ee; border-radius: 11px; color: var(--proncad-ink); background-color: #fbfcfe; font-size: 12px; }
.modal .form-control:focus,
.modal .form-select:focus { border-color: #8ea0f7; background: #fff; box-shadow: 0 0 0 3px rgba(81,109,240,.11); }
.proncad-modal-heading { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.proncad-modal-heading > span { width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center; border-radius: 12px; color: var(--proncad-blue); background: #eaf0ff; font-size: 19px; }
.proncad-modal-heading small { display: block; margin-bottom: 2px; color: var(--proncad-blue); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.proncad-modal-heading p { margin: 4px 0 0; color: var(--proncad-muted); font-size: 10px; }
.proncad-field { display: grid; gap: 7px; }
.proncad-field--wide { grid-column: 1 / -1; }
.proncad-field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #37435a; font-size: 11px; font-weight: 750; }
.proncad-field label small { color: var(--proncad-muted); font-size: 9px; font-weight: 500; }
.proncad-modal-footer { padding: 16px 23px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #edf0f5; background: #fafbfc; }
.proncad-modal-footer .btn { min-height: 41px; padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; font-size: 11px; font-weight: 750; }
.proncad-modal-cancel { border: 1px solid #dfe4ee !important; color: #536078 !important; background: #fff !important; }
.proncad-modal-cancel:hover { border-color: #cbd3e1 !important; background: #f5f7fa !important; }
.proncad-confirm-dialog { max-width: 440px !important; padding-top: 28px !important; text-align: center; }
.proncad-confirm-icon { width: 58px; height: 58px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 17px; color: #c34b60; background: #fff0f3; font-size: 26px; }
.proncad-confirm-icon.is-primary { color: var(--proncad-blue); background: #edf1ff; }
.proncad-confirm-dialog > small { color: #c34b60; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.proncad-confirm-dialog h2 { margin: 4px 25px 8px; color: var(--proncad-ink); font-size: 19px; }
.proncad-confirm-dialog > p { margin: 0 auto 24px; padding: 0 26px; max-width: 390px; color: var(--proncad-muted); font-size: 11px; line-height: 1.6; }
.proncad-confirm-dialog .proncad-modal-footer { justify-content: center; }
.proncad-confirm-dialog .btn-danger { color: #fff; background: #cf4e66; border-color: #cf4e66; }

/* Student cohort and entitlement administration */
.proncad-student-access-modal .modal-content { max-width: 780px; }
.proncad-student-access-body { padding: 22px 23px 25px; display: grid; gap: 16px; }
.proncad-student-access-profile { padding: 15px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #e2e7f0; border-radius: 14px; background: linear-gradient(125deg, #fafbff, #fff); }
.proncad-student-access-profile > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #516df0, #7890f7); font: 800 12px/1 var(--proncad-font-heading); box-shadow: 0 7px 16px rgba(81,109,240,.2); }
.proncad-student-access-profile > div { min-width: 0; display: grid; gap: 2px; }
.proncad-student-access-profile small { color: var(--proncad-blue); font-size: var(--proncad-text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.proncad-student-access-profile strong { overflow: hidden; color: var(--proncad-ink); font: 750 14px/1.3 var(--proncad-font-heading); text-overflow: ellipsis; white-space: nowrap; }
.proncad-student-access-profile p { margin: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--proncad-muted); font-size: var(--proncad-text-sm); }
.proncad-student-access-profile > b { padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: var(--proncad-text-xs); white-space: nowrap; }
.proncad-student-access-profile > b.is-ready { color: #16835f; background: #e9f8f2; }
.proncad-student-access-profile > b.is-attention { color: #a26732; background: #fff4df; }

.proncad-admin-access-section { padding: 18px; border: 1px solid #e5e9f1; border-radius: 15px; background: #fff; }
.proncad-admin-section-heading { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.proncad-admin-section-heading > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: var(--proncad-blue); background: #edf1ff; font-size: 17px; }
.proncad-admin-section-heading h3 { margin: 1px 0 2px; color: var(--proncad-ink); font-size: 14px; }
.proncad-admin-section-heading p { margin: 0; color: var(--proncad-muted); font-size: var(--proncad-text-sm); line-height: 1.5; }
.proncad-admin-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.proncad-admin-grant-form { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr) auto; align-items: end; gap: 10px; }
.proncad-admin-inline-form .form-select,
.proncad-admin-grant-form .form-select,
.proncad-admin-grant-form .form-control { min-height: 43px; padding: 9px 11px; border: 1px solid #dfe4ee; border-radius: 10px; color: var(--proncad-ink); background-color: #fbfcfe; }
.proncad-admin-grant-form textarea.form-control { height: 43px; min-height: 43px; resize: vertical; }
.proncad-admin-inline-form .btn,
.proncad-admin-grant-form .btn { min-height: 43px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-size: var(--proncad-text-sm); font-weight: 750; white-space: nowrap; }
.proncad-admin-grant-form .btn:disabled { opacity: .45; cursor: not-allowed; }

.proncad-current-access { margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.proncad-current-access-title { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proncad-current-access-title strong { color: #39445a; font-size: var(--proncad-text-md); }
.proncad-current-access-title span { padding: 4px 7px; border-radius: 999px; color: #657188; background: #f0f2f6; font-size: var(--proncad-text-xs); font-weight: 750; }
#student-access-list { max-height: 205px; display: grid; gap: 7px; overflow-y: auto; }
.proncad-access-record { padding: 10px 11px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #e6eaf1; border-radius: 11px; background: #fbfcfe; }
.proncad-access-record > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--proncad-blue); background: #edf1ff; font-size: 16px; }
.proncad-access-record > div { min-width: 0; display: grid; gap: 2px; }
.proncad-access-record strong { color: var(--proncad-ink); font-size: var(--proncad-text-md); }
.proncad-access-record small { color: var(--proncad-muted); font-size: var(--proncad-text-xs); }
.proncad-access-record p { margin: 2px 0 0; color: #566177; font-size: var(--proncad-text-xs); }
.proncad-access-record > b { padding: 5px 7px; border-radius: 999px; color: #17795b; background: #e8f8f1; font-size: var(--proncad-text-xs); }
.proncad-access-record > b.is-manual { color: #8157b3; background: #f2eafb; }
.proncad-access-empty { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #d8dee9; border-radius: 10px; color: var(--proncad-muted); background: #fafbfc; font-size: var(--proncad-text-sm); }

@keyframes proncad-modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
    .proncad-review-visual-layout,
    .proncad-review-enhanced { grid-template-columns: 1fr; }
    .proncad-review-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .proncad-data-header { align-items: flex-start; flex-direction: column; }
    .proncad-data-header .proncad-action-button { width: 100%; }
    .proncad-table-search { max-width: none; }
    .modal { padding: 12px !important; align-items: flex-end !important; }
    .modal .modal-content { border-radius: 20px 20px 13px 13px !important; }
    .modal .modal-body { grid-template-columns: 1fr; }
    .proncad-field--wide { grid-column: auto; }
    .proncad-modal-footer { flex-direction: column-reverse; }
    .proncad-modal-footer .btn { width: 100%; }
    .proncad-student-access-profile { grid-template-columns: 44px minmax(0, 1fr); }
    .proncad-student-access-profile > b { width: fit-content; grid-column: 2; }
    .proncad-admin-inline-form,
    .proncad-admin-grant-form { grid-template-columns: 1fr; }
    .proncad-admin-inline-form .btn,
    .proncad-admin-grant-form .btn { width: 100%; }
    .proncad-question-bank { padding: 12px; gap: 14px; }
    .proncad-review-card-header { padding: 12px; align-items: flex-start; flex-direction: column; }
    .proncad-question-card-toolbar { width: 100%; }
    .proncad-question-card-action { flex: 1; }
    .proncad-review-prompt,
    .proncad-review-response { padding: 16px 13px; }
    .proncad-review-section-heading { align-items: flex-start; flex-direction: column; }
    .proncad-review-pulldown { grid-template-columns: 1fr; }
    .proncad-review-match-labels { display: none; }
    .proncad-review-match-row { grid-template-columns: 1fr 28px 1fr; }
    .proncad-review-explanation { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .proncad-loader-ring,
    .proncad-loader-track i,
    .modal .modal-content { animation: none !important; }
}
