:root {
    --brand-orange: #f58220;
    --brand-orange-dark: #c6530a;
    --brand-orange-darker: #a94300;
    --brand-orange-soft: #fff3e8;
    --brand-gold-soft: #fff8ed;
    --ink-strong: #1f2933;
    --ink: #374151;
    --ink-muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --page: #f4f6f8;
    --success: #18794e;
    --success-soft: #ecfdf3;
    --warning: #9a6700;
    --warning-soft: #fff8db;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --info: #175cd3;
    --info-soft: #eff6ff;
    --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
    --shadow-md: 0 10px 28px rgba(31, 41, 51, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background:
        linear-gradient(180deg, #fffaf5 0, var(--page) 230px);
}

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

a {
    color: var(--brand-orange-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-orange-darker);
}

.site-header {
    color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.98);
    border-top: 4px solid var(--brand-orange);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.site-header-inner {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand-mark {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px 2px 8px 2px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--brand-orange) 0%,
            var(--brand-orange-dark) 100%
        );
    box-shadow: 0 7px 16px rgba(198, 83, 10, 0.22);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-title {
    color: var(--ink-strong);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.identity-badge {
    flex: 0 0 auto;
    max-width: 48%;
    padding: 8px 12px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #8a3b08;
    background: var(--brand-orange-soft);
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 0 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.nav-link:hover {
    color: var(--brand-orange-darker);
    background: var(--brand-orange-soft);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #8a3b08;
    background: #ffead5;
    box-shadow: inset 0 -2px 0 var(--brand-orange);
}

.nav-link:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.35);
    outline-offset: 2px;
}

.nav-link-logout {
    margin-left: 0;
    color: #7a271a;
}

.nav-logout-form {
    position: sticky;
    right: 0;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding-left: 6px;
    background: rgba(255, 255, 255, 0.98);
}

.nav-logout-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
    color: #7a271a;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.nav-logout-button:hover {
    color: var(--brand-orange-darker);
    background: var(--brand-orange-soft);
    transform: translateY(-1px);
}

.nav-logout-button:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.35);
    outline-offset: 2px;
}


.page-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 30px auto 46px;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--ink-strong);
    line-height: 1.35;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(22px, 2.2vw, 28px);
}

h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

p {
    margin-top: 0;
}

.card {
    position: relative;
    margin-bottom: 20px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--brand-orange) 0,
            #f6a04d 32%,
            rgba(246, 160, 77, 0) 78%
        );
    content: "";
}

.card > :last-child {
    margin-bottom: 0;
}

.form-card {
    width: 100%;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

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

.stat {
    position: relative;
    min-width: 0;
    padding: 17px 17px 16px;
    overflow: hidden;
    border: 1px solid #eceff2;
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, #ffffff 0%, var(--surface-soft) 100%);
    box-shadow: 0 4px 12px rgba(31, 41, 51, 0.04);
}

.stat::after {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 130, 32, 0.09);
    content: "";
}

.stat .label {
    position: relative;
    z-index: 1;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 600;
}

.stat .value {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: var(--ink-strong);
    font-size: 30px;
    font-weight: 760;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--brand-orange-dark);
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--brand-orange-dark);
    box-shadow: 0 4px 10px rgba(198, 83, 10, 0.16);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.btn:hover {
    border-color: var(--brand-orange-darker);
    color: #ffffff;
    background: var(--brand-orange-darker);
    box-shadow: 0 6px 15px rgba(169, 67, 0, 0.22);
    transform: translateY(-1px);
}

.btn:focus-visible,
.captcha-refresh:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.34);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    border-color: #cfd4dc;
    color: #344054;
    background: #ffffff;
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: #f0a35d;
    color: #8a3b08;
    background: var(--brand-orange-soft);
    box-shadow: none;
}

.btn-danger {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: 0 4px 10px rgba(180, 35, 24, 0.14);
}

.btn-danger:hover {
    border-color: #8f1d14;
    background: #8f1d14;
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
    box-shadow: 0 4px 10px rgba(24, 121, 78, 0.14);
}

.btn-success:hover {
    border-color: #11613e;
    background: #11613e;
}

.messages {
    margin-bottom: 18px;
}

.message {
    margin-bottom: 9px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--info);
    border-radius: var(--radius-md);
    color: #1849a9;
    background: var(--info-soft);
    box-shadow: var(--shadow-sm);
}

.message.success {
    border-color: #a6f4c5;
    border-left-color: var(--success);
    color: #05603a;
    background: var(--success-soft);
}

.message.warning {
    border-color: #fedf89;
    border-left-color: var(--warning);
    color: #7a4d00;
    background: var(--warning-soft);
}

.message.error {
    border-color: #fecdca;
    border-left-color: var(--danger);
    color: #912018;
    background: var(--danger-soft);
}

form p {
    margin-bottom: 17px;
}

.form-card label,
.filter-form label,
.login-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 650;
}

.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card input[type="datetime-local"],
.form-card select,
.form-card textarea,
.filter-form input,
.filter-form select,
.small-input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-card textarea {
    min-height: 92px;
    resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.filter-form input:focus,
.filter-form select:focus,
.small-input:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.16);
}

.form-card input[type="checkbox"],
.form-card input[type="radio"],
.student-checkbox {
    width: 17px;
    height: 17px;
    margin-right: 6px;
    accent-color: var(--brand-orange-dark);
    vertical-align: -3px;
}

.form-card ul {
    margin: 8px 0;
}

.helptext,
.form-card .helptext {
    display: block;
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 13px;
}

.login-form-field {
    margin-bottom: 18px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image {
    display: block;
    max-width: 190px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    object-fit: contain;
}

.captcha-refresh {
    padding: 7px 9px;
    border: 0;
    color: var(--brand-orange-dark);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.captcha-refresh:hover {
    color: var(--brand-orange-darker);
    text-decoration: underline;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed #f0a35d;
    border-radius: var(--radius-sm);
    background: var(--brand-gold-soft);
}

.result-box {
    margin-top: 20px;
    padding-top: 24px;
}

.error-list,
.errorlist {
    margin: 8px 0 0;
    padding: 10px 14px 10px 32px;
    border: 1px solid #fecdca;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
    font-size: 13px;
}

.readonly-box {
    margin: 16px 0 20px;
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--brand-orange);
    border-radius: var(--radius-md);
    background: var(--brand-gold-soft);
}

.readonly-box p {
    margin-bottom: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    color: #344054;
    background: #f2f4f7;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.tag-success {
    border-color: #a6f4c5;
    color: #05603a;
    background: var(--success-soft);
}

.tag-warning {
    border-color: #fedf89;
    color: #7a4d00;
    background: var(--warning-soft);
}

.tag-danger {
    border-color: #fecdca;
    color: #912018;
    background: var(--danger-soft);
}

.tag-info {
    border-color: #b2ddff;
    color: #1849a9;
    background: var(--info-soft);
}

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

.actions form {
    margin: 0;
}

.checkbox-cell {
    width: 60px;
    text-align: center;
}

.notice {
    margin-bottom: 17px;
    padding: 14px 16px;
    border: 1px solid #e4e7ec;
    border-left: 4px solid #98a2b3;
    border-radius: var(--radius-md);
    color: #344054;
    background: var(--surface-soft);
}

.notice-warning {
    border-color: #fedf89;
    border-left-color: var(--warning);
    color: #7a4d00;
    background: var(--warning-soft);
}

.notice-success {
    border-color: #a6f4c5;
    border-left-color: var(--success);
    color: #05603a;
    background: var(--success-soft);
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    color: var(--ink);
    font-size: 14px;
}

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

th {
    color: #344054;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

table tr:first-child th:first-child {
    border-top-left-radius: var(--radius-sm);
}

table tr:first-child th:last-child {
    border-top-right-radius: var(--radius-sm);
}

table tr:not(:first-child):hover td {
    background: #fffaf5;
}

td[colspan] {
    padding: 28px 16px;
    color: var(--ink-muted);
    text-align: center;
}

.filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 17px 0 20px;
    padding: 16px;
    border: 1px solid #eceff2;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.filter-form > div {
    min-width: 190px;
}

.filter-form > div:last-child {
    min-width: auto;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    scrollbar-width: thin;
}

.table-scroll table {
    min-width: 760px;
}

.table-scroll th,
.table-scroll td {
    border-right: 1px solid #f0f1f3;
}

.table-scroll th:last-child,
.table-scroll td:last-child {
    border-right: 0;
}

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

.stat-table {
    max-width: 680px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.small-input {
    max-width: 260px;
}

.summary-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.summary-pill {
    padding: 8px 13px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #7c3a0b;
    background: var(--brand-orange-soft);
    font-size: 14px;
}

.summary-pill strong {
    margin-left: 4px;
    color: var(--brand-orange-darker);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pagination a,
.pagination span {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    line-height: 1.4;
    text-decoration: none;
}

.pagination a {
    color: var(--brand-orange-dark);
    font-weight: 600;
}

.pagination a:hover {
    border-color: #f0a35d;
    color: var(--brand-orange-darker);
    background: var(--brand-orange-soft);
}

.pagination span {
    color: var(--ink-muted);
}

.site-footer {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 28px;
    color: var(--ink-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1050px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .site-header-inner,
    .page-shell,
    .site-footer {
        width: min(100% - 24px, 1320px);
    }

    .header-top {
        align-items: flex-start;
        min-height: auto;
    }

    .identity-badge {
        max-width: 52%;
    }

    .nav-link-logout {
        margin-left: 0;
    }

    .page-shell {
        margin-top: 20px;
    }

    .card {
        padding: 20px;
    }

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

@media (max-width: 560px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    .identity-badge {
        max-width: 100%;
        text-align: left;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .page-shell {
        margin-bottom: 32px;
    }

    .card {
        padding: 18px 15px;
        border-radius: var(--radius-md);
    }

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

    .filter-form {
        align-items: stretch;
        padding: 14px;
    }

    .filter-form > div {
        width: 100%;
        min-width: 0;
    }

    .filter-form .btn {
        width: 100%;
        margin-bottom: 7px;
    }

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

    .actions > .btn,
    .actions > form,
    .actions > form .btn {
        width: 100%;
    }

    .captcha-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
.dashboard-hero {
    padding: 28px;
    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(245, 130, 32, 0.15) 0,
            rgba(245, 130, 32, 0) 26%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff8f1 100%);
}

.dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--brand-orange-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.dashboard-kicker::before {
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-orange);
    content: "";
}

.dashboard-description {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--ink-muted);
}

.dashboard-state {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #8a3b08;
    background: #fff7ed;
    font-size: 13px;
    font-weight: 650;
}

.dashboard-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.13);
}

.dashboard-stat-grid .stat {
    min-height: 126px;
}

.stat-heading {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stat-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #8a3b08;
    background: var(--brand-orange-soft);
    font-size: 13px;
    font-weight: 800;
}

.stat-success .stat-icon {
    color: #05603a;
    background: var(--success-soft);
}

.stat-warning .stat-icon {
    color: #7a4d00;
    background: var(--warning-soft);
}

.stat-info .stat-icon {
    color: #1849a9;
    background: var(--info-soft);
}

.stat-danger .stat-icon {
    color: #912018;
    background: var(--danger-soft);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.progress-card {
    padding: 16px 18px;
    border: 1px solid #eceff2;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    color: var(--ink-muted);
    font-size: 13px;
}

.progress-meta strong {
    color: var(--ink-strong);
    font-size: 16px;
}

.progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceff2;
}

.progress-fill {
    width: var(--progress-value);
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--brand-orange-dark),
            var(--brand-orange)
        );
}

