:root {
  color-scheme: light;
  --navy: #0b1f3a;
  --blue: #1d4ed8;
  --teal: #0f766e;
  --green: #16a34a;
  --gold: #f59e0b;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #dc2626;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  --soft-blue: #eff6ff;
  --soft-teal: #ecfdf5;
  --soft-gold: #fffbeb;
  --soft-red: #fef2f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, Manrope, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 520px);
  align-items: stretch;
  gap: 0;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
}

.login-brief {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brief::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.86) 0%, rgba(11, 31, 58, 0.62) 42%, rgba(11, 31, 58, 0.05) 100%),
    linear-gradient(0deg, rgba(11, 31, 58, 0.86) 0%, rgba(11, 31, 58, 0.14) 62%);
  content: "";
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.platform-kicker,
.eyebrow {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-brief .platform-kicker {
  color: #fbbf24;
}

.login-brief h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.7vw, 4.9rem);
  line-height: 0.96;
  text-wrap: balance;
}

.login-brief h2 span {
  display: block;
  color: #ffffff;
  font-size: clamp(3.2rem, 8vw, 8.6rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.login-brief p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-proof span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.login-proof strong {
  color: #fbbf24;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  max-width: 880px;
  margin-top: 18px;
}

.impact-strip article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.impact-strip strong,
.impact-strip span {
  display: block;
}

.impact-strip strong {
  color: #ffffff;
}

.impact-strip span {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-card {
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(440px, calc(100% - 48px));
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.sidebar .brand-mark {
  background: #ffffff;
  color: var(--navy);
}

.brand-row h1,
.brand-row p,
.topbar h2,
.workband h3,
.metric strong {
  margin: 0;
}

.brand-row h1 {
  color: var(--navy);
  font-size: 1.08rem;
}

.brand-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar .brand-row h1 {
  color: #ffffff;
}

.sidebar .brand-row p {
  color: #b6c2d1;
}

.demo-box {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--navy);
  font-size: 0.88rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px;
  background: var(--navy);
  color: #f8fafc;
}

.nav-tabs {
  display: grid;
  gap: 7px;
}

.nav-tab {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 780;
  text-align: left;
}

.nav-tab:hover,
.nav-tab.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-note span {
  display: block;
  color: #b6c2d1;
  font-size: 0.8rem;
}

.sidebar-note strong {
  display: block;
  margin-top: 6px;
}

.workspace {
  min-width: 0;
  padding: 28px 30px 34px;
}

.topbar,
.section-head,
.topbar-actions,
.filters,
.profile-chip {
  display: flex;
  align-items: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-content: space-between;
  gap: 20px;
  margin: -28px -30px 24px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
}

.topbar h2 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.view-subtitle {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.topbar-actions,
.filters {
  gap: 10px;
}

.primary-button,
.ghost-button,
.link-button,
.icon-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover {
  background: #1e40af;
}

.ghost-button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--navy);
}

.link-button {
  min-height: auto;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 2px 4px;
}

.link-button:hover {
  color: #1e40af;
  text-decoration: underline;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  place-items: center;
  border-color: var(--line);
  background: #ffffff;
}

.icon-button::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy);
  border-radius: 8px 8px 6px 6px;
  content: "";
}

.icon-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--red);
}

.profile-chip {
  gap: 10px;
  min-height: 42px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-chip span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-chip strong,
.profile-chip small {
  display: block;
  white-space: nowrap;
}

.profile-chip strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.profile-chip small {
  color: var(--muted);
  font-size: 0.74rem;
}

.view {
  display: none;
}

.active-view {
  display: grid;
  gap: 22px;
}

.executive-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.96), rgba(29, 78, 216, 0.88)),
    url("assets/samarth-hero.png") center right / cover;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.executive-hero::after {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  content: "";
}

.hero-narrative {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-narrative h3 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-narrative p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
}

.impact-ring {
  display: grid;
  width: min(260px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 44%, rgba(255, 255, 255, 0.08) 45% 100%);
  backdrop-filter: blur(12px);
}

.impact-ring span,
.impact-ring small {
  grid-area: 1 / 1;
}

.impact-ring span {
  color: #ffffff;
  font-size: 3.4rem;
  font-weight: 950;
}

.impact-ring small {
  align-self: end;
  margin-bottom: 58px;
  color: #dbeafe;
  font-weight: 800;
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.signal-card span {
  color: #dbeafe;
  font-weight: 760;
}

.signal-card strong {
  color: #ffffff;
  font-size: 1.3rem;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.impact-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.map-tile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.map-node {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 950;
}

.map-tile h4,
.map-tile p {
  margin: 0;
}

.map-tile h4 {
  color: var(--navy);
}

.map-tile p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.finance-pulse {
  display: grid;
  gap: 18px;
}

.pulse-ring {
  display: grid;
  width: min(220px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--green) 0 var(--value), #e5e7eb var(--value) 360deg);
}

.pulse-ring strong,
.pulse-ring span {
  grid-area: 1 / 1;
}

.pulse-ring strong {
  color: var(--navy);
  font-size: 2.4rem;
}

.pulse-ring span {
  align-self: end;
  margin-bottom: 48px;
  color: var(--muted);
  font-weight: 850;
}

.pulse-list {
  display: grid;
  gap: 8px;
}

.pulse-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.pulse-list span {
  color: var(--muted);
}

.pulse-list strong {
  color: var(--navy);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
}

.metric,
.workband,
.entity-card,
.score-card,
.timeline-item,
.document-item,
.geo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #ffffff;
}

.metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
  content: "";
}

