:root {
  --red: #d9272e;
  --red-deep: #a71924;
  --ink: #172033;
  --muted: #758197;
  --line: #e4e9f1;
  --blue: #2777d3;
  --blue-soft: #edf5ff;
  --paper: #f6f8fb;
  --white: #fff;
  --shadow: 0 16px 44px rgba(29, 53, 87, .09);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.landing-page { min-height: 100vh; padding: 34px 6vw 24px; color: #fff; background: radial-gradient(circle at 80% 12%, rgba(255,255,255,.12), transparent 28%), linear-gradient(124deg, #851c28 0%, #c4262f 52%, #e04a3e 100%); position: relative; overflow: hidden; }
.landing-page::after { content: ""; position: absolute; width: 52vw; height: 52vw; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -20vw; bottom: -26vw; box-shadow: 0 0 0 58px rgba(255,255,255,.03), 0 0 0 116px rgba(255,255,255,.025); }
.landing-header, .landing-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.brand, .rail-brand a, .login-mark { letter-spacing: .03em; font-weight: 800; font-size: 23px; }
.brand span, .rail-brand a span, .login-mark span { color: #ffb4a3; }
.brand-note, .landing-footer { color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .18em; }
.landing-main { min-height: calc(100vh - 124px); max-width: 1160px; margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: center; position: relative; z-index: 1; }
.eyebrow, .panel-kicker, .entry-kicker { margin: 0 0 16px; letter-spacing: .15em; font-size: 10px; font-weight: 800; }
.landing-copy h1 { margin: 0; font-size: clamp(52px, 7vw, 92px); line-height: 1.02; letter-spacing: -.06em; font-weight: 700; }
.landing-copy h1 em { font-style: normal; color: #ffd0bd; }
.landing-description { color: rgba(255,255,255,.75); max-width: 320px; line-height: 1.8; font-size: 14px; margin-top: 28px; }
.entry-grid { display: grid; gap: 17px; }
.entry-card { position: relative; min-height: 190px; padding: 28px 32px; border: 1px solid rgba(255,255,255,.33); transition: transform .2s, background .2s; }
.entry-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.entry-card-primary { background: #fff; color: var(--ink); box-shadow: 0 20px 48px rgba(73, 18, 26, .18); }
.entry-card-secondary { background: rgba(106, 16, 26, .22); }
.entry-index { position: absolute; top: 26px; right: 31px; opacity: .55; letter-spacing: .1em; font-size: 12px; }
.entry-icon { display: block; font-size: 25px; margin-bottom: 32px; }
.entry-kicker { opacity: .6; margin-bottom: 8px; }
.entry-card h2 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.04em; }
.entry-card p:not(.entry-kicker) { margin: 0; opacity: .68; font-size: 13px; }
.entry-arrow { position: absolute; bottom: 27px; right: 31px; font-size: 23px; }
.landing-footer { max-width: 1160px; margin: auto; }
.performance-page { min-height: 100vh; display: flex; }
.side-rail { width: 238px; flex: 0 0 238px; background: #171e2c; color: #fff; display: flex; flex-direction: column; padding: 30px 20px 22px; }
.rail-brand { padding: 0 14px 45px; }
.rail-brand a { display: block; }
.rail-brand small { display: block; color: #748199; letter-spacing: .15em; font-size: 9px; margin-top: 8px; }
.rail-nav { display: grid; gap: 8px; }
.rail-link { padding: 14px; color: #8d99ac; font-size: 14px; display: flex; align-items: center; gap: 13px; border-left: 3px solid transparent; }
.rail-link:hover, .rail-link.active { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--red); }
.rail-symbol { width: 18px; text-align: center; font-size: 17px; }
.rail-footer { color: #8390a4; font-size: 11px; margin-top: auto; padding: 14px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4dca8b; margin-right: 7px; }
.workbench { flex: 1; min-width: 0; padding: 44px clamp(20px, 4vw, 64px) 28px; max-width: 1500px; margin: auto; }
.mobile-topbar { display: none; }
.workspace-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.workspace-heading h1 { margin: 0 0 7px; font-size: 37px; letter-spacing: -.06em; }
.subheading { color: var(--muted); margin: 0; font-size: 13px; }
.heading-actions { display: flex; gap: 18px; align-items: center; }
.latest-badge { color: var(--blue); background: var(--blue-soft); padding: 8px 12px; font-size: 11px; font-weight: 700; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 0; }
.text-button:hover { color: var(--red); }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; background: #fff; border: 1px solid var(--line); padding: 15px 17px 13px; margin-bottom: 20px; }
.filter-field { display: grid; gap: 5px; min-width: 125px; }
.filter-field label, .sort-tools label { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.filter-field input, .filter-field select, .sort-tools select { border: 1px solid var(--line); color: var(--ink); background: #fff; min-height: 34px; padding: 6px 9px; font-size: 12px; outline: none; }
.filter-field input:focus, .filter-field select:focus, .sort-tools select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,119,211,.1); }
.filter-search { flex: 1; min-width: 160px; }
.filter-separator { color: #a1aabb; padding-bottom: 9px; }
.refresh-button { border: 1px solid var(--line); background: var(--ink); color: #fff; width: 35px; height: 35px; font-size: 19px; }
.page-error, .form-error { color: var(--red); font-size: 12px; min-height: 18px; }
.page-error { display: none; margin-bottom: 13px; padding: 11px 14px; background: #fff1f1; border-left: 3px solid var(--red); }
.page-error.visible { display: block; }
.kpi-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 13px; margin-bottom: 20px; }
.kpi-card { min-height: 132px; padding: 20px 21px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.kpi-main { border-top: 3px solid var(--red); }
.kpi-label { color: var(--muted); font-size: 11px; }
.kpi-card strong { font-size: 34px; letter-spacing: -.06em; margin: 17px 0 5px; }
.kpi-note { color: #a4adbc; font-size: 11px; }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px 11px; }
.panel-kicker { color: var(--blue); margin-bottom: 7px; }
.panel-heading h2, .raw-export-card h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.panel-status { color: #9aa5b5; font-size: 11px; padding-top: 11px; }
.chart-wrap { padding: 8px 24px 0; }
.chart { width: 100%; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; min-height: 150px; }
.people-chart svg { min-height: 82px; border-top: 1px solid #f1f3f7; margin-top: 4px; }
.grid-line { stroke: #edf0f5; stroke-width: 1; }
.axis-label, .date-label { fill: #9ca6b6; font-size: 10px; }
.value-label, .people-label { fill: var(--blue); font-size: 10px; font-weight: 700; }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point circle { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.chart-point-clickable { cursor: pointer; }
.chart-point-clickable:hover circle, .chart-point-clickable:focus circle { fill: var(--blue); }
.chart-point-missing circle { stroke: #cbd2dd; }
.people-bar { fill: #bbd8f8; cursor: pointer; }
.people-bar:hover { fill: var(--blue); }
.mini-chart-title { fill: #8490a3; font-size: 10px; font-weight: 700; }
.chart-legend { border-top: 1px solid #f1f3f7; padding: 12px 25px 16px; color: #9aa5b5; font-size: 11px; }
.summary-heading { align-items: end; }
.panel-actions, .raw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.outline-button, .primary-button { border: 1px solid var(--blue); background: #fff; color: var(--blue); min-height: 35px; padding: 7px 12px; font-size: 11px; font-weight: 700; }
.outline-button:hover { background: var(--blue-soft); }
.primary-button { border-color: var(--red); background: var(--red); color: #fff; }
.primary-button:hover { background: var(--red-deep); }
.primary-button span { margin-left: 12px; font-size: 15px; }
.compact { min-height: 39px; }
.table-tools { display: flex; justify-content: space-between; align-items: center; padding: 4px 25px 12px; }
.table-count { color: #a0aaba; font-size: 11px; }
.sort-tools { display: flex; align-items: center; gap: 7px; }
.sort-tools select { min-height: 30px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: #8792a4; background: #f9fafc; font-size: 10px; letter-spacing: .08em; font-weight: 700; padding: 12px 25px; white-space: nowrap; }
td { padding: 14px 25px; border-top: 1px solid #f0f2f6; white-space: nowrap; }
tbody tr:hover { background: #fbfdff; }
td:nth-child(3) { color: var(--blue); font-size: 14px; font-weight: 700; }
.fluctuation-cell { font-weight: 700; }
.fluctuation-cell small { color: #9aa5b5; font-size: 10px; margin-left: 5px; font-weight: 500; }
.positive { color: #0a9b68; }.negative { color: var(--red); }.neutral { color: #7c8798; }.muted { color: #b2bac6; }
.empty-state { color: #9aa5b5; text-align: center; padding: 35px; font-size: 12px; }
.pagination { border-top: 1px solid #f0f2f6; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 15px; color: #8692a4; font-size: 11px; }
.page-button { border: 0; background: transparent; color: var(--blue); font-size: 11px; }.page-button:disabled { color: #c5cbd5; cursor: default; }
.raw-export-card { background: #172033; color: #fff; padding: 25px; display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 25px; }
.raw-export-card .panel-kicker { color: #ffad99; }.raw-export-card p:not(.panel-kicker) { color: #9aa6b9; font-size: 12px; margin: 9px 0 0; line-height: 1.6; max-width: 600px; }.raw-actions { justify-content: flex-end; flex-shrink: 0; }.raw-actions .outline-button { border-color: #536176; color: #d7e0ee; background: transparent; }.raw-actions .outline-button:hover { background: #263247; }
.workbench-footer { color: #a3adbb; font-size: 10px; text-align: center; padding: 3px; }
.login-panel { width: min(470px, 100%); margin: 11vh auto; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 48px; }.login-mark { margin-bottom: 50px; }.login-panel h1 { font-size: 38px; letter-spacing: -.06em; margin: 0 0 10px; }.login-panel > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 0 0 30px; }.login-form { display: grid; gap: 9px; }.login-form label { font-size: 11px; color: var(--muted); }.login-form input { border: 1px solid var(--line); height: 42px; padding: 8px 11px; outline: none; }.login-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,39,46,.1); }.login-form .primary-button { height: 44px; margin-top: 10px; }
.menu-toggle { border: 0; background: transparent; color: var(--ink); font-size: 24px; }
@media (max-width: 900px) { .landing-main { gap: 35px; grid-template-columns: 1fr; padding: 70px 0; }.landing-copy h1 { font-size: 64px; }.entry-grid { max-width: 650px; width: 100%; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.side-rail { width: 205px; flex-basis: 205px; }.workbench { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 650px) { .landing-page { padding: 24px 20px 18px; }.brand-note { display: none; }.landing-main { min-height: calc(100vh - 90px); padding: 52px 0 35px; }.landing-copy h1 { font-size: 52px; }.entry-card { min-height: 163px; padding: 23px; }.entry-icon { margin-bottom: 22px; }.entry-card h2 { font-size: 22px; }.landing-footer { font-size: 8px; }.performance-page { display: block; }.side-rail { position: fixed; z-index: 20; left: -250px; top: 0; bottom: 0; transition: left .2s; box-shadow: 10px 0 30px rgba(10,20,30,.18); }.side-rail.open { left: 0; }.mobile-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 25px; }.workbench { padding: 20px 16px 22px; }.workspace-heading { display: block; margin-bottom: 22px; }.workspace-heading h1 { font-size: 30px; }.heading-actions { margin-top: 18px; justify-content: space-between; }.filter-bar { align-items: stretch; gap: 10px; }.filter-field { min-width: calc(50% - 5px); }.filter-search { min-width: 100%; }.filter-separator { display: none; }.refresh-button { align-self: end; }.kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.kpi-card { min-height: 112px; padding: 15px; }.kpi-card strong { font-size: 25px; margin-top: 14px; }.panel-heading, .table-tools { padding-left: 16px; padding-right: 16px; }.panel-heading { display: block; }.panel-status { display: block; padding-top: 12px; }.summary-heading { display: block; }.panel-actions { margin-top: 15px; }.chart-wrap { padding-left: 12px; padding-right: 12px; }.table-tools { align-items: flex-start; gap: 10px; flex-direction: column; }.sort-tools { width: 100%; }.sort-tools select { flex: 1; }.th, th, td { padding-left: 16px; padding-right: 16px; }.raw-export-card { display: block; padding: 20px 17px; }.raw-actions { justify-content: flex-start; margin-top: 18px; }.login-panel { margin: 8vh 0; padding: 30px 24px; }.login-mark { margin-bottom: 35px; } }
