:root {
    --primary: #5b5bd6;
    --primary-dark: #4545b8;
    --primary-soft: #eeeeff;
    --accent: #14b8a6;
    --ink: #172033;
    --muted: #667085;
    --line: #e8ebf2;
    --surface: #ffffff;
    --canvas: #f6f7fb;
    --sidebar: #161a2d;
    --sidebar-soft: #232841;
    --danger: #e05260;
    --warning: #f59e0b;
    --success: #16a36a;
    --shadow-sm: 0 8px 28px rgba(31, 42, 68, .07);
    --shadow-lg: 0 24px 70px rgba(31, 42, 68, .14);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .95rem;
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

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

.btn {
    border-radius: 11px;
    font-weight: 650;
    padding: .64rem 1rem;
}

.btn-sm { border-radius: 9px; padding: .4rem .7rem; }
.btn-lg { border-radius: 13px; padding: .82rem 1.25rem; }

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(91, 91, 214, .2);
}

.btn-soft-primary { color: var(--primary); background: var(--primary-soft); border: 1px solid #dedeff; }
.btn-soft-primary:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-soft-danger { color: #b42335; background: #fff0f1; border: 1px solid #ffd8dc; }
.btn-soft-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-soft-success { color: #067647; background: #ecfdf3; border: 1px solid #c5f0d7; }
.btn-soft-success:hover { color: #fff; background: var(--success); border-color: var(--success); }

.form-control,
.form-select {
    min-height: 46px;
    border-color: #dfe3ec;
    border-radius: 11px;
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: #a6a6ef;
    box-shadow: 0 0 0 .23rem rgba(91, 91, 214, .12);
}

.form-label {
    margin-bottom: .45rem;
    color: #344054;
    font-size: .86rem;
    font-weight: 700;
}

.form-hint { color: var(--muted); font-size: .8rem; }

.card {
    border-color: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.app-body { min-height: 100vh; }

.app-topbar {
    position: sticky;
    z-index: 1040;
    top: 0;
    height: 72px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 3px 14px rgba(31, 42, 68, .04);
    backdrop-filter: blur(16px);
}

.app-brand,
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    text-decoration: none;
}

.app-brand:hover,
.public-brand:hover { color: var(--ink); }

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #7474ec, #4f46c6 55%, #14b8a6);
    box-shadow: 0 9px 20px rgba(91, 91, 214, .25);
}

.app-brand strong,
.public-brand strong { display: block; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.05; }
.app-brand small,
.public-brand small { display: block; margin-top: .16rem; color: var(--muted); font-size: .67rem; line-height: 1; }

.sidebar-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: var(--ink);
    background: #f2f4f7;
}

.topbar-user { align-items: center; gap: .6rem; padding: .28rem .45rem; color: inherit; border-radius: 12px; text-decoration: none; transition: .16s ease; }
.topbar-user:hover { color: inherit; background: #f4f5f9; }
.topbar-user strong,
.topbar-user small { display: block; line-height: 1.2; }
.topbar-user strong { max-width: 160px; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user small { margin-top: .14rem; color: var(--muted); font-size: .7rem; }

.user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    font-weight: 800;
    background: var(--primary-soft);
}

.app-layout { display: flex; min-height: calc(100vh - 72px); }

.app-sidebar {
    position: sticky;
    top: 72px;
    width: 268px;
    min-width: 268px;
    height: calc(100vh - 72px);
    padding: 1.4rem 1rem;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(20, 184, 166, .16), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(116, 116, 236, .18), transparent 32%),
        var(--sidebar);
}

.app-sidebar .offcanvas-body { overflow-y: auto; }
.sidebar-label { padding: .45rem .7rem .75rem; color: #8088a6; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }

.sidebar-nav { display: grid; gap: .28rem; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .72rem .8rem;
    border-radius: 11px;
    color: #b8bfd4;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: .16s ease;
}

.sidebar-nav a i { width: 22px; color: #858da9; font-size: 1.02rem; text-align: center; }
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(91, 91, 214, .75), rgba(91, 91, 214, .32)); box-shadow: inset 3px 0 #8f8ff2; }
.sidebar-nav a.active i { color: #fff; }

.sidebar-help,
.sidebar-quote {
    margin: 1rem .4rem .25rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}

.sidebar-help { display: flex; align-items: center; gap: .7rem; padding: .8rem; }
.sidebar-help i { color: #65d8ca; font-size: 1.2rem; }
.sidebar-help strong,
.sidebar-help small { display: block; }
.sidebar-help strong { font-size: .75rem; }
.sidebar-help small { margin-top: .15rem; color: #8f97b2; font-size: .65rem; }
.sidebar-quote { padding: 1rem; }
.sidebar-quote i { color: #65d8ca; }
.sidebar-quote p { margin: .35rem 0 0; color: #aeb6cd; font-size: .76rem; line-height: 1.55; }

.app-main {
    display: flex;
    width: calc(100% - 268px);
    min-width: 0;
    flex-direction: column;
    padding: 2rem clamp(1rem, 3vw, 2.5rem) 0;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding: 2.2rem 0 1.25rem;
    color: #98a2b3;
    font-size: .75rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.eyebrow {
    margin-bottom: .4rem;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.page-subtitle { max-width: 720px; margin: .45rem 0 0; color: var(--muted); line-height: 1.55; }

.metric-card {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-card::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    content: "";
    background: var(--metric-soft, #eeeeff);
}

.metric-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--metric, var(--primary));
    font-size: 1.05rem;
    background: var(--metric-soft, var(--primary-soft));
}

.metric-label { margin-top: .9rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.metric-value { position: relative; z-index: 1; margin-top: .08rem; font-size: 1.65rem; font-weight: 820; letter-spacing: -.04em; }
.metric-indigo { --metric: #5b5bd6; --metric-soft: #eeeeff; }
.metric-teal { --metric: #0f9f91; --metric-soft: #e7faf7; }
.metric-amber { --metric: #d5840b; --metric-soft: #fff6df; }
.metric-rose { --metric: #d84a65; --metric-soft: #fff0f3; }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.panel-body { padding: 1.25rem; }
.panel-muted { background: #fbfcfe; }

.quick-action {
    display: flex;
    height: 100%;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
    transition: .18s ease;
}

.quick-action:hover { color: var(--ink); border-color: #c9c9f3; box-shadow: 0 10px 26px rgba(91, 91, 214, .1); transform: translateY(-2px); }
.quick-action i { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.quick-action strong,
.quick-action small { display: block; }
.quick-action strong { font-size: .88rem; }
.quick-action small { margin-top: .2rem; color: var(--muted); font-size: .72rem; }

.table { margin: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: #edf0f5; }
.table thead th { color: #667085; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #fafbfc; white-space: nowrap; }
.table tbody td { color: #344054; font-size: .84rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcff; }

.table-question { min-width: 300px; max-width: 540px; color: var(--ink); font-weight: 650; line-height: 1.45; }
.table-actions { white-space: nowrap; }
.table-actions .btn { padding: .34rem .55rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}

.status-badge span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-success { color: #087747; background: #eafbf2; }
.status-secondary { color: #667085; background: #f1f3f6; }
.status-warning { color: #a15c07; background: #fff6df; }
.status-danger { color: #b42335; background: #fff0f1; }
.status-primary { color: #4545b8; background: #eeeeff; }
.status-info { color: #087a8c; background: #e9f9fc; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
}

.toolbar .search-box { position: relative; min-width: min(100%, 260px); flex: 1; }
.toolbar .search-box i { position: absolute; z-index: 2; top: 50%; left: .9rem; color: #98a2b3; transform: translateY(-50%); }
.toolbar .search-box input { padding-left: 2.45rem; }
.toolbar .form-control,
.toolbar .form-select { min-height: 40px; font-size: .82rem; }

.editor-panel {
    position: sticky;
    top: 92px;
    border: 1px solid #dedffa;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fcfcff);
    box-shadow: var(--shadow-sm);
}

.editor-panel .editor-title { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--line); }
.editor-panel .editor-title i { color: var(--primary); }
.editor-panel .editor-title h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.editor-panel .editor-body { padding: 1.15rem; }

.status-switch { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.status-switch label { margin: 0; font-size: .82rem; font-weight: 700; }

.empty-state { padding: 3rem 1rem; color: var(--muted); text-align: center; }
.empty-state i { display: block; margin-bottom: .7rem; color: #c3c8d4; font-size: 2rem; }
.empty-state h3 { color: var(--ink); font-size: 1rem; font-weight: 800; }
.empty-state p { max-width: 420px; margin: .3rem auto 0; font-size: .82rem; }

.app-toast { margin-top: 68px; border-radius: 13px; background: #fff; box-shadow: var(--shadow-lg); }

.progress-thin { height: 7px; border-radius: 99px; background: #eceef4; }
.progress-thin .progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--primary), #818cf8); }

.score-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; color: var(--primary-dark); font-size: .76rem; font-weight: 800; background: var(--primary-soft); }

.builder-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.builder-banner {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(125deg, #4e4ec0, #6767df 55%, #199e97);
}

.builder-banner::after { position: absolute; top: -65px; right: -35px; width: 190px; height: 190px; border: 34px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.builder-banner h2 { position: relative; z-index: 1; margin: 0; font-size: 1.25rem; font-weight: 800; }
.builder-banner p { position: relative; z-index: 1; max-width: 620px; margin: .4rem 0 0; color: rgba(255,255,255,.78); font-size: .84rem; }
.builder-body { padding: 1.5rem; }
.step-label { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; color: #344054; font-size: .78rem; font-weight: 750; }
.step-label span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: var(--primary); font-size: .68rem; background: var(--primary-soft); }

.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.picker-heading legend.step-label { float: none; width: auto; }
.picker-heading .btn-link { color: var(--primary); font-size: .73rem; font-weight: 750; text-decoration: none; }
.multi-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.check-choice {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
    padding: .82rem;
    border: 1px solid #e0e4ec;
    border-radius: 13px;
    cursor: pointer;
    background: #fff;
    transition: .16s ease;
}
.check-choice[hidden] { display: none; }
[data-subject-error][hidden],
[data-topic-error][hidden] { display: none !important; }
.check-choice:hover { border-color: #b8b8ef; background: #fafaff; }
.check-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.07); }
.check-choice:has(input:focus-visible) { outline: 3px solid rgba(91,91,214,.2); outline-offset: 2px; }
.check-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check-choice-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--primary); background: #f1f1ff; }
.check-choice-copy { min-width: 0; flex: 1; }
.check-choice-copy strong,
.check-choice-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-choice-copy strong { color: #344054; font-size: .82rem; }
.check-choice-copy small { margin-top: .15rem; color: var(--muted); font-size: .68rem; }
.check-choice-tick { color: #c6cad4; font-size: 1rem; }
.check-choice:has(input:checked) .check-choice-tick { color: var(--primary); }

.negative-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.negative-choice {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: .7rem;
    padding: .8rem;
    border: 1px solid #e0e4ec;
    border-radius: 13px;
    cursor: pointer;
    background: #fff;
    transition: .16s ease;
}
.negative-choice:hover { border-color: #b8b8ef; background: #fafaff; }
.negative-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.07); }
.negative-choice:has(input:focus-visible) { outline: 3px solid rgba(91,91,214,.2); outline-offset: 2px; }
.negative-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.negative-choice span { min-width: 0; flex: 1; }
.negative-choice strong,
.negative-choice small { display: block; }
.negative-choice strong { color: var(--ink); font-size: .95rem; }
.negative-choice small { margin-top: .1rem; color: var(--muted); font-size: .64rem; }
.negative-choice > i { color: #c6cad4; }
.negative-choice:has(input:checked) > i { color: var(--primary); }

.fixed-mark-note {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border: 1px solid #dedeff;
    border-radius: 11px;
    color: var(--primary-dark);
    background: var(--primary-soft);
}
.fixed-mark-note > i { font-size: 1.1rem; }
.fixed-mark-note strong,
.fixed-mark-note small { display: block; }
.fixed-mark-note strong { font-size: .8rem; }
.fixed-mark-note small { color: var(--muted); font-size: .62rem; }

.review-step { display: flex; align-items: flex-start; gap: .8rem; }
.review-step + .review-step { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-step > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--primary); font-size: .72rem; font-weight: 800; background: var(--primary-soft); }
.review-step strong,
.review-step small { display: block; }
.review-step strong { color: var(--ink); font-size: .82rem; }
.review-step small { margin-top: .2rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.moderation-panel { overflow: hidden; }
.moderation-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.moderation-topic {
    position: relative;
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e0e4ec;
    border-radius: 13px;
    cursor: pointer;
    background: #fff;
    transition: .16s ease;
}
.moderation-topic[hidden] { display: none; }
.moderation-topic:hover { border-color: #b8b8ef; background: #fafaff; }
.moderation-topic:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.07); }
.moderation-topic:has(input:focus-visible) { outline: 3px solid rgba(91,91,214,.2); outline-offset: 2px; }
.moderation-topic > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.moderation-topic-check { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #98a2b3; background: #f1f3f6; }
.moderation-topic:has(input:checked) .moderation-topic-check { color: #fff; background: var(--primary); }
.moderation-topic strong,
.moderation-topic small { display: block; }
.moderation-topic strong { color: var(--ink); font-size: .8rem; }
.moderation-topic small { margin-top: .15rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.empty-inline { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .8rem; }
.empty-inline i { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }

.bulk-action-bar { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbff; }
.bulk-action-bar .form-select { width: min(100%, 230px); margin-left: auto; }
.bulk-selection { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.bulk-selection strong { color: var(--primary-dark); font-size: .9rem; }
.selection-cell { width: 42px; text-align: center; }
.selection-cell .form-check-input { float: none; margin: 0; cursor: pointer; }

.access-user-card { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fafbff; }
.access-user-card .user-avatar { width: 42px; height: 42px; }
.access-user-card strong,
.access-user-card small { display: block; }
.access-user-card small { margin-top: .15rem; color: var(--muted); font-size: .7rem; }
.access-mode-list { display: grid; gap: .6rem; }
.access-mode { position: relative; cursor: pointer; }
.access-mode > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.access-mode > span { display: grid; min-height: 67px; grid-template-columns: 34px 1fr; align-items: center; column-gap: .65rem; padding: .7rem; border: 1px solid #e0e4ec; border-radius: 12px; background: #fff; transition: .16s ease; }
.access-mode > span > i { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.access-mode strong,
.access-mode small { display: block; }
.access-mode strong { color: var(--ink); font-size: .8rem; }
.access-mode small { color: var(--muted); font-size: .66rem; }
.access-mode:has(input:checked) > span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.07); }
.access-mode:has(input:focus-visible) > span { outline: 3px solid rgba(91,91,214,.2); outline-offset: 2px; }
.access-plan-notice { display: flex; align-items: flex-start; gap: .7rem; min-height: 70px; padding: .8rem; border: 1px solid #dedeff; border-radius: 13px; color: var(--primary-dark); background: var(--primary-soft); }
.access-plan-notice.is-full { color: #067647; border-color: #c5f0d7; background: #ecfdf3; }
.access-plan-notice.is-off { color: #667085; border-color: #dfe3eb; background: #f5f6f8; }
.access-plan-notice > i { margin-top: .1rem; font-size: 1.1rem; }
.access-plan-notice strong,
.access-plan-notice small { display: block; }
.access-plan-notice strong { font-size: .8rem; }
.access-plan-notice small { margin-top: .2rem; font-size: .68rem; line-height: 1.45; }
.access-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.access-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.access-subject,
.access-topic { position: relative; display: flex; min-height: 68px; align-items: center; gap: .65rem; padding: .75rem; border: 1px solid #e0e4ec; border-radius: 13px; cursor: pointer; background: #fff; transition: .16s ease; }
.access-topic[hidden] { display: none; }
.access-subject:hover,
.access-topic:hover { border-color: #b8b8ef; background: #fafaff; }
.access-subject > input,
.access-topic > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.access-check { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #98a2b3; background: #f1f3f6; }
.access-subject:has(input:checked),
.access-topic:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.06); }
.access-subject:has(input:checked) .access-check,
.access-topic:has(input:checked) .access-check { color: #fff; background: var(--primary); }
.access-subject:has(input:focus-visible),
.access-topic:has(input:focus-visible) { outline: 3px solid rgba(91,91,214,.2); outline-offset: 2px; }
.access-subject strong,
.access-subject small,
.access-topic strong,
.access-topic small { display: block; }
.access-subject strong,
.access-topic strong { color: var(--ink); font-size: .78rem; line-height: 1.35; }
.access-subject small,
.access-topic small { margin-top: .15rem; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.access-summary-line + .access-summary-line { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--line); }
.access-summary-line strong,
.access-summary-line span { display: block; }
.access-summary-line strong { color: #344054; font-size: .75rem; }
.access-summary-line span { margin-top: .12rem; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.availability-card { padding: 1rem; border: 1px dashed #cfd3e2; border-radius: 14px; background: #fafbff; }
.availability-card strong { display: block; font-size: .85rem; }
.availability-card small { color: var(--muted); }

.exam-header {
    position: sticky;
    z-index: 20;
    top: 72px;
    margin: -2rem calc(clamp(1rem, 3vw, 2.5rem) * -1) 1.5rem;
    padding: .9rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: rgba(246, 247, 251, .94);
    backdrop-filter: blur(14px);
}

.timer-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .58rem .8rem; border-radius: 11px; color: #344054; font-weight: 800; background: #fff; box-shadow: 0 4px 15px rgba(31,42,68,.08); }
.timer-chip.timer-danger { color: #b42335; background: #fff0f1; animation: timerPulse 1s ease-in-out infinite alternate; }
@keyframes timerPulse { to { transform: scale(1.025); } }

.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.25rem; align-items: start; }
.exam-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.question-slide { display: none; padding: clamp(1.15rem, 3vw, 2rem); }
.question-slide.active { display: block; animation: slideIn .2s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.question-number { color: var(--primary); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.question-text { margin: 0 0 1.4rem; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 750; line-height: 1.55; }

.answer-option { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .72rem; padding: .9rem 1rem; border: 1px solid #e0e4ec; border-radius: 13px; cursor: pointer; transition: .15s ease; }
.answer-option:hover { border-color: #b8b8ef; background: #fafaff; }
.answer-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(91,91,214,.08); }
.answer-option input { margin-top: .25rem; accent-color: var(--primary); }
.option-letter { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #667085; font-size: .74rem; font-weight: 800; background: #f1f3f6; }
.answer-option:has(input:checked) .option-letter { color: #fff; background: var(--primary); }
.option-text { padding-top: .2rem; line-height: 1.45; }

.exam-controls { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: #fafbfc; }
.exam-sidebar { position: sticky; top: 152px; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.exam-sidebar h3 { margin: 0 0 .9rem; font-size: .9rem; font-weight: 800; }
.question-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.palette-btn { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid #dfe3eb; border-radius: 9px; color: #667085; font-size: .72rem; font-weight: 750; background: #fff; }
.palette-btn:hover { border-color: var(--primary); color: var(--primary); }
.palette-btn.current { color: #fff; border-color: var(--primary); background: var(--primary); }
.palette-btn.answered:not(.current) { color: #087747; border-color: #b7e9d0; background: #eafbf2; }
.palette-legend { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .9rem; color: var(--muted); font-size: .67rem; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: .25rem; border-radius: 50%; background: #dfe3eb; }
.legend-dot.answered { background: var(--success); }
.legend-dot.current { background: var(--primary); }
.question-text:focus { outline: 0; }

.bank-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    color: #fff;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255,255,255,.18), transparent 28%),
        radial-gradient(circle at 12% 90%, rgba(20,184,166,.25), transparent 32%),
        linear-gradient(130deg, #31319a, #5b5bd6 58%, #3d83b8);
    box-shadow: 0 20px 45px rgba(69,69,184,.22);
}
.bank-hero::after { position: absolute; right: -45px; bottom: -90px; width: 220px; height: 220px; content: ''; border: 38px solid rgba(255,255,255,.07); border-radius: 50%; }
.bank-hero-copy { position: relative; z-index: 1; display: flex; max-width: 650px; align-items: center; gap: 1rem; }
.bank-hero-icon { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; font-size: 1.35rem; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.bank-hero-copy strong { display: block; font-size: 1.08rem; }
.bank-hero-copy p { margin: .35rem 0 0; color: rgba(255,255,255,.76); font-size: .84rem; line-height: 1.55; }
.bank-hero-stats { position: relative; z-index: 1; display: flex; flex: 0 0 auto; gap: .6rem; }
.bank-hero-stats > div { min-width: 86px; padding: .75rem .85rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; text-align: center; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.bank-hero-stats strong,
.bank-hero-stats span { display: block; }
.bank-hero-stats strong { font-size: 1.25rem; }
.bank-hero-stats span { margin-top: .12rem; color: rgba(255,255,255,.68); font-size: .65rem; font-weight: 700; text-transform: uppercase; }

.bank-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bank-subject-card { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: .85rem; padding: 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: .18s ease; }
.bank-subject-card:hover { color: var(--ink); border-color: #cfcff6; box-shadow: 0 15px 36px rgba(31,42,68,.11); transform: translateY(-2px); }
.bank-subject-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,91,214,.1), var(--shadow-sm); }
.bank-subject-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; font-size: 1.05rem; }
.bank-subject-tone-1 .bank-subject-icon { color: #4f46c6; background: #eeeeff; }
.bank-subject-tone-2 .bank-subject-icon { color: #087c71; background: #e6faf7; }
.bank-subject-tone-3 .bank-subject-icon { color: #b54708; background: #fff4e5; }
.bank-subject-copy { min-width: 0; }
.bank-subject-copy strong,
.bank-subject-copy small { display: block; }
.bank-subject-copy strong { overflow: hidden; font-size: .84rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.bank-subject-copy small { margin-top: .25rem; color: var(--muted); font-size: .7rem; }
.bank-subject-arrow { color: #98a2b3; }

.bank-filter-panel { padding: 1.25rem; border: 1px solid #dedffa; border-radius: 20px; background: linear-gradient(145deg, #fff, #f8f8ff); box-shadow: var(--shadow-sm); }
.bank-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.bank-filter-heading > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: .7rem; }
.bank-filter-heading strong,
.bank-filter-heading small { display: block; grid-column: 2; }
.bank-filter-heading strong { align-self: end; font-size: .9rem; }
.bank-filter-heading small { align-self: start; margin-top: .08rem; color: var(--muted); font-size: .7rem; }
.bank-filter-icon { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; place-items: center; color: var(--primary); border-radius: 11px; background: var(--primary-soft); }
.bank-search-group .input-group-text { color: var(--muted); border-color: #dfe3ec; border-radius: 11px 0 0 11px; background: #fff; }
.bank-search-group .form-control { border-left: 0; }

.bank-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.7rem 0 .9rem; }
.bank-results-heading h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.bank-results-heading > span { color: var(--muted); font-size: .75rem; }
.bank-question-list { display: grid; gap: 1rem; }
.bank-question-card { overflow: hidden; padding: clamp(1rem, 2.5vw, 1.45rem); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.bank-question-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .85rem; color: var(--muted); font-size: .68rem; }
.bank-question-index { padding: .3rem .55rem; color: var(--primary); border-radius: 8px; font-weight: 850; letter-spacing: .04em; background: var(--primary-soft); text-transform: uppercase; }
.bank-question-card h3 { margin: 0 0 1rem; font-size: 1.02rem; font-weight: 750; line-height: 1.6; }
.bank-option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.bank-option-list li { display: flex; min-width: 0; align-items: flex-start; gap: .65rem; padding: .72rem .8rem; border: 1px solid #e7e9ef; border-radius: 12px; background: #fbfcfe; }
.bank-option-list li > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #667085; border-radius: 7px; font-size: .68rem; font-weight: 850; background: #eceef3; }
.bank-option-list p { min-width: 0; margin: .12rem 0 0; overflow-wrap: anywhere; color: #344054; font-size: .82rem; line-height: 1.45; }
.bank-answer-reveal { margin-top: 1rem; border: 1px solid #ccebdd; border-radius: 13px; background: #f4fcf8; }
.bank-answer-reveal summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem .9rem; color: #087747; cursor: pointer; font-size: .78rem; font-weight: 800; list-style: none; }
.bank-answer-reveal summary::-webkit-details-marker { display: none; }
.bank-answer-reveal summary span { display: inline-flex; align-items: center; gap: .5rem; }
.bank-answer-reveal summary > i { transition: transform .18s ease; }
.bank-answer-reveal[open] summary > i { transform: rotate(180deg); }
.bank-answer-content { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem; border-top: 1px solid #d9f1e6; }
.bank-answer-letter { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 9px; font-size: .75rem; font-weight: 850; background: var(--success); }
.bank-answer-content strong { color: #075d3a; font-size: .84rem; }
.bank-answer-content p { margin: .3rem 0 0; color: #527265; font-size: .75rem; line-height: 1.5; }
.bank-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.bank-page-numbers { display: flex; gap: .4rem; }
.bank-page-numbers a { display: grid; width: 38px; height: 38px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; }
.bank-page-numbers a:hover { color: var(--primary); border-color: #c9c9f2; }
.bank-page-numbers a.active { color: #fff; border-color: var(--primary); background: var(--primary); }

.result-hero { padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid #dedffa; border-radius: 22px; background: linear-gradient(145deg, #fff, #f4f4ff); box-shadow: var(--shadow-sm); }
.score-ring { --score: 0; display: grid; width: 154px; height: 154px; margin: auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--score) * 1%), #e6e8f1 0); }
.score-ring-inner { display: grid; width: 124px; height: 124px; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.score-ring strong { display: block; font-size: 1.85rem; letter-spacing: -.05em; }
.score-ring small { display: block; color: var(--muted); font-size: .7rem; text-align: center; }
.result-copy h1 { margin-bottom: .4rem; font-weight: 850; letter-spacing: -.04em; }
.result-copy p { color: var(--muted); }
.result-stat { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-stat strong { display: block; font-size: 1.2rem; }
.result-stat small { color: var(--muted); font-size: .72rem; }

.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-card + .review-card { margin-top: .8rem; }
.review-head { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.1rem; }
.review-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.review-correct .review-icon { color: #087747; background: #eafbf2; }
.review-wrong .review-icon { color: #b42335; background: #fff0f1; }
.review-unanswered .review-icon { color: #a15c07; background: #fff6df; }
.review-question { font-weight: 720; line-height: 1.5; }
.review-answer { padding: .8rem 1.1rem; border-top: 1px solid var(--line); color: #475467; font-size: .82rem; background: #fafbfc; }

.public-body { color: var(--ink); background: #fff; }
.public-nav { position: relative; z-index: 5; height: 78px; border-bottom: 1px solid rgba(232,235,242,.7); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.public-nav .container { height: 100%; display: flex; align-items: center; }
.public-nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.public-nav-links a:not(.btn) { color: #475467; font-size: .84rem; font-weight: 650; text-decoration: none; }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 8% 20%, rgba(91,91,214,.11), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(20,184,166,.11), transparent 25%),
        linear-gradient(180deg, #fff, #fbfbff);
}

.hero::after { position: absolute; right: -130px; bottom: -180px; width: 440px; height: 440px; border: 70px solid rgba(91,91,214,.045); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .42rem .72rem; border: 1px solid #dedeff; border-radius: 999px; color: var(--primary-dark); font-size: .73rem; font-weight: 750; background: #f6f6ff; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(2.35rem, 5.3vw, 4.6rem); font-weight: 880; letter-spacing: -.065em; line-height: .99; }
.hero h1 span { color: var(--primary); }
.hero-lead { max-width: 610px; margin: 1.35rem 0 1.7rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.65; }
.hero-points { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.4rem; color: #475467; font-size: .78rem; font-weight: 650; }
.hero-points i { margin-right: .25rem; color: var(--success); }

.login-card { position: relative; z-index: 2; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); }
.login-card h2 { margin: 0; font-size: 1.35rem; font-weight: 820; letter-spacing: -.03em; }
.login-card .login-subtitle { margin: .4rem 0 1.25rem; color: var(--muted); font-size: .82rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; z-index: 2; top: 50%; left: .9rem; color: #98a2b3; transform: translateY(-50%); }
.input-icon .form-control { padding-left: 2.55rem; }
.password-toggle { position: absolute; z-index: 3; top: 50%; right: .6rem; color: #98a2b3; border: 0; background: transparent; transform: translateY(-50%); }
.demo-box { padding: .8rem; border: 1px dashed #d7d9e8; border-radius: 12px; color: #667085; font-size: .73rem; background: #fafbff; }
.demo-box code { color: var(--primary-dark); }

.section-pad { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-heading { max-width: 650px; margin: 0 auto 2.4rem; text-align: center; }
.section-heading .eyebrow { margin-bottom: .65rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 850; letter-spacing: -.05em; }
.section-heading p { margin: .9rem 0 0; color: var(--muted); line-height: 1.65; }
.feature-card { height: 100%; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .18s ease; }
.feature-card:hover { border-color: #d5d5f6; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.feature-icon { display: grid; width: 45px; height: 45px; margin-bottom: 1rem; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.feature-card h3 { font-size: 1rem; font-weight: 800; }
.feature-card p { margin: .5rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.public-footer { padding: 1.7rem 0; color: #98a2b3; font-size: .77rem; border-top: 1px solid var(--line); background: #fbfcfe; }

.auth-page { min-height: 100vh; background: radial-gradient(circle at 15% 15%, rgba(91,91,214,.13), transparent 30%), radial-gradient(circle at 90% 85%, rgba(20,184,166,.11), transparent 28%), #f8f9fc; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(100%, 560px); padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-lg); backdrop-filter: blur(15px); }
.auth-card h1 { margin: 1.2rem 0 .4rem; font-size: 1.6rem; font-weight: 850; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); }

.data-card { display: flex; height: 100%; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.data-card .data-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.data-card h3 { margin: .9rem 0 .25rem; font-size: .95rem; font-weight: 800; }
.data-card p { margin-bottom: 1rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.data-card .btn { margin-top: auto; }

.password-policy {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .9rem;
    color: #475467;
    border: 1px solid #dedeff;
    border-radius: 12px;
    font-size: .78rem;
    line-height: 1.5;
    background: #f8f8ff;
}
.password-policy i { flex: 0 0 auto; margin-top: .08rem; color: var(--primary); }

.security-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.security-card-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    border-radius: 14px;
    font-size: 1.12rem;
    background: var(--primary-soft);
}
.security-card-icon.is-teal { color: #087f73; background: #e9fbf7; }
.security-card-icon.is-amber { color: #a15c07; background: #fff6df; }
.security-card small,
.security-card strong,
.security-card span { display: block; }
.security-card small { margin-bottom: .12rem; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.security-card strong { font-size: .94rem; }
.security-card div > span { margin-top: .16rem; color: var(--muted); font-size: .72rem; }

.admin-security-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, #5b5bd6, #4545b8);
    box-shadow: 0 14px 30px rgba(69, 69, 184, .22);
}
.admin-security-link:hover { color: #fff; transform: translateY(-1px); }
.admin-security-link > i:first-child { font-size: 1.2rem; }
.admin-security-link strong,
.admin-security-link small { display: block; }
.admin-security-link strong { font-size: .82rem; }
.admin-security-link small { margin-top: .16rem; color: rgba(255,255,255,.72); font-size: .68rem; }

.one-time-credential {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    color: #17392e;
    border: 1px solid #a7e7cd;
    border-radius: 18px;
    background: linear-gradient(135deg, #effcf6, #f8fffc);
    box-shadow: 0 14px 36px rgba(22, 163, 106, .09);
}
.one-time-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 14px; background: var(--success); box-shadow: 0 9px 20px rgba(22, 163, 106, .22); }
.one-time-credential h2 { margin: 0; font-size: 1.18rem; font-weight: 820; }
.one-time-credential p { margin: .45rem 0 1rem; color: #477266; font-size: .8rem; }
.credential-values { display: grid; grid-template-columns: .7fr 1fr 1.4fr; gap: .65rem; }
.credential-values > div { min-width: 0; padding: .75rem; border: 1px solid rgba(22, 163, 106, .16); border-radius: 12px; background: rgba(255,255,255,.78); }
.credential-values small { display: block; margin-bottom: .25rem; color: #5f8077; font-size: .65rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.credential-values strong { display: inline-block; max-width: 100%; margin-right: .4rem; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.credential-values .btn { margin-top: .4rem; }

.password-protection-note { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem; color: #475467; border: 1px solid #dedeff; border-radius: 12px; background: #f8f8ff; }
.password-protection-note > i { margin-top: .1rem; color: var(--primary); }
.password-protection-note strong,
.password-protection-note small { display: block; }
.password-protection-note strong { color: #344054; font-size: .78rem; }
.password-protection-note small { margin-top: .2rem; font-size: .7rem; line-height: 1.45; }
.credential-editor { position: sticky; top: 92px; }

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        width: min(84vw, 290px);
        height: 100vh;
        padding: .6rem 1rem 1rem;
    }
    .app-main { width: 100%; padding-top: 1.4rem; }
    .exam-layout { grid-template-columns: 1fr; }
    .exam-sidebar { position: static; order: -1; }
    .question-palette { grid-template-columns: repeat(10, 1fr); }
    .editor-panel { position: static; }
    .moderation-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-topic-grid { grid-template-columns: 1fr; }
    .credential-editor { position: static; }
    .bank-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bank-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
    .app-topbar { height: 64px; }
    .app-layout { min-height: calc(100vh - 64px); }
    .app-brand small { display: none; }
    .app-main { padding-inline: .85rem; }
    .page-header { display: block; }
    .page-header .page-actions { margin-top: 1rem; }
    .metric-card { min-height: 126px; padding: 1rem; }
    .metric-value { font-size: 1.4rem; }
    .panel-header,
    .panel-body { padding: 1rem; }
    .toolbar { align-items: stretch; }
    .toolbar > * { width: 100%; }
    .exam-header { top: 64px; margin-top: -1.4rem; }
    .question-palette { grid-template-columns: repeat(5, 1fr); }
    .multi-picker { grid-template-columns: 1fr; }
    .negative-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .moderation-topic-grid { grid-template-columns: 1fr; }
    .access-subject-grid,
    .access-topic-grid { grid-template-columns: 1fr; }
    .bulk-action-bar { flex-wrap: wrap; }
    .bulk-action-bar .form-select { width: 100%; margin-left: 0; }
    .bulk-action-bar .btn { flex: 1; }
    .picker-heading { align-items: flex-start; }
    .exam-controls { padding: .85rem; }
    .exam-controls .btn span { display: none; }
    .public-nav-links a:not(.btn) { display: none; }
    .hero { padding-top: 2.8rem; }
    .hero h1 { font-size: 2.7rem; }
    .login-card { margin-top: 2rem; }
    .one-time-credential { display: block; }
    .one-time-icon { margin-bottom: .85rem; }
    .credential-values { grid-template-columns: 1fr; }
    .bank-subject-grid,
    .bank-option-list { grid-template-columns: 1fr; }
    .bank-hero-stats { width: 100%; }
    .bank-hero-stats > div { min-width: 0; flex: 1; }
    .bank-filter-heading,
    .bank-results-heading { align-items: flex-start; flex-direction: column; }
    .bank-pagination .btn span { display: none; }
}

@media (max-width: 399px) {
    .app-brand > span:last-child { display: none; }
    .topbar-user { display: none !important; }
    .hero h1 { font-size: 2.35rem; }
}

@media print {
    .app-topbar,
    .app-sidebar,
    .app-footer,
    .no-print,
    .page-actions { display: none !important; }
    .app-main { width: 100%; padding: 0; }
    .app-layout { display: block; }
    body { background: #fff; }
    .panel,
    .result-hero,
    .review-card { box-shadow: none; break-inside: avoid; }
}
