@font-face {
    font-family: Rasana;
    src: url('/fonts/DejaVuSans.ttf')
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f3f5f5;
    color: #193446;
    font-family: Rasana,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.8
}

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

button, a, input, select, textarea {
    outline-offset: 4px
}

button, .button {
    cursor: pointer;
    border: 0;
    background: #087e83;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center
}

    button:hover, .button:hover {
        filter: brightness(.94)
    }

    button:disabled {
        opacity: .5;
        cursor: wait
    }

.secondary {
    background: #e8eff1;
    color: #193446
}

.danger {
    background: #b34342
}

.ghost {
    background: transparent;
    color: #087e83
}

.gold {
    background: #e2c47b;
    color: #193446
}

input, select, textarea {
    display: block;
    width: 100%;
    border: 1px solid #c9d4d9;
    border-radius: 7px;
    padding: 10px;
    background: #fff;
    color: #193446
}

    input[type=checkbox], input[type=radio] {
        width: 18px;
        height: 18px;
        display: inline;
        accent-color: #087e83
    }

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

label {
    display: block;
    font-size: 13px;
    font-weight: bold
}

    label > input, label > select, label > textarea {
        margin-top: 5px
    }

h1, h2, h3, p {
    margin-top: 0
}

h1 {
    font-size: 28px;
    line-height: 1.5
}

h2 {
    font-size: 20px
}

h3 {
    font-size: 16px
}

small, .muted {
    color: #697e89
}

.shell {
    display: grid;
    grid-template-columns: 255px 1fr;
    min-height: 100vh
}

.sidebar {
    background: #163345;
    color: #d9e6eb;
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.mark {
    display: grid;
    place-items: center;
    border: 1px solid #6e949c;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    color: #e2c47b;
    font-size: 26px
}

.brand small {
    color: #a8c1ca
}

.sidebar nav {
    margin: 35px 0;
    display: grid;
    gap: 8px
}

    .sidebar nav button {
        justify-content: flex-start;
        color: #b8cdd5;
        background: transparent;
        width: 100%;
        font-weight: normal
    }

        .sidebar nav button.active {
            background: #294b5b;
            color: white;
            border-right: 3px solid #e2c47b;
            border-radius: 5px
        }

.sidebar .bottomnote {
    font-size: 12px;
    color: #9bb4bf
}

.main {
    padding: 28px 38px;
    min-width: 0
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dce5e7;
    padding-bottom: 20px;
    margin-bottom: 28px;
    gap: 15px
}

    .topbar strong {
        display: block
    }

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

.tools {
    margin-bottom: 18px
}

.pagehead {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px
}

.eyebrow {
    color: #087e83;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 6px
}

.card {
    background: #fff;
    border: 1px solid #e0e8e9;
    border-radius: 13px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px #17324d04
}

.hero {
    background: #193e50;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 14px;
    margin-bottom: 24px
}

    .hero p {
        color: #bdd1d8;
        max-width: 720px
    }

    .hero h1 {
        max-width: 780px
    }

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

.stats .card {
    border-top: 3px solid #087e83
}

.stats b {
    font-size: 32px;
    display: block
}

.stats small {
    font-size: 13px
}

.flow {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    counter-reset: steps
}

    .flow > div {
        padding: 18px;
        background: #f0f5f5;
        border-radius: 9px
    }

        .flow > div:before {
            counter-increment: steps;
            content: counter(steps);
            display: block;
            color: #087e83;
            font-size: 23px;
            font-weight: bold
        }

.tablewrap {
    overflow: auto;
    border: 1px solid #e0e8e9;
    border-radius: 10px
}

table {
    border-collapse: collapse;
    background: white;
    width: 100%;
    white-space: nowrap;
    text-align: right
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9eff0
}

th {
    background: #edf3f4;
    font-size: 12px;
    color: #526d79
}

td {
    font-size: 13px
}

    td.wrap {
        white-space: normal;
        min-width: 220px;
        max-width: 420px
    }

.badge {
    display: inline-block;
    border-radius: 20px;
    background: #edf2f4;
    color: #586e78;
    padding: 3px 12px;
    font-size: 11px
}

    .badge.ok {
        background: #e2f3ec;
        color: #237652
    }

    .badge.warn {
        background: #fff0d0;
        color: #916414
    }

    .badge.live {
        background: #d9f0f3;
        color: #007d8b
    }

.empty {
    padding: 50px;
    text-align: center;
    color: #758b95
}

.notice {
    padding: 14px 18px;
    background: #e9f3f3;
    border-right: 3px solid #087e83;
    border-radius: 6px;
    margin-bottom: 18px
}

.error {
    background: #fff0ee;
    color: #993b32;
    border-color: #b94c40
}

.hidden, [hidden] {
    display: none !important
}

dialog {
    border: 0;
    border-radius: 14px;
    width: min(900px,94vw);
    max-height: 90vh;
    padding: 28px;
    box-shadow: 0 20px 90px #00192855;
    color: #193446
}

    dialog::backdrop {
        background: #0b223b88
    }

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

    .formgrid .wide {
        grid-column: 1/-1
    }

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

.login {
    max-width: 480px;
    margin: 65px auto
}

    .login .brand {
        justify-content: center;
        margin-bottom: 25px
    }

    .login label {
        margin: 15px 0
    }

.center {
    text-align: center
}

.pill {
    padding: 7px 14px;
    background: #e3f0f1;
    border-radius: 30px;
    font-size: 12px;
    color: #087e83
}

.examheader {
    background: #193e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    gap: 20px
}

    .examheader p {
        margin: 0;
        color: #bfd1d8
    }

.timer {
    font-family: monospace;
    font-size: 36px;
    direction: ltr;
    line-height: 1.2
}

.examcontent {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 25px;
    padding: 28px 4%;
    margin: auto
}

.questiontext {
    font-size: 21px;
    white-space: pre-wrap;
    line-height: 1.9
}

.options {
    display: grid;
    gap: 12px;
    margin: 25px 0
}

.option {
    padding: 16px;
    border: 1px solid #ccd9df;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: start;
    background: #fff
}

    .option:has(input:checked) {
        border-color: #087e83;
        background: #e9f7f5
    }

    .option input {
        flex-shrink: 0;
        margin-top: 5px
    }

.qnav {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 6px
}

    .qnav button {
        padding: 6px;
        background: #edf2f3;
        color: #193446;
        position: relative
    }

    .qnav .answered {
        background: #dcf2e9;
        color: #237652
    }

    .qnav .current {
        outline: 2px solid #087e83
    }

    .qnav .flagged:after {
        content: '•';
        position: absolute;
        top: -8px;
        right: 3px;
        color: #b57c00
    }

.save {
    font-size: 12px;
    color: #29775e
}

.progress {
    height: 6px;
    background: #e4edef;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden
}

    .progress > div {
        height: 100%;
        background: #087e83;
        transition: width .2s
    }

.offline {
    position: fixed;
    inset: 0;
    background: #f1f5f7;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 25px
}

    .offline .card {
        max-width: 620px;
        text-align: center
    }

.offlineicon {
    font-size: 50px;
    color: #b87f28
}

.result {
    max-width: 720px;
    margin: 50px auto;
    text-align: center
}

    .result .score {
        font-size: 60px;
        color: #087e83
    }

.seatgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: 15px
}

.seat {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid #adc1c9
}

    .seat.s2 {
        border-color: #3f946a
    }

    .seat.s3, .seat.s6 {
        border-color: #087e83
    }

    .seat.s5 {
        border-color: #d39c35
    }

    .seat b {
        display: block;
        font-size: 26px
    }

video {
    max-width: 100%;
    border-radius: 10px
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 200;
    background: #193e50;
    color: #fff;
    padding: 15px 22px;
    border-radius: 10px;
    max-width: 85vw
}

.studentHelp {
    font-size: 12px
}

.wideinput {
    min-width: 750px;
    max-width: 750px
}

.caption {
    font-size: 12px;
    margin-top: 9px;
    color: #6e828c
}

@media(max-width:900px) {
    .shell {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 18px
    }

        .sidebar nav {
            display: flex;
            overflow: auto;
            margin: 15px 0 0
        }

            .sidebar nav button {
                white-space: nowrap
            }

        .sidebar .bottomnote {
            display: none
        }

    .main {
        padding: 20px
    }

    .flow {
        grid-template-columns: 1fr 1fr
    }

    .examcontent {
        grid-template-columns: 1fr
    }

        .examcontent aside {
            order: -1
        }

    .qnav {
        grid-template-columns: repeat(10,1fr)
    }

    .formgrid {
        grid-template-columns: 1fr
    }

    .topbar, .pagehead {
        flex-wrap: wrap
    }

    .timer {
        font-size: 28px
    }
}

@media print {
    .sidebar, .topbar, .tools, button {
        display: none
    }

    .shell {
        display: block
    }

    .main {
        padding: 0
    }
}
/* Rasana 2.0 design system: local assets only */
:root {
    --bg: #f3f5f9;
    --surface: #fff;
    --soft: #edf1f7;
    --ink: #172c47;
    --muted: #65758a;
    --line: #dce3ed;
    --nav: #11233b;
    --primary: #244d75;
    --accent: #b28b43;
    --shadow: 0 5px 25px #14284408;
    --radius: 16px;
    color-scheme: light
}

    :root[data-theme=dark] {
        --bg: #0e1725;
        --surface: #172438;
        --soft: #203149;
        --ink: #e4ebf5;
        --muted: #a9b8cd;
        --line: #30415a;
        --nav: #0a1321;
        --primary: #8bb9e4;
        --accent: #dbb875;
        --shadow: 0 5px 25px #0002;
        color-scheme: dark
    }

body {
    font-family: Calibri,'Segoe UI',Tahoma,Arial,sans-serif;
    font-size: 18px;
    line-height: 1.65;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 17px
}

button, .button {
    border-radius: 10px;
    padding: 10px 17px;
    background: var(--primary);
    color: var(--surface);
    transition: background .15s,transform .15s
}

    button:hover, .button:hover {
        filter: none;
        box-shadow: 0 3px 10px #10233715
    }

    button:active {
        transform: translateY(1px)
    }

    button:disabled {
        cursor: not-allowed;
        opacity: .45
    }

.secondary {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line)
}

.ghost {
    background: transparent;
    color: var(--primary);
    box-shadow: none !important
}

.gold {
    background: #ddbe7b;
    color: #14263d
}

.danger {
    background: #ac3c42;
    color: #fff
}