.progress-fill-success {
    background:
        linear-gradient(
            90deg,
            #157347,
            #35a06f
        );
}

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

.dashboard-section-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.section-heading h3 {
    margin-bottom: 0;
}

.section-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #8a3b08;
    background: var(--brand-orange-soft);
    font-size: 14px;
    font-weight: 800;
}

.section-copy {
    flex: 1;
    color: var(--ink-muted);
}

.dashboard-section-card .actions {
    margin-top: auto;
    padding-top: 6px;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.account-summary-item {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.account-summary-item span {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
}

.account-summary-item strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-strong);
    font-size: 23px;
}


@media (max-width: 900px) {
    .dashboard-panels,
    .progress-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-hero {
        padding: 21px 16px;
    }

    .dashboard-heading {
        flex-direction: column;
        gap: 12px;
    }

    .account-summary {
        grid-template-columns: 1fr;
    }
}
.stats-overview-card {
    padding: 28px;
    background:
        radial-gradient(
            circle at 92% 16%,
            rgba(245, 130, 32, 0.14) 0,
            rgba(245, 130, 32, 0) 25%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.stats-summary-grid .stat {
    min-height: 122px;
}

.charts-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.78fr)
        minmax(0, 1.22fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    margin-bottom: 0;
}

.chart-card-full {
    grid-column: 1 / -1;
}

.chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.chart-card-header h3 {
    margin-bottom: 4px;
}

.chart-card-kicker {
    margin-bottom: 4px;
    color: var(--brand-orange-dark);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.chart-description {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.chart-meta-tag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #8a3b08;
    background: var(--brand-orange-soft);
    font-size: 12px;
    font-weight: 700;
}

.doughnut-chart-wrap {
    position: relative;
    width: min(100%, 330px);
    height: 285px;
    margin: 4px auto 0;
}

.doughnut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    flex-direction: column;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.doughnut-center strong {
    color: var(--ink-strong);
    font-size: 29px;
    line-height: 1.1;
}

.doughnut-center span {
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 12px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-muted);
    font-size: 13px;
}

.chart-legend-item strong {
    color: var(--ink-strong);
}

.chart-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-orange-dark);
}

.chart-legend-dot-muted {
    background: #d0d5dd;
}

.bar-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 26px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--ink-muted);
    background: var(--surface-soft);
    text-align: center;
}

.chart-library-warning {
    display: none;
    margin-top: 14px;
}

.chart-library-unavailable .chart-library-warning {
    display: block;
}

