* {
    box-sizing: border-box;
}

/* 全站米杏暖色 — 与左侧管理导航一致，供维护与局部引用 */
:root {
    --gb-bg-page: #faf6f1;
    --gb-bg-subtle: #f5ebe0;
    --gb-bg-card: #ffffff;
    --gb-border: #e7d3bc;
    --gb-border-soft: #eadfd4;
    --gb-border-input: #dfc4ae;
    --gb-text: #303133;
    --gb-text-strong: #2a1f18;
    --gb-text-muted: #6b5c52;
    --gb-accent: #b18659;
    --gb-accent-dark: #8b633f;
    --gb-accent-ink: #6b4423;
    --gb-accent-soft: #fdebd4;
    --gb-accent-softer: #fff6ea;
    --gb-link: #5c3d28;
    --gb-shadow: rgba(94, 62, 38, 0.08);
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    color: #1d2939;
    background: var(--gb-bg-page);
}

a {
    color: inherit;
    text-decoration: none;
}

/* 全站主宽度：通栏，仅保留少量左右内边距避免贴边 */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e6ddd4;
    backdrop-filter: blur(10px);
}

.topbar-inner,
.footer-inner,
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-inner,
.footer-inner {
    padding: 16px 0;
}

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

.brand p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #667085;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #b18659, #c8a277);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 10px;
    color: #475467;
}

.nav a.active,
.nav a:hover {
    background: #fff6ea;
    color: #8b633f;
}

.inline-form {
    margin: 0;
}

.nav-btn {
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    color: #b42318;
    background: #fee4e2;
}

/* 访客顶栏 v2：暖棕深色 + 金色强调线 */
.topbar--public {
    position: sticky;
    top: 0;
    z-index: 20;
    background: transparent;
    border-bottom: none;
}

.topbar-public-main {
    background: linear-gradient(180deg, #2a1f18 0%, #3d2a1f 100%);
}

.topbar-public-accent {
    height: 4px;
    background: linear-gradient(90deg, #6b4423 0%, #b18659 45%, #e8c9a0 100%);
}

.topbar-inner--public-v2 {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

@media (max-width: 1024px) {
    .topbar-inner--public-v2 {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
}

.brand--public {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand--public .brand-mark {
    flex-shrink: 0;
}

.topbar--public .brand-mark {
    background: linear-gradient(135deg, #b18659, #c8a277);
}

.brand-public-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fffaf5;
    line-height: 1.35;
}

.topbar-public-mid,
.topbar-public-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.topbar-public-side {
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .topbar-public-mid,
    .topbar-public-side {
        justify-content: flex-start;
    }
}

.topbar-pub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 250, 245, 0.88);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.topbar-pub-link:hover,
.topbar-pub-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.topbar-pub-link--soon {
    opacity: 0.55;
    cursor: default;
}

.topbar-pub-link--accent.is-active,
.topbar-pub-link--accent:hover {
    background: rgba(177, 134, 89, 0.35);
    color: #fff8f0;
}

.topbar-pub-link--register {
    background: rgba(177, 134, 89, 0.35);
    border: 1px solid rgba(232, 201, 160, 0.45);
    color: #fff8f0;
}

.topbar-pub-link--register:hover {
    background: rgba(177, 134, 89, 0.5);
    color: #fff;
}

.topbar-pub-ico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.92;
}

.topbar-pub-form {
    margin: 0;
    display: inline;
}

.topbar-pub-link--btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.topbar-pub-user {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fdebd4;
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 兼容旧类名（登录页等若仍引用） */
.topbar-inner--public {
    flex-wrap: wrap;
    row-gap: 10px;
}

.topbar-public-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.topbar-user-chip {
    font-size: 13px;
    color: var(--gb-text-muted);
    padding: 6px 12px;
    background: var(--gb-accent-softer);
    border-radius: 999px;
    border: 1px solid var(--gb-border-soft);
    white-space: nowrap;
}

.topbar-public-nav > a {
    padding: 8px 14px;
    border-radius: 10px;
    color: #475467;
    font-size: 14px;
}

.topbar-public-nav > a:hover,
.topbar-public-nav > a.is-active {
    background: #fff6ea;
    color: #8b633f;
}

.nav-btn--public {
    padding: 8px 14px;
    font-size: 14px;
}

.notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.notice--hiding {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-width: 0;
}

.site-flash-wrap {
    transition: max-height 0.35s ease;
}

.site-flash-wrap:empty {
    display: none;
}

.notice-success {
    color: #1e4d8c;
    background: #eef3fa;
    border-color: #b3d4f7;
}

.notice-error {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.notice-info {
    color: #6b4423;
    background: #fff6ea;
    border-color: #ecd4b8;
}

.user-card {
    margin-bottom: 20px;
}

.hero {
    background: linear-gradient(135deg, #2a1f18, #8b633f 55%, #dcc9a8);
    color: #fff;
    padding: 64px 0;
}

.hero-copy {
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 44px;
}

.hero p {
    margin: 0 0 24px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-panel {
    min-width: 280px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metric + .hero-metric {
    margin-top: 18px;
}

.hero-metric span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
}

.hero-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.section-gap {
    padding: 48px 0;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h1,
.section-title h2 {
    margin: 0 0 10px;
}

.section-title p {
    margin: 0;
    color: #667085;
}

.feature-groups,
.stats-grid,
.panel-grid,
.quick-grid,
.flow-grid {
    display: grid;
    gap: 18px;
}

.feature-groups {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 18px;
}

.flow-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.card,
.auth-card,
.table-card {
    background: #fff;
    border: 1px solid #ece4da;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(45, 32, 22, 0.04);
}

.stat-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 32px;
    color: #101828;
}

.stat-card span,
.quick-item span {
    color: #667085;
}

.quick-item {
    display: block;
    padding: 18px;
    border-radius: 16px;
    background: #faf7f2;
    border: 1px solid #e3d9ce;
}

.quick-item strong {
    display: block;
    margin-bottom: 8px;
}

.plain-list {
    margin: 14px 0 0;
    padding-left: 20px;
    line-height: 1.9;
    color: #475467;
}

.flow-item {
    padding: 18px 16px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    background: #ffffff;
    border: 1px dashed #dfc4ae;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #c8a277 0%, #9f7750 100%);
    border: 1px solid rgba(120, 78, 48, 0.35);
    box-shadow: 0 1px 2px rgba(45, 32, 22, 0.06);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-secondary {
    color: #8b633f;
    background: #fdebd4;
}

.btn-warning {
    color: #5c4718;
    background: linear-gradient(180deg, #ffe896 0%, #f0ca4a 100%);
    border: 1px solid rgba(180, 140, 40, 0.45);
    box-shadow: 0 1px 2px rgba(45, 32, 22, 0.06);
}

.btn-warning:hover {
    filter: brightness(1.03);
}

.btn-success {
    color: #fff;
    background: #2e7d32;
    border: 1px solid rgba(27, 94, 32, 0.45);
    box-shadow: 0 1px 2px rgba(27, 94, 32, 0.18);
}

.btn-success:hover {
    background: #1b5e20;
    filter: none;
}

.auth-section {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
    padding: 48px 0;
}

.auth-card {
    width: min(520px, 100%);
}

.auth-card-wide {
    width: min(640px, 100%);
}

.auth-card-online-reg {
    width: min(1200px, 100%);
    max-width: 100%;
}

.judge-login-card .judge-login-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #344054;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4e7ec;
}

.judge-login-tip {
    margin-top: 14px;
}

.portal-meet-wrap.is-hidden {
    display: none !important;
}

.online-reg-portal-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #fff6ea;
    border: 1px solid #ecd4b8;
    border-radius: 10px;
    font-size: 14px;
    color: #1d2939;
}

.online-reg-portal-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 参赛队伍登录（公开页） */
.team-login-shell {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    margin: -24px -16px 0;
    background: linear-gradient(135deg, #8b5a38 0%, #9f7750 45%, #c8a277 100%);
}

.team-login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(45, 32, 22, 0.35);
}

@media (max-width: 880px) {
    .team-login-card {
        grid-template-columns: 1fr;
    }

    .team-login-right {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

.team-login-left {
    padding: 40px 36px 36px;
}

.team-login-brand {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #ffe8d4, #e8c9a8);
    border-radius: 14px;
}

.team-login-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #101828;
}

.team-login-sub {
    margin: 0 0 28px;
    text-align: center;
    font-size: 14px;
    color: #667085;
}

.team-login-warn {
    color: #b42318;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.team-login-field {
    display: block;
    margin-bottom: 18px;
}

.team-login-field span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #344054;
}

.team-login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

.team-login-field input:focus {
    outline: none;
    border-color: #b18659;
    box-shadow: 0 0 0 3px rgba(177, 134, 89, 0.22);
}

.team-login-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #b18659 0%, #9f7750 100%);
    box-shadow: 0 8px 20px rgba(120, 78, 48, 0.28);
}

.team-login-submit:hover {
    filter: brightness(1.05);
}

.team-login-submit-ic {
    font-size: 18px;
    opacity: 0.95;
}

.team-login-right {
    padding: 36px 28px 32px;
    background: rgba(45, 32, 22, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #faf7f2;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.team-login-right-head {
    text-align: center;
    margin-bottom: 22px;
}

.team-login-meet-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.team-login-meet-sub {
    margin: 6px 0 0;
    font-size: 13px;
    opacity: 0.88;
}

.team-login-tips {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.team-login-tips-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.team-login-tips-lead {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
}

.team-login-tips-list {
    margin: 0 0 12px;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.55;
}

.team-login-tips-list li {
    margin-bottom: 6px;
}

.team-login-tips-foot {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.88;
}

.team-login-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.team-login-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.team-login-pill--muted {
    font-weight: 500;
    opacity: 0.92;
}

.team-login-alt {
    text-align: center;
    margin: 0;
    font-size: 13px;
}

.team-login-alt a {
    color: #ffe8d4;
    text-decoration: underline;
}

.team-login-alt a:hover {
    color: #fff;
}

.online-reg-filter-tip {
    margin-top: 4px;
    margin-bottom: 16px;
}

.online-reg-context-line {
    margin-top: 4px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.online-reg-context-line a {
    white-space: nowrap;
}

.online-reg-bound-hint {
    color: #1e4d8c;
    font-weight: 500;
}

.online-reg-unit-bound {
    margin: 0;
    padding: 10px 12px;
    background: #f2f4f7;
    border-radius: 8px;
}

.online-reg-submit-form {
    margin-top: 8px;
    min-width: 0;
}

.online-reg-batch-filters {
    margin-top: 0;
}

.online-reg-staff-scroll {
    margin-top: 14px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.online-reg-staff-scroll .online-reg-staff-grid {
    margin-top: 0;
}

.online-reg-staff-grid {
    width: 100%;
    min-width: 520px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
}

@media (max-width: 900px) {
    .online-reg-staff-grid {
        gap: 10px 8px;
    }

    .online-reg-staff-grid label span {
        font-size: 13px;
    }
}

.online-reg-staff-tip {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.online-reg-batch-tip {
    margin: 0 0 12px;
}

.online-reg-batch-toolbar {
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.online-reg-batch-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border: 1px solid #e6ddd4;
    border-radius: 12px;
    background: #fff;
}

.online-reg-batch-table {
    --online-reg-seq-w: 2.75rem;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#online-reg-batch-tbody {
    counter-reset: online-reg-seq;
}

.online-reg-batch-table tbody tr.online-reg-batch-tr {
    counter-increment: online-reg-seq;
}

.online-reg-batch-tr--error td {
    background: #fef3f2 !important;
}

.online-reg-batch-tr--error td.online-reg-seq-cell,
.online-reg-batch-tr--error td.online-reg-name-cell {
    background: #fef3f2 !important;
    box-shadow: 1px 0 0 #fecdca;
}

.online-reg-batch-tr--error {
    outline: 2px solid #f04438;
    outline-offset: -2px;
}

.online-reg-seq-num::before {
    content: counter(online-reg-seq);
}

.online-reg-batch-table th,
.online-reg-batch-table td {
    border: 1px solid #ece4da;
    padding: 8px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.online-reg-batch-table thead th {
    background: #fcf9f4;
    font-weight: 600;
    color: #344054;
    position: sticky;
    top: 0;
    z-index: 1;
}

.online-reg-col-seq {
    min-width: var(--online-reg-seq-w);
    width: var(--online-reg-seq-w);
    max-width: var(--online-reg-seq-w);
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fcf9f4;
    box-shadow: 1px 0 0 #ece4da;
}

.online-reg-col-name {
    min-width: 7rem;
    position: sticky;
    left: var(--online-reg-seq-w);
    z-index: 4;
    background: #fcf9f4;
    box-shadow: 1px 0 0 #ece4da;
}

.online-reg-seq-cell {
    text-align: center;
    font-weight: 600;
    color: #667085;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 #ece4da;
}

.online-reg-batch-table tbody td.online-reg-name-cell {
    position: sticky;
    left: var(--online-reg-seq-w);
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 #ece4da;
}

.online-reg-col-gender {
    min-width: 4.5rem;
}

.online-reg-col-id {
    min-width: 11rem;
    white-space: normal;
}

.online-reg-col-ev {
    max-width: 5rem;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.25;
    font-size: 12px;
    padding: 6px 4px;
}

.online-reg-col-relay {
    min-width: 5rem;
    text-align: center;
}

.online-reg-ev-cell {
    text-align: center;
    padding: 6px 4px;
}

.online-reg-batch-chk {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.online-reg-batch-chk input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #b18659;
}

.online-reg-in-name,
.online-reg-in-id {
    width: 100%;
    min-width: 0;
    max-width: 12rem;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    box-sizing: border-box;
}

.online-reg-in-gender {
    width: 100%;
    min-width: 4rem;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
}

.online-reg-in-relay {
    width: 3.25rem;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
    text-align: center;
}

.online-reg-batch-actions {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.online-reg-events-fieldset {
    border: 1px solid #e6ddd4;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0;
    min-width: 0;
    overflow: visible;
}

.online-reg-events-fieldset legend {
    padding: 0 6px;
    font-size: 14px;
    color: #344054;
    font-weight: 600;
}

.online-reg-events-hint {
    margin: 0 0 10px;
    font-size: 13px;
}

.online-reg-event-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    overflow: visible;
}

.online-reg-event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.online-reg-event-item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    margin-top: 4px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: #b18659;
}

/* 避免 .form-grid label span 把项目名变成块级并换行错位 */
.form-grid label.online-reg-event-item > span {
    display: inline;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    text-align: left;
    color: #1d2939;
    font-size: 15px;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.form-grid label span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #344054;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfc4ae;
    border-radius: 12px;
    outline: none;
}

.form-grid input[type="checkbox"],
.form-grid input[type="radio"] {
    width: auto;
    max-width: none;
    padding: 0;
    vertical-align: middle;
}

.table-card {
    overflow-x: auto;
}

.tip {
    margin-top: 12px;
    color: #475467;
}

.meet-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
}

.meet-form-grid label span {
    display: block;
    margin-bottom: 8px;
    color: #344054;
}

.meet-form-grid input,
.meet-form-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
}

.reg-batch-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.reg-batch-card-head h2 {
    margin: 0;
}

.reg-batch-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reg-batch-form .reg-batch-meet-row {
    margin-bottom: 8px;
}

.reg-batch-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reg-batch-row {
    padding-top: 16px;
    border-top: 1px solid #ece4da;
}

.reg-batch-rows > .reg-batch-row:first-child {
    padding-top: 0;
    border-top: none;
}

.reg-batch-submit-wrap {
    margin-top: 8px;
}

.reg-batch-fixed-unit-hint {
    margin: 0 0 12px;
}

input.reg-batch-unit-readonly {
    background: #fcf9f4;
    color: #344054;
    cursor: default;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #ece4da;
}

th {
    color: #667085;
    font-weight: 600;
}

.table-card input,
.table-card select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3fa;
    color: #1e4d8c;
    font-size: 13px;
}

.row-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.btn-danger {
    color: #fff;
    background: #d92d20;
}

.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-sm {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.order-cover {
    text-align: center;
    padding: 40px 24px;
}

.order-cover h2 {
    margin-bottom: 8px;
    font-size: 32px;
}

.order-section h3 {
    margin-top: 0;
}

.order-book-h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.order-book-meta {
    margin: 0 0 10px;
}

.order-book-matrix-wrap {
    overflow-x: auto;
    margin-top: 4px;
}

.order-book-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.order-book-matrix th,
.order-book-matrix td {
    border: 1px solid #dfc4ae;
    padding: 8px 10px;
    vertical-align: top;
}

.order-book-corner {
    min-width: 4.5rem;
    background: #fcf9f4;
}

.order-book-heat-label {
    white-space: nowrap;
    background: #fcf9f4;
    font-weight: 600;
}

.order-book-cell {
    min-width: 6.5rem;
    line-height: 1.35;
}

.order-book-cell-block {
    margin-bottom: 6px;
    white-space: pre-line;
}

.order-book-cell-block:last-child {
    margin-bottom: 0;
}

.sign-cell,
.remark-cell {
    height: 44px;
}

.certificate-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid #d4af37;
}

.certificate-title {
    font-size: 36px;
    font-weight: 700;
    color: #9a6b00;
    letter-spacing: 6px;
    margin-bottom: 24px;
}

.certificate-text {
    font-size: 20px;
    line-height: 2;
    color: #344054;
    margin: 10px 0;
}

.certificate-text--recipient {
    text-align: left;
}

.certificate-text--body {
    text-align: left;
    text-indent: 2em;
}

.certificate-footer {
    margin-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    color: #475467;
    flex-wrap: wrap;
}

.certificate-footer__score {
    text-align: left;
    text-indent: 2em;
}

.certificate-footer__sign-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.certificate-footer__sign,
.certificate-footer__date {
    display: block;
    line-height: 1.8;
}

.certificate-card--land {
    min-height: 280px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.certificate-card--land .certificate-title {
    text-align: center;
}

.certificate-card.mpt-preview-cert {
    border-style: solid;
}

.timeline-item + .timeline-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ece4da;
}

.timeline-item p,
.footer p,
.card p {
    color: #667085;
    line-height: 1.8;
}

.footer {
    margin-top: 40px;
    background: #2a1f18;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer a {
    color: #d4c4b6;
}

/* 官网首页主区：仅五项横向工具条 */
.home-portal {
    background: #f2f4f7;
    padding: 40px 16px 56px;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-portal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 5vw, 56px);
    width: 100%;
    max-width: none;
}

.home-portal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    max-width: 140px;
    padding: 10px 8px;
    border-radius: 12px;
    color: #475467;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.home-portal-item:hover:not(.home-portal-item--disabled) {
    background: rgba(177, 134, 89, 0.08);
    color: #8b633f;
}

.home-portal-item--disabled {
    cursor: default;
    opacity: 0.55;
}

.home-portal-svg {
    display: block;
    flex-shrink: 0;
}

.home-portal-label {
    font-size: 14px;
    line-height: 1.35;
    color: inherit;
}

.home-portal-item--form {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.home-portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    max-width: 140px;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: #475467;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-portal-btn:hover {
    background: rgba(177, 134, 89, 0.08);
    color: #8b633f;
}

/* 系统首页主区（2×2 铺满 + 联系区） */
.gb-admin-inner--sys-home.section-gap {
    padding: 16px 0 28px;
}

.gb-admin-content:has(.sys-home-wrap) {
    padding: 16px 20px 32px;
}

.sys-home-wrap {
    width: 100%;
    padding-top: 0;
}

.sys-home-portal {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.sys-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 18px;
    align-items: stretch;
}

@media (max-width: 720px) {
    .sys-home-portal {
        max-width: none;
    }

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

.sys-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    padding: 0 0 22px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.sys-home-card--clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.sys-home-card--clickable:hover,
a.sys-home-card--clickable:focus-visible {
    transform: translateY(-5px);
    border-color: #a7d4ab;
    box-shadow: 0 10px 28px rgba(30, 77, 140, 0.14);
    outline: none;
}

a.sys-home-card--clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 77, 140, 0.12);
}

.sys-home-card--disabled:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: default;
}

.sys-home-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 4px;
    transform: none;
    border-radius: 0;
}

.sys-home-card--track::before {
    background: linear-gradient(90deg, #b18659, #c8a277);
}

.sys-home-card--ball::before {
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.sys-home-card--racket::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.sys-home-card--health::before {
    background: #a89888;
}

.sys-home-card--disabled {
    opacity: 1;
}

.sys-home-card--disabled .sys-home-card-icon {
    opacity: 0.92;
}

.sys-home-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 0;
}

.sys-home-card-icon {
    flex-shrink: 0;
    font-size: 42px;
    line-height: 1;
    margin: 0;
}

.sys-home-card-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.sys-home-card-desc {
    margin: 0;
    padding: 12px 22px 0;
    font-size: 16px;
    color: #1e293b;
    line-height: 1.7;
    flex: 1;
}

.sys-home-card-actions {
    padding: 14px 22px 0;
    margin-top: auto;
}

.sys-home-use-btn {
    display: inline-block;
    min-width: 108px;
    padding: 9px 20px;
    font-size: 14px;
    text-align: center;
}

.sys-home-card--disabled .sys-home-use-btn {
    cursor: default;
    pointer-events: none;
    opacity: 0.85;
}

a.sys-home-card--clickable .sys-home-use-btn {
    pointer-events: none;
}

.sys-home-soon-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    background: #f4f8fd;
    border: 1px dashed #c5d5e8;
}

.sys-home-contact {
    padding: 20px 20px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.sys-home-contact-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.sys-home-qr-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 24px;
    justify-items: center;
    align-items: start;
}

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

@media (max-width: 480px) {
    .sys-home-qr-row {
        grid-template-columns: 1fr;
    }
}

.sys-home-qr {
    margin: 0;
    width: 100%;
    max-width: 160px;
    text-align: center;
}

.sys-home-qr-box {
    width: 100%;
    aspect-ratio: 1;
    max-width: 160px;
    margin: 0 auto 10px;
    border: 1px dashed #c5d5e8;
    border-radius: 10px;
    background: #f4f8fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    padding: 10px;
    box-sizing: border-box;
}

.sys-home-qr-cap {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

/* 四大板块工作台 */
.workbench-quad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
    .workbench-quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.workbench-pillar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e6ddd4;
    box-shadow: 0 1px 3px rgba(45, 32, 22, 0.06);
    padding: 18px 16px 14px;
    min-height: 100%;
}

.workbench-pillar-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #faf6f1;
}

.workbench-pillar-title {
    margin: 0;
    font-size: 17px;
    color: #2a1f18;
}

.workbench-pillar-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.workbench-pillar--blue {
    border-top: 4px solid #b18659;
}

.workbench-pillar--teal {
    border-top: 4px solid #1e4d8c;
}

.workbench-pillar--amber {
    border-top: 4px solid #d97706;
}

.workbench-pillar--violet {
    border-top: 4px solid #b18659;
}

.workbench-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workbench-linkitem + .workbench-linkitem {
    margin-top: 2px;
}

.workbench-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: #3d342f;
    transition: background 0.15s ease;
}

.workbench-link:hover {
    background: #faf6f1;
    color: #8b633f;
}

.workbench-link strong {
    display: block;
    font-size: 14px;
}

.workbench-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.workbench-soon,
.workbench-denied {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
}

.workbench-soon {
    background: #faf7f2;
    border: 1px dashed #d4c4b6;
}

.workbench-soon strong {
    display: block;
    font-size: 14px;
    color: #475467;
}

.workbench-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e3d9ce;
    color: #475467;
}

.workbench-denied {
    opacity: 0.55;
    cursor: not-allowed;
}

.workbench-denied strong {
    display: block;
    font-size: 14px;
}

.workbench-stats-card {
    margin-top: 8px;
}

.page-admin-shell .page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.topbar--admin-shell {
    border-bottom: 1px solid #e3d9ce;
}

.topbar-inner--admin-shell {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.topbar-shell-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-shell-toggle {
    flex-shrink: 0;
    border: 1px solid #e3d9ce;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: #4a3f36;
    cursor: pointer;
}

.topbar-shell-toggle:hover {
    background: #faf7f2;
}

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

.brand--shell .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
}

.brand-name-shell {
    font-size: 15px;
    color: #2a1f18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.topbar-shell-title {
    font-size: 17px;
    font-weight: 700;
    color: #2a1f18;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-shell-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 12px;
    font-size: 14px;
}

.topbar-shell-actions > a {
    padding: 6px 4px;
    color: #475467;
    border-radius: 8px;
}

.topbar-shell-actions > a:hover {
    color: #8b633f;
    background: #fff6ea;
}

.topbar-shell-user {
    font-size: 13px;
    color: #64748b;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-btn--shell {
    padding: 8px 12px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .topbar-inner--admin-shell {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    .topbar-shell-title {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
        font-size: 16px;
    }

    .topbar-shell-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .topbar-shell-left {
        grid-column: 1;
        grid-row: 1;
    }

    .gb-admin-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .gb-admin-strip-left {
        width: 100%;
    }

    .gb-admin-strip-title {
        white-space: normal;
    }

    .gb-admin-strip-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.page-admin-shell .gb-admin-sidebar {
    transition: width 0.2s ease, opacity 0.18s ease, padding 0.2s ease, min-width 0.2s ease;
}

.admin-shell-sidebar-collapsed .gb-admin-sidebar {
    width: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border: none;
}

.nav-btn-compact {
    padding: 8px 12px;
    font-size: 13px;
}

.gb-admin-app {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
}

/* 主栏：顶条固定置顶，下方内容区独立滚动 */
.gb-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    background: #f4f8fd;
    overflow: hidden;
}

.gb-admin-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: var(--gb-shell-header-h, 60px);
    box-sizing: border-box;
    padding: 0 16px;
    margin-bottom: 0;
    background: #f4f8fd;
    border: none;
    border-bottom: 1px solid #d4dce8;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(45, 32, 22, 0.06);
}

.gb-admin-strip.mpts-toolbar {
    margin-bottom: 0;
}

.gb-admin-strip-nav {
    flex-shrink: 0;
}

.gb-admin-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.gb-admin-strip-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-admin-strip-actions {
    flex-shrink: 0;
}

/* 左侧栏：浅薄荷绿底、品牌区与栏体同色、白底折叠内容 */
.gb-admin-sidebar {
    width: 276px;
    flex-shrink: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
    background: #f4f8fd;
    color: #303133;
    padding: 0 0 8px;
    border-right: 1px solid #d4dce8;
    box-sizing: border-box;
}

.gb-sb-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-height: var(--gb-shell-header-h, 60px);
    padding: 0 12px;
    border-bottom: none;
    background: #f4f8fd;
    flex-shrink: 0;
}

.gb-sb-brand::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d4dce8;
    transform: none;
    pointer-events: none;
}

.gb-sb-brand-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #b8875c;
    color: #fff;
    box-shadow: none;
}

.gb-sb-brand-svg {
    display: block;
}

.gb-sb-brand-text {
    min-width: 0;
    flex: 1;
}

.gb-sb-brand-title {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #000;
    line-height: 1.35;
}

.gb-sb-tagline {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #8b735e;
    line-height: 1.45;
}

.gb-sb-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-sb-nav::-webkit-scrollbar-thumb {
    background: #dfc2a2;
    border-radius: 999px;
}

.gb-sb-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.gb-sb-home:hover {
    background: #fff;
    color: #5c3d28;
}

.gb-sb-home.is-active {
    background: #00897b;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 105, 92, 0.2);
}

.gb-sb-ico {
    display: flex;
    color: #909399;
}

.gb-sb-home.is-active .gb-sb-ico {
    color: #fff;
}

.gb-sb-details {
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gb-sb-details > .gb-sb-sum {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
    border-radius: 8px;
    user-select: none;
    transition: background 0.15s ease, border-radius 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.22);
}

.gb-sb-details[open] > .gb-sb-sum {
    border-radius: 8px 8px 0 0;
}

.gb-sb-details > .gb-sb-sum:hover {
    filter: brightness(1.04);
}

.gb-sb-nav .gb-sb-details:nth-of-type(1) > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
}

.gb-sb-nav .gb-sb-details:nth-of-type(2) > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
}

.gb-sb-nav .gb-sb-details:nth-of-type(3) > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
}

.gb-sb-details > .gb-sb-sum::-webkit-details-marker {
    display: none;
}

.gb-sb-sum-ico {
    display: flex;
    flex-shrink: 0;
    color: #fff;
}

.gb-sb-sum-ico svg {
    display: block;
}

.gb-sb-sum-txt {
    flex: 1;
    min-width: 0;
}

.gb-sb-sum-chev {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.gb-sb-details[open] > .gb-sb-sum .gb-sb-sum-chev {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.gb-sb-panel {
    padding: 6px 0 8px;
    background: #fdfefe;
    border: 1px solid #ead8c4;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px rgba(45, 32, 22, 0.05);
}

.gb-sb-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px 8px 14px;
    margin: 2px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #303133;
    transition: background 0.15s ease, color 0.15s ease;
}

.gb-sb-item:hover {
    background: #faf5ee;
    color: #5c3d28;
}

.gb-sb-item.is-active {
    background: #f3e6d8;
    color: #5c3d28;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #b18659;
}

.gb-sb-item-title {
    font-size: 13px;
    line-height: 1.4;
}

.gb-sb-item-sub {
    font-size: 12px;
    color: #909399;
    line-height: 1.35;
}

.gb-sb-item--iconic {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.gb-sb-item--iconic .gb-sb-item-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    font-size: 12px;
    line-height: 1;
    opacity: 0.9;
}

.gb-sb-item--iconic .gb-sb-item-title {
    font-size: 14px;
}

.gb-sb-item--iconic:hover .gb-sb-item-title,
.gb-sb-item--iconic.is-active .gb-sb-item-title {
    color: #1e4d8c;
}

.gb-sb-item--iconic:hover .gb-sb-item-ico,
.gb-sb-item--iconic.is-active .gb-sb-item-ico {
    opacity: 1;
}

.gb-sb-item.is-vip-locked {
    opacity: 0.72;
}
.gb-sb-item.is-vip-locked:hover {
    opacity: 0.9;
}

.meet-vip-dialog {
    border: none;
    border-radius: 14px;
    padding: 0;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.meet-vip-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}
.meet-vip-dialog-card {
    margin: 0;
    padding: 22px 22px 18px;
}
.meet-vip-dialog-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}
.meet-vip-dialog-card p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}
.meet-vip-dialog-hint {
    color: #64748b !important;
    font-size: 13px !important;
}
.meet-vip-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.meet-vip-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}
.meet-vip-btn--ghost {
    background: #f1f5f9;
    color: #475569;
}
.meet-vip-btn--primary {
    background: #2563eb;
    color: #fff;
}
.meet-vip-btn--primary:hover {
    background: #1d4ed8;
}

/* 赛前工作子菜单：标题左、说明右（小字）+ 序号图标 */
.gb-sb-item--pre {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.gb-sb-item-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gb-sb-item-ord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #8b633f;
    background: #fdebd4;
    line-height: 1;
}

.gb-sb-item--pre .gb-sb-item-title {
    font-size: 14px;
}

.gb-sb-item--pre .gb-sb-item-sub {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46%;
}

.gb-sb-item--pre:hover .gb-sb-item-title,
.gb-sb-item--pre.is-active .gb-sb-item-title {
    color: #1e4d8c;
}

.gb-sb-item--pre:hover .gb-sb-item-ord,
.gb-sb-item--pre.is-active .gb-sb-item-ord {
    color: #ffffff;
    background: #1e4d8c;
}

/* 赛后统计：深蓝折叠头 + 暖白子项 + 左图标 */
.gb-sb-details--post-stats > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
}

.gb-sb-panel--post-stats {
    background: #fff9f1;
    border-color: #ecdcc9;
}

.gb-sb-item--poststat {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.gb-sb-item--poststat .gb-sb-item-title {
    font-size: 14px;
    color: #303133;
}

.gb-sb-post-ico {
    display: flex;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #606266;
}

.gb-sb-post-ico svg {
    display: block;
}

.gb-sb-item--poststat:hover .gb-sb-post-ico,
.gb-sb-item--poststat.is-active .gb-sb-post-ico {
    color: #9f7750;
}

.gb-sb-item--poststat.is-active {
    box-shadow: inset 3px 0 0 #b18659;
}

.gb-sb-item.is-active .gb-sb-item-sub {
    color: #8b735e;
}

.gb-sb-foot {
    flex-shrink: 0;
    margin-top: auto;
    padding: 10px 10px 6px;
    border-top: 1px solid #e5dcd3;
    background: #efe6dc;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-sb-foot-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #646a73;
    text-decoration: none;
}

.gb-sb-foot-link:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #5c3d28;
}

.gb-sb-foot-ico {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e4d5c8;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #646a73;
}

.gb-sb-expand-fab {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-height: 72px;
    padding: 8px 0;
    border: 1px solid #a67f52;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #5c3d28;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: 2px 0 8px rgba(26, 35, 126, 0.3);
}

.admin-shell-sidebar-collapsed .gb-sb-expand-fab {
    display: flex;
}

.gb-sb-expand-fab:hover {
    filter: brightness(1.08);
}

.gb-admin-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 20px 24px 40px;
    background: transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gb-admin-inner {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* 基础设置：减少主区内上下留白 */
.gb-admin-inner.gb-admin-inner--meet-basic {
    padding-top: 2px;
    padding-bottom: 24px;
}

.gb-admin-inner.gb-admin-inner--meet-basic > .gb-meet-tip {
    margin: 0 0 10px;
}

/* 裁判员管理：收敛主标题上方留白（默认 section-gap 顶 48px 偏大） */
.gb-admin-inner.gb-admin-inner--meet-referees.section-gap {
    padding-top: 12px;
    padding-bottom: 40px;
}

/* 径赛/田赛成绩录入 hub：同上 */
.gb-admin-inner.gb-admin-inner--results-hub.section-gap {
    padding-top: 12px;
    padding-bottom: 40px;
}

/* 总分排名 · 分组积分排名：收敛顶栏与深蓝标题条之间留白 */
.gb-admin-inner.gb-admin-inner--rankings-group-points.section-gap {
    padding-top: 10px;
    padding-bottom: 32px;
}

/* 奖状中心：收敛标题上方留白 */
.gb-admin-inner.gb-admin-inner--certificates.section-gap {
    padding-top: 12px;
    padding-bottom: 32px;
}

/* 打印奖状 hub（mpcert-） */
.gb-admin-inner.gb-admin-inner--print-certificates.section-gap {
    padding: 8px 8px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.page-meet-print-certificates .gb-admin-content {
    padding: 8px 8px 28px;
}

.mpcert-root {
    width: min(100%, 1420px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mpcert-root--templates {
    width: min(100%, 1420px);
    gap: 14px;
}

.mpcert-root--custom-design {
    width: min(100%, 1780px);
}

.mpcert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.mpcert-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

.mpcert-head > * {
    position: relative;
    z-index: 1;
}

.mpcert-title {
    margin: 0 0 2px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.mpcert-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.3;
}

.mpcert-back-btn {
    flex-shrink: 0;
    margin-top: 2px;
}

.mpcert-template-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 0;
    padding: 11px 18px;
    border-radius: 10px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.88rem;
}

.mpcert-template-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.mpcert-template-banner strong {
    color: #0369a1;
    font-weight: 700;
}

.mpcert-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 2px 2px 4px;
    margin-bottom: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.mpcert-date-label {
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
}

.mpcert-date-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mpcert-date-plain {
    display: inline-flex;
    align-items: center;
    padding: 4px 2px;
    color: #64748b;
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.15s;
}

.mpcert-date-plain:hover {
    color: #334155;
}

.mpcert-date-plain.is-active {
    color: #2563eb;
    font-weight: 600;
}

.mpcert-date-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.84rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mpcert-date-chip:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

.mpcert-date-chip.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.mpcert-panel {
    padding: 18px 20px 20px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.mpcert-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.mpcert-panel-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #2563eb;
    flex-shrink: 0;
}

.mpcert-day-box {
    margin: 0 0 14px;
}

.mpcert-day-box-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
}

.mpcert-kind-block + .mpcert-kind-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.mpcert-kind-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.mpcert-kind-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #166534;
}

.mpcert-batch-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.mpcert-batch-btn:hover {
    background: transparent;
    color: #15803d;
    text-decoration: underline;
}

.mpcert-batch-btn--field {
    color: #059669;
}

.mpcert-batch-btn--field:hover {
    color: #047857;
}

.mpcert-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpcert-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.mpcert-event-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.mpcert-event-name {
    margin: 0;
    flex: 0 0 9.75rem;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpcert-event-time {
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    white-space: nowrap;
}

.mpcert-event-time--empty {
    display: none;
}

.mpcert-event-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
}

.mpcert-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.mpcert-tag--muted {
    background: #64748b;
    color: #fff;
}

.mpcert-tag--award {
    background: #ea580c;
    color: #fff;
}

.mpcert-tag--export {
    background: #16a34a;
    color: #fff;
}

.mpcert-tag--export:hover {
    background: #15803d;
    color: #fff;
}

.mpcert-tag--sheet {
    background: #38bdf8;
    color: #0c4a6e;
}

.mpcert-tag--sheet:hover {
    background: #0ea5e9;
    color: #fff;
}

.mpcert-tag--count {
    background: #1d4ed8;
    color: #fff;
}

.mpcert-empty {
    margin: 0;
    padding: 6px 0;
    color: #94a3b8;
    font-size: 0.86rem;
}

body.mpcert-sheet-modal-open {
    overflow: hidden;
}

.mpcert-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mpcert-sheet-modal[hidden] {
    display: none !important;
}

.mpcert-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.mpcert-sheet-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 96vw);
    height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.mpcert-sheet-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mpcert-sheet-dialog-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.mpcert-sheet-close {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.mpcert-sheet-close:hover {
    color: #0f172a;
}

.mpcert-sheet-frame {
    flex: 1 1 auto;
    width: 100%;
    border: none;
    background: #fff;
}

.mpcert-template-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.mpcert-template-picker-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.38);
    color: #fff;
}

.mpcert-root--templates .mct-panel {
    margin-top: 0;
}

.mpcert-root--templates .mct-page-title {
    display: none;
}

/* 模板列表：操作链接与下方表单蓝色样式 */
.mpcert-root--templates .mct-link {
    color: #2563eb;
    font-weight: 400;
}

.mpcert-root--templates .mct-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.mpcert-root--templates .mct-sep {
    color: #93c5fd;
}

.mpcert-root--templates .mct-field label span {
    color: #111827;
}

.mpcert-root--templates .mct-field input[type="text"] {
    border: 1px solid #2563eb;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mpcert-root--templates .mct-field input[type="text"]:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.mpcert-root--templates .mct-field input[type="text"]::placeholder {
    color: #111827;
    opacity: 1;
}

