* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f0e8;
    --bg-soft: #faf7f1;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-dark: #102033;
    --line: rgba(35, 53, 77, 0.1);
    --line-strong: rgba(35, 53, 77, 0.16);
    --text: #142235;
    --text-soft: #5f6f82;
    --primary: #17395c;
    --primary-2: #24578c;
    --accent: #c89a4b;
    --accent-soft: #f1dfbc;
    --success: #15704b;
    --shadow-lg: 0 24px 70px rgba(16, 32, 51, 0.12);
    --shadow-md: 0 16px 40px rgba(16, 32, 51, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(248, 244, 237, 0.76) 0%, rgba(242, 239, 232, 0.7) 38%, rgba(238, 242, 246, 0.82) 100%),
        url("./ui-background.svg"),
        radial-gradient(circle at 12% 18%, rgba(200, 154, 75, 0.18), transparent 24%),
        radial-gradient(circle at 85% 8%, rgba(58, 95, 135, 0.16), transparent 22%),
        linear-gradient(180deg, #f8f4ed 0%, #f2efe8 42%, #eef2f6 100%);
    background-size: cover, cover, auto, auto, auto;
    background-position: center top, center top, 0 0, 0 0, 0 0;
    background-attachment: fixed, fixed, scroll, scroll, scroll;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 34, 53, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 34, 53, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 1880px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
    gap: 26px;
    align-items: stretch;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 16%, rgba(214, 180, 110, 0.16), transparent 0 22%),
        radial-gradient(circle at 88% 14%, rgba(129, 167, 212, 0.22), transparent 0 24%),
        radial-gradient(circle at 12% 96%, rgba(255, 255, 255, 0.1), transparent 0 16%),
        linear-gradient(118deg, #18212b 0%, #13293f 18%, #17395c 52%, #225487 78%, #2c6299 100%);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    background:
        radial-gradient(circle, rgba(230, 196, 133, 0.18) 0%, rgba(230, 196, 133, 0.04) 36%, rgba(230, 196, 133, 0) 72%);
}

.hero::after {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -250px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(164, 194, 226, 0.08) 28%, rgba(255, 255, 255, 0) 72%);
}

.hero::selection {
    background: rgba(255, 255, 255, 0.18);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero::marker {
    content: "";
}

.hero::before,
.hero::after,
.hero-copy::before,
.hero-copy::after,
.hero-side::before,
.hero-side::after {
    pointer-events: none;
}

.hero-side::before {
    content: "";
    position: absolute;
    top: -36px;
    right: -10px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(116, 161, 214, 0.08) 36%, rgba(255, 255, 255, 0) 72%);
    filter: blur(14px);
}

.hero-side::after {
    content: "";
    position: absolute;
    inset: 12px 8px 12px auto;
    width: 520px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.028) 0,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px,
            transparent 22px
        );
    opacity: 0.55;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: -30px auto auto -24px;
    width: 720px;
    height: 300px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
    filter: blur(18px);
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 88%);
    opacity: 0.42;
}

.hero-copy .hero-flow-line,
.hero-copy .hero-flow-line-secondary {
    position: absolute;
    inset: auto;
    display: block;
}

.hero-copy .hero-flow-line {
    left: 18px;
    bottom: -14px;
    width: 560px;
    height: 180px;
    border-bottom: 1.5px solid rgba(223, 192, 134, 0.34);
    border-left: 1.5px solid rgba(223, 192, 134, 0.2);
    border-radius: 0 0 0 220px;
    filter: drop-shadow(0 0 18px rgba(223, 192, 134, 0.16));
    opacity: 0.7;
}

.hero-copy .hero-flow-line-secondary {
    left: 128px;
    bottom: 24px;
    width: 420px;
    height: 126px;
    border-top: 1px solid rgba(136, 176, 222, 0.28);
    border-right: 1px solid rgba(136, 176, 222, 0.18);
    border-radius: 0 180px 0 0;
    filter: drop-shadow(0 0 16px rgba(136, 176, 222, 0.12));
    opacity: 0.65;
}

.hero-copy,
.hero-side {
    position: relative;
    z-index: 1;
}

.hero-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(8, 20, 34, 0.1);
}