input, select, textarea {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px 13px;
    border-radius: 10px;
    min-height: 45px
}

    input:focus, textarea:focus {
        outline: 2px solid #7198bc;
        outline-offset: 2px
    }

    input[type=checkbox], input[type=radio] {
        min-height: 0;
        accent-color: #315d86
    }

    input:disabled {
        opacity: .65;
        background: var(--soft)
    }

label {
    font-size: 17px
}

h1 {
    font-size: 32px;
    letter-spacing: -.5px
}

h2 {
    font-size: 24px
}

h3 {
    font-size: 20px
}

small, .muted, .caption {
    color: var(--muted);
    font-size: 15px
}

.block {
    display: block
}

.icon {
    width: 22px;
    height: 22px;
    flex: none;
    vertical-align: middle
}

.icon-button {
    width: 42px;
    height: 42px;
    padding: 10px;
    background: var(--soft);
    color: var(--ink)
}

.shell {
    display: block;
    min-height: 100vh;
    padding-inline-start: 278px
}

.sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: 278px;
    height: 100dvh;
    background: var(--nav);
    padding: 28px 18px 18px;
    display: flex;
    flex-direction: column;
    z-index: 40;
    color: #cad5e5;
    border-inline-end: 1px solid #ffffff10;
    overflow-y: auto
}

.brand {
    text-decoration: none;
    color: #fff;
    gap: 12px;
    padding: 0 9px
}

    .brand .mark {
        width: 47px;
        height: 47px;
        flex: none;
        border-color: #d9b57460;
        background: #ffffff08;
        color: #e0c38c;
        font-size: 30px;
        border-radius: 13px
    }

.brand-text {
    display: grid
}

.brand strong {
    font-size: 22px
}

.brand small {
    font-size: 13px;
    color: #91a8c3
}

.sidebar-caption {
    font-size: 12px;
    color: #849ab5;
    margin: 25px 12px 5px
}

.sidebar nav {
    display: block;
    margin: 0;
    flex: 1
}

.nav-group {
    margin: 15px 0
}

.nav-label {
    font-size: 12px;
    color: #8da0b9;
    padding: 0 12px;
    margin: 13px 0 7px;
    letter-spacing: .4px
}

.sidebar nav button {
    padding: 11px 13px;
    min-height: 47px;
    font-size: 16px;
    display: flex;
    gap: 12px;
    background: transparent;
    color: #c4d1e3;
    border: 1px solid transparent;
    margin-bottom: 4px;
    border-radius: 10px;
    text-align: right;
    white-space: normal
}

    .sidebar nav button:hover {
        background: #ffffff08;
        color: #fff
    }

    .sidebar nav button.active {
        background: #ffffff0e;
        border: 1px solid #d4b47730;
        color: #f0d8a5;
        box-shadow: inset -3px 0 #d0ad68
    }

    .sidebar nav button .icon {
        width: 20px;
        height: 20px
    }

.nav-dot {
    display: none;
    margin-inline-start: auto;
    background: #dfc48b;
    width: 5px;
    height: 5px;
    border-radius: 50%
}

.sidebar nav button.active .nav-dot {
    display: block
}

.sidebar .bottomnote {
    border-top: 1px solid #ffffff12;
    padding: 16px 9px 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9eb0c6
}

.online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7bb3a4;
    flex: none
}

.main {
    padding: 0;
    min-width: 0
}

.topbar {
    height: 88px;
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 16px 32px;
    z-index: 30;
    display: flex;
    flex-wrap: nowrap
}

.topbar-right, .topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0
}

.topbar strong {
    font-size: 19px;
    line-height: 1.5
}

.topbar small {
    display: block;
    font-size: 13px
}

.contentwrap {
    max-width: 1720px;
    padding: 32px;
    margin: auto;
    min-width: 0
}

.theme-switch {
    display: flex;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 3px;
    border-radius: 10px;
    gap: 2px
}

    .theme-switch button {
        padding: 7px;
        color: var(--muted);
        background: transparent;
        border-radius: 7px
    }

    .theme-switch .icon {
        width: 17px;
        height: 17px
    }

    .theme-switch .selected-theme {
        background: var(--surface);
        box-shadow: 0 2px 5px #0001;
        color: var(--ink)
    }

.avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    background: #e8eef6;
    color: #294867;
    font-weight: bold;
    font-size: 21px
}

.user-menu {
    position: relative
}

    .user-menu summary {
        list-style: none;
        display: flex;
        gap: 10px;
        align-items: center;
        cursor: pointer;
        font-size: 16px
    }

        .user-menu summary::-webkit-details-marker {
            display: none
        }

.user-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    inset-inline-end: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 30px #0002;
    padding: 10px;
    display: grid;
    z-index: 50
}

    .user-dropdown button {
        justify-content: flex-start
    }

.app-footer {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    margin-top: 38px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px
}

    .app-footer > span:last-child {
        text-align: left
    }

    .app-footer button {
        font-size: 13px;
        padding: 0
    }

.nav-backdrop {
    display: none
}

