:root {
  color-scheme: dark;
  --background: #101914;
  --surface: #17241e;
  --surface-muted: #1e2e25;
  --line: #374b3f;
  --text: #edf5ef;
  --muted: #acbeb1;
  --mint: #a4edb4;
  --resolved: #73d596;
  --pending: #ffbd78;
  --radius: 13px;
  font: 400 1rem/1.6 Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; min-width: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--mint); }
button, input, select { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }
h1,h2,h3,p,dl,dd,ul { margin: 0; }
h1,h2,h3 { line-height: 1.25; }
.board-width { width: min(1440px, calc(100% - clamp(28px, 7vw, 104px))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; left: 12px; top: 12px; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; padding: 9px 12px; background: #0b130e; }
.board-header { background: #132019; border-bottom: 1px solid var(--line); }
.header-inner, .header-links, .control-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.header-inner { justify-content: space-between; min-height: 62px; padding-block: 8px; }
.board-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 760; letter-spacing: .035em; text-decoration: none; }
.brand-mark { width: 13px; height: 13px; border: 2px solid var(--mint); border-radius: 3px; transform: rotate(45deg); }
.header-links a:not(.control) { padding: 7px 3px; color: var(--muted); text-decoration: none; font-size: .875rem; }
.header-links a:not(.control):hover { color: var(--mint); }
.control { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; font-size: .875rem; font-weight: 650; text-decoration: none; text-align: center; line-height: 1.4; }
.control-primary { background: var(--mint); color: #102017; }
.control-primary:hover { background: #c8f8d2; }
.control-secondary { background: var(--surface-muted); border-color: #435a4b; color: var(--text); }
.control-secondary:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.control:disabled { opacity: .46; }
.board-main { padding-block: clamp(24px, 4vw, 52px); display: grid; gap: 19px; min-width: 0; }
.board-intro { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px 25px; padding: clamp(20px, 4vw, 42px); border: 1px solid #405646; border-radius: 16px; background: radial-gradient(ellipse at 86% 0%,#274831,#17291f 65%); }
.eyebrow { color: var(--mint); font-size: .875rem; font-weight: 700; letter-spacing: .055em; }
.board-intro h1 { margin: 8px 0 11px; letter-spacing: -.025em; font-size: clamp(1.7rem, 4.3vw, 3.45rem); }
.board-intro p:not(.eyebrow), .file-hint { color: #c5d7cb; }
.intro-operations, .intro-copy { min-width: 0; }
.intro-operations { display: grid; justify-items: start; gap: 9px; }
.data-status { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; font-size: .875rem; color: #c7dace; }
#data-source { border: 1px solid #577960; border-radius: 15px; padding: 2px 8px; color: var(--mint); }
.file-hint, .notice { font-size: .875rem; }
.notice { color: var(--mint); }
.notice.is-error { color: var(--pending); }
.section-heading, .panel-heading, .pagination { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; justify-content: space-between; }
.section-heading { margin-bottom: 9px; }
.section-heading h2, .panel-heading h2 { font-size: clamp(1.05rem, 2vw, 1.33rem); }
.section-heading p,.panel-heading p,.chart-foot,.table-hint,.panel-unit { color: var(--muted); font-size: .875rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.kpi, .panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); min-width: 0; }
.kpi { padding: clamp(11px, 2vw, 20px); }
.kpi dt, .kpi .kpi-note { color: var(--muted); font-size: .875rem; }
.kpi dd:not(.kpi-note) { line-height: 1.2; margin-block: 6px; font-size: clamp(1.45rem, 4vw, 2.3rem); font-weight: 760; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-resolved dd,.kpi-rate dd { color: var(--mint); }
.kpi-pending dd { color: var(--pending); }
.filter-panel { padding: 10px clamp(12px,2vw,20px); }
.filter-panel summary { display: flex; align-items: center; gap: 9px; min-height: 40px; list-style: none; }
.filter-panel summary::-webkit-details-marker { display:none; }
.filter-panel summary::before { content:""; display:inline-block; width:7px; height:7px; border: solid var(--mint); border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(-45deg); }
.filter-panel[open] summary::before { transform:translateY(-2px) rotate(45deg); }
.filter-badge { font-size:.8125rem; color:var(--muted); }
.filter-form { display:grid; grid-template-columns: minmax(170px,1.4fr) repeat(5,minmax(121px,1fr)) auto; gap:10px; padding:5px 0 9px; align-items:end; }
.filter-form label { display:grid; gap:4px; min-width:0; color:var(--muted); font-size:.875rem; }
.filter-form input,.filter-form select { width:100%; min-width:0; min-height:42px; color:var(--text); padding:7px 9px; border:1px solid #435a4b; border-radius:7px; background:#112018; }
.filter-form input::placeholder { color:#9aad9f; }
.filter-form .control { justify-self:start; }
.analysis-grid { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:13px; }
.secondary-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
.chart-panel { padding:clamp(12px, 2vw, 22px); }
.panel-heading { align-items:start; margin-bottom:15px; }
.panel-heading p { margin-top:4px; }
.legend { display:flex; list-style:none; padding:0; gap:8px 13px; flex-wrap:wrap; color:var(--muted); font-size:.875rem; }
.legend li { display:flex; align-items:center; gap:5px; }
.legend li::before { content:""; width:9px; height:9px; border-radius:2px; background:var(--resolved); }
.legend-pending::before { background:var(--pending) !important; }
.panel-unit { white-space:nowrap; }
.type-bars { display:grid; gap:5px; }
.type-row,.inspector-row { width:100%; min-height:42px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--text); text-align:left; display:grid; align-items:center; gap:8px; padding:6px; font-variant-numeric:tabular-nums; }
.type-row { grid-template-columns:minmax(0, min(32%, 145px)) minmax(0,1fr) minmax(2ch,auto); }
.type-row:hover,.type-row[aria-pressed="true"],.inspector-row:hover,.inspector-row[aria-pressed="true"] { border-color:#4f7558; background:#223c2d; }
.type-row .label { overflow-wrap:anywhere; font-size:.875rem; }
.type-row .value { text-align:right; font-weight:720; }
.type-track { display:flex; height:10px; overflow:hidden; border-radius:8px; background:#34483b; }
.type-track i { flex:0 0 var(--part); }
.type-track .resolved,.week-stack .resolved { background:var(--resolved); }
.type-track .pending,.week-stack .pending { background:var(--pending); }
.weekly-grid { display:grid; grid-template-columns:repeat(var(--weeks),minmax(0,1fr)); align-items:end; gap:3px; position:relative; padding-block:4px 2px; background:repeating-linear-gradient(to top,transparent 0 39px,#304738 40px 41px) 0 0 / 100% calc(100% - 26px) no-repeat; }
.week-column { border:1px solid transparent; border-radius:6px; background:transparent; color:var(--muted); display:grid; gap:3px; justify-items:center; padding:2px; min-width:0; }
.week-column:hover,.week-column[aria-pressed="true"] { background:#223c2d; border-color:#4f7558; color:var(--text); }
.week-well { height:139px; display:flex; align-items:flex-end; width:100%; justify-content:center; }
.week-stack { height:var(--height); width:min(49%,28px); min-width:11px; display:flex; flex-direction:column-reverse; border-radius:3px 3px 0 0; overflow:hidden; }
.week-stack i { flex:0 0 var(--part); }
.week-date { font-size:.8125rem; white-space:nowrap; }
.chart-foot { margin-top:9px; overflow-wrap:anywhere; }
.weekly-bars + .chart-foot { min-height:2.8em; }
.chart-empty { display:grid; place-items:center; min-height:126px; padding:12px; color:var(--muted); text-align:center; border:1px dashed #4a6052; border-radius:8px; }
.location-axes { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px; align-items:stretch; }
.location-y,.location-x { display:flex; justify-content:space-between; color:var(--muted); font-size:.8125rem; font-variant-numeric:tabular-nums; }
.location-y { flex-direction:column; align-items:flex-end; padding-block:4px; }
.location-x { grid-column:2; }
.location-plot { height:clamp(177px,24vw,263px); position:relative; border:1px solid #475e4e; border-radius:8px; background:repeating-linear-gradient(0deg,transparent 0 calc(25% - 1px),#395547 25%),repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#395547 25%),#12251a; }
.location-legend { margin-top: 7px; }
.location-point { position:absolute; left:var(--x); top:var(--y); translate:-50% -50%; min-width:27px; min-height:27px; padding:0; border-radius:50%; border:2px solid #12251a; background:var(--resolved); color:#112319; font-weight:750; font-size:.8125rem; line-height:1; }
.location-point.pending { background:var(--pending); }
.location-point[aria-pressed="true"] { outline:2px solid #fff; outline-offset:1px; z-index:1; }
.inspector-list { display:grid; gap:4px; max-height:345px; overflow:auto; scrollbar-gutter:stable; }
.inspector-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.inspector-row strong { overflow-wrap:anywhere; }
.inspector-row span { font-size:.875rem; color:var(--muted); text-align:right; }
.inspector-row b { color:var(--pending); }
.rules-panel #rule-count { margin:0 0 10px; }
.rule-notes { margin-top:11px; color:var(--muted); font-size:.875rem; }
.rule-notes summary { width:max-content; max-width:100%; color:var(--mint); }
.rule-notes p { margin-top:5px; max-width:68rem; }
.table-scroll { overflow-x:auto; max-width:100%; border:1px solid var(--line); border-radius:8px; }
.data-table { width:100%; border-collapse:collapse; font-size:.875rem; text-align:left; font-variant-numeric:tabular-nums; }
.data-table th,.data-table td { padding:10px 11px; border-bottom:1px solid var(--line); }
.data-table thead th { background:#223429; color:#d7e9dc; white-space:nowrap; font-weight:680; }
.data-table tbody tr:last-child td,.data-table tbody tr:last-child th { border-bottom:0; }
.data-table tbody tr:nth-child(even) { background:#1b2b22; }
.data-table tbody tr:hover { background:#22372a; }
.record-table { min-width:560px; }
.rule-table { min-width:620px; }
.nowrap { white-space:nowrap; }
.record-company { min-width:130px; max-width:310px; overflow-wrap:anywhere; }
.company-id { display:block; color:var(--muted); font-size:.8125rem; }
.status-tag { display:inline-block; border:1px solid #446f52; border-radius:14px; padding:2px 7px; color:var(--mint); white-space:nowrap; }
.status-tag.pending { color:var(--pending); border-color:#77583b; }
.table-empty { padding:25px 11px !important; text-align:center; color:var(--muted); }
.table-hint { display:none; margin-bottom:5px; }
.pagination { margin-top:11px; color:var(--muted); font-size:.875rem; }
.board-footer { border-top:1px solid var(--line); color:var(--muted); }
.board-footer .board-width { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 15px; padding-block:16px; font-size:.875rem; }
@media(max-width:1190px) {
  .filter-form { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .filter-search { grid-column:span 1; }
}
@media(max-width:870px) {
  .board-intro { grid-template-columns:minmax(0,1fr); }
  .filter-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:690px) {
  .board-main { gap:13px; }
  .analysis-grid,.secondary-grid { grid-template-columns:minmax(0,1fr); }
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .table-hint { display:block; }
}
@media(max-width:490px) {
  .header-inner { min-height:0; gap:6px 12px; }
  .header-links { column-gap:8px; }
  .header-links a:not(.control) { padding:5px 0; }
  .header-links .control { min-height:36px; padding-inline:8px; }
  .board-intro { padding:15px; }
  .filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-search { grid-column:1/-1; }
  .week-date { font-size:.75rem; }
  .weekly-grid { gap:0; }
  .week-column { padding-inline:0; }
  .week-well { height:115px; }
  .location-point { min-width:24px; min-height:24px; }
  .kpi .kpi-note { font-size:.8125rem; }
}