.hero-pill-muted {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Segoe UI Semibold", "Microsoft YaHei UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1 {
    max-width: 860px;
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.subhead {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.85;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 16px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-side {
    display: flex;
    align-items: stretch;
    position: relative;
}

.hero-side-card {
    width: 100%;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 20px 36px rgba(10, 21, 35, 0.14);
}

.hero-side-label {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat {
    padding: 16px 16px 14px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stat:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.1));
}

.hero-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.hero-stat strong {
    display: block;
    margin-top: 8px;
    font-family: "Segoe UI Semibold", "Microsoft YaHei UI", sans-serif;
    font-size: 29px;
    line-height: 1;
}

.tabs {
    position: sticky;
    top: 14px;
    z-index: 10;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 18px;
    padding: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(16, 32, 51, 0.08);
}

.tab {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #38526d;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.22s ease;
}

.tab:hover {
    color: var(--primary);
    background: rgba(20, 34, 53, 0.04);
}

.tab.active {
    background: linear-gradient(135deg, #15385a, #255a8f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(23, 57, 92, 0.28);
}

main {
    display: block;
}

.panel,
.detail.hidden {
    display: none;
}

.panel.active,
.detail {
    display: block;
    animation: panelReveal 0.36s ease;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin: 8px 0 14px;
    padding: 0 4px;
}

.panel-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: "Segoe UI Semibold", "Microsoft YaHei UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-intro h2 {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.panel-intro p:last-child {
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
    text-align: right;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 251, 253, 0.88));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.toolbar-sticky {
    position: sticky;
    top: 92px;
    z-index: 9;
}

.toolbar > select,
.toolbar > input,
.toolbar > button {
    min-height: 46px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.toolbar > input {
    min-width: 220px;
}

.toolbar-row-break {
    flex-basis: 100%;
    height: 0;
}

#civilServicePanel .toolbar {
    align-items: flex-start;
    gap: 10px;
}

#civilServicePanel .toolbar > select,
#civilServicePanel .toolbar > input,
#civilServicePanel .toolbar > button {
    min-height: 40px;
    padding: 0 12px;
}

#civilServicePanel .toolbar > select {
    min-width: 128px;
}

#civilServicePanel .toolbar > input {
    min-width: 180px;
}

#civilServicePanel .civil-major-select-wrap {
    min-width: 220px;
    max-width: 430px;
    gap: 4px;
}

#civilServicePanel #civilServiceMajorSearch {
    min-height: 40px;
    padding: 0 12px;
}

#civilServicePanel .civil-major-options {
    max-height: 180px;
    border-radius: 14px;
}

#civilServicePanel .civil-major-select-tip {
    font-size: 11px;
    line-height: 1.35;
}

#civilServicePanel #civilServiceSearchBtn,
#civilServicePanel #civilServiceClearBtn {
    min-width: 78px;
    width: 78px;
    padding: 0 10px;
    flex: 0 0 78px;
}

select:focus,
input:focus,
button:focus,
.multi-select-trigger:focus {
    outline: none;
    border-color: rgba(36, 87, 140, 0.45);
    box-shadow: 0 0 0 4px rgba(36, 87, 140, 0.1);
}

.toolbar > button,
.back-btn {
    border: 0;
    background: linear-gradient(135deg, #18395c, #285f96);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(23, 57, 92, 0.16);
}

.toolbar > button:hover,
.back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(23, 57, 92, 0.2);
}

.toolbar > button.secondary-btn {
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    color: var(--primary);
    border: 1px solid #d6e0ea;
    box-shadow: none;
}

.toolbar > button.secondary-btn:hover {
    background: linear-gradient(180deg, #ffffff, #eef3f8);
}

.secondary-btn {
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    color: var(--primary);
    border: 1px solid #d6e0ea;
    box-shadow: none;
}

.secondary-btn:hover {
    background: linear-gradient(180deg, #ffffff, #eef3f8);
}

.toggle-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.toggle-filter input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-2);
}

.multi-select {
    position: relative;
    min-width: 190px;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.multi-select-arrow {
    color: #71859a;
    font-size: 12px;
}

.multi-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: max-content;
    min-width: 100%;
    max-width: 360px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border: 1px solid rgba(20, 34, 53, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(16, 32, 51, 0.16);
    backdrop-filter: blur(20px);
}

.multi-select-menu.hidden {
    display: none;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
}

.multi-select-option:hover {
    background: #f3f7fb;
}

.multi-select-option input[type="checkbox"],
.multi-select-option input[type="radio"] {
    margin: 0;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    accent-color: var(--primary-2);
}

.multi-select-option span {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    color: var(--text);
    word-break: break-word;
}

.major-subject-filter {
    margin: -4px 0 16px;
    padding: 18px;
    border: 1px solid rgba(216, 226, 236, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 253, 0.94));
    box-shadow: 0 14px 28px rgba(18, 47, 77, 0.06);
}

.major-subject-filter-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.major-subject-filter-head strong {
    font-size: 20px;
    color: #17395c;
}

.major-subject-filter-head span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.major-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.major-subject-chip {
    min-height: 58px;
    padding: 0 14px;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #5d6773;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.major-subject-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 95, 150, 0.26);
    box-shadow: 0 12px 22px rgba(28, 69, 108, 0.1);
}