.chart-data-details {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.chart-data-details summary {
    padding: 11px 14px;
    color: var(--brand-orange-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.chart-data-details summary:hover {
    color: var(--brand-orange-darker);
    background: var(--brand-orange-soft);
}

.chart-data-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.chart-table-scroll {
    overflow-x: auto;
    padding: 0 14px 14px;
}

.chart-table-scroll .stat-table {
    max-width: none;
    border: 0;
}

.chart-table-scroll .skip-second-row td {
    color: #7a4d00;
    background: var(--warning-soft);
    font-weight: 650;
}

.student-detail-card h3 {
    margin-bottom: 3px;
}

.student-detail-description {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

@media (max-width: 950px) {
    .charts-layout {
        grid-template-columns: 1fr;
    }

    .chart-card-full {
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .stats-overview-card {
        padding: 21px 16px;
    }

    .chart-card-header {
        flex-direction: column;
        gap: 9px;
    }

    .doughnut-chart-wrap {
        height: 255px;
    }
}
.final-results-hero {
    padding: 28px;
    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(245, 130, 32, 0.14) 0,
            rgba(245, 130, 32, 0) 25%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.final-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 18px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.final-status-panel-published {
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.final-status-panel-unpublished {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.final-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.final-status-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #7a4d00;
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.final-status-panel-published .final-status-icon {
    color: #05603a;
}

.final-status-copy strong {
    display: block;
    color: var(--ink-strong);
    font-size: 14px;
}

.final-status-copy span {
    display: block;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 12px;
}

.final-results-actions {
    margin-top: 2px;
}

.final-summary-grid {
    margin-top: 18px;
}

.final-summary-grid .stat {
    min-height: 122px;
}

.final-charts-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.round-result-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
}

.department-capacity-card {
    grid-column: 1 / -1;
}

.department-capacity-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 360px;
}

.chart-legend-dot-success {
    background: var(--success);
}

.final-section-heading {
    margin-bottom: 16px;
}

.final-section-heading h3 {
    margin-bottom: 3px;
}

.final-section-description {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .final-charts-layout {
        grid-template-columns: 1fr;
    }

    .department-capacity-card {
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .final-results-hero {
        padding: 21px 16px;
    }

    .final-status-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .final-status-panel .btn {
        width: 100%;
    }
}

.volunteer-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 130, 32, 0.15) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.volunteer-page-hero h2 {
    margin: 6px 0 8px;
}

.volunteer-page-hero p {
    max-width: 650px;
    margin-bottom: 0;
}

.volunteer-student-badge {
    flex: 0 0 210px;
    padding: 15px 18px;
    border: 1px solid rgba(245, 130, 32, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
}

.volunteer-student-badge span,
.volunteer-student-badge small {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
}

.volunteer-student-badge strong {
    display: block;
    margin: 3px 0;
    color: var(--ink-strong);
    font-size: 18px;
}

.locked-volunteer-card,
.choice-form-card,
.choice-section,
.volunteer-review {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

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

.locked-volunteer-heading h3 {
    margin: 5px 0 4px;
}

.locked-volunteer-heading p {
    margin-bottom: 0;
}

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

.locked-choice-item {
    display: flex;
    gap: 15px;
    min-height: 135px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.locked-choice-primary {
    border-color: rgba(245, 130, 32, 0.32);
    background: var(--brand-orange-soft);
}

.locked-choice-number {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--brand-orange-dark);
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.locked-choice-label {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
}

.locked-choice-item h4 {
    margin: 7px 0 5px;
    color: var(--ink-strong);
    font-size: 18px;
}

.locked-choice-item p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.locked-volunteer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.locked-volunteer-footer p {
    margin: 0;
}

.locked-volunteer-footer p span {
    margin-right: 8px;
    color: var(--ink-muted);
    font-size: 12px;
}

.choice-form-card {
    padding: 25px;
}

.choice-form-heading h3 {
    margin: 5px 0 4px;
}

.choice-form-heading p {
    margin-bottom: 0;
}

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

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.rule-item > span {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 11px;
    font-weight: 800;
}

.rule-item p {
    margin: 1px 0 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.65;
}

.rule-item strong {
    color: var(--ink-strong);
}

.form-error-summary {
    max-width: 980px;
    margin: 0 auto 20px;
    padding: 16px 18px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-md);
    color: #912018;
    background: var(--danger-soft);
}

.form-error-summary strong {
    display: block;
    margin-bottom: 5px;
}

.form-error-summary p {
    margin: 3px 0 0;
}

.choice-section {
    padding: 25px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.choice-section-first {
    border-top: 3px solid var(--brand-orange);
}

.choice-section-second {
    border-top: 3px solid #8a94a6;
}

.choice-section-header {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.choice-step {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 13px;
    font-weight: 800;
}

.choice-section-second .choice-step {
    background: #667085;
}

.choice-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.choice-title h3 {
    margin: 0;
}

.choice-section-header p {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.required-chip,
.optional-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.required-chip {
    color: #b54708;
    background: var(--brand-orange-soft);
}

.optional-chip {
    color: #475467;
    background: #f2f4f7;
}

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

.form-field {
    min-width: 0;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.field-label-row label {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 700;
}

.required-mark,
.optional-mark {
    font-size: 11px;
    font-weight: 700;
}

.required-mark {
    color: var(--danger);
}

.optional-mark {
    color: var(--ink-muted);
}

.form-field select,
.form-field input[type="text"] {
    width: 100%;
    min-height: 44px;
    margin: 0;
}

.field-help {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 650;
}

.skip-choice-box {
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.skip-choice-box.is-active {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.skip-choice-control,
.intent-confirmation-control {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.skip-choice-control input,
.intent-confirmation-control input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand-orange);
}

.skip-choice-control label,
.intent-confirmation-control label {
    color: var(--ink-strong);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
    cursor: pointer;
}

.skip-choice-box > p,
.intent-confirmation > p {
    margin: 5px 0 0 27px;
    color: var(--ink-muted);
    font-size: 12px;
}

.choice-section.is-skipped {
    border-top-color: #f79009;
}

.choice-section.is-skipped .second-choice-fields {
    opacity: 0.45;
}

.choice-section.is-skipped .second-choice-fields select {
    cursor: not-allowed;
}

.volunteer-review {
    padding: 25px;
    border-top: 3px solid var(--brand-orange);
}

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

.review-item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.review-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 700;
}

.review-item strong {
    display: block;
    color: var(--ink-strong);
    font-size: 14px;
}

.intent-confirmation {
    padding: 16px 18px;
    border: 1px solid rgba(245, 130, 32, 0.34);
    border-radius: var(--radius-md);
    background: var(--brand-orange-soft);
}

.form-submit-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.btn:disabled {
    border-color: #d0d5dd;
    color: #98a2b3;
    background: #eaecf0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 700px) {
    .volunteer-page-hero,
    .locked-volunteer-heading,
    .locked-volunteer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-student-badge {
        flex-basis: auto;
        width: 100%;
    }

    .locked-choice-grid,
    .rules-grid,
    .field-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .locked-volunteer-heading .tag {
        align-self: flex-start;
    }

    .locked-volunteer-footer .btn,
    .form-submit-bar .btn {
        width: 100%;
    }

    .form-submit-bar {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

.match-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 13%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 26%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.match-page-hero h2 {
    margin: 6px 0 8px;
}

.match-page-hero p {
    max-width: 650px;
    margin-bottom: 0;
}

.match-department-badge {
    flex: 0 0 225px;
    padding: 15px 18px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
}

.match-department-badge span,
.match-department-badge small {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
}

.match-department-badge strong {
    display: block;
    margin: 4px 0;
    color: var(--ink-strong);
    font-size: 17px;
}

.match-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.match-overview-item {
    min-height: 132px;
    margin-bottom: 0;
    padding: 20px;
}

.match-overview-item > span,
.match-overview-item > small {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
}

.match-overview-item > strong {
    display: block;
    margin: 7px 0 5px;
    color: var(--ink-strong);
    font-size: 28px;
    line-height: 1.1;
}

.match-overview-item .match-status-warning {
    color: #b54708;
    font-size: 21px;
}

.match-overview-item .match-status-success {
    color: var(--success);
    font-size: 21px;
}

.match-overview-item .match-status-active {
    color: var(--brand-orange-dark);
    font-size: 21px;
}

.match-state-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    padding: 28px;
}

.match-state-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.match-state-icon-warning {
    color: #b54708;
    background: var(--warning-soft);
}

.match-state-icon-success {
    color: #05603a;
    background: var(--success-soft);
}

.match-state-content {
    flex: 1;
}

.match-state-content h3 {
    margin: 5px 0 7px;
}

.match-state-content p {
    margin: 0 0 16px;
    color: var(--ink-muted);
}

.submitted-match-card,
.match-rules-card,
.candidate-list-card,
.match-submit-card {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

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

.submitted-match-heading h3 {
    margin: 5px 0 5px;
}

.submitted-match-heading p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.submitted-count-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid #a6f4c5;
    border-radius: var(--radius-sm);
    background: var(--success-soft);
}

.submitted-count-strip span {
    color: #05603a;
    font-size: 13px;
    font-weight: 700;
}

.submitted-count-strip strong {
    color: #05603a;
}

.match-table-scroll {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.match-candidate-table {
    min-width: 1500px;
    margin: 0;
    border: 0;
}

.match-candidate-table th {
    white-space: nowrap;
    background: #f2f4f7;
}

.match-candidate-table td {
    max-width: 240px;
    vertical-align: middle;
}

.match-candidate-table tbody tr {
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.match-candidate-table tbody tr:hover td {
    background: #fffaf5;
}

.match-candidate-table .student-name {
    color: var(--ink-strong);
    white-space: nowrap;
}

.match-empty-cell {
    padding: 36px 20px !important;
    color: var(--ink-muted);
    text-align: center;
}

.match-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.match-rules-card {
    padding: 24px;
}

.match-rules-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.match-rules-number {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 13px;
    font-weight: 800;
}

.match-rules-heading h3 {
    margin: 3px 0 0;
}

.match-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.match-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.match-rule-item > span {
    display: inline-flex;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 800;
}

.match-rule-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.65;
}

.match-rule-item strong {
    color: var(--ink-strong);
}

.selection-toolbar {
    position: sticky;
    z-index: 20;
    top: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    padding: 15px 18px;
    border-color: rgba(245, 130, 32, 0.32);
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.1);
}

.selection-progress-content {
    flex: 1;
    min-width: 0;
}

.selection-count-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.selection-count-line > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.selection-count-line > div > span {
    color: var(--ink-muted);
    font-size: 12px;
}

.selection-count-line strong {
    color: var(--ink-strong);
    font-size: 17px;
}

.selection-count-line strong span {
    color: var(--brand-orange-dark);
}

.selection-status {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
}

.selection-status.is-full {
    color: #b54708;
}

.selection-progress-track {
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaecf0;
}

.selection-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--brand-orange) 0%,
        #e55a14 100%
    );
    transition: width 0.2s ease;
}

.candidate-list-card {
    padding: 24px;
}

.candidate-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.candidate-list-heading h3 {
    margin: 4px 0;
}

.candidate-list-heading p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.candidate-total {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.match-candidate-table .checkbox-cell {
    width: 66px;
    min-width: 66px;
    text-align: center;
}

.match-candidate-table .student-checkbox {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--brand-orange);
    cursor: pointer;
}

.match-candidate-table .student-checkbox:disabled {
    cursor: not-allowed;
}

.match-candidate-table .candidate-row.is-selected td {
    background: var(--brand-orange-soft);
}

.match-candidate-table .sticky-selection-cell {
    position: sticky;
    z-index: 2;
    left: 0;
    background: #ffffff;
    box-shadow: 1px 0 0 var(--line);
}

.match-candidate-table thead .sticky-selection-cell {
    z-index: 3;
    background: #f2f4f7;
}

.match-candidate-table .candidate-row.is-selected .sticky-selection-cell {
    background: var(--brand-orange-soft);
}

.match-pagination {
    margin-top: 17px;
}

.match-submit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-left: 4px solid var(--brand-orange);
}

.match-submit-card > div:first-child strong {
    color: var(--ink-strong);
}

.match-submit-card > div:first-child p {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
}

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

@media (max-width: 800px) {
    .match-page-hero,
    .submitted-match-heading,
    .candidate-list-heading,
    .match-submit-card {
        align-items: stretch;
        flex-direction: column;
    }

    .match-department-badge {
        flex-basis: auto;
        width: 100%;
    }

    .match-overview-grid {
        grid-template-columns: 1fr;
    }

    .match-overview-item {
        min-height: auto;
    }

    .match-rules-grid {
        grid-template-columns: 1fr;
    }

    .submitted-match-heading .tag {
        align-self: flex-start;
    }

    .match-submit-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .match-submit-actions .btn,
    .match-footer-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .match-state-card,
    .selection-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .selection-toolbar {
        top: 64px;
    }

    .selection-count-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .selection-toolbar .btn {
        width: 100%;
    }
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    max-width: 1080px;
    min-height: 610px;
    margin: 18px auto 20px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.11);
}

.login-intro-panel {
    position: relative;
    padding: 48px 44px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255, 255, 255, 0.17) 0,
            rgba(255, 255, 255, 0) 27%
        ),
        linear-gradient(145deg, #222831 0%, #343b46 58%, #1d232b 100%);
}

.login-intro-panel::after {
    position: absolute;
    right: -85px;
    bottom: -110px;
    width: 290px;
    height: 290px;
    border: 48px solid rgba(245, 130, 32, 0.14);
    border-radius: 50%;
    content: "";
}

.login-layout-student .login-intro-panel {
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255, 255, 255, 0.17) 0,
            rgba(255, 255, 255, 0) 27%
        ),
        linear-gradient(145deg, #232a33 0%, #3a424d 58%, #20262e 100%);
}

.login-layout-department .login-intro-panel {
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255, 255, 255, 0.15) 0,
            rgba(255, 255, 255, 0) 27%
        ),
        linear-gradient(145deg, #2d3138 0%, #454b55 58%, #24282f 100%);
}

.login-layout-hr .login-intro-panel {
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(255, 255, 255, 0.18) 0,
            rgba(255, 255, 255, 0) 27%
        ),
        linear-gradient(145deg, #292c32 0%, #3c4149 52%, #1e2228 100%);
}

.login-intro-panel .eyebrow {
    position: relative;
    z-index: 1;
    color: #ffd1ad;
}

.login-role-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 66px;
    margin: 38px 0 20px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--brand-orange) 0%,
            var(--brand-orange-dark) 100%
        );
    box-shadow: 0 12px 28px rgba(198, 83, 10, 0.3);
    font-size: 18px;
    font-weight: 800;
}

.login-intro-panel h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 29px;
    line-height: 1.28;
}

.login-intro-panel > p {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.8;
}

.login-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.login-feature-list > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.055);
}