/* 自定义奖状模板设计（mccd-） */
.mccd-root {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mccd-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mccd-title {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
}

.mccd-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.mccd-back-btn {
    flex-shrink: 0;
    margin-top: 2px;
    color: #1e3a5f;
    background: #fff;
    border: 1px solid #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mccd-back-btn:hover,
.mccd-back-btn:focus-visible {
    color: #fff;
    background: #1e3a5f;
    border-color: #1e3a5f;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.28);
}

.mccd-back-btn:active {
    color: #fff;
    background: #152a47;
    border-color: #152a47;
    box-shadow: 0 1px 3px rgba(21, 42, 71, 0.32);
}

.mccd-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(480px, 580px);
    gap: 20px;
    align-items: start;
}

.mccd-preview-col,
.mccd-settings-col {
    padding: 16px 18px 20px;
}

.mccd-preview-viewport .mccd-preview-doc p {
    color: #111;
    line-height: 1.8;
}

.mccd-preview-body {
    text-align: justify;
    text-justify: inter-ideograph;
    color: #111;
}

.mccd-preview-sign {
    margin: 0;
    color: #111;
}

.mccd-section-title {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #1e293b;
}

.mccd-preview-viewport {
    overflow: auto;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#mccd-preview-inner {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    visibility: hidden;
}

.mccd-preview-viewport.is-ready #mccd-preview-inner {
    visibility: visible;
}

.mccd-preview-doc {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.mccd-preview-content {
    margin-top: 0;
}

.mccd-preview-block {
    margin: 0;
    width: 100%;
}

.mccd-preview-recipient,
.mccd-preview-body,
.mccd-preview-rank,
.mccd-preview-closing {
    margin: 0;
}

.mccd-preview-rank {
    text-align: center;
    display: block;
    width: 100%;
}

.mccd-fieldset {
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    min-width: 0;
}

.mccd-fieldset:first-of-type {
    border-top: none;
    padding-top: 0;
    row-gap: 0;
}

.mccd-fieldset:first-of-type > .mccd-field-row,
.mccd-fieldset:first-of-type > .mccd-field-grid {
    margin-top: 20px;
}

.mccd-fieldset:not(:first-of-type) {
    padding-top: 20px;
}

.mccd-fieldset legend {
    padding: 0;
    margin: 0;
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.95rem;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    float: none;
}

.mccd-fieldset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
}

.mccd-field-row,
.mccd-field-grid {
    display: grid;
    gap: 10px 12px;
}

.mccd-fieldset .mccd-field-grid + .mccd-field-grid {
    margin-top: 10px;
}

.mccd-field-grid--name-row,
.mccd-field-grid--has-check,
.mccd-field-grid--sign-row {
    align-items: end;
}

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

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

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

.mccd-settings-col .mccd-field-grid--name-row {
    grid-template-columns: minmax(56px, 0.62fr) minmax(62px, 0.68fr) minmax(168px, 1.65fr) minmax(72px, 0.78fr);
}

.mccd-settings-col .mccd-field-grid--sign-row {
    grid-template-columns: minmax(56px, 0.62fr) minmax(62px, 0.68fr) auto minmax(0, 1fr);
}

.mccd-field-grid--has-check {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.mccd-field-grid--rank-equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.mccd-field-grid--rank-equal .mccd-field input,
.mccd-field-grid--rank-equal .mccd-field select {
    width: 100%;
}

.mccd-fieldset .mccd-field-grid--rank-equal + .mccd-field-grid--rank-gap-row {
    margin-top: 10px;
}

.mccd-field-grid--rank-gap-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.mccd-field-grid--rank-gap-row > .mccd-field input {
    width: 100%;
}

.mccd-field--gap-after-check {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 0.82rem;
    color: #475569;
}

.mccd-gap-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mccd-gap-check-row > input[type="number"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.mccd-gap-check-row .mccd-field--check {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
}

.mccd-gap-check-row .mccd-field-check-row {
    height: 34px;
}

.mccd-field-label {
    display: block;
    line-height: 1.28;
    font-size: 0.78rem;
}

.mccd-field--long-label .mccd-field-label {
    font-size: 0.78rem;
    line-height: 1.28;
    white-space: normal;
}

.mccd-field-label--spacer {
    visibility: hidden;
    user-select: none;
    height: 1.28em;
    overflow: hidden;
}

.mccd-field--long-label {
    line-height: 1.35;
}

.mccd-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #475569;
    min-width: 0;
}

.mccd-field input,
.mccd-field select {
    width: 100%;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.mccd-field--check {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 0;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    max-width: none;
}

.mccd-field-check-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    height: 34px;
    white-space: nowrap;
}

.mccd-field--check input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.mccd-field--check .mccd-field-check-row > span {
    writing-mode: horizontal-tb;
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1;
}

.mccd-help {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #64748b;
}

.mccd-help ul {
    margin: 8px 0 0;
    padding-left: 1.2em;
}

.mccd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.mccd-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    box-sizing: border-box;
    text-align: center;
}

.mccd-btn-export {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.mccd-btn-export:hover {
    color: #fff;
    background: #15803d;
}

.mccd-btn-params {
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

.mccd-btn-params:hover {
    background: #475569;
    border-color: #475569;
    color: #fff;
}

/* 参数详解弹层 */
.mccd-params-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
}

.mccd-params-modal[hidden] {
    display: none !important;
}

.mccd-params-modal:not([hidden]) {
    display: flex;
}

.mccd-params-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    cursor: pointer;
}

.mccd-params-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(96vw, 980px);
    max-height: min(94vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 14px 18px 18px;
}

.mccd-params-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.mccd-params-modal__head strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.mccd-params-modal__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mccd-params-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mccd-params-diagram {
    padding: 8px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: auto;
}

.mccd-params-diagram__svg,
.mccd-params-diagram svg {
    display: block;
    width: 100%;
    min-width: 860px;
    max-width: 900px;
    height: auto;
    min-height: 580px;
    margin: 0 auto;
    border: none;
}

.mccd-params-modal__foot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .mccd-workspace {
        grid-template-columns: 1fr;
    }

    .mccd-field-grid--4:not(.mccd-field-grid--name-row):not(.mccd-field-grid--sign-row) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mccd-settings-col .mccd-field-grid--name-row {
        grid-template-columns: minmax(56px, 0.62fr) minmax(62px, 0.68fr) minmax(168px, 1.65fr) minmax(72px, 0.78fr);
    }

    .mccd-settings-col .mccd-field-grid--sign-row {
        grid-template-columns: minmax(58px, 0.72fr) minmax(64px, 0.78fr) auto minmax(0, 1fr);
    }
}

body.page-certificates .gb-admin-content {
    padding-top: 10px;
}

body.page-rankings-group-points .gb-admin-content {
    padding-top: 10px;
}

/* 流程管理：居中流程指引标题区 + 步骤卡片 */
body.page-meet-workflow .gb-admin-content {
    padding-top: 10px;
}

.gb-admin-inner.wf-page.section-gap {
    padding-top: 0;
    padding-bottom: 28px;
}

.wf-guide-hero {
    text-align: center;
    margin: 0 0 16px;
    padding: 8px 0 4px;
    background: transparent;
    border: none;
}

.wf-guide-hero-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.wf-guide-hero-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wf-guide-hero-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e4d8c;
}

.wf-guide-hero-svg {
    display: block;
}

.wf-guide-hero-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e4d8c;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.wf-guide-hero-sub {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
}

.wf-meet-card {
    margin-bottom: 8px;
}

.wf-meet-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
}

.wf-empty-card {
    padding: 20px 22px;
}

.wf-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 14px;
}

.wf-step {
    border-radius: 10px;
    padding: 14px 16px 10px;
    border: 1px solid #e6ddd4;
    background: #fff;
    box-shadow: 0 1px 2px rgba(45, 32, 22, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 96px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 整块卡片进入主页面；副链接单独可点（主链接铺底，副链接触控在上层） */
.wf-step--clickable {
    position: relative;
    cursor: pointer;
}

.wf-step--clickable:hover {
    border-color: #e8c9a8;
    box-shadow: 0 2px 8px rgba(120, 78, 48, 0.14);
}

.wf-step-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.wf-step-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    height: 100%;
}

.wf-step-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.wf-step-extra-btn {
    font-size: 13px;
}

.wf-step--todo .wf-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e6ddd4;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.wf-step--done {
    background: #e8eef7;
    border-color: #a5d6a7;
    box-shadow: 0 1px 4px rgba(46, 125, 50, 0.12);
    padding-bottom: 8px;
}

.wf-step--done .wf-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e4d8c;
    border: 1px solid #163d6e;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.wf-step-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wf-step-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.wf-step--done .wf-step-title {
    color: #163d6e;
}

.wf-step-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.wf-step--done .wf-step-desc {
    color: #1e4d8c;
}

.wf-step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wf-step-link {
    font-size: 13px;
}

.wf-step-status-slot {
    margin-top: 4px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-step--done .wf-step-status-slot {
    margin-top: 0;
    transform: translateY(-4px);
}

.wf-done-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e4d8c;
    text-align: center;
}

.wf-done-check {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.wf-done-label--hidden {
    visibility: hidden;
}

.gb-main-panel {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #d8e2f1;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.gb-panel-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #e3eaf5;
    background: #f8fbff;
}

.gb-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}

.gb-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gb-guide-link {
    font-size: 14px;
    color: #667085;
    padding: 8px 4px;
}

.gb-btn-outline {
    background: #fff;
    border: 1px solid #dfc4ae;
    color: #344054;
}

.gb-btn-outline:hover {
    background: #fcf9f4;
}

.gb-th-index {
    width: 48px;
}

.gb-th-sort {
    width: 72px;
}

.gb-th-actions {
    min-width: 200px;
}

.btn-pill {
    border-radius: 999px;
    padding: 8px 14px;
}

.gb-op-full {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.gb-op-row-tight {
    width: 100%;
}

.gb-faq-block {
    padding: 12px 16px 6px;
    border-top: 1px solid #ece4da;
    background: #fafafa;
}

.gb-faq-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #b18659;
}

.gb-faq-item {
    border: 1px solid #e3d9ce;
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 0 10px;
    background: #fff;
}

.gb-faq-item summary {
    cursor: pointer;
    padding: 8px 0;
    font-weight: 600;
    color: #344054;
    list-style: none;
}

.gb-faq-item summary::-webkit-details-marker {
    display: none;
}

.gb-faq-item[open] summary {
    border-bottom: 1px solid #f2f4f7;
    margin-bottom: 8px;
}

.gb-faq-item p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #475467;
    line-height: 1.5;
}

.gb-next-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px 14px;
    background: #fff;
    border-top: 1px solid #ece4da;
}

.gb-main-panel > .gb-active-meet-banner {
    margin: 12px 16px 10px;
}

.gb-main-panel .table-card {
    margin: 0 16px 10px;
}

.gb-meet-bar .gb-meet-tip {
    margin-bottom: 0;
}

.gb-subpage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.gb-subpage-title {
    margin: 0;
    font-size: 18px;
}

.gb-batch-desc {
    margin: 0 0 12px;
    color: #475467;
    font-size: 14px;
}

.gb-copy-scope-fieldset {
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 16px;
}

.gb-copy-scope-fieldset legend {
    padding: 0 6px;
    font-weight: 600;
}

.gb-copy-scope-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.gb-copy-scope-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.gb-batch-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gb-batch-form .gb-subpage-actions,
.gb-subpage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.gb-batch-table .gb-col-idx {
    width: 56px;
    text-align: center;
}

.gb-group-table th.gb-copy-check-col,
.gb-group-table td.gb-copy-check-col {
    width: 140px;
}

.gb-group-table td.gb-copy-check-col {
    text-align: left !important;
    padding-left: 10px !important;
}

.gb-group-table td.gb-copy-check-col label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gb-group-table td.gb-copy-check-col input[type="checkbox"] {
    margin: 0 !important;
}

.gb-copy-target-table {
    display: inline-table;
    width: 620px !important;
    min-width: 620px;
    max-width: 620px;
    table-layout: fixed;
    margin-left: 0;
}

.gb-copy-target-table th:first-child,
.gb-copy-target-table td:first-child {
    width: 480px;
}

.gb-copy-target-table th:last-child,
.gb-copy-target-table td:last-child {
    width: 140px;
}

.gb-batch-table .gb-col-sort {
    width: 100px;
}

.gb-batch-table input[type="text"],
.gb-batch-table input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
}

.req {
    color: #d92d20;
}

.gb-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gb-list-title {
    margin: 0;
    font-size: 18px;
}

.gb-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gb-guide-muted {
    font-size: 13px;
    color: #98a2b3;
}

.gb-active-meet-banner {
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f3f8ff 0%, #eaf2ff 100%);
    border: 1px solid #d5e3fb;
    color: #1d3f72;
    font-size: 14px;
    margin-bottom: 0;
}

.gb-active-meet-banner strong {
    color: #16325c;
    font-weight: 700;
}

.gb-group-table-wrap {
    overflow-x: auto;
}

.gb-group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gb-group-table th,
.gb-group-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ece4da;
    vertical-align: top;
}

.gb-group-table th {
    text-align: left;
    background: linear-gradient(180deg, #fff6ea 0%, #fdebd4 100%);
    color: #6b4423;
    font-weight: 600;
    border-bottom: 1px solid #e8c9a8;
}

.gb-inline-sort-input {
    width: 78px;
    text-align: center;
}

.gb-cell-btn {
    display: inline-block;
    margin: 2px 4px 2px 0;
}

.gb-group-cell-stack {
    max-width: 320px;
}

.gb-group-preview {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #1f2937;
    word-break: break-word;
}

.gb-group-preview-empty {
    display: block;
    margin: 0 0 8px;
}

.gb-group-preview-empty.gb-muted {
    margin-top: 0;
}

.gb-muted {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #98a2b3;
}

.gb-op-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-op-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gb-empty-tip {
    margin: 12px 0 0;
}

.btn-warn {
    background: #facc15;
    color: #422006;
    border: 1px solid #eab308;
}

.btn-warn:hover {
    filter: brightness(0.96);
}

.btn-teal {
    background: #2dd4bf;
    color: #134e4a;
    border: 1px solid #14b8a6;
}

.btn-teal:hover {
    filter: brightness(0.97);
}

.btn-ghost-danger {
    background: transparent;
    color: #d92d20;
    border: 1px solid #fda29b;
}

.btn-ghost-danger:hover {
    background: #fef3f2;
}

.meet-basic-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.meet-basic-card-head h2 {
    margin: 0;
    font-size: 18px;
}

.meet-basic-form {
    display: grid;
    gap: 12px 16px;
}

.meet-basic-form > label {
    display: block;
    min-width: 0;
    grid-column: 1 / -1;
}

.meet-basic-span2 {
    grid-column: 1 / -1;
}

.meet-basic-inline-field--name {
    grid-column: 1 / 2;
}

.meet-basic-inline-field--name input[type="text"] {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 14px;
}

.meet-basic-inline-field--sort {
    grid-column: 2 / 3;
}

.meet-basic-inline-field--sort input[type="number"] {
    width: 100%;
    text-align: center;
}

/* 添加/编辑分组：除首行字段外，其余模块全部占满，避免右侧窄列挤压说明文案 */
.meet-basic-form > .meet-basic-h3,
.meet-basic-form > .tip,
.meet-basic-form > .table-card,
.meet-basic-form > .meet-basic-ev-actions,
.meet-basic-form > .meet-form-grid,
.meet-basic-form > .gb-subpage-actions {
    grid-column: 1 / -1;
}

@media (max-width: 899px) {
    .meet-basic-inline-field--name,
    .meet-basic-inline-field--sort {
        grid-column: 1 / -1;
    }

    .meet-basic-inline-field--sort input[type="number"] {
        text-align: left;
    }
}

.meet-basic-dual {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 14px 16px;
    align-items: start;
}

.meet-basic-dual-col {
    min-width: 0;
}

.meet-basic-dual-col .meet-basic-span2 {
    grid-column: auto;
}

@media (max-width: 1199px) {
    .meet-basic-dual {
        grid-template-columns: 1fr;
    }
}

.meet-basic-combined-card {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}

.meet-basic-combined-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.meet-basic-combined-table th,
.meet-basic-combined-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d8e1ec;
    vertical-align: top;
}

.meet-basic-combined-table thead th {
    font-size: 14px;
    font-weight: 700;
    color: #1f3f68;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.meet-basic-combined-table tbody td + td {
    border-left: 1px solid #d8e1ec;
}

.meet-basic-combined-cell .tip {
    margin-top: 0;
}

.meet-basic-combined-group {
    display: block;
}

.meet-basic-combined-group > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #344054;
}

.meet-basic-combined-group input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #b9c8da;
    border-radius: 8px;
}

.meet-basic-combined-cell .table-card {
    margin-bottom: 8px;
}

.meet-basic-limit-grid {
    display: grid;
    gap: 8px;
}

.meet-basic-limit-grid label {
    display: block;
}

.meet-basic-limit-grid label span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #344054;
    line-height: 1.45;
}

.meet-basic-limit-grid input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #b9c8da;
    border-radius: 8px;
}

@media (max-width: 1199px) {
    .meet-basic-combined-table,
    .meet-basic-combined-table thead,
    .meet-basic-combined-table tbody,
    .meet-basic-combined-table tr,
    .meet-basic-combined-table th,
    .meet-basic-combined-table td {
        display: block;
        width: 100%;
    }

    .meet-basic-combined-table thead th {
        border-bottom: 1px solid #d8e1ec;
    }

    .meet-basic-combined-table tbody td + td {
        border-left: none;
    }
}

.meet-basic-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfc4ae;
    border-radius: 12px;
    font-family: inherit;
}

.meet-basic-h3 {
    margin: 8px 0 0;
    font-size: 15px;
    color: #344054;
}

.meet-basic-events {
    table-layout: fixed;
}

.meet-basic-ev-col-name {
    width: 100%;
}

.meet-basic-ev-rounds {
    vertical-align: middle;
}

.ev-rounds-cb-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 4px 0;
}

.ev-rounds-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #344054;
    cursor: pointer;
    white-space: nowrap;
}

.ev-rounds-label input {
    margin: 0;
    accent-color: #b18659;
}

.meet-basic-events input[type="text"],
.meet-basic-events input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
}

.meet-basic-events select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
}

.meet-basic-ev-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0 16px;
}

.meet-basic-ev-actions .btn {
    min-height: 36px;
    padding: 8px 14px;
}

.meet-basic-card .table-card {
    margin-bottom: 2px;
}

/* 分组管理页：基础设置汇总块（页眉式标题区 + 只读表） */
.gb-events-summary-block {
    margin-top: 12px;
    border: 1px solid #d7e3f4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.gb-events-summary-pagehead {
    padding: 10px 14px 8px;
    background: linear-gradient(180deg, #f7faff 0%, #eff5ff 100%);
    border-bottom: 1px solid #dce6f6;
    box-shadow: none;
}

.gb-events-summary-pagehead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}

.gb-events-summary-pagehead-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1f3658;
}

.gb-events-summary-pagehead-meta {
    font-size: 11px;
    font-weight: 600;
    color: #3b5f8f;
    white-space: nowrap;
}

.gb-events-summary-pagehead-tip {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #667085;
}

.gb-events-summary-sheet {
    padding: 0;
    background: #fff;
}

.gb-events-summary-matrix-wrap {
    overflow-x: auto;
}

.gb-events-summary-matrix .gb-th-index {
    width: 44px;
}

.gb-events-summary-gname-cell {
    vertical-align: middle;
}

.gb-events-summary-gname {
    display: block;
    margin: 0;
    font-size: 13px;
}

.gb-events-summary-th-op {
    width: 22%;
    min-width: 300px;
    white-space: nowrap;
}

.gb-events-summary-op-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.gb-events-summary-op-stack {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: start;
    gap: 8px;
    width: 100%;
    max-width: 240px;
}

.gb-events-summary-op-stack .gb-events-summary-del-form {
    display: block;
    width: 44px;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
}

.gb-events-summary-op-stack .gb-events-summary-del-form .gb-op-full {
    width: 100%;
    min-width: 0;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .gb-op-full {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    flex: 1 1 auto;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.gb-events-summary-op-stack > a.gb-op-full {
    grid-column: 1;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-primary.gb-op-full {
    background: #1e63d9;
    border-color: #1e63d9;
    color: #f8fafc;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-primary.gb-op-full:hover {
    background: #1959c4;
    border-color: #1959c4;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-primary.gb-op-full.gb-op-units {
    background: #1e63d9;
    border-color: #1e63d9;
    color: #f8fafc;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-primary.gb-op-full.gb-op-units:hover {
    background: #1959c4;
    border-color: #1959c4;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-primary.gb-op-full.gb-op-units:active {
    background: #1747ad;
    border-color: #1747ad;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-secondary.gb-op-full {
    background: #fbbc04;
    border-color: #f0b400;
    color: #1f2937;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-secondary.gb-op-full:hover {
    background: #f4b400;
    border-color: #e5aa00;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-danger.gb-op-full {
    background: #e31b23;
    border: 1px solid #e31b23;
    color: #fff;
    width: 44px !important;
    min-height: 84px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    padding: 8px 4px;
    box-shadow: none !important;
    outline: none !important;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-danger.gb-op-full:hover {
    background: #c9151d;
    border-color: #c9151d;
    color: #fff;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-danger.gb-op-full:active {
    background: #aa1017;
    border-color: #aa1017;
    color: #fff;
}

.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-danger.gb-op-full:focus,
.gb-events-summary-matrix .gb-events-summary-op-stack .btn.btn-danger.gb-op-full:focus-visible {
    box-shadow: none !important;
    outline: none !important;
    border-color: #e31b23;
}

@media (max-width: 1100px) {
    .gb-events-summary-op-stack {
        max-width: 100%;
    }

    .gb-events-summary-th-op {
        min-width: 200px;
        width: 26%;
    }
}

.gb-events-summary-th-unit {
    min-width: 140px;
    max-width: 220px;
}

.gb-events-summary-unit-cell {
    vertical-align: middle;
    font-size: 12px;
}

.gb-events-summary-unit-preview {
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.gb-events-summary-th-ev {
    min-width: 160px;
}

.gb-events-summary-th-lim {
    min-width: 140px;
}

.gb-events-summary-ev-cell {
    vertical-align: middle;
    font-size: 12px;
}

.gb-events-summary-evlist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.gb-events-summary-evitem {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #ebe5df;
    background: #fffaf5;
}

.gb-events-summary-evitem:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.gb-events-summary-evname {
    font-weight: 600;
    color: #101828;
}

.gb-events-summary-rounds {
    color: #667085;
    font-size: 12px;
}

.gb-events-summary-lim-cell {
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.4;
    color: #344054;
}

.gb-events-summary-lim-line {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gb-events-summary-matrix.gb-group-table th,
.gb-events-summary-matrix.gb-group-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.gb-events-summary-matrix.gb-group-table thead th {
    padding: 10px 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    color: #274777;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%);
    border-bottom: 2px solid #d5e3fb;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.65);
}

.gb-events-summary-matrix.gb-group-table thead th.gb-th-index {
    font-size: 14px;
    color: #456089;
    text-align: center;
}

.gb-mg-head-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.gb-mg-form {
    display: block;
}

.gb-mg-head-card {
    border: 0;
    padding: 12px 14px;
    background: #fff;
    min-height: 248px;
}

.gb-mg-head-card + .gb-mg-head-card {
    border-left: 1px solid #e5e7eb;
}

.gb-mg-head-card h3 {
    margin: 0 0 2px;
    font-size: 16px;
    color: #111827;
}

.gb-mg-card-sub {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
}

.gb-mg-rule-card {
    padding: 0;
    background: #fff;
}

.gb-mg-rule-card h3 {
    margin: 0;
    padding: 8px 14px;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.gb-mg-rule-card .gb-mg-card-sub {
    margin: 12px 0 8px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1d4ed8;
}

.gb-mg-rule-card .gb-mg-limit-grid {
    padding: 0 14px;
    gap: 10px 12px;
}

.gb-mg-rule-card .gb-mg-limit-grid label span {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.gb-mg-rule-card .gb-mg-limit-grid input {
    height: 30px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 8px;
}

.gb-mg-input-suffix {
    display: grid;
    grid-template-columns: 1fr 30px;
}

.gb-mg-input-suffix em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #f9fafb;
    color: #374151;
    font-style: normal;
    font-size: 12px;
    min-height: 30px;
}

.gb-mg-input-suffix input {
    border-radius: 4px 0 0 4px !important;
}

.gb-mg-rule-card .gb-mg-limit-foot {
    margin-top: 8px;
    padding: 0 14px 6px;
}

.gb-mg-rule-card .gb-mg-check-inline {
    font-size: 13px;
    color: #4b5563;
}

.gb-mg-rule-card .gb-mg-limit-foot + .gb-subpage-actions,
.gb-mg-rule-card .gb-subpage-actions {
    padding: 0 14px 14px;
}

.gb-mg-limit-actions {
    padding: 0 14px 12px;
}

.gb-mg-rule-card .btn.btn-primary {
    min-height: 34px;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
}

.gb-mg-limit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.gb-mg-limit-grid label span,
.gb-mg-batch-box label span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #374151;
}

.gb-mg-limit-foot {
    margin-top: 8px;
}

.gb-mg-check-inline {
    font-size: 12px;
    color: #667085;
}

.gb-mg-batch-box {
    display: grid;
    gap: 8px;
}

.gb-mg-batch-card h3 {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e4d8c;
}

.gb-mg-batch-card .gb-mg-card-sub {
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    color: #6b7280;
}

.gb-mg-batch-card .gb-mg-batch-box label span {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.gb-mg-batch-card .gb-mg-input-suffix input {
    height: 30px;
    border: 1px solid #cfd8e3 !important;
    box-shadow: none !important;
    outline: none;
}

#gb-mg-batch-max-signup,
#gb-mg-batch-rank,
#gb-mg-custom-rule {
    border: 1px solid #cfd8e3 !important;
    box-shadow: none !important;
    outline: none;
}

#gb-mg-batch-max-signup:focus,
#gb-mg-batch-rank:focus,
#gb-mg-custom-rule:focus {
    border-color: #cfd8e3 !important;
    box-shadow: none !important;
    outline: none !important;
}

.gb-mg-batch-card .gb-mg-input-suffix em {
    border-color: #cfd8e3;
    box-shadow: none;
}

.gb-mg-batch-card .gb-mg-score-btns {
    gap: 0;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    overflow: hidden;
}

.gb-mg-batch-card .gb-mg-score-btns .btn {
    border: 0;
    border-right: 1px solid #3b82f6;
    border-radius: 0;
    min-height: 32px;
    background: #fff;
    color: #2563eb;
    font-size: 13px;
}

.gb-mg-batch-card .gb-mg-score-btns .btn small {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
}

.gb-mg-batch-card .gb-mg-score-btns .btn:last-child {
    border-right: 0;
}

.gb-mg-batch-card .gb-mg-rank-type {
    color: #1e4d8c !important;
}

.gb-mg-batch-card .gb-mg-score-rule.is-active,
.gb-mg-batch-card .gb-mg-rank-type.is-active {
    background: #2563eb;
    color: #fff !important;
    border-color: #1d4ed8;
}

.gb-mg-score-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.gb-mg-score-btns .btn {
    border-radius: 4px;
    min-height: 30px;
    border: 1px solid #7da2c8;
    background: #f8fbff;
    color: #2f5f93;
    font-weight: 600;
}

.gb-mg-score-rule.is-active,
.gb-mg-rank-type.is-active {
    border-color: #2f8b62;
    color: #15603f;
    background: #f1fbf6;
}

.gb-mg-events-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.gb-mg-events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.gb-mg-events-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gb-mg-events-toolbar {
    display: flex;
    gap: 6px;
}

.gb-mg-events-table-wrap {
    margin: 0;
    border: 0;
    overflow-x: auto;
    padding: 10px 10px 12px;
    background: #f9fafb;
}

.gb-mg-events-table th,
.gb-mg-events-table td {
    padding: 5px 6px;
    text-align: center;
    vertical-align: middle;
}

.gb-mg-events-table thead th {
    background: #eef0f3;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
}

.gb-mg-events-table tbody td {
    font-size: 15px;
    color: #1f2937;
}

.gb-mg-events-table tbody tr.gb-mg-ev-row {
    background: #fff;
}

.gb-mg-events-table tbody tr.gb-mg-ev-row.gb-mg-row-female {
    background: #f3f4f6;
}

.gb-mg-events-table tbody tr.gb-mg-ev-row.gb-mg-row-female:hover {
    background: #eceff3;
}

.gb-mg-events-table td:nth-child(4) {
    text-align: left;
}

.gb-mg-events-table .gb-mg-ev-name {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.gb-mg-sort,
.gb-mg-small {
    width: 58px;
    text-align: center;
}

.gb-mg-events-table th:nth-child(3),
.gb-mg-events-table td:nth-child(3) {
    width: 72px;
    min-width: 72px;
}

.gb-mg-events-table .gb-mg-sort {
    width: 48px;
    min-width: 48px;
    padding-left: 4px;
    padding-right: 4px;
}

.gb-mg-events-table th:nth-child(7),
.gb-mg-events-table td:nth-child(7),
.gb-mg-events-table th:nth-child(9),
.gb-mg-events-table td:nth-child(9) {
    width: 82px;
    min-width: 82px;
}

.gb-mg-events-table th:nth-child(10),
.gb-mg-events-table td:nth-child(10) {
    width: 82px;
    min-width: 82px;
}

.gb-mg-events-table th:nth-child(4),
.gb-mg-events-table td:nth-child(4) {
    width: 212px;
    min-width: 212px;
}

.gb-mg-events-table th:nth-child(8),
.gb-mg-events-table td:nth-child(8) {
    width: 165px;
    min-width: 165px;
}

.gb-mg-events-table td:nth-child(8) .input {
    width: 150px;
    min-width: 150px;
}

.gb-mg-events-table td:nth-child(7) .input,
.gb-mg-events-table td:nth-child(9) .input {
    width: 56px;
    min-width: 56px;
    padding-left: 4px;
    padding-right: 4px;
}

.gb-mg-events-table td:nth-child(10) .input {
    width: 56px;
    min-width: 56px;
    padding-left: 4px;
    padding-right: 4px;
}

.gb-mg-events-table input.input,
.gb-mg-events-table select.input,
.gb-mg-batch-box input,
.gb-mg-limit-grid input {
    height: 24px;
    border-color: #d1d5db;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 14px;
}

.gb-mg-events-table .gb-summary-type-badge {
    font-size: 13px;
    font-weight: 700;
}

.gb-mg-events-table select.gb-mg-gender-male {
    color: #1d4ed8;
    font-weight: 700;
}

.gb-mg-events-table select.gb-mg-gender-female {
    color: #dc2626;
    font-weight: 700;
}

.gb-mg-events-table select.gb-mg-gender-mix {
    color: #374151;
    font-weight: 600;
}

.gb-mg-events-table select[name="ev_gender[]"] option {
    color: #111827;
    background: #fff;
}

.gb-mg-empty {
    color: #9ca3af;
    font-weight: 600;
}

.gb-mg-limit-grid input {
    width: 100%;
}

#gb-mg-apply-batch {
    width: 100%;
    min-height: 32px;
    border-radius: 8px;
    background: #10b981;
    border-color: #10b981;
    border-width: 1px;
    border-style: solid;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: none;
    outline: none;
}

#gb-mg-del-selected {
    background: #ff4d6d;
    border-color: #f43f5e;
    color: #fff;
    box-shadow: none !important;
    outline: none !important;
}

#gb-mg-sort-selected {
    background: #06b6d4;
    border-color: #0891b2;
    color: #fff;
    box-shadow: none !important;
    outline: none !important;
}

#gb-mg-add-row {
    background: #22c55e;
    border-color: #16a34a;
    color: #fff;
    box-shadow: none !important;
    outline: none !important;
}

#gb-mg-del-selected:hover,
#gb-mg-del-selected:active,
#gb-mg-del-selected:focus,
#gb-mg-del-selected:focus-visible,
#gb-mg-sort-selected:hover,
#gb-mg-sort-selected:active,
#gb-mg-sort-selected:focus,
#gb-mg-sort-selected:focus-visible,
#gb-mg-add-row:hover,
#gb-mg-add-row:active,
#gb-mg-add-row:focus,
#gb-mg-add-row:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.gb-mg-events-toolbar .btn {
    border-radius: 8px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
}

.gb-mg-del-row {
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    line-height: 1;
    border-radius: 5px;
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.gb-mg-del-row:hover {
    background: #dc2626;
    border-color: #b91c1c;
}

.gb-mg-del-row:active {
    transform: translateY(1px);
}

.gb-mg-trash-svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gb-mg-events-table .btn.btn-primary.btn-sm {
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    border-radius: 4px;
}

.gb-mg-events-table tbody td {
    border-bottom: 1px solid #e5e7eb;
}

.gb-mg-events-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.gb-sortable-row {
    cursor: grab;
}

.gb-sortable-row.is-dragging {
    opacity: 0.65;
}

.gb-drag-cell {
    white-space: nowrap;
    user-select: none;
    color: #4b5f77;
}

.gb-drag-handle {
    display: inline-block;
    margin-right: 6px;
    color: #2f6fb6;
    font-size: 12px;
}

.gb-summary-type-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}

.gb-events-summary-evitem .gb-summary-type-badge {
    padding: 1px 6px;
    font-size: 11px;
}

.gb-evtype-track {
    color: #6b4423;
    background: #fff6ea;
}

.gb-evtype-field {
    color: #1e4d8c;
    background: #eef3fa;
}

.gb-evtype-relay {
    color: #b54708;
    background: #fffaeb;
}

@media (min-width: 900px) {
    .meet-basic-form {
        grid-template-columns: minmax(280px, 1fr) minmax(110px, 140px);
    }
}

@media (max-width: 900px) {
    .gb-mg-head-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner,
    .topbar-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

.gb-basic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    align-items: center;
}

.gb-basic-tab {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475467;
    background: #faf7f2;
    border: 1px solid #e3d9ce;
}

.gb-basic-tab:hover {
    background: #fff6ea;
    color: #8b633f;
}

.gb-basic-tab.is-active {
    background: #b18659;
    color: #fff;
    border-color: #b18659;
}

.mr-rules-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 规则配置：卡片边框与背景与侧栏米杏色系一致 */
.mr-rules-form > .mr-card.card {
    border: 1px solid #e8d2bc;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdfb 0%, #fff9f2 100%);
    box-shadow: 0 1px 3px rgba(120, 78, 48, 0.07);
}

.mr-rules-form > .mr-card.card > .mr-card-body .table-card {
    border: 1px solid #efd9c6;
    border-radius: 10px;
    background: #fffaf6;
    box-shadow: none;
}

.mr-card .mr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
}

.mr-card-title {
    margin: 0;
    font-size: 17px;
    color: #5c3d2e;
}

.mr-card-body {
    padding: 16px 20px 20px;
}

.mr-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mr-icon-blue {
    background: linear-gradient(145deg, #c9a06d 0%, #9a7349 100%);
}

.mr-icon-blue2 {
    background: linear-gradient(145deg, #c4a574 0%, #a68452 100%);
}

.mr-icon-red {
    background: linear-gradient(145deg, #d48a6a 0%, #b86a52 100%);
}

.mr-icon-violet {
    background: linear-gradient(145deg, #b89a8c 0%, #8f6f5f 100%);
}

.mr-icon-green {
    background: linear-gradient(145deg, #6b8fbf 0%, #4a6fa5 100%);
}

.mr-icon-amber {
    background: linear-gradient(145deg, #d9a55c 0%, #b8833d 100%);
}

.mr-ranking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .mr-ranking-row {
        grid-template-columns: 1fr;
    }
}

.mr-current-meet {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6b4423;
}

.mr-current-meet strong {
    color: #4a301f;
}

.mr-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.mr-legend {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #475467;
    line-height: 1.7;
}

.mr-legend .mr-ok {
    color: #1e4d8c;
}

.mr-legend .mr-bad {
    color: #b42318;
}

.mr-legend .mr-warn {
    color: #b45309;
}

.mr-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.mr-field-row label span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #344054;
}

.mr-field-row input[type="number"] {
    width: 88px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
}

.mr-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.mr-radio-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.mr-radio-fixed-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.mr-inline-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.mr-bonus-setup-btn {
    font-size: 13px;
    padding: 8px 14px;
}

/* 破纪录加分配置页 meet_record_bonus */
.mrb-page {
    padding: 0 0 24px;
}

.mrb-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid #e3d9ce;
}

.mrb-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}

.mrb-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #667085;
}

.mrb-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

@media (max-width: 1024px) {
    .mrb-grid {
        grid-template-columns: 1fr;
    }
}

.mrb-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e3d9ce;
    background: #fff;
    box-shadow: 0 2px 10px rgba(45, 32, 22, 0.05);
}

.mrb-card-head {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.mrb-card--meet .mrb-card-head {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.mrb-card--best .mrb-card-head {
    background: linear-gradient(90deg, #f04438 0%, #b42318 100%);
}

.mrb-card--school .mrb-card-head {
    background: linear-gradient(90deg, #1959c4 0%, #1747ad 100%);
}

.mrb-card-body {
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mrb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.mrb-field-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
}

.mrb-field-desc {
    font-size: 12px;
    color: #667085;
    line-height: 1.45;
}

.mrb-field-inp {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mrb-field-inp input[type="number"] {
    width: 100%;
    max-width: 120px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
    font-size: 14px;
}

.mrb-unit {
    font-size: 13px;
    color: #475467;
}

.mrb-save-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.mrb-save-btn {
    min-width: 220px;
    padding: 10px 24px;
    font-weight: 600;
}

.mrb-help {
    margin-top: 8px;
    padding: 18px 18px 22px;
}

.mrb-help-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: #101828;
}

.mrb-help-banner {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #344054;
}

.mrb-help-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #101828;
}

.mrb-help-banner--blue {
    background: #fff6ea;
    border: 1px solid #e8c9a8;
}

.mrb-help-banner--amber {
    background: #fffaeb;
    border: 1px solid #fedf89;
}

.mrb-help-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .mrb-help-cols {
        grid-template-columns: 1fr;
    }
}

.mrb-help-h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #4a301f;
}

.mrb-help-ol,
.mrb-help-ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.6;
    color: #475467;
}

.mrb-help-ol li,
.mrb-help-ul li {
    margin: 6px 0;
}

.mr-limits-table th small,
.mr-limits-table td {
    font-size: 13px;
}

.mr-info-tip {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff6ea;
    color: #4a301f;
    font-size: 13px;
}

.mr-time-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-end;
}

.mr-time-summary label {
    font-size: 14px;
    color: #344054;
}

.mr-time-summary input[type="date"],
.mr-time-summary input[type="number"] {
    margin-left: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
}

.mr-meet-days-label .mr-meet-days-readonly {
    display: inline-block;
    min-width: 2.75em;
    margin-left: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
    background: #fcf9f4;
    color: #101828;
    font-weight: 600;
    text-align: center;
}

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

.mr-unit-overview-card {
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background: #f8fbff;
    padding: 12px 14px;
    text-align: center;
}

.mr-unit-overview-card--accent {
    border-color: #2f8f75;
    background: #eaf7f2;
}

.mr-unit-overview-label {
    font-size: 11px;
    color: #475467;
    margin-bottom: 8px;
}

.mr-unit-overview-main {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.mr-unit-overview-arrow {
    margin: 0 8px;
    color: #667085;
}

.mr-unit-overview-days {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #2563eb;
}

.mr-unit-overview-total {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #1747ad;
}

.mr-unit-overview-sub {
    margin-top: 8px;
    font-size: 10px;
    color: #344054;
}

@media (max-width: 1100px) {
    .mr-unit-overview {
        grid-template-columns: 1fr;
    }
}

.mr-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fdebd4;
    border: 1px solid #e8cfae;
    color: #7c4a2e;
    font-size: 13px;
    font-weight: 600;
}

