:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.auth-page { display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 52%, #f4f6fa 100%); }
.auth-shell { width: min(900px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.brand-block { padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; color: #fff; background: #e1251b; border-radius: 12px; font-weight: 800; letter-spacing: 0; }
.brand-mark.small { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 12px; }
.eyebrow { margin: 0 0 10px; color: #e1251b; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 48px); letter-spacing: 0; }
h2 { margin-bottom: 22px; font-size: 20px; }
.muted { color: #667085; line-height: 1.7; }
.login-panel, .status-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; box-shadow: 0 12px 32px rgba(23, 32, 51, .08); }
.login-panel { padding: 32px; }
label { display: block; margin: 16px 0 7px; color: #344054; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 6px; color: #172033; font: inherit; outline: none; }
input:focus { border-color: #e1251b; box-shadow: 0 0 0 3px rgba(225, 37, 27, .12); }
button, .primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
form button, .primary-button { width: 100%; margin-top: 24px; color: #fff; background: #e1251b; }
form button:hover, .primary-button:hover { background: #c91f17; }
.error { margin: 14px 0 0; color: #b42318; font-size: 13px; }
.panel-page { background: #f4f6fa; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding: 0 32px; background: #fff; border-bottom: 1px solid #e6eaf0; }
.topbar-brand, .topbar-actions, .session-pill, .connection-row, .metric-top, .section-header, .modal-header { display: flex; align-items: center; }
.topbar-brand { gap: 10px; }
.topbar-actions { gap: 18px; }
.session-pill { gap: 7px; padding: 7px 10px; color: #16794c; background: #ecfdf3; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #12b76a; border-radius: 50%; }
.muted-dot { background: #98a2b3; }
.ghost-button, .secondary-button { padding: 8px 12px; color: #475467; background: #fff; border: 1px solid #d0d5dd; }
.ghost-button:hover, .secondary-button:hover { background: #f8fafc; }
.dashboard-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidebar { display: flex; flex-direction: column; padding: 28px 16px 20px; background: #fff; border-right: 1px solid #e6eaf0; }
.sidebar-heading { padding: 0 12px 14px; color: #98a2b3; font-size: 12px; font-weight: 700; }
.side-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; padding: 11px 12px; color: #475467; background: transparent; border: 0; border-radius: 6px; text-align: left; font-weight: 600; }
.nav-item:hover { color: #172033; background: #f8fafc; }
.nav-item.active { color: #b42318; background: #fff1f0; }
.sidebar-footer { display: flex; gap: 9px; align-items: flex-start; margin-top: auto; padding: 14px 12px; border-top: 1px solid #f0f2f5; color: #667085; font-size: 12px; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { margin-bottom: 4px; color: #475467; font-size: 12px; }
.panel-shell { width: min(1400px, 100%); margin: 0 auto; padding: 34px 40px 56px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
.page-heading h1 { margin-bottom: 8px; font-size: 32px; }
.range-switch { display: flex; gap: 3px; padding: 3px; background: #eaecf0; border-radius: 7px; }
.range-button { min-height: 34px; padding: 0 13px; color: #667085; background: transparent; border: 0; border-radius: 5px; font-size: 13px; font-weight: 600; }
.range-button.active { color: #172033; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .section-panel { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; }
.metric-card { min-height: 136px; padding: 18px 20px; border-top: 3px solid transparent; }
.metric-card.accent-red { border-top-color: #e1251b; }
.metric-card.accent-navy { border-top-color: #344054; }
.metric-top { justify-content: space-between; color: #475467; font-size: 13px; }
.metric-state, .status-badge { color: #98a2b3; font-size: 11px; font-weight: 700; }
.metric-value { display: block; margin: 18px 0 5px; color: #172033; font-size: 28px; letter-spacing: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 16px; margin-top: 16px; }
.main-column, .side-column { display: grid; align-content: start; gap: 16px; }
.section-panel { padding: 22px; }
.section-header { justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-header h2 { margin: 0 0 5px; font-size: 17px; }
.status-badge { padding: 5px 8px; color: #b54708; background: #fffaeb; border-radius: 999px; }
.status-badge.neutral { color: #667085; background: #f2f4f7; }
.empty-state { display: grid; justify-items: center; align-content: center; min-height: 230px; padding: 20px; text-align: center; }
.empty-state strong { margin: 14px 0 4px; font-size: 15px; }
.empty-state .muted { font-size: 13px; }
.empty-bars { display: flex; align-items: end; gap: 7px; height: 58px; padding: 0 8px 2px; border-bottom: 1px solid #d0d5dd; }
.empty-bars i { display: block; width: 18px; background: #eaecf0; border-radius: 3px 3px 0 0; }
.empty-bars i:nth-child(1) { height: 23px; }.empty-bars i:nth-child(2) { height: 38px; }.empty-bars i:nth-child(3) { height: 30px; }.empty-bars i:nth-child(4) { height: 48px; }.empty-bars i:nth-child(5) { height: 27px; }.empty-bars i:nth-child(6) { height: 43px; }.empty-bars i:nth-child(7) { height: 34px; }
.compact-empty { min-height: 132px; }
.text-button { padding: 0; color: #b42318; background: transparent; border: 0; font-size: 13px; font-weight: 700; }
.connection-row { gap: 12px; margin: 4px 0 18px; }
.connection-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #344054; border-radius: 8px; font-size: 14px; font-weight: 700; }
.connection-row strong, .connection-row span { display: block; }
.connection-row strong { margin-bottom: 3px; font-size: 14px; }
.connection-row .muted { font-size: 12px; }
.full-button { margin-top: 0; }
.secondary-button.full-button { width: 100%; margin-top: 10px; }
.quick-panel .section-header { margin-bottom: 8px; }
.quick-action { display: flex; justify-content: space-between; width: 100%; padding: 13px 0; color: #344054; background: transparent; border: 0; border-bottom: 1px solid #f0f2f5; text-align: left; font-size: 13px; font-weight: 600; }
.quick-action:last-child { border-bottom: 0; }.quick-action b { color: #98a2b3; font-size: 20px; font-weight: 400; }.quick-action:hover { color: #b42318; }
.formula-panel { padding-bottom: 19px; }.formula-line { display: flex; justify-content: space-between; padding: 9px 0; color: #667085; border-bottom: 1px solid #f0f2f5; font-size: 13px; }.formula-line b { color: #b42318; }.formula-result { display: block; padding-top: 14px; color: #172033; font-size: 16px; }
.modal[hidden], .toast[hidden] { display: none; }.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }.modal-card { position: relative; width: min(480px, 100%); padding: 26px; background: #fff; border-radius: 8px; box-shadow: 0 20px 50px rgba(16, 24, 40, .2); }.modal-header { justify-content: space-between; align-items: flex-start; }.modal-header h2 { margin-bottom: 0; }.modal-close { width: 32px; height: 32px; color: #667085; background: transparent; border: 0; font-size: 24px; font-weight: 400; }.cost-form { margin-top: 20px; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }.modal-actions .primary-button, .modal-actions .secondary-button { width: auto; margin-top: 0; padding: 0 16px; }.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; transform: translateX(-50%); padding: 11px 16px; color: #fff; background: #172033; border-radius: 6px; box-shadow: 0 10px 28px rgba(16, 24, 40, .2); font-size: 13px; }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content-grid { grid-template-columns: 1fr; }.side-column { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }.connection-panel, .quick-panel, .formula-panel { min-height: 100%; } }
@media (max-width: 760px) { .topbar { padding: 0 16px; }.session-pill { display: none; }.dashboard-layout { display: block; }.sidebar { border-right: 0; border-bottom: 1px solid #e6eaf0; padding: 12px 16px; }.sidebar-heading, .sidebar-footer { display: none; }.side-nav { display: flex; gap: 5px; overflow-x: auto; }.nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; }.panel-shell { padding: 26px 16px 40px; }.page-heading { display: block; }.range-switch { width: max-content; margin-top: 18px; }.side-column { grid-template-columns: 1fr; }.metric-grid { gap: 10px; }.metric-card { padding: 16px; min-height: 124px; }.metric-value { font-size: 24px; } }
@media (max-width: 460px) { .topbar-brand strong { font-size: 14px; }.ghost-button { font-size: 12px; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-card .muted { font-size: 11px; }.range-button { padding: 0 9px; }.section-panel { padding: 18px; } }