.major-subject-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #2b8df0, #14b2d7);
    color: #fff;
    box-shadow: 0 16px 28px rgba(33, 126, 206, 0.22);
}

.major-subject-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(36, 87, 140, 0.12);
}

.single-select {
    min-width: 220px;
}

.single-select-search {
    width: 100%;
    min-height: 40px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid #d7e1ec;
    border-radius: 12px;
    background: #f9fbfd;
    font-size: 14px;
    color: var(--text);
}

.single-select-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.single-select-option:hover,
.single-select-option.active {
    background: #f3f7fb;
    color: var(--primary);
    font-weight: 700;
}

.single-select-empty {
    padding: 10px 12px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.civil-major-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

#civilServiceMajorSearch {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.civil-major-options {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d7e1ec;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.civil-major-option {
    margin: 0;
    border-radius: 12px;
}

.civil-major-option-selected {
    background: rgba(36, 87, 140, 0.08);
}

.civil-major-section-title {
    padding: 8px 10px 4px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.civil-major-select-tip {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.selected-filters,
.civil-service-summary,
.school-eval-summary,
.school-featured-overview,
.featured-major-list,
.featured-major-summary-meta,
.featured-major-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-filters {
    margin: -4px 0 16px;
}

.jump-notice {
    min-height: 20px;
    margin: -4px 0 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.jump-notice:empty {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff6e4, #f4e2b7);
    color: #755111;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(200, 154, 75, 0.18);
}

.filter-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.filter-chip-empty {
    color: var(--text-soft);
    font-size: 13px;
    padding: 4px 2px;
}

.filter-chip-pending {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(36, 87, 140, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.table-card,
.detail-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 253, 0.92));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid #ebf0f5;
    text-align: left;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #f7f9fc, #eff4f8);
    color: #3b556f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

tbody tr:nth-child(2n) {
    background: rgba(245, 248, 251, 0.5);
}

tr:hover {
    background: #fff8eb;
}

.table-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.table-sort-btn:hover {
    color: var(--primary);
}

.major-link {
    color: var(--primary-2);
    text-decoration: none;
    font-weight: 800;
}

.school-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.school-name-static {
    color: var(--text);
    font-weight: 800;
}

.major-link:hover,
.school-link:hover {
    text-decoration: underline;
}

.major-name-row,
.school-name-row,
.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.status-badge,
.featured-major-stat,
.grade-badge,
.civil-unit-years {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.excellence-badge {
    background: linear-gradient(135deg, #ffe7a7, #f5c964);
    color: #6f4800;
}

.recommendation-badge {
    background: linear-gradient(135deg, #e0f6ea, #9cdfbf);
    color: #0f6548;
}

.subject-eval-badge {
    background: linear-gradient(135deg, #efe7fb, #d7c0fb);
    color: #5a2ca0;
}

.subject-choice-badge {
    background: linear-gradient(135deg, #e7f7ff, #bfe8ff);
    color: #0d658f;
}

.discipline-level-primary {
    background: linear-gradient(135deg, #e5f1ff, #b6d3ff);
    color: #184d85;
}

.discipline-level-secondary {
    background: linear-gradient(135deg, #eef6e7, #cfe9b2);
    color: #2d6a2d;
}

.industry-badge {
    background: linear-gradient(135deg, #e9f0fc, #c7d7f6);
    color: #234f96;
}

.medical-rank-badge {
    background: linear-gradient(135deg, #ffeabf, #ffc95c);
    color: #7a4200;
    border: 1px solid #f2bb4a;
}

.soft-private-rank-badge {
    background: linear-gradient(135deg, #fff1df, #fbbf80);
    color: #7c2d12;
    border: 1px solid #fdba74;
}

.cnur-independent-rank-badge {
    background: linear-gradient(135deg, #e6fbff, #8ee7f5);
    color: #155e75;
    border: 1px solid #67d9e8;
}

.school-tag-badge {
    border: 1px solid transparent;
}

.school-tag-985 {
    background: linear-gradient(135deg, #ffe5e0, #ffbbad);
    color: #8d1e12;
    border-color: #f3a797;
}

.school-tag-ministerial211 {
    background: linear-gradient(135deg, #fff1d7, #ffd58c);
    color: #8c5102;
    border-color: #f0c670;
}

.school-tag-provincial211 {
    background: linear-gradient(135deg, #edf5ff, #c1ddff);
    color: #124f88;
    border-color: #acd0fb;
}

.school-tag-first-class-university {
    background: linear-gradient(135deg, #eaf8ef, #c3ebce);
    color: #0e6a42;
    border-color: #a3dbb5;
}

.school-tag-first-class-discipline {
    background: linear-gradient(135deg, #f4eeff, #dbc8ff);
    color: #5c2ca4;
    border-color: #c8aeff;
}

.school-tag-dual-high-school-a {
    background: linear-gradient(135deg, #ffe6c9, #ffc471);
    color: #8a4200;
    border-color: #f0af4b;
}

.school-tag-dual-high-school-b {
    background: linear-gradient(135deg, #fff0cf, #ffd98a);
    color: #865100;
    border-color: #efc56b;
}

.school-tag-dual-high-school-c {
    background: linear-gradient(135deg, #fff6dd, #ffe8ae);
    color: #7c5a11;
    border-color: #e8d18d;
}

.school-tag-dual-high-major-a {
    background: linear-gradient(135deg, #def4ff, #9fd7f4);
    color: #0f5d86;
    border-color: #81c7ea;
}

.school-tag-dual-high-major-b {
    background: linear-gradient(135deg, #eaf8ff, #b8e2f8);
    color: #1b6388;
    border-color: #9ad2ec;
}

.school-tag-dual-high-major-c {
    background: linear-gradient(135deg, #f2fbff, #d4eef8);
    color: #2b6d82;
    border-color: #b7e0ef;
}

.school-tag-public-undergrad {
    background: linear-gradient(135deg, #eef8ff, #d4ebff);
    color: #0f5f8d;
    border-color: #b7ddfb;
}

.school-tag-private-undergrad {
    background: linear-gradient(135deg, #fff0f6, #ffd2e4);
    color: #9a235f;
    border-color: #f3bad2;
}

.school-tag-public-junior {
    background: linear-gradient(135deg, #edf9f2, #caeed9);
    color: #156f4b;
    border-color: #afe0c4;
}

.school-tag-private-junior {
    background: linear-gradient(135deg, #fff5e8, #ffd7ad);
    color: #8a4c00;
    border-color: #efc78b;
}

.school-tag-default {
    background: #f1f5f9;
    color: #425466;
    border-color: #d8e1eb;
}

.school-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 360px;
}

.school-overview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #33506b;
}

.school-overview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.school-overview-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #d8e5ef;
    background: #f8fbfd;
    color: #45637c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.school-overview-chip-link {
    text-decoration: none;
    cursor: pointer;
}

.school-overview-chip-link:hover,
.school-overview-chip-link:focus-visible {
    border-color: #8fb7d7;
    background: #edf7ff;
}

.school-overview-chip strong {
    color: #15344f;
    font-weight: 900;
}

.school-overview-strong {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 680px;
    font-size: 13px;
    line-height: 1.55;
}

.school-overview-strong span {
    flex: 0 0 auto;
    color: #6f849b;
    font-weight: 800;
}

.school-overview-strong strong {
    color: var(--text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.volunteer-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    color: #36516d;
    font-size: 13px;
    font-weight: 700;
}

.volunteer-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.volunteer-checkbox-label input[type="checkbox"]:disabled + span {
    opacity: 0.58;
}

.volunteer-usage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dce7f1;
    border-radius: 999px;
    background: #f7fafc;
    color: #60768d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.volunteer-usage-badge.has-count {
    border-color: #b9d9f1;
    background: linear-gradient(135deg, #eaf6ff, #d3ebff);
    color: #17537f;
}

.volunteer-year-tabs {
    margin: 2px 0 12px;
}

.volunteer-year-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(216, 226, 236, 0.86);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 249, 252, 0.78));
    box-shadow: 0 12px 26px rgba(18, 47, 77, 0.06);
}

.volunteer-year-tab,
.volunteer-year-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d6e1eb;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    color: #31506d;
    cursor: pointer;
    font-weight: 800;
}

.volunteer-year-tab strong {
    color: inherit;
    font-size: 14px;
}

.volunteer-year-tab span {
    color: #7890a7;
    font-size: 12px;
    font-weight: 700;
}

.volunteer-year-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, #18395c, #285f96);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23, 57, 92, 0.22);
}

.volunteer-year-tab.active span {
    color: rgba(255, 255, 255, 0.78);
}

.volunteer-year-add {
    color: #184b78;
    border-style: dashed;
}

.volunteer-sheet-toolbar {
    position: static;
    display: grid;
    grid-template-columns: 250px 270px minmax(430px, 1fr) max-content;
    grid-template-areas:
        "status search edit actions"
        "status files edit actions";
    gap: 10px 12px;
    align-items: stretch;
    padding: 14px 16px;
    border-radius: 24px;
}

.volunteer-sheet-toolbar-copy {
    grid-area: status;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(190, 208, 224, 0.42);
    border-radius: 18px;
    background:
        radial-gradient(circle at 16% 0%, rgba(200, 154, 75, 0.12), transparent 38%),
        linear-gradient(135deg, rgba(22, 54, 87, 0.08), rgba(36, 88, 139, 0.03));
    color: #294865;
}

.volunteer-sheet-toolbar-copy strong {
    font-size: 22px;
    color: #143452;
}

.volunteer-sheet-toolbar-copy span {
    font-size: 12px;
    line-height: 1.45;
}

.volunteer-toolbar-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(215, 225, 236, 0.74);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.volunteer-toolbar-section-search {
    grid-area: search;
}

.volunteer-toolbar-section-edit {
    grid-area: edit;
}

.volunteer-toolbar-section-files {
    grid-area: files;
}

.volunteer-toolbar-section-actions {
    grid-area: actions;
    width: max-content;
    max-width: 100%;
}

.volunteer-toolbar-label {
    color: #7a8ea2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.volunteer-toolbar-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.volunteer-sheet-toolbar input,
.volunteer-sheet-toolbar button,
.volunteer-sheet-toolbar .volunteer-json-import-label {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
}

.volunteer-sheet-toolbar input {
    min-width: 0;
    width: 100%;
    border: 1px solid #d7e1ec;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
}

.volunteer-description-editor {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.volunteer-sheet-toolbar textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d7e1ec;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
}

.volunteer-sheet-toolbar textarea:disabled {
    color: #8aa0b3;
    background: rgba(238, 244, 249, 0.76);
}

.volunteer-toolbar-inline input {
    flex: 1 1 220px;
}

.volunteer-sheet-toolbar button,
.volunteer-sheet-toolbar .volunteer-json-import-label {
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.volunteer-sheet-toolbar .primary-btn {
    background: linear-gradient(135deg, #18395c, #285f96);
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 57, 92, 0.15);
}

.volunteer-sheet-toolbar .primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(23, 57, 92, 0.18);
}

.volunteer-sheet-toolbar .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e0ea;
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    color: var(--primary);
    box-shadow: none;
}

.volunteer-sheet-toolbar .secondary-btn:hover {
    background: linear-gradient(180deg, #ffffff, #eef3f8);
}

.volunteer-sheet-toolbar .danger-btn {
    color: #8a3a2f;
    background: linear-gradient(180deg, #fff8f6, #f6ece8);
    border-color: #ead2cc;
}

.volunteer-sheet-workbench {
    display: grid;
    grid-template-columns: minmax(0, 3.7fr) minmax(460px, 1.25fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.volunteer-sheet-sidebar,
.volunteer-sheet-main,
.volunteer-version-panel {
    border: 1px solid rgba(216, 226, 236, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.96));
    box-shadow: 0 14px 30px rgba(18, 47, 77, 0.06);
}

.volunteer-sheet-sidecolumn {
    display: grid;
    gap: 18px;
    min-width: 460px;
}

.volunteer-sheet-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: clamp(460px, 58vh, 680px);
    overflow: hidden;
    padding: 18px;
}

.volunteer-sheet-sidebar-head {
    margin-bottom: 14px;
}

.volunteer-sheet-sidebar-head h3,
.volunteer-version-panel-head h3 {
    margin: 6px 0 8px;
    font-size: 24px;
    color: #163653;
}

.volunteer-sheet-main {
    padding: 18px;
    min-width: 0;
}

.volunteer-sheet-main-primary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.volunteer-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: clamp(340px, 46vh, 560px);
    overflow: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.volunteer-sheet-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8e2ec;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 252, 0.96));
    color: #37506a;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.volunteer-sheet-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(22, 49, 78, 0.1);
}

.volunteer-sheet-card.active {
    border-color: rgba(31, 84, 138, 0.38);
    background: linear-gradient(135deg, rgba(23, 59, 95, 0.12), rgba(39, 98, 156, 0.06));
    box-shadow: 0 16px 30px rgba(21, 55, 89, 0.14);
}

.volunteer-sheet-card strong {
    color: #163653;
    font-size: 14px;
}

.volunteer-sheet-card span {
    font-size: 11px;
    line-height: 1.45;
    color: #667d95;
}

.volunteer-version-panel {
    min-height: clamp(620px, 78vh, 940px);
    padding: 18px;
}

.volunteer-version-panel-head {
    margin-bottom: 14px;
}

.volunteer-version-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: clamp(500px, 66vh, 780px);
    overflow: auto;
    padding-right: 4px;
}

.volunteer-version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9e4ee;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.95));
    color: #48627a;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.volunteer-version-card-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 170px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.volunteer-version-card:hover {
    transform: translateY(-1px);
    border-color: #adc2d8;
    box-shadow: 0 14px 26px rgba(21, 55, 89, 0.08);
}

.volunteer-version-card.active {
    border-color: rgba(31, 84, 138, 0.42);
    background: linear-gradient(135deg, rgba(23, 59, 95, 0.12), rgba(39, 98, 156, 0.07));
}

.volunteer-version-card strong {
    color: #163653;
    font-size: 15px;
}

.volunteer-version-card span {
    font-size: 12px;
    color: #667d95;
}

.volunteer-version-card-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.volunteer-version-open-btn,
.volunteer-version-delete-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.volunteer-version-empty {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.volunteer-sheet-empty-list {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.volunteer-sheet-summary-inline {
    margin: 0;
}

.volunteer-score-sort-btn {
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(36, 96, 151, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, #eef6ff, #dcecff);
    color: #17436c;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 62, 101, 0.08);
}

.volunteer-score-sort-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(22, 62, 101, 0.13);
}

.volunteer-score-sort-btn:disabled {
    cursor: not-allowed;
    opacity: 0.54;
}

.volunteer-sheet-table-card {
    min-width: 0;
    overflow-x: auto;
}

.volunteer-sheet-table-card table {
    min-width: 1540px;
}

.volunteer-plan-count-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(36, 96, 151, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #eef6ff, #dcecff);
    color: #17436c;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.volunteer-plan-count-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(22, 62, 101, 0.12);
}

.volunteer-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #173c61, #2b649d);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.volunteer-order-badge-empty {
    background: linear-gradient(180deg, #eef3f8, #e5edf5);
    color: #5c748d;
}

.volunteer-order-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.volunteer-order-input {
    width: 74px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d5dfe9;
    border-radius: 12px;
    background: #fff;
    color: #173a5e;
    font-size: 14px;
    font-weight: 700;
}

.volunteer-drag-handle {
    min-width: 42px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px dashed #bfd1e2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    color: #44627d;
    cursor: grab;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.volunteer-drag-handle:active {
    cursor: grabbing;
}

.volunteer-row-dragging {
    opacity: 0.58;
}

.volunteer-remove-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.volunteer-placeholder-row td {
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.78), rgba(255, 255, 255, 0.95));
}

.volunteer-placeholder-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #6d8195;
}

.volunteer-placeholder-copy strong {
    color: #3e5870;
    font-size: 14px;
}

.volunteer-placeholder-copy span {
    font-size: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    background: rgba(11, 24, 38, 0.42);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(1100px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 253, 0.96)),
        radial-gradient(circle at top left, rgba(200, 154, 75, 0.1), transparent 30%);
    box-shadow: 0 28px 70px rgba(10, 24, 40, 0.22);
}

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

.modal-card-head h3 {
    margin: 4px 0 8px;
    font-size: 28px;
    color: #143452;
}

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

.volunteer-excel-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid #dde7f0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
}

.volunteer-excel-section-kicker {
    margin: 0;
    color: #6d8195;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.volunteer-excel-section h4 {
    margin: 0;
    font-size: 22px;
    color: #163653;
}

.volunteer-excel-section p {
    margin: 0;
    color: #5f7388;
    line-height: 1.7;
}

.volunteer-excel-section input[type="text"] {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d6e1eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #17395c;
    font-size: 14px;
}

.volunteer-excel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.volunteer-file-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px dashed #9cb2c8;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(238, 245, 250, 0.96));
    color: #1d4a75;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.volunteer-file-picker:hover {
    transform: translateY(-1px);
    border-color: #7998b6;
    box-shadow: 0 14px 28px rgba(23, 58, 92, 0.08);
}

.volunteer-file-name {
    min-height: 22px;
}

.featured-major-summary-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
}

.featured-major-summary-empty,
.muted {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 13px;
}

.featured-major-stat-national {
    background: linear-gradient(135deg, #fff0d6, #ffd283);
    color: #8b5300;
}

.featured-major-stat-provincial {
    background: linear-gradient(135deg, #eaf3ff, #bdd5ff);
    color: #184f8a;
}

.featured-major-stat-key {
    background: linear-gradient(135deg, #e8fbf2, #bcebd4);
    color: #0f6a45;
}

.featured-major-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: #f6f9fc;
    border: 1px solid #dbe7f4;
}

.featured-major-chip-inline {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.featured-major-chip-national {
    background: linear-gradient(135deg, #fff8e7, #ffe1a8);
    border-color: #ffd078;
    color: #7a4c00;
}

.featured-major-chip-provincial {
    background: linear-gradient(135deg, #f3f8ff, #d6e6ff);
    border-color: #bdd5ff;
    color: #1a4d84;
}

.featured-major-chip-key {
    background: linear-gradient(135deg, #f2fbf6, #d0f1df);
    border-color: #b4e5ca;
    color: #0d6743;
}

.subject-requirement-text {
    margin-top: 4px;
}

.admission-plan-note-text {
    margin-top: 2px;
    max-width: 520px;
    color: #7b8da0;
    font-size: 12px;
    line-height: 1.55;
}

.discipline-code {
    font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
    font-size: 13px;
    font-weight: 800;
    color: #1f4f7b;
    letter-spacing: 0.03em;
}

.school-eval-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 18px;
}

.school-eval-item {
    padding: 16px 18px;
    border: 1px solid rgba(180, 201, 224, 0.42);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(240, 246, 255, 0.9));
    box-shadow: 0 12px 24px rgba(33, 74, 123, 0.08);
}

.school-eval-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.school-eval-code {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #6c86a5;
}

.school-eval-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.school-eval-empty {
    grid-column: 1 / -1;
    color: var(--text-soft);
    font-size: 14px;
    padding: 8px 2px;
}

.civil-degree-badge {
    background: linear-gradient(135deg, #e5f2ff, #b7d9ff);
    color: #184d85;
}

.civil-major-name,
.civil-unit-name {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
}

.civil-unit-list,
.civil-unit-more {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.civil-unit-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.civil-unit-years {
    background: #f0f5fb;
    color: #55708d;
}

.civil-unit-collapse {
    margin-top: 2px;
}

.civil-unit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.civil-unit-toggle::-webkit-details-marker {
    display: none;
}

.civil-unit-toggle::before {
    content: "展开";
}

.civil-unit-collapse[open] .civil-unit-toggle::before {
    content: "收起";
}

.civil-unit-collapse[open] .civil-unit-toggle {
    margin-bottom: 8px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.95));
}

.pagination button {
    min-width: 96px;
    min-height: 40px;
    border: 1px solid #d8e1eb;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #eef3f8);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.detail {
    margin-top: 12px;
}

.back-btn {
    margin-bottom: 16px;
    padding: 12px 20px;
    border-radius: 999px;
}

.detail-card {
    padding: 24px;
}

.detail-card h2 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 2.8vw, 40px);
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--text-soft);
}

.detail-badge {
    font-size: 13px;
}

.detail-section {
    margin-top: 24px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid #e3ebf4;
}

.detail-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-section-head h3 {
    margin: 4px 0 0;
    font-size: 22px;
    color: var(--text);
}

.section-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.source-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d6e4f0;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.source-link:hover {
    background: #f5f9ff;
}

.school-featured-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.featured-major-overview-card {
    padding: 18px 18px 16px;
    border-radius: 20px;
    color: var(--text);
    border: 1px solid rgba(20, 34, 53, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.featured-major-overview-card span,
.featured-major-overview-card small {
    display: block;
}

.featured-major-overview-card strong {
    display: block;
    margin: 8px 0 6px;
    font-family: "Segoe UI Semibold", "Microsoft YaHei UI", sans-serif;
    font-size: 32px;
    line-height: 1;
}

.featured-major-overview-card small {
    color: rgba(20, 34, 53, 0.68);
    line-height: 1.55;
}

.featured-major-overview-total {
    background: linear-gradient(135deg, #fff7e3, #f6e5bf);
}

.featured-major-overview-national {
    background: linear-gradient(135deg, #fffaf0, #f8ebc9);
}

.featured-major-overview-provincial {
    background: linear-gradient(135deg, #f1f7ff, #dfeafc);
}

.featured-major-overview-key {
    background: linear-gradient(135deg, #eefbf4, #d8f2e4);
}

.featured-major-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.featured-major-group {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dfe8f2;
    background: rgba(255, 255, 255, 0.96);
}

.featured-major-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.featured-major-group-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.featured-major-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f8fd;
    color: #325b84;
    font-size: 13px;
    font-weight: 800;
}

.featured-major-group-national {
    background: linear-gradient(180deg, #fffdf8, #ffffff);
}

.featured-major-group-provincial {
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.featured-major-group-key {
    background: linear-gradient(180deg, #f8fcfa, #ffffff);
}

.grade-Aplus,
.grade-A {
    background: #e4f7eb;
    color: #0f6a3b;
}

.grade-Aminus {
    background: #ebf7ef;
    color: #24784a;
}

.grade-Bplus,
.grade-B {
    background: #eef4ff;
    color: #1f56a5;
}

.grade-Bminus {
    background: #f3f6ff;
    color: #3f67a8;
}

.grade-Cplus,
.grade-C {
    background: #fff2df;
    color: #9b5b00;
}

.grade-Cminus {
    background: #fff5eb;
    color: #ad6b12;
}

#detailChart {
    width: 100%;
    display: block;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfcfd, #f3f7fb);
}

.empty-row {
    text-align: center;
    color: var(--text-soft);
    padding: 28px 0;
}

.hidden {
    display: none !important;
}

@media (max-width: 1300px) {
    .volunteer-sheet-toolbar {
        grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr);
        grid-template-areas:
            "status edit"
            "search actions"
            "files actions";
    }

    .volunteer-toolbar-section-actions {
        width: auto;
    }
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .panel-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-intro p:last-child {
        max-width: none;
        text-align: left;
    }

    .school-featured-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-major-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .shell {
        padding: 18px 14px 28px;
    }

    .hero {
        padding: 22px 18px;
        border-radius: 28px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tabs {
        top: 8px;
        width: 100%;
        border-radius: 22px;
    }

    .toolbar-sticky {
        top: 92px;
    }

    th,
    td {
        padding: 12px;
    }

    .multi-select,
    .multi-select-menu {
        min-width: 100%;
    }

    .major-subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .civil-unit-item {
        align-items: flex-start;
    }

    .detail-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .volunteer-sheet-toolbar {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "status status"
            "search edit"
            "files actions";
        align-items: stretch;
    }

    .volunteer-sheet-workbench {
        grid-template-columns: 1fr;
    }

    .volunteer-sheet-sidecolumn {
        grid-template-columns: 1fr;
    }

    .volunteer-order-tools {
        flex-wrap: wrap;
    }

    .volunteer-sheet-list {
        max-height: 260px;
    }

    .volunteer-sheet-card {
        width: 100%;
    }

    .volunteer-version-timeline {
        max-height: 260px;
    }

    .volunteer-version-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .volunteer-version-card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .volunteer-excel-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-card-head {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .hero-topline,
    .hero-highlights,
    .hero-stats,
    .tabs {
        gap: 10px;
    }

    .hero-stats,
    .school-featured-overview,
    .school-eval-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        padding: 14px;
    }

    .toolbar > select,
    .toolbar > input,
    .toolbar > button,
    .multi-select-trigger,
    .toggle-filter {
        width: 100%;
    }

    .major-subject-filter {
        padding: 16px;
    }

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

    .major-subject-chip {
        min-height: 52px;
        font-size: 16px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .toolbar-sticky {
        top: 86px;
    }

    .volunteer-sheet-toolbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "status"
            "search"
            "edit"
            "files"
            "actions";
    }

    .volunteer-toolbar-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .volunteer-description-editor {
        grid-template-columns: 1fr;
    }

    .volunteer-sheet-toolbar input,
    .volunteer-sheet-toolbar textarea,
    .volunteer-sheet-toolbar button,
    .volunteer-sheet-toolbar .volunteer-json-import-label {
        width: 100%;
    }

    .volunteer-sheet-sidebar {
        max-height: none;
    }

    .volunteer-version-timeline {
        max-height: 300px;
    }

    .modal-backdrop {
        padding: 16px 10px;
    }

    .modal-card {
        padding: 18px;
        border-radius: 22px;
    }
}
body.auth-required {
    overflow: hidden;
}

body.auth-required .shell {
    display: none;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 209, 128, 0.32), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(33, 111, 170, 0.22), transparent 30%),
        linear-gradient(135deg, #f8efe0 0%, #eef5f8 48%, #f9fbfd 100%);
}

.login-screen.hidden {
    display: none;
}

.login-card {
    width: min(480px, 100%);
    padding: 42px;
    border: 1px solid rgba(139, 166, 188, 0.32);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 80px rgba(16, 52, 84, 0.16);
    backdrop-filter: blur(18px);
}

.login-kicker {
    margin: 0 0 10px;
    color: #c68a2c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 0;
    color: #123451;
    font-size: clamp(34px, 7vw, 54px);
    line-height: 1.05;
}

.login-copy {
    margin: 18px 0 28px;
    color: #647b93;
    font-size: 16px;
    line-height: 1.8;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #173c5d;
    font-weight: 800;
}

.login-form input {
    height: 54px;
    padding: 0 18px;
    border: 1px solid #c9d8e6;
    border-radius: 16px;
    color: #123451;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.92);
}

.login-form input:focus {
    outline: 3px solid rgba(36, 125, 194, 0.16);
    border-color: #2a78b8;
}

.login-form button,
.logout-btn,
.frontend-switch-btn {
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.login-form button {
    height: 56px;
    border-radius: 18px;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, #164b79, #2387c2);
    box-shadow: 0 16px 34px rgba(35, 117, 180, 0.24);
}

.login-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.login-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(209, 81, 74, 0.28);
    border-radius: 14px;
    color: #9d2c25;
    background: rgba(255, 238, 234, 0.86);
    font-weight: 800;
}

.logout-btn,
.frontend-switch-btn {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.14);
}

.frontend-switch-btn {
    color: #12355b;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(18, 53, 91, 0.12);
}

.logout-btn:hover,
.frontend-switch-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.frontend-switch-btn:hover {
    color: #0f4f86;
    background: #ffffff;
}

.volunteer-json-import-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    cursor: pointer;
}