.collapsed {
    padding-inline-start: 88px
}

    .collapsed .sidebar {
        width: 88px;
        padding-inline: 12px
    }

    .collapsed .brand {
        padding: 0;
        justify-content: center
    }

    .collapsed .brand-text, .collapsed .sidebar-caption, .collapsed .nav-label, .collapsed .sidebar nav button span, .collapsed .bottomnote span:last-child, .collapsed .nav-dot {
        display: none !important
    }

    .collapsed .sidebar nav {
        margin-top: 25px
    }

        .collapsed .sidebar nav button {
            justify-content: center;
            padding: 12px
        }

    .collapsed .bottomnote {
        justify-content: center
    }

.pagehead {
    align-items: center;
    margin-bottom: 24px
}

    .pagehead h1 {
        margin: 0
    }

.eyebrow {
    font-size: 13px;
    letter-spacing: 0;
    color: var(--accent);
    margin-bottom: 6px
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 22px
}

.hero {
    background: linear-gradient(115deg,#122842,#274967);
    padding: 34px 38px;
    min-height: 215px;
    border-radius: 18px;
    box-shadow: 0 9px 24px #11233812;
    border: 1px solid #354f68;
    margin-bottom: 26px
}

    .hero:after {
        content: '';
        position: absolute;
        width: 260px;
        height: 260px;
        border: 1px solid #ffffff0b;
        border-radius: 50%;
        left: -50px;
        top: -100px;
        box-shadow: 0 0 0 35px #ffffff03,0 0 0 70px #ffffff02;
        pointer-events: none
    }

    .hero h1 {
        font-size: 34px;
        margin-bottom: 12px
    }

    .hero p {
        font-size: 18px;
        color: #c5d3e3;
        max-width: 690px
    }

    .hero .eyebrow {
        color: #dfc38c
    }

    .hero .button, .hero button {
        position: relative;
        z-index: 1
    }

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

.stats .card {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 125px;
    border-top: 3px solid #b69b66
}

.stats b {
    font-size: 39px;
    color: var(--ink);
    line-height: 1.2
}

.stats small {
    font-size: 16px;
    display: block;
    margin-top: 10px
}

.grid {
    gap: 20px
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--accent);
    margin-bottom: 20px
}

.notice {
    font-size: 16px;
    color: var(--ink);
    background: var(--soft);
    border-right: 3px solid var(--accent);
    padding: 13px 18px;
    border-radius: 9px
}

    .notice.error {
        color: #b8464b;
        background: #bd475512;
        border-color: #bf5360
    }

.tools {
    gap: 9px;
    align-items: flex-end
}

    .tools button {
        min-height: 44px
    }

.context-bar {
    display: grid;
    grid-template-columns: .8fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px
}

    .context-bar > div {
        display: grid;
        grid-template-columns: 30px 1fr;
        gap: 4px 8px
    }

        .context-bar > div small {
            grid-column: 2
        }

        .context-bar > div .icon {
            color: var(--accent)
        }

.tabs {
    display: flex;
    gap: 5px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin: 0 0 22px;
    overflow-x: auto
}

    .tabs button {
        background: transparent;
        color: var(--muted);
        border-radius: 0;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 13px 20px;
        box-shadow: none
    }

        .tabs button[aria-selected=true] {
            color: var(--primary);
            border-color: var(--accent);
            font-weight: bold
        }

.tablewrap {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    overflow: auto;
    max-width: 100%;
    box-shadow: var(--shadow)
}

table {
    background: var(--surface);
    color: var(--ink)
}

th {
    background: var(--soft);
    font-size: 15px;
    color: var(--muted);
    font-weight: 600
}

th, td {
    border-bottom: 1px solid var(--line);
    padding: 15px 17px
}

td {
    font-size: 17px
}

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

tbody tr:hover {
    background: color-mix(in srgb,var(--soft) 40%,transparent)
}

td button {
    font-size: 15px;
    padding: 7px 10px;
    margin: 2px
}

.badge {
    font-size: 14px;
    background: var(--soft);
    color: var(--ink);
    padding: 4px 12px
}

    .badge.ok {
        background: #2e8c6a18;
        color: #2c9671
    }

    .badge.warn {
        background: #b47e1718;
        color: var(--accent)
    }

    .badge.live {
        background: #2e82b918;
        color: #4696c8
    }

.flow {
    gap: 14px
}

    .flow > div {
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 20px;
        position: relative
    }

    .flow b {
        font-size: 26px;
        color: var(--accent)
    }

    .flow p {
        font-size: 15px;
        color: var(--muted);
        margin: 0
    }

    .flow h3 {
        font-size: 18px;
        margin-top: 10px
    }

.progress {
    background: var(--soft);
    height: 8px
}

    .progress > div {
        background: var(--primary)
    }

dialog {
    padding: 30px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 25px 100px #0005;
    max-height: 88dvh;
    overflow: auto
}

    dialog::backdrop {
        background: #081b34a8;
        backdrop-filter: blur(3px)
    }

    dialog h2 {
        margin-bottom: 22px
    }

.formgrid {
    gap: 19px
}

    .formgrid label:has(textarea) {
        grid-column: 1/-1
    }

.actions {
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

    .comparison section {
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 20px;
        background: var(--bg)
    }

.audit-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
    gap: 7px;
    margin: 0
}

    .audit-values dt {
        color: var(--muted)
    }

    .audit-values dd {
        margin: 0;
        overflow-wrap: anywhere
    }

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 16px
}

    .pagination > span {
        margin-inline-end: auto
    }

