:root { color-scheme: light; font-family: "Microsoft YaHei", system-ui, sans-serif; color: #203047; background: #f4f7fb; }
 [hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #eef4ff, #f7fafc 55%, #eef8f5); }
button, input, select { font: inherit; }
button, .link-button { border: 0; border-radius: 8px; padding: 9px 15px; cursor: pointer; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
.shell { max-width: 1400px; margin: 0 auto; padding: 32px 20px 56px; }
.card { background: rgba(255,255,255,.95); border: 1px solid #dce5f0; border-radius: 14px; box-shadow: 0 10px 28px rgba(43, 70, 102, .07); }
.login-card { max-width: 430px; margin: 10vh auto 0; padding: 32px; }
h1, h2 { margin: 0; color: #172b4d; }
h1 { font-size: 25px; } h2 { font-size: 18px; }
.muted { color: #6d7b8f; font-size: 13px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar h1 { margin-bottom: 5px; }
.top-actions, .dialog-actions, .pager { display: flex; align-items: center; gap: 8px; }
.primary { background: #1f6feb; color: white; } .secondary, .link-button { background: #edf2f7; color: #34475d; }
.link-button { display: inline-block; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.tab { background: transparent; color: #5e6e82; border-bottom: 3px solid transparent; border-radius: 0; }
.tab.active { color: #1f6feb; border-color: #1f6feb; font-weight: 700; }
.toolbar { display: grid; gap: 12px; padding: 14px; margin-bottom: 14px; }
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-actions { min-height: 38px; }
.hidden-toolbar { display: none !important; }
.toolbar input { min-width: 180px; }
.search-box { flex: 1 1 280px; }
.search-box input { width: 100%; }
.compact-filter { display: flex !important; align-items: center; gap: 6px; white-space: nowrap; }
.compact-filter span { font-size: 12px; color: #6d7b8f; }
.compact-filter select { width: auto; min-width: 118px; padding: 8px 9px; }
.danger { background: #fff0ef; color: #b42318; }
.danger:hover:not(:disabled) { background: #ffe1df; }
.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; }
input, select { width: 100%; border: 1px solid #cdd8e6; border-radius: 8px; padding: 9px 10px; color: #203047; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; color: #52647a; }
.form-grid label.full, .form-grid button, .form-grid .error { grid-column: 1 / -1; }
.table-card { padding: 0 14px 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 9px; border-bottom: 1px solid #edf1f5; text-align: left; white-space: nowrap; font-size: 13px; }
th:first-child, td:first-child { width: 38px; text-align: center; }
th input[type="checkbox"], td input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1f6feb; }
th { color: #61728a; background: #fbfcfe; position: sticky; top: 0; }
td .row-actions { display: flex; gap: 6px; }
td button { padding: 5px 9px; font-size: 12px; }
.pager { justify-content: flex-end; padding-top: 14px; }
.pager .muted { margin-right: auto; }
.error { color: #c0392b; min-height: 18px; margin: 0; font-size: 13px; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(620px, calc(100vw - 30px)); box-shadow: 0 20px 70px rgba(22, 41, 68, .25); }
dialog::backdrop { background: rgba(22, 41, 68, .38); }
.dialog-card { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close { padding: 2px 8px; background: transparent; color: #718096; font-size: 25px; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
.import-card { display: grid; gap: 14px; }
.import-help { line-height: 1.55; margin: -8px 0 0; }
.file-picker { display: grid; gap: 6px; font-size: 13px; color: #52647a; }
.file-picker input { padding: 7px; }
textarea { width: 100%; resize: vertical; border: 1px solid #cdd8e6; border-radius: 8px; padding: 9px 10px; color: #203047; background: #fff; font: inherit; }
.import-preview { min-height: 22px; max-height: 170px; overflow: auto; white-space: pre-wrap; background: #f7f9fc; border-radius: 8px; padding: 10px; font-size: 12px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #172b4d; color: #fff; border-radius: 8px; padding: 10px 16px; font-size: 13px; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
tr.selected { background: #f0f6ff; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.summary-card { display: grid; gap: 5px; padding: 16px; background: rgba(255,255,255,.95); border: 1px solid #dce5f0; border-radius: 12px; box-shadow: 0 7px 18px rgba(43,70,102,.06); }
.summary-card strong { font-size: 24px; color: #1f6feb; }
.summary-card span { color: #6d7b8f; font-size: 13px; }
.detail-json { max-height: 58vh; overflow: auto; margin: 0; padding: 12px; background: #f7f9fc; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.task-dialog-fields { display: grid; gap: 12px; }
@media (max-width: 640px) { .shell { padding: 18px 12px 36px; } .topbar { align-items: stretch; flex-direction: column; } .toolbar-row { align-items: stretch; } .toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar-actions button { width: 100%; } .toolbar-actions .muted { grid-column: 1 / -1; } .compact-filter { flex: 1 1 45%; } .compact-filter select { flex: 1; min-width: 0; } .top-actions { justify-content: flex-end; } .form-grid { grid-template-columns: 1fr; } .form-grid label.full, .form-grid button, .form-grid .error { grid-column: auto; } }