.mr-rules-form .mr-sessions-table {
    width: 100%;
    border-collapse: collapse;
}

.mr-rules-form .mr-sessions-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #6b3f26;
    background: linear-gradient(180deg, #fff6ea 0%, #fdebd4 100%);
    border-bottom: 1px solid #e8c9a8;
}

.mr-rules-form .mr-sessions-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0e4d8;
    vertical-align: middle;
}

.mr-sessions-table input[type="text"],
.mr-sessions-table input[type="time"] {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
    background: #fffefb;
}

.mr-form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 24px;
}

.mct-panel {
    padding: 20px 22px 28px;
}

.mct-page-title {
    margin: 0 0 18px;
    font-size: 20px;
    color: #101828;
}

.mct-table-wrap {
    margin-bottom: 24px;
}

.mct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mct-table th,
.mct-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ece4da;
    vertical-align: top;
    text-align: left;
}

.mct-table th {
    background: #fcf9f4;
    color: #344054;
    font-weight: 600;
}

.mct-col-radio {
    width: 56px;
    text-align: center;
}

.mct-col-actions {
    min-width: 120px;
    white-space: nowrap;
}

.mct-radio-label {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.mct-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
}

.mct-link {
    color: #b18659;
    font-weight: 600;
}

.mct-link:hover {
    text-decoration: underline;
}

.mct-link--btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.mct-sep {
    margin: 0 6px;
    color: #dfc4ae;
}

.mct-action-muted {
    font-size: 13px;
    color: #98a2b3;
}

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

@media (max-width: 768px) {
    .mct-fields {
        grid-template-columns: 1fr;
    }
}

.mct-field label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #344054;
    font-size: 14px;
}

.mct-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
}

.mct-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.5;
}

.mct-save-row {
    display: flex;
    justify-content: flex-start;
}

/* 记录管理（赛前工作第四项） */
.rm-panel {
    padding: 20px 22px;
}

.rm-page-head {
    margin-bottom: 20px;
}

.rm-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #101828;
}

.rm-title-icon {
    font-size: 26px;
    line-height: 1;
}

.rm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.rm-toolbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #344054;
    background: #fff;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s, background 0.15s;
}

.rm-toolbtn:hover:not(:disabled) {
    border-color: #98a2b3;
    background: #fcf9f4;
}

.rm-toolbtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rm-toolbtn-link {
    font-weight: 500;
}

.rm-toolbtn-ic {
    font-size: 15px;
    line-height: 1;
}

.rm-toolbtn--danger {
    color: #b42318;
    border-color: #fecdca;
}

.rm-toolbtn--danger:hover:not(:disabled) {
    background: #fef3f2;
    border-color: #fecdca;
}

.rm-info {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ecd4b8;
    border-radius: 12px;
    background: #fff;
}

.rm-info-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, #fff6ea 0%, #ecd4b8 100%);
    border-bottom: 1px solid #e8c9a8;
    font-size: 15px;
    color: #4a301f;
}

.rm-info-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #9f7750;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.rm-info-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding: 18px 20px 20px;
}

@media (max-width: 900px) {
    .rm-info-body {
        grid-template-columns: 1fr;
    }
}

.rm-info-subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
}

.rm-info-list {
    margin: 0;
    padding-left: 1.2em;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
}

.rm-info-list li + li {
    margin-top: 8px;
}

.rm-info-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.55;
}

.rm-faq {
    padding: 18px 20px 8px;
}

.rm-faq-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: #101828;
}

.rm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-faq-item {
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.rm-faq-q {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1d2939;
    list-style: none;
}

.rm-faq-q::-webkit-details-marker {
    display: none;
}

.rm-faq-q::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.rm-faq-item[open] .rm-faq-q::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.rm-faq-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c8a277;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.rm-faq-a {
    padding: 0 14px 14px 46px;
    font-size: 13px;
    color: #475467;
    line-height: 1.6;
}

.rm-faq-a p {
    margin: 0;
}

body.rm-onboard-open {
    overflow: hidden;
}

/* 新手引导：挂到 body 下，避免主布局层叠与 pointer-events 导致无法点击关闭 */
.rm-onboard-root {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.rm-onboard-root--open {
    display: flex;
}

.rm-onboard-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: rgba(45, 32, 22, 0.5);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.rm-onboard-dialog {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    align-self: center;
    width: min(100%, 720px);
    max-height: min(90vh, 880px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rm-onboard-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: min(90vh, 880px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
    border: 1px solid #e3d9ce;
    overflow: hidden;
}

.rm-onboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #e3d9ce;
    background: linear-gradient(180deg, #faf7f2 0%, #fff 100%);
}

.rm-onboard-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}

.rm-onboard-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rm-onboard-step-meta {
    font-size: 13px;
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
}

.rm-onboard-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f2f4f7;
    color: #344054;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.rm-onboard-close:hover {
    background: #e3d9ce;
}

.rm-onboard-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 8px;
    min-height: 200px;
}

.rm-onboard-slide {
    outline: none;
}

.rm-onboard-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #fef9c3 0%, #fef08a 100%);
    font-size: 15px;
    font-weight: 600;
    color: #713f12;
}

.rm-onboard-trophy {
    font-size: 20px;
}

.rm-guide-section {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.rm-guide-section--blue {
    background: #fff6ea;
    border-color: #ecd4b8;
}

.rm-guide-section--green {
    background: #eef3fa;
    border-color: #b3d4f7;
}

.rm-guide-h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #4a301f;
}

.rm-guide-section--green .rm-guide-h3 {
    color: #1e4d8c;
}

.rm-guide-h3-ic {
    margin-right: 4px;
}

.rm-guide-h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1d2939;
}

.rm-guide-p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #344054;
}

.rm-guide-p:last-child {
    margin-bottom: 0;
}

.rm-guide-p.formula {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.rm-guide-ol,
.rm-guide-ul {
    margin: 8px 0 0;
    padding-left: 1.35em;
    color: #344054;
    font-size: 14px;
    line-height: 1.65;
}

.rm-guide-ul--compact li + li {
    margin-top: 4px;
}

.rm-guide-foot {
    margin: 12px 0 0;
    font-size: 13px;
    color: #667085;
}

.rm-guide-muted {
    font-size: 13px;
    color: #667085;
    margin-bottom: 12px;
}

.rm-slide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.rm-slide-title-ic {
    font-size: 18px;
    color: #c8a277;
}

.rm-guide-callout {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e3d9ce;
}

.rm-guide-callout--blue {
    background: #fff6ea;
    border-color: #84caff;
}

.rm-guide-callout--warn {
    background: #fffaeb;
    border-color: #fedf89;
}

.rm-guide-callout--soft {
    background: #fcf9f4;
    border-color: #dfc4ae;
}

.rm-guide-num {
    color: #b42318;
    font-weight: 800;
}

.rm-guide-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .rm-guide-feature-grid {
        grid-template-columns: 1fr;
    }
}

.rm-guide-feature {
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #dfc4ae;
    background: #fff;
}

.rm-guide-feature--blue {
    border-color: #84caff;
}

.rm-guide-feature--green {
    border-color: #93b8e8;
    background: #f4f8fd;
}

.rm-guide-feature--amber {
    border-color: #fdb022;
    background: #fffaeb;
}

.rm-guide-feature--softblue {
    border-color: #84caff;
    background: #f5fbff;
}

.rm-guide-feature--navy {
    border-color: #c49a6c;
    background: #fff6ea;
}

.rm-guide-feature--danger {
    border-color: #fecdca;
    background: #fef3f2;
}

.rm-guide-feature-ic {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e3d9ce;
    font-weight: 700;
    font-size: 14px;
    color: #344054;
}

.rm-guide-feature--green .rm-guide-feature-ic {
    background: #dce8f7;
    color: #1e4d8c;
}

.rm-guide-feature--danger .rm-guide-feature-ic {
    background: #fee4e2;
    color: #b42318;
}

.rm-guide-done-banner {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #dce8f7 0%, #b3d4f7 100%);
    border: 1px solid #93b8e8;
    font-size: 14px;
    line-height: 1.55;
    color: #1e4d8c;
}

.rm-onboard-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid #e3d9ce;
    background: #fafafa;
}

.rm-onboard-hint {
    flex: 1 1 200px;
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #98a2b3;
    order: 2;
}

.rm-onboard-footer .btn {
    order: 1;
}

.rm-onboard-footer #rm-onboard-next {
    order: 3;
}

@media (max-width: 560px) {
    .rm-onboard-hint {
        order: 3;
        flex-basis: 100%;
    }

    .rm-onboard-footer #rm-onboard-next {
        order: 2;
    }
}

.rm-onboard-btn-done {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #1e4d8c;
    background: #1e63d9;
    color: #fff;
    cursor: pointer;
}

.rm-onboard-btn-done:hover {
    background: #1e4d8c;
}

/* 分组录入纪录（记录管理 · 添加记录） */
.rm-entry-page {
    padding: 22px 24px 28px;
}

.rm-entry-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 20px;
}

.rm-entry-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #101828;
}

.rm-entry-title-ic {
    font-size: 24px;
    line-height: 1;
}

.rm-entry-topactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rm-entry-import {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #93b8e8;
    background: #1e63d9;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
}

.rm-entry-backlist {
    white-space: nowrap;
}

.rm-entry-banner {
    margin-bottom: 22px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8c9a8;
    border-radius: 12px;
    background: #fff;
}

.rm-entry-banner-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, #fff6ea 0%, #ecd4b8 100%);
    border-bottom: 1px solid #e8c9a8;
    font-size: 15px;
    color: #4a301f;
}

.rm-entry-banner-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #9f7750;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.rm-entry-banner-text {
    margin: 0;
    padding: 14px 16px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #344054;
}

.rm-entry-empty {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    background: #fcf9f4;
    font-size: 14px;
    line-height: 1.65;
    color: #475467;
}

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

@media (max-width: 960px) {
    .rm-entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .rm-entry-grid {
        grid-template-columns: 1fr;
    }
}

.rm-entry-card {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
    border: 1px solid #e3d9ce;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(45, 32, 22, 0.06);
}

.rm-entry-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rm-entry-card-ic {
    font-size: 22px;
    line-height: 1;
}

.rm-entry-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1d2939;
}

.rm-entry-card-badge {
    margin: 0 0 6px;
}

.rm-entry-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff6ea;
    border: 1px solid #84caff;
    color: #6b4423;
    font-size: 13px;
    font-weight: 700;
}

.rm-entry-card-sub {
    margin: 0 0 14px;
    font-size: 13px;
    color: #667085;
}

.rm-entry-card-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-weight: 600;
}

.rm-entry-card-btn-ic {
    font-size: 15px;
}

.rm-entry-card--meet-best {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12);
}

.rm-entry-badge--gold {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

.rm-entry-card-btn--gold {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
}

.rm-entry-card-btn--gold:hover {
    filter: brightness(1.05);
}

.rm-rec-meet-best-lead .rm-rec-meet-best-desc {
    margin: 0;
    padding: 0 16px 16px;
    line-height: 1.6;
    color: #475467;
    font-size: 14px;
}

.rm-rec-global-best-notice {
    margin: 0 0 12px;
}

.rm-rec-hidden-school-post,
.rm-rec-hidden-best-post {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rm-entry-help {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ecd4b8;
    border-radius: 12px;
    background: #fff;
}

.rm-entry-help-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, #fff6ea 0%, #fdebd4 100%);
    border-bottom: 1px solid #dfc4ae;
    font-size: 15px;
    color: #1e3a8a;
}

.rm-entry-help-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c8a277;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rm-entry-help-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
    padding: 18px 20px 22px;
}

@media (max-width: 900px) {
    .rm-entry-help-body {
        grid-template-columns: 1fr;
    }
}

.rm-entry-help-h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #101828;
}

.rm-entry-help-list {
    margin: 0;
    padding-left: 1.25em;
    font-size: 14px;
    line-height: 1.7;
    color: #475467;
}

.rm-entry-help-ul {
    list-style: disc;
}

.rm-entry-meet-hint {
    margin: 16px 0 0;
    font-size: 13px;
    color: #667085;
}

.rm-entry-stub .rm-entry-stub-body {
    padding: 8px 0 0;
}

.rm-entry-stub-h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}

.rm-entry-stub-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 分组内纪录录入表 */
.rm-rec-page {
    padding: 0 0 24px;
}

.rm-rec-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 18px;
    padding: 16px 18px;
}

.rm-rec-page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}

.rm-rec-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rm-rec-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.rm-rec-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #c8a277;
}

.rm-rec-form {
    position: relative;
}

.rm-rec-form--hide-best .rm-rec-best-block {
    display: none;
}

.rm-rec-card {
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
}

.rm-rec-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    color: #fff;
}

.rm-rec-card-head--school {
    background: linear-gradient(90deg, #c8a277 0%, #1570ef 100%);
}

.rm-rec-card-head--best {
    background: linear-gradient(90deg, #1959c4 0%, #1747ad 100%);
}

.rm-rec-card-ic {
    font-size: 18px;
}

.rm-rec-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.rm-rec-smart-tip {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    background: #fffaeb;
    border-bottom: 1px solid #fedf89;
    font-size: 14px;
    color: #53389e;
}

.rm-rec-smart-ic {
    font-size: 20px;
    flex-shrink: 0;
}

.rm-rec-smart-p {
    margin: 6px 0 0;
    line-height: 1.55;
    color: #475467;
}

.rm-rec-smart-lead {
    margin: 0 0 8px;
    line-height: 1.55;
    color: #475467;
}

.rm-rec-smart-ul {
    margin: 0;
    padding-left: 1.25em;
    line-height: 1.55;
    color: #475467;
    font-size: 13px;
}

.rm-rec-smart-ul li {
    margin: 6px 0;
}

.rm-rec-smart-p code,
.rm-rec-smart-ul code {
    padding: 1px 6px;
    border-radius: 4px;
    background: #fef3c7;
    font-size: 13px;
}

.rm-rec-score-cell {
    vertical-align: top;
    min-width: 148px;
}

.rm-rec-score-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-rec-score-preview {
    font-size: 12px;
    line-height: 1.35;
    color: #1570ef;
    min-height: 1.2em;
    word-break: break-all;
}

.rm-rec-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
}

.rm-rec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rm-rec-table thead th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 700;
    color: #4a301f;
    border-bottom: 1px solid #ecd4b8;
}

.rm-rec-table--school thead th {
    background: #fff6ea;
}

.rm-rec-table--best thead th {
    background: #dce8f7;
    color: #1e4d8c;
    border-bottom-color: #93b8e8;
}

.rm-rec-table td {
    padding: 8px;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: middle;
}

.rm-rec-cell-name {
    font-weight: 600;
    color: #1d2939;
}

.rm-rec-inp {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 7px 8px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.rm-rec-date {
    max-width: 11rem;
}

.rm-rec-save-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.rm-rec-save-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
}

.rm-rec-format-dlg {
    max-width: 520px;
    width: calc(100% - 32px);
    border: none;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.2);
}

.rm-rec-format-dlg::backdrop {
    background: rgba(45, 32, 22, 0.45);
}

.rm-rec-format-inner {
    padding: 0;
}

.rm-rec-format-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e3d9ce;
    background: #faf7f2;
}

.rm-rec-format-head h3 {
    margin: 0;
    font-size: 16px;
}

.rm-rec-format-close {
    border: none;
    background: #e3d9ce;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.rm-rec-format-body {
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #344054;
}

.rm-rec-format-body p {
    margin: 0 0 12px;
}

.rm-rec-format-body p:last-child {
    margin-bottom: 0;
}

.rm-rec-format-foot {
    padding: 12px 16px 16px;
    text-align: right;
    border-top: 1px solid #e3d9ce;
}

@media (max-width: 960px) {
    .rm-rec-table thead {
        display: none;
    }

    .rm-rec-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e3d9ce;
        border-radius: 10px;
        padding: 8px;
    }

    .rm-rec-table td {
        display: block;
        border: none;
        padding: 6px 4px;
    }

    .rm-rec-table td::before {
        display: block;
        font-size: 11px;
        color: #667085;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .rm-rec-table--school td:nth-child(1)::before {
        content: '项目';
    }

    .rm-rec-table--school td:nth-child(2)::before {
        content: '性别';
    }

    .rm-rec-table--school td:nth-child(3)::before {
        content: '成绩';
    }

    .rm-rec-table--school td:nth-child(4)::before {
        content: '保持者';
    }

    .rm-rec-table--school td:nth-child(5)::before {
        content: '单位';
    }

    .rm-rec-table--school td:nth-child(6)::before {
        content: '比赛名称';
    }

    .rm-rec-table--school td:nth-child(7)::before {
        content: '日期';
    }

    .rm-rec-table--best td:nth-child(1)::before {
        content: '项目';
    }

    .rm-rec-table--best td:nth-child(2)::before {
        content: '性别';
    }

    .rm-rec-table--best td:nth-child(3)::before {
        content: '成绩';
    }

    .rm-rec-table--best td:nth-child(4)::before {
        content: '保持者';
    }

    .rm-rec-table--best td:nth-child(5)::before {
        content: '单位';
    }

    .rm-rec-table--best td:nth-child(6)::before {
        content: '比赛名称';
    }

    .rm-rec-table--best td:nth-child(7)::before {
        content: '日期';
    }
}

/* 运动会报名（赛前工作 · 网络 / 手动 / 表格导入） */
.mgr-tabs {
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.mgr-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #e3d9ce;
}

.mgr-tab {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.mgr-tab:hover {
    color: #1d2939;
    background: #fcf9f4;
}

.mgr-tab.is-active {
    color: #1570ef;
    border-bottom-color: #1570ef;
    background: #fff;
}

.mgr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.mgr-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}

.mgr-title-ic {
    font-size: 22px;
}

.mgr-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mgr-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 960px) {
    .mgr-settings-grid {
        grid-template-columns: 1fr;
    }
}

.mgr-card-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2939;
}

.mgr-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.mgr-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mgr-toggle-ui {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #dfc4ae;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s;
}

.mgr-toggle-ui::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.mgr-toggle input:checked + .mgr-toggle-ui {
    background: #c8a277;
}

.mgr-toggle input:checked + .mgr-toggle-ui::after {
    transform: translateX(20px);
}

.mgr-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #344054;
}

.mgr-toggle-text small {
    font-weight: 400;
    color: #667085;
    font-size: 12px;
}

.mgr-datetime-row {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.mgr-datetime-row label span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #344054;
}

.mgr-datetime-row input[type="datetime-local"] {
    width: 100%;
    max-width: 280px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
}

.mgr-datetime-row small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

.mgr-save-row {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mgr-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mgr-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.mgr-badge-warn {
    background: #fef0c7;
    color: #b54708;
}

.mgr-badge-ok {
    background: #dce8f7;
    color: #1e4d8c;
}

.mgr-badge-muted {
    background: #f2f4f7;
    color: #475467;
}

.mgr-badge-cyan {
    background: #fff6ea;
    color: #6b4423;
}

.mgr-status-label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #667085;
}

.mgr-time-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.mgr-pill {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.mgr-pill span {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.mgr-pill strong {
    font-size: 14px;
    font-weight: 600;
}

.mgr-pill-blue {
    background: #fff6ea;
    color: #6b4423;
}

.mgr-pill-green {
    background: #eef3fa;
    color: #1e4d8c;
}

.mgr-pill-orange {
    background: #fff6ed;
    color: #b93815;
}

.mgr-online-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
}

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

.mgr-url-box {
    padding: 12px;
    background: #fcf9f4;
    border: 1px solid #e3d9ce;
    border-radius: 8px;
    margin: 12px 0;
    word-break: break-all;
}

.mgr-url-box code {
    font-size: 13px;
    color: #1d2939;
}

.mgr-lead {
    color: #475467;
    line-height: 1.6;
}

/* 报名系统设置卡片下方接参赛队账户区块 */
.mgr-settings.card + .mgr-team-accounts.card {
    margin-top: 20px;
}

/* 运动会报名 · 参赛队账户管理 */
.mgr-ta-head {
    flex-wrap: wrap;
    gap: 10px;
}

.mgr-ta-banner {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f2f4f7;
    border-radius: 8px;
    color: #344054;
    font-size: 14px;
}

.mgr-ta-grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 1024px) {
    .mgr-ta-grid {
        grid-template-columns: 1fr;
    }
}

.mgr-ta-gen {
    border: 2px solid #6ee7b7;
    border-radius: 12px;
    padding: 16px;
    background: #f4f8fd;
}

.mgr-ta-gen-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mgr-ta-bolt {
    font-size: 18px;
}

.mgr-ta-mode-field {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #b3d4f7;
    border-radius: 10px;
    background: #fff;
}

.mgr-ta-mode-field legend {
    font-weight: 600;
    padding: 0 6px;
    color: #065f46;
}

.mgr-ta-mode-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #344054;
    cursor: pointer;
}

.mgr-ta-mode-row:last-child {
    margin-bottom: 0;
}

.mgr-ta-mode-row input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.mgr-ta-prefix-block {
    margin-bottom: 14px;
}

.mgr-ta-prefix-block--hidden {
    display: none;
}

.mgr-ta-username-hint {
    margin: 0 0 14px;
    line-height: 1.55;
}

.mgr-ta-gen-form .mgr-ta-label {
    display: block;
    margin-bottom: 14px;
}

.mgr-ta-gen-form .mgr-ta-label span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d2939;
}

.mgr-ta-gen-form input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
}

.mgr-ta-gen-form small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.mgr-ta-share-field {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #b3d4f7;
    border-radius: 10px;
    background: #fff;
}

.mgr-ta-share-field legend {
    font-weight: 600;
    padding: 0 6px;
    color: #065f46;
}

.mgr-ta-share-hint {
    margin: 0 0 8px;
    font-size: 13px;
}

.mgr-ta-select-all {
    color: #6b4423;
}

.mgr-ta-share-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mgr-ta-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #344054;
}

.mgr-ta-gen-btn {
    width: 100%;
    margin-top: 8px;
}

.mgr-ta-main {
    padding: 16px;
}

.mgr-ta-main-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mgr-ta-empty {
    margin-top: 8px;
}

.mgr-ta-table-wrap {
    overflow-x: auto;
}

.mgr-ta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mgr-ta-table th,
.mgr-ta-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ece4da;
}

.mgr-ta-table th {
    background: #fcf9f4;
    font-weight: 600;
    color: #475467;
}

.mgr-ta-code {
    font-size: 13px;
    background: #f2f4f7;
    padding: 2px 6px;
    border-radius: 4px;
}

.mgr-ta-login-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #e3d9ce;
    color: #344054;
}

.mgr-ta-login-pill--muted {
    background: #344054;
    color: #fff;
}

.mgr-ta-ops {
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.mgr-ta-inline-form {
    display: inline;
    margin: 0;
}

.mgr-ta-linkbtn {
    background: none;
    border: none;
    color: #6b4423;
    cursor: pointer;
    padding: 0 4px;
    font: inherit;
    text-decoration: underline;
}

.mgr-ta-linkbtn--danger {
    color: #b42318;
}

.mgr-ta-clear-form {
    margin-top: 16px;
}

.mgr-ta-clear-btn {
    border-color: #fda29b;
    color: #b42318;
}

.mgr-banner {
    padding: 12px 16px;
    background: #fff6ea;
    border-radius: 10px;
    color: #4a301f;
    font-size: 15px;
    margin-bottom: 16px;
}

/* ---------- 运动会列表（赛事管理）页面 ---------- */
.meets-page {
    max-width: 1320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.meets-list-dash {
    padding-bottom: 8px;
}

.meets-list-toolbar {
    margin-bottom: 4px;
}

.meets-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meets-btn-new-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.meets-table-panel {
    background: #fff;
    border: 1px solid #ece4da;
    border-radius: 14px;
    padding: 18px 18px 14px;
    box-shadow: 0 4px 16px rgba(45, 32, 22, 0.04);
    margin-bottom: 8px;
}

.meets-table-panel .meets-table-section-title {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meets-table-panel .meets-table-wrap.table-card {
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.meets-table-title-ic {
    font-size: 1.1rem;
}

.meets-page-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 4px;
}

.meets-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--gb-accent);
    border: 1px solid rgba(30, 77, 140, 0.35);
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.2);
}

.meets-next-btn:hover {
    filter: brightness(1.05);
    color: #fff;
}

.meets-next-ico {
    font-size: 1rem;
    line-height: 1;
}

body.meets-delete-modal-open {
    overflow: hidden;
}

.meets-delete-modal[hidden] {
    display: none !important;
}

.meets-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.meets-delete-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.meets-delete-modal-panel {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.meets-delete-modal-head {
    padding: 18px 20px 12px;
    border-bottom: 1px solid #f2f4f7;
}

.meets-delete-modal-title {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #101828;
}

.meets-delete-modal-warn-ic {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.2;
    color: #faad14;
}

.meets-delete-modal-body {
    padding: 12px 20px 18px;
    overflow: auto;
}

.meets-delete-modal-lead {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.meets-delete-modal-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.75;
    color: #475467;
}

.meets-delete-modal-list li {
    margin: 0;
    padding-left: 0;
}

.meets-delete-modal-list li::before {
    content: "- ";
    color: #475467;
}

.meets-delete-modal-target {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    font-size: 13px;
    font-weight: 600;
    color: #ad6800;
}

.meets-delete-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #f2f4f7;
    background: #fafafa;
}

.meets-delete-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
}

.meets-delete-modal-btn--cancel {
    background: #fff;
    color: #475467;
    border-color: #d0d5dd;
}

.meets-delete-modal-btn--cancel:hover {
    background: #f9fafb;
}

.meets-delete-modal-btn--confirm {
    background: #cf1322;
    color: #fff;
    border-color: #cf1322;
}

.meets-delete-modal-btn--confirm:hover {
    background: #a8071a;
}

.meets-op-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.meets-col-actions .meets-op-row {
    white-space: nowrap;
}

.meets-op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.25;
    box-sizing: border-box;
    flex: 0 0 58px;
    min-width: 58px;
    width: 58px;
    height: 28px;
}

.meets-op-btn--copy {
    background: #e8f4ff;
    color: #0958d9;
    border-color: #91caff;
}

.meets-op-btn--copy:hover {
    background: #d6ebff;
}

.meets-op-btn--edit {
    background: #f4f0ff;
    color: #5925dc;
    border-color: #d3adf7;
}

.meets-op-btn--edit:hover {
    background: #ece6ff;
}

.meets-op-btn--del {
    background: #ffece8;
    color: #cf1322;
    border-color: #ffbb96;
}

.meets-op-btn--del:hover {
    background: #ffd8d2;
}

.meets-op-btn--pause {
    background: #fff4e6;
    color: #d48806;
    border-color: #ffc069;
}

.meets-op-btn--pause:hover {
    background: #ffe7ba;
}

.meets-op-btn--finish {
    background: #f5f5f5;
    color: #434343;
    border-color: #d9d9d9;
}

.meets-op-btn--finish:hover {
    background: #ebebeb;
}

.meets-op-btn--act {
    background: #eef3fa;
    color: #1e4d8c;
    border-color: #93b8e8;
}

.meets-op-btn--act:hover {
    background: #dce8f7;
}

.meets-stat-ic--square {
    border-radius: 10px;
    width: 48px;
    height: 48px;
}

.meets-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 22px;
}

.meets-page-title-block {
    min-width: 0;
}

.meets-page-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meets-page-title-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff6ea 0%, #fff6ea 100%);
    font-size: 1.25rem;
}

.meets-page-lead {
    margin: 0;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 520px;
}

.meets-page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meets-page-head-actions .meets-head-btn {
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 8px;
    justify-content: center;
    white-space: nowrap;
}

.meets-btn-video {
    border: 1px solid #dfc4ae;
    background: #fff;
    color: #344054;
}

.meets-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.meets-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #ece4da;
    background: #fff;
    box-shadow: 0 4px 16px rgba(45, 32, 22, 0.04);
}

.meets-stat-card--blue {
    border-color: #dfc4ae;
    background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
}

.meets-stat-card--green {
    border-color: #b3d4f7;
    background: linear-gradient(135deg, #fff 0%, #f4f8fd 100%);
}

.meets-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 6px;
}

.meets-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #101828;
    line-height: 1.1;
}

.meets-stat-value--sm {
    font-size: 1.35rem;
    font-weight: 700;
}

.meets-stat-desc {
    margin: 8px 0 0;
    font-size: 12px;
    color: #667085;
    line-height: 1.4;
}

.meets-stat-ic {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.meets-stat-ic--blue {
    background: #fff6ea;
    color: #6b4423;
}

.meets-stat-ic--green {
    background: #eef3fa;
    color: #1e4d8c;
}

.meets-subsection-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #101828;
}

.meets-table-section-title {
    margin-bottom: 12px;
}

.meets-create-card,
.meets-edit-card {
    margin-bottom: 20px;
}

.meets-create-tip {
    margin: 0 0 12px;
}

.meets-edit-actions,
.meets-create-actions {
    grid-column: 1 / -1;
}

.meets-table-wrap {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}

.meets-list-table {
    margin: 0;
}

.meets-list-table thead th {
    background: #edf3fb;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    padding: 12px 10px;
    border-bottom: 1px solid #d8e1ec;
}

.meets-list-table tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    vertical-align: middle;
}

.meets-list-table th,
.meets-list-table td {
    vertical-align: middle;
}

.meets-list-table .meets-col-idx,
.meets-list-table .meets-col-year,
.meets-list-table .meets-col-status {
    text-align: center;
    width: 72px;
}

.meets-list-table .meets-col-year {
    width: 76px;
}

.meets-list-table .meets-col-date-h,
.meets-list-table .meets-col-date {
    white-space: nowrap;
}

.meets-list-table .meets-col-status {
    width: 110px;
}

.meets-list-table .meets-col-actions {
    text-align: left;
    min-width: 300px;
    width: 34%;
}

.meets-col-name-text {
    display: block;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: #111827;
}

.meets-col-date {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
    padding-top: 0;
}

.meets-col-date-main {
    font-size: 14px;
    font-weight: 500;
    color: #475467;
    font-variant-numeric: tabular-nums;
}

.meets-col-name strong {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
}

.meets-col-venue {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    font-weight: 400;
}

.meets-col-date-sub {
    font-size: 12px;
    color: #667085;
    font-variant-numeric: tabular-nums;
}

.meets-empty-cell {
    text-align: center;
    color: #667085;
    padding: 28px 16px !important;
}

.meets-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meets-action-row--secondary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ece4da;
}

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

.meet-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.meet-status-pill-ic {
    margin-right: 4px;
    font-size: 11px;
}

.meet-status-pill--prep {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #e3d9ce;
}

.meet-status-pill--ongoing {
    background: #eef3fa;
    color: #1e4d8c;
    border: 1px solid #93b8e8;
}

.meet-status-pill--reg {
    background: #fff6ea;
    color: #6b4423;
    border: 1px solid #84caff;
}

.meet-status-pill--arr {
    background: #f4f3ff;
    color: #5925dc;
    border: 1px solid #c3b5fd;
}

.meet-status-pill--done {
    background: #f2f4f7;
    color: #475467;
    border: 1px solid #e3d9ce;
}

.meet-status-pill--idle {
    background: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
}

@media (max-width: 720px) {
    .meets-col-actions .meets-op-row {
        flex-wrap: wrap;
        white-space: normal;
    }

    .meets-list-table .meets-col-actions {
        min-width: 200px;
        width: auto;
    }
}

.mgr-team-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mgr-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mgr-count-badge {
    background: #dce8f7;
    color: #1e4d8c;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.mgr-pill-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: 12px;
    color: #475467;
}

.mgr-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.mgr-num-blue {
    background: #fff6ea;
    color: #6b4423;
}

.mgr-num-green {
    background: #eef3fa;
    color: #1e4d8c;
}

/* 手动报名参赛队伍表：序号与数量列与表头居中对齐 */
.mgr-team-table th:nth-child(1),
.mgr-team-table td:nth-child(1),
.mgr-team-table th:nth-child(4),
.mgr-team-table td:nth-child(4),
.mgr-team-table th:nth-child(5),
.mgr-team-table td:nth-child(5) {
    text-align: center;
    vertical-align: middle;
}

.mgr-btn-muted {
    opacity: 0.85;
    pointer-events: none;
}

.mgr-excel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
}

@media (max-width: 960px) {
    .mgr-excel-grid {
        grid-template-columns: 1fr;
    }
}

.mgr-excel-panel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e3d9ce;
}

.mgr-excel-panel-head {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.mgr-excel-panel-teal .mgr-excel-panel-head {
    background: linear-gradient(180deg, #5eead4 0%, #2dd4bf 100%);
    color: #134e4a;
}

.mgr-excel-panel-head-dark {
    background: #344054 !important;
    color: #fff !important;
}

.mgr-excel-panel-gray .mgr-excel-panel-head {
    background: #ece4da;
    color: #344054;
}

.mgr-excel-panel-body {
    padding: 16px;
    background: #fff;
}

.mgr-excel-dl {
    margin-top: 12px;
}

.mgr-group-dl {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e3d9ce;
}

.mgr-group-dl-empty {
    margin: 0;
}

.mgr-group-dl-details {
    margin: 0;
}

.mgr-group-dl-summary {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
}

.mgr-group-dl-details-body {
    padding: 10px 0 2px;
}

.mgr-group-dl-sub {
    font-weight: 400;
    color: #667085;
    font-size: 12px;
}

.mgr-excel-dl-hint {
    margin: 0 0 10px;
    font-size: 13px;
}

.mgr-group-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 8px;
    margin: 0;
}

.mgr-group-dl-link {
    display: block;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    background: #fcf9f4;
    font-size: 13px;
    font-weight: 500;
    color: #1570ef;
    text-decoration: none;
    line-height: 1.25;
    word-break: break-all;
}

.mgr-group-dl-link:hover {
    background: #fff6ea;
    border-color: #84caff;
    color: #6b4423;
}

.mgr-staging-form label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.mgr-staging-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.mgr-staging-table {
    margin-top: 20px;
}

.mgr-row-err {
    background: #fef3f2;
}

.mgr-help {
    margin-top: 18px;
    padding: 12px 16px;
}

.mgr-help-sum {
    cursor: pointer;
    font-size: 14px;
}

.mgr-help-body {
    padding: 10px 0 4px;
    font-size: 13px;
    color: #475467;
    line-height: 1.6;
}

.mgr-excel-lead {
    margin-top: 0;
}

/* 赛前管理（报名统计、领队教练、号码布、编排引导、秩序册、锁定） */
.pm-page-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2a1f18;
    margin: 0 0 12px;
}

.pm-subtitle {
    margin: -8px 0 20px;
    color: #475467;
    font-size: 14px;
}

.pm-meet-bar {
    margin-bottom: 16px;
}

/* 秩序册页：代表队排序策略（紧凑表格与说明间距） */
.pm-order-sort h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #2a1f18;
}

.pm-order-sort > p.tip {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.pm-order-sort .table-card {
    padding: 10px 12px;
}

.pm-order-sort .pm-table th,
.pm-order-sort .pm-table td {
    padding: 6px 10px;
    vertical-align: middle;
}

.pm-order-sort .pm-table th {
    font-size: 13px;
}

.pm-order-sort .pm-table td:first-child {
    width: 38%;
    max-width: 12rem;
    font-weight: 500;
    color: #344054;
}

.pm-order-sort .table-card select {
    width: 100%;
    max-width: 260px;
    padding: 6px 10px;
    min-height: 0;
    font-size: 14px;
}

.pm-order-sort form > .btn {
    margin-top: 10px;
}

.pm-order-sort form > .btn.btn-sm {
    font-weight: 700;
}

.pm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.pm-stat-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pm-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e6ddd4;
    border-radius: 10px;
}

.pm-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f2f4f7;
}

.pm-stat-icon-blue {
    background: #e0edff;
}

.pm-stat-icon-green {
    background: #dce8f7;
}

.pm-stat-icon-amber {
    background: #fef3c7;
}

.pm-stat-icon-purple {
    background: #ede9fe;
}

.pm-stat-icon-cyan {
    background: #d5f5f6;
}

.pm-stat-body strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
}

.pm-stat-body span {
    font-size: 13px;
    color: #667085;
}

.pm-section {
    margin-bottom: 18px;
}

/* 秩序册页：资源下载中心（与赛前「下载秩序册」入口对应） */
.pm-od-hub {
    margin-bottom: 20px;
}

.pm-od-hub-sec {
    margin-top: 18px;
}

.pm-od-hub-sec:first-of-type {
    margin-top: 0;
}

.pm-od-hub-sec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #16a34a;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a1f18;
}

.pm-od-hub-sec-ic {
    font-size: 1.15rem;
    line-height: 1;
}

.pm-od-hub .table-card.pm-od-hub-table-wrap {
    padding: 8px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(45, 32, 22, 0.05);
}

.pm-od-hub-table-wrap {
    overflow-x: auto;
}

.pm-od-hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.pm-od-hub-table th,
.pm-od-hub-table td {
    padding: 8px 10px;
    border: 1px solid #e3d9ce;
    vertical-align: middle;
    text-align: left;
}

.pm-od-hub-table thead th {
    background: #faf6f1;
    font-weight: 700;
    font-size: 12px;
    color: #344054;
    white-space: nowrap;
}

.pm-od-hub-th-fn {
    width: 9.25rem;
    text-align: center !important;
}

.pm-od-hub-th-name {
    width: 24%;
}

.pm-od-hub-th-desc {
    width: auto;
}

.pm-od-hub-th-st {
    width: 5.5rem;
    text-align: center !important;
}

.pm-od-hub-table tbody tr:nth-child(even) {
    background: #faf7f2;
}

.pm-od-hub-table tbody tr:hover {
    background: #f4f8fd;
}

.pm-od-hub-td-fn {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    width: 9.25rem;
    text-align: center;
}

.pm-od-hub-td-name {
    width: 24%;
    min-width: 10.5rem;
    max-width: 15rem;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.pm-od-hub-td-name strong {
    font-weight: 700;
    color: #101828;
}

.pm-od-hub-td-desc {
    width: auto;
    color: #475467;
    line-height: 1.45;
    font-size: 13px;
    min-width: 0;
    word-break: break-word;
}

.pm-od-hub-td-st {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5.5rem;
    text-align: center;
    vertical-align: middle;
}

/* 与全局 .btn 组合时提高优先级，保证功能列按钮同宽、同字号 */
.pm-od-hub-td-fn .pm-od-hub-fn.btn.btn-primary.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 6.75rem;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.pm-od-hub-fn--dis {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.pm-od-hub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 3.5rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

/* 未下载：浅灰底、深灰字（显式覆盖其它样式，避免与「已下载」绿底冲突） */
.pm-od-hub .pm-od-hub-table tbody td.pm-od-hub-td-st .pm-od-hub-badge.pm-od-hub-badge--pending {
    background: #e8ecf1 !important;
    color: #4a3f36 !important;
    border: 1px solid #d4c4b6 !important;
}

.pm-od-hub .pm-od-hub-table tbody td.pm-od-hub-td-st .pm-od-hub-badge.pm-od-hub-badge--done {
    background: #16a34a !important;
    color: #fff !important;
    border: 1px solid #15803d !important;
}

.pm-od-hub .pm-od-hub-table tbody td.pm-od-hub-td-st .pm-od-hub-badge.pm-od-hub-badge--na {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    background: #faf7f2 !important;
    color: #a89888 !important;
    font-weight: 600;
    border: 1px solid #e3d9ce !important;
}

.pm-od-hub-footnote {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #475467;
}

/* 秩序册嵌入：仅显示秩序册主体（无侧栏壳） */
body.order-book-embed button.gb-sb-expand-fab,
body.meet-program-regs-embed button.gb-sb-expand-fab {
    display: none !important;
}

body.order-book-embed main.page,
body.meet-program-regs-embed main.page {
    max-width: none;
    padding: 12px 16px 24px;
}

/* 嵌入页不显示全站页脚（系统名、一期目标、底部导航） */
body.order-book-embed footer.footer,
body.meet-program-regs-embed footer.footer,
body.mpp-print-pick-embed footer.footer,
body.mras-sheet-embed footer.footer {
    display: none !important;
}

/* 检录单项目选择嵌入（弹窗）：无侧栏顶条壳，仅主体 */
body.mpp-print-pick-embed button.gb-sb-expand-fab,
body.mras-sheet-embed button.gb-sb-expand-fab {
    display: none !important;
}

body.mpp-print-pick-embed main.page,
body.mras-sheet-embed main.page {
    max-width: none;
    padding: 12px 16px 24px;
}

.mpp-print-pick-embed-shell {
    max-width: 1280px;
    margin: 0 auto;
}

body.meet-program-regs-embed .pm-regs-embed-wrap {
    padding-top: 4px;
}

.pm-od-hub-preview__frame--regs-embed {
    min-height: min(58vh, 620px);
}

/* 赛中管理页（单页多模块） */
.during-hub-meet {
    margin-bottom: 10px;
}

.during-hub-form .during-hub-mod {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e3d9ce;
}

.during-hub-form .during-hub-mod:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.during-hub-mod--links .during-hub-actions {
    flex-wrap: wrap;
}

.during-hub-mod-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a1f18;
}

.during-hub-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.during-hub-field > span:first-child {
    font-weight: 600;
    font-size: 13px;
    color: #4a3f36;
}

.during-hub-field input[type="text"],
.during-hub-field textarea {
    width: 100%;
    max-width: 52rem;
    box-sizing: border-box;
}

.during-hub-submit {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e3d9ce;
}

/* 与客户端数据同步（meet_client_sync） */
.mcs-page {
    max-width: 920px;
    margin: 0 auto;
}

.mcs-hero {
    position: relative;
    border-radius: 16px;
    padding: 28px 24px 26px;
    background: linear-gradient(135deg, #1d7afc 0%, #0b5bd3 48%, #0a4bb8 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 76, 180, 0.22);
    overflow: hidden;
}

.mcs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: 0.45;
    pointer-events: none;
}

.mcs-hero-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.mcs-hero-title {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mcs-hero-desc {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 46rem;
    line-height: 1.65;
    font-size: 14px;
    opacity: 0.95;
}

.mcs-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.55;
}

.mcs-alert--info {
    background: #fff6ea;
    border-color: #ecd4b8;
    color: #0f355a;
}

.mcs-alert--user {
    background: #eef3fa;
    border-color: #b3d4f7;
    color: #054f31;
}

.mcs-alert-ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d7afc;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mcs-alert--user .mcs-alert-ico {
    background: #1e63d9;
    font-size: 12px;
    font-weight: 600;
}

.mcs-alert-title {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.mcs-alert-list {
    margin: 0;
    padding-left: 1.15rem;
}

.mcs-alert-list li {
    margin-bottom: 6px;
}

.mcs-alert-list li:last-child {
    margin-bottom: 0;
}

.mcs-user-line {
    margin: 4px 0 0;
    font-size: 14px;
}

.mcs-user-line span {
    color: #475467;
    margin-right: 8px;
}

.mcs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.mcs-tab {
    border: 1px solid #dfc4ae;
    background: #fff;
    color: #344054;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mcs-tab.is-active {
    background: #1e4d8c;
    border-color: #1e4d8c;
    color: #fff;
}

.mcs-tab-panel.is-hidden {
    display: none;
}

.mcs-card {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mcs-card-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #101828;
}

.mcs-card-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mcs-card-ico--faq {
    background: #fff6ea;
    color: #6b4423;
}

.mcs-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3d9ce;
    border-radius: 10px;
}

.mcs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mcs-table th,
.mcs-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f2f4f7;
}

.mcs-table thead th {
    background: #fcf9f4;
    font-weight: 600;
    color: #475467;
}

.mcs-table tbody tr:last-child td {
    border-bottom: none;
}

.mcs-th-narrow {
    width: 64px;
    text-align: center;
}

.mcs-radio-wrap {
    display: flex;
    justify-content: center;
}

.mcs-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f2f4f7;
    color: #344054;
}

.mcs-badge--ok {
    background: #eef3fa;
    color: #1e4d8c;
}

.mcs-badge--info {
    background: #fff6ea;
    color: #6b4423;
}

.mcs-badge--muted {
    background: #f2f4f7;
    color: #667085;
}

.mcs-card-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mcs-btn-export {
    min-width: 160px;
}

.mcs-file-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

.mcs-file-label input[type="file"] {
    font-size: 13px;
}

.mcs-faq {
    margin-top: 20px;
}

.mcs-faq-item {
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 10px;
    background: #fff;
}

.mcs-faq-item summary {
    cursor: pointer;
    padding: 12px 4px;
    font-weight: 600;
    color: #101828;
    list-style: none;
}

.mcs-faq-item summary::-webkit-details-marker {
    display: none;
}

.mcs-faq-item summary::after {
    content: "⌄";
    float: right;
    color: #98a2b3;
    font-size: 14px;
    transform: translateY(-2px);
}

.mcs-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.mcs-faq-item p {
    margin: 0 4px 12px;
    padding-top: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
}

/* 打印检录单入口（meet_print_checkin） */
.mpc-page {
    max-width: 960px;
    margin: 0 auto;
}

.mpc-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 22px 20px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(9, 88, 217, 0.25);
}

.mpc-hero--solo {
    border-radius: 14px;
}

.mpc-hero-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpc-hero-text {
    min-width: 0;
}

.mpc-hero-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.mpc-hero-sub {
    margin: 0;
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.55;
}

.mpc-warn {
    margin-top: 16px;
}

.mpc-shell {
    margin-top: 0;
    padding: 20px 18px 22px;
    background: #f4f7f9;
    border-radius: 0 0 14px 14px;
    border: 1px solid #e3d9ce;
    border-top: none;
}

.mpc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

@media (max-width: 560px) {
    .mpc-grid {
        grid-template-columns: 1fr;
    }
}

.mpc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    text-decoration: none;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.mpc-card:hover {
    border-color: #91caff;
    box-shadow: 0 4px 14px rgba(22, 119, 255, 0.12);
    transform: translateY(-1px);
}

.mpc-card-ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #1677ff;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
}

.mpc-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.mpc-lock-banner {
    margin-top: 16px;
    margin-bottom: 0;
    color: #7a2e0e;
    background: #fffaeb;
    border-color: #f5d49a;
}

.mpc-lock-banner__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mpc-lock-banner__text {
    flex: 1;
    min-width: 0;
}

.mpc-lock-banner__title {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.mpc-lock-banner__sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.95;
}

.mpc-lock-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.mpc-lock-banner__cta-ico {
    display: inline-flex;
    line-height: 0;
}

.mpp-lock-banner {
    margin-bottom: 14px;
}

.mpc-card--disabled {
    cursor: not-allowed;
    opacity: 0.68;
    pointer-events: none;
    box-shadow: none;
}

.mpc-card--disabled:hover {
    border-color: #e3d9ce;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transform: none;
}

.mpc-card--disabled .mpc-card-ico {
    border-color: #c9cdd4;
    color: #8f959e;
    background: #f5f5f5;
}

.mpc-card-title--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.mpc-card-lock-ico {
    flex-shrink: 0;
    display: inline-flex;
    color: #8f959e;
    line-height: 0;
}

.mpc-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 13px;
    color: #475467;
    line-height: 1.55;
}

.mpc-hint-ico {
    flex-shrink: 0;
    color: #1677ff;
    font-weight: 700;
}

.mpc-hint--subtle {
    margin-top: 10px;
    font-size: 12px;
    color: #667085;
}

.mpc-faq {
    margin-top: 20px;
    padding: 16px 16px 8px;
}

.mpc-faq-head {
    margin: 0 0 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #101828;
}

.mpc-faq-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mpc-faq-item {
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 10px;
    background: #fff;
}

.mpc-faq-item summary {
    cursor: pointer;
    padding: 12px 4px;
    font-weight: 600;
    color: #101828;
    list-style: none;
}

.mpc-faq-item summary::-webkit-details-marker {
    display: none;
}

.mpc-faq-item summary::after {
    content: "⌄";
    float: right;
    color: #98a2b3;
    font-size: 14px;
}

.mpc-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.mpc-faq-body {
    padding: 0 4px 12px;
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
}

.mpc-faq-body p {
    margin: 0 0 8px;
}

.mpc-faq-body ul {
    margin: 0;
    padding-left: 1.2rem;
}

.mpc-faq-body li {
    margin-bottom: 6px;
}

/* 检录单分类勾选页（meet_print_checkin_pick） */
.mpp-page {
    max-width: 1100px;
    margin: 0 auto;
}

.mpp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mpp-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #101828;
    flex: 1 1 280px;
}

.mpp-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.mpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #1d2939;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.1);
}

.mpp-btn-ico {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mpp-btn--green {
    background: linear-gradient(180deg, #5b8ed4 0%, #1e63d9 100%);
    color: #fff;
}

.mpp-btn--amber {
    background: linear-gradient(180deg, #ffd666 0%, #d48806 100%);
    color: #1a1a1a;
}

.mpp-btn--sky {
    background: linear-gradient(180deg, #91d5ff 0%, #40a9ff 100%);
    color: #0b1f33;
}

.mpp-btn--export:hover {
    filter: brightness(1.05);
}

.mpp-btn--locked-out,
.mpp-btn--export:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
    box-shadow: none;
}

.mpp-btn--export:disabled:hover {
    filter: grayscale(0.2);
}

.mpp-card {
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.mpp-card-cap {
    background: linear-gradient(90deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
}

.mpp-global-sel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 4px;
    border-bottom: 1px solid #f2f4f7;
}

.mpp-session-block {
    border-bottom: 1px solid #e3d9ce;
}

.mpp-session-block:last-of-type {
    border-bottom: none;
}

.mpp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f2f4f7;
    background: #fafafa;
}

.mpp-session {
    flex: 1 1 200px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.mpp-toolbar-btns {
    display: flex;
    gap: 8px;
}

.mpp-foot-disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

.mpp-count {
    margin-left: auto;
    background: #e6f4ff;
    color: #0958d9;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.mpp-empty {
    padding: 16px;
}

.mpp-empty-compact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 16px 12px;
    padding: 14px 16px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    color: #5c4a21;
}

.mpp-empty-compact__ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 4px;
    background: #faad14;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.mpp-empty-compact__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #3d2f12;
    margin-bottom: 6px;
}

.mpp-empty-compact__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5c4a21;
}

.mpp-empty-compact-foot {
    margin: 0 16px 16px;
    font-size: 13px;
}

.mpp-empty-compact-foot a {
    font-weight: 600;
}

.mpp-empty-sub {
    margin-top: 6px;
    padding-top: 0;
    padding-bottom: 0;
}

.mpp-empty-list {
    margin: 8px 0 12px 20px;
    padding: 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.55;
}

.mpp-empty-links li {
    margin: 4px 0;
}

.mpp-table-wrap {
    overflow-x: auto;
}

.mpp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mpp-table th,
.mpp-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f2f4f7;
    text-align: center;
}

.mpp-table thead th {
    background: #fcfcfd;
    font-weight: 600;
    color: #475467;
}

.mpp-table tbody tr:hover {
    background: #fafafa;
}

.mpp-th-check,
.mpp-td-check {
    width: 44px;
}

.mpp-foot-tip {
    margin-top: 14px;
}

body.mpp-export-progress--lock {
    overflow: hidden;
}

.mpp-export-progress {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mpp-export-progress[hidden] {
    display: none !important;
}

.mpp-export-progress__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.mpp-export-progress__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.mpp-export-progress__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.mpp-export-progress__sync {
    display: inline-flex;
    opacity: 0.95;
    animation: mpp-export-spin 1.1s linear infinite;
}

@keyframes mpp-export-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mpp-export-progress__body {
    padding: 18px 20px 16px;
}

.mpp-export-progress__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #344054;
}

.mpp-export-progress__badge {
    flex-shrink: 0;
    min-width: 44px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6f4ff;
    color: #0958d9;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mpp-export-progress__bar-outer {
    height: 22px;
    border-radius: 999px;
    background: #f2f4f7;
    overflow: hidden;
    margin-bottom: 14px;
}

.mpp-export-progress__bar-inner {
    height: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4096ff 0%, #1677ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.12s ease-out;
    box-sizing: border-box;
}

.mpp-export-progress__bar-inner span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    padding: 0 8px;
}

.mpp-export-progress__detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475467;
    line-height: 1.45;
    margin-bottom: 14px;
}

.mpp-export-progress__arrow {
    flex-shrink: 0;
    color: #1677ff;
    font-size: 12px;
    margin-top: 2px;
}

.mpp-export-progress__foot {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #667085;
    padding-top: 4px;
    border-top: 1px solid #f2f4f7;
}

.mpp-export-progress__foot strong {
    color: #101828;
    font-weight: 700;
}

@media (max-width: 900px) {
    .mpp-head {
        flex-direction: column;
    }

    .mpp-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.gb-sb-panel--during .gb-sb-item--during-link .gb-sb-item-title {
    font-size: 13px;
}

.order-book-embed-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.order-book-embed-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.order-book-embed-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2a1f18;
}

/* 秩序册下载中心：弹窗预览 */
body.pm-od-hub-preview--lock {
    overflow: hidden;
}

.pm-od-hub-preview {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.pm-od-hub-preview.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.pm-od-hub-preview__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(45, 32, 22, 0.48);
    cursor: pointer;
}

.pm-od-hub-preview__dlg {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1120px);
    height: min(90vh, 860px);
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(45, 32, 22, 0.22);
    border: 1px solid #e3d9ce;
    overflow: hidden;
}

.pm-od-hub-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #e3d9ce;
    background: #faf7f2;
}

.pm-od-hub-preview__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a1f18;
    line-height: 1.35;
    padding-right: 8px;
}

.pm-od-hub-preview__x {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #e3d9ce;
    color: #4a3f36;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.pm-od-hub-preview__x:hover {
    background: #d4c4b6;
}

.pm-od-hub-preview__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #faf6f1;
}

.pm-od-hub-preview__frame {
    flex: 1;
    width: 100%;
    min-height: 200px;
    border: 0;
    background: #fff;
}

.pm-od-hub-preview__hint {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}

.pm-od-hub-preview__hint-sub {
    display: block;
    margin-top: 6px;
}

.pm-od-hub-preview__hint-link {
    font-weight: 600;
    color: #8b633f;
    text-decoration: underline;
}

.pm-od-hub-preview__hint-link:hover {
    color: #1e40af;
}

.pm-od-hub-preview__foot {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid #e3d9ce;
    background: #fff;
}

@media (max-width: 900px) {
    .pm-od-hub-table {
        table-layout: auto;
        min-width: 36rem;
    }

    .pm-od-hub-th-fn,
    .pm-od-hub-td-fn {
        width: auto;
    }

    .pm-od-hub-th-name,
    .pm-od-hub-td-name {
        width: auto;
        max-width: 12rem;
    }

    .pm-od-hub-th-st,
    .pm-od-hub-td-st {
        width: auto;
        white-space: nowrap;
    }
}

/* 竞赛规程表单区（原下载中心嵌入，现多在独立页展示） */
/* 下载中心「秩序册框架」嵌入：目录卡片（位于竞赛规程表单上方） */
.pm-hub-framework-toc {
    margin-bottom: 16px;
    padding: 14px 16px 16px;
    border: 1px solid #c5d4e6;
    border-radius: 12px;
    background: linear-gradient(180deg, #f5f9ff 0%, #fff 42%);
    box-shadow: 0 1px 3px rgba(15, 37, 71, 0.06);
}

.pm-hub-framework-toc__h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.12em;
    color: #1d2939;
}

.pm-hub-framework-toc__note {
    margin: 0 0 10px !important;
    text-align: center;
    font-size: 12px;
}

.pm-hub-framework-toc__table-wrap {
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #d8e1ec;
    background: #fff;
}

.pm-hub-framework-toc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pm-hub-framework-toc__table th,
.pm-hub-framework-toc__table td {
    border: 1px solid #d8e1ec;
    padding: 8px 10px;
    vertical-align: middle;
}

.pm-hub-framework-toc__td-content {
    vertical-align: baseline;
}

.pm-hub-framework-toc__td-content--depth-0 .pm-hub-framework-toc__title {
    font-weight: 650;
    color: #101828;
}

.pm-hub-framework-toc__td-content--depth-1 .pm-hub-framework-toc__line {
    padding-left: 1.15em;
}

.pm-hub-framework-toc__td-content--depth-2 .pm-hub-framework-toc__line {
    padding-left: 2.35em;
}

.pm-hub-framework-toc__td-content--depth-3 .pm-hub-framework-toc__line {
    padding-left: 3.55em;
}

.pm-hub-framework-toc__line {
    display: flex;
    align-items: baseline;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pm-hub-framework-toc__title {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: left;
    line-height: 1.45;
}

.pm-hub-framework-toc__dots {
    flex: 1 1 auto;
    min-width: 14px;
    border-bottom: 1px dotted #98a2b3;
    margin: 0 8px 4px;
    height: 0;
}

.pm-hub-framework-toc__th-content {
    width: 72%;
}

.pm-hub-framework-toc__th-page {
    width: 28%;
    text-align: center;
}

.pm-hub-framework-toc__page {
    text-align: center;
    color: #475467;
    white-space: nowrap;
}

.pm-hub-framework-toc__table thead th {
    background: #eef4fc;
    font-weight: 700;
    text-align: center;
}

.pm-od-hub-reg-embed {
    margin-top: 20px;
    padding: 16px 18px 18px;
    border: 1px solid #e3d9ce;
    border-radius: 12px;
    background: #fafafa;
    scroll-margin-top: 88px;
}

.pm-reg-back-row {
    margin: 0 0 16px;
}

.pm-od-hub-reg-title {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 800;
    color: #2a1f18;
}

.pm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pm-section-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.pm-table th {
    background: #faf7f2;
    font-weight: 600;
}

/* 报名统计：男子/女子号码列允许换行，避免长列表撑破版面 */
.pm-table td.pm-bib-cell {
    max-width: min(36rem, 48vw);
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.pm-inline-actions {
    margin-bottom: 10px;
}

.pm-action-row {
    flex-wrap: wrap;
    gap: 10px;
}

.pm-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e0edff;
    color: #6b4423;
    font-size: 13px;
}

.pm-pill-blue {
    background: #e0edff;
    color: #6b4423;
}

.pm-input {
    width: 100%;
    max-width: 220px;
    padding: 6px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 6px;
    font-size: 14px;
}

.pm-bib-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #e6ddd4;
}

.pm-bib-tab {
    display: inline-block;
    padding: 12px 20px;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: #475467;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
}

.pm-bib-tab:hover {
    color: #6b4423;
    background: #faf7f2;
}

.pm-bib-tab.is-active {
    color: #6b4423;
    border-bottom-color: #6b4423;
    background: #fff;
}

.pm-bib-tab-lead {
    margin: -4px 0 16px;
    max-width: 52rem;
}

.pm-bib-tab-lead,
.pm-bib-range-mode-p,
.pm-bib-range-bullets,
.pm-bib-range-digits .pm-field .pm-bib-field-hint,
.pm-bib-radio-sub,
.pm-bib-unit-table-hint,
.pm-bib-mode-tip,
.pm-bib-autosave-hint {
    font-size: 14px;
    line-height: 1.55;
}

.pm-bib-oneclick-wrap {
    margin: 0 0 22px;
}

.pm-bib-oneclick-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #101828;
}

.pm-bib-oneclick-desc {
    margin: 0 0 14px;
    max-width: 48rem;
    line-height: 1.55;
}

.pm-bib-oneclick-btn {
    min-width: 8rem;
}

.pm-bib-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .pm-bib-method-grid {
        grid-template-columns: 1fr;
    }
}

.pm-bib-main-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
    gap: 16px;
    align-items: start;
}

.pm-bib-right-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pm-bib-method1-card .pm-bib-tab-lead {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .pm-bib-main-split {
        grid-template-columns: 1fr;
    }
}

.pm-bib-method-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.pm-bib-custom-merged {
    position: relative;
    padding: 14px;
    padding-bottom: 64px;
}

.pm-bib-custom-merged .pm-bib-method-head {
    margin-bottom: 12px;
}

.pm-bib-custom-merged .pm-bib-tab-lead {
    margin-bottom: 10px;
}

.pm-bib-custom-merged .pm-bib-range-hero {
    gap: 10px;
    margin-bottom: 2px;
}

.pm-bib-custom-merged .pm-bib-range-note,
.pm-bib-custom-merged .pm-bib-range-panel {
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.pm-bib-custom-merged .pm-bib-range-note {
    border-right: 1px solid #e6ddd4;
    padding-right: 10px;
}

.pm-bib-custom-merged .pm-bib-range-panel {
    padding-left: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pm-bib-custom-merged .pm-bib-range-panel .pm-bib-range-panel-body {
    flex: 1;
}

@media (max-width: 960px) {
    .pm-bib-custom-merged .pm-bib-range-note {
        border-right: 0;
        border-bottom: 1px solid #e6ddd4;
        padding-right: 0;
        padding-bottom: 8px;
    }

    .pm-bib-custom-merged .pm-bib-range-panel {
        padding-left: 0;
        padding-top: 6px;
    }
}

.pm-bib-method-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pm-bib-method-head h2 {
    margin: 0;
}

.pm-bib-method1-title {
    margin: 0;
    font-size: 1.15rem;
}

.pm-bib-method2-title {
    font-size: 1.15rem;
}

.pm-bib-generate-btn.btn.btn-primary.btn-sm {
    min-width: 168px;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 8px;
    justify-content: center;
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 2px 0 rgba(15, 118, 52, 0.55);
    font-size: 14px;
    font-weight: 700;
}

.pm-bib-generate-btn.btn.btn-primary.btn-sm:hover {
    background: #15803d;
    border-color: #166534;
}

.pm-bib-generate-btn.btn.btn-primary.btn-sm:active {
    background: #166534;
    border-color: #14532d;
    transform: translateY(1px);
}

.pm-bib-generate-btn.btn.btn-primary.btn-sm:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}

.pm-bib-generate-btn.btn.btn-primary.btn-sm::before {
    content: "⚡";
    margin-right: 8px;
    font-size: 14px;
    line-height: 1;
}

.pm-bib-method-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.pm-bib-clear-btn.btn.btn-danger.btn-sm {
    min-width: 168px;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 8px;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.pm-bib-clear-btn.btn.btn-danger.btn-sm:hover {
    background: #b42318;
    border-color: #912018;
}

.pm-bib-clear-btn.btn.btn-danger.btn-sm:active {
    background: #912018;
    border-color: #7a271a;
    transform: translateY(1px);
}

.pm-bib-clear-btn.btn.btn-danger.btn-sm:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.28);
}

.pm-bib-method1-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-bib-method-actions--left {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.pm-bib-custom-merged .pm-bib-method-actions--left {
    position: absolute;
    left: 14px;
    bottom: 72px;
    margin-top: 0;
}

.pm-bib-method-action {
    margin: 0;
}

.pm-bib-method-grid .pm-section {
    margin: 0;
}

.pm-bib-method1-line {
    white-space: nowrap;
}

.pm-bib-method-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.pm-bib-method-picker label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #344054;
}

/* 批量设置号码区间：左说明 + 右参数（对照图2双栏） */
.pm-bib-range-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 8px;
}

@media (max-width: 960px) {
    .pm-bib-range-hero {
        grid-template-columns: 1fr;
    }
}

.pm-bib-range-note {
    background: linear-gradient(165deg, #f0f7ff 0%, #eef4ff 100%);
    border: 1px solid #c7d7fe;
    box-shadow: none;
    border-radius: 10px;
    padding: 12px;
}

.pm-bib-range-note h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #1e3a5f;
}

.pm-bib-range-mode-block {
    margin: 14px 0;
}

.pm-bib-range-mode-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b4423;
}

.pm-bib-range-mode-p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #344054;
}

.pm-bib-range-bullets {
    margin: 12px 0 0;
    padding-left: 1.2rem;
    font-size: 14px;
    line-height: 1.55;
    color: #475467;
}

.pm-bib-range-panel {
    border: 1px solid #e6ddd4;
    box-shadow: none;
    border-radius: 10px;
    padding: 12px;
}

.pm-bib-range-panel-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #101828;
}

.pm-bib-range-panel-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pm-bib-range-reset-line {
    align-items: flex-start;
    padding: 10px 12px;
    margin: 0;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fedf89;
}

.pm-bib-range-reset-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-bib-range-reset-sub {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.pm-bib-range-digits .pm-field .pm-bib-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.pm-bib-range-digits--single .pm-field {
    flex: 1 1 280px;
    max-width: 100%;
}

.pm-bib-range-digits--single .pm-field input {
    width: 260px;
    max-width: 100%;
    min-height: 36px;
    box-sizing: border-box;
}

.pm-bib-range-continuous-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    padding: 0;
    border-radius: 8px;
    border: 0;
    background: transparent;
}

.pm-bib-range-panel-body .pm-field > input {
    width: 260px;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.pm-bib-range-panel-body .pm-field > input:focus {
    outline: none;
    border-color: #c49a6c;
    box-shadow: 0 0 0 2px rgba(177, 134, 89, 0.22);
}

@media (max-width: 720px) {
    .pm-bib-range-continuous-extra {
        grid-template-columns: 1fr;
    }
}

.pm-bib-unit-table-hint {
    margin: 0 0 12px;
}

table.pm-bib-hide-team-cols th.pm-bib-only-team,
table.pm-bib-hide-team-cols td.pm-bib-only-team {
    display: none;
}

.pm-bib-range-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.pm-bib-range-legend {
    font-weight: 600;
}

.pm-bib-radio-rich {
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6ddd4;
    background: #fafafa;
}

.pm-bib-radio-rich:has(input:checked) {
    border-color: #84adff;
    background: #f4f8ff;
}

.pm-bib-radio-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.pm-bib-radio-sub {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
}

.pm-bib-range-status {
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #faf7f2;
}

.pm-bib-top {
    margin-bottom: 16px;
}

.pm-bib-note h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.pm-bib-global-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.pm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.pm-fieldset {
    border: 1px solid #e6ddd4;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
}

.pm-radio-line,
.pm-check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
}

.pm-bib-mode-tip {
    margin-top: 8px;
}

.pm-table td.pm-bib-cell-bibline {
    vertical-align: middle;
    white-space: nowrap;
    max-width: 18rem;
}

/* 号码布规则表：固定列宽，避免生成后列位移 */
table.pm-bib-unit-rules-table {
    table-layout: fixed;
    width: 100%;
}

table.pm-bib-unit-rules-table th:nth-child(1),
table.pm-bib-unit-rules-table td:nth-child(1) {
    width: 5%;
}

table.pm-bib-unit-rules-table th:nth-child(2),
table.pm-bib-unit-rules-table td:nth-child(2) {
    width: 12%;
}

table.pm-bib-unit-rules-table th:nth-child(3),
table.pm-bib-unit-rules-table td:nth-child(3) {
    width: 9%;
}

table.pm-bib-unit-rules-table th:nth-child(4),
table.pm-bib-unit-rules-table td:nth-child(4) {
    width: 32%;
}

table.pm-bib-unit-rules-table th:nth-child(5),
table.pm-bib-unit-rules-table td:nth-child(5),
table.pm-bib-unit-rules-table th:nth-child(6),
table.pm-bib-unit-rules-table td:nth-child(6) {
    width: 21%;
}

table.pm-bib-unit-rules-table td.pm-bib-only-team .pm-input {
    width: 100%;
    max-width: 100%;
}

.pm-bib-bibline {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #2a1f18;
}

.pm-bib-actions-bar {
    margin: 16px 0 24px;
}

.pm-bib-generate-card {
    text-align: center;
}

.pm-bib-big-btn {
    margin-top: 12px;
    padding: 12px 28px;
    font-size: 16px;
}

.pm-flow-guide h2 {
    margin-top: 0;
}

.pm-flow-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #475467;
    line-height: 1.6;
}

.pm-flow-steps li {
    margin-bottom: 12px;
}

.pm-page-lead {
    margin: -8px 0 20px;
    color: #475467;
    line-height: 1.65;
    max-width: 920px;
}

.pm-arr-h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.pm-arr-checklist .pm-arr-check-ol {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.75;
    color: #344054;
}

.pm-arr-checklist .pm-arr-check-ol a {
    color: #1570ef;
    text-decoration: underline;
}

.pm-arr-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pm-arr-stat-card {
    background: #fcf9f4;
    border: 1px solid #ece4da;
    border-radius: 10px;
    padding: 14px 16px;
}

.pm-arr-stat-card span {
    display: block;
    font-size: 0.85rem;
    color: #667085;
    margin-bottom: 6px;
}

.pm-arr-stat-card strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #101828;
}

.pm-arr-stat-card--accent {
    background: linear-gradient(135deg, #eef3fa 0%, #dce8f7 100%);
    border-color: #93b8e8;
}

.pm-arr-stat-tip {
    margin: 12px 0 0;
}

.pm-arr-plan-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.pm-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pm-plan-table th,
.pm-plan-table td {
    border: 1px solid #ece4da;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.pm-plan-table th {
    background: #fcf9f4;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
}

.pm-plan-note {
    color: #475467;
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 280px;
}

.pm-plan-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pm-plan-type-track {
    background: #fff6ea;
    color: #6b4423;
}

.pm-plan-type-field {
    background: #fef6ee;
    color: #b93815;
}

.pm-plan-type-relay {
    background: #f4f3ff;
    color: #5925dc;
}

.pm-plan-table--matrix .pm-plan-view-btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* 分道编排预览：查看赛程弹窗 */
body.pm-plan-sched-modal-open {
    overflow: hidden;
}

.pm-plan-sched-modal[aria-hidden="true"] {
    display: none !important;
}

.pm-plan-sched-modal[aria-hidden="false"] {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.pm-plan-sched-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 32, 22, 0.45);
    cursor: pointer;
}

.pm-plan-sched-modal__box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1680px);
    max-width: 100%;
    height: min(96vh, 1200px);
    max-height: 96vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pm-plan-sched-modal__head {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #ece4da;
    background: #faf7f2;
}

.pm-plan-sched-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #101828;
}

.pm-plan-sched-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pm-plan-sched-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border: 0;
    background: #faf6f1;
}

/* 第四步：确认生成秩序册后的进度弹窗 */
body.pm-ob-modal-open {
    overflow: hidden;
}

.pm-ob-modal[aria-hidden="true"] {
    display: none !important;
}

.pm-ob-modal[aria-hidden="false"] {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 10060;
    align-items: center;
    justify-content: center;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.pm-ob-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 32, 22, 0.5);
    cursor: pointer;
}

.pm-ob-modal__box {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    max-width: 100%;
    max-height: min(90vh, 640px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.pm-ob-modal__head {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #ece4da;
    background: #faf7f2;
}

.pm-ob-modal__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-ob-modal__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.pm-ob-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2a1f18;
}

.pm-ob-modal__body {
    padding: 16px 18px 18px;
    overflow-y: auto;
}

.pm-ob-bar-block {
    margin-bottom: 14px;
}

.pm-ob-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: #475467;
    margin-bottom: 6px;
}

.pm-ob-bar-track {
    height: 14px;
    border-radius: 999px;
    background: #e3d9ce;
    overflow: hidden;
}

.pm-ob-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* 第四步进度弹窗：总体进度条拉长至 5 秒（与脚本中双帧触发配合） */
#pm-step4-ob-bar-overall {
    transition: width 5s ease;
}

.pm-ob-bar-fill--striped {
    background: repeating-linear-gradient(
        -45deg,
        #b18659,
        #b18659 8px,
        #c49a6c 8px,
        #c49a6c 16px
    );
}

.pm-ob-bar-fill--cyan {
    background: linear-gradient(90deg, #c8a277, #e8c9a8);
}

.pm-ob-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 12px;
    text-align: center;
}

.pm-ob-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: #667085;
}

.pm-ob-stat strong {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.pm-ob-stat--ok {
    color: #16a34a;
}

.pm-ob-stat--bad {
    color: #dc2626;
}

.pm-ob-stat--all {
    color: #b18659;
}

.pm-ob-log-title {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #344054;
}

.pm-ob-log {
    max-height: 220px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid #e3d9ce;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #3d342f;
    white-space: pre-wrap;
    word-break: break-word;
}

.pm-ob-modal__foot {
    margin-top: 16px;
    padding-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.pm-ob-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff !important;
    background: #16a34a !important;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.pm-ob-result-btn:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

/* 赛程页 iframe 嵌入：无侧栏，隐藏顶条 */
.pm-asc-embed-shell .gb-admin-strip-toggle {
    display: none;
}

.pm-asc-embed-shell .gb-admin-strip {
    display: none;
}

.pm-asc-embed-shell .gb-admin-content {
    padding-top: 8px;
}

.pm-plan-status-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pm-plan-status--progress {
    background: #fef0c7;
    color: #b54708;
    border: 1px solid #fec84b;
}

.pm-plan-status--wait {
    background: #f2f4f7;
    color: #475467;
    border: 1px solid #dfc4ae;
}

.pm-plan-status--empty {
    background: #fcf9f4;
    color: #98a2b3;
    border: 1px solid #ece4da;
}

.pm-plan-arr-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pm-plan-arr--ok {
    background: #eef3fa;
    color: #1747ad;
    border: 1px solid #93b8e8;
}

.pm-plan-arr--wait {
    background: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
}

.pm-arr-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.pm-arr-flow-step {
    border: 1px solid #ece4da;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.pm-arr-flow-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.pm-arr-flow-step p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #475467;
    line-height: 1.55;
}

.pm-arr-flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0ba5c8;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.pm-arr-details summary.pm-arr-summary {
    cursor: pointer;
    font-weight: 600;
    color: #101828;
    padding: 4px 0;
}

.pm-arr-details-body {
    padding-top: 12px;
    color: #475467;
    line-height: 1.65;
}

.pm-arr-guidelines-ol {
    margin: 0;
    padding-left: 1.35em;
}

.pm-arr-guidelines-ol > li {
    margin-bottom: 10px;
}

.pm-arr-guidelines-ol ul {
    margin: 8px 0 0;
    padding-left: 1.25em;
}

.pm-arr-schedule-form {
    margin-top: 16px;
}

.pm-arr-schedule-start-inner {
    margin-bottom: 20px;
    padding: 16px 18px;
}

.pm-arr-schedule-start-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-end;
    margin-top: 10px;
}

.pm-arr-schedule-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
}

.pm-arr-schedule-input {
    min-width: 160px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
}

.pm-arr-schedule-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.pm-arr-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pm-arr-schedule-table th,
.pm-arr-schedule-table td {
    border: 1px solid #e3d9ce;
    padding: 8px 10px;
    vertical-align: middle;
}

.pm-arr-schedule-table th {
    background: #fcf9f4;
    font-weight: 600;
    text-align: left;
}

.pm-arr-schedule-table .pm-arr-td-num {
    text-align: center;
}

.pm-arr-schedule-def {
    color: #475467;
    font-size: 12px;
    max-width: 220px;
}

.pm-arr-schedule-min-input {
    width: 5.5rem;
    padding: 6px 8px;
    border: 1px solid #dfc4ae;
    border-radius: 6px;
    font-size: 13px;
}

.pm-arr-flow .btn-sm {
    margin-right: 8px;
    margin-top: 4px;
}

.pm-arr-subtitle a {
    color: #1570ef;
    text-decoration: underline;
}

.pm-arr-wiz-card {
    border: 1px solid #dfc4ae;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pm-arr-wiz-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: linear-gradient(90deg, #fff6ea 0%, #fcf9f4 100%);
    border-bottom: 1px solid #ece4da;
}

.pm-arr-wiz-card-ic {
    font-size: 1.6rem;
    line-height: 1;
}

.pm-arr-wiz-card-ic--idx {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(180deg, #2e90fa 0%, #1570ef 100%);
    color: #fff;
    border: 1px solid #1570ef;
    box-shadow: 0 3px 8px rgba(21, 112, 239, 0.28);
}

.pm-arr-wiz-card-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #101828;
}

.pm-arr-wiz-card-sub {
    margin: 0;
    font-size: inherit;
    color: #475467;
    line-height: 1.5;
}

.pm-arr-wiz-card-body {
    padding: 18px;
}

.pm-arr-wiz-empty-note {
    margin: 0 0 12px;
    color: #667085;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pm-arr-wiz-info-ic {
    flex-shrink: 0;
}

.pm-arr-wiz-skip {
    margin: 0;
}

.pm-arr-wiz-skip a {
    color: #0ba5c8;
    font-weight: 600;
    text-decoration: underline;
}

.pm-arr-wiz-mini-table-wrap {
    margin-top: 12px;
}

.pm-arr-wiz-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.pm-arr-wiz-mini-table th,
.pm-arr-wiz-mini-table td {
    border: 1px solid #e3d9ce;
    padding: 8px 10px;
}

.pm-arr-wiz-mini-table th {
    background: #fcf9f4;
    text-align: left;
    font-weight: 600;
}

.pm-arr-coll-head {
    margin: 2px 0 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #1f78f2 0%, #1569de 100%);
    color: #fff;
}

.pm-arr-coll-head-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.pm-arr-coll-head-sub {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.92;
}

.pm-arr-coll-table-wrap {
    margin-top: 8px;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    overflow: auto;
    background: #fff;
}

.pm-arr-coll-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 14px;
}

.pm-arr-coll-table th,
.pm-arr-coll-table td {
    border: 1px solid #e7eefb;
    padding: 9px 10px;
}

.pm-arr-coll-table thead th {
    text-align: center;
    font-weight: 700;
    color: #1d2939;
    background: #f5f8ff;
}

.pm-arr-coll-table tbody td {
    background: #fff;
}

.pm-arr-coll-table tbody tr:hover td {
    background: #f2f3f5;
}

.pm-arr-coll-ev {
    font-weight: 600;
}

.pm-arr-coll-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

#pm-arr-step1-collective-clear {
    background: #1e63d9 !important;
    border-color: #1e63d9 !important;
    border-width: 1px !important;
    border-style: solid !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#pm-arr-step1-collective-clear:hover {
    background: #1959c4 !important;
    border-color: #1959c4 !important;
    color: #fff !important;
}

#pm-arr-step1-collective-clear:active {
    background: #1747ad !important;
    border-color: #1747ad !important;
    color: #fff !important;
}

#pm-arr-step1-collective-clear:focus,
#pm-arr-step1-collective-clear:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

#pm-arr-step1-collective-save {
    box-shadow: none !important;
    outline: none !important;
}

#pm-arr-step1-collective-save:hover {
    background: #1d5fdf !important;
    border-color: #1d5fdf !important;
    color: #fff !important;
}

#pm-arr-step1-collective-save:active {
    background: #174fbf !important;
    border-color: #174fbf !important;
    color: #fff !important;
}

#pm-arr-step1-collective-next {
    background: #1e63d9 !important;
    border-color: #1e63d9 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

#pm-arr-step1-collective-next:hover {
    background: #1959c4 !important;
    border-color: #1959c4 !important;
    color: #fff !important;
}

#pm-arr-step1-collective-next:active {
    background: #1747ad !important;
    border-color: #1747ad !important;
    color: #fff !important;
}

.pm-arr-coll-group-row + .pm-arr-coll-group-row {
    margin-top: 14px;
}

.pm-arr-coll-group-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 2px 6px;
    color: #1d2939;
}

.pm-arr-coll-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-arr-coll-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0b63d1;
    background: #eaf2ff;
    border: 1px solid #cfe0ff;
}

.pm-arr-coll-badge--muted {
    color: #475467;
    background: #f4f6fb;
    border-color: #e4e7ec;
}

.pm-arr-coll-table.pm-arr-coll-table--matrix {
    min-width: 820px;
    table-layout: fixed;
}

.pm-arr-coll-th-team {
    width: 38%;
    min-width: 180px;
}

.pm-arr-coll-team-cell {
    font-weight: 600;
    white-space: nowrap;
}

.pm-arr-coll-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 auto;
}

.pm-arr-coll-check {
    width: 14px;
    height: 14px;
}

.pm-arr-coll-table.pm-arr-coll-table--matrix td.pm-arr-td-center,
.pm-arr-coll-table.pm-arr-coll-table--matrix th {
    text-align: center;
    vertical-align: middle;
}

.pm-arr-coll-table.pm-arr-coll-table--matrix td.pm-arr-coll-team-cell {
    text-align: left;
}

.pm-arr-wiz-step-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ece4da;
}

.pm-arr-wiz-step-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #101828;
}

.pm-arr-step1-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 10px 0 18px;
}

.pm-arr-step1-hub-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border: 1px solid #d0ddff;
    border-radius: 12px;
    min-height: 74px;
    padding: 12px 12px;
    background: #f8faff;
    text-decoration: none;
    color: #1d2939;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pm-arr-step1-hub-card:hover {
    border-color: #84adff;
    box-shadow: 0 4px 12px rgba(21, 112, 239, 0.12);
    transform: translateY(-1px);
}

.pm-arr-step1-hub-card.is-active {
    border-color: #0b63d1;
    background: linear-gradient(180deg, #eaf2ff 0%, #dceafe 100%);
    box-shadow: 0 0 0 2px rgba(11, 99, 209, 0.25) inset, 0 6px 16px rgba(11, 99, 209, 0.18);
}

.pm-arr-step1-hub-title {
    font-size: 1rem;
    line-height: 1.2;
    color: #101828;
}

.pm-arr-step1-hub-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
    flex: 1 1 auto;
}

.pm-arr-step1-hub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pm-arr-step1-hub-status {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.pm-arr-step1-hub-status.is-done {
    background: #eef3fa;
    color: #1e4d8c;
    border: 1px solid #b3d4f7;
}

.pm-arr-step1-hub-status.is-todo {
    background: #f2f4f7;
    color: #475467;
    border: 1px solid #d0d5dd;
}

.pm-arr-step1-hub-desc {
    color: #475467;
    font-size: inherit;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-arr-step1-hub-ic {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e3eeff;
    font-size: 15px;
    border: 1px solid #c4d7ff;
}

.pm-arr-step1-hub-ic--idx {
    background: linear-gradient(180deg, #2e90fa 0%, #1570ef 100%);
    color: #fff;
    border: 1px solid #1570ef;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(21, 112, 239, 0.28);
    font-size: 16px;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

/* 第一步进入编排前的提醒页 */
.pm-arr-step1-intro__hero {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pm-arr-step1-intro__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e8f4ff 0%, #cfe8ff 100%);
    display: grid;
    place-items: center;
    font-size: 28px;
    border: 1px solid rgba(80, 140, 200, 0.25);
}

.pm-arr-step1-intro__title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    color: #2c3d4f;
}

.pm-arr-step1-intro__lead {
    margin: 0;
    color: #5a6b78;
    font-size: 15px;
}

.pm-arr-step1-intro__warn {
    border: 1px solid rgba(220, 90, 90, 0.45);
    background: linear-gradient(180deg, #fff5f5 0%, #ffecec 100%);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.pm-arr-step1-intro__warn-title {
    display: block;
    color: #b42318;
    font-size: 15px;
    margin-bottom: 10px;
}

.pm-arr-step1-intro__warn-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #7f1d1d;
    line-height: 1.65;
    font-size: 14px;
}

.pm-arr-step1-intro__warn-list li + li {
    margin-top: 8px;
}

.pm-arr-step1-intro__warn-tip {
    margin: 12px 0 0;
    font-size: 13px;
    color: #991b1b;
}

.pm-arr-step1-intro__tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 6px;
}

.pm-arr-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pm-arr-tag--ob {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(180, 120, 40, 0.35);
}

.pm-arr-tag--rs {
    background: #fce7f3;
    color: #9d174d;
    border: 1px solid rgba(190, 80, 120, 0.3);
}

.pm-arr-step1-intro__note {
    margin-bottom: 20px;
}

.pm-arr-step1-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pm-arr-step1-intro__cta span {
    margin-right: 6px;
}

.pm-arr-step1-intro__cta--locked {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.pm-arr-step1-intro__cta-lock-tip {
    flex: 1 1 220px;
    margin: 0;
    color: #5c4a3a;
}

.pm-arr-h3--sched {
    margin-top: 22px;
}

.pm-arr-wizard-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid #ece4da;
    background: #fcfcfd;
}

.pm-arr-wiz-next {
    font-weight: 600;
}

.pm-arr-sum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
}

.pm-arr-sum-item {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #fcf9f4;
    border: 1px solid #ece4da;
}

.pm-arr-sum-k {
    display: block;
    font-size: 0.78rem;
    color: #667085;
    margin-bottom: 4px;
}

.pm-arr-sum-v {
    font-size: 1.05rem;
    color: #101828;
}

.pm-arr-confirm-sum-grid .pm-arr-sum-item {
    background: #f8faff;
    border: 1px solid #d0ddff;
}

.pm-arr-confirm-sum-grid .pm-arr-sum-k {
    font-size: 0.9rem;
}

.pm-arr-confirm-sum-grid .pm-arr-sum-v {
    font-size: 1.6rem;
    color: #1570ef;
}

.pm-arr-confirm-sum-grid .pm-arr-sum-item:nth-child(2) .pm-arr-sum-v {
    color: #1e63d9;
}

.pm-arr-confirm-sum-grid .pm-arr-sum-item:nth-child(3) .pm-arr-sum-v {
    color: #f79009;
}

.pm-arr-confirm-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.pm-arr-workflow-steps--4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pm-arr-workflow-bar {
    border-left: 4px solid #0ba5c8;
}

.pm-arr-workflow-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.pm-arr-workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.pm-arr-wf-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fcf9f4;
    border: 1px solid #ece4da;
}

a.pm-arr-wf-item--step {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

a.pm-arr-wf-item--step:hover {
    border-color: #0ba5c8;
    background: #f0fdfa;
}

a.pm-arr-wf-item--step:focus-visible {
    outline: 2px solid #0ba5c8;
    outline-offset: 2px;
}

.pm-arr-wf-item--active {
    border-color: #0ba5c8;
    background: linear-gradient(180deg, #ecfeff 0%, #f0fdfa 100%);
    box-shadow: 0 1px 3px rgba(11, 165, 200, 0.12);
}

.pm-arr-wf-item strong {
    display: block;
    margin-bottom: 6px;
    color: #101828;
}

.pm-arr-wf-item p {
    margin: 0;
    font-size: 0.88rem;
    color: #475467;
    line-height: 1.5;
}

.pm-arr-wf-meta {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #0ba5c8;
    font-weight: 600;
}

.pm-arr-wf-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pm-arr-wf-badge--ok {
    background: #1e4d8c;
    color: #fff;
}

.pm-arr-wf-badge--muted {
    background: #e3d9ce;
    color: #344054;
}

.pm-arr-wf-badge--info {
    background: #1570ef;
    color: #fff;
}

.pm-arr-tab-ic {
    margin-right: 6px;
    opacity: 0.85;
    font-size: 0.85em;
}

.pm-arr-panel--step2 {
    padding-top: 8px;
}

.pm-arr-step2-landing {
    text-align: center;
    padding: 40px 20px 36px;
    max-width: 520px;
    margin: 0 auto;
}

.pm-arr-step2-landing--compact {
    padding: 20px 16px 8px;
}

.pm-arr-step2-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, #d4a574, #b18659);
    box-shadow: 0 10px 28px rgba(177, 134, 89, 0.28);
    position: relative;
}

.pm-arr-step2-icon::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    top: 13px;
    bottom: 13px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 32%, transparent 34%);
    background-size: 33.33% 33.33%;
    opacity: 0.98;
}

.pm-arr-step2-icon--small {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
}

.pm-arr-step2-icon--small::after {
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
}

.pm-arr-step2-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #101828;
}

.pm-arr-step2-lead {
    margin: 0 0 28px;
    color: #475467;
    font-size: 0.98rem;
    line-height: 1.55;
}

.pm-arr-step2-landing--compact .pm-arr-step2-lead {
    margin-bottom: 16px;
}

.pm-arr-step2-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 360px;
    margin: 0 auto;
}

.pm-arr-step2-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pm-arr-step2-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.14);
    color: #fff;
}

.pm-arr-step2-cta--track {
    background: linear-gradient(180deg, #c8a277 0%, #1570ef 100%);
}

.pm-arr-step2-cta--field {
    background: linear-gradient(180deg, #17b26a 0%, #1959c4 100%);
}

.pm-arr-step2-cta-ic {
    font-size: 1.25rem;
    line-height: 1;
}

.pm-arr-step2-back {
    margin: 0 0 8px;
}

.pm-arr-faq-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    margin-right: 6px;
    border-radius: 50%;
    background: #1570ef;
    color: #fff;
    font-size: 0.85em;
    font-weight: 800;
}

.pm-arr-sched-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece4da;
}

.pm-arr-sched-page-title {
    margin: 0;
    font-size: 1.25rem;
    color: #101828;
}

/* 径赛第二步：日程时间设置与比赛单元、双栏编排同属一块卡片 */
.pm-arr-sched-time-panel {
    margin-top: 4px;
}

/* 第二步向导里内层日程卡片，避免与外层 card 叠加出过大的上下留白 */
.pm-arr-panel--wiz > .pm-arr-sched-time-panel.card {
    padding: 10px 14px 16px;
}

.pm-arr-sched-time-panel__head {
    padding: 8px 4px 8px;
    border-bottom: 1px solid #ece4da;
}

.pm-arr-sched-time-panel__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pm-arr-sched-time-panel__body {
    padding: 0 4px 12px;
}

/* 比赛单元 + 右侧编排说明（同一行） */
.pm-arr-sched-unit-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 0 8px;
    padding: 4px 0 8px;
    border-bottom: 1px solid #f2f4f7;
}

.pm-arr-sched-unit-strip--field-sync .pm-arr-step2-info--beside-unit {
    flex: 1 1 100%;
    min-width: 0;
}

.pm-arr-sched-unit-row--embedded.pm-arr-sched-unit-row--in-strip {
    margin: 0;
    padding: 0;
    border-bottom: 0;
    flex: 0 0 auto;
}

.pm-arr-step2-info--beside-unit {
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
    max-width: 100%;
    padding: 8px 10px;
}

.pm-arr-step2-info--full {
    margin: 10px 0 12px;
    width: 100%;
}

.pm-arr-sched-unit-row--embedded {
    margin: 12px 0 14px;
    padding: 12px 0 14px;
    border-bottom: 1px solid #f2f4f7;
}

.pm-arr-sched-time-panel__body > .pm-arr-sched-dual.pm-arr-track-board-dual {
    margin-bottom: 0;
}

.pm-arr-sched-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pm-arr-sched-unit-row {
    padding: 12px 16px;
    margin-bottom: 14px;
}

.pm-arr-sched-unit-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pm-arr-sched-unit-label span {
    font-weight: 600;
    color: #344054;
}

.pm-arr-sched-unit-select {
    min-width: 260px;
    padding: 8px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font: inherit;
}

.pm-arr-sched-unit-tip {
    margin: 10px 0 0;
}

.pm-arr-sched-relay-tip {
    margin-bottom: 14px;
}

.pm-arr-sched-lead {
    margin: 0 0 14px;
    color: #475467;
    font-size: 0.95rem;
    line-height: 1.55;
}

.pm-arr-hidden-chain {
    display: none;
}

.pm-arr-sched-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
}

/* 径赛手动编排：左栏已排加宽、右栏待选收窄（对齐参考布局） */
.pm-arr-sched-dual.pm-arr-track-board-dual {
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 1.1fr);
    gap: 14px;
}

@media (max-width: 1024px) {
    .pm-arr-sched-dual {
        grid-template-columns: 1fr;
    }
}

.pm-arr-sched-col {
    padding: 14px 16px 16px;
    min-width: 0;
}

.pm-arr-sched-col-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pm-arr-sched-col-title {
    margin: 0;
    font-size: 1.05rem;
    color: #101828;
}

.pm-arr-sched-warm {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.pm-track-placed-head-row {
    align-items: center;
}

.pm-track-placed-head-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pm-track-placed-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pm-track-placed-help {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #98a2b3;
    background: #faf7f2;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    line-height: 1;
    padding: 0;
}

.pm-track-placed-help:hover {
    background: #fff6ea;
    border-color: #1570ef;
    color: #1570ef;
}

.pm-track-placed-show-all {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    white-space: nowrap;
}

.pm-track-placed-show-all-lab {
    font-weight: 600;
}

.pm-track-placed-show-all-sub {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.88;
}

.pm-track-placed-detail--stripe {
    background: #faf7f2;
}

.pm-track-time--board {
    border-color: #1570ef;
    box-shadow: 0 0 0 1px rgba(21, 112, 239, 0.15);
}

.pm-track-dur-td {
    vertical-align: middle;
}

.pm-track-dur-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pm-track-combo-cell--compact {
    white-space: nowrap;
    vertical-align: middle;
}

.pm-track-time-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    max-width: 100%;
}

/* 日程已排表：比赛时刻只读展示（非时间选择器） */
.pm-track-time-display {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    color: #344054;
}

.pm-track-unit-time-prefix {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
    line-height: 1.2;
}

.pm-track-dur-cell--inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pm-track-dur-read {
    font-weight: 600;
    font-size: 0.85rem;
    color: #344054;
    white-space: nowrap;
}

.pm-track-dur-cell--inline .pm-track-dur-read {
    font-size: 0.78rem;
    line-height: 1.2;
}

.pm-track-dur-inp--board {
    max-width: 4.25rem;
    text-align: center;
}

.pm-track-dur-cell--inline .pm-track-dur-inp--board {
    max-width: 3.1rem;
}

.pm-arr-step2-dual-table-wrap {
    overflow-x: auto;
}

.pm-arr-step2-dual-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

.pm-arr-step2-dual-table th,
.pm-arr-step2-dual-table td {
    border: 1px solid #d8e2ec;
    padding: 7px 9px;
    vertical-align: middle;
    line-height: 1.35;
}

.pm-arr-step2-dual-table th {
    background: #f2f7fd;
    font-weight: 700;
    color: #334155;
    text-align: left;
    font-size: 0.86rem;
    border-bottom: 2px solid #b8cbe0;
}

/* 固定表头样式由下方主规则统一控制 */

.pm-arr-step2-th-num {
    width: 34px;
    text-align: center !important;
}

/* 保障右侧两列（预计/分组数）不会被挤没 */
.pm-arr-track-board-table th:nth-child(5),
.pm-arr-track-board-table td:nth-child(5) {
    min-width: 64px;
    white-space: nowrap;
}

.pm-arr-track-board-table th:nth-child(6),
.pm-arr-track-board-table td:nth-child(6) {
    min-width: 56px;
    white-space: nowrap;
}

/* 比赛时间、组别留出足够可读宽度；“项目名称”上限略收紧以平衡版面 */
.pm-arr-track-board-table th:nth-child(2),
.pm-arr-track-board-table td:nth-child(2) {
    width: 196px;
}

.pm-arr-track-board-table th:nth-child(3),
.pm-arr-track-board-table td:nth-child(3) {
    width: 100px;
}

.pm-arr-track-board-table th:nth-child(4),
.pm-arr-track-board-table td:nth-child(4) {
    min-width: 0;
    width: auto;
    max-width: none;
}

.pm-arr-track-board-table tbody td.pm-track-ev-cell--layout {
    padding-right: 0.14rem;
}

.pm-arr-track-board-table tbody td:nth-child(5) {
    padding-left: 0.28rem;
}

.pm-arr-track-board-table td.pm-track-grp-cell {
    font-weight: 700;
    color: #1e293b;
    max-width: none;
}

/*
 * 项目名称：三列网格。首列 1fr 吃满左侧至徽章前，整块铺满单元格，消除右侧留白；
 * 第 2、3 列为固定宽度，保证各行男/女、预赛/决赛上下对齐。
 */
.pm-arr-track-board-table td.pm-track-ev-cell.pm-track-ev-cell--layout {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    /* 固定三轨宽度：项目名 | 性别 | 轮次，确保各行严格竖向对齐 */
    grid-template-columns: 5.2rem 1fr 3.2rem;
    column-gap: 4px;
    align-items: center;
    justify-items: stretch;
    vertical-align: middle;
}

.pm-arr-track-board-table td.pm-track-ev-cell--layout > .pm-arr-step2-ev {
    display: block;
    min-width: 0;
    margin-right: 0;
    justify-self: start;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.pm-arr-track-board-table td.pm-track-ev-cell--layout > .pm-arr-sex-chip,
.pm-arr-track-board-table td.pm-track-ev-cell--layout > .pm-arr-sex-chip-slot {
    justify-self: center;
    margin: 0 !important;
}

.pm-arr-track-board-table td.pm-track-ev-cell--layout > .pm-arr-round {
    justify-self: end;
    text-align: right;
    margin-left: 0 !important;
    white-space: nowrap;
}

.pm-arr-sex-chip-slot {
    display: block;
}

/* 无 --layout 时的旧版一行展示（占位） */
.pm-arr-track-board-table td.pm-track-ev-cell:not(.pm-track-ev-cell--layout) .pm-arr-step2-ev {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.pm-arr-step2-empty {
    text-align: center;
    color: #667085;
    padding: 16px 8px !important;
}

.pm-arr-step2-date,
.pm-arr-step2-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pm-arr-step2-time {
    color: #475467;
    font-weight: 600;
    font-size: 0.86rem;
}

.pm-arr-step2-ev {
    margin-right: 4px;
    font-weight: 600;
    color: #111827;
    font-size: 0.96rem;
}

.pm-arr-round {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pm-arr-round--pre {
    background: #fff6ea;
    color: #6b4423;
}

.pm-arr-round--fin {
    background: #eef3fa;
    color: #1e4d8c;
}

.pm-arr-sex-chip {
    display: inline-block;
    margin: 0 4px 0 0;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pm-arr-track-board-table .pm-track-time--dense.pm-track-time--board {
    border-radius: 6px;
    border-color: #5aa3e8;
    box-shadow: none;
    font-size: 0.8rem;
    height: 28px;
    min-height: 28px;
    padding: 2px 7px;
    max-width: 5rem;
}

.pm-arr-track-board-table .pm-track-dur-inp--dense.pm-track-dur-inp--board {
    height: 28px;
    min-height: 28px;
    font-size: 0.8rem;
    padding: 2px 5px;
}

.pm-arr-track-board-table input[type='checkbox'] {
    width: 12px;
    height: 12px;
}

.pm-arr-sex-chip--m {
    background: #d1e9ff;
    color: #6b4423;
}

.pm-arr-sex-chip--f {
    background: #fce7f3;
    color: #c11574;
}

.pm-arr-sched-pending-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pm-arr-step2-top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.pm-arr-step2-top-actions .btn {
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.pm-arr-step2-toggle {
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.pm-arr-step2-info {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid #b9e6dc;
    background: linear-gradient(180deg, #eafaf6 0%, #e4f7f3 100%);
    color: #0f5132;
    border-radius: 8px;
}

.pm-arr-step2-info p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.pm-arr-step2-info p + p {
    margin-top: 4px;
}

.pm-arr-sched-pending-toolbar {
    margin-bottom: 12px;
}

.pm-arr-pending-filter-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #344054;
}

.pm-arr-pending-filter-select {
    min-width: 160px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #dfc4ae;
}

.pm-arr-step2-hintbar {
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid #b9e6dc;
    border-radius: 8px;
    background: linear-gradient(180deg, #ecfdf8 0%, #e6faf3 100%);
    color: #0f5132;
    font-size: 0.8rem;
    line-height: 1.45;
}

.pm-arr-track-board-mode .pm-arr-track-mode-btn.btn-primary {
    background: linear-gradient(180deg, #12b981 0%, #0e9f6e 100%);
    border-color: #0e9f6e;
}

.pm-arr-track-board-mode .pm-arr-track-mode-btn.btn-secondary {
    border-color: #b3d4f7;
    color: #1e4d8c;
    background: #eef3fa;
}

.pm-arr-track-board-toolbar {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    padding: 8px 10px;
}

.pm-arr-sched-col {
    border: 1px solid #dbe5ee;
    border-radius: 10px;
    background: #fff;
}

.pm-arr-sched-col-head {
    padding: 10px 12px;
    border-bottom: 1px solid #e5edf4;
    background: #f8fbff;
}

.pm-arr-track-board-table thead th {
    background: #eef6ff;
    color: #334155;
    font-weight: 700;
}

.pm-arr-track-merge-card {
    border: 1px solid #bde6d8;
    background: linear-gradient(180deg, #f7fdfa 0%, #f0fbf6 100%);
}

.pm-arr-badge-merge-count {
    background: #0ea5a2;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.pm-arr-badge-merge-time {
    background: #eef3fa;
    color: #1e4d8c;
    border: 1px solid #c5d5e8;
}

.pm-arr-pending-quick {
    margin: 8px 0 0;
}

.pm-arr-pending-empty {
    text-align: center;
    padding: 28px 12px 20px;
    color: #475467;
}

.pm-arr-pending-empty-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eef3fa;
    color: #1e4d8c;
    font-size: 1.6rem;
    font-weight: 700;
}

.pm-arr-pending-empty-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e4d8c;
}

.pm-arr-sched-guide {
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid #ece4da;
    border-radius: 10px;
    background: #fcfcfd;
}

.pm-arr-sched-guide summary {
    cursor: pointer;
    font-weight: 600;
    color: #6b4423;
}

.pm-arr-sched-guide-body {
    padding-top: 10px;
    font-size: 0.9rem;
    color: #475467;
    line-height: 1.6;
}

.pm-arr-sched-guide-body ol {
    margin: 0;
    padding-left: 1.2em;
}

.pm-arr-wf-foot {
    margin: 14px 0 0;
}

.pm-arr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 18px 0 16px;
    padding: 4px;
    background: #eef2f6;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.pm-arr-tab {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475467;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pm-arr-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #101828;
}

.pm-arr-tab--active {
    background: #fff;
    color: #0ba5c8;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.pm-arr-panel {
    margin-bottom: 20px;
}

.pm-arr-panel-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.pm-arr-h3 {
    margin: 20px 0 10px;
    font-size: 1.02rem;
}

.pm-arr-filter-card {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ece4da;
}

.pm-arr-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-end;
    margin-top: 8px;
}

.pm-arr-filter-grid label span {
    display: block;
    font-size: 0.85rem;
    color: #667085;
    margin-bottom: 4px;
}

.pm-arr-filter-grid select {
    min-width: 160px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    background: #fff;
}

.pm-arr-filter-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-arr-filter-clear {
    font-size: 0.9rem;
    color: #1570ef;
    text-decoration: underline;
}

.pm-arr-hero {
    text-align: center;
    padding: 32px 20px 28px;
    margin: 8px 0 24px;
    border-radius: 16px;
    background: linear-gradient(165deg, #f0f9ff 0%, #ecfeff 40%, #faf7f2 100%);
    border: 1px solid #ecd4b8;
}

.pm-arr-hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: linear-gradient(145deg, #dcc9a8, #0ba5c8);
    box-shadow: 0 8px 20px rgba(11, 165, 200, 0.25);
    position: relative;
}

.pm-arr-hero-icon::before,
.pm-arr-hero-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 3px;
}

.pm-arr-hero-icon::before {
    width: 28px;
    height: 8px;
    top: 16px;
}

.pm-arr-hero-icon::after {
    width: 22px;
    height: 8px;
    top: 28px;
    opacity: 0.85;
}

.pm-arr-hero-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #4a301f;
}

.pm-arr-hero-text {
    margin: 0 auto 20px;
    max-width: 520px;
    color: #475467;
    line-height: 1.65;
    font-size: 0.95rem;
}

.pm-arr-start-btn {
    min-width: 220px;
    padding: 12px 28px;
    font-size: 1rem;
}

.pm-arr-start-form {
    margin: 0;
}

.pm-arr-hero-foot {
    margin: 16px auto 0;
    max-width: 560px;
    font-size: 0.85rem;
    color: #667085;
    line-height: 1.55;
}

.pm-arr-hero-warn {
    max-width: 480px;
    margin: 0 auto 16px;
    text-align: left;
}

.pm-arr-track-settings {
    margin-bottom: 20px;
}

.pm-arr-track-settings-scroll {
    overflow-x: auto;
    margin-top: 12px;
}

.pm-arr-track-settings-table {
    min-width: 980px;
    width: 100%;
    table-layout: fixed;
}

.pm-arr-track-settings-table col.pm-arr-track-col-seq {
    width: 3.25rem;
}

.pm-arr-track-settings-table col.pm-arr-track-col-name {
    width: 26%;
}

.pm-arr-track-settings-table col.pm-arr-track-col-count {
    width: 7.5rem;
}

.pm-arr-track-settings-table col.pm-arr-track-col-toggle {
    width: 5.5rem;
}

.pm-arr-track-settings-table col.pm-arr-track-col-sched {
    width: 9.5rem;
}

.pm-arr-track-settings-table col.pm-arr-track-col-num {
    width: 5.5rem;
}

.pm-arr-track-settings-table th,
.pm-arr-track-settings-table td {
    vertical-align: middle;
    word-break: break-word;
}

.pm-arr-track-settings-table tbody tr:hover td {
    background: #f0f7ff;
}

.pm-arr-track-settings-table .pm-arr-track-seq {
    width: 3rem;
    text-align: center;
    color: #475467;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.pm-arr-track-settings-table .pm-arr-track-name {
    font-weight: 700;
}

.pm-arr-track-settings-table .pm-arr-track-num {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pm-arr-track-settings-table .pm-arr-track-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pm-arr-track-settings-table input.pm-arr-track-num[readonly] {
    background-color: #f2f4f7;
    color: #667085;
    cursor: default;
}

.pm-arr-track-board-lead {
    margin-bottom: 12px;
}

.pm-arr-track-board-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 20px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.pm-arr-track-board-toolbar--embedded {
    margin: 0 0 12px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #ece4da;
    background: #fcf9f4;
    border-radius: 0;
}

.pm-arr-track-pending-head {
    margin-bottom: 0;
}

.pm-arr-track-board-mode {
    display: inline-flex;
    gap: 8px;
}

.pm-arr-track-board-dual {
    align-items: flex-start;
}

.pm-arr-track-board-scroll {
    max-height: 520px;
    overflow: auto;
    position: relative;
}

.pm-arr-track-board-table {
    font-size: 0.8125rem;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
}

.pm-arr-track-board-table thead th {
    position: static;
    background: #f2f7fd;
    box-shadow: inset 0 -1px 0 #b8cbe0;
    padding: 0.28rem 0.35rem;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
}

.pm-arr-track-board-table td {
    padding: 0.18rem 0.35rem;
    vertical-align: middle;
    line-height: 1.35;
    position: relative;
    z-index: 1;
    text-align: center;
}

.pm-arr-track-board-table tbody td {
    padding: 0.3rem 0.42rem;
    border-bottom: 1px solid #edf1f7;
}

.pm-arr-track-board-table tbody tr.pm-track-placed-detail:hover td {
    background: #f0f5fa;
}

.pm-arr-track-board-table tbody tr.pm-track-placed-detail--stripe:hover td {
    background: #e9eef6;
}

.pm-arr-track-board-table .pm-track-th-time {
    width: min(15.75rem, 38vw);
    min-width: 11.875rem;
}

.pm-arr-track-board-table .pm-track-time--dense.pm-track-time--board {
    padding: 1px 4px;
    font-size: 0.75rem;
    line-height: 1.2;
    min-height: 0;
    max-width: 5.5rem;
}

.pm-arr-track-board-table .pm-track-th-grp {
    width: 6.75rem;
}

.pm-track-combo-cell {
    vertical-align: middle;
}

.pm-track-combo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pm-track-combo--timeonly {
    gap: 2px;
}

.pm-track-combo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pm-track-date-zh {
    font-size: 0.8rem;
    color: #475467;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pm-track-date--dense,
.pm-track-time--dense {
    padding: 2px 6px;
    font-size: 0.78rem;
    min-height: 0;
    max-width: 9rem;
}

.pm-track-time--dense {
    border-radius: 6px;
}

.pm-track-ellipsis {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-track-ev-cell {
    min-width: 0;
}

.pm-track-ev-cell .pm-arr-sex-chip {
    margin-left: 4px;
}

.pm-track-dur,
.pm-track-heats {
    font-variant-numeric: tabular-nums;
}

.pm-track-placed-ghead td {
    background: #faf7f2;
    border-top: 1px solid #e3d9ce;
}

.pm-track-ghead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pm-track-ghead-ev {
    font-weight: 700;
    color: #101828;
}


.pm-arr-track-merge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.pm-arr-track-merge-more-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.pm-arr-track-merge-card {
    border: 1px solid #9fdcca;
    border-radius: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #eefaf6 0%, #e5f5ef 100%);
}

.pm-arr-track-merge-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pm-arr-track-merge-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.pm-arr-track-merge-card-actions .pm-arr-track-quick-add {
    border-color: #0f9f72;
    background: #11a979;
    color: #fff;
    font-weight: 700;
}

.pm-arr-track-merge-card-actions .pm-arr-track-pick-only {
    border-color: #9ecabf;
    background: #eef3fa;
    color: #1e4d8c;
    font-weight: 700;
}

.pm-arr-track-merge-card-title {
    flex: 1 1 160px;
    min-width: 0;
}

.pm-arr-track-merge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.pm-arr-badge-soft {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    background: #f2f4f7;
    color: #475467;
}

.pm-arr-track-merge-sub {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #667085;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

@media (max-width: 680px) {
    .pm-arr-track-merge-card-actions {
        flex-direction: row;
    }

    .pm-arr-track-merge-meta {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.pm-arr-track-merge-grades {
    flex: 1 1 200px;
    min-width: 0;
    color: #065f46;
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
}

.pm-arr-track-merge-grades strong {
    color: #047857;
    font-weight: 700;
}

.pm-arr-track-merge-genders {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pm-arr-track-merge-tip {
    margin-bottom: 10px;
}

.pm-arr-track-bulk-add {
    margin-bottom: 8px;
}

.pm-single-mode-lead {
    margin-bottom: 8px;
}

.pm-single-pool-hint {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.82rem;
}

.pm-single-pool-scroll {
    max-height: 440px;
    overflow: auto;
}

.pm-single-pool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 8px;
}

.pm-single-pool-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: start;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    padding: 10px 12px 10px 10px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-single-pool-card:has(.pm-track-pool-cb:checked) {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}

/* 径赛待选：多组项目仅部分枪次已排时弱化显示 */
.pm-single-pool-card--partial {
    opacity: 0.55;
    background: #f8f5f1;
}

.pm-single-pool-card-hit {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    cursor: pointer;
    margin: 0;
    grid-column: 1;
    min-width: 0;
}

.pm-single-pool-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
}

.pm-single-pool-card-hit .pm-track-pool-cb {
    margin-top: 6px;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.pm-single-pool-card-center {
    flex: 1 1 200px;
    min-width: 0;
}

.pm-single-pool-card-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    line-height: 1.35;
}

.pm-single-pool-ev {
    font-size: 1rem;
    color: #101828;
}

.pm-single-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pm-single-tag--grade {
    background: #f2f4f7;
    color: #475467;
}

.pm-single-tag--gender-m {
    background: #fdebd4;
    color: #8b633f;
}

.pm-single-tag--gender-f {
    background: #fce7f3;
    color: #be185d;
}

.pm-single-pool-card-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #667085;
    line-height: 1.4;
    word-break: break-word;
}

.pm-single-pool-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    min-width: 7.5rem;
    text-align: right;
}

.pm-single-pool-dur {
    font-size: 0.82rem;
    color: #475467;
    font-variant-numeric: tabular-nums;
}

.pm-single-pool-heats-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    background: #eef3fa;
    color: #047857;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pm-single-pool-expand {
    grid-column: 2;
    grid-row: 1;
    border: none;
    background: #f2f4f7;
    color: #475467;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.pm-single-pool-expand:hover {
    background: #e3d9ce;
}

.pm-single-pool-detail {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e3d9ce;
}

.pm-single-pool-detail .tip {
    margin: 0;
    font-size: 0.8rem;
}

.pm-track-batch-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.pm-track-batch-modal[hidden] {
    display: none !important;
}

.pm-track-batch-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 32, 22, 0.45);
}

.pm-track-batch-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(45, 32, 22, 0.2);
}

.pm-track-batch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #b18659 0%, #8b633f 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.pm-track-batch-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.pm-track-batch-x {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.pm-track-batch-x:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pm-track-batch-body {
    padding: 14px 16px;
    overflow: auto;
    flex: 1 1 auto;
}

.pm-track-batch-section-k {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #101828;
}

.pm-track-batch-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.pm-track-batch-sort-lab {
    font-weight: 600;
    color: #475467;
}

.pm-track-batch-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #344054;
}

.pm-track-batch-list-wrap {
    max-height: 280px;
    overflow: auto;
    margin-bottom: 12px;
}

.pm-track-batch-table {
    font-size: 0.88rem;
}

.pm-track-batch-table th,
.pm-track-batch-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.pm-track-batch-heat-seq {
    white-space: nowrap;
    min-width: 3.5rem;
    font-weight: 600;
    color: #344054;
}

.pm-track-batch-group {
    min-width: 9.5rem;
    max-width: 14rem;
}

.pm-track-batch-group-main {
    font-weight: 600;
    color: #101828;
    line-height: 1.35;
}

.pm-track-batch-group-sub {
    margin-top: 2px;
    font-size: 0.78rem;
    color: #667085;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.pm-track-batch-row2,
.pm-track-batch-row3 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.pm-track-batch-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pm-track-batch-field > span:first-child {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475467;
}

.pm-track-batch-field .input {
    max-width: 220px;
}

.pm-track-batch-field--session-readonly {
    flex: 1 1 280px;
    min-width: 200px;
}

.pm-track-batch-session-text {
    margin: 0;
    padding: 8px 10px;
    background: #fcf9f4;
    border: 1px solid #e3d9ce;
    border-radius: 6px;
    max-width: 480px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #101828;
}

.pm-track-batch-hint {
    display: block;
    font-size: 0.75rem;
    color: #667085;
}

.pm-track-batch-summary {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff6ea;
    border: 1px solid #ecd4b8;
    font-size: 0.88rem;
    color: #4a301f;
    line-height: 1.5;
}

.pm-track-batch-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #e3d9ce;
    background: #fcf9f4;
    border-radius: 0 0 8px 8px;
}

.pm-track-dur-inp--dense {
    width: 4.2rem;
    padding: 4px 6px;
    text-align: center;
}

.pm-arr-field-settings {
    margin-top: 16px;
}

.pm-arr-field-head {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 8px 8px 0 0;
    padding: 12px 16px;
    margin: 0;
}

.pm-arr-field-head-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #92400e;
}

.pm-arr-field-head-count {
    margin-left: 10px;
    font-weight: 600;
    color: #b45309;
}

.pm-arr-field-tip {
    margin: 10px 0 0;
}

.pm-arr-field-settings-scroll {
    overflow-x: auto;
    border: 1px solid #fcd34d;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.pm-arr-field-settings-table {
    min-width: 880px;
    width: 100%;
    table-layout: fixed;
}

.pm-arr-field-settings-table col.pm-arr-field-col-seq {
    width: 3rem;
}

.pm-arr-field-settings-table col.pm-arr-field-col-grade {
    width: 7rem;
}

.pm-arr-field-settings-table col.pm-arr-field-col-name {
    width: 22%;
}

.pm-arr-field-settings-table col.pm-arr-field-col-cat {
    width: 5rem;
}

.pm-arr-field-settings-table col.pm-arr-field-col-count {
    width: 8.5rem;
}

.pm-arr-field-settings-table col.pm-arr-field-col-toggle {
    width: 8rem;
}

.pm-arr-field-settings-table col.pm-arr-field-col-num {
    width: 6.5rem;
}

.pm-arr-field-settings-table .pm-arr-field-seq {
    text-align: center;
    color: #475467;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.pm-arr-field-settings-table .pm-arr-field-name {
    font-weight: 700;
}

.pm-arr-field-settings-table tbody tr:hover td {
    background: #f0f7ff;
}

.pm-arr-field-th-sub {
    font-weight: 400;
    font-size: 0.78rem;
    color: #667085;
}

.pm-arr-field-grade {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.88rem;
}

.pm-arr-field-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.pm-arr-field-cat--m {
    background: #fdebd4;
    color: #8b633f;
}

.pm-arr-field-cat--f {
    background: #fce7f3;
    color: #be185d;
}

.pm-arr-field-cat--x {
    background: #f2f4f7;
    color: #475467;
}

.pm-arr-field-num {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pm-arr-field-settings-actions {
    margin: 14px 0 0;
    display: flex;
    justify-content: flex-end;
}

.pm-arr-field-preview {
    margin-top: 16px;
}

.pm-arr-track-settings-actions {
    margin: 14px 0 0;
    display: flex;
    justify-content: flex-end;
}

.pm-arr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #344054;
}

.pm-arr-body-text {
    color: #475467;
    line-height: 1.7;
    margin: 0 0 16px;
}

.pm-arr-dual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.pm-arr-dual-actions--right {
    width: 100%;
    justify-content: flex-end;
}

/* 第三步秩序册确认区：主按钮水平居中 */
.pm-arr-dual-actions--step3-ob {
    justify-content: center;
    width: 100%;
}

.pm-arr-dual-actions--step3-ob .pm-arr-step4-save-form {
    margin-left: 0;
    margin-right: 0;
}

