:root { color-scheme: light; --ink: #202630; --muted: #667180; --line: #e1e6ed; --blue: #0058d9; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f5f7fa; font: 14px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif; letter-spacing: 0; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid #ccd4e0; border-radius: 4px; color: #303e52; background: white; line-height: 1.4; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { border-color: #5e8fd3; background: #f0f5fd; }
button:disabled { cursor: not-allowed; opacity: .5; }
button.primary, .button.primary { color: white; background: var(--blue); border-color: var(--blue); }
button.primary:hover { background: #0048b5; }
button.danger { color: #a33331; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }
:focus-visible { outline: 2px solid #2876e4; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.5; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.6; }
h3 { font-size: 15px; }
small, .muted { color: var(--muted); font-size: 12px; }
small { display: block; overflow-wrap: anywhere; }
.topbar { min-height: 64px; padding: 12px 28px; display: flex; align-items: center; gap: 22px; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand strong { font-size: 19px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--blue); color: white; font-size: 22px; font-weight: 700; border-radius: 3px; }
.topbar-context { border-left: 1px solid var(--line); padding-left: 22px; color: var(--muted); }
#account { margin-left: auto; font-size: 12px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; min-height: 36px; padding: 0; flex-shrink: 0; }
.notice { margin: 0; padding: 12px 28px; background: #edf4ff; border-bottom: 1px solid #c3d8f6; color: #18497f; overflow-wrap: anywhere; }
.notice.error, .form-error { color: #a23432; }
.notice.error { background: #fff0ef; border-color: #f3cdca; }
.form-error { grid-column: 1/-1; font-size: 13px; white-space: pre-wrap; }
.auth-main { padding: 72px 24px; }
.auth-panel { width: min(440px,100%); margin: 0 auto; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.auth-panel form, dialog form { display: grid; gap: 18px; margin-block: 26px 20px; }
.auth-panel > .muted { margin-block: 20px; line-height: 1.9; }
.auth-panel .primary { min-height: 44px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; }
label { display: grid; gap: 7px; color: #3b4656; font-size: 13px; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid #c9d2df; border-radius: 4px; background: white; color: var(--ink); min-height: 38px; }
input:disabled, select:disabled { color: var(--muted); background: #f4f6f9; }
textarea { resize: vertical; }
.app-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); min-height: calc(100svh - 65px); }
.sidebar { min-width: 0; background: #242d39; color: #e3e9f2; padding: 26px 16px; }
.sidebar > p { padding: 0 12px 22px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav { scrollbar-width: none; }
.sidebar nav::-webkit-scrollbar { display: none; }
.sidebar button { justify-content: flex-start; background: none; color: #c0cbdc; border-color: transparent; padding: 12px; width: 100%; }
.sidebar button:hover { background: #303d50; }
.sidebar button[aria-current="page"] { color: white; background: #36557d; }
.sidebar > small { padding: 24px 12px; color: #aab7ca; }
.work-main { padding: 30px 32px 60px; min-width: 0; background: white; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading p { color: var(--muted); margin-top: 6px; font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.metric { min-width: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.metric:last-child { border: 0; }
.metric > span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 24px; line-height: 1.6; margin-top: 4px; overflow-wrap: anywhere; }
.metric small { font-size: 11px; }
.toolbar { display: flex; gap: 15px; align-items: flex-end; margin-bottom: 18px; }
.toolbar label { min-width: 170px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; min-width: 690px; }
th { background: #f4f6f9; font-weight: 600; color: #536074; white-space: nowrap; }
td, th { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { max-width: 280px; overflow-wrap: anywhere; }
td strong { font-size: 13px; }
td small { margin-top: 4px; font-size: 11px; }
td button { min-height: 30px; padding: 6px 10px; font-size: 12px; margin: 0 7px 7px 0; }
td svg { width: 15px; height: 15px; }
#applications table { min-width: 930px; }
#applications th:first-child { width: 20%; }
#applications th:nth-child(2) { width: 24%; }
#applications th:nth-child(3) { width: 19%; }
#applications th:last-child { width: 130px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #edf2f8; color: #4c607b; white-space: nowrap; font-size: 11px; }
.badge.good { background: #edf7f0; color: #246a3f; }
.badge.warn { background: #fff5df; color: #8a6016; }
.badge.bad { background: #fceeed; color: #a43b37; }
.empty { padding: 35px 18px; color: var(--muted); text-align: center; }
.scope-note { display: flex; align-items: flex-start; gap: 10px; background: #f1f5fa; border-left: 3px solid #7c96ba; padding: 12px 16px; font-size: 12px; color: #52647f; margin-bottom: 28px; }
.scope-note svg { margin-top: 2px; }
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 20px; }
.inline-form label { width: 200px; max-width: 100%; }
.inline-form .form-error { width: 100%; }
.workflow-section { padding-block: 30px; border-bottom: 1px solid var(--line); }
.workflow-section h2 { display: flex; align-items: center; gap: 12px; }
.step-number { font-size: 14px; color: #8b99ab; font-weight: 500; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.actions, .import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions .button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.file-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-label input { width: 245px; padding: 5px; font-size: 12px; }
.mapping-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding-block: 18px; }
.preview-output { margin: 20px 0; }
.preview-output ul, #preflight-output ul { padding-left: 20px; font-size: 12px; }
.history-section { border: 0; margin-top: 18px; }
.history-select { width: min(680px,100%); margin-bottom: 25px; }
.result-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-block: 28px; }
.result-layout > section { min-width: 0; }
.result-layout h2 { margin-bottom: 16px; }
.component { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 4px 15px; margin-bottom: 13px; font-size: 12px; }
.component meter { grid-column: 1/-1; width: 100%; height: 8px; accent-color: #357ccc; }
.component output { text-align: right; font-variant-numeric: tabular-nums; }
.component meter::-webkit-meter-bar { background: #e9eef4; border: 0; border-radius: 0; }
.component meter::-webkit-meter-optimum-value { background: #397fcb; }
.component meter.deduction::-webkit-meter-optimum-value { background: #b58330; }
.result-layout table { min-width: 350px; }
.result-warnings { padding: 15px 18px; background: #fff9ec; color: #775825; font-size: 12px; margin-bottom: 25px; }
.snapshot-heading { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin-block: 20px; }
dialog { width: min(530px,calc(100% - 32px)); max-height: calc(100svh - 40px); overflow: auto; border: 1px solid #d3dce9; border-radius: 6px; padding: 26px; color: var(--ink); }
dialog::backdrop { background: rgba(15,24,38,.48); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
dialog > p { margin-block: 15px; overflow-wrap: anywhere; }
.trace-dialog { width: min(850px,calc(100% - 32px)); }
pre { background: #f4f6fa; color: #3d4d64; padding: 16px; white-space: pre-wrap; word-break: break-word; font: 12px/1.8 Consolas,monospace; }
.trace-grid { display: grid; grid-template-columns: 140px minmax(0,1fr); font-size: 13px; }
.trace-grid dt, .trace-grid dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.trace-grid dt { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-block: 18px; }
.checkbox-label input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin-top: 3px; }
#run-readiness { margin-top: 14px; }
#evidence-form, #member-form { margin-bottom: 28px; }
#evidence-body td:nth-child(3) { max-width: 240px; font-family: Consolas,monospace; font-size: 11px; }
#record-filter { width: 250px; max-width: 100%; }
#reviews table, #records table { min-width: 900px; }
#member-invitation { margin-block: 10px 15px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0,1fr); } .toolbar { flex-wrap: wrap; } .toolbar label { width: 100%; } #record-filter { width: 100%; } }
@media (max-width: 1050px) { .app-layout { grid-template-columns: 170px minmax(0,1fr); } .work-main { padding: 26px 22px 50px; } .metrics { gap: 12px; } .metric strong { font-size: 21px; } .mapping-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) { .topbar { padding: 12px 16px; gap: 10px; } .topbar-context { display: none; } .brand strong { font-size: 17px; } #account { max-width: 90px; font-size: 10px; } .app-layout { grid-template-columns: 1fr; } .sidebar { padding: 12px 16px; } .sidebar > p, .sidebar > small { display: none; } .sidebar nav { display: flex; overflow-x: auto; gap: 8px; } .sidebar button { width: auto; flex-shrink: 0; padding: 10px; font-size: 12px; } .work-main { padding: 24px 18px 45px; } h1 { font-size: 23px; } .metrics { grid-template-columns: 1fr 1fr; gap: 22px; } .metric:nth-child(2) { border: 0; } .metric strong { font-size: 23px; } .section-heading, .page-heading { align-items: flex-start; flex-wrap: wrap; } .section-heading .actions { width: 100%; } .inline-form label { flex: 1 1 140px; } .inline-form button { min-width: 120px; } .result-layout { grid-template-columns: 1fr; gap: 28px; } .auth-main { padding: 40px 18px; } .auth-panel { padding: 26px 22px; } .notice { padding-inline: 18px; } .scope-note { font-size: 11px; } input,select,textarea { font-size: 16px; } .toolbar select, .mapping-grid select { font-size: 13px; } .file-label input { width: 100%; } .import-actions { align-items: flex-start; } .file-label { width: 100%; margin-block: 10px; } dialog { padding: 22px; } .trace-grid { grid-template-columns: 100px minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 359px) { #account { display: none; } .brand strong { font-size: 16px; } .metrics .metric strong { font-size: 19px; } .topbar { gap: 9px; } }
@media (max-width: 520px) { .metrics .metric strong { font-size: clamp(15px,4.5vw,20px); white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } }
