:root {
  --bg: #f7f3ed;
  --bg-soft: #fbf8f3;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --sidebar: #60181b;
  --sidebar-soft: #892226;
  --ink: #2b2020;
  --ink-soft: #6d615c;
  --line: rgba(96, 24, 27, 0.12);
  --emerald: #892226;
  --emerald-soft: #f6eceb;
  --gold: #fdc018;
  --gold-soft: #fff5da;
  --clay: #60181b;
  --sky: #b58a19;
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --sidebar-width: 15rem;
  --sidebar-collapsed: 4.6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.background-stage {
  display: none;
}

.grid-wash {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 24, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 24, 27, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 82%);
  opacity: 0.2;
}

.orb {
  display: none;
}

.orb-one {
  width: 18rem;
  height: 18rem;
  top: -4rem;
  right: 8%;
  background: rgba(137, 34, 38, 0.2);
}

.orb-two {
  width: 24rem;
  height: 24rem;
  left: -8rem;
  bottom: 8%;
  background: rgba(253, 192, 24, 0.22);
  animation-duration: 19s;
}

.login-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
  padding: clamp(1.4rem, 2vw, 2rem) clamp(1.2rem, 3vw, 3rem);
}

.story-panel,
.login-panel,
.panel,
.hero-card,
.brand-card,
.user-card,
.status-card {
  backdrop-filter: none;
  background: var(--surface);
  border: 1px solid #e5ddd2;
  box-shadow: var(--shadow-sm);
}

.story-panel {
  border-radius: 2.2rem;
  padding: clamp(1.6rem, 2.8vw, 3.2rem);
}

.government-lockup,
.panel-brand,
.sidebar-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.government-lockup {
  margin-bottom: 1rem;
}

.solo-mark {
  width: clamp(4.75rem, 9vw, 6.5rem);
}

.lockup-copy {
  display: grid;
  gap: 0.16rem;
  flex: 1;
}

.lockup-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.lockup-motto,
.brand-motto {
  color: var(--gold);
  font-style: italic;
  font-weight: 700;
}

.lockup-emblem,
.lockup-logo {
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(96, 24, 27, 0.08));
}

.lockup-emblem {
  width: clamp(3.8rem, 7vw, 5.6rem);
}

.lockup-logo {
  width: clamp(4rem, 8vw, 6rem);
}

.brand-rule {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.brand-rule span {
  height: 0.38rem;
  border-radius: 999px;
}

.rule-dark {
  background: #2b2b2b;
}

.rule-primary {
  background: var(--emerald);
}

.rule-accent {
  background: var(--gold);
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
}

.story-panel h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 0.96;
}

.intro-copy {
  max-width: 38rem;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feature-grid,
.kpi-grid,
.section-grid,
.report-card-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: #fff;
  border: 1px solid #e4dbcf;
  box-shadow: var(--shadow-sm);
}