/* 与「下一步：下载秩序册」同为 btn-primary；禁用态保持同色、无黑框 */
.pm-arr-step4-done-btn.btn-primary {
    cursor: default;
}

.gb-admin-app .pm-arr-step4-done-btn.btn-primary:disabled,
.gb-admin-app .pm-arr-step4-done-btn.btn-primary[disabled] {
    opacity: 1;
    color: #fff;
    cursor: default;
    outline: none;
    box-shadow: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.pm-arr-step-list {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: #344054;
    line-height: 1.7;
}

.pm-arr-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pm-arr-badge--ok {
    background: #eef3fa;
    color: #1e4d8c;
}

.pm-arr-badge--wait {
    background: #fffaeb;
    color: #b93815;
}

.pm-plan-pending {
    color: #b93815;
    font-weight: 600;
    white-space: nowrap;
}

.pm-arr-checklist--nested {
    margin-top: 24px;
    background: #fcf9f4;
}

.pm-arr-faq-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.pm-arr-faq-item {
    border: 1px solid #ece4da;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0 14px;
    background: #fff;
}

.pm-arr-faq-item summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 400;
    color: #101828;
    list-style: none;
}

.pm-arr-faq-item summary::-webkit-details-marker {
    display: none;
}

.pm-arr-faq-item summary::after {
    content: "+";
    float: right;
    color: #0ba5c8;
    font-weight: 700;
}

.pm-arr-faq-item[open] summary::after {
    content: "−";
}

.pm-arr-faq-body {
    padding: 0 0 14px;
    font-size: 0.9rem;
    color: #475467;
    line-height: 1.65;
}

.pm-arr-faq-body p {
    margin: 0 0 10px;
}

.pm-staff-footer {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pm-staff-tip {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.pm-lock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
    align-items: stretch;
}

.pm-lock-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pm-lock-card-head {
    padding: 12px 16px;
    font-weight: 600;
    color: #fff;
}

.pm-lock-head-blue {
    background: #c8a277;
}

.pm-lock-head-green {
    background: #1e63d9;
}

.pm-lock-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-lock-card-main {
    flex: 1;
    min-height: 0;
}

.pm-lock-card-actions {
    margin-top: auto;
    padding-top: 14px;
}

.pm-lock-alert {
    margin-bottom: 0;
    min-height: 4.75em;
    box-sizing: border-box;
}

.pm-lock-btn {
    width: 100%;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 16px;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

.pm-lock-btn--lock {
    color: #b42318;
    background: #fef3f2;
    border: 2px solid #fecdca;
}

.pm-lock-btn--lock:hover {
    color: #912018;
    background: #fee4e2;
    border-color: #f97066;
    box-shadow: 0 2px 8px rgba(185, 36, 24, 0.12);
}

.pm-lock-btn--lock:focus-visible {
    outline: 2px solid #f04438;
    outline-offset: 2px;
}

.pm-lock-btn--lock:active {
    color: #7a271a;
    background: #fecdca;
    border-color: #d92d20;
    transform: translateY(1px);
}

.pm-lock-btn--unlock {
    color: #175cd3;
    background: #eff8ff;
    border: 2px solid #b2ddff;
}

.pm-lock-btn--unlock:hover {
    color: #1849a9;
    background: #d1e9ff;
    border-color: #1570ef;
    box-shadow: 0 2px 8px rgba(21, 112, 239, 0.15);
}

.pm-lock-btn--unlock:focus-visible {
    outline: 2px solid #1570ef;
    outline-offset: 2px;
}

.pm-lock-btn--unlock:active {
    color: #102f63;
    background: #b2ddff;
    border-color: #175cd3;
    transform: translateY(1px);
}

.pm-lock-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.pm-lock-help-grid h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.reg-batch-toolbar {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.reg-batch-toolbar--wrap {
    align-items: flex-start;
}

.reg-batch-hint {
    margin: 0;
    flex: 1 1 100%;
    min-width: 200px;
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.pagination-bar__meta {
    margin: 0;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pagination-nav__disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-nav__current {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    background: #ffe8d4;
    color: #312e81;
}

.pagination-nav__num {
    min-width: 2.25rem;
    text-align: center;
}

.reg-col-check {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

.reg-admin-table .reg-row-actions {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.reg-edit-card {
    margin-bottom: 20px;
}

.reg-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.reg-edit-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.reg-edit-group-switch {
    margin-bottom: 16px;
}

@media print {
    .topbar,
    .footer,
    .notice,
    .action-row,
    .section-title p,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .card,
    .table-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .order-cover {
        page-break-after: always;
    }

    .order-section {
        page-break-inside: avoid;
        margin-bottom: 16px;
    }

    .certificate-card {
        page-break-after: always;
    }

    .certificates-page--land .certificate-card--land {
        min-height: auto;
        width: 100%;
    }

    @page certificates-landscape {
        size: landscape;
        margin: 12mm;
    }

    .certificates-page--land .certificate-card--land {
        page: certificates-landscape;
    }

    .ob-doc {
        max-width: none;
        padding: 0;
    }

    .ob-cover.ob-cover--classic {
        min-height: 277mm;
    }

    /* 秩序册分页：与 Word 一致，由模板中的 .ob-doc-hard-page-break 承担，避免与 section 双重要求叠加出空白页 */
    .ob-doc section.ob-page {
        page-break-before: auto;
        break-before: auto;
    }

    .ob-doc section.ob-cover + section.ob-page {
        page-break-before: auto;
        break-before: auto;
    }

    .ob-doc p.ob-doc-hard-page-break {
        margin: 0;
        padding: 0;
        font-size: 1pt;
        line-height: 1pt;
        page-break-before: always;
        break-before: page;
    }

    .ob-doc #ob-toc.ob-toc-sheet {
        min-height: 0;
        padding: 12px 0 0;
        display: block;
    }

    .ob-toc-sheet-inner {
        max-width: none;
    }
}

/* ---------- 秩序册长文档（封面、目录、日程、代表队、分组表） ---------- */
.ob-doc {
    max-width: 210mm;
    margin: 0 auto;
    padding: 16px 12px 48px;
    font-family: "SimSun", "Songti SC", "STSong", serif;
    font-size: 10.5pt;
    line-height: 1.45;
    color: #111;
}

/* 浏览器预览/打印：单格大表 + 重复 tfoot，便于 Chromium 系打印时每页底栏显示页码 */
.ob-doc-print-grid {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0;
    padding: 0;
    table-layout: fixed;
}

.ob-doc-print-grid-thead,
.ob-doc-print-grid-tfoot {
    display: none;
}

.ob-doc-print-grid-body {
    padding: 0;
    border: none;
    vertical-align: top;
}

/* HTML 导出用 Word 打开时，常会忽略或不完全支持 CSS 的 border-collapse，出现“格子之间有空隙”（实为双边框）。辅以 table cellspacing=0 与此处 mso-* 可改善。 */
.ob-doc table {
    border-collapse: collapse;
    border-spacing: 0;
    mso-table-lspace: 0pt;
    mso-table-rspace: 0pt;
}

/* 秩序册数据表：与参考稿一致的全表线框（网页与导出同源） */
.ob-doc table.ob-data-grid-table {
    border: 1px solid #333333;
    box-sizing: border-box;
}

.ob-doc table.ob-data-grid-table th,
.ob-doc table.ob-data-grid-table td {
    border: 1px solid #333333;
}

/* Word 导出专用样式见 assets/order_book_word_export.css（不再嵌入本站 style.css） */

.ob-doc h1,
.ob-doc h2,
.ob-doc h3 {
    font-family: inherit;
}

/* ---------- 秩序册封面（网页预览：白底无装饰图；顶栏横向金字赛事名；竖排「秩序册」；主办 / 承办） ---------- */
.ob-cover.ob-cover--classic {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    max-width: 210mm;
    min-height: 0;
    page-break-after: always;
    background: #ffffff;
}

.ob-cover-scene-wrap {
    display: none;
}

.ob-cover.ob-cover--classic .ob-cover-inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: min(100vh, 297mm);
    padding: 48px 22px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ob-cover-head {
    text-align: center;
    margin: 0 auto;
    padding: 0 12px;
    width: 100%;
    max-width: 580px;
    writing-mode: horizontal-tb;
    flex-shrink: 0;
}

.ob-cover-head-line1 {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
    font-size: 26pt;
    font-weight: 700;
    line-height: 1.38;
    color: #000000;
    font-family: "SimSun", "Songti SC", "STSong", "Times New Roman", serif;
}

/* 届次与会名：一号（26pt）、居中 */
.ob-cover-head-line2 {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
    font-size: 26pt;
    font-weight: 700;
    line-height: 1.38;
    color: #000000;
    font-family: "SimSun", "Songti SC", "STSong", "Times New Roman", serif;
}

.ob-cover-head-line2:last-child {
    margin-bottom: 0;
}

/* 「秩序册」顶栏与三字间距再加大 */
.ob-cover-title-vertical {
    margin: 118px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: inherit;
    flex-shrink: 0;
}

/* 小初 · 竖排 · 黑色 */
.ob-cover-title-char {
    font-size: 36pt;
    font-weight: 700;
    color: #000000;
    line-height: 1.05;
    letter-spacing: 0;
    text-indent: 0;
    font-family: "SimSun", "Songti SC", "STSong", serif;
}

.ob-cover-main-spacer {
    flex: 1 1 auto;
    width: 100%;
    min-height: 48px;
}

.ob-cover-footer {
    width: 100%;
    max-width: 420px;
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
}

/* 四号 · 外层居中；表格内「主」「承」首字对齐 */
.ob-cover-org-block--footer {
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    text-align: center;
    font-size: 14pt;
    line-height: 1.75;
    color: #000000;
    font-family: "SimSun", "Songti SC", "STSong", serif;
}

/* 覆盖全站 table{width:100%}，使整块按内容宽度在页脚水平居中 */
.ob-cover-org-table-shell {
    display: block;
    width: 100%;
    text-align: center;
}

.ob-cover-org-table {
    display: inline-table;
    width: auto;
    max-width: 100%;
    margin: 0;
    border: none;
    border-collapse: collapse;
    border-spacing: 0;
    vertical-align: top;
}

.ob-cover-org-table td {
    border: none;
    padding: 2px 0;
    vertical-align: top;
    font-size: 14pt;
    line-height: 1.72;
    font-weight: 700;
}

.ob-cover-org-td-label {
    width: 5.75em;
    white-space: nowrap;
    font-weight: 700;
    text-align: left;
    padding-right: 4px;
}

.ob-cover-org-td-val {
    text-align: left;
}

.ob-cover-org-td-val--placeholder {
    color: #444444;
}

.ob-cover-org-line-c--date {
    margin: 40px 0 0 !important;
    font-weight: 700;
    font-size: 14pt;
    text-align: center;
}

.ob-page-break {
    page-break-before: always;
}

/* 目录单独成页感（预览）：整屏白底 + 居中块；打印时紧接封面分页后 */
.ob-doc #ob-toc.ob-toc-sheet {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: #ffffff;
    min-height: min(100vh, 297mm);
    box-sizing: border-box;
    padding: 36px 28px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    page-break-before: auto;
    break-before: auto;
}

.ob-toc-sheet-inner {
    width: 100%;
    max-width: 520px;
}

.ob-doc #ob-toc .ob-toc-h2 {
    margin-top: 8px;
    margin-bottom: 22px;
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    text-align: center;
    width: 100%;
}

/* 目录：标题 + 点线同一行 flex，点线紧贴标题；右栏页码占位 */
.ob-toc-leader-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: 10.5pt;
    table-layout: fixed;
}

.ob-toc-leader-table col.ob-toc-col-main {
    width: auto;
}

.ob-toc-leader-table col.ob-toc-col-page-col {
    width: 2.85em;
}

.ob-toc-leader-table td,
.ob-toc-leader-table th {
    border: none;
    padding: 0;
    vertical-align: middle;
}

.ob-toc-l-tr + .ob-toc-l-tr .ob-toc-l-cell {
    padding-top: 5px;
}

.ob-toc-l-main.ob-toc-l-text {
    text-align: left;
    padding-right: 8px;
    line-height: 1.65;
}

.ob-toc-l-line {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.ob-toc-l-line .ob-toc-l-text-wrap {
    flex: 0 1 auto;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    padding-right: 0;
    white-space: normal;
}

/* 点线：与标题行垂直居中（非贴底），并占满至页码列前 */
.ob-toc-l-line .ob-toc-l-rule {
    flex: 1 1 0%;
    min-width: 0.5em;
    margin: 0 0 0 4px;
    border: none;
    border-bottom: 1px dotted #111111;
    height: 0;
    align-self: center;
    box-sizing: border-box;
}

/* 首条为规程全称标题：强制单行不换行（略收窄字号以利排布） */
.ob-toc-leader-table tbody tr:first-child .ob-toc-l-text-wrap {
    white-space: nowrap;
    font-size: 10pt;
    line-height: 1.5;
    max-width: none;
}

.ob-toc-l-text--d0 .ob-toc-l-text-wrap {
    padding-left: 0;
}

.ob-toc-l-text--d1 .ob-toc-l-text-wrap {
    padding-left: 2em;
}

.ob-toc-l-text--d2 .ob-toc-l-text-wrap {
    padding-left: 4em;
}

.ob-toc-l-text--d3 .ob-toc-l-text-wrap,
.ob-toc-l-text--d4 .ob-toc-l-text-wrap {
    padding-left: 6em;
}

.ob-toc-l-page {
    width: 2.75em;
    text-align: right;
    padding-left: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.ob-doc #ob-toc .ob-toc-leader-table a,
.ob-doc #ob-toc .ob-toc-leader-table a:link,
.ob-doc #ob-toc .ob-toc-leader-table a:visited,
.ob-doc #ob-toc .ob-toc-leader-table a:hover,
.ob-doc #ob-toc .ob-toc-leader-table a:focus {
    color: #000000;
    text-decoration: none;
}

.ob-h2 {
    font-size: 15pt;
    text-align: center;
    margin: 20px 0 12px;
    font-weight: 700;
}

/* 秩序册：代表队名单 / 竞赛日程表 / 竞赛分组表主标题（与 Word 导出一致） */
.ob-h2.ob-sheet-main-title {
    font-size: 18pt;
    margin: 16px 0 14px;
    letter-spacing: 0.12em;
    text-align: center;
    text-indent: 0;
    width: 100%;
    box-sizing: border-box;
}

.ob-h3 {
    font-size: 10.5pt;
    margin: 14px 0 8px;
    font-weight: 600;
}

/* 秩序册 — 竞赛规程正文；左对齐避免 Word 导出时分散对齐导致字间距异常 */
.ob-reg-doc {
    margin-top: 12px;
    text-align: left;
    text-justify: none;
    font-size: 10.5pt;
    line-height: 1.65;
}

.ob-reg-doc-title {
    font-size: 14pt;
    font-weight: 700;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.5;
}

.ob-reg-kv {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    text-indent: 0;
    text-align: left;
}

.ob-reg-k {
    flex: 0 0 6.5em;
    font-weight: 600;
}

.ob-reg-v {
    flex: 1;
    min-width: 0;
}

.ob-reg-block {
    margin: 12px 0 14px;
}

.ob-reg-block .ob-reg-h3 {
    font-size: 10.5pt;
    font-weight: 700;
    margin: 0 0 6px;
}

.ob-reg-body {
    text-align: left;
    text-indent: 2em;
    margin: 0;
    padding-left: 0;
}

.ob-reg-body.ob-reg-html {
    text-indent: 0;
}

.ob-reg-html ul,
.ob-reg-html ol {
    margin: 6px 0 6px 1.5em;
    padding-left: 0;
}

.ob-reg-html p {
    text-align: left;
    margin: 4px 0;
    text-indent: 2em;
}

/* 组别条（flex）：勿再叠一段落的 2em 首行缩进，仅保留本条 padding-left */
.ob-doc .ob-reg-groups-compact p.ob-reg-group-line--ge {
    text-indent: 0 !important;
}

/* 秩序册在 .card 内时，覆盖 .card p 的灰色为正文字色 */
.ob-doc .ob-reg-groups-compact .ob-reg-group-line {
    color: #111;
}

.ob-reg-groups-compact .ob-reg-group-line {
    text-align: left;
    margin: 0.28em 0;
    line-height: 1.65;
    text-indent: 2em;
}

/* 个人/集体两行与「序号、组名」分栏，集体行与「个人」左缘对齐 */
.ob-reg-groups-compact .ob-reg-group-line--ge {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    text-indent: 0;
    padding-left: 2em;
    box-sizing: border-box;
}

.ob-reg-groups-compact .ob-reg-ge-label {
    flex: 0 0 auto;
}

.ob-reg-groups-compact .ob-reg-ge-body {
    flex: 1 1 0;
    min-width: 0;
}

.ob-reg-groups-compact .ob-reg-ge-k {
    font-weight: inherit;
}

.ob-doc .ob-reg-body-numbered {
    text-indent: 0;
    color: #111;
    /* 与组别块同级：补上 HTML 段落才有的「全文左边距」，使 1. 与「1、」同垂线 */
    padding-left: 2em;
    box-sizing: border-box;
}

/* 规程「1./1、」列表：悬挂缩进，折行与首行正文对齐；覆盖 .card 内段落灰色 */
.ob-doc .ob-reg-body-numbered .ob-reg-num-item {
    color: #111;
}

/* 与「竞赛组别」条目前缘一致：整块左缩进 2em，阿拉伯序号与「1、」同列 */
.ob-reg-body-numbered .ob-reg-num-item {
    margin: 0.28em 0;
    padding-left: 2em;
    text-indent: -2em;
    line-height: 1.65;
    text-align: left;
}

.ob-reg-body-numbered .ob-reg-num-item--plain {
    padding-left: 0;
    text-indent: 0;
}

.ob-reg-sign {
    margin-top: 20px;
    text-align: right;
    line-height: 1.6;
    color: #111;
}

.ob-doc .ob-reg-sign p {
    margin: 4px 0;
    color: #111;
    line-height: 1.65;
}

.ob-reg-warn {
    margin-bottom: 12px;
}

.ob-reg-placeholder {
    padding: 12px;
    border: 1px dashed #ccc;
    background: #fafafa;
}

/* 赛前管理 — 竞赛规程编辑表单 */
.pm-reg-section .tip {
    margin-bottom: 12px;
}

.pm-reg-missing {
    margin-bottom: 16px;
}

.pm-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.pm-reg-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-reg-grid label span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #344054;
}

.pm-reg-span2 {
    grid-column: 1 / -1;
}

.pm-reg-grid input[type="text"],
.pm-reg-grid textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    font: inherit;
}

.pm-reg-textarea-block {
    margin-bottom: 16px;
}

.pm-reg-textarea-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.pm-reg-label {
    font-weight: 700;
    font-size: 1rem;
}

.pm-reg-ta {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}

.pm-reg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pm-reg-actions .pm-reg-download {
    margin-left: auto;
}

@media (max-width: 720px) {
    .pm-reg-grid {
        grid-template-columns: 1fr;
    }
}

.ob-rules-plc {
    border: 1px dashed #999;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 16px;
}

.ob-schedule-note {
    font-size: 10.5pt;
    color: #444;
    margin: 0 0 12px;
    text-align: center;
}

.ob-schedule-pending-note {
    font-size: 10.5pt;
    margin: 0 0 8px;
    text-align: left;
}

.ob-schedule-kind {
    font-size: 10.5pt;
    font-weight: 700;
    text-align: center;
    margin: 16px 0 8px;
}

.ob-doc .ob-schedule-kind:first-of-type {
    margin-top: 4px;
}

/* 竞赛日程表：按比赛单元分块（参照正式秩序册版式） */
.ob-schedule-session {
    margin-bottom: 22px;
    page-break-inside: avoid;
}

.ob-schedule-session-title {
    font-size: 12pt;
    font-weight: 700;
    text-align: center;
    margin: 8px 0 10px;
    padding-bottom: 0;
    letter-spacing: 0.06em;
}

.ob-schedule-subkind {
    font-size: 11pt;
    font-weight: 700;
    text-align: center;
    margin: 10px 0 6px;
    letter-spacing: 0.35em;
}

/* 竞赛分组表：单元（上/下午等）→ 径赛 / 田赛，版式对齐竞赛日程表 */
.ob-group-session {
    margin-bottom: 22px;
    page-break-inside: avoid;
}

.ob-group-meet-banner {
    font-size: 10.5pt;
    font-weight: 700;
    text-align: center;
    margin: 12px 0 6px;
}

.ob-group-session-title {
    font-size: 10.5pt;
    font-weight: 700;
    text-align: center;
    margin: 10px 0 8px;
}

.ob-group-subkind {
    font-size: 10.5pt;
    font-weight: 700;
    text-align: center;
    margin: 10px 0 6px;
    letter-spacing: 0.2em;
}

.ob-group-block {
    margin-bottom: 10px;
}

/* 竞赛分组：每项前的说明行（序号、项目、赛别、人数…）左对齐，与常见秩序册一致 */
.ob-group-header-line {
    text-align: left;
    font-weight: 400;
    margin: 4px 0 6px;
    font-size: 10.5pt;
    line-height: 1.5;
}

/* 秩序册末页：赛会最高纪录（与赛前记录管理赛会表同源） */
.ob-meet-records-page {
    page-break-before: always;
}

.ob-meet-records-lead {
    font-size: 10.5pt;
    margin: 0 0 10px;
    text-align: left;
}

.ob-meet-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 8px;
}

.ob-meet-records-table th,
.ob-meet-records-table td {
    border: 1px solid #333;
    padding: 4px 6px;
    vertical-align: middle;
}

.ob-meet-records-table thead th {
    background: #eee;
    font-weight: 600;
    text-align: center;
}

.ob-meet-records-table tbody td:nth-child(1),
.ob-meet-records-table tbody td:nth-child(4),
.ob-meet-records-table tbody td:nth-child(5),
.ob-meet-records-table tbody td:nth-child(6) {
    text-align: left;
}

.ob-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 16px;
}

.ob-schedule-table th,
.ob-schedule-table td {
    border: 1px solid #333;
    padding: 4px 5px;
    vertical-align: middle;
}

.ob-schedule-table th {
    background: #d9d9d9;
    text-align: center;
    font-weight: 700;
}

.ob-schedule-table tbody td {
    text-align: center;
}

.ob-td-center {
    text-align: center;
}

.ob-roster-unit {
    margin-bottom: 0;
    page-break-inside: avoid;
}

.ob-roster-unit + .ob-roster-unit {
    padding-top: 1.35em;
    margin-top: 0;
}

.ob-roster-between-units {
    margin: 0;
    padding: 0;
    font-size: 10.5pt;
    line-height: 22pt;
    min-height: 22pt;
    overflow: visible;
}

.ob-roster-unit-title {
    font-size: 10.5pt;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
}

.ob-roster-staff-block {
    max-width: none;
    width: 100%;
    margin: 0 auto 10px;
    font-size: 10.5pt;
    line-height: 1.55;
    text-align: left;
}

.ob-roster-staff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px;
}

.ob-roster-staff-table td,
.ob-roster-staff-table th {
    border: none;
    vertical-align: top;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.55;
}

.ob-roster-staff-td--leader {
    text-align: left;
    width: 52%;
}

.ob-roster-staff-td--coach {
    text-align: center;
    width: 48%;
}

.ob-roster-staff-line {
    margin: 0 0 2px;
}

.ob-roster-staff-label {
    font-weight: 700;
}

.ob-roster-between-genders {
    margin: 0;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.35em;
    height: 1.35em;
    overflow: hidden;
}

.ob-roster-gender-head {
    font-size: 10.5pt;
    font-weight: 700;
    margin: 10px 0 4px;
    text-align: left;
}

.ob-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 8px;
}

.ob-roster-table.ob-roster-table-paired {
    table-layout: fixed;
}

.ob-roster-table-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.ob-roster-table-wrap .ob-roster-grid-mm {
    margin-left: auto;
    margin-right: auto;
}

/* 代表队名单：总宽 15.8cm、列各 3.95cm（四等分） */
.ob-roster-table.ob-roster-table-paired.ob-roster-grid-mm {
    width: 15.8cm;
    max-width: 100%;
    box-sizing: border-box;
}

.ob-roster-grid-mm.ob-roster-table-paired col,
.ob-roster-grid-mm.ob-roster-table-paired col.ob-roster-col-paired {
    width: 3.95cm;
}

.ob-roster-paired-name {
    text-align: center;
}

.ob-roster-paired-events {
    text-align: center;
    line-height: 1.45;
    word-break: break-word;
}

.ob-roster-table th,
.ob-roster-table td {
    border: 1px solid #333;
    padding: 4px 5px;
    vertical-align: middle;
}

.ob-roster-table th {
    background: #d9d9d9;
    text-align: center;
    font-weight: 700;
}

.ob-r-num {
    width: 40px;
    text-align: center;
}

.ob-r-numbib {
    width: 72px;
    text-align: center;
}

.ob-r-events {
    width: auto;
}

.ob-r-id {
    width: 140px;
    font-size: 10.5pt;
}

.ob-r-birth {
    width: 120px;
}

.ob-r-events-inline {
    font-size: 10.5pt;
    line-height: 1.4;
    word-break: break-all;
}

.ob-r-events-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
}

.ob-r-events-two-col .ob-r-e {
    font-size: 10.5pt;
    line-height: 1.35;
}

.ob-section {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.ob-matrix-caption {
    text-align: center;
    font-weight: 600;
    margin: 0 0 8px;
    font-size: 10.5pt;
    line-height: 1.5;
}

.ob-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 16px;
    table-layout: fixed;
}

.ob-matrix th,
.ob-matrix td {
    border: 1px solid #333;
    padding: 3px 4px;
    vertical-align: middle;
    word-break: break-all;
}

.ob-matrix td {
    text-align: center;
}

.ob-matrix th {
    background: #d9d9d9;
    text-align: center;
    font-weight: 700;
}

.ob-cell-lane {
    width: 28px;
    text-align: center;
    font-weight: 600;
    background: #f7f7f7;
}

.ob-cell-ath {
    min-width: 0;
}

.ob-cell-lines {
    white-space: pre-line;
    line-height: 1.35;
}

.ob-field-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 16px;
    table-layout: fixed;
}

.ob-field-grid th,
.ob-field-grid td {
    border: 1px solid #333;
    padding: 4px;
    vertical-align: top;
    min-height: 52px;
}

.ob-field-grid th {
    background: #eee;
    text-align: center;
    font-weight: 600;
    width: 12.5%;
}

.ob-field-cell {
    min-height: 48px;
}

/* 秩序册田赛分组：表格线框，首列 rowspan「第N组」，右侧每行 8 格，格内四行（序号/号码/姓名/单位） */
.ob-field-sheet {
    margin: 4px 0 10px;
}

.ob-field-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5pt;
    margin-bottom: 10px;
    table-layout: fixed;
}

.ob-field-matrix-table th,
.ob-field-matrix-table td {
    border: 1px solid #333;
    padding: 4px 3px;
    vertical-align: middle;
}

.ob-field-matrix-group {
    width: 2.8em;
    background: #d9d9d9;
    font-weight: 700;
    text-align: center;
    font-size: 10.5pt;
    line-height: 1.35;
}

.ob-field-matrix-cell {
    text-align: center;
    vertical-align: middle;
    min-width: 0;
}

.ob-field-matrix-cell-empty {
    background: #fafafa;
}

.ob-field-matrix-stack {
    line-height: 1.28;
}

.ob-fm-line {
    display: block;
}

.ob-fm-seq {
    font-weight: 700;
}

.ob-fm-bib {
    font-variant-numeric: tabular-nums;
}

.ob-fm-name,
.ob-fm-unit {
    word-break: break-all;
}

/* 赛前基础 — 分组参赛单位（逐行填写） */
.gb-unit-names-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1 / -1;
}

.gb-unit-names-label {
    font-weight: 600;
    color: #1d2939;
    line-height: 1.45;
}

.gb-unit-names-lead {
    margin: 0;
    line-height: 1.5;
}

.gb-unit-custom-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background: #f8fbff;
}

.gb-unit-custom-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-unit-custom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gb-unit-custom-row input[type="text"] {
    flex: 1;
    min-width: 220px;
    max-width: none;
    padding: 10px 12px;
    border: 1px solid #dfc4ae;
    border-radius: 10px;
    font: inherit;
}

.gb-unit-custom-row .gb-unit-custom-del {
    min-width: 64px;
}

.gb-unit-custom-add {
    align-self: flex-start;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
}

/* 赛前基础 — 管理参赛单位（新版双栏） */
.gb-units-form {
    display: block;
}

.gb-units-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(360px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.gb-units-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    padding: 12px;
    height: 100%;
}

.gb-units-card-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.gb-units-table-wrap {
    margin: 0;
}

.gb-units-table .gb-units-sort-col {
    width: 110px;
}

.gb-units-table .gb-units-op-col {
    width: 96px;
}

.gb-units-table .input {
    height: 34px;
}

.gb-units-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.gb-units-form .btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-form .btn:focus,
.gb-units-form .btn:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-form .btn:hover {
    filter: brightness(0.95);
}

.gb-units-form .btn:active {
    filter: brightness(0.9);
}

#gb-units-add-custom {
    background: #1e63d9 !important;
    border-color: #1e63d9 !important;
    border-width: 1px !important;
    border-style: solid !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

#gb-units-add-custom:hover {
    background: #1959c4 !important;
    border-color: #1959c4 !important;
}

#gb-units-add-custom:active {
    background: #1747ad !important;
    border-color: #1747ad !important;
}

#gb-units-add-custom:focus,
#gb-units-add-custom:focus-visible {
    border-color: #1e63d9 !important;
    box-shadow: none !important;
    outline: none !important;
}

#gb-units-quick-add {
    background: #1e63d9 !important;
    border-color: #1e63d9 !important;
    color: #fff !important;
}

#gb-units-quick-add:hover {
    background: #1959c4 !important;
    border-color: #1959c4 !important;
}

#gb-units-quick-add:active {
    background: #1747ad !important;
    border-color: #1747ad !important;
}

.gb-units-form .gb-units-del {
    border: 1px solid #d92d20 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 12px !important;
    line-height: 1.1;
}

.gb-units-form .gb-units-del:focus,
.gb-units-form .gb-units-del:focus-visible,
.gb-units-form .gb-units-del:hover,
.gb-units-form .gb-units-del:active {
    border-color: #d92d20 !important;
    box-shadow: none !important;
    outline: none !important;
}

#gb-units-save-system,
#gb-units-scroll-custom {
    background: #2f6fed !important;
    border-color: #2f6fed !important;
    color: #fff !important;
    filter: none !important;
}

#gb-units-save-system:hover,
#gb-units-scroll-custom:hover {
    background: #1d5fdf !important;
    border-color: #1d5fdf !important;
    color: #fff !important;
    filter: none !important;
}

#gb-units-save-system:active,
#gb-units-scroll-custom:active {
    background: #174fbf !important;
    border-color: #174fbf !important;
    color: #fff !important;
    filter: none !important;
}

.gb-units-quick-row {
    display: grid;
    grid-template-columns: 1fr 140px 120px;
    gap: 10px;
    align-items: end;
    min-height: 72px;
    padding: 6px 0;
}

.gb-units-quick-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-units-quick-row label span {
    font-size: 12px;
    color: #667085;
    line-height: 1.2;
    min-height: 16px;
}

.gb-units-quick-row .input,
.gb-units-quick-row .btn {
    height: 36px;
    border: 1px solid #d0d5dd !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.gb-units-quick-row .btn {
    align-self: end;
}

.gb-units-quick-row input.input,
.gb-units-quick-row select.input {
    padding-left: 12px;
    padding-right: 12px;
}

.gb-units-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: #98a2b3;
}

.gb-units-empty-box {
    margin-top: 14px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    background: #fafafa;
}

.gb-units-card-right {
    display: flex;
    flex-direction: column;
}

.gb-units-card-right .gb-units-empty-box {
    flex: 1;
}

.gb-units-quick-row .input,
.gb-units-quick-row .btn {
    border-color: #d0d5dd !important;
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-quick-row .input:focus,
.gb-units-quick-row .input:focus-visible,
.gb-units-quick-row .btn:focus,
.gb-units-quick-row .btn:focus-visible {
    border-color: #98a2b3 !important;
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-empty-star {
    font-size: 34px;
    line-height: 1;
    color: #9ca3af;
}

.gb-units-modal[hidden] {
    display: none !important;
}

.gb-units-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.gb-units-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.gb-units-modal-panel {
    position: relative;
    width: min(1080px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gb-units-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.gb-units-modal-body {
    padding: 14px 16px 16px;
    overflow: auto;
}

.gb-units-modal-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.gb-units-modal-table .input {
    height: 34px;
    border: 1px solid #d0d5dd !important;
    box-shadow: none !important;
    outline: none !important;
    background: #fff;
}

.gb-units-modal-table .input:focus,
.gb-units-modal-table .input:focus-visible {
    border-color: #98a2b3 !important;
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-modal-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gb-units-modal .btn {
    box-shadow: none !important;
    outline: none !important;
}

.gb-units-modal .btn:focus,
.gb-units-modal .btn:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

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

    .gb-units-quick-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* 查看赛程（分项组次视图） */
.asc-page .asc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.asc-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asc-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 20px;
    align-items: start;
}

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

.asc-side {
    padding: 0;
    overflow: hidden;
}

.asc-side-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 1rem;
    background: #6b4423;
    color: #fff;
}

.asc-dl {
    margin: 0;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.asc-dl dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
}

.asc-dl dd {
    margin: 0;
    font-size: 15px;
    color: #101828;
}

.asc-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.asc-summary {
    padding: 16px 20px;
}

.asc-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.asc-total-label {
    display: block;
    font-size: 13px;
    color: #667085;
    margin-bottom: 4px;
}

.asc-total-value {
    font-size: 1.75rem;
    color: #101828;
}

.asc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.asc-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.asc-badge--heat {
    background: #fff6ea;
    color: #6b4423;
    border: 1px solid #84caff;
}

.asc-badge--total {
    background: #f0f9ff;
    color: #026aa2;
    border: 1px solid #b9e6fe;
}

.asc-opt-box {
    border: 1px solid #fec84b;
    background: #fffaeb;
    border-radius: 12px;
    padding: 16px 18px;
}

.asc-opt-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #b54708;
}

.asc-opt-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #93370d;
}

.asc-opt-form {
    margin: 0;
}

.asc-opt-btn {
    background: #f79009;
    border-color: #dc6803;
    color: #fff;
}

.asc-opt-btn:hover {
    filter: brightness(0.95);
}

.asc-tip-muted {
    color: #667085;
}

.asc-heats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.asc-heat-card {
    padding: 0;
    overflow: hidden;
}

.asc-heat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #fcf9f4;
    border-bottom: 1px solid #ece4da;
}

.asc-heat-title {
    margin: 0;
    font-size: 1.1rem;
    color: #101828;
}

.asc-heat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.asc-heat-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfc4ae;
    color: #475467;
}

.asc-heat-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef0c7;
    color: #b54708;
    border: 1px solid #fec84b;
}

.asc-heat-table-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
}

.asc-heat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.asc-heat-table th,
.asc-heat-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #ece4da;
}

.asc-heat-table th {
    background: #fcfcfd;
    font-weight: 600;
    color: #475467;
}

/* ---------- 裁判员管理（赛中 · 门户账号） ---------- */
.ref-acc-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #6b4423 0%, #1570ef 55%, #c8a277 100%);
    color: #fff;
    border: none;
    margin-bottom: 18px;
}

.ref-acc-hero-ic {
    font-size: 36px;
    line-height: 1;
    opacity: 0.95;
}

.ref-acc-hero-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ref-acc-hero-sub {
    margin: 0;
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.5;
}

.ref-acc-feature-banner {
    margin-bottom: 18px;
}

.ref-acc-gen-hint-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ref-acc-gen-hint-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    background: #e8f4ff;
    border: 1px solid #b6d9ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ref-acc-gen-hint-body {
    min-width: 0;
    flex: 1 1 auto;
}

.ref-acc-gen-hint-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2d2419;
    letter-spacing: 0.02em;
}

.ref-acc-gen-hint-intro {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.ref-acc-gen-hint-list {
    margin: 0 0 12px;
    padding-left: 1.25em;
    font-size: 15px;
    line-height: 1.65;
}

.ref-acc-gen-hint-list li {
    margin-bottom: 4px;
}

.ref-acc-gen-hint-foot {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.95;
}

.ref-acc-section {
    margin-bottom: 18px;
}

.ref-acc-gen-form {
    padding: 4px 0 0;
}

.ref-acc-gen-form .ref-acc-gen-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.ref-acc-gen-form .ref-acc-gen-row .mgr-ta-label {
    margin-bottom: 0;
}

.ref-acc-gen-form .ref-acc-gen-pwd-label {
    flex: 0 0 auto;
}

.ref-acc-gen-form.mgr-ta-gen-form input.ref-acc-gen-pwd-input {
    width: 140px;
    max-width: 44vw;
    box-sizing: border-box;
    line-height: 1.35;
    min-height: 36px;
}

.ref-acc-gen-form .ref-acc-gen-row .mgr-ta-gen-btn {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

.ref-acc-gen-form .ref-acc-gen-note {
    display: block;
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.ref-acc-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.ref-acc-url-input {
    flex: 1 1 240px;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    min-height: 36px;
}

.ref-acc-pwd {
    color: #b42318;
    font-weight: 600;
    background: #fef3f2;
}

.ref-acc-ops {
    vertical-align: middle;
}

.ref-acc-copy-url-btn {
    border: 1px solid #e0c9a8;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ref-acc-copy-url-btn:hover {
    background: #f5d7a8;
    color: #4a301f;
    border-color: #c8a277;
    box-shadow: 0 1px 3px rgba(45, 32, 22, 0.12);
}

.ref-acc-copy-url-btn:focus-visible {
    outline: 2px solid #9f7750;
    outline-offset: 2px;
}

.ref-acc-copy-url-btn:active {
    background: #e9c896;
    border-color: #b8926a;
}

.ref-acc-op-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ref-acc-op-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ref-acc-op-btn {
    box-sizing: border-box;
    min-width: 6.5rem;
    justify-content: center;
}

.ref-acc-op-btn-reset {
    border: 1px solid #ca8a04;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ref-acc-op-btn-reset:hover {
    background: #fbbf24;
    border-color: #a16207;
    filter: none;
    box-shadow: 0 1px 3px rgba(66, 32, 6, 0.15);
}

.ref-acc-op-btn-reset:focus-visible {
    outline: 2px solid #a16207;
    outline-offset: 2px;
}

.ref-acc-op-btn-reset:active {
    background: #f59e0b;
    border-color: #92400e;
}

.ref-acc-op-btn-delete {
    border: 1px solid #b42318;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ref-acc-op-btn-delete:hover {
    background: #f04438;
    border-color: #912018;
    filter: none;
    box-shadow: 0 1px 4px rgba(180, 35, 24, 0.35);
}

.ref-acc-op-btn-delete:focus-visible {
    outline: 2px solid #b42318;
    outline-offset: 2px;
}

.ref-acc-op-btn-delete:active {
    background: #b42318;
    border-color: #7f1d1d;
}

.ref-acc-pwd-input {
    width: 120px;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #dfc4ae;
    border-radius: 6px;
    font-size: 13px;
}

.ref-acc-table .mgr-ta-ops {
    white-space: normal;
    max-width: min(520px, 100%);
}

.ref-acc-portal-actions {
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- 赛中 · 径赛成绩录入 ---------- */
.trk-hub-title {
    margin-bottom: 14px;
}

.trk-hub-lead {
    margin-bottom: 16px;
}

.trk-hub-toolbar {
    margin-bottom: 18px;
    padding: 16px 18px;
}

.trk-hub-toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.trk-hub-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.trk-hub-today-form {
    margin: 0;
}

.trk-hub-today-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.trk-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
}

.trk-hub-filters-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    width: 100%;
}

.trk-hub-filters-wrap > .trk-hub-filters {
    flex: 1 1 auto;
    min-width: 0;
}

.trk-hub-dev-seed-form {
    display: inline;
    margin: 0;
}

.trk-hub-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.trk-hub-filter span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #475467;
}

.trk-hub-filter select {
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.trk-hub-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.trk-hub-ico-refresh {
    font-size: 18px;
    line-height: 1;
    padding: 8px 12px;
    text-decoration: none;
}

.trk-hub-table-wrap {
    padding: 0;
    overflow: hidden;
}

.trk-hub-empty {
    margin: 16px;
}

.trk-hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.trk-hub-table thead th.trk-hub-col-time {
    padding: 12px 14px 12px 22px;
}

.trk-hub-table thead th {
    background: #1f2937;
    color: #fcf9f4;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
}

.trk-hub-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #ece4da;
    vertical-align: middle;
}

.trk-hub-table tbody td.trk-hub-col-time {
    padding: 11px 14px 11px 22px;
}

/* 前 5 列（时间～组次/轮次）：略右移、正文加粗（径赛/田赛表结构一致） */
.trk-hub-table thead th:nth-child(-n+5),
.trk-hub-table tbody tr:not(.trk-hub-sub) td:nth-child(-n+5) {
    padding-left: 22px;
    font-weight: 700;
}

.trk-hub-table tbody tr:hover td {
    background: #fcf9f4;
}

.trk-hub-sub td {
    background: #f2f4f7;
    font-weight: 600;
    color: #344054;
    padding: 10px 14px;
    border-bottom: 1px solid #e3d9ce;
}

.trk-hub-sub--date-session td {
    background: linear-gradient(180deg, #eef2ff 0%, #f5f7ff 100%);
    color: #1e3a8a;
    border-bottom: 1px solid #c7d2fe;
    padding: 10px 14px;
}

.trk-hub-sub-row-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 0.5em;
}

.trk-hub-sub-date {
    font-weight: 700;
    color: inherit;
}

.trk-hub-sub-session {
    font-weight: 600;
    color: #344054;
}

.trk-hub-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #9f7750 0%, #b18659 100%);
    color: #fff;
}

