/* Readability pass informed by the supplied Baokunyaoda screenshots.
   Arial is an offline-safe approximation; no exact font file was supplied. */
:root {
  --ink: #202d40;
  --muted: #526178;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -.6px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { line-height: 1.65; }

/* Keep the original logo intact on its own white background. */
.brand-supplied { display: flex; flex-direction: column; gap: 10px; padding: 0 8px 18px; letter-spacing: 0; }
.brand-logo { display: block; width: 100%; height: auto; background: white; border-radius: 8px; }
/* Transparent outlined artwork supplies its own edge contrast on navy. */
#sidebar .brand-logo {
  background: transparent;
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
  /* Keep the PNG's fine white keyline legible after sidebar downscaling. */
  filter:
    drop-shadow(.35px 0 0 white)
    drop-shadow(-.35px 0 0 white)
    drop-shadow(0 .35px 0 white)
    drop-shadow(0 -.35px 0 white);
}
.brand-product { width: 100%; font-size: 18px; font-weight: 700; line-height: 1.3; }
.brand-product small { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #b9c6d8; }
.login-card .brand-supplied { align-items: flex-start; padding: 0 0 26px; }
.login-card .brand-logo { width: 240px; max-width: 100%; }
.login-card .brand-product { color: var(--ink); font-size: 20px; }
.login-card { max-width: 510px; }
.login-card h1 { font-size: 36px; font-weight: 700; }
.login-card label, .login-card input { font-size: 16px; }
.login-card .primary { font-size: 16px; padding: 13px 16px; }
.login-art h2 { font-size: 42px; font-weight: 700; }
.login-art p { font-size: 18px; }

aside { overflow-y: auto; }
nav { flex-shrink: 0; }
nav button { color: #c6d1e0; font-size: 15px; font-weight: 600; line-height: 1.4; padding: 10px 12px; }
nav button.active { color: white; font-weight: 700; }
.nav-label { color: #a4b3c8; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.sidebar-bottom { color: #b5c3d5; font-size: 12px; }
.user b { font-size: 14px; font-weight: 700; }
.user small { font-size: 12px; }
.crumb, .status-pill { font-size: 13px; font-weight: 500; color: #526178; }
.crumb b { font-weight: 700; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 700; color: #526178; letter-spacing: 1px; }
.page-heading p { font-size: 16px; }
.primary, .secondary { font-size: 14px; font-weight: 700; }
.secondary { color: #40516a; }
.filters { flex-wrap: wrap; row-gap: 16px; }
.filters label { min-width: 135px; font-size: 13px; font-weight: 600; color: #526178; }
.filters input, .filters select { font-size: 14px; font-weight: 500; color: #283b55; padding: 5px 0; }
.metric-label { font-size: 14px; font-weight: 600; color: #526178; gap: 8px; min-height: 40px; }
.metric-icon { flex-shrink: 0; }
.metric-value { font-size: 30px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.metric-note { font-size: 12px; color: #526178; line-height: 1.5; }
.metric.blue .metric-label, .metric.blue .metric-note { color: #f0f5ff; }
.panel-head p { font-size: 13px; color: #526178; }
th { font-size: 12px; font-weight: 700; color: #526178; }
td { font-size: 14px; color: #40516a; }
td b { font-weight: 700; color: var(--ink); }
td .sub { font-size: 12px; color: #526178; }
.badge { font-size: 12px; font-weight: 600; }
.chart-legend, .bar-label { font-size: 12px; font-weight: 500; color: #526178; }
.balance-line span { font-size: 14px; color: #526178; }
.balance-line b { font-size: 16px; font-weight: 700; }
.callout, .policy { font-size: 14px; line-height: 1.65; }
.callout:not(.warn):not(.blue-note) { color: #526178; }
.callout.blue-note { color: #365785; }
.callout.warn { color: #795b22; }
.empty { color: #526178; }
.empty p { font-size: 14px; }
.search { font-size: 14px; }
.table-footer, footer { font-size: 12px; color: #526178; }
.place-card h3 { font-size: 18px; font-weight: 700; }
.place-card p { font-size: 14px; }
label { font-size: 14px; font-weight: 600; color: #40516a; }
label input, label select { font-size: 16px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #64748b; opacity: 1; }
.line-editor label { font-size: 13px; }
.line-editor input, .line-editor select { font-size: 16px; }
.detail-grid div { font-size: 13px; color: #526178; }
.detail-grid b { font-size: 15px; font-weight: 700; }
.detail-json, textarea { font-size: 14px; line-height: 1.6; }
.timeline p { font-size: 14px; }
.timeline small { font-size: 12px; color: #526178; }

@media (min-width: 1500px) {
  .metric-value { font-size: 34px; }
}
@media (min-width: 851px) and (max-width: 1200px) {
  aside { width: 232px; }
  .main { margin-left: 232px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 30px; }
}
@media (max-width: 850px) {
  .brand-supplied { flex-direction: row; align-items: center; padding: 0 0 14px; gap: 16px; }
  .brand-logo { width: 132px; }
  .brand-product { width: auto; font-size: 20px; }
  nav button { font-size: 14px; }
  .login-card .brand-supplied { flex-direction: column; align-items: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  h2 { font-size: 19px; }
  .metric-value { font-size: 26px; }
  .metric-label { font-size: 13px; flex-wrap: wrap; }
  .metric-note { font-size: 12px; }
  .filters label { min-width: 0; }
  .heading-actions { flex-wrap: wrap; }
  .login-card h1 { font-size: 32px; }
}