.feature-label {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p,
.panel p,
.brand-card p,
.status-card p,
.topbar-subtitle {
  line-height: 1.6;
  color: var(--ink-soft);
}

.sample-users {
  margin-top: 2rem;
}

.credential-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.credential-card {
  border: 1px solid #e4dbcf;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.credential-card:hover,
.credential-card:focus-visible,
.nav-button:hover,
.nav-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
}

.credential-card:hover,
.credential-card:focus-visible {
  border-color: rgba(137, 34, 38, 0.32);
  box-shadow: var(--shadow-sm);
}

.credential-card strong,
.section-heading h2,
.section-heading h3 {
  display: block;
}

.credential-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.login-panel {
  border-radius: var(--radius-lg);
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
}

.panel-brand {
  justify-content: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-brand-logo {
  width: 4rem;
  object-fit: contain;
}

.panel-brand-copy {
  color: var(--ink-soft);
  line-height: 1.45;
}

.panel-top {
  margin-bottom: 1.3rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.login-form input {
  border: 1px solid #d7cfc4;
  border-radius: 0.45rem;
  padding: 0.95rem 1rem;
  background: var(--surface-strong);
  color: var(--ink);
}

.login-form input:focus-visible {
  outline: 2px solid rgba(137, 34, 38, 0.2);
  border-color: var(--emerald);
}

.primary-button,
.ghost-button {
  border-radius: 0.45rem;
  padding: 0.88rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  background: var(--emerald);
  color: white;
  font-weight: 700;
  box-shadow: none;
}

.ghost-button {
  background: #fff;
  border-color: rgba(96, 24, 27, 0.18);
  color: var(--clay);
}

.ghost-button.danger {
  color: var(--clay);
  border-color: rgba(198, 95, 67, 0.18);
}

.form-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-message.error {
  color: var(--clay);
}

.form-message.success {
  color: var(--emerald);
}

.login-note {
  margin-top: 1.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: var(--gold-soft);
  border: 1px solid rgba(253, 192, 24, 0.28);
  line-height: 1.6;
  color: #6a4c06;
}

.portal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

body.nav-collapsed .portal {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
}

body.nav-collapsed.nav-hovered .portal {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(47, 36, 36, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 4;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.95rem 0.75rem;
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(96, 24, 27, 0.99), rgba(137, 34, 38, 0.99));
  color: white;
  transition: transform 220ms ease, padding 220ms ease;
}

.brand-card,
.user-card,
.status-card {
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(253, 192, 24, 0.34);
  box-shadow: var(--shadow-sm);
}

.sidebar-lockup {
  margin-bottom: 0.9rem;
}

.sidebar-logo {
  width: 3.35rem;
}

.brand-card h2,
.user-card h3 {
  color: var(--clay);
}

.sidebar .eyebrow,
.sidebar p,
.sidebar strong,
.sidebar h3 {
  color: var(--ink);
}

.sidebar .eyebrow {
  color: var(--emerald);
  opacity: 1;
}

.user-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.user-copy {
  display: grid;
  gap: 0.18rem;
}

.user-name,
.user-role,
.user-desk {
  display: block;
  line-height: 1.25;
}

.user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clay);
}

.user-role {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}

.user-desk {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--clay);
  font-weight: 800;
}

.nav-menu {
  display: grid;
  gap: 0.45rem;
}

.nav-button {
  width: 100%;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.62rem 0.72rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-button.active {
  background: rgba(255, 245, 218, 0.98);
  border-color: rgba(253, 192, 24, 0.5);
  color: var(--clay);
}

.nav-icon {
  width: 1.72rem;
  height: 1.72rem;
  flex: 0 0 1.72rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(253, 192, 24, 0.16);
  color: #fff1bf;
}

.nav-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.nav-button.active .nav-icon {
  background: var(--gold);
  border-color: transparent;
  color: var(--clay);
}

.nav-copy {
  display: grid;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.nav-title {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-caption {
  display: none;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  opacity: 0.72;
}

.status-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

body.nav-collapsed .sidebar {
  padding: 0.72rem 0.32rem;
  justify-items: center;
}

body.nav-collapsed .brand-card,
body.nav-collapsed .user-card,
body.nav-collapsed .status-card {
  padding: 0.45rem 0.2rem;
}

body.nav-collapsed .sidebar-lockup {
  justify-content: center;
  margin-bottom: 0;
}

body.nav-collapsed .sidebar-logo {
  width: 2.25rem;
}

body.nav-collapsed .sidebar-emblem,
body.nav-collapsed .brand-card .eyebrow,
body.nav-collapsed .brand-card h2,
body.nav-collapsed .brand-motto,
body.nav-collapsed #branchDescriptor,
body.nav-collapsed .user-card div,
body.nav-collapsed .status-card .section-heading,
body.nav-collapsed .status-card p,
body.nav-collapsed #syncStamp,
body.nav-collapsed .nav-copy {
  display: none;
}

body.nav-collapsed .user-card {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
}

body.nav-collapsed .avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  font-size: 0.76rem;
}

body.nav-collapsed .nav-menu {
  justify-items: center;
  width: 100%;
}

body.nav-collapsed .nav-button {
  width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  justify-content: initial;
  padding: 0;
  margin: 0 auto;
}

body.nav-collapsed .nav-icon {
  width: 1.48rem;
  height: 1.48rem;
  flex: 0 0 1.48rem;
}

body.nav-collapsed .status-pill-row {
  justify-content: center;
  margin-top: 0;
}

body.nav-collapsed.nav-hovered .sidebar {
  padding: 0.95rem 0.75rem;
  justify-items: stretch;
}

body.nav-collapsed.nav-hovered .brand-card,
body.nav-collapsed.nav-hovered .user-card,
body.nav-collapsed.nav-hovered .status-card {
  padding: 0.85rem;
}

body.nav-collapsed.nav-hovered .sidebar-lockup {
  justify-content: flex-start;
  margin-bottom: 0.45rem;
}

body.nav-collapsed.nav-hovered .sidebar-logo {
  width: 3.1rem;
}

body.nav-collapsed.nav-hovered .sidebar-emblem,
body.nav-collapsed.nav-hovered .brand-card .eyebrow,
body.nav-collapsed.nav-hovered .brand-card h2,
body.nav-collapsed.nav-hovered .brand-motto,
body.nav-collapsed.nav-hovered #branchDescriptor,
body.nav-collapsed.nav-hovered .user-card div,
body.nav-collapsed.nav-hovered .status-card .section-heading,
body.nav-collapsed.nav-hovered .status-card p,
body.nav-collapsed.nav-hovered #syncStamp,
body.nav-collapsed.nav-hovered .nav-copy {
  display: block;
}

body.nav-collapsed.nav-hovered .nav-copy {
  display: grid;
}

body.nav-collapsed.nav-hovered .user-card {
  grid-template-columns: auto 1fr;
  justify-items: stretch;
}

body.nav-collapsed.nav-hovered .user-copy {
  gap: 0.14rem;
}

body.nav-collapsed.nav-hovered .nav-button {
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: flex-start;
  padding: 0.62rem 0.72rem;
}

body.nav-collapsed.nav-hovered .status-pill-row {
  justify-content: flex-start;
}

.live-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0.35rem rgba(253, 192, 24, 0.16);
}

.workspace {
  padding: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
  border-radius: var(--radius-md);
  border: 1px solid #e5ddd2;
  border-top: 4px solid var(--emerald);
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(253, 192, 24, 0.16));
}

.topbar-shell {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.topbar-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.topbar-logo {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar h1 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  color: var(--clay);
  line-height: 1.04;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

#navToggleButton {
  display: none;
}

.button-symbol {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.16em;
}

.live-status-chip {
  background: var(--emerald-soft);
  border-color: rgba(137, 34, 38, 0.18);
  color: var(--emerald);
  gap: 0.45rem;
}

.live-status-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 rgba(137, 34, 38, 0.22);
  animation: live-blink 1.35s ease-in-out infinite;
}

.ghost-button.active-mode {
  background: var(--emerald);
  color: white;
  border-color: transparent;
}

.topbar-brandline {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.32rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-separator {
  width: 2rem;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.86));
}

.topbar .eyebrow {
  color: rgba(96, 24, 27, 0.64);
  margin-bottom: 0.08rem;
  font-size: 0.62rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.42rem 0.82rem;
  border-radius: 0.42rem;
  background: var(--gold-soft);
  border: 1px solid rgba(253, 192, 24, 0.38);
  color: var(--clay);
  font-weight: 700;
  font-size: 0.78rem;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.42rem;
  background: var(--gold-soft);
  border: 1px solid rgba(253, 192, 24, 0.38);
  color: var(--clay);
  font-weight: 700;
}

.topbar .ghost-button,
.topbar .icon-button {
  background: #fff;
  border-color: rgba(96, 24, 27, 0.18);
  color: var(--clay);
  padding: 0.54rem 0.85rem;
  font-size: 0.8rem;
}

.topbar .ghost-button.danger {
  background: #fff6f5;
  border-color: rgba(96, 24, 27, 0.16);
  color: var(--clay);
}

.topbar-subtitle {
  display: none;
}

.dashboard-filters {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.filter-field,
.filter-note-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.62rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d7e1f0;
  box-shadow: 0 10px 22px rgba(31, 71, 132, 0.06);
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7c8aa0;
}

.filter-field select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #234063;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  appearance: none;
}

.filter-note-card {
  display: none;
}

.filter-note-card strong {
  color: #243f61;
  font-size: 0.98rem;
}

.filter-note-card small {
  color: #7c8aa0;
  line-height: 1.35;
}

.view-area {
  display: grid;
  gap: 1rem;
}