.trk-hub-badge--done {
    background: linear-gradient(135deg, #1e4d8c 0%, #1e4d8c 100%);
}

.trk-hub-actions {
    white-space: nowrap;
}

.trk-hub-actions .btn-sm {
    margin-right: 6px;
}

.trk-hub-btn-view-results.btn-secondary:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0369a1;
}

.trk-hub-btn-enter {
    font-weight: 600;
}

/* ---------- 临时报名管理 ---------- */
.mtr-page-title {
    margin-bottom: 0.35rem;
}

.mtr-empty {
    margin-bottom: 1rem;
}

.mtr-notice {
    border: 1px solid #ecd4b8;
    background: #f0f9ff;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.mtr-notice-ol {
    margin: 0.5rem 0 0 1.1rem;
    padding: 0;
    line-height: 1.65;
}

.mtr-filter {
    margin-bottom: 1rem;
    padding: 14px 16px;
}

.mtr-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.mtr-filter-row--pool {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e6ddd4;
}

.mtr-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.mtr-filter-field--grow {
    flex: 1 1 200px;
    min-width: 180px;
}

.mtr-filter-field span {
    font-size: 0.82rem;
    color: #4b5563;
}

.mtr-filter-field select,
.mtr-filter-field input[type="text"] {
    min-height: 36px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
}

.mtr-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.mtr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 960px) {
    .mtr-grid {
        grid-template-columns: 1fr;
    }
}

.mtr-panel {
    padding: 0;
    overflow: hidden;
}

.mtr-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #e6ddd4;
    background: #fcf9f4;
}

.mtr-panel-title {
    margin: 0;
    font-size: 1.05rem;
}

.mtr-stat {
    margin: 0;
    font-size: 0.88rem;
    color: #374151;
}

.mtr-subh {
    margin: 14px 16px 8px;
    font-size: 0.95rem;
}

.mtr-table-wrap {
    overflow-x: auto;
    padding: 0 16px 16px;
}

.mtr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mtr-table th,
.mtr-table td {
    border-bottom: 1px solid #e6ddd4;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}

.mtr-table th {
    background: #3d342f;
    color: #fff;
    font-weight: 600;
}

.mtr-row-empty td {
    background: #fafafa;
}

.mtr-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.mtr-muted {
    color: #9ca3af;
}

.mtr-inline-form {
    display: inline;
}

.mtr-btn-del {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    color: #dc2626;
}

.mtr-btn-del:hover {
    color: #991b1b;
}

.btn-link-like {
    border: none;
    background: none;
    color: #b18659;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

.mtr-new-inner {
    margin: 0 16px 16px;
    padding: 14px;
    border: 1px solid #e6ddd4;
    border-radius: 8px;
    background: #fff;
}

.mtr-new-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.mtr-new-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.mtr-btn-save {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mtr-btn-save:hover {
    filter: brightness(1.05);
}

.mtr-warn-units {
    margin-top: 8px;
    color: #b45309;
}

/* ---------- 径赛成绩录入 · 弹窗 ---------- */
body.trk-modal-open {
    overflow: hidden;
}

.trk-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    box-sizing: border-box;
}

.trk-modal.is-open {
    display: flex;
}

.trk-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 32, 22, 0.45);
}

.trk-modal-dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(45, 32, 22, 0.2);
    overflow: hidden;
}

.trk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #ece4da;
}

.trk-modal-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trk-modal-heading-ic {
    color: #6b4423;
}

.trk-modal-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #667085;
    padding: 4px 8px;
}

.trk-modal-close:hover {
    color: #101828;
}

.trk-modal-body {
    padding: 0 18px 16px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.trk-modal-main-inner {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.trk-modal-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    position: relative;
    padding-right: 32px;
}

.trk-modal-banner.is-hidden {
    display: none;
}

.trk-modal-banner--info {
    background: #fff6ea;
    border: 1px solid #7cd4fd;
    color: #4a301f;
}

.trk-modal-banner--keys {
    background: #fff;
    border: 1px solid #dfc4ae;
    color: #344054;
    margin-top: 8px;
}

.trk-modal-banner-ic {
    flex-shrink: 0;
    font-weight: 700;
}

.trk-modal-banner-text {
    flex: 1;
    min-width: 0;
}

.trk-modal-banner kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #dfc4ae;
    font-size: 12px;
    background: #fcf9f4;
}

.trk-modal-banner-x {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #667085;
    line-height: 1;
}

.trk-modal-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #6b4423 0%, #1570ef 100%);
    color: #fff;
    border-radius: 10px;
}

.trk-modal-bar-title {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    min-width: 200px;
}

.trk-modal-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trk-modal-bar-actions .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.trk-modal-table-scroll {
    margin-top: 12px;
    max-height: min(52vh, 480px);
    overflow: auto;
    border: 1px solid #ece4da;
    border-radius: 10px;
}

.trk-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.trk-modal-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f2f4f7;
    color: #475467;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ece4da;
    font-weight: 700;
}

.trk-modal-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: middle;
}

/* 组与组之间：分隔带 + 交替底色，避免第1组与第2组贴在一起难以辨认 */
.trk-modal-tr-heat-gap td {
    height: 14px;
    padding: 0 !important;
    border: none !important;
    border-top: 2px solid #98a2b3 !important;
    border-bottom: 1px solid #dfc4ae !important;
    background: linear-gradient(180deg, #e3d9ce 0%, #f2f4f7 55%, #fff 100%);
    line-height: 0;
    font-size: 0;
}

.trk-modal-tr-heat-row--a > td:not(.trk-modal-td-heat) {
    background: #fcfcfd;
}

.trk-modal-tr-heat-row--b > td:not(.trk-modal-td-heat) {
    background: #fcfcfd;
}

.trk-modal-td-heat {
    font-weight: 700;
    color: #1d2939;
    vertical-align: middle;
    border-right: 1px solid #ece4da;
}

.trk-modal-td-heat--a {
    background: #eef4ff;
    color: #1e3a8a;
}

.trk-modal-td-heat--b {
    background: #eef4ff;
    color: #1e3a8a;
}

.trk-modal-perf {
    width: 100%;
    max-width: 140px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
}

.trk-modal-perf:focus {
    outline: none;
    border-color: #dfc4ae;
    box-shadow: none;
    background: #fff;
}

.trk-modal-perf--changed {
    border-color: #059669 !important;
    background: #f4f8fd !important;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.28);
}

.trk-modal-perf--changed:focus {
    border-color: #059669 !important;
    background: #f4f8fd !important;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.28);
}

.trk-modal-table tbody td input[type="text"] {
    width: 100%;
    max-width: 160px;
    padding: 6px 8px;
    border: 1px solid #dfc4ae;
    border-radius: 6px;
    font-size: 13px;
}

.trk-modal-td-valid {
    text-align: center;
}

.trk-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ece4da;
}

/* 径赛成绩弹窗 · 临时添加运动员子层 */
.trk-temp-layer {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: #fff;
    overflow: auto;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
}

.trk-temp-layer.is-open {
    display: flex;
}

.trk-temp-title {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 800;
    color: #101828;
    text-align: center;
}

.trk-temp-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    border: 1px solid #ecd4b8;
    background: #f0f9ff;
    border-radius: 10px;
    padding: 10px 12px;
}

.trk-temp-info-line {
    flex: 1 1 220px;
    font-size: 13px;
    line-height: 1.55;
    color: #6b4423;
}

.trk-temp-total-box {
    flex: 0 0 auto;
    min-width: 120px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    text-align: center;
}

.trk-temp-total-lbl {
    display: block;
    font-size: 12px;
    color: #667085;
}

.trk-temp-total-num {
    font-size: 20px;
    font-weight: 800;
    color: #101828;
}

.trk-temp-blue-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, #6b4423 0%, #1570ef 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.trk-temp-blue-title {
    font-weight: 700;
}

.trk-temp-blue-bar .btn {
    flex-shrink: 0;
}

.trk-temp-panel {
    border: 1px solid #ece4da;
    border-radius: 10px;
    padding: 12px;
    background: #fcfcfd;
}

.trk-temp-panel-h {
    font-weight: 700;
    font-size: 14px;
    color: #1d2939;
    margin-bottom: 8px;
}

.trk-temp-tip {
    margin-bottom: 10px !important;
    font-size: 13px;
}

.trk-temp-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
}

.trk-temp-filters {
    margin-bottom: 8px;
}

.trk-temp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #475467;
    min-width: 120px;
}

.trk-temp-field--grow {
    flex: 1 1 200px;
    min-width: 180px;
}

.trk-temp-field span:first-child {
    font-weight: 600;
}

.trk-temp-select,
.trk-temp-text,
.trk-temp-field input[type="text"],
.trk-temp-field select {
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
    min-height: 40px;
    box-sizing: border-box;
}

.trk-temp-unit-host {
    display: block;
}

.trk-temp-unit-host select,
.trk-temp-unit-host input {
    width: 100%;
}

.trk-temp-form-actions {
    margin-top: 10px;
}

.trk-temp-form-actions--inline {
    margin-top: 0;
    align-self: flex-end;
}

.trk-temp-warn {
    font-size: 13px;
    line-height: 1.55;
}

.trk-temp-preview-scroll {
    margin-top: 0;
}

.trk-temp-ro {
    background: #f2f4f7 !important;
    color: #667085 !important;
    cursor: not-allowed;
}

/* 棒次表管理 */
.mrb-card {
    overflow: hidden;
    margin-top: 16px;
}

.mrb-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #1e3a5f 0%, #3d342f 100%);
    color: #faf7f2;
}

.mrb-card-head-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.mrb-card-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.mrb-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.92;
}

.mrb-card-body {
    padding: 16px 18px 20px;
    background: #fff;
}

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

.mrb-banner-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #b18659;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.mrb-tip {
    margin-bottom: 16px;
}

.mrb-team-card {
    margin-top: 14px;
}

.mrb-team-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #2a1f18;
}

.mrb-team-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mrb-leg-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.mrb-leg-label {
    min-width: 72px;
    font-weight: 600;
    color: #4a3f36;
}

.mrb-leg-select {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 520px;
    padding: 8px 10px;
    border: 1px solid #dfc4ae;
    border-radius: 8px;
    font-size: 14px;
}

.mrb-actions {
    margin-top: 6px;
}

.mrb-readonly {
    margin: 0;
}

.mrb-readonly-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e6ddd4;
    font-size: 0.95rem;
}

.mrb-readonly-row:last-child {
    border-bottom: none;
}

.mrb-readonly-row dt {
    margin: 0;
    font-weight: 600;
    color: #475569;
}

.mrb-readonly-row dd {
    margin: 0;
    color: #2a1f18;
}

/* 赛后打印奖状（mpt- 前缀，与打印检录单 mpc- 区分） */
.mpt-print-center {
    margin-top: 20px;
    padding: 20px 22px;
}

.mpt-print-center-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #163d6e;
}

.mpt-print-center-desc {
    margin: 0 0 16px;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mpt-shell {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45, 32, 22, 0.08);
    border: 1px solid #e3d9ce;
    background: #fff;
}

.mpt-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
    color: #eef2ff;
    position: relative;
}

.mpt-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

.mpt-hero > * {
    position: relative;
    z-index: 1;
}

.mpt-hero-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.mpt-hero-text {
    min-width: 0;
}

.mpt-hero-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.mpt-hero-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.93;
}

.mpt-body {
    padding: 20px 20px 22px;
}

.mpt-intro {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}

.mpt-form {
    margin: 0;
}

.mpt-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mpt-tpl-card {
    display: block;
    position: relative;
    margin: 0;
    border: 2px solid #e3d9ce;
    border-radius: 12px;
    padding: 14px 12px 12px 38px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #faf7f2;
}

.mpt-tpl-card:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.mpt-tpl-card:has(.mpt-tpl-radio:checked) {
    border-color: #b18659;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px rgba(177, 134, 89, 0.28);
}

.mpt-tpl-radio {
    position: absolute;
    left: 14px;
    top: 18px;
    width: 16px;
    height: 16px;
    accent-color: #b18659;
}

.mpt-tpl-name {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    color: #2a1f18;
    margin-bottom: 6px;
}

.mpt-tpl-meta {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.mpt-tpl-style {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #a89888;
    line-height: 1.35;
}

.mpt-save-row {
    margin-bottom: 8px;
}

.mpt-save-btn {
    padding: 11px 24px;
    border-radius: 10px;
    background: #b18659 !important;
    border-color: #b18659 !important;
}

.mpt-save-btn:hover {
    filter: brightness(1.05);
}

.mpt-links {
    text-align: center;
    padding-top: 18px;
    margin-top: 10px;
    border-top: 1px solid #e3d9ce;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.mpt-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5b21b6;
    text-decoration: none;
}

.mpt-links a:hover {
    text-decoration: underline;
}

.mpt-tpl-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpt-preview-open {
    align-self: flex-start;
}

/* 奖状模板预览弹层 */
.mpt-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
}

.mpt-preview-modal[hidden] {
    display: none !important;
}

.mpt-preview-modal:not([hidden]) {
    display: flex;
}

.mpt-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 32, 22, 0.55);
    cursor: pointer;
}

.mpt-preview-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    padding: 16px 18px 20px;
}

.mpt-preview-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mpt-preview-modal__head strong {
    font-size: 1.05rem;
    color: #2a1f18;
}

.mpt-preview-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #faf6f1;
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mpt-preview-modal__close:hover {
    background: #e3d9ce;
    color: #2a1f18;
}

.mpt-preview-modal__hint {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.mpt-preview-modal__meta {
    margin: 0 0 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #4338ca;
    line-height: 1.45;
    min-height: 1.2em;
}

.mpt-preview-modal__cert-wrap {
    padding: 4px 0;
}

.mpt-preview-modal__cert-wrap--land .mpt-preview-cert {
    max-width: none;
    width: 100%;
}

.mpt-preview-modal__cert-wrap:not(.mpt-preview-modal__cert-wrap--land) .mpt-preview-cert {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* 各模板预览：边框与标题色区分（与目录中纸张/方向对应） */
.mpt-preview-cert--tpl1 {
    border-color: #b8860b;
}

.mpt-preview-cert--tpl1 .certificate-title {
    color: #9a6b00;
}

.mpt-preview-cert--tpl2 {
    border-color: #b18659;
    border-width: 3px;
}

.mpt-preview-cert--tpl2 .certificate-title {
    color: #1e40af;
    letter-spacing: 3px;
}

.mpt-preview-cert--tpl3 {
    border-color: #1e4d8c;
    border-style: double;
    border-width: 4px;
}

.mpt-preview-cert--tpl3 .certificate-title {
    color: #1e4d8c;
}

.mpt-preview-cert--tpl4 {
    border-color: #d97706;
    border-width: 3px;
}

.mpt-preview-cert--tpl4 .certificate-title {
    color: #b45309;
    font-size: 32px;
}

.mpt-preview-cert--tpl5 {
    border-color: #be123c;
}

.mpt-preview-cert--tpl5 .certificate-title {
    color: #9f1239;
    font-size: 26px;
    letter-spacing: 8px;
}

.mpt-preview-cert--tpl6 {
    border-color: #b18659;
}

.mpt-preview-cert--tpl6 .certificate-title {
    color: #5b21b6;
}

.mpt-preview-cert--tpl7 {
    border-color: #9f7750;
}

.mpt-preview-cert--tpl7 .certificate-title {
    color: #6b4423;
}

.mpt-preview-cert--tpl8 {
    border-color: #57534e;
    border-width: 3px;
}

.mpt-preview-cert--tpl8 .certificate-title {
    color: #44403c;
    font-size: 34px;
}

.mpt-preview-cert--tpl9 {
    border-color: #9f7750;
    border-width: 3px;
}

.mpt-preview-cert--tpl9 .certificate-title {
    color: #4338ca;
    letter-spacing: 2px;
}

.mpt-preview-cert--tpl10 {
    border-color: #475569;
}

.mpt-preview-cert--tpl10 .certificate-title {
    color: #4a3f36;
}

.mpt-preview-cert--custom,
.mpt-preview-cert--custom_a,
.mpt-preview-cert--custom_b {
    border-style: dashed;
    border-width: 2px;
    border-color: #9333ea;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 40%);
}

.mpt-preview-cert--custom .certificate-title,
.mpt-preview-cert--custom_a .certificate-title,
.mpt-preview-cert--custom_b .certificate-title {
    color: #7e22ce;
}

.mpt-preview-modal .mpt-preview-cert {
    min-height: auto;
    padding: 22px 18px;
    margin: 0;
}

.mpt-preview-modal .certificate-title {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.mpt-preview-modal .certificate-text {
    font-size: 17px;
    line-height: 1.85;
}

.mpt-preview-modal .certificate-footer {
    margin-top: 28px;
    font-size: 0.95rem;
}

/* 赛中：修改预赛录取人数（mpa-） */
.mpa-shell {
    margin-top: 12px;
}

.mpa-intro {
    margin: 0 0 16px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #dfc4ae;
    background: linear-gradient(180deg, #fff6ea 0%, #faf7f2 100%);
    color: #1e3a5f;
    font-size: 0.92rem;
    line-height: 1.65;
}

.mpa-intro-title {
    margin: 10px 0 6px;
    font-weight: 700;
    color: #1e40af;
    font-size: 0.95rem;
}

.mpa-intro-title:first-child {
    margin-top: 0;
}

.mpa-intro-p {
    margin: 0 0 4px;
}

.mpa-intro-ul {
    margin: 6px 0 0;
    padding-left: 1.2em;
}

.mpa-body-card {
    padding: 18px 18px 20px;
}

.mpa-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mpa-card-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #2a1f18;
}

.mpa-card-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.mpa-empty {
    margin: 0;
}

.mpa-table-wrap {
    margin-bottom: 8px;
}

.mpa-table tbody tr:nth-child(even) {
    background: #faf7f2;
}

.mpa-th-narrow {
    white-space: nowrap;
    width: 1%;
}

.mpa-th-input {
    min-width: 88px;
}

.mpa-badge-group {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 10px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.88rem;
    font-weight: 600;
}

.mpa-gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.mpa-gender--male {
    background: #b18659;
}

.mpa-gender--female {
    background: #db2777;
}

.mpa-gender--any {
    background: #64748b;
}

.mpa-pill {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff6ea;
    color: #6b4423;
    font-weight: 600;
    font-size: 0.9rem;
}

.mpa-desc {
    display: block;
    color: #475569;
    font-size: 0.9rem;
}

.mpa-desc-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #a89888;
    line-height: 1.35;
}

.mpa-save-row {
    margin-top: 14px;
}

.mpa-save-btn {
    padding: 10px 22px;
    border-radius: 10px;
}

.mpa-form {
    margin: 0;
}

/* 赛中：电计时设置（mts-） */
.mts-shell {
    margin-top: 12px;
}

.mts-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(9, 88, 217, 0.25);
}

.mts-banner-ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.mts-banner-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.mts-card {
    background: #fff;
    border: 1px solid #e6ddd4;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(45, 32, 22, 0.04);
}

.mts-step1 {
    position: relative;
    margin-bottom: 10px;
}

.mts-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mts-step-badge--blue {
    background: #e6f4ff;
    color: #1677ff;
}

.mts-step-badge--green {
    background: #f4f8fd;
    color: #1e4d8c;
}

.mts-step1-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 10px;
}

.mts-step1-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff6ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mts-h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #2a1f18;
}

.mts-h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #3d342f;
}

.mts-lead {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.mts-desc {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.mts-export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.mts-btn-export {
    min-width: 148px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}

.mts-btn-export--blue {
    background: #1677ff;
}

.mts-btn-export--blue:hover {
    filter: brightness(1.06);
    color: #fff;
}

.mts-btn-export--amber {
    background: #faad14;
    color: #1f2937;
}

.mts-btn-export--amber:hover {
    filter: brightness(1.05);
    color: #111827;
}

.mts-btn-export--red {
    background: #f5222d;
}

.mts-btn-export--red:hover {
    filter: brightness(1.06);
    color: #fff;
}

.mts-fine {
    margin: 0;
    font-size: 0.82rem;
    color: #a89888;
}

.mts-fine a {
    color: #b18659;
    font-weight: 600;
    text-decoration: none;
}

.mts-fine a:hover {
    text-decoration: underline;
}

.mts-between {
    text-align: center;
    margin: 18px 0 14px;
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.mts-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.mts-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mts-method-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.mts-method-ico--upload {
    background-color: #e6f4ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='1.8'%3E%3Cpath d='M12 4v12M8 8l4-4 4 4'/%3E%3Crect x='4' y='16' width='16' height='4' rx='1'/%3E%3C/svg%3E");
}

.mts-method-ico--folder {
    background-color: #f4f8fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4d8c' stroke-width='1.6'%3E%3Cpath d='M4 6h6l2 2h8v12H4z'/%3E%3C/svg%3E");
}

.mts-callout {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.mts-callout-title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ad6800;
}

.mts-callout-ol {
    margin: 0;
    padding-left: 1.2em;
    font-size: 0.85rem;
    color: #595959;
    line-height: 1.55;
}

.mts-callout-ol a {
    color: #1677ff;
    font-weight: 600;
}

.mts-go {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

.mts-btn-green {
    background: #1e63d9;
    border-color: #1e63d9;
    color: #fff;
}

.mts-btn-green:hover {
    filter: brightness(1.05);
    color: #fff;
}

.mts-foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.mts-info {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.mts-info--blue {
    background: #f0f7ff;
    border: 1px solid #bae0ff;
    color: #344054;
}

.mts-info--amber {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #595959;
}

.mts-ol {
    margin: 0;
    padding-left: 1.2em;
}

.mts-prefs {
    margin-top: 4px;
}

.mts-prefs-form {
    margin-top: 8px;
}

.mts-prefs-actions {
    margin-top: 12px;
}

/* 赛后成绩汇总：分组表（mrps-） */
.mrps-shell {
    margin-top: 12px;
}

.mrps-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    background: #3d342f;
    color: #faf7f2;
    border-radius: 10px;
    margin-bottom: 14px;
}

.mrps-topbar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.mrps-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mrps-export-btn.btn,
.mrps-export-btn.btn.btn-primary {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
}

.mrps-export-btn .mrps-export-ico svg {
    width: 16px;
    height: 16px;
}

.mrps-export-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mrps-export-ico {
    display: flex;
}

.mrps-block {
    margin-bottom: 16px;
    padding: 16px 18px 18px;
}

.mrps-block-title {
    margin: 0.65em 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a1f18;
    text-align: center;
}

.mrps-table-wrap {
    margin: 0;
}

.mrps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-family: SimSun, "Songti SC", STSong, "Noto Serif CJK SC", serif;
}

.mrps-table th,
.mrps-table td {
    border: 1px solid #d4c4b6;
    padding: 14px 8px;
    text-align: center;
    vertical-align: middle;
}

.mrps-table thead th {
    background: #e3d9ce;
    color: #141210;
    font-weight: 700;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 0.96rem;
    font-family: "Microsoft YaHei", "Microsoft JhengHei", SimHei, "PingFang SC", "Heiti SC", "Noto Sans CJK SC", sans-serif;
}

.mrps-table thead th.mrps-th-gender {
    white-space: nowrap;
    width: 6.5em;
    min-width: 6.5em;
    max-width: 8em;
}

.mrps-td-event,
.mrps-td-gender {
    font-weight: 600;
}

.mrps-td-event {
    width: 9.5em;
    max-width: 11em;
    white-space: normal;
    word-break: break-word;
}

.mrps-td-gender {
    width: 6.5em;
    min-width: 6em;
    max-width: 8em;
    text-align: center;
    white-space: nowrap;
}

.mrps-row--male .mrps-td-event,
.mrps-row--male .mrps-td-gender {
    background: #d4edda;
    color: #14532d;
}

.mrps-row--female .mrps-td-event,
.mrps-row--female .mrps-td-gender {
    background: #fce4ec;
    color: #9d174d;
}

.mrps-row--mixed .mrps-td-event,
.mrps-row--mixed .mrps-td-gender {
    background: #fff3e0;
    color: #b45309;
}

.mrps-td-rank {
    color: #141210;
    min-width: 72px;
    font-size: 0.96rem;
    font-family: "Microsoft YaHei", "Microsoft JhengHei", SimHei, "PingFang SC", "Heiti SC", "Noto Sans CJK SC", sans-serif;
}

.mrps-legend {
    margin-top: 20px;
    padding: 14px 16px;
    background: #faf7f2;
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #475569;
}

.mrps-legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 6px;
}

.mrps-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mrps-swatch--male {
    background: #d4edda;
}

.mrps-swatch--female {
    background: #fce4ec;
}

.mrps-swatch--mixed {
    background: #fff3e0;
}

.mrps-legend-note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #a89888;
}

/* 成绩汇总：主区上移、名次格三行 */
.gb-admin-inner--mrps-result-summary.section-gap {
    padding-top: 6px;
}

body.page-mrps-result-summary .gb-admin-content {
    padding-top: 8px;
}

body.page-mrps-result-summary .mrps-shell {
    margin-top: 4px;
}

body.page-mrps-result-summary .mrps-topbar {
    margin-bottom: 10px;
}

body.page-mrps-result-summary .mrps-block.card {
    padding-top: 10px;
    padding-bottom: 14px;
}

body.page-mrps-result-summary .mrps-block-title {
    margin-top: 0.65em;
    margin-bottom: 0.65em;
}

.mrps-cell-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    font-size: inherit;
    text-align: center;
}

.mrps-cell-line {
    max-width: 100%;
    word-break: break-word;
}

.mrps-cell-name {
    font-weight: 600;
}

.mrps-cell-perf {
    font-size: 1em;
    color: #1f1c1a;
}

.mrps-cell-class {
    font-size: 0.98em;
    color: #252220;
    line-height: 1.35;
}

.mrps-empty {
    margin-top: 12px;
}

/* 赛后综合查询平台（mpcq-） */
.mpcq-platform {
    margin-top: 12px;
    padding: 0;
}

.mpcq-card {
    margin: 0;
    padding: 22px 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(45, 32, 22, 0.08);
    border: 1px solid #e8ecf4;
}

.mpcq-query-panel {
    background: #eef1f6;
    border-radius: 10px;
    padding: 16px 16px 18px;
    margin-bottom: 4px;
}

.mpcq-panel-tip {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #a89888;
    line-height: 1.45;
}

.mpcq-unit-form {
    margin: 0;
}

.mpcq-card-pad {
    margin-top: 8px;
}

.mpcq-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.mpcq-card-ico {
    display: flex;
    color: #637ae8;
}

.mpcq-card-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #2a1f18;
    letter-spacing: 0.02em;
}

.mpcq-type-label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.mpcq-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.mpcq-type-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4a3f36;
    text-decoration: none;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mpcq-type-tab:hover {
    border-color: #637ae8;
    color: #637ae8;
}

.mpcq-type-tab.is-active {
    background: #637ae8;
    border-color: #637ae8;
    color: #fff;
}

.mpcq-type-tab.is-active .mpcq-type-tab-ico {
    color: inherit;
}

.mpcq-type-tab-ico {
    display: flex;
    color: #a89888;
}

.mpcq-type-tab.is-active .mpcq-type-tab-ico {
    color: #fff;
}

.mpcq-group-form {
    margin-bottom: 0;
}

.mpcq-group-block {
    display: block;
}

.mpcq-group-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.mpcq-group-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.mpcq-session-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e8ecf4;
}

.mpcq-session-hint {
    margin: 0 0 12px;
    font-size: 0.86rem;
    color: #64748b;
}

.mpcq-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px 16px;
    margin-bottom: 16px;
}

.mpcq-filter-grid--compact {
    margin-bottom: 12px;
}

.mpcq-field--wide {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .mpcq-field--wide {
        grid-column: span 2;
    }
}

.mpcq-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.mpcq-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mpcq-athlete-search {
    margin: 14px 0 18px;
    padding: 18px 20px;
    border: 1px solid #e8ecf4;
    border-radius: 10px;
    background: #fff;
}

.mpcq-athlete-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
}

.mpcq-athlete-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.mpcq-athlete-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.mpcq-athlete-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
}

.mpcq-athlete-submit-ico {
    display: flex;
    color: inherit;
}

.mpcq-athlete-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 32px;
    text-align: center;
}

.mpcq-athlete-idle--nomatch {
    padding-top: 28px;
}

.mpcq-athlete-idle-ico {
    display: flex;
    margin-bottom: 14px;
}

.mpcq-athlete-idle-text {
    margin: 0;
    max-width: 420px;
    font-size: 0.95rem;
    color: #a89888;
    line-height: 1.55;
}

.mpcq-result-panel {
    min-height: 220px;
    margin-top: 8px;
}

.mpcq-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px 28px;
    text-align: center;
}

.mpcq-idle-ico {
    display: flex;
    margin-bottom: 12px;
    opacity: 0.95;
}

.mpcq-idle-text {
    margin: 0;
    font-size: 0.95rem;
    color: #a89888;
}

.mpcq-idle-text--plain {
    padding: 20px 8px;
    text-align: center;
}

.mpcq-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.mpcq-result-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #3d342f;
}

.mpcq-result-meta {
    margin: 0;
    font-size: 0.86rem;
    color: #64748b;
}

.mpcq-result-meta--pad {
    margin-bottom: 10px;
}

.mpcq-table-wrap {
    overflow-x: auto;
}

.mpcq-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.mpcq-table th,
.mpcq-table td {
    border: 1px solid #e3d9ce;
    padding: 9px 8px;
    text-align: center;
    vertical-align: middle;
}

.mpcq-table thead th {
    background: #faf6f1;
    color: #4a3f36;
    font-weight: 700;
    white-space: nowrap;
}

.mpcq-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.mpcq-td-remark {
    max-width: 160px;
    text-align: left;
    word-break: break-word;
}

.mpcq-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mpcq-session-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 4px;
}

@media (min-width: 960px) {
    .mpcq-session-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.mpcq-session-block {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 10px;
    padding: 14px 14px 16px;
}

.mpcq-session-block-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.mpcq-session-empty {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.mpcq-session-table-wrap {
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0;
}

.mpcq-session-table th,
.mpcq-session-table td {
    font-size: 0.86rem;
    padding: 10px 8px;
}

.mpcq-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.mpcq-status-badge--done {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.mpcq-status-badge--pending {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde68a;
}

/* 赛后队伍得分统计（mpts-） */
.mpts-root {
    margin-top: 8px;
}

.mpts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(45, 32, 22, 0.06);
}

.mpts-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpts-toolbar-menu {
    padding: 6px 10px;
    font-size: 1.1rem;
    line-height: 1;
    border: 1px solid #e3d9ce;
    border-radius: 8px;
    background: #fff;
    color: #4a3f36;
    cursor: pointer;
}

.mpts-toolbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2a1f18;
}

.mpts-toolbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.mpts-toolbar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

.mpts-toolbar-link:hover {
    color: #1e4d8c;
}

.gb-admin-strip .mpts-toolbar-nav .mpts-toolbar-link,
.gb-admin-strip .mpts-toolbar-nav .mpts-toolbar-link--btn {
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    font-family: inherit;
    color: #1e293b;
}

.gb-admin-strip .mpts-toolbar-nav .mpts-toolbar-link:hover,
.gb-admin-strip .mpts-toolbar-nav .mpts-toolbar-link--btn:hover {
    color: #1e4d8c;
}

.mpts-toolbar-link--btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gb-admin-strip .mpts-toolbar-ico {
    opacity: 0.9;
    width: 20px;
    height: 20px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gb-admin-strip .mpts-toolbar-svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mpts-toolbar-ico {
    opacity: 0.8;
    font-size: 0.75rem;
}

.mpts-toolbar-logout {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.mpts-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 12px;
}

/* 个人中心（user_center）独立壳层 */
body.page-user-center-shell {
    overflow: hidden;
}

body.page-user-center-shell .page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.uc-app {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    background: #f4f8fd;
}

.uc-app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.uc-topbar {
    flex-shrink: 0;
}

.uc-topbar-user {
    font-size: 14px;
    font-weight: 600;
    color: #1e4d8c;
    margin-right: 4px;
}

.uc-topbar-nav .mpts-toolbar-link,
.uc-topbar-nav .mpts-toolbar-link--btn {
    font-size: 14px;
    font-weight: 500;
}

.uc-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 24px;
}

.uc-flash-wrap {
    margin-bottom: 12px;
}

.uc-sidebar {
    flex-shrink: 0;
    width: 220px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    transition: width 0.2s ease, margin 0.2s ease;
}

body.uc-shell-sidebar-collapsed .uc-sidebar {
    width: 0;
    margin-left: -220px;
    overflow: hidden;
    border: none;
}

.uc-sidebar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e4d8c;
    border-bottom: 1px solid #e8eef7;
    background: #f8fbff;
}

.uc-sidebar-head-ico {
    font-size: 16px;
}

.uc-nav {
    padding: 8px 0 10px;
}

.uc-nav-group-title {
    padding: 10px 14px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e4d8c;
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.uc-nav-item:hover {
    background: #f1f5f9;
    color: #1e4d8c;
}

.uc-nav-item.is-active {
    background: #e8eef7;
    color: #1e4d8c;
    font-weight: 600;
    border-left-color: #1e4d8c;
}

.uc-nav-item-ico {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.uc-nav-item.is-active .uc-nav-item-ico {
    background: #1e4d8c;
}

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

.uc-profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.uc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    color: #1e293b;
}

.uc-card--links {
    background: #eef3fa;
    border-color: #d4e3f5;
}

.uc-card-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.uc-quick-link {
    display: block;
    padding: 8px 0;
    color: #1e4d8c;
    font-weight: 600;
    text-decoration: none;
}

.uc-quick-link + .uc-quick-link {
    border-top: 1px solid #d4e3f5;
}

.uc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.uc-stat {
    text-align: center;
    padding: 10px 6px;
    background: #f8fafc;
    border-radius: 8px;
}

.uc-stat strong {
    display: block;
    font-size: 20px;
    color: #0f172a;
}

.uc-stat span {
    font-size: 12px;
    color: #64748b;
}

.uc-field {
    display: block;
    margin-bottom: 14px;
}

.uc-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.uc-field input,
.uc-field textarea {
    width: 100%;
    box-sizing: border-box;
    color: #0f172a;
}

.uc-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.uc-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.uc-input-row input {
    flex: 1;
    min-width: 0;
}

.uc-form-actions {
    margin-top: 8px;
}

.uc-tip-box {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.uc-card--referral {
    border-left: 4px solid #22c55e;
}

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

.uc-quick-grid a {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e4d8c;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.uc-quick-grid a:hover {
    background: #e8eef7;
}

.uc-card--placeholder {
    padding: 28px 24px;
}

.uc-placeholder-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}

.uc-placeholder-desc {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.6;
}

.uc-page-head {
    margin-bottom: 14px;
}

.uc-page-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.uc-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.uc-back-link {
    font-size: 14px;
    color: #1e4d8c;
    text-decoration: none;
}

.uc-back-link:hover {
    text-decoration: underline;
}

.uc-card--filter {
    margin-bottom: 14px;
}

.uc-card-title--sm {
    font-size: 15px;
    margin-bottom: 12px;
}

.uc-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}

.uc-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #334155;
}

.uc-filter-field select {
    min-width: 140px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.uc-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uc-reset-link {
    font-size: 14px;
    color: #64748b;
}

.uc-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.uc-record-count {
    font-size: 13px;
    color: #64748b;
}

.uc-table-wrap {
    overflow-x: auto;
}

.uc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #1e293b;
}

.uc-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.uc-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.uc-order-no {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #dc2626;
    word-break: break-all;
}

.uc-amount {
    font-weight: 600;
    color: #dc2626;
}

.uc-amount--plus {
    color: #16a34a;
}

.uc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.uc-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.uc-badge--warn {
    background: #fef3c7;
    color: #b45309;
}

.uc-badge--muted {
    background: #f1f5f9;
    color: #64748b;
}

.uc-badge--type {
    background: #dbeafe;
    color: #1e4d8c;
}

.uc-action-link {
    color: #1e4d8c;
    font-weight: 500;
    text-decoration: none;
}

.uc-action-link:hover {
    text-decoration: underline;
}

.uc-empty {
    margin: 0;
    padding: 20px 0;
    color: #64748b;
}

.uc-dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    margin: 0 0 16px;
}

.uc-dl dt {
    font-weight: 600;
    color: #64748b;
}

.uc-balance-line {
    margin: 0 0 8px;
    font-size: 15px;
}

.uc-balance-num {
    font-size: 20px;
    color: #1e4d8c;
}

.uc-recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.uc-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 8px;
}