.native-select {
    position: absolute !important;
    opacity: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    pointer-events: none
}

.search-select {
    position: relative;
    min-width: 0;
    margin-top: 5px
}

    .search-select:after {
        content: '';
        width: 8px;
        height: 8px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        position: absolute;
        inset-inline-end: 16px;
        top: calc(50% - 6px);
        color: var(--muted);
        pointer-events: none
    }

    .search-select > input {
        padding-inline-end: 35px;
        margin: 0;
        cursor: pointer;
        min-width: 0
    }

.select-options {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px #0003;
    overflow: auto;
    padding: 5px;
    z-index: 200
}

    .select-options button {
        display: block;
        width: 100%;
        text-align: start;
        background: transparent;
        color: var(--ink);
        border-radius: 6px;
        padding: 8px 11px;
        font-size: 16px;
        font-weight: normal;
        white-space: normal
    }

        .select-options button.highlight, .select-options button:hover {
            background: var(--soft)
        }

        .select-options button[aria-selected=true] {
            color: var(--primary);
            font-weight: bold
        }

.select-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 15px
}

.empty {
    color: var(--muted);
    font-size: 17px
}

.login {
    max-width: 510px;
    margin: 7vh auto;
    padding: 36px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 20px 70px #162c4712
}

    .login .brand {
        color: var(--ink);
        justify-content: flex-start;
        padding: 0
    }

        .login .brand strong {
            font-size: 20px
        }

.login-institution {
    color: var(--muted);
    font-size: 17px;
    margin: 25px 0 8px
}

.login h1 {
    font-size: 30px
}

.login button[type=submit] {
    width: 100%;
    margin-top: 12px
}

.examheader {
    background: #162d49;
    border-bottom: 3px solid #b79b61
}

    .examheader .ghost {
        color: #dfc58d
    }

.examcontent .questiontext {
    font-size: 25px;
    line-height: 1.9
}

.option {
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 20px;
    padding: 18px;
    border-radius: 12px
}

    .option:has(input:checked) {
        background: var(--soft);
        border-color: var(--primary);
        box-shadow: inset -3px 0 var(--primary)
    }

.qnav button {
    background: var(--soft);
    color: var(--ink);
    font-size: 16px
}

.qnav .answered {
    background: #26816a20;
    color: #329979
}

.qnav .current {
    outline: 2px solid var(--accent)
}

.timer {
    font-family: Calibri,monospace;
    font-size: 40px;
    font-variant-numeric: tabular-nums
}

.offline {
    background: var(--bg)
}

.studentHelp {
    font-size: 16px
}

.save {
    font-size: 15px;
    color: #329979
}

.seat {
    background: var(--surface)
}

.toast {
    background: var(--ink);
    color: var(--surface);
    font-size: 17px;
    box-shadow: 0 8px 30px #0003
}

.dashboard-extra {
    margin-top: 22px
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin: 22px 0
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px
}

    .metric b {
        font-size: 26px;
        display: block
    }

    .metric span {
        font-size: 14px;
        color: var(--muted)
    }

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.chart-row {
    margin: 13px 0
}

    .chart-row .row {
        justify-content: space-between;
        font-size: 16px
    }

    .chart-row .progress {
        margin: 8px 0
    }

.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 190px;
    padding-top: 18px;
    overflow-x: auto
}

.daily-col {
    flex: 1;
    min-width: 34px;
    text-align: center;
    font-size: 12px;
    color: var(--muted)
}

    .daily-col b {
        display: block;
        font-size: 15px;
        color: var(--ink)
    }

    .daily-col i {
        display: block;
        border-radius: 5px 5px 0 0;
        background: linear-gradient(#a1b8cd,#355b7e);
        min-height: 3px;
        margin: 6px auto;
        width: 75%
    }

    .daily-col span {
        white-space: nowrap
    }

.chart-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--muted)
}

@media(max-width:1200px) {
    .topbar {
        padding-inline: 22px
    }

    .contentwrap {
        padding: 24px
    }

    .user-label {
        max-width: 140px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    .grid.stats {
        gap: 12px
    }

    .stats .card {
        padding: 20px
    }
}

@media(max-width:980px) {
    .shell, .shell.collapsed {
        padding-inline-start: 0
    }

    .sidebar, .collapsed .sidebar {
        width: 278px;
        position: fixed;
        height: 100dvh;
        padding: 25px 18px;
        transform: translateX(100%);
        visibility: hidden
    }

    .mobile-open .sidebar {
        transform: none;
        visibility: visible
    }

    .mobile-open .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #07132799;
        z-index: 39;
        border-radius: 0
    }

    .sidebar nav {
        display: block;
        overflow: visible;
        margin: 0
    }

    .collapsed .brand-text, .collapsed .sidebar-caption, .collapsed .nav-label, .collapsed .sidebar nav button span {
        display: block !important
    }

    .collapsed .brand {
        justify-content: flex-start
    }

    .collapsed .sidebar nav button {
        justify-content: flex-start
    }

    .sidebar .bottomnote {
        display: flex
    }

    .main {
        padding: 0
    }

    .flow {
        grid-template-columns: 1fr 1fr
    }

    .topbar {
        flex-wrap: nowrap
    }

    .collapsed .sidebar nav {
        margin: 0
    }

    .grid.stats {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .user-label {
        display: none
    }

    .chart-grid {
        grid-template-columns: 1fr
    }

    .context-bar {
        grid-template-columns: 1fr 1fr
    }

        .context-bar > div {
            grid-column: 1/-1
        }
}

@media(max-width:640px) {
    .topbar {
        height: 76px;
        padding: 12px 15px;
        gap: 8px
    }

    .topbar-right, .topbar-left {
        gap: 8px
    }

    .topbar strong {
        font-size: 16px;
        max-width: 150px
    }

    .topbar small {
        font-size: 11px
    }

    .theme-switch {
        gap: 0;
        padding: 2px
    }

        .theme-switch button {
            padding: 5px
        }

        .theme-switch .icon {
            width: 15px;
            height: 15px
        }

    .avatar {
        width: 33px;
        height: 33px
    }

    .contentwrap {
        padding: 18px 14px
    }

    .hero {
        padding: 25px;
        min-height: 0
    }

        .hero h1 {
            font-size: 27px
        }

        .hero p {
            font-size: 16px
        }

    .card {
        padding: 20px
    }

    .stats .card {
        padding: 17px
    }

    .stats b {
        font-size: 32px
    }

    .stats small {
        font-size: 15px
    }

    h1 {
        font-size: 27px
    }

    .context-bar {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 18px
    }

    .comparison, .formgrid {
        grid-template-columns: 1fr
    }

    .metrics-strip {
        grid-template-columns: 1fr 1fr
    }

    .app-footer {
        flex-direction: column;
        font-size: 12px
    }

        .app-footer > span:last-child {
            text-align: right
        }

    .flow {
        grid-template-columns: 1fr
    }

    .login {
        margin: 30px 16px;
        padding: 25px
    }

    .examcontent {
        padding: 20px 14px
    }

    .examheader {
        flex-wrap: wrap;
        padding: 16px
    }

    .examcontent .questiontext {
        font-size: 22px
    }

    .option {
        font-size: 19px
    }

    .tabs button {
        font-size: 16px;
        padding: 12px
    }

    .wideinput {
        min-width: 0;
        width: 100%
    }

    dialog {
        padding: 22px 18px
    }

    .pagination {
        flex-wrap: wrap
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media print {
    .shell, .collapsed {
        padding: 0
    }

    .sidebar, .topbar, .app-footer, .tools, .theme-switch {
        display: none !important
    }

    .contentwrap {
        padding: 0
    }
}

.hall {
    padding: 24px
}

    .hall .topbar {
        position: static;
        height: auto;
        min-height: 88px;
        border-radius: 14px;
        margin-bottom: 24px
    }

        .hall .topbar h1 {
            margin: 0
        }

.grid.stats {
    margin-bottom: 22px
}

.public-footer {
    text-align: center;
    padding: 24px 15px;
    color: var(--muted);
    font-size: 13px
}

.login .brand small {
    color: var(--muted)
}
/* 2.1 workflow and navigation */
body {
    -webkit-user-select: none;
    user-select: none
}

input, textarea {
    -webkit-user-select: text;
    user-select: text
}

.avatar, .mark, .bottomnote {
    display: none !important
}

.user-menu summary {
    gap: 12px
}

.user-label {
    display: block !important;
    max-width: 175px
}

.menu-chevron {
    width: 17px;
    height: 17px;
    transition: transform .15s
}

.user-menu[open] .menu-chevron {
    transform: rotate(180deg)
}

.brand-text strong {
    font-size: 23px
}

.sidebar .brand {
    padding: 6px 12px 15px;
    border-bottom: 1px solid #ffffff15
}

.sidebar-caption {
    display: none
}

.nav-group {
    margin: 16px 0 8px
}

.nav-label {
    font-size: 15px;
    padding: 12px;
    margin: 0;
    border: 1px solid #ffffff12;
    border-radius: 10px;
    cursor: pointer;
    color: #d3dfed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff04
}

    .nav-label:after {
        content: '';
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        margin: 0 5px 5px;
        color: #d9bd7d;
        transition: transform .2s ease, color .2s ease
    }

.group-open .nav-label:after {
    transform: rotate(225deg)
}

.nav-group > button {
    margin-top: 4px !important;
    padding-inline-start: 22px !important
}

.nav-group:not(.group-open) > button {
    display: none
}

.collapsed .nav-group > button {
    display: flex;
    padding-inline-start: 12px !important
}

.collapsed .brand-text {
    display: none !important
}

.collapsed .sidebar .brand {
    height: 10px;
    padding: 0;
    border: 0
}

.collapsed .sidebar nav {
    margin-top: 0
}

.collapsed .nav-group {
    margin: 0
}

.collapsed .nav-label {
    display: none
}

.sidebar nav button {
    font-size: 16px
}

.contentwrap {
    padding-top: 24px
}

.pagehead .eyebrow {
    display: none
}

.pagehead h1 {
    font-size: 29px
}

.notice {
    font-size: 15px
}

.tools {
    gap: 10px
}

.grid-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    background: var(--surface);
    padding: 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    margin-top: 18px
}

    .grid-controls label {
        font-size: 14px
    }

        .grid-controls label:first-child {
            flex: 1;
            min-width: 160px;
            max-width: 360px
        }

        .grid-controls label:nth-child(2) {
            width: 115px
        }

    .grid-controls .grid-count {
        margin-inline: auto;
        font-size: 14px;
        color: var(--muted)
    }

    .grid-controls button {
        padding: 9px 12px
    }

    .grid-controls + .tablewrap {
        border-radius: 0 0 12px 12px
    }

.grid-page {
    font-size: 14px;
    direction: ltr
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .7fr 1.2fr auto;
    align-items: end;
    gap: 14px;
    background: var(--surface);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 20px
}

    .filter-grid label {
        font-size: 15px
    }

    .filter-grid button {
        height: 45px
    }

.workflow {
    list-style: none;
    counter-reset: none;
    display: flex;
    padding: 0;
    margin: 20px 0 24px;
    gap: 10px
}

    .workflow li {
        flex: 1;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        gap: 12px;
        align-items: center;
        color: var(--muted);
        font-size: 16px;
        position: relative
    }

    .workflow b {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--soft);
        font-size: 18px;
        flex: none
    }

    .workflow .current {
        border-color: var(--accent);
        color: var(--ink);
        box-shadow: 0 3px 12px #1023370a
    }

        .workflow .current b {
            background: #c9aa69;
            color: #142b44;
            border-color: #c9aa69
        }

    .workflow .complete b {
        background: #237457;
        color: #fff;
        border-color: #237457
    }

.import-workspace {
    min-height: 180px
}

    .import-workspace h2 {
        font-size: 23px;
        margin-bottom: 25px
    }

.action-groups {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-bottom: 24px
}

    .action-groups section {
        background: var(--surface);
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 13px
    }

    .action-groups h3 {
        font-size: 17px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
        margin: 0 0 12px
    }

    .action-groups button {
        font-size: 15px;
        margin: 4px 2px;
        padding: 9px 12px
    }

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    position: sticky;
    top: 88px;
    z-index: 20;
    background: var(--bg);
    padding: 10px 0
}

    .settings-tabs a {
        color: var(--ink);
        text-decoration: none;
        padding: 10px 18px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--surface)
    }

        .settings-tabs a:hover {
            border-color: var(--accent)
        }

#settingsForm21 section {
    scroll-margin-top: 155px
}

#settingsForm21 .formgrid {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

#settingsForm21 label:has(input[type=checkbox]) {
    display: flex;
    align-items: center;
    gap: 14px
}

.sticky-save {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 25;
    box-shadow: 0 -8px 24px #13274109
}

.mail-test {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 25px
}

.logo-editor {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line)
}

    .logo-editor img {
        width: 80px;
        height: 80px;
        object-fit: contain
    }

    .logo-editor label {
        flex: 1;
        min-width: 180px
    }

.pagination label {
    min-width: 100px;
    max-width: 145px;
    font-size: 14px
}

.pagination {
    align-items: end
}

.result .score {
    font-family: Calibri,Arial;
    color: var(--primary)
}

.examcontent {
    grid-template-columns: minmax(0,1fr) 330px
}

.examheader {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 15px 4%
}

    .examheader .timer {
        font-size: 38px
    }

.examcontent aside .card {
    padding: 23px
}

.qnav {
    grid-template-columns: repeat(5,1fr);
    gap: 12px
}

    .qnav button {
        min-height: 54px;
        font-size: 24px;
        font-weight: bold;
        position: relative;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        padding: 9px
    }

    .qnav .answered {
        background: #e4f5e9;
        border-color: #5ca47b;
        color: #17623b
    }

    .qnav .current {
        outline: 3px solid var(--accent);
        outline-offset: 2px
    }

    .qnav .flagged:after {
        display: none
    }

.answered-check {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #21834d;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-style: normal;
    border: 2px solid var(--surface)
}

.review-star {
    position: absolute;
    top: -9px;
    right: -3px;
    color: #ac7b18;
    font-size: 20px;
    font-style: normal
}

.question-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    margin: 22px 0 14px
}

.answered-key {
    color: #2f985f
}

.flag-key {
    color: var(--accent)
}

.minimum-panel {
    padding: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 5px;
    font-size: 15px;
    margin-bottom: 14px
}

    .minimum-panel strong {
        font-size: 16px;
        color: var(--primary)
    }

.examcontent aside button:not([data-question]) {
    width: 100%;
    margin: 5px 0
}

.exam-bottom-clock {
    display: flex;
    justify-content: center;
    margin: 25px 0
}

.clock-ring {
    --clock-progress: 360deg;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) var(--clock-progress),var(--line) 0);
    padding: 9px;
    box-shadow: var(--shadow);
    direction: ltr
}

    .clock-ring > div {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: var(--surface);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px
    }

    .clock-ring b {
        font-family: Calibri,Arial;
        font-variant-numeric: tabular-nums;
        font-size: 28px;
        color: var(--ink)
    }

    .clock-ring small {
        font-size: 15px
    }

.questiontext {
    font-weight: 500
}

.option {
    border-width: 2px;
    padding: 18px 20px;
    align-items: center;
    min-height: 65px
}

    .option input {
        height: 23px;
        width: 23px;
        margin: 0
    }

    .option:has(input:checked) {
        border-color: #3b739a;
        background: color-mix(in srgb,var(--soft) 80%,var(--surface));
        box-shadow: inset -4px 0 #3b739a
    }

.questiontext {
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 25px !important
}