.login-feature-list > div > span {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffd1ad;
    background: rgba(245, 130, 32, 0.18);
    font-size: 10px;
    font-weight: 800;
}

.login-feature-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.6;
}

.login-feature-list strong {
    display: block;
    margin-bottom: 1px;
    color: #ffffff;
    font-size: 13px;
}

.login-panel {
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 45px 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.login-panel::before {
    display: none;
}

.login-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 750;
}

.login-panel h2 {
    margin: 13px 0 6px;
    font-size: 25px;
}

.login-panel-description {
    margin: 0 0 25px;
    color: var(--ink-muted);
    font-size: 13px;
}

.login-form-field {
    margin-bottom: 17px;
}

.login-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.login-field-heading label {
    margin: 0;
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 700;
}

.login-field-heading > span {
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
}

.login-panel input[type="text"],
.login-panel input[type="password"],
.login-panel input[type="tel"],
.login-panel input[type="number"] {
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.login-panel input:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.16);
}

.login-form-field.has-error input {
    border-color: #f04438;
    background: #fffafa;
}

.login-form-field.has-error input:focus {
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 62px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 45px;
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #ffffff;
    background: var(--brand-orange-dark);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.login-panel .captcha-image {
    width: 190px;
    max-width: 65%;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    cursor: pointer;
}

.login-panel .captcha-refresh {
    padding: 7px 9px;
    border: 0;
    color: var(--brand-orange-dark);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.login-panel .captcha-refresh:hover {
    color: var(--brand-orange-darker);
    text-decoration: underline;
}

.login-field-help {
    margin: 5px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.login-field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 650;
}

.login-error-summary {
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
}

.login-error-summary strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.login-error-summary p {
    margin: 2px 0 0;
    font-size: 12px;
}

.login-submit-button {
    width: 100%;
    min-height: 45px;
    margin-top: 3px;
}

.login-help-box {
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.login-help-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-strong);
    font-size: 12px;
}

.login-help-box p {
    margin: 3px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.55;
}

.login-role-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    padding: 14px 18px;
}

.login-role-switch > span {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 650;
}

.login-role-switch > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-role-switch a,
.login-role-current {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475467;
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.login-role-switch a:hover {
    border-color: #f0a35d;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
}

.login-role-current {
    border-color: rgba(245, 130, 32, 0.34);
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
}

@media (max-width: 850px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .login-intro-panel {
        padding: 32px 28px;
    }

    .login-role-mark {
        height: 54px;
        margin: 25px 0 15px;
        border-radius: 14px;
        font-size: 15px;
    }

    .login-intro-panel h1 {
        font-size: 24px;
    }

    .login-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 24px;
    }

    .login-feature-list > div {
        min-width: 0;
    }

    .login-panel {
        padding: 34px 30px;
    }

    .login-role-switch {
        max-width: 650px;
    }
}

@media (max-width: 620px) {
    .login-layout {
        margin-top: 4px;
        border-radius: var(--radius-md);
    }

    .login-intro-panel {
        padding: 27px 20px;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 27px 20px;
    }

    .login-role-switch {
        align-items: stretch;
        flex-direction: column;
    }

    .login-role-switch > div {
        align-items: stretch;
        flex-direction: column;
    }

    .login-role-switch a,
    .login-role-current {
        justify-content: center;
        width: 100%;
    }

    .captcha-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.import-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.import-page-hero h2 {
    margin: 6px 0 8px;
}

.import-page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.import-hero-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.import-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.import-process-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 105px;
    margin-bottom: 0;
    padding: 18px;
}

.import-process-item > span {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 11px;
    font-weight: 800;
}

.import-process-item strong {
    display: block;
    margin: 2px 0 4px;
    color: var(--ink-strong);
    font-size: 14px;
}

.import-process-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.6;
}

.import-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.import-section-heading h3 {
    margin: 4px 0 0;
}

.import-section-note {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.import-field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.import-field-list span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 12px;
    font-weight: 700;
}

.import-field-list span::before {
    margin-right: 6px;
    color: var(--danger);
    content: "*";
}

.import-section-description {
    margin: 8px 0 15px;
    color: var(--ink-muted);
    font-size: 13px;
}

.import-sample-scroll {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.import-sample-table {
    min-width: max-content;
    margin: 0;
    border: 0;
}

.import-sample-table th {
    white-space: nowrap;
    background: #f2f4f7;
}

.import-sample-table td {
    max-width: 260px;
    white-space: nowrap;
}

.import-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 20px;
    align-items: start;
}

.import-main-grid > .card {
    margin-bottom: 20px;
}

.import-tips-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: import-tip;
}

.import-tips-list li {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 11px 10px 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 12px;
    line-height: 1.6;
    counter-increment: import-tip;
}

.import-tips-list li::before {
    position: absolute;
    top: 10px;
    left: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 10px;
    font-weight: 800;
    content: counter(import-tip);
}

.import-upload-form {
    margin-top: 17px;
}

.import-upload-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.import-drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 205px;
    padding: 22px;
    border: 2px dashed #f0a35d;
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, #ffffff 0%, #fff9f3 100%);
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
    flex-direction: column;
}

.import-drop-zone:hover,
.import-drop-zone.is-dragging {
    border-color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    transform: translateY(-1px);
}

.import-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 16px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--brand-orange) 0%,
            var(--brand-orange-dark) 100%
        );
    box-shadow: 0 9px 20px rgba(198, 83, 10, 0.2);
    font-size: 12px;
    font-weight: 800;
}

.import-drop-zone strong {
    color: var(--ink-strong);
    font-size: 15px;
}

.import-drop-zone small {
    margin-top: 4px;
    color: var(--ink-muted);
    font-size: 12px;
}

.import-drop-zone em {
    margin-top: 10px;
    color: #8a4b16;
    font-size: 11px;
    font-style: normal;
}