.display-ribbon {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.display-pill {
  border-radius: 1rem;
  padding: 0.6rem 0.72rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d7e2f1;
  box-shadow: 0 8px 18px rgba(31, 71, 132, 0.05);
}

.display-pill.accent {
  background: linear-gradient(135deg, #7a54c7, #955bd2);
  color: white;
}

.display-pill.accent .display-label {
  color: rgba(255, 255, 255, 0.72);
}

.display-label {
  display: block;
  margin-bottom: 0.24rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display-pill strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.view {
  display: none;
  animation: rise 280ms ease;
}

.view.active {
  display: grid;
  gap: 1.2rem;
}

.hero-grid,
.content-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 1.35fr 0.85fr;
}

.content-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-hero h2 {
  max-width: 28ch;
}

.branch-kpi-grid {
  margin-top: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.branch-kpi-grid .kpi-card {
  min-height: 6.6rem;
  padding: 0.88rem 0.95rem;
}

.branch-kpi-grid .kpi-card strong {
  font-size: 1.56rem;
}

.branch-kpi-grid .metric-detail {
  font-size: 0.74rem;
}

.overview-trend-panel {
  width: 100%;
}

.panel,
.hero-card {
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid #e5ddd2;
  box-shadow: var(--shadow-sm);
}

.hero-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.38rem;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.hero-card h2 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  max-width: 20ch;
  line-height: 1.08;
  color: var(--clay);
}

.hero-card > p:last-of-type {
  margin-top: 0.6rem;
  max-width: 42rem;
}

.hero-card .eyebrow,
.hero-card p {
  color: var(--ink-soft);
}

.kpi-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card,
.summary-card,
.report-card {
  border-radius: 1rem;
  padding: 1rem;
  min-height: 7.5rem;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5ddd2;
  box-shadow: var(--shadow-sm);
  background: #fff;
  color: var(--ink);
}

.kpi-card::before,
.summary-card::before,
.report-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.3rem;
  background: var(--emerald);
}

.kpi-card strong,
.summary-card strong,
.report-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.3rem;
  color: var(--clay);
}

.metric-detail {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.metric-detail.on-card,
.summary-card .metric-detail,
.report-card .metric-detail {
  color: #8c6f19;
}

.summary-card small,
.kpi-card small,
.report-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  line-height: 1.45;
  text-align: left;
  font-style: normal;
}

.kpi-card span,
.summary-card span,
.report-card span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--emerald);
}