.uc-plan-desc {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.uc-task-list {
    display: grid;
    gap: 12px;
}

.uc-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.uc-task-reward {
    margin: 0 0 10px;
    color: #475569;
}

@media (max-width: 960px) {
    .uc-profile-grid {
        grid-template-columns: 1fr;
    }

    body.uc-shell-sidebar-collapsed .uc-sidebar {
        margin-left: 0;
        width: 220px;
        position: fixed;
        z-index: 200;
        height: 100%;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
    }
}

.mpts-hero-bar {
    padding: 14px 18px;
    margin-bottom: 14px;
    background: #4a3f36;
    color: #faf7f2;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.mpts-card {
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 32, 22, 0.06);
}

.mpts-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #b18659 0%, #c49a6c 100%);
    color: #fff;
}

.mpts-card-head--blue {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.mpts-card-head-ico {
    display: flex;
    color: inherit;
}

.mpts-card-head-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.mpts-card-body {
    padding: 18px 20px 22px;
}

.mpts-notice {
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 8px;
}

.mpts-table-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    padding: 12px 8px;
}

.mpts-table-wrap {
    overflow-x: auto;
}

.mpts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mpts-table th,
.mpts-table td {
    border: 1px solid #e3d9ce;
    padding: 10px 12px;
    text-align: center;
}

.mpts-table thead th {
    background: #faf6f1;
    font-weight: 700;
    color: #3d342f;
}

.mpts-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.mpts-empty {
    margin-top: 12px;
}

.mpts-section {
    margin-top: 22px;
}

.mpts-section:first-of-type {
    margin-top: 8px;
}

.mpts-section-title {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

.mpts-detail-title {
    margin: 16px 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.mpts-table-wrap--wide {
    overflow-x: auto;
}

.mpts-table--rank th,
.mpts-table--rank td {
    font-size: 0.82rem;
}

.mpts-table--rank td:nth-child(3) {
    text-align: left;
}

.mpts-th-sub {
    font-weight: 600;
    font-size: 0.75rem;
}

.mpts-tr--alt {
    background: #f8fafc;
}

.mpts-table--detail th,
.mpts-table--detail td {
    font-size: 0.85rem;
}

.mpts-table--team thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.mpts-table--team .mpts-th-rank {
    width: 72px;
    text-align: center;
}

.mpts-table--team .mpts-th-team {
    min-width: 160px;
    text-align: left;
}

.mpts-td-rank,
.mpts-td-count {
    text-align: center;
}

.mpts-rank-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mpts-rank-num {
    font-weight: 700;
    color: #1e293b;
}

.mpts-medal {
    font-size: 1rem;
    line-height: 1;
}

.mpts-team-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: #1e4d8c;
    text-align: left;
}

.mpts-team-toggle:hover:not([disabled]) {
    color: #1d4ed8;
}

.mpts-team-toggle[disabled] {
    cursor: default;
    color: #334155;
}

.mpts-team-toggle[aria-expanded="true"] .mpts-team-caret {
    transform: rotate(180deg);
}

.mpts-team-name {
    font-weight: 600;
}

.mpts-team-caret {
    display: inline-block;
    font-size: 0.65rem;
    color: #64748b;
    transition: transform 0.15s ease;
}

.mpts-pill {
    display: inline-block;
    min-width: 44px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.mpts-pill--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.mpts-pill--green {
    background: #dcfce7;
    color: #15803d;
}

.mpts-pill--amber {
    background: #fef3c7;
    color: #b45309;
}

.mpts-dash {
    color: #94a3b8;
}

.mpts-team-detail-row > td {
    padding: 0 !important;
    border-top: none;
    background: #f8fafc;
}

.mpts-team-detail-panel {
    margin: 0 0 8px;
    padding: 14px 16px 16px 20px;
    border-left: 4px solid #3b82f6;
    background: #fff;
}

.mpts-team-detail-title {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

.mpts-table-wrap--inner {
    overflow-x: auto;
}

.mpts-table--team-detail {
    font-size: 0.84rem;
}

.mpts-table--team-detail thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.mpts-event-name {
    margin-right: 6px;
    font-weight: 500;
}

.mpts-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

.mpts-tag--event {
    background: #e0f2fe;
    color: #0369a1;
}

.mpts-tag--gender {
    background: #dbeafe;
    color: #1d4ed8;
}

.mpts-rank-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.mpts-rank-badge--1 {
    background: #fef3c7;
    color: #b45309;
}

.mpts-rank-badge--2 {
    background: #e2e8f0;
    color: #475569;
}

.mpts-rank-badge--3 {
    background: #ffedd5;
    color: #c2410c;
}

.mpts-manual-tag {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #ea580c;
    font-weight: 500;
}

/* 赛后破纪录汇总（mprs-） */
.mprs-root {
    margin-top: 8px;
}

.mprs-empty {
    margin-top: 12px;
}

.mprs-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #e6f7ff;
    border: 1px solid #91caff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(45, 32, 22, 0.04);
}

.mprs-notice-banner--ok {
    background: #eef3fa;
    border-color: #6ee7b7;
}

.mprs-notice-banner-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.mprs-notice-banner--ok .mprs-notice-banner-ico {
    background: #059669;
}

.mprs-notice-banner-text {
    flex: 1;
    min-width: 0;
}

.mprs-notice-banner-lead {
    margin: 0 0 6px;
    font-size: 0.98rem;
    color: #4a301f;
    line-height: 1.45;
}

.mprs-notice-banner--ok .mprs-notice-banner-lead {
    color: #064e3b;
}

.mprs-notice-banner-meta {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.mprs-table-wrap {
    margin-top: 4px;
}

/* 赛后导出成绩数据（mpde-） */
.mpde-root {
    margin-top: 8px;
}

.mpde-empty {
    margin-top: 12px;
}

.mpde-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e3d9ce;
    border-top: 4px solid #b18659;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(45, 32, 22, 0.06);
    overflow: hidden;
}

.mpde-card-head {
    padding: 14px 20px;
    background: linear-gradient(90deg, #b18659 0%, #c49a6c 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.mpde-card-body {
    padding: 22px 24px 26px;
}

.mpde-subtitle {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a3f36;
}

.mpde-format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

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

.mpde-format-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    border: 2px solid #e3d9ce;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mpde-format-card:hover {
    border-color: #dfc4ae;
    background: #fff;
}

.mpde-format-card--active {
    border-color: #b18659;
    background: #fff6ea;
    box-shadow: 0 0 0 1px rgba(177, 134, 89, 0.15);
}

.mpde-format-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.mpde-format-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #b18659;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mpde-format-ico--doc {
    background: #8b633f;
}

.mpde-format-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2a1f18;
}

.mpde-format-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.mpde-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding-top: 4px;
}

.mpde-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}

.mpde-check input {
    width: 18px;
    height: 18px;
    accent-color: #b18659;
}

.mpde-check-hint {
    margin: -4px 0 0 28px;
    font-size: 0.78rem;
    color: #a89888;
    line-height: 1.45;
}

.mpde-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #b18659 0%, #c49a6c 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(177, 134, 89, 0.35);
}

.mpde-submit:hover {
    filter: brightness(1.05);
}

.mpde-submit-ico {
    font-size: 1.1rem;
    line-height: 1;
}

/* 运动会列表 — 创建新运动会（mct-） */
.meets-page--create-only {
    max-width: 960px;
    background: #faf6f1;
    margin: -12px auto 0;
    padding: 16px 20px 28px;
    border-radius: 12px;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .meets-page--create-only {
        padding: 20px 24px 32px;
    }
}

.mct-create-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.mct-toolbar {
    margin-bottom: 18px;
}

.mct-card {
    background: #fff;
    border: 1px solid #e3d9ce;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(45, 32, 22, 0.06);
    overflow: hidden;
}

.mct-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e3d9ce;
}

.mct-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mct-card-head-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff6ea;
    color: #b18659;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.mct-card-head-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a1f18;
}

.mct-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.88rem;
    color: #475569;
    background: #faf7f2;
    border: 1px solid #e3d9ce;
    border-radius: 8px;
    text-decoration: none;
}

.mct-back-btn:hover {
    background: #faf6f1;
    color: #3d342f;
}

.mct-back-ico {
    font-size: 0.95rem;
    line-height: 1;
}

.mct-card-body {
    padding: 22px 22px 24px;
}

.mct-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}

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

.mct-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mct-field--full {
    grid-column: 1 / -1;
}

.mct-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.mct-req {
    color: #dc2626;
    text-decoration: none;
    font-weight: 700;
}

.mct-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #d4c4b6;
    border-radius: 8px;
    background: #fff;
    color: #2a1f18;
    box-sizing: border-box;
}

.mct-input:focus {
    outline: none;
    border-color: #b18659;
    box-shadow: 0 0 0 3px rgba(177, 134, 89, 0.15);
}

.mct-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 4px;
}

.mct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.mct-btn-ico {
    font-size: 1rem;
    line-height: 1;
}

.mct-btn--ghost {
    background: #fff;
    color: #475569;
    border: 1px solid #d4c4b6;
}

.mct-btn--ghost:hover {
    background: #faf7f2;
}

.mct-btn--primary {
    background: linear-gradient(90deg, #b18659 0%, #c49a6c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(177, 134, 89, 0.3);
}

.mct-btn--primary:hover {
    filter: brightness(1.05);
}

/* 运动会列表 — 复制运动会（mcp-） */
.meets-page--copy-only {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.mcp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #667085;
}

.mcp-breadcrumb a {
    color: #475467;
    text-decoration: none;
}

.mcp-breadcrumb a:hover {
    color: #1677ff;
    text-decoration: underline;
}

.mcp-breadcrumb-sep {
    color: #98a2b3;
}

.mcp-breadcrumb-current {
    color: #101828;
    font-weight: 600;
}

.mcp-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mcp-source-card,
.mcp-form-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d6e4ff;
}

.mcp-source-card {
    background: #eef4ff;
    border-color: #91caff;
}

.mcp-form-card {
    background: #fff;
    border-color: #ece4da;
    box-shadow: 0 2px 8px rgba(45, 32, 22, 0.04);
}

.mcp-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(145, 202, 255, 0.45);
}

.mcp-form-card .mcp-card-head {
    border-bottom-color: #ece4da;
}

.mcp-card-head-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.mcp-card-head-ic--form {
    background: #fff6ea;
    color: #b18659;
    border-radius: 6px;
    width: auto;
    height: auto;
    padding: 2px 4px;
    font-size: 16px;
}

.mcp-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #101828;
}

.mcp-source-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
    padding: 16px 18px 18px;
}

@media (max-width: 720px) {
    .mcp-source-grid {
        grid-template-columns: 1fr;
    }
}

.mcp-kv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcp-kv-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    align-items: start;
    font-size: 14px;
    line-height: 1.5;
}

.mcp-kv-label {
    color: #667085;
}

.mcp-kv-value {
    color: #101828;
    font-weight: 600;
}

.mcp-form-body {
    padding: 18px 18px 20px;
}

.mcp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

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

.mcp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mcp-field--full {
    grid-column: 1 / -1;
}

.mcp-label {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.mcp-req {
    color: #f5222d;
    text-decoration: none;
    font-weight: 700;
}

.mcp-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #101828;
    box-sizing: border-box;
}

.mcp-input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.mcp-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e6fffb;
    border: 1px solid #87e8de;
    color: #135200;
}

.mcp-notice-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #08979c;
}

.mcp-notice-list {
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #237804;
}

.mcp-notice-foot {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #08979c;
}

.mcp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.mcp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #475467;
    text-decoration: none;
}

.mcp-back-link:hover {
    color: #1677ff;
}

.mcp-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.25);
}

.mcp-confirm-btn:hover {
    background: #4096ff;
}

.mcp-confirm-ic {
    font-size: 15px;
    line-height: 1;
}

/* 全局高可读性优化（户外强光场景）：保留暖色，提升对比度 */
:root {
    --gb-bg-page: #f6efe6;
    --gb-bg-subtle: #efe2d2;
    --gb-border: #cfae8d;
    --gb-border-soft: #d9c0a5;
    --gb-border-input: #ba936f;
    --gb-text: #2f241b;
    --gb-text-strong: #22170f;
    --gb-text-muted: #5f4a39;
    --gb-accent: #9f6d3f;
    --gb-accent-dark: #7f5128;
    --gb-accent-ink: #5f3b1f;
    --gb-accent-soft: #f4ddbf;
    --gb-accent-softer: #f8ebd7;
    --gb-link: #6b4325;
}

body {
    color: var(--gb-text);
    background: var(--gb-bg-page);
}

.card,
.auth-card,
.table-card,
.gb-admin-strip,
.gb-sb-panel,
.mct-card {
    border-color: var(--gb-border-soft) !important;
}

.gb-admin-main,
.gb-admin-content,
.gb-admin-inner,
.meets-page--create-only {
    background: var(--gb-bg-page);
}

.gb-group-table th,
.table-card thead th,
.mr-rules-form .mr-sessions-table th {
    color: var(--gb-accent-ink);
    background: linear-gradient(180deg, #f8ebd7 0%, #f0d5b1 100%);
    border-bottom-color: #cfae8d;
}

.btn-primary,
.team-login-submit,
.mct-btn--primary,
.mpde-submit {
    background: linear-gradient(135deg, #b27a45 0%, #8a582e 100%);
    border: 1px solid rgba(76, 45, 23, 0.38);
}

.btn-secondary {
    color: #5d3a1f;
    background: #f2dcc2;
    border: 1px solid #c79f79;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="time"],
input[type="date"],
select,
textarea,
.mct-input {
    border-color: var(--gb-border-input);
    color: var(--gb-text-strong);
    background: #fffdf9;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="time"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.mct-input:focus {
    border-color: var(--gb-accent);
    box-shadow: 0 0 0 3px rgba(159, 109, 63, 0.24);
}

.nav a.active,
.nav a:hover,
.topbar-public-nav > a:hover,
.topbar-public-nav > a.is-active {
    background: #f4ddbf;
    color: #6a3f1f;
}

/* 全局主题：与侧栏深蓝 #1e4d8c 配套 */
:root {
    --gb-shell-header-h: 60px;
    --gb-bg-page: #f4f8fd;
    --gb-bg-subtle: #e8eef7;
    --gb-bg-card: #ffffff;
    --gb-border: #e2e8f0;
    --gb-border-soft: #e2e8f0;
    --gb-border-input: #cbd5e1;
    --gb-text: #1e293b;
    --gb-text-strong: #0f172a;
    --gb-text-muted: #475569;
    --gb-accent: #1e4d8c;
    --gb-accent-dark: #163d6e;
    --gb-accent-ink: #163d6e;
    --gb-accent-soft: #e8eef7;
    --gb-accent-softer: #f4f8fd;
    --gb-link: #1e4d8c;
    --gb-cta-orange: #f15a24;
}

body,
.gb-admin-main,
.gb-admin-content,
.gb-admin-inner,
.meets-page--create-only {
    color: var(--gb-text);
    background: var(--gb-bg-page);
}

.card,
.auth-card,
.table-card,
.gb-sb-panel,
.mct-card {
    border-color: var(--gb-border-soft) !important;
    background: #fff;
}

.gb-group-table th,
.table-card thead th,
.mr-rules-form .mr-sessions-table th {
    color: var(--gb-accent-ink);
    background: linear-gradient(180deg, #f4f8fd 0%, #e8eef7 100%);
    border-bottom-color: #c5d5e8;
}

.btn-primary,
.team-login-submit,
.mct-btn--primary,
.mpde-submit {
    color: #fff;
    background: var(--gb-accent);
    border: 1px solid rgba(30, 77, 140, 0.35);
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.2);
}

.btn-primary:hover,
.team-login-submit:hover,
.mct-btn--primary:hover,
.mpde-submit:hover {
    background: var(--gb-accent-dark);
    filter: none;
}

.btn-success {
    color: #fff;
    background: #2e7d32;
    border: 1px solid rgba(27, 94, 32, 0.45);
    box-shadow: 0 2px 6px rgba(27, 94, 32, 0.26);
}

.btn-success:hover {
    background: #1b5e20;
    filter: none;
}

.btn-secondary {
    color: var(--gb-accent);
    background: #fff;
    border: 1.5px solid var(--gb-accent);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="time"],
input[type="date"],
select,
textarea,
.mct-input {
    border-color: var(--gb-border-input);
    color: var(--gb-text-strong);
    background: #ffffff;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="time"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.mct-input:focus {
    border-color: var(--gb-accent);
    box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.18);
}

.nav a.active,
.nav a:hover,
.topbar-public-nav > a:hover,
.topbar-public-nav > a.is-active {
    background: var(--gb-accent-soft);
    color: var(--gb-accent-dark);
}

.gb-admin-app {
    background: #f4f8fd;
}

.gb-admin-main {
    background: #f4f8fd;
}

.gb-admin-strip {
    background: #f4f8fd;
    border-bottom-color: #d4dce8;
    min-height: var(--gb-shell-header-h);
    padding-top: 0;
    padding-bottom: 0;
}

.gb-admin-strip-title {
    color: var(--gb-text-strong);
    font-size: 17px;
}

.page-admin-shell .gb-sb-brand {
    min-height: var(--gb-shell-header-h);
}

.page-admin-shell .gb-admin-strip {
    min-height: var(--gb-shell-header-h);
    align-items: center;
}

.topbar-shell-actions > a {
    color: var(--gb-text-muted);
}

.topbar-shell-actions > a:hover {
    color: var(--gb-accent);
    background: var(--gb-accent-soft);
}

.topbar-shell-user {
    color: var(--gb-text-muted);
}

.nav-btn--shell {
    color: var(--gb-text-muted);
    border: 1px solid var(--gb-border);
    background: #fff;
    border-radius: 10px;
}

.nav-btn--shell:hover {
    color: var(--gb-accent);
    border-color: var(--gb-accent);
    background: var(--gb-accent-soft);
}

.gb-admin-sidebar {
    background: #f4f8fd;
    border-right: 1px solid #d4dce8;
}

.gb-sb-details > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
    box-shadow: 0 2px 6px rgba(30, 77, 140, 0.22);
}

/* 蓝色主题：侧栏与流程菜单 */
.gb-sb-brand {
    background: #f4f8fd;
}

.gb-sb-brand::after {
    background: #d4dce8;
}

.gb-sb-brand-mark {
    background: var(--gb-accent);
}

.gb-sb-brand-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
}

.gb-sb-home {
    font-weight: 700;
    color: var(--gb-text-strong);
}

.gb-sb-home .gb-sb-ico {
    color: var(--gb-accent);
}

.gb-sb-home:hover,
.gb-sb-item:hover,
.gb-sb-item.is-active,
.gb-sb-foot-link:hover {
    color: var(--gb-accent-dark);
}

.gb-sb-tagline,
.gb-sb-item-sub,
.gb-guide-muted,
.gb-muted {
    color: var(--gb-text-muted);
}

.gb-sb-home.is-active {
    background: var(--gb-accent);
    color: #fff;
    box-shadow: 0 1px 4px rgba(30, 77, 140, 0.22);
}

.gb-sb-home.is-active .gb-sb-ico {
    color: #fff;
}

.gb-sb-panel,
.gb-sb-panel--post-stats {
    background: #fcfcfd;
    border-color: var(--gb-border);
}

.gb-sb-item:hover {
    background: var(--gb-accent-softer);
}

.gb-sb-item.is-active {
    background: var(--gb-accent-soft);
    box-shadow: inset 3px 0 0 var(--gb-accent);
}

.gb-sb-item--iconic:hover .gb-sb-item-title,
.gb-sb-item--iconic.is-active .gb-sb-item-title,
.gb-sb-item--pre:hover .gb-sb-item-title,
.gb-sb-item--pre.is-active .gb-sb-item-title {
    color: var(--gb-accent);
}

.gb-sb-item-ord {
    color: var(--gb-accent-dark);
    background: var(--gb-accent-soft);
}

.gb-sb-item--pre:hover .gb-sb-item-ord,
.gb-sb-item--pre.is-active .gb-sb-item-ord {
    background: var(--gb-accent);
    color: #fff;
}

.gb-sb-details--post-stats > .gb-sb-sum,
.gb-sb-nav .gb-sb-details:nth-of-type(1) > .gb-sb-sum,
.gb-sb-nav .gb-sb-details:nth-of-type(2) > .gb-sb-sum,
.gb-sb-nav .gb-sb-details:nth-of-type(3) > .gb-sb-sum {
    background: linear-gradient(180deg, #255fa8 0%, #1e4d8c 100%);
}

.gb-sb-item--poststat:hover .gb-sb-post-ico,
.gb-sb-item--poststat.is-active .gb-sb-post-ico {
    color: var(--gb-accent);
}

.gb-sb-item--poststat.is-active {
    box-shadow: inset 3px 0 0 var(--gb-accent);
}

/* 侧栏子项选中/悬停：与分组头深蓝 #1e4d8c 一致（仅 .gb-admin-sidebar 内） */
.gb-admin-sidebar .gb-sb-item:hover {
    background: #eef3fa;
    color: #1e4d8c;
}

.gb-admin-sidebar .gb-sb-item.is-active {
    background: #e8eef7;
    color: #1e4d8c;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #1e4d8c;
}

.gb-admin-sidebar .gb-sb-item.is-active .gb-sb-item-sub {
    color: #4a6fa5;
}

.gb-admin-sidebar .gb-sb-item--iconic:hover .gb-sb-item-title,
.gb-admin-sidebar .gb-sb-item--iconic.is-active .gb-sb-item-title,
.gb-admin-sidebar .gb-sb-item--pre:hover .gb-sb-item-title,
.gb-admin-sidebar .gb-sb-item--pre.is-active .gb-sb-item-title {
    color: #1e4d8c;
}

.gb-admin-sidebar .gb-sb-item--pre:hover .gb-sb-item-ord,
.gb-admin-sidebar .gb-sb-item--pre.is-active .gb-sb-item-ord {
    background: #1e4d8c;
    color: #fff;
}

.gb-admin-sidebar .gb-sb-item--poststat:hover .gb-sb-item-title,
.gb-admin-sidebar .gb-sb-item--poststat.is-active .gb-sb-item-title {
    color: #1e4d8c;
}

.gb-admin-sidebar .gb-sb-item--poststat:hover .gb-sb-post-ico,
.gb-admin-sidebar .gb-sb-item--poststat.is-active .gb-sb-post-ico {
    color: #1e4d8c;
}

.gb-admin-sidebar .gb-sb-item--poststat.is-active {
    box-shadow: inset 3px 0 0 #1e4d8c;
}

.gb-sb-foot {
    background: var(--gb-accent-softer);
    border-top-color: var(--gb-border);
}

.gb-sb-foot-ico {
    background: var(--gb-accent-soft);
    color: var(--gb-accent);
}

.gb-sb-expand-fab {
    border-color: var(--gb-accent);
    background: var(--gb-accent-dark);
    box-shadow: 2px 0 8px rgba(30, 77, 140, 0.25);
}

.gb-active-meet-banner {
    background: linear-gradient(90deg, #f0f9f8 0%, var(--gb-accent-soft) 100%);
    border-color: #c5d5e8;
    color: var(--gb-accent-ink);
}

.gb-active-meet-banner strong,
.mr-current-meet,
.mr-current-meet strong {
    color: var(--gb-accent-dark);
}

.mr-rules-form .mr-card,
.mr-rules-form .table-card {
    border-color: var(--gb-border);
}

.mr-badge,
.mrb-tag {
    background: var(--gb-accent-soft);
    color: var(--gb-accent-dark);
    border-color: #c5d5e8;
}

/* 系统首页模块卡片：与官网配色一致 */
.page-admin-shell .sys-home-card {
    border-color: var(--gb-border);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.page-admin-shell .sys-home-card--track::before {
    background: linear-gradient(90deg, var(--gb-accent) 0%, #43a047 100%);
}

.page-admin-shell .sys-home-card--ball::before {
    background: linear-gradient(90deg, var(--gb-cta-orange) 0%, #ff8a50 100%);
}

.page-admin-shell .sys-home-card--racket::before {
    background: linear-gradient(90deg, var(--gb-accent-dark) 0%, var(--gb-accent) 100%);
}

.page-admin-shell .sys-home-card--health::before {
    background: #94a3b8;
}

.page-admin-shell .sys-home-card-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.page-admin-shell .sys-home-card-desc {
    color: #1e293b;
    font-size: 16px;
    line-height: 1.7;
}

.page-admin-shell .sys-home-card--disabled .sys-home-card-desc {
    color: #1e293b;
    opacity: 1;
}

.page-admin-shell .sys-home-contact {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.page-admin-shell .sys-home-card--track .sys-home-use-btn.btn-primary {
    background: var(--gb-cta-orange);
    border-color: rgba(241, 90, 36, 0.35);
    box-shadow: 0 2px 6px rgba(241, 90, 36, 0.25);
}

.page-admin-shell .sys-home-card--track .sys-home-use-btn.btn-primary:hover {
    background: #d84315;
    filter: none;
}

.page-admin-shell .sys-home-card--disabled .sys-home-use-btn.btn-secondary {
    color: var(--gb-accent);
    background: #fff;
    border: 1.5px solid var(--gb-accent);
}

.page-admin-shell .sys-home-soon-label {
    color: var(--gb-text-muted);
    background: var(--gb-accent-softer);
    border-color: #c5d5e8;
}

.page-admin-shell .sys-home-contact {
    border-color: var(--gb-border);
    background: #fff;
}

.page-admin-shell .sys-home-contact-title {
    color: var(--gb-text-strong);
}

.page-admin-shell .sys-home-qr-box {
    border-color: var(--gb-border);
    background: var(--gb-accent-softer);
    color: var(--gb-text-muted);
}

.page-admin-shell .sys-home-contact .sys-home-qr-cap,
.page-admin-shell .sys-home-qr-row .sys-home-qr-cap,
.page-admin-shell figcaption.sys-home-qr-cap {
    color: #1e293b;
    font-weight: 500;
    opacity: 1;
}

/* 系统首页：说明与二维码标签统一深色（避免禁用卡 opacity 冲淡） */
.sys-home-portal .sys-home-card .sys-home-card-desc,
.sys-home-portal .sys-home-contact .sys-home-qr-cap {
    color: #1e293b;
}

/* 兜底修复：接力集体项目“进入第二步：径赛设置”按钮去黑边 */
button#pm-arr-step1-collective-next-btn.btn,
button#pm-arr-step1-collective-next-btn.btn:hover,
button#pm-arr-step1-collective-next-btn.btn:active,
button#pm-arr-step1-collective-next-btn.btn:focus,
button#pm-arr-step1-collective-next-btn.btn:focus-visible {
    background: #1e63d9 !important;
    border: 1px solid #1e63d9 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-shadow: none !important;
}

/* 强制覆盖：编辑分组工具栏三按钮去黑边 */
.gb-mg-events-toolbar #gb-mg-del-selected,
.gb-mg-events-toolbar #gb-mg-sort-selected,
.gb-mg-events-toolbar #gb-mg-add-row,
.gb-mg-events-toolbar #gb-mg-del-selected:hover,
.gb-mg-events-toolbar #gb-mg-sort-selected:hover,
.gb-mg-events-toolbar #gb-mg-add-row:hover,
.gb-mg-events-toolbar #gb-mg-del-selected:active,
.gb-mg-events-toolbar #gb-mg-sort-selected:active,
.gb-mg-events-toolbar #gb-mg-add-row:active,
.gb-mg-events-toolbar #gb-mg-del-selected:focus,
.gb-mg-events-toolbar #gb-mg-sort-selected:focus,
.gb-mg-events-toolbar #gb-mg-add-row:focus,
.gb-mg-events-toolbar #gb-mg-del-selected:focus-visible,
.gb-mg-events-toolbar #gb-mg-sort-selected:focus-visible,
.gb-mg-events-toolbar #gb-mg-add-row:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.gb-mg-events-toolbar #gb-mg-del-selected {
    border: 1px solid #f43f5e !important;
}

.gb-mg-events-toolbar #gb-mg-sort-selected {
    border: 1px solid #0891b2 !important;
}

.gb-mg-events-toolbar #gb-mg-add-row {
    border: 1px solid #16a34a !important;
}

/* 编辑分组页四个主按钮：补齐 hover/active 变色 */
#gb-mg-apply-batch:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

#gb-mg-apply-batch:active {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-del-selected:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-del-selected:active {
    background: #be123c !important;
    border-color: #be123c !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-sort-selected:hover {
    background: #0891b2 !important;
    border-color: #0891b2 !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-sort-selected:active {
    background: #0e7490 !important;
    border-color: #0e7490 !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-add-row:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.gb-mg-events-toolbar #gb-mg-add-row:active {
    background: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}

/* 成绩录入弹窗 · 底部操作按钮 */
.trk-modal-footer {
    flex-direction: column;
    align-items: stretch;
}

.trk-modal-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.trk-modal-btn-save-rank {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    font-weight: 700;
}

.trk-modal-btn-save-rank:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.trk-modal-btn-reset-score {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
    font-weight: 600;
}

.trk-modal-btn-reset-score:hover {
    background: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

.trk-modal-btn-clear-all {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    font-weight: 600;
}

.trk-modal-btn-clear-all:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.trk-modal-footer-legend {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f0f9ff;
    border: 1px solid #dbeafe;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.trk-modal-legend-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e40af;
}

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

@media (max-width: 720px) {
    .trk-modal-legend-grid {
        grid-template-columns: 1fr;
    }
}

/* 排名处理页 */
.mrrp-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.mrrp-header {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #fff;
    padding: 16px 20px;
}

.mrrp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.mrrp-progress-wrap {
    padding: 18px 20px 8px;
}

.mrrp-progress-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e3a8a;
}

.mrrp-progress-bar {
    position: relative;
    height: 28px;
    border-radius: 6px;
    background: #e5e7eb;
    overflow: hidden;
}

.mrrp-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.45s ease;
}

.mrrp-progress-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mrrp-steps {
    list-style: none;
    margin: 0;
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mrrp-step {
    border: 1px solid #dbeafe;
    border-left: 4px solid #93c5fd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #64748b;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.mrrp-step.is-done {
    background: #eff6ff;
    color: #1e3a8a;
    border-left-color: #2563eb;
    font-weight: 600;
}

.mrrp-success {
    margin: 0 20px 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #eef3fa;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #166534;
}

.mrrp-success.is-hidden {
    display: none;
}

.mrrp-success p {
    margin: 6px 0 0;
}

/* 成绩公告（排名成绩单） */
.mras-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 16px 24px;
    font-family: "SimSun", "Songti SC", "STSong", "宋体", serif;
    color: #111;
}

.mras-shell--embed,
.mras-embed-shell {
    max-width: none;
    margin: 0;
    padding: 0 16px 16px;
}

.mras-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px 16px;
    margin-top: 20px;
    margin-bottom: 14px;
}

.mras-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.mras-print-btn:hover {
    background: #1d4ed8;
}

.mras-print-tip {
    flex: 1 1 280px;
    max-width: 420px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.78rem;
    line-height: 1.45;
}

.mras-doc {
    background: #fff;
}

.mras-header {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 10px;
}

.mras-meet-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mras-doc-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}

.mras-round-line {
    margin: 0 0 8px;
    font-size: 0.92rem;
}

.mras-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 6px 0 8px;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    font-size: 0.92rem;
    font-weight: 600;
}

.mras-event-line {
    text-align: left;
}

.mras-datetime {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mras-table-wrap {
    margin-top: 0;
}

.mras-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.mras-table thead th {
    padding: 8px 6px;
    border-bottom: 1px solid #111;
    font-weight: 700;
    text-align: center;
}

.mras-table tbody td {
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
}

.mras-table tbody tr + tr td {
    border-top: 1px solid #d1d5db;
}

.mras-table tbody tr:last-child td {
    border-bottom: 1px solid #111;
}

.mras-td-rank {
    font-weight: 700;
}

.mras-rank-inner {
    display: inline-grid;
    grid-template-columns: 2em 0.9em;
    align-items: center;
    justify-items: end;
    column-gap: 3px;
}

.mras-rank-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mras-rank-star {
    justify-self: start;
    text-align: left;
    font-size: 0.82em;
    line-height: 1;
    padding-left: 3px;
}

.mras-td-unit {
    white-space: nowrap;
}

.mras-strike {
    text-decoration: line-through;
    color: #6b7280;
}

.mras-empty {
    padding: 24px 8px !important;
    color: #6b7280;
}

.mras-footer {
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid #111;
}

.mras-sign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.92rem;
}

.mras-sign-line {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mras-sign-line--left {
    text-align: left;
}

.mras-sign-line--right {
    text-align: right;
    margin-left: auto;
}

.mras-brand {
    margin: 18px 0 0;
    text-align: right;
    font-size: 0.72rem;
    color: #6b7280;
}

.mras-back {
    margin-top: 16px;
    text-align: right;
}

body.mras-sheet-embed footer.footer,
body.mras-sheet-embed .topbar,
body.mras-sheet-embed .gb-admin-sidebar,
body.mras-sheet-embed .gb-admin-strip {
    display: none !important;
}

body.mras-sheet-embed main.page {
    padding: 0 !important;
    max-width: none !important;
}

body.mras-sheet-embed .gb-admin-content,
body.mras-sheet-embed .gb-admin-inner--results-ranking {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

@media print {
    .mras-no-print {
        display: none !important;
    }

    body.page-mrrs-ranking-sheet .gb-admin-sidebar,
    body.page-mrrs-ranking-sheet .gb-admin-strip,
    body.mras-sheet-embed .gb-admin-sidebar,
    body.mras-sheet-embed .gb-admin-strip {
        display: none !important;
    }

    body.page-mrrs-ranking-sheet .gb-admin-app,
    body.mras-sheet-embed .gb-admin-app {
        display: block !important;
    }

    body.page-mrrs-ranking-sheet .gb-admin-main,
    body.mras-sheet-embed .gb-admin-main {
        min-height: 0 !important;
        background: #fff !important;
    }

    body.page-mrrs-ranking-sheet .gb-admin-content,
    body.page-mrrs-ranking-sheet .gb-admin-inner--results-ranking,
    body.mras-sheet-embed .gb-admin-content,
    body.mras-sheet-embed main.page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mras-shell {
        max-width: 100%;
        margin: 0;
        padding: 8mm 10mm;
    }
}

/* 总分排名 · 分组积分排名统计表 */
.mrank-root {
    max-width: 1280px;
    margin: 0 auto;
}

.mrank-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1e3a5f 0%, #2c4a6e 45%, #334155 100%);
    color: #f8fafc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.mrank-toolbar-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

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

.mrank-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.55);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.mrank-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.mrank-empty {
    margin-top: 12px;
}

.mrank-options {
    margin-bottom: 14px;
    padding: 12px 16px;
}

.mrank-cross-form {
    margin: 0;
}

.mrank-cross-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.mrank-block {
    margin-bottom: 18px;
    padding: 0 0 12px;
    overflow: hidden;
}

.mrank-block-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.mrank-table-wrap {
    overflow-x: auto;
    padding: 0 12px 12px;
}

.mrank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.mrank-table th,
.mrank-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
}

.mrank-table thead th {
    background: #e2e8f0;
    font-weight: 800;
    color: #1e293b;
}

.mrank-th-dist {
    text-align: center;
}

.mrank-th-sub {
    font-size: 12px;
    font-weight: 700;
}

.mrank-td-rank {
    font-weight: 800;
    width: 48px;
}

.mrank-td-total {
    font-weight: 800;
    min-width: 56px;
    background: #fffbeb;
    color: #92400e;
}

.mrank-td-unit {
    text-align: left;
    padding-left: 10px;
    min-width: 120px;
}

.mrank-tr--alt td {
    background: #f8fafc;
}

.mrank-tr--alt .mrank-td-total {
    background: #fef3c7;
}

.mrank-legend {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.mrank-legend ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

@media print {
    body.page-rankings-group-points .gb-admin-sidebar,
    body.page-rankings-group-points .gb-admin-strip,
    body.page-rankings-group-points .mrank-toolbar-actions,
    body.page-rankings-group-points .mrank-options,
    body.page-rankings-group-points .mrank-legend {
        display: none !important;
    }

    body.page-rankings-group-points .gb-admin-app {
        display: block !important;
    }

    body.page-rankings-group-points .gb-admin-main {
        min-height: 0 !important;
        background: #fff !important;
    }

    body.page-rankings-group-points .gb-admin-content,
    body.page-rankings-group-points .gb-admin-inner--rankings-group-points {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-rankings-group-points .mrank-toolbar {
        background: #fff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        border-bottom: 1px solid #cbd5e1;
        border-radius: 0;
        page-break-after: avoid;
    }

    body.page-rankings-group-points .mrank-root {
        max-width: 100%;
        padding: 6mm 8mm;
    }

    body.page-rankings-group-points .mrank-block.card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }

    body.page-rankings-group-points .mrank-table thead th,
    body.page-rankings-group-points .mrank-td-total {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.page-mrps-result-summary .gb-admin-sidebar,
    body.page-mrps-result-summary .gb-admin-strip {
        display: none !important;
    }

    body.page-mrps-result-summary .gb-admin-app {
        display: block !important;
    }

    body.page-mrps-result-summary .gb-admin-main {
        min-height: 0 !important;
        background: #fff !important;
    }

    body.page-mrps-result-summary .gb-admin-content,
    body.page-mrps-result-summary .gb-admin-inner--mrps-result-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-mrps-result-summary .mrps-shell {
        margin-top: 0;
        padding: 4mm 6mm 8mm;
    }

    body.page-mrps-result-summary .mrps-topbar {
        page-break-after: avoid;
    }

    body.page-mrps-result-summary .mrps-block.card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }

    body.page-mrps-result-summary .mrps-table thead th,
    body.page-mrps-result-summary .mrps-row--male .mrps-td-event,
    body.page-mrps-result-summary .mrps-row--male .mrps-td-gender,
    body.page-mrps-result-summary .mrps-row--female .mrps-td-event,
    body.page-mrps-result-summary .mrps-row--female .mrps-td-gender,
    body.page-mrps-result-summary .mrps-row--mixed .mrps-td-event,
    body.page-mrps-result-summary .mrps-row--mixed .mrps-td-gender {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media print {
    body.page-certificates .gb-admin-sidebar,
    body.page-certificates .gb-sb-expand-fab,
    body.page-certificates .gb-admin-strip,
    body.page-certificates .section-title,
    body.page-certificates .action-row,
    body.page-certificates .notice,
    body.page-certificates .flash {
        display: none !important;
    }

    body.page-certificates .gb-admin-app {
        display: block !important;
    }

    body.page-certificates .gb-admin-main {
        min-height: 0 !important;
        background: #fff !important;
    }

    body.page-certificates .gb-admin-content,
    body.page-certificates .gb-admin-inner--certificates {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-certificates .certificate-card {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        box-shadow: none !important;
        border-style: solid !important;
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
        min-height: 0;
        margin: 0;
        padding: 18mm 16mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.page-certificates .certificate-card:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    body.page-certificates .certificate-card .certificate-title,
    body.page-certificates .certificate-card .certificate-text,
    body.page-certificates .certificate-card .certificate-footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.page-certificates .certificates-page--land .certificate-card--land {
        min-height: auto;
        width: 100%;
        max-width: none;
        margin: 0;
    }
}
