/* Shared product UI refinements. Navy/teal identity; no business semantics. */
:root {
  --muted: #a0b1c4;
  --accent-ink: #052c25;
  --selected: #163a3c;
  --shadow: none;
  --control-height: 40px;
}
:root[data-theme=light] {
  --muted: #52677b;
  --accent-ink: #ffffff;
  --selected: #e4f4ef;
}
body { font-size: 14px; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); }
a { text-underline-offset: 4px; }
table, .info-row, .report-stat { font-variant-numeric: tabular-nums; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; padding-top: 24px; }
.sidebar > * { flex-shrink: 0; }
.brand { margin-bottom: 24px; }
.workspace-label { background: transparent; margin-bottom: 22px; }
.workspace-label small, .nav-label, .profile small, .privacy-note small { font-size: 12px; }
.sidebar nav { gap: 3px; margin-bottom: 20px; }
.nav-item { min-height: 42px; padding-top: 9px; padding-bottom: 9px; }
.nav-item.active { background: var(--selected); }
.nav-item.active:before { display: none; }
.sidebar-bottom { padding-top: 12px; }
.privacy-note { display: none; }
.topbar { height: 64px; }
.breadcrumb, .secure-label, .demo-banner { font-size: 12px; }
.demo-banner { padding-top: 9px; padding-bottom: 9px; }
main { padding-top: 32px; }
.page-heading { margin-bottom: 24px; align-items: flex-start; }
.page-heading h1, .report-hero h1 { font-size: 28px; letter-spacing: -.02em; line-height: 1.4; font-weight: 650; }
.page-heading p, .report-hero p { font-size: 14px; line-height: 1.8; }
.sync-pill { font-size: 12px; padding: 7px 12px; border-radius: 8px; }
.filter-bar { background: transparent; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 24px; }
.filter-left { flex-wrap: wrap; }
.filter-left label { gap: 8px; }
.filter-left label > span { font-size: 12px; }
.filter-left input, .filter-left select { background: var(--input); border-color: var(--border); min-height: var(--control-height); font-size: 13px; }
.button, .primary-button, .secondary-button, .tab { font-size: 13px; min-height: var(--control-height); }
.button { transition: background .16s ease-out, border-color .16s ease-out; }
.button:hover { transform: none; }
.button.primary, .primary-button { color: var(--accent-ink); box-shadow: none; }
.button:active:not(:disabled) { filter: brightness(.94); }
.icon-button { width: 40px; height: 40px; }
.kpi-grid { gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; margin-bottom: 28px; }
.kpi, .kpi.featured { background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 152px; padding: 22px 24px; transition: none; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi:hover { transform: none; }
.kpi-top, .kpi.featured .kpi-top { color: var(--muted); font-size: 13px; }
.kpi-number { font-size: 36px; font-weight: 600; letter-spacing: -.025em; margin: 13px 0 10px; }
.kpi.featured .kpi-number { color: var(--text); }
.kpi-foot, .kpi.featured .kpi-foot { color: var(--muted); font-size: 12px; flex-wrap: wrap; gap: 5px 8px; }
.kpi-foot .badge { font-size: 12px; padding: 0; background: none; }
.panel { box-shadow: none; border-radius: 14px; }
.panel-heading { padding: 22px 24px 14px; }
.panel-heading h2 { font-size: 18px; letter-spacing: 0; }
.panel-heading p, .chart-caption, .legend-item, .small-chip { font-size: 12px; }
.charts-grid, .bottom-grid { gap: 22px; margin-bottom: 24px; }
.chart { height: 270px; }
.text-link, .platform-label, .row-action { font-size: 13px; }
th { font-size: 12px; padding: 13px 18px; font-weight: 550; }
td { font-size: 13px; padding: 15px 18px; }
.table-title { font-size: 14px; font-weight: 500; }
.subline, .badge, .group-tag { font-size: 12px; }
.row-action { min-height: 36px; min-width: 36px; }
.record-tools select, .search-input input, .record-summary, .pagination { font-size: 13px; }
.search-input { min-height: var(--control-height); }
.pagination .button { font-size: 12px; min-height: 36px; }
.info-row, .quiet-note, .insight-panel > p, .footnote { font-size: 12px; line-height: 1.8; }
.status-orbit { box-shadow: none; background: transparent; border: 0; margin-bottom: 4px; }
.insight-panel h3 { font-size: 16px; }
footer { font-size: 11px; opacity: 1; }
.login-art { background: var(--sidebar); }
.login-orbit { display: none; }
.login-art h1 { margin-top: auto; }
.login-art > small { position: static; margin-top: auto; padding-top: 48px; }
.login-card .button { min-height: 44px; }
.login-help, .demo-login { font-size: 12px; }
.drawer, .modal { border-radius: 14px; }
.drawer { border-radius: 14px 0 0 14px; }
.detail-field dt { font-size: 12px; }
.detail-field dd { font-size: 14px; }
.report-workspace .report-hero h1 { font-size: 28px; }
.report-workspace .panel { box-shadow: none; border-radius: 14px; }
.report-workspace .report-stats { gap: 0; border-block: 1px solid var(--border); }
.report-workspace .report-stat { background: transparent; border: 0; border-radius: 0; padding: 16px; }
.report-workspace .report-stat + .report-stat { border-left: 1px solid var(--border); }
.report-workspace .report-stat small { font-size: 12px; }
.report-workspace .report-history-item.active { border: 1px solid var(--border); background: var(--selected); }
.report-workspace .report-status-cell { border-radius: 0; background: transparent; border-bottom: 1px solid var(--border); padding-inline: 0; }
body[data-section=reports] .report-workspace .panel p { margin: 8px 0; }
body[data-section=reports] .report-workspace .panel h2 { margin-bottom: 12px; }
.identity-panel fieldset legend, .identity-panel fieldset label, .security-card-heading p, .security-guide p, .security-guide .quiet-note { font-size: 13px; }
@media (max-width: 1250px) {
  .kpi { padding: 20px 18px; }
  .filter-bar { flex-wrap: wrap; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 1250px) {
  .report-workspace .report-stat:nth-child(3) { border-left: 0; }
  .report-workspace .report-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 650px) {
  .topbar { height: 60px; }
  .secure-label { display: none; }
  main { padding: 24px 16px 0; }
  .page-heading h1, .report-workspace .report-hero h1 { font-size: 25px; }
  .page-heading p { font-size: 13px; }
  .filter-bar { gap: 12px; align-items: flex-start; padding-bottom: 16px; }
  .filter-left { width: 100%; gap: 12px; }
  .filter-left label { flex-wrap: wrap; }
  .filter-left input { max-width: 136px; font-size: 12px; }
  .filter-left select { max-width: 255px; }
  .filter-bar .button { font-size: 13px; min-height: 40px; padding: 8px 12px; }
  .kpi { padding: 18px 14px; min-height: 158px; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .kpi-number { font-size: 30px; }
  .kpi-foot { font-size: 12px; }
  .panel-heading { padding: 18px 16px 12px; }
  .panel-heading h2 { font-size: 17px; }
  .chart-caption { padding: 12px 16px; }
  .platform-legend { padding: 12px 16px; gap: 14px; }
  .insight-panel { display: block; }
  .record-tools { flex-wrap: wrap; }
  .record-tools select { min-height: 40px; }
  .search-input { flex: 1 1 160px; }
  .pagination { flex-wrap: wrap; gap: 14px; }
  .pagination > span { max-width: none; }
  .pagination > div { gap: 12px; }
  .report-workspace .report-hero-actions { flex-wrap: wrap; }
  .report-workspace .report-stat { padding: 14px 8px; }
  footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