.kpi-grid .kpi-card:nth-child(1),
.section-grid .summary-card:nth-child(1),
.report-card-grid .report-card:nth-child(1) {
  background: linear-gradient(180deg, #fff, #fcf4f4);
}

.kpi-grid .kpi-card:nth-child(2),
.section-grid .summary-card:nth-child(2),
.report-card-grid .report-card:nth-child(2) {
  background: linear-gradient(180deg, #fff, #fff8e7);
}

.kpi-grid .kpi-card:nth-child(3),
.section-grid .summary-card:nth-child(3),
.report-card-grid .report-card:nth-child(3) {
  background: linear-gradient(180deg, #fff, #f8f2eb);
}

.kpi-grid .kpi-card:nth-child(4),
.section-grid .summary-card:nth-child(4) {
  background: linear-gradient(180deg, #fff, #fbf4eb);
}

.kpi-grid .kpi-card:nth-child(2)::before,
.section-grid .summary-card:nth-child(2)::before,
.report-card-grid .report-card:nth-child(2)::before {
  background: var(--gold);
}

.kpi-grid .kpi-card:nth-child(3)::before,
.section-grid .summary-card:nth-child(3)::before,
.report-card-grid .report-card:nth-child(3)::before {
  background: var(--clay);
}

.kpi-grid .kpi-card:nth-child(4)::before,
.section-grid .summary-card:nth-child(4)::before {
  background: var(--sky);
}

.section-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#complianceSummary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#complianceSummary .summary-card strong {
  font-size: 1.75rem;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
}

.section-heading p {
  color: var(--ink-soft);
}

.section-heading.compact h2,
.section-heading.compact h3 {
  font-size: 1.15rem;
  color: var(--clay);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.priority-item,
.lead-item,
.activity-item,
.watch-item,
.pipeline-item,
.hotspot-item,
.role-item,
.connector-item,
.setting-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.priority-item:last-child,
.lead-item:last-child,
.activity-item:last-child,
.watch-item:last-child,
.pipeline-item:last-child,
.hotspot-item:last-child,
.role-item:last-child,
.connector-item:last-child,
.setting-item:last-child {
  border-bottom: 0;
}

.line-between {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.status-tag,
.soft-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-tag {
  background: #fff3d5;
  color: #7b5708;
}

.soft-tag {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.segmented-control {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 0.5rem;
  background: #faf5ee;
  border: 1px solid #e3d9cc;
}

.segment-button {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
}

.segment-button.active {
  background: var(--emerald);
  color: white;
  box-shadow: none;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr));
  gap: 0.75rem;
  align-items: end;
  height: 19rem;
  min-height: 19rem;
  margin-top: 0.9rem;
}

.chart-column {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.6rem;
  align-items: end;
}

.chart-bar,
.registration-bar {
  border-radius: 1rem 1rem 0.55rem 0.55rem;
  min-height: 2.2rem;
}

.chart-bar {
  background: linear-gradient(180deg, #9b2e34, #60181b);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.chart-value {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.chart-label {
  font-weight: 700;
}

.chart-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.lead-item strong,
.priority-item strong,
.activity-item strong,
.watch-item strong,
.pipeline-item strong,
.hotspot-item strong,
.connector-item strong,
.role-item strong,
.setting-item strong {
  font-size: 0.98rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 0.42rem;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 700;
}

.percent-stack {
  display: grid;
  gap: 0.12rem;
  line-height: 1.08;
}

.percent-value {
  font-weight: 800;
  color: var(--clay);
  white-space: nowrap;
}

.percent-detail {
  font-size: 0.68rem;
  font-weight: 700;
  color: #81681a;
  white-space: nowrap;
}

.percent-stack.compact {
  min-width: 5.8rem;
}

.percent-stack.compact .percent-value {
  font-size: 0.88rem;
}

.percent-stack.inline-pill {
  justify-items: end;
}

.percent-stack.inline-pill .percent-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 0.62rem;
  border-radius: 0.42rem;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.donut-wrap {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.weight-donut {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: conic-gradient(var(--emerald) 0 40%, var(--gold) 40% 50%, #5c1a1e 50% 60%, #b58a19 60% 90%, #756a63 90% 100%);
}

.weight-donut::after {
  content: "";
  position: absolute;
  inset: 2.4rem;
  border-radius: 50%;
  z-index: 0;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(96, 24, 27, 0.12);
}

.donut-center {
  position: relative;
  z-index: 1;
  width: 62%;
  display: grid;
  gap: 0.22rem;
  justify-items: center;
  text-align: center;
}

.donut-center span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.donut-center strong {
  font-size: 2.05rem;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.04em;
}

.donut-center small {
  color: var(--ink-soft);
  line-height: 1.35;
  font-size: 0.78rem;
}

.weight-legend {
  width: 100%;
  display: grid;
  gap: 0.65rem;
}

.legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.legend-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.legend-copy strong {
  color: var(--clay);
}

.legend-copy small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.35;
}

.legend-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
}

.legend-track,
.progress-track {
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(96, 24, 27, 0.08);
}

.legend-fill,
.progress-fill {
  height: 100%;
  border-radius: inherit;
}

.compliance-main-grid {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.68fr);
  align-items: start;
}

.compliance-support-grid {
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.field-targets-panel {
  display: grid;
  align-content: start;
}

.compliance-weight-panel .weight-donut {
  width: 13.25rem;
  height: 13.25rem;
}

.compliance-weight-panel .weight-donut::after {
  inset: 2.05rem;
}

.compliance-weight-panel .weight-legend {
  gap: 0.55rem;
}

#seminarList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.target-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid #e4dbcf;
  background: linear-gradient(180deg, #fff, #fcf7ef);
  box-shadow: var(--shadow-sm);
}

.target-card:nth-child(2) {
  background: linear-gradient(180deg, #fff, #fbf3f3);
}

.target-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.target-card strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.04em;
}

.target-card strong span {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.target-card small {
  color: #7b5708;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.target-card p {
  color: var(--ink-soft);
  line-height: 1.45;
}

.table-wrap {
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid #e5ddd2;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: white;
}

.scoreboard-table {
  table-layout: fixed;
  font-size: 0.84rem;
}

.scoreboard-table th,
.scoreboard-table td {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.scoreboard-table th:first-child,
.scoreboard-table td:first-child {
  width: 16rem;
}

.scoreboard-table .tiny-note {
  font-size: 0.74rem;
}

thead th {
  text-align: left;
  padding: 0.85rem 0.85rem 0.75rem;
  color: #7b685f;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #e7ded2;
  background: #faf5ee;
}

tbody td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid #f0e8dd;
  vertical-align: top;
}

tbody tr:nth-child(even) td {
  background: #fdfaf6;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.name-cell strong {
  display: block;
  margin-bottom: 0.2rem;
}

.tiny-note {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.registration-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 0.8rem;
  align-items: end;
  min-height: 20rem;
  margin-top: 1rem;
}

.registration-stack {
  display: grid;
  gap: 0.45rem;
  align-items: end;
}

.registration-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  align-items: end;
  height: 14rem;
  min-height: 14rem;
}

.registration-bar {
  background: linear-gradient(180deg, #a52b31, #892226);
}

.registration-bar.secondary {
  background: linear-gradient(180deg, #ffda7b, #fdc018);
}

.chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-chip span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}

.segment-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.45rem;
}

.segment-item {
  display: grid;
  gap: 0.45rem;
}

.weights-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.7rem;
}

.weight-row {
  display: grid;
  gap: 0.55rem;
}

.weight-row label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.weight-row input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
}

.weights-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

.report-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-builder-panel {
  grid-column: 1 / -1;
}

.report-builder-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.report-field {
  display: grid;
  gap: 0.4rem;
}

.report-field select,
.report-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid #d7cfc4;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.report-field select:focus-visible,
.report-field input:focus-visible {
  outline: 2px solid rgba(137, 34, 38, 0.2);
  border-color: var(--emerald);
}

.report-request-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

.report-request-copy {
  display: grid;
  gap: 0.22rem;
}

.report-request-copy strong {
  color: var(--clay);
  font-size: 1rem;
}

.report-request-copy p {
  color: var(--ink-soft);
}

.report-preview-panel {
  grid-column: 1 / -1;
}

.report-preview-meta,
.report-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.report-preview-stats {
  margin-top: 0.9rem;
}

.report-meta-card,
.report-preview-stat {
  display: grid;
  gap: 0.28rem;
  padding: 0.88rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid #e5ddd2;
  background: linear-gradient(180deg, #fff, #fcf7ef);
}

.report-meta-card strong,
.report-preview-stat strong {
  color: var(--clay);
  font-size: 1rem;
}

.report-meta-card small,
.report-preview-stat span {
  color: var(--ink-soft);
  line-height: 1.35;
}

.report-preview-table {
  margin-top: 0.95rem;
}

.report-preview-table table {
  min-width: 42rem;
}

.report-card {
  position: relative;
  overflow: hidden;
}

.report-card button {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.empty-state {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(137, 34, 38, 0.04);
  color: var(--ink-soft);
}

@keyframes live-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(137, 34, 38, 0.22);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.86);
    box-shadow: 0 0 0 0.35rem rgba(137, 34, 38, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.2rem, 1rem, 0) scale(1.06);
  }
}

@media (max-width: 1200px) {
  .login-screen,
  .hero-grid,
  .content-grid.two-col,
  .compliance-main-grid,
  .compliance-support-grid,
  .portal,
  body.nav-collapsed .portal {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 86vw);
    z-index: 6;
    transform: translateX(-110%);
  }

  #navToggleButton {
    display: inline-flex;
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
  }

  body.drawer-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-collapsed .sidebar {
    padding: 1.2rem;
  }

  body.nav-collapsed .sidebar-emblem,
  body.nav-collapsed .brand-card .eyebrow,
  body.nav-collapsed .brand-card h2,
  body.nav-collapsed .brand-motto,
  body.nav-collapsed #branchDescriptor,
  body.nav-collapsed .user-card div,
  body.nav-collapsed .status-card .section-heading,
  body.nav-collapsed .status-card p,
  body.nav-collapsed #syncStamp {
    display: block;
  }

  body.nav-collapsed .sidebar-lockup {
    display: flex;
  }

  body.nav-collapsed .nav-copy {
    display: grid;
  }

  body.nav-collapsed .sidebar-emblem {
    display: inline-block;
  }

  body.nav-collapsed .user-card {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
  }

  body.nav-collapsed .nav-button {
    justify-content: flex-start;
    padding: 0.9rem 1rem;
  }

  .feature-grid,
  .section-grid,
  .report-card-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-builder-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-preview-meta,
  .report-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #complianceSummary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar {
    flex-direction: column;
  }

  .display-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .login-screen,
  .workspace,
  .sidebar {
    padding: 1rem;
  }

  .story-panel h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .government-lockup,
  .panel-brand,
  .sidebar-lockup,
  .topbar-brandline,
  .topbar-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-filters,
  .feature-grid,
  .section-grid,
  .report-card-grid,
  .kpi-grid,
  #seminarList,
  .display-ribbon {
    grid-template-columns: 1fr;
  }

  .branch-kpi-grid {
    grid-template-columns: 1fr;
  }

  .report-builder-form {
    grid-template-columns: 1fr;
  }

  .report-preview-meta,
  .report-preview-stats {
    grid-template-columns: 1fr;
  }

  .report-request-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #complianceSummary {
    grid-template-columns: 1fr;
  }

  .weight-donut {
    width: 12rem;
    height: 12rem;
  }

  .weight-donut::after {
    inset: 1.95rem;
  }

  .topbar-actions,
  .weights-actions {
    justify-content: stretch;
  }

  .topbar-actions > *,
  .weights-actions > * {
    width: 100%;
  }
}

