:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #243247; background: #f3f6fb; font-synthesis: none; --blue: #245cca; --ink: #173a6c; --muted: #6b7890; --line: #e3eaf3; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
#appView { flex: 1; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; }
h2 { font-size: 26px; color: var(--ink); }
h3 { font-size: 17px; color: var(--ink); }
button, input, select { font: inherit; }
button { border: 1px solid #ccd8e9; border-radius: 8px; padding: 9px 16px; background: white; color: #294667; cursor: pointer; font-weight: 600; white-space: nowrap; }
button:hover:not(:disabled) { background: #eef4ff; border-color: #88a9da; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #91b7ff; outline-offset: 2px; }
button.primary { background: var(--blue); color: white; border-color: var(--blue); }
button.primary:hover:not(:disabled) { background: #1b4daa; }
button.danger { background: #b9313b; color: white; border-color: #b9313b; }
button.danger:hover:not(:disabled) { background: #9a2430; }
button.danger-outline { border-color: #edbdc2; color: #b12936; }
button.text-button { background: transparent; border-color: transparent; color: var(--blue); }
input, select { min-width: 0; border: 1px solid #cad5e3; border-radius: 7px; padding: 10px 12px; background: white; color: #243247; }
input:not([type=checkbox]) { width: 100%; }
input[readonly] { background: #f4f6f9; color: #6c7689; font-size: 12px; }
input[type=checkbox] { accent-color: var(--blue); width: 17px; height: 17px; vertical-align: middle; }
label { display: block; margin: 17px 0 7px; font-size: 13px; font-weight: 600; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.eyebrow { color: #6e85a6; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 6px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #eaf2ff; color: var(--blue); font-size: 23px; font-weight: 750; }
.brand-mark.small { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.13); color: white; font-size: 19px; }
.login-shell { flex: 1; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(ellipse at top, #e7f0ff, #f3f6fb 70%); }
.login-card { width: 100%; max-width: 420px; background: white; border: 1px solid #e0e8f4; border-radius: 20px; padding: 36px; box-shadow: 0 16px 65px #2545760c; }
.login-card .brand-mark { margin-bottom: 24px; }
.login-card h1 { margin-bottom: 10px; color: var(--ink); }
.login-card form { margin-top: 24px; }
.full-width { width: 100%; margin-top: 25px; }
.security-note { font-size: 12px; color: #8490a4; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; line-height: 1.6; }
.message { font-size: 13px; line-height: 1.6; margin: 12px 0; color: #43607f; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { color: #a32332; background: #fff0f1; padding: 10px 12px; border-radius: 7px; }
.message.success { color: #16704b; background: #eaf8f0; padding: 10px 12px; border-radius: 7px; }
.topbar { min-height: 84px; background: #183d70; color: white; display: flex; align-items: center; justify-content: space-between; padding: 16px max(28px, calc((100vw - 1440px) / 2)); gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .eyebrow { color: #b5c9e4; letter-spacing: 1px; margin-bottom: 3px; }
.brand h1 { font-size: 20px; }
.account { display: flex; align-items: center; gap: 24px; text-align: right; font-size: 13px; }
.session-info { color: #b5c9e4; font-size: 11px; margin-top: 5px; }
button.quiet-light { border-color: #6d86aa; background: transparent; color: white; font-size: 12px; }
button.quiet-light:hover:not(:disabled) { background: #315588; }
.workspace { max-width: 1496px; padding: 36px 28px; margin: auto; }
.page-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading h2 { margin-bottom: 7px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.stat { min-height: 122px; background: white; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { color: var(--ink); font-size: 29px; font-weight: 750; margin: 9px 0 4px; }
.stat-note { color: var(--muted); font-size: 11px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.panel-heading { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading .muted { margin-top: 5px; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 18px 24px; }
.search-bar input { max-width: 400px; }
.search-bar .page-size-label { margin: 0 0 0 auto; white-space: nowrap; font-weight: 400; color: var(--muted); }
.search-bar select { padding: 10px; font-size: 12px; }
.table-scroll { overflow-x: auto; min-height: 145px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 15px 14px; text-align: left; border-bottom: 1px solid #edf1f7; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th { background: #f6f8fc; color: #6a7d97; font-size: 11px; font-weight: 650; }
tbody tr:hover { background: #fafdff; }
.cell-primary { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.cell-secondary { color: #8692a5; margin-top: 5px; font-size: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.empty-cell { text-align: center; color: var(--muted); height: 115px; }
.badge { padding: 4px 9px; display: inline-block; border-radius: 6px; background: #edf7f2; color: #2b865e; font-size: 11px; }
.badge.off { background: #f0f2f7; color: #7c899e; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { font-size: 12px; padding: 6px 9px; }
.pagination { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; align-items: center; }
.pagination button { margin-left: 8px; font-size: 12px; }
.footer-note { font-size: 11px; color: #8794a9; margin: 18px 0; line-height: 1.6; }
.site-footer { flex-shrink: 0; padding: 18px 20px; text-align: center; font-size: 12px; line-height: 1.6; }
.site-footer a { color: #5c6c84; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 3px solid #91b7ff; outline-offset: 4px; border-radius: 2px; }
.dialog { padding: 26px; border: 1px solid #d6e1f0; border-radius: 16px; box-shadow: 0 20px 90px #0c254344; max-height: calc(100vh - 40px); color: #243247; }
.dialog::backdrop { background: #102b4a80; }
.detail-dialog { width: min(680px, calc(100vw - 32px)); }
.confirm-dialog { width: min(460px, calc(100vw - 32px)); }
.dialog h2 { font-size: 22px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.icon-button { padding: 0 8px; font-size: 25px; background: transparent; border-color: transparent; color: var(--muted); }
.metadata { margin-top: 22px; padding: 16px; background: #f7f9fd; border-radius: 9px; }
dl { margin: 0; display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 12px; }
dt { font-size: 11px; color: var(--muted); }
dd { margin: 7px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.metadata label { margin-top: 18px; font-size: 11px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.checkbox-field { align-self: center; }
.checkbox-field .muted { margin-top: 8px; font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.info-note, .warning-note { font-size: 13px; line-height: 1.8; padding: 13px 15px; background: #eef5ff; color: #476481; border-radius: 8px; margin: 18px 0 8px; overflow-wrap: anywhere; }
.warning-note { background: #fff3f3; color: #943540; }
.scores-section { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.scores-section > .muted { margin-top: 6px; font-size: 12px; }
.score-rows { margin-top: 16px; }
.score-row { padding: 12px 0; border-bottom: 1px solid #edf1f7; }
.score-controls { display: flex; align-items: center; gap: 10px; }
.score-controls label { margin: 0; min-width: 68px; }
.score-controls input { width: 120px; flex: 1; }
.score-controls button { padding: 9px 13px; font-size: 12px; }
.score-note { margin: 6px 0 0 78px; font-size: 11px; color: var(--muted); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.danger-zone strong { font-size: 13px; color: #a5323c; }
.danger-zone p { margin-top: 5px; font-size: 11px; }
.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 (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .topbar { padding: 17px; align-items: flex-start; }.brand h1 { font-size: 17px; }.account { flex-direction: column; gap: 9px; align-items: flex-end; }.session-info { display: none; }.workspace { padding: 25px 15px; }.page-heading h2 { font-size: 23px; }.page-heading > button { padding: 8px 10px; font-size: 12px; }.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.stat { padding: 16px; min-height: 112px; }.stat-value { font-size: 26px; }.panel-heading { padding: 18px 15px; }.search-bar { padding: 14px 15px; flex-wrap: wrap; gap: 7px; }.search-bar input { flex: 1 1 100%; max-width: none; }.search-bar .page-size-label { margin-left: auto; }.pagination { padding: 15px; flex-wrap: wrap; }.dialog { padding: 20px; }.form-grid { grid-template-columns: 1fr; }.metadata dl { grid-template-columns: 1fr; }.metadata dl > div { display: flex; gap: 12px; align-items: center; }.metadata dd { margin-top: 0; }.score-controls { gap: 6px; }.score-controls label { min-width: 56px; font-size: 12px; }.score-controls input { width: 70px; padding: 9px; }.score-controls button { padding: 9px; }.score-note { margin-left: 62px; }.danger-zone { gap: 12px; }.login-card { padding: 28px; } }