.selected-file-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.selected-file-panel.has-file {
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.selected-file-panel span {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.selected-file-panel strong {
    display: block;
    max-width: 330px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-panel small {
    color: var(--ink-muted);
    font-size: 11px;
    white-space: nowrap;
}

.client-file-error,
.import-field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 650;
}

.client-file-error:empty {
    display: none;
}

.import-file-help {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.import-form-error-summary {
    margin-bottom: 13px;
    padding: 12px 14px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
}

.import-form-error-summary strong {
    display: block;
    margin-bottom: 3px;
}

.import-form-error-summary p {
    margin: 2px 0 0;
    font-size: 12px;
}

.overwrite-option-box {
    margin-top: 16px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.overwrite-option-box.is-active {
    border-color: #f79009;
    background: var(--warning-soft);
}

.overwrite-option-control {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.overwrite-option-control input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand-orange);
}

.overwrite-option-control label {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.overwrite-option-box > p {
    margin: 5px 0 0 26px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.55;
}

.import-submit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.import-result-card {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
    border-top: 3px solid var(--brand-orange);
}

.import-result-card.is-success {
    border-top-color: var(--success);
}

.import-result-card.has-errors {
    border-top-color: var(--warning);
}

.import-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.import-result-heading h3 {
    margin: 4px 0;
}

.import-result-heading p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.import-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.import-result-grid article {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.import-result-grid article > span,
.import-result-grid article > small {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.import-result-grid article > strong {
    display: block;
    margin: 5px 0 3px;
    color: var(--ink-strong);
    font-size: 25px;
}

.import-result-grid .result-error-item {
    border-color: #fda29b;
    background: var(--danger-soft);
}

.import-result-grid .result-error-item > strong {
    color: var(--danger);
}

.import-extra-result,
.import-error-details {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.import-extra-result h4,
.import-error-details h4 {
    margin: 0 0 10px;
}

.import-error-details > p {
    margin: 0 0 11px;
    color: var(--ink-muted);
    font-size: 12px;
}

.import-error-details ol {
    max-height: 330px;
    margin: 0;
    padding: 13px 13px 13px 38px;
    overflow-y: auto;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
}

.import-error-details li {
    margin-bottom: 7px;
    padding-left: 3px;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .import-page-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .import-hero-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .import-process-grid,
    .import-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .import-hero-actions,
    .import-submit-actions,
    .import-result-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .import-hero-actions .btn,
    .import-submit-actions .btn {
        width: 100%;
    }

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

    .selected-file-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .selected-file-panel strong {
        max-width: 100%;
    }
}

.round-manage-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.round-manage-hero h2 {
    margin: 6px 0 8px;
}

.round-manage-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.round-published-warning {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 20px;
    border-color: #fedf89;
    background: var(--warning-soft);
}

.round-warning-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--warning);
    font-weight: 850;
}

.round-published-warning > div {
    flex: 1;
}

.round-published-warning strong {
    display: block;
    color: #7a4d00;
}

.round-published-warning p {
    margin: 3px 0 0;
    color: #8a5c14;
    font-size: 12px;
}

.round-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto 20px;
}

.round-control-card {
    margin-bottom: 0;
    padding: 24px;
    border-top: 3px solid #98a2b3;
}

.round-control-card.is-enabled {
    border-top-color: var(--success);
    box-shadow: 0 12px 30px rgba(24, 121, 78, 0.1);
}

.round-control-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.round-heading-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.round-number {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: #667085;
    font-size: 13px;
    font-weight: 800;
}

.round-control-card.is-enabled .round-number {
    background: var(--success);
}

.round-heading-main h3 {
    margin: 3px 0 0;
}

.round-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 19px 0 15px;
}

.round-data-grid > div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.round-data-grid span,
.round-data-grid small {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.round-data-grid strong {
    display: inline-block;
    margin: 4px 4px 2px 0;
    color: var(--ink-strong);
    font-size: 23px;
}

.round-data-grid small {
    display: inline;
}

.round-rule-note {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 130, 32, 0.23);
    border-left: 3px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    background: var(--brand-orange-soft);
}

.round-rule-note strong {
    display: block;
    margin-bottom: 3px;
    color: var(--brand-orange-dark);
    font-size: 12px;
}

.round-rule-note p {
    margin: 0;
    color: #7a4b25;
    font-size: 11px;
    line-height: 1.6;
}

.round-settings-form {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.round-form-field {
    margin-bottom: 15px;
}

.round-form-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 700;
}

.round-form-field input {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 13px;
}

.round-form-field input:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.round-form-field small {
    display: block;
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 10px;
}

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

.round-field-error,
.round-client-error {
    margin: 5px 0 0;
    color: var(--danger);
    font-size: 11px;
    font-weight: 650;
}

.round-client-error:empty {
    display: none;
}

.round-form-errors {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
}

.round-form-errors p {
    margin: 2px 0;
    font-size: 11px;
}

.round-control-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.round-safety-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1.65fr);
    gap: 25px;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.round-safety-card h3 {
    margin: 4px 0 0;
}

.round-safety-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.round-safety-list p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 11px;
    line-height: 1.55;
}

.round-safety-list span {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 9px;
    font-weight: 800;
}

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

    .round-safety-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .round-manage-hero,
    .round-published-warning {
        align-items: stretch;
        flex-direction: column;
    }

    .round-manage-hero .btn,
    .round-published-warning .btn {
        width: 100%;
    }

    .round-time-grid,
    .round-safety-list {
        grid-template-columns: 1fr;
    }

    .round-control-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .round-control-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .round-control-actions .btn {
        width: 100%;
    }
}

.submission-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.submission-page-hero h2 {
    margin: 6px 0 8px;
}

.submission-page-hero p {
    max-width: 740px;
    margin: 0;
    color: var(--ink-muted);
}

.submission-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.submission-summary-grid .card {
    min-height: 118px;
    margin-bottom: 0;
    padding: 18px;
}

.submission-summary-grid span,
.submission-summary-grid small {
    display: block;
    color: var(--ink-muted);
    font-size: 11px;
}

.submission-summary-grid strong {
    display: block;
    margin: 6px 0 3px;
    color: var(--ink-strong);
    font-size: 27px;
}

.submission-safety-card {
    padding: 21px 23px;
    border-color: #fedf89;
    background:
        linear-gradient(135deg, #fffcf5 0%, var(--warning-soft) 100%);
}

.submission-safety-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.submission-warning-mark {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--warning);
    font-weight: 850;
}

.submission-safety-heading h3 {
    margin: 3px 0 0;
}

.submission-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.submission-safety-grid p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid rgba(247, 144, 9, 0.18);
    border-radius: var(--radius-sm);
    color: #7a4d00;
    background: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.55;
}

.submission-safety-grid p span {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--warning);
    font-size: 9px;
    font-weight: 800;
}

.submission-list-card {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.submission-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.submission-list-heading h3 {
    margin: 4px 0 0;
}

.submission-result-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.submission-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.55fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.submission-filter-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-strong);
    font-size: 11px;
    font-weight: 700;
}

.submission-filter-form input,
.submission-filter-form select {
    width: 100%;
    min-height: 41px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 12px;
}

.submission-filter-form input:focus,
.submission-filter-form select:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.submission-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.submission-table-scroll {
    border-radius: var(--radius-md);
}

.submission-table {
    min-width: 1050px !important;
    margin: 0;
    border: 0;
}

.submission-table th {
    background: #f2f4f7;
}

.submission-table td {
    vertical-align: top;
}

.submission-department-column {
    position: sticky;
    z-index: 2;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    box-shadow: 1px 0 0 var(--line);
}

.submission-table thead .submission-department-column {
    z-index: 3;
    background: #f2f4f7;
}

.submission-table tbody tr:hover .submission-department-column {
    background: #fffaf5;
}

.submission-department-column strong,
.submission-department-column small {
    display: block;
}

.submission-department-column strong {
    color: var(--ink-strong);
}

.submission-department-column small {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 10px;
}

.submission-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 3px 8px;
    border-radius: 8px;
    color: #344054;
    background: #f2f4f7;
    font-size: 13px;
    font-weight: 750;
}

.submission-number-total {
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
}

.submission-number-remaining {
    color: #1849a9;
    background: var(--info-soft);
}

.submission-round-cell {
    min-width: 255px;
}

.submission-round-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.submission-round-status > span:first-child {
    color: var(--ink-strong);
    font-size: 11px;
    font-weight: 700;
}

.submission-time {
    display: block;
    margin-top: 5px;
    color: var(--ink-muted);
    font-size: 10px;
}