.metric-teal::before {
  background: var(--teal);
}

.metric-green::before {
  background: var(--green);
}

.metric-gold::before {
  background: var(--gold);
}

.metric-red::before {
  background: var(--red);
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.metric small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.35;
}

.workband {
  padding: 22px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 26px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.workband h3 {
  color: var(--navy);
  font-size: 1.14rem;
}

label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.state-message {
  min-height: 42px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 760;
}

.state-message:empty {
  display: none;
}

.state-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.state-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.data-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.compact-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.wide-field {
  grid-column: span 2;
}

.form-action {
  align-self: end;
}

.filters {
  min-width: min(660px, 100%);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.filters input {
  min-width: 280px;
}

.entity-grid,
.scorecard-grid,
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 16px;
}

.entity-card,
.score-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.02rem;
}

.muted {
  color: var(--muted);
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.pill {
  background: var(--soft-blue);
  color: var(--blue);
}

.grade-a,
.risk-low {
  background: #dcfce7;
  color: #166534;
}

.grade-b {
  background: var(--soft-blue);
  color: #1d4ed8;
}

.grade-c,
.risk-medium {
  background: var(--soft-gold);
  color: #92400e;
}

.grade-d,
.risk-high {
  background: var(--soft-red);
  color: #b91c1c;
}

.kv {
  display: grid;
  gap: 8px;
}

.kv div,
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kv span,
.progress-row span {
  color: var(--muted);
}

.kv strong,
.progress-row strong {
  color: var(--navy);
  text-align: right;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.chart-bars,
.alert-list,
.activity-list,
.timeline,
.document-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
}

.bar-row span,
.bar-row strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.alert-item,
.activity-item {
  position: relative;
  padding: 13px 13px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.alert-item::before,
.activity-item::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.activity-item::before {
  background: var(--teal);
}

.alert-item strong,
.activity-item strong {
  display: block;
  color: var(--navy);
}

.geo-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.geo-map-cell {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 900;
}

.geo-card h4 {
  margin: 0 0 4px;
  color: var(--navy);
}

.geo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.geo-stats span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
}

.finance-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 0.92rem;
}

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

small {
  color: var(--muted);
}

.timeline-item,
.document-item {
  padding: 16px;
}

.timeline-item header,
.document-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-item h4,
.document-item h4 {
  margin: 0;
  color: var(--navy);
}

.report-preview {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.pdf-report {
  display: grid;
  gap: 18px;
  min-width: 880px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-cover {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.report-brand {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-cover h2 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 1.8rem;
}

.report-cover p {
  margin: 0;
  color: var(--muted);
}

.report-meta {
  display: grid;
  min-width: 140px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  text-align: center;
}

.report-meta strong {
  font-size: 2rem;
}

.report-meta span {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.report-filters,
.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-filters span,
.report-kpis div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.report-filters span {
  color: var(--muted);
  font-size: 0.84rem;
}

.report-kpis strong,
.report-kpis span {
  display: block;
}

.report-kpis strong {
  color: var(--navy);
  font-size: 1.22rem;
}

.report-kpis span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.pdf-report h3 {
  margin: 0;
  color: var(--navy);
}

.report-table-wrap table {
  min-width: 100%;
}

.passbook-page {
  display: grid;
  gap: 12px;
  break-after: page;
}

.passbook-page:last-child {
  break-after: auto;
}

.passbook-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.passbook-header h3,
.passbook-header p {
  margin: 0;
}

.passbook-header h3 {
  color: var(--navy);
}

.passbook-header p {
  margin-top: 5px;
  color: var(--muted);
}

.passbook-header span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

@media print {
  body {
    background: #ffffff;
  }

  body * {
    visibility: hidden;
  }

  #reportPreview,
  #reportPreview * {
    visibility: visible;
  }

  #reportPreview {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    overflow: visible;
    background: #ffffff;
  }

  .pdf-report {
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 18mm;
  }

  .report-table-wrap {
    border: 1px solid #d1d5db;
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 10px;
  }

  th,
  td {
    padding: 7px;
  }

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

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .executive-hero,
  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 1020px) {
  .login-screen {
    grid-template-columns: 1fr;
    background: #ffffff;
  }

  .login-brief {
    min-height: 62vh;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .login-card {
    margin: -52px auto 32px;
    width: min(520px, calc(100% - 36px));
    z-index: 2;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

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

  .sidebar-note {
    display: none;
  }

  .metrics-grid,
  .data-form,
  .compact-form,
  .finance-layout,
  .split-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 0;
  }

  .login-brief h2 {
    font-size: 2.35rem;
  }

  .login-brief {
    min-height: 68vh;
    padding: 26px;
  }

  .login-card {
    padding: 24px;
  }

  .workspace {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    margin: -18px -18px 18px;
    padding: 18px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .profile-chip {
    flex: 1 1 100%;
  }

  .primary-button,
  .ghost-button,
  .link-button,
  .filters input,
  .filters select {
    flex: 1;
  }

  .metrics-grid,
  .data-form,
  .compact-form,
  .finance-layout,
  .split-band,
  .wide-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .executive-hero {
    padding: 22px;
  }

  .hero-narrative h3 {
    font-size: 2rem;
  }

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

  .geo-card {
    grid-template-columns: 1fr;
  }
}