.pill {
    font-size: 20px;
    padding: 8px 14px;
    color: var(--ink);
    background: var(--soft)
}

    .pill small {
        font-size: 15px
    }

.examcontent .actions {
    justify-content: space-between
}

    .examcontent .actions button {
        min-width: 120px
    }

dialog form > label {
    margin: 15px 0
}

@media(max-width:1200px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr
    }

        .filter-grid button {
            width: 100px
        }

    .workflow li {
        padding: 12px;
        font-size: 14px;
        gap: 8px
    }

    .action-groups {
        grid-template-columns: 1fr 1fr
    }

        .action-groups section:last-child {
            grid-column: 1/-1
        }

    #settingsForm21 .formgrid {
        grid-template-columns: 1fr 1fr
    }

    .examcontent {
        grid-template-columns: minmax(0,1fr) 290px
    }

    .qnav {
        gap: 9px
    }

        .qnav button {
            font-size: 22px
        }
}

@media(max-width:980px) {
    .collapsed .brand-text {
        display: block !important
    }

    .collapsed .sidebar .brand {
        height: auto;
        padding: 6px 12px 15px
    }

    .collapsed .nav-label {
        display: flex !important
    }

    .collapsed .nav-group:not(.group-open) > button {
        display: none
    }

    .workflow {
        flex-wrap: wrap
    }

        .workflow li {
            flex: 1 1 40%
        }

    .examcontent {
        grid-template-columns: 1fr
    }

        .examcontent aside {
            order: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 18px
        }

    .qnav {
        grid-template-columns: repeat(5,1fr)
    }

    .user-label {
        max-width: 100px;
        font-size: 14px
    }

        .user-label small {
            display: none
        }

    .settings-tabs {
        top: 76px
    }
}

@media(max-width:640px) {
    .filter-grid {
        grid-template-columns: 1fr
    }

    .action-groups {
        grid-template-columns: 1fr
    }

        .action-groups section:last-child {
            grid-column: auto
        }

    .grid-controls {
        gap: 8px
    }

        .grid-controls .grid-count {
            width: 100%;
            margin: 0
        }

    .workflow li {
        padding: 10px;
        font-size: 13px
    }

    .workflow b {
        width: 27px;
        height: 27px
    }

    .user-label {
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .topbar-left {
        gap: 4px
    }

    .theme-switch .icon {
        width: 12px;
        height: 12px
    }

    .menu-chevron {
        width: 13px
    }

    .topbar-right strong {
        font-size: 14px
    }

    .examcontent aside {
        display: block
    }

    .qnav {
        grid-template-columns: repeat(5,1fr)
    }

        .qnav button {
            font-size: 24px;
            min-height: 55px
        }

    .examheader {
        position: relative
    }

        .examheader .timer {
            font-size: 35px
        }

    .examcontent .actions button {
        min-width: 95px
    }

    #settingsForm21 .formgrid {
        grid-template-columns: 1fr
    }

    .settings-tabs a {
        font-size: 14px;
        padding: 8px 10px
    }
}
/* Revision 3: reviewable workflows and local SweetAlert2 */
.flow-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:22px 0}.flow-cards .card{margin:0}.wide-dialog{width:min(96vw,1500px);max-width:96vw}.preview-data .tablewrap{max-height:62vh;overflow:auto}.preview-data th{position:sticky;top:0;z-index:1;background:#17324d;color:white}.preview-data td.wrap{min-width:200px;max-width:360px;white-space:normal}.correct-cell{background:#e5f7ed!important;color:#155e38!important;font-weight:bold}.home-link{display:block;margin:24px auto;max-width:520px;padding:0 18px;color:var(--accent,#2c6483)}.swal2-container{direction:rtl;z-index:2147483647!important}.swal2-popup{font-family:inherit!important;border-radius:22px!important}.swal2-confirm{background:#176853!important}.swal2-cancel{background:#64748b!important}.swal2-title{font-size:1.3rem!important}.swal2-html-container{white-space:pre-wrap;line-height:1.8!important}.swal2-container button{width:auto}dialog .swal2-container{position:fixed}.tablewrap input[type=checkbox]{width:20px;height:20px;accent-color:#176853}

/* v3.1: explicit management panels and full-width exam context */
.exam-context-selector{display:block;width:100%;box-sizing:border-box;padding:22px;margin:0 0 22px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);box-shadow:0 4px 18px #18345206}
.exam-select-label{display:block;width:100%;max-width:none;font-size:17px;font-weight:700}
.exam-select-label small{display:block;margin:6px 0 14px;color:var(--muted);font-size:13px;font-weight:400}
.exam-context-selector .search-select,.exam-context-selector select{width:100%;max-width:none}
.exam-context-selector .search-select input{width:100%;min-height:62px;font-size:16px;font-weight:600;padding-inline:18px 42px}
.select-options button{white-space:normal;line-height:1.8;text-align:start}
.row-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:240px;max-width:380px}
.exam-code{display:inline-block;direction:ltr;unicode-bidi:isolate;font-size:16px;font-weight:700;white-space:nowrap}
.nav-label:focus-visible{outline:2px solid #d9bd7d;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.nav-label:after{transition:none}}
@media(max-width:640px){.exam-context-selector{padding:14px}.exam-context-selector .search-select input{font-size:14px}}