.submission-blocked-note {
    margin-top: 8px;
    padding: 7px 9px;
    border: 1px solid #fedf89;
    border-radius: var(--radius-sm);
    color: #7a4d00;
    background: var(--warning-soft);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.revoke-details {
    margin-top: 8px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    background: #fffafa;
}

.revoke-details summary {
    padding: 7px 9px;
    color: var(--danger);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
    user-select: none;
}

.revoke-details[open] summary {
    border-bottom: 1px solid #fecdca;
}

.revoke-submission-form {
    padding: 10px;
}

.revoke-submission-form label {
    display: block;
    margin-bottom: 5px;
    color: #912018;
    font-size: 10px;
    font-weight: 700;
}

.revoke-submission-form textarea {
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 8px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 11px;
    resize: vertical;
}

.revoke-submission-form textarea:focus {
    border-color: var(--danger);
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.revoke-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
}

.revoke-form-footer small {
    color: var(--ink-muted);
    font-size: 9px;
}

.revoke-form-footer .btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
}

.submission-empty-cell {
    padding: 38px 20px !important;
}

.submission-pagination {
    margin-top: 17px;
}

@media (max-width: 900px) {
    .submission-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submission-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .submission-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .submission-page-hero,
    .submission-list-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .submission-page-hero .btn {
        width: 100%;
    }

    .submission-summary-grid,
    .submission-safety-grid,
    .submission-filter-form {
        grid-template-columns: 1fr;
    }

    .submission-filter-actions {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .submission-filter-actions .btn {
        width: 100%;
    }
}

.department-account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.department-account-hero h2 {
    margin: 6px 0 8px;
}

.department-account-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.department-account-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.department-account-summary .card {
    min-height: 118px;
    margin-bottom: 0;
    padding: 18px;
}

.department-account-summary span,
.department-account-summary small {
    display: block;
    color: var(--ink-muted);
    font-size: 11px;
}

.department-account-summary strong {
    display: block;
    margin: 6px 0 3px;
    color: var(--ink-strong);
    font-size: 27px;
}

.account-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto 20px;
}

.account-control-grid > .card {
    margin-bottom: 0;
}

.account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-section-heading h3 {
    margin: 4px 0 0;
}

.account-rule-list {
    display: grid;
    gap: 9px;
    margin-top: 17px;
}

.account-rule-list p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 11px;
    line-height: 1.55;
}

.account-rule-list p > span {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 9px;
    font-weight: 800;
}

.account-rule-list code {
    margin: 0 3px;
    color: var(--brand-orange-dark);
    font-weight: 750;
}

.account-password-description {
    margin: 12px 0 14px;
    color: var(--ink-muted);
    font-size: 11px;
}

.default-password-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #fedf89;
    border-radius: var(--radius-sm);
    background: var(--warning-soft);
}

.default-password-panel span {
    display: block;
    color: #7a4d00;
    font-size: 10px;
}

.default-password-panel strong {
    display: block;
    margin-top: 4px;
    color: #543600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    letter-spacing: 0.05em;
}

.default-password-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.default-password-actions .btn {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 10px;
}

.create-all-accounts-form {
    margin-top: 15px;
}

.create-all-accounts-form .btn {
    width: 100%;
}

.department-account-list-card {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.account-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.account-list-heading h3 {
    margin: 4px 0 0;
}

.account-result-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.department-account-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.55fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.department-account-filter label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-strong);
    font-size: 11px;
    font-weight: 700;
}

.department-account-filter input,
.department-account-filter select {
    width: 100%;
    min-height: 41px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 12px;
}

.department-account-filter input:focus,
.department-account-filter select:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.department-account-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.department-account-table {
    min-width: 970px !important;
    margin: 0;
    border: 0;
}

.department-account-table th {
    background: #f2f4f7;
}

.account-department-column {
    min-width: 190px;
}

.account-department-column strong {
    color: var(--ink-strong);
}

.department-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 29px;
    border-radius: 8px;
    color: #475467;
    background: #f2f4f7;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
}

.account-username-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.account-username-cell code {
    color: var(--brand-orange-dark);
    font-size: 11px;
    font-weight: 750;
}

.account-copy-button {
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #475467;
    background: #ffffff;
    font-size: 9px;
    cursor: pointer;
}

.account-copy-button:hover {
    border-color: #f0a35d;
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
}

.reset-department-password-form {
    margin: 0;
}

.reset-department-password-form .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 10px;
}

.account-waiting-text {
    color: var(--ink-muted);
    font-size: 10px;
}

.account-empty-cell {
    padding: 38px 20px !important;
}

.department-account-pagination {
    margin-top: 17px;
}

@media (max-width: 900px) {
    .department-account-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-control-grid {
        grid-template-columns: 1fr;
    }

    .department-account-filter {
        grid-template-columns: 1fr 1fr;
    }

    .department-account-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .department-account-hero,
    .account-list-heading,
    .default-password-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .department-account-hero .btn {
        width: 100%;
    }

    .department-account-summary,
    .department-account-filter {
        grid-template-columns: 1fr;
    }

    .department-account-filter-actions {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .department-account-filter-actions .btn,
    .default-password-actions .btn {
        width: 100%;
    }

    .default-password-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


.volunteer-edit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(245, 130, 32, 0.16) 0,
            rgba(245, 130, 32, 0) 27%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff9f3 100%);
}

.volunteer-edit-hero h2 {
    margin: 6px 0 8px;
}

.volunteer-edit-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.volunteer-edit-student-badge {
    flex: 0 0 215px;
    padding: 14px 17px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
}

.volunteer-edit-student-badge span,
.volunteer-edit-student-badge small {
    display: block;
    color: var(--ink-muted);
    font-size: 11px;
}

.volunteer-edit-student-badge strong {
    display: block;
    margin: 4px 0;
    color: var(--ink-strong);
    font-size: 17px;
}

.volunteer-edit-safety {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
    padding: 15px 18px;
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.volunteer-edit-warning {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--success);
    font-weight: 850;
}

.volunteer-edit-safety strong {
    display: block;
    color: #05603a;
    font-size: 13px;
}

.volunteer-edit-safety p {
    margin: 3px 0 0;
    color: #18794e;
    font-size: 11px;
}

.volunteer-edit-profile,
.volunteer-original-card,
.volunteer-edit-form-card,
.volunteer-edit-review {
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
}

.volunteer-edit-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.volunteer-edit-section-heading h3 {
    margin: 4px 0 0;
}

.volunteer-edit-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.volunteer-edit-profile-grid > div {
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.volunteer-edit-profile-grid span {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.volunteer-edit-profile-grid strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.volunteer-original-card {
    border-top: 3px solid var(--warning);
}

.volunteer-original-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 17px;
}

.volunteer-original-grid article {
    padding: 14px 16px;
    border: 1px solid #fedf89;
    border-radius: var(--radius-sm);
    background: var(--warning-soft);
}

.volunteer-original-grid span,
.volunteer-original-grid small {
    display: block;
    color: #7a4d00;
    font-size: 10px;
}

.volunteer-original-grid strong {
    display: block;
    margin: 5px 0 3px;
    color: #543600;
    font-size: 14px;
}

.volunteer-edit-error-summary {
    max-width: 1050px;
    margin: 0 auto 20px;
    padding: 13px 15px;
    border: 1px solid #fda29b;
    border-radius: var(--radius-sm);
    color: #912018;
    background: var(--danger-soft);
}

.volunteer-edit-error-summary strong {
    display: block;
    margin-bottom: 3px;
}

.volunteer-edit-error-summary p {
    margin: 2px 0;
    font-size: 11px;
}

.volunteer-edit-form-card {
    padding: 0;
}

.volunteer-edit-form-section {
    padding: 23px;
    border-bottom: 1px solid var(--line);
}

.volunteer-edit-form-section:last-child {
    border-bottom: 0;
}

.volunteer-edit-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 17px;
}

.volunteer-edit-form-heading > span {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 11px;
    font-weight: 800;
}

.volunteer-edit-form-heading > div {
    flex: 1;
}

.volunteer-edit-form-heading h3 {
    margin: 0 0 3px;
}

.volunteer-edit-form-heading p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.volunteer-edit-form-heading em {
    padding: 3px 8px;
    border-radius: 999px;
    color: #b42318;
    background: var(--danger-soft);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}

.volunteer-edit-form-heading em.optional {
    color: #475467;
    background: #f2f4f7;
}

.volunteer-edit-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.volunteer-edit-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-strong);
    font-size: 11px;
    font-weight: 700;
}

.volunteer-edit-field select,
.volunteer-edit-field input[type="text"],
.volunteer-edit-field textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-strong);
    background: #ffffff;
    font-size: 12px;
}

.volunteer-edit-field textarea {
    min-height: 100px;
    resize: vertical;
}

.volunteer-edit-field select:focus,
.volunteer-edit-field input:focus,
.volunteer-edit-field textarea:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.volunteer-edit-field-error {
    margin: 5px 0 0;
    color: var(--danger);
    font-size: 11px;
    font-weight: 650;
}

