:root { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #1c324e; background: #f2f6fc; font-size: 14px; line-height: 1.6; --blue: #2667cb; --line: #dce5f0; --muted: #6d7f95; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.8px; line-height: 1.45; }
h2 { font-size: 16px; font-weight: 700; }
button, input, select { font: inherit; }
button, input, select { border: 1px solid #ccd8e8; border-radius: 7px; min-height: 40px; }
button { cursor: pointer; background: #fff; color: #285992; padding: 8px 15px; font-weight: 600; white-space: nowrap; }
button:hover:enabled { background: #eaf2ff; border-color: #7ba5e2; }
button:disabled { opacity: .47; cursor: not-allowed; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.primary:hover:enabled { background: #1859b7; }
button.quiet { border-color: transparent; background: transparent; padding-inline: 9px; }
button.danger { border-color: #e6baba; color: #a13535; background: #fff7f7; }
input, select { width: 100%; background: #fff; color: #1c324e; padding: 7px 10px; min-width: 0; }
input:disabled, select:disabled { background: #f1f4f8; color: #748296; }
input:focus, select:focus, button:focus-visible, summary:focus-visible, .grid-scroll:focus-visible { outline: 3px solid #a8c9ff; outline-offset: 2px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }
.topbar { min-height: 78px; padding: 15px max(25px, calc((100vw - 1440px) / 2)); background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.brand, .header-actions { display: flex; align-items: center; gap: 13px; }
.brand strong { font-size: 17px; display: block; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; background: var(--blue); font-size: 23px; font-weight: 700; }
main { max-width: 1490px; padding: 29px 25px 18px; margin: auto; }
.intro { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 25px; }
.intro h1 { margin: 5px 0 8px; }
.intro p { color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.session-note { text-align: right; font-size: 12px; line-height: 1.9; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 3px 15px #13375c04; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.hint, .muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.hint { line-height: 1.8; }
.credentials { margin-bottom: 15px; }
.login-fields { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 110px auto auto; gap: 12px; align-items: end; }
.credentials > .hint { margin-top: 10px; }
.verification-box { margin-top: 15px; padding: 15px; border: 1px solid #e1c58e; border-radius: 8px; background: #fffaf0; display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.verification-box > div { flex: 1; min-width: 220px; }
.verification-box label { max-width: 220px; }
.filters { display: flex; align-items: end; gap: 13px; margin-bottom: 20px; padding-block: 16px; }
.filters label { min-width: 130px; }
.filters .venue-field { flex: 1; min-width: 170px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.schedule-card { min-width: 0; padding-bottom: 14px; }
.pill { display: inline-block; border-radius: 30px; padding: 4px 11px; font-size: 12px; background: #edf4ff; color: #376cba; white-space: nowrap; }
.pill.offline { background: #fff0e7; color: #95602b; }
.source-banner { padding: 10px 12px; background: #f0f6ff; border-radius: 6px; font-size: 12px; color: #3b618f; line-height: 1.8; }
.source-banner.cached { background: #f0f2f5; color: #657283; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 15px; font-size: 11px; color: var(--muted); margin: 13px 0; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.available { background: #d5eeb4; }
.occupied { background: #f4ddb0; }
.unavailable { background: #e6eaf0; }
.grid-scroll { overflow: auto; max-height: 650px; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
th, td { text-align: center; border-right: 1px solid #e1e7ef; border-bottom: 1px solid #e1e7ef; padding: 5px; min-width: 97px; }
thead th { position: sticky; top: 0; z-index: 3; background: #ebf2fc; font-weight: 600; height: 49px; }
tbody th { background: #f5f8fc; font-weight: 500; white-space: nowrap; }
tr > :first-child { position: sticky; left: 0; z-index: 2; min-width: 111px; }
thead tr > :first-child { z-index: 4; }
tr > :last-child { border-right: 0; }
tbody tr:last-child > * { border-bottom: 0; }
.court-cell { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 43px; border: 1px solid transparent; border-radius: 5px; color: #49633a; background: #d5eeb4; font-size: 11px; font-weight: 400; padding: 7px 17px 7px 4px; white-space: normal; }
.court-cell.occupied { color: #866028; background: #f4ddb0; }
.court-cell.in-use { color: #944d4d; background: #f6d4cf; }
.court-cell.neutral { color: #748092; background: #e6eaf0; }
.court-cell.selected { border: 2px solid #2d70d8; box-shadow: 0 0 0 1px #2d70d8; }
.court-cell:hover:enabled { filter: brightness(.97); background: #dceaff; border-color: #2d70d8; }
.court-cell:disabled { opacity: .7; }
.cell-order { position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; line-height: 15px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 10px; }
.grid-foot { margin-top: 10px; }
.empty { color: #91a0b4; font-size: 13px; text-align: center; padding: 65px 20px; }
.empty.compact { padding: 20px 8px; }
.candidates { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 7px; }
.candidate { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #dce7f7; border-radius: 7px; background: #f6f9ff; }
.candidate .number { min-width: 21px; height: 21px; line-height: 21px; text-align: center; border-radius: 4px; background: #dfecff; color: var(--blue); font-size: 12px; }
.candidate .name { flex: 1; min-width: 0; font-size: 12px; line-height: 1.6; }
.candidate .name small { display: block; color: var(--muted); }
.candidate button { min-height: 28px; padding: 1px 4px; font-size: 12px; background: transparent; }
#plan-form { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; min-height: 16px; accent-color: var(--blue); margin: 0; }
.query-check { background: #edf5ff; padding: 10px; border-radius: 6px; color: #30609f; }
.partner-fields { display: grid; gap: 10px; }
.partner-fields:empty { display: none; }
.full { width: 100%; }
.activity { margin-top: 20px; }
.task-message { color: #365d8e; background: #f3f7fd; border-radius: 6px; padding: 11px 13px; overflow-wrap: anywhere; }
.task-message.warning { background: #fff0e8; color: #91562d; }
details { margin-top: 13px; }
summary { cursor: pointer; font-size: 12px; color: #58708d; }
.logs { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; background: #f5f7fa; padding: 12px; border-radius: 6px; font-size: 12px; color: #53677e; line-height: 1.9; }
.notice { border-radius: 8px; padding: 12px 15px; margin-bottom: 16px; }
.error { color: #a33f3f; background: #fff0ef; overflow-wrap: anywhere; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #eaf3ff, #f7f9fc); }
.gate-card { max-width: 420px; width: 100%; display: grid; gap: 20px; padding: 32px; box-shadow: 0 12px 50px #2452840d; }
.gate-card h1 { font-size: 25px; }
.gate-card .error { background: transparent; font-size: 13px; }
footer { text-align: center; color: #91a0b3; font-size: 11px; padding: 23px 4px 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { .layout { grid-template-columns: minmax(0, 1fr) 365px; } }
@media (max-width: 1100px) { .login-fields { grid-template-columns: 1fr 1fr 100px; } .login-fields button { grid-row: 2; } .filters { flex-wrap: wrap; } .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; } .card { padding: 16px; } }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .plan-card { width: 100%; } .grid-scroll { max-height: 500px; } .session-note { display: none; } .filters .venue-field { flex: 1 1 45%; } .filters label { flex: 1 1 40%; } .filters button { flex: 1 1 40%; } .intro h1 { font-size: 27px; } }
@media (max-width: 520px) { main { padding: 23px 12px 12px; } .topbar { padding: 12px 14px; min-height: 70px; } .brand { gap: 8px; } .brand strong { font-size: 15px; } .brand-mark { width: 35px; height: 35px; font-size: 20px; } .header-actions { gap: 2px; } .header-actions .quiet { font-size: 11px; } .header-actions .pill { font-size: 10px; padding: 3px 7px; } .login-fields { grid-template-columns: 1fr 1fr; gap: 9px; } .login-fields .workers-field { grid-column: 1; grid-row: 2; } .login-fields button { grid-row: auto; min-width: 0; padding-inline: 7px; } .login-fields button[type=submit] { grid-row: 2; } .credentials .section-heading { align-items: start; flex-wrap: wrap; gap: 4px; } .filters { gap: 10px; } .filters label { min-width: 0; } .section-heading { gap: 8px; } .schedule-card { padding: 13px; } th, td { min-width: 86px; padding: 4px; } tr > :first-child { min-width: 103px; } .legend { gap: 6px 10px; } .gate-card { padding: 25px; } }