body.tv-mode .portal {
  grid-template-columns: 1fr;
}

body.display-mode .portal {
  grid-template-columns: 1fr;
}

body.display-mode {
  overflow: hidden;
}

body.display-mode .sidebar {
  display: none;
}

body.display-mode.drawer-open .sidebar {
  display: none;
}

body.display-mode .sidebar-overlay {
  display: none;
}

body.display-mode.drawer-open .sidebar-overlay {
  display: none;
}

body.display-mode .workspace {
  height: 100vh;
  padding: 0.65rem 1rem 0.95rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

body.display-mode .topbar {
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.8rem 0.95rem;
}

body.display-mode .topbar h1 {
  font-size: clamp(2.1rem, 3vw, 3.3rem);
}

body.display-mode .topbar-brandline,
body.display-mode .topbar-subtitle,
body.display-mode #todayStamp,
body.display-mode .operator-only {
  display: none;
}

body.display-mode .topbar-actions {
  gap: 0.55rem;
}

body.display-mode .dashboard-filters {
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

body.display-mode .filter-field,
body.display-mode .filter-note-card {
  padding: 0.62rem 0.8rem;
}

body.display-mode .filter-note-card small {
  display: none;
}

body.display-mode .display-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

body.display-mode .display-pill {
  min-height: auto;
  padding: 0.72rem 0.85rem;
}

body.display-mode .display-pill strong {
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

body.display-mode .view-area,
body.display-mode .view.active {
  min-height: 0;
  overflow: hidden;
}

body.display-mode .view.active {
  gap: 0.7rem;
}

body.display-mode .hero-grid,
body.display-mode .content-grid,
body.display-mode .content-grid.two-col,
body.display-mode .compliance-main-grid,
body.display-mode .compliance-support-grid {
  gap: 0.7rem;
}

body.display-mode .compliance-main-grid {
  grid-template-columns: minmax(15rem, 0.76fr) minmax(0, 1.72fr);
}

body.display-mode .compliance-support-grid {
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.1fr);
}

body.display-mode .hero-card,
body.display-mode .panel {
  padding: 0.82rem 0.95rem;
  overflow: hidden;
}

body.display-mode .hero-card h2 {
  font-size: clamp(1.85rem, 2.2vw, 2.5rem);
}

body.display-mode .kpi-grid,
body.display-mode .section-grid,
body.display-mode .report-card-grid {
  gap: 0.7rem;
}

body.display-mode .branch-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.display-mode .branch-kpi-grid .kpi-card {
  min-height: 5.6rem;
  padding: 0.62rem 0.7rem;
}

body.display-mode .branch-kpi-grid .kpi-card strong {
  font-size: 1.14rem;
}

body.display-mode .branch-kpi-grid .metric-detail {
  font-size: 0.66rem;
}

body.display-mode #complianceSummary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.display-mode #complianceSummary .summary-card strong {
  font-size: 1.32rem;
}

body.display-mode .kpi-card,
body.display-mode .summary-card,
body.display-mode .report-card {
  padding: 0.72rem 0.8rem;
}

body.display-mode .kpi-card strong,
body.display-mode .summary-card strong,
body.display-mode .report-card strong {
  font-size: 1.45rem;
}

body.display-mode .metric-detail {
  margin-top: 0.22rem;
  font-size: 0.72rem;
}

body.display-mode .report-builder-form {
  gap: 0.65rem;
}

body.display-mode .report-preview-meta,
body.display-mode .report-preview-stats {
  gap: 0.6rem;
}

body.display-mode .report-field select,
body.display-mode .report-field input {
  min-height: 2.65rem;
  padding: 0.68rem 0.76rem;
  font-size: 0.88rem;
}

body.display-mode .report-request-copy strong {
  font-size: 0.94rem;
}

body.display-mode .report-request-copy p {
  font-size: 0.8rem;
}

body.display-mode .report-meta-card,
body.display-mode .report-preview-stat {
  padding: 0.72rem 0.78rem;
}

body.display-mode .report-meta-card strong,
body.display-mode .report-preview-stat strong {
  font-size: 0.92rem;
}

body.display-mode #seminarList {
  gap: 0.65rem;
}