.volunteer-edit-skip-box {
    margin-top: 15px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.volunteer-edit-skip-box.is-active {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.volunteer-edit-skip-box > div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.volunteer-edit-skip-box input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand-orange);
}

.volunteer-edit-skip-box label {
    color: var(--ink-strong);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.volunteer-edit-skip-box > p {
    margin: 4px 0 0 26px;
    color: var(--ink-muted);
    font-size: 10px;
}

.second-choice-section.is-skipped .second-choice-fields {
    opacity: 0.45;
}

.reason-section {
    background: #fffdf9;
}

.volunteer-edit-reason-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
}

.volunteer-edit-reason-meta small,
.volunteer-edit-reason-meta span {
    color: var(--ink-muted);
    font-size: 9px;
}

.volunteer-edit-review {
    border-top: 3px solid var(--brand-orange);
}

.volunteer-edit-review h3 {
    margin: 4px 0;
}

.volunteer-edit-review > div:first-child > p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.volunteer-edit-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 16px;
}

.volunteer-edit-review-grid article {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.volunteer-edit-review-grid span {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.volunteer-edit-review-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--ink-strong);
    font-size: 13px;
}

.volunteer-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 750px) {
    .volunteer-edit-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-edit-student-badge {
        flex-basis: auto;
        width: 100%;
    }

    .volunteer-edit-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .volunteer-edit-profile-grid,
    .volunteer-original-grid,
    .volunteer-edit-field-grid,
    .volunteer-edit-review-grid {
        grid-template-columns: 1fr;
    }

    .volunteer-edit-form-heading {
        flex-wrap: wrap;
    }

    .volunteer-edit-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .volunteer-edit-actions .btn {
        width: 100%;
    }
}

.student-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(
            circle at 90% 12%,
            rgba(245, 130, 32, 0.18) 0,
            rgba(245, 130, 32, 0) 28%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff8f1 100%);
}

.student-home-hero h2 {
    margin: 6px 0 8px;
}

.student-home-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.student-home-state {
    flex: 0 0 220px;
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.student-home-state span,
.student-home-state small {
    display: block;
    color: var(--ink-muted);
    font-size: 11px;
}

.student-home-state strong {
    display: block;
    margin: 4px 0;
    color: var(--brand-orange-dark);
    font-size: 18px;
}

.student-home-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.student-progress-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.student-progress-number {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 11px;
    font-weight: 800;
}

.student-progress-item > div {
    min-width: 0;
    flex: 1;
}

.student-progress-item strong,
.student-progress-item small {
    display: block;
}

.student-progress-item strong {
    color: var(--ink-strong);
    font-size: 12px;
}

.student-progress-item small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-progress-item em {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--ink-muted);
    background: var(--surface-soft);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}

.student-progress-item.is-complete {
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.student-progress-item.is-complete .student-progress-number {
    color: #ffffff;
    background: var(--success);
}

.student-progress-item.is-complete em {
    color: #05603a;
    background: #d1fadf;
}

.student-progress-item.is-current {
    border-color: #fed7aa;
    background: var(--brand-orange-soft);
}

.student-progress-item.is-current .student-progress-number {
    color: #ffffff;
    background: var(--brand-orange);
}

.student-progress-item.is-current em {
    color: #8a3b08;
    background: #ffead5;
}

.student-home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
    gap: 20px;
}

.student-home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.student-home-section-heading h3 {
    margin: 4px 0 0;
}

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

.student-profile-grid > div {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.student-profile-grid span,
.student-profile-grid strong {
    display: block;
}

.student-profile-grid span {
    color: var(--ink-muted);
    font-size: 10px;
}

.student-profile-grid strong {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-home-guide-card {
    background:
        linear-gradient(150deg, #ffffff 0%, #fffaf5 100%);
}

.student-home-guide-card h3 {
    margin: 4px 0 16px;
}

.student-home-guide-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.student-home-guide-list li {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.student-home-guide-list li:last-child {
    border-bottom: 0;
}

.student-home-guide-list span {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 10px;
    font-weight: 800;
}

.student-home-guide-list p {
    margin: 1px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.student-home-section-description {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.student-home-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}

.student-home-choice-grid article {
    padding: 16px 18px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, #ffffff 0%, #fff8f1 100%);
}

.student-home-choice-grid article.is-skipped {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.student-choice-order,
.student-home-choice-grid small {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.student-home-choice-grid strong {
    display: block;
    margin: 6px 0 4px;
    color: var(--ink-strong);
    font-size: 16px;
}

.student-home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.student-home-card-footer > span {
    color: var(--ink-muted);
    font-size: 11px;
}

.student-home-empty-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border-color: #fedf89;
    background: var(--warning-soft);
}

.student-home-empty-icon {
    display: inline-flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--warning);
    font-size: 18px;
    font-weight: 850;
}

.student-home-empty-card > div:nth-child(2) {
    flex: 1;
}

.student-home-empty-card h3 {
    margin: 3px 0;
}

.student-home-empty-card p {
    margin: 0;
    color: #7a4d00;
    font-size: 11px;
}

.student-home-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.student-home-result-card h3 {
    margin: 4px 0;
}

.student-home-result-card p {
    max-width: 750px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.student-home-result-action {
    flex: 0 0 auto;
    text-align: right;
}

.student-home-result-action span {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-muted);
    font-size: 10px;
}

@media (max-width: 900px) {
    .student-home-progress {
        grid-template-columns: 1fr;
    }

    .student-home-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .student-home-hero,
    .student-home-empty-card,
    .student-home-result-card {
        align-items: stretch;
        flex-direction: column;
    }

    .student-home-state {
        flex-basis: auto;
        width: 100%;
    }

    .student-home-empty-card .btn,
    .student-home-result-action .btn {
        width: 100%;
    }

    .student-home-result-action {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .student-profile-grid,
    .student-home-choice-grid {
        grid-template-columns: 1fr;
    }

    .student-home-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .student-home-card-footer .btn {
        width: 100%;
    }
}

.student-result-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(245, 130, 32, 0.17) 0,
            rgba(245, 130, 32, 0) 29%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff8f1 100%);
}

.student-result-hero h2 {
    margin: 6px 0 8px;
}

.student-result-hero p {
    margin: 0;
    color: var(--ink-muted);
}

.student-result-identity {
    flex: 0 0 255px;
    padding: 15px 18px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.student-result-identity span,
.student-result-identity small {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.student-result-identity strong {
    display: block;
    margin: 4px 0;
    color: var(--ink-strong);
    font-size: 17px;
}

.student-result-state,
.student-result-success {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.student-result-state {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
}

.student-result-state-icon {
    display: inline-flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
}

.student-result-waiting {
    border-color: #fedf89;
    background:
        linear-gradient(145deg, #ffffff 0%, #fffcf1 100%);
}

.student-result-waiting .student-result-state-icon {
    background: var(--warning);
    box-shadow: 0 8px 18px rgba(154, 103, 0, 0.18);
}

.student-result-unmatched {
    border-color: #bfdbfe;
    background:
        linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
}

.student-result-unmatched .student-result-state-icon {
    background: var(--info);
    box-shadow: 0 8px 18px rgba(23, 92, 211, 0.18);
}

.student-result-state-content {
    min-width: 0;
    flex: 1;
}

.student-result-state-content h3 {
    margin: 5px 0 7px;
}

.student-result-state-content > p {
    max-width: 720px;
    margin: 0 0 19px;
    color: var(--ink-muted);
    font-size: 12px;
}

.student-result-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.student-result-process > div {
    padding: 13px 14px;
    border: 1px solid #fedf89;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.student-result-process span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 7px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 9px;
    font-weight: 800;
}

.student-result-process strong,
.student-result-process small {
    display: block;
}

.student-result-process strong {
    color: var(--ink-strong);
    font-size: 11px;
}

.student-result-process small {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 9px;
}

.student-result-success {
    padding: 30px;
    border-color: #a6f4c5;
    border-top: 4px solid var(--success);
    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(24, 121, 78, 0.10) 0,
            rgba(24, 121, 78, 0) 28%
        ),
        #ffffff;
}

.student-result-success-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.student-result-success-heading h3 {
    margin: 5px 0;
}

.student-result-success-heading p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
}

.student-result-department {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid #a6f4c5;
    border-radius: var(--radius-md);
    text-align: center;
    background:
        linear-gradient(145deg, #f5fff9 0%, var(--success-soft) 100%);
}

.student-result-department span,
.student-result-department small {
    display: block;
    color: #18794e;
    font-size: 10px;
}

.student-result-department strong {
    display: block;
    margin: 6px 0 4px;
    color: #05603a;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.25;
}

.student-result-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.student-result-detail-grid > div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.student-result-detail-grid span,
.student-result-detail-grid strong {
    display: block;
}

.student-result-detail-grid span {
    color: var(--ink-muted);
    font-size: 9px;
}

.student-result-detail-grid strong {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-result-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    background: var(--info-soft);
}

.student-result-notice span {
    display: inline-flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--info);
    font-size: 11px;
    font-weight: 800;
}

.student-result-notice p {
    margin: 0;
    color: #1849a9;
    font-size: 10px;
}

.student-result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.student-result-unmatched-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.student-result-unmatched-info > div {
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.student-result-unmatched-info span,
.student-result-unmatched-info strong {
    display: block;
}

.student-result-unmatched-info span {
    color: var(--ink-muted);
    font-size: 9px;
}

.student-result-unmatched-info strong {
    margin-top: 3px;
    color: var(--ink-strong);
    font-size: 11px;
}

.student-result-security-note {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 980px;
    margin: 0 auto 20px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.student-result-security-mark {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--success);
    font-size: 11px;
    font-weight: 850;
}

.student-result-security-note strong {
    display: block;
    color: var(--ink-strong);
    font-size: 11px;
}

.student-result-security-note p {
    margin: 2px 0 0;
    color: var(--ink-muted);
    font-size: 9px;
}

@media (max-width: 760px) {
    .student-result-hero,
    .student-result-state {
        align-items: stretch;
        flex-direction: column;
    }

    .student-result-identity {
        flex-basis: auto;
        width: 100%;
    }

    .student-result-process,
    .student-result-detail-grid,
    .student-result-unmatched-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .student-result-process,
    .student-result-detail-grid,
    .student-result-unmatched-info {
        grid-template-columns: 1fr;
    }

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

    .student-result-actions .btn,
    .student-result-state-content > .btn {
        width: 100%;
    }
}

.department-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background:
        radial-gradient(
            circle at 91% 10%,
            rgba(245, 130, 32, 0.17) 0,
            rgba(245, 130, 32, 0) 29%
        ),
        linear-gradient(135deg, #ffffff 0%, #fff8f1 100%);
}

.department-home-hero h2 {
    margin: 6px 0 8px;
}

.department-home-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-muted);
}

.department-home-status {
    flex: 0 0 245px;
    padding: 15px 18px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.department-home-status span,
.department-home-status small {
    display: block;
    color: var(--ink-muted);
    font-size: 10px;
}

.department-home-status strong {
    display: block;
    margin: 4px 0;
    color: var(--brand-orange-dark);
    font-size: 17px;
}

.department-home-stat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 20px;
}

.department-home-stat {
    position: relative;
    min-width: 0;
    padding: 15px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.department-home-stat::after {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(245, 130, 32, 0.08);
    content: "";
}

.department-home-stat span,
.department-home-stat strong,
.department-home-stat small {
    position: relative;
    z-index: 1;
    display: block;
}

.department-home-stat span {
    color: var(--ink-muted);
    font-size: 10px;
    font-weight: 650;
}

.department-home-stat strong {
    margin: 5px 0 2px;
    color: var(--ink-strong);
    font-size: 25px;
    line-height: 1.2;
}

.department-home-stat small {
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.department-home-stat.primary {
    border-color: #fed7aa;
    background: var(--brand-orange-soft);
}

.department-home-stat.success {
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.department-home-stat.warning {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.department-home-quota {
    padding: 24px;
}

.department-home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.department-home-section-heading h3 {
    margin: 4px 0 0;
}

.department-home-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 18px 0 8px;
}

.department-home-progress-copy strong {
    color: var(--ink-strong);
    font-size: 12px;
}

.department-home-progress-copy span {
    color: var(--ink-muted);
    font-size: 10px;
}

.department-home-progress {
    display: block;
    width: 100%;
    height: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #f1f3f5;
}

.department-home-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #f1f3f5;
}

.department-home-progress::-webkit-progress-value {
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--brand-orange) 0%,
            #f6a04d 100%
        );
}

.department-home-progress::-moz-progress-bar {
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--brand-orange) 0%,
            #f6a04d 100%
        );
}

.department-home-zero-quota {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    color: #1849a9;
    background: var(--info-soft);
    font-size: 11px;
}

.department-home-round-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.department-round-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.department-round-card.round-one {
    border-top: 3px solid var(--brand-orange);
}

.department-round-card.round-two {
    border-top: 3px solid var(--info);
}

.department-round-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.department-round-heading > div {
    min-width: 0;
    flex: 1;
}

.department-round-heading h3 {
    margin: 3px 0 0;
}

.department-round-number {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand-orange);
    font-size: 11px;
    font-weight: 850;
}

.round-two .department-round-number {
    background: var(--info);
}

.department-round-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.department-round-summary > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.department-round-summary span,
.department-round-summary strong {
    display: block;
}

.department-round-summary span {
    color: var(--ink-muted);
    font-size: 9px;
}

.department-round-summary strong {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-strong);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.department-round-message {
    min-height: 86px;
    margin: 14px 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.department-round-message strong {
    display: block;
    color: var(--ink-strong);
    font-size: 11px;
}

.department-round-message p {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 10px;
}

.department-round-message.success {
    border-color: #a6f4c5;
    background: var(--success-soft);
}

.department-round-message.success strong,
.department-round-message.success p {
    color: #05603a;
}

.department-round-message.active {
    border-color: #fed7aa;
    background: var(--brand-orange-soft);
}

.department-round-message.active strong,
.department-round-message.active p {
    color: #8a3b08;
}

.department-round-message.waiting {
    border-color: #fedf89;
    background: var(--warning-soft);
}

.department-round-message.waiting strong,
.department-round-message.waiting p {
    color: #7a4d00;
}

.department-round-card > .btn {
    align-self: flex-start;
    margin-top: auto;
}

.department-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

.department-logout-form {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

.department-home-footer strong {
    display: block;
    color: var(--ink-strong);
    font-size: 11px;
}

.department-home-footer p {
    margin: 3px 0 0;
    color: var(--ink-muted);
    font-size: 9px;
}

@media (max-width: 1100px) {
    .department-home-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .department-home-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-home-round-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .department-home-hero,
    .department-home-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .department-home-footer .department-logout-form {
        width: 100%;
        margin-left: 0;
    }

    .department-home-status {
        flex-basis: auto;
        width: 100%;
    }

    .department-home-footer .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .department-home-stat-grid,
    .department-round-summary {
        grid-template-columns: 1fr;
    }

    .department-home-progress-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .department-round-heading {
        flex-wrap: wrap;
    }

    .department-round-card > .btn {
        width: 100%;
    }
}

/* ========================================
   结果公示
   ======================================== */

.department-home-matched-card,
.publicity-period-card,
.publicity-setting-card,
.publicity-progress-card,
.publicity-confirm-card {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.department-home-matched-card {
    margin-top: 20px;
}

.publicity-period-card,
.publicity-setting-card,
.publicity-progress-card {
    padding: 24px;
}

.publicity-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.publicity-time-grid > div {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.publicity-time-grid span,
.publicity-time-grid strong {
    display: block;
}

.publicity-time-grid span {
    color: var(--ink-muted);
    font-size: 10px;
}

.publicity-time-grid strong {
    margin-top: 5px;
    color: var(--ink-strong);
    font-size: 14px;
}

.publicity-confirm-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.publicity-confirm-card > div {
    flex: 1;
}

.publicity-confirm-card h3 {
    margin: 5px 0 8px;
}

.publicity-confirm-card p {
    max-width: 880px;
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.8;
}

.publicity-confirm-card.is-confirmed {
    border-color: #a6f4c5;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--success-soft) 100%
        );
}

.publicity-confirm-card.is-pending {
    border-color: #fed7aa;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--brand-orange-soft) 100%
        );
}

.publicity-confirm-card.is-closed {
    border-color: #fedf89;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--warning-soft) 100%
        );
}

.publicity-confirm-card form {
    flex: 0 0 auto;
    margin: 0;
}

.publicity-confirm-meta {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.publicity-confirm-meta span {
    padding: 8px 11px;
    border: 1px solid rgba(5, 96, 58, 0.15);
    border-radius: var(--radius-sm);
    color: #05603a;
    background: rgba(255, 255, 255, 0.74);
    font-size: 11px;
}

.publicity-progress-table {
    margin-top: 20px;
}

.publicity-progress-table .submission-table {
    min-width: 900px !important;
}

@media (max-width: 760px) {
    .publicity-time-grid {
        grid-template-columns: 1fr;
    }

    .publicity-confirm-card {
        align-items: stretch;
        flex-direction: column;
    }

    .publicity-confirm-card form,
    .publicity-confirm-card form .btn {
        width: 100%;
    }

    .publicity-confirm-meta {
        flex-direction: column;
    }
}