body.display-mode .target-card {
  padding: 0.72rem 0.78rem;
  gap: 0.45rem;
}

body.display-mode .target-card strong {
  font-size: 1.55rem;
}

body.display-mode .priority-item,
body.display-mode .lead-item,
body.display-mode .activity-item,
body.display-mode .watch-item,
body.display-mode .pipeline-item,
body.display-mode .hotspot-item,
body.display-mode .role-item,
body.display-mode .connector-item,
body.display-mode .setting-item {
  padding: 0.62rem 0;
}

body.display-mode .chart-bars {
  height: 13rem;
  min-height: 13rem;
  margin-top: 0.55rem;
}

body.display-mode .registration-chart {
  min-height: 14rem;
  margin-top: 0.45rem;
}

body.display-mode .registration-pair {
  height: 9.5rem;
  min-height: 9.5rem;
}

body.display-mode .weight-donut {
  width: 10rem;
  height: 10rem;
}

body.display-mode .weight-donut::after {
  inset: 1.65rem;
}

body.display-mode .table-wrap {
  overflow: hidden;
}

body.display-mode table {
  font-size: 0.82rem;
}

body.display-mode .scoreboard-table {
  font-size: 0.76rem;
}

body.display-mode thead th {
  padding: 0.6rem 0.55rem;
  font-size: 0.7rem;
}

body.display-mode tbody td {
  padding: 0.62rem 0.55rem;
}

body.display-mode .scoreboard-table th,
body.display-mode .scoreboard-table td {
  padding: 0.48rem 0.42rem;
}

body.display-mode .scoreboard-table .tiny-note,
body.display-mode .percent-detail {
  font-size: 0.64rem;
}

body.display-mode .percent-stack.compact {
  min-width: 5.1rem;
}

body.display-mode .percent-stack.compact .percent-value {
  font-size: 0.8rem;
}

body.display-mode .chart-meta,
body.display-mode .tiny-note,
body.display-mode tbody td,
body.display-mode thead th,
body.display-mode .nav-caption {
  font-size: 0.78rem;
}

body.display-mode .panel p,
body.display-mode .brand-card p,
body.display-mode .status-card p,
body.display-mode .topbar-subtitle,
body.display-mode .chart-meta {
  line-height: 1.35;
}

body.tv-mode .topbar h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.9rem);
}

body.tv-mode .display-pill strong {
  font-size: clamp(1.08rem, 1.65vw, 1.45rem);
}

body.tv-mode .hero-card h2 {
  font-size: clamp(2.05rem, 2.8vw, 2.85rem);
}
