:root {
  --bg: #f6f7fb;
  --surface: #faf8f5;
  
  --surface-2: #f1f4f9;
  --text: #1a1a18;
  --muted: #6b6b63;
  --border: #dbe2ee;
  --accent: #2b6ef2;
  --accent-soft: #eaf1ff;
  --good: #188750;
  --warn: #a66a00;
  --bad: #b42318;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
  --radius: 18px;

  --vitality: #FFD000;
  --emotion: #E53846;
  --execution: #2D52B5;
  --mind: #770136;
  --alignment: #1B74CD;

  --vitality-bg: linear-gradient(135deg, #f6bf14 0%, #ffcf1f 60%, #eab308 100%);
  --emotion-bg: linear-gradient(135deg, #ff4d67 0%, #ff1f49 55%, #d9133a 100%);
  --mind-bg: linear-gradient(135deg, #5d0026 0%, #7a0138 55%, #99004a 100%);
  --execution-bg: linear-gradient(135deg, #4b43d1 0%, #3757d7 45%, #2a63de 100%);
  --alignment-bg: linear-gradient(135deg, #47a4ff 0%, #1f7fe5 50%, #0f5fbc 100%);

  --vitality-text: #f5f5f5;
  --emotion-text: #f5f5f5;
  --execution-text: #f5f5f5;
  --mind-text: #f5f5f5;
  --alignment-text: #f5f5f5;
}

@font-face {
  font-family: "q5-heading";
  src: url("./fonts/AndQFive_Headlinefont_Thick.ttf") format("truetype");
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-family: 'Montserrat', sans-serif;
}
.bg {
  width: 100%;
  height: 100%;
  position: fixed;
  background: radial-gradient(circle at center, #ffff, #f5f5f5);
  background-repeat: no-repeat;
  z-index: 0;
  overflow: auto;
}
.wrap {
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  padding: 32px 20px 60px;
  position: relative;
  z-index: 1;
}

.hero {
  background: linear-gradient( 180deg, rgba(255, 208, 0, 0.06), rgba(229, 56, 70, 0.05), rgba(45, 82, 181, 0.05) );
  color: var(--text);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  background: url("../assets/images/V2.jpg") center / cover no-repeat;
  color: #f5f5f5;
}

.hero h1{
  font-family: 'q5-heading',  sans-serif ;
  text-transform: uppercase;
}
.logo { width: 250px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 0rem; }

.hero-content {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}
.circles {
  position: absolute;
  top: 0%; right: 0%;
  pointer-events: none;
  width: auto;
  height: 100%;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  opacity: 0.6;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 12px; }

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}


h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero p { max-width: 740px; color: #f5f5f5; opacity: 0.9; }

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.input,
.button,
.select {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 46px;
  font: inherit;
}

.input,
.select {
  padding: 0 14px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  min-width: 220px;
}

.button {
  padding: 0 18px;
  background: white;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.button.secondary {
  background: rgba(255,255,255,0.14);
  color: white;
  border-color: rgba(255,255,255,0.25);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.grid.two {
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.ring-row {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}
.orbit-svg {
  width: 100%;
  height: 100%;
  max-width: 760px;
  display: block;
  margin: 0 auto;
}
.score-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  fill: #7c776f;
  font-weight: 600;
}
.score-label.center-label {
  font-size: 12px;
  letter-spacing: 1.4px;
  fill: #4e4b46;
  border-bottom: 1px solid #770136;
  font-weight: 700;
}
.score-sub {
  font-size: 10px;
  fill: #a39d93;
}

.score-sub.center-sub {
  font-size: 12px;
  fill: #a39d93;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card > h2 {
  padding-bottom: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}
.mode-insight-card > h2 {
  padding-bottom: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* .card > h2 {
  padding-bottom: 10px;
  margin-bottom: 16px;
  position: relative;
}

.card > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0)
  );
  border-radius: 2px;
} */

.stat-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.star-card-div {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 1.5rem;
} 
.stat-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:not(:first-child) {
  border-left: 1px solid #1a1a1841;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-note,
.subtle {
  color: var(--muted);
  font-size: 0.94rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-item { display: grid; gap: 6px; }
.bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa2ff, #2b6ef2);
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 12px;
}

.highlight {
  background: var(--accent-soft);
  border: 1px solid #cfe0ff;
  color: #12336f;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th { color: var(--muted); font-weight: 600; }

.empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 14px;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 26px;
  font-size: 0.92rem;
}
.signals-list-wrapper {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.signal-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e8e7e0;
  border-radius: 12px;
  background: #fff;
}

.signal-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}

.signal-body {
  display: grid;
  gap: 4px;
}

.signal-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-text {
  font-size: 14px;
  line-height: 1.5;
  color: #2f2e2a;
}

.signal-item.strength .signal-marker { background: #1D9E75; }
.signal-item.constraint .signal-marker { background: #D85A30; }
.signal-item.pattern .signal-marker { background: #534AB7; }
.signal-item.leverage .signal-marker { background: #2D52B5; }
.signal-item.fragmentation .signal-marker { background: #770136; }

.q-chip {
  font-weight: 600;
  position: relative;
  padding-left: 10px;
}

.q-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: currentColor;
}

.q-chip.vitality  { color: var(--vitality); }
.q-chip.emotion   { color: var(--emotion); }
.q-chip.mind      { color: var(--mind); }
.q-chip.execution { color: var(--execution); }
.q-chip.alignment { color: var(--alignment); }



.signal-empty {
  font-size: 14px;
  color: #6f6e68;
}

.q-grid-wrapper {
  width: 100%;
  display: block;
}

.q-grid { 
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.q-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  padding: 40px 20px 24px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  text-align: left;
  gap: 12px;
}

.q-grid.overview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.q-grid.overview .q-card {
  grid-column: span 2;
}

.q-grid.overview .q-card:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.q-grid.overview .q-card:nth-last-child(1) {
  grid-column: 4 / span 2;
}

.q-last {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.q-card::after {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 40%, rgba(255,255,255,0) 72%);
}

.q-card::before,
.q-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}


.q-card.vitality .orb,
.q-card.emotion .orb,
.q-card.mind .orb,
.q-card.execution .orb,
.q-card.alignment .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(255,255,255,.28) 30%, rgba(255,255,255,0) 68%);
  filter: blur(1px);
  opacity: .9;
}
.orb-1 {
  width: 26px;
  height: 26px;
  top: 18px;
  right: 24px;
}

.orb-2 {
  width: 14px;
  height: 14px;
  bottom: 24px;
  left: 28px;
}

.orb-3 {
  width: 42px;
  height: 42px;
  bottom: 18px;
  right: 38px;
  opacity: 0.45;
}

.q-card.vitality .orb-1 { top: 14px; right: 18px; }
.q-card.emotion  .orb-1 { top: 22px; right: 30px; }
.q-card.mind     .orb-1 { top: 10px; right: 26px; }
.q-card.execution .orb-1 { top: 18px; right: 22px; }
.q-card.alignment .orb-1 { top: 12px; right: 40px; }
.q-card.vitality .orb { opacity: 0.7; }
.q-card.emotion  .orb { opacity: 0.85; }
.q-card.mind     .orb { opacity: 0.6; }
.q-card.execution .orb { opacity: 0.75; }
.q-card.alignment .orb { opacity: 0.8; }

.q-card.vitality { background: var(--vitality-bg); color: #000; }
.q-card.emotion  { background: var(--emotion-bg); color: #fff; }
.q-card.mind     { background: var(--mind-bg); color: #fff; }
.q-card.execution{ background: var(--execution-bg); color: #fff; }
.q-card.alignment{ background: var(--alignment-bg); color: #fff; }
.q-card.span-2 {
  grid-column: span 2;
}

.q-card.span-2 .q-head {
  justify-content: flex-start;
  gap: 12px;
}

.q-card.vitality .q-copy {
  color: rgba(0,0,0,0.85);
}
.q-card.vitality .q-section-label {
  color: rgba(0,0,0,0.65);
}
.q-card .q-head {
  display: flex; 
  justify-content: space-between; 
  align-items: baseline; 
  gap:6px;
  font-family: 'q5-heading', sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  border-bottom: 1px solid #ffffff9f;
  width: 100%;
}

.q-metrics {
  font-family: 'q5-heading', sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
}
.q-card.vitality .q-head {
  border-bottom: 1px solid #000000a9;
}

.q-section:first-of-type {
  margin-top: 2px;
}

.q-section:last-of-type {
  margin-top: 10px;
}
.q-card .q-bars {
  display: flex; justify-content: space-between; align-items: center; gap:2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.q-card .q-metrics {
  display: flex; 
  align-items: baseline; 
  gap: 8px;
  
}

.q-card .q-role {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 8px;
  opacity: 0.9;
  max-width: 85%;
}

.q-section {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.q-section:first-of-type .q-copy {
  font-weight: 500;
}

.q-section:nth-of-type(2) .q-copy {
  opacity: 0.85;
}

.q-section:last-of-type .q-copy {
  font-style: italic;
  opacity: 0.95;
  font-weight: 500;
}

.q-section-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;

}
.q-copy {
  font-size: 14px;
  line-height: 1.4;
}

.qcard-lbl { font-size: 11px; color: #888; margin-bottom: 4px; }
.qcard-val { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.qbar-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.qbar-l { font-size: 10px; color: #aaa; width: 10px; }
.qbar-t { flex: 1; height: 4px; background: #e0dfd8; border-radius: 2px; overflow: hidden; }
.qbar-f { height: 100%; border-radius: 2px; }

.q-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-distribution-labels {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.q-distribution-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255,255,255,0.18);
}

.q-distribution-seg {
  height: 100%;
}

.q-distribution-seg.low {
  background: rgba(216, 90, 48, 0.9);
}

.q-distribution-seg.mid {
  background: rgba(255,255,255,0.45);
}

.q-distribution-seg.high {
  background: rgba(29, 158, 117, 0.9);
}

.variance-section {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #e8e7e0;
  border-radius: 12px;
  background: #faf9f6; /* slightly softer than white cards */
}

.variance-head {
  margin-bottom: 12px;
}

.variance-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a18;
}

.variance-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6f6e68;
  line-height: 1.4;
}

.variance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variance-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  align-items: center;
  gap: 12px;
}
.variance-label {
  font-size: 13px;
  font-weight: 600;
  color: #2f2e2a;
}
.variance-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e8e7e0;
  overflow: hidden;
}
.variance-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.variance-meta-val {
  font-size: 12px;
  text-align: right;
  color: #6f6e68;
  font-weight: 500;
}

.variance-row.Consistent .variance-fill {
  background: #1D9E75;
}

.variance-row.Mixed .variance-fill {
  background: #FDC880;
}

.variance-row.Fragmented .variance-fill {
  background: #D85A30;
}

.variance-row:hover {
  background: rgba(0,0,0,0.02);
  border-radius: 6px;
}

.variance-row.low {
  font-weight: 600;
}
.mode-insight-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 208, 0, 0.06),
    rgba(229, 56, 70, 0.05),
    rgba(45, 82, 181, 0.05)
  ); 
  border: 1px solid rgba(83,74,183,0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mode-insight-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.mode-insight-title {
  color: #1a1a18;
}

.mode-insight-pattern {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6e68;
}

.mode-insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mode-metric {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eceae4;
}

.mode-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.mode-metric-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #222;
}

.mode-insight-copy {
  font-size: 14px;
  line-height: 1.5;
  color: #444441;
  max-width: 760px;
}

.mode-insight-copy .resil {
  color: #534AB7;
}

.mode-insight-copy .prep {
  color: #1D9E75;
}

.mode-metric.resilience .mode-metric-value {
  color: #534AB7;
}

.mode-metric.preparedness .mode-metric-value {
  color: #1D9E75;
}

.mode-metric.delta .mode-metric-value {
  color: #770136;
}
.mode-metric.delta .mode-metric-value.revert {
  color: #444441;
}

.mode-insight-card.resilience-heavy {
  border-color: rgba(83, 74, 183, 0.22);
}

.mode-insight-card.preparedness-heavy {
  border-color: rgba(29, 158, 117, 0.22);
}

.mode-insight-card.balanced {
  border-color: rgba(0, 0, 0, 0.08);
}

.mode-archetype-block {
  margin-top: 10px;
}

.mode-archetype-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  opacity: 0.6;
}

.mode-archetype-value {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f1f1c;
}
.insight-bridge {
  margin: 16px 0 28px;
  padding: 20px 24px;
  border-radius: 16px;

  background: #faf9f6;
  border: 1px solid #e8e7e0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}


/* .insight-bridge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #534AB7,
    #1D9E75
  );
  border-radius: 2px;
}
.insight-bridge::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 40px;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
} */

.ib-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.ib-copy {
  font-size: 14px;
  line-height: 1.5;
  color: #2f2e2a;
  max-width: 720px;
}

.metadata-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.metadata.card.is-open .metadata-body {
  opacity: 1;
  transform: translateY(0);
}

.card.metadata h2{
  color: var(--muted);

}
.card.metadata.is-closed:hover{
  transform: translateY(-6px)
}
.card.metadata {
  transition: all 0.2s ease;
}

.meta-chevron {
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0.7;
  color: var(--muted);
}

.metadata-card.is-open .meta-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.index-wrapper {
  display: flex;
  background-color: #1A1A1A;
  gap: 12px;
  flex-wrap: wrap;
}


@media (max-width: 960px) {
  .grid.metrics,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 700px) {
  .screen {
    max-width: 100%;
  }
  .q-grid {
    grid-template-columns: 1fr;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .signal-grid {
    grid-template-columns: 1fr;
  }
  .q-card.span-2 {
    grid-column: span 1;
  }
  .q-card.span-2 .q-head {
    justify-content: space-between;
  }
  .ring-row {
    height: 250px;
  }

}

/*
  overview-specific styles
*/

.overview-hero-copy {
  max-width: 820px;
}

.overview-toolbar {
  align-items: center;
}

.overview-toolbar .input,
.overview-toolbar .select {
  min-width: 180px;
}

.overview-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.overview-summary .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  align-items: flex-start;
}

.overview-summary .stat-card:not(:first-child) {
  border-left: 1px solid var(--border);
}

.filter-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field .input,
.field .select {
  width: 100%;
  min-width: 0;
  border-color: var(--border);
  background: #fff;
}

.overview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.overview-actions .button {
  border-color: var(--border);
  background: #fff;
}

.overview-actions .button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.batch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.batch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.12);
}

.batch-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.batch-id {
  font-family: "q5-heading", Montserrat, sans-serif;
  text-transform: uppercase;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
  word-break: break-word;
}

.batch-status {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: #12336f;
  border: 1px solid #cfe0ff;
}

.batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-meta .pill {
  background: #fff;
}

.batch-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.batch-metric {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.batch-metric-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.batch-metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.batch-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.batch-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.loading-state {
  display: none;
}

body.is-loading .loading-state {
  display: block;
}

body.is-loading #overviewContent {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .overview-summary,
  .filter-grid,
  .batch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .overview-summary,
  .filter-grid,
  .batch-grid,
  .batch-metrics {
    grid-template-columns: 1fr;
  }

  .batch-card-head,
  .batch-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-link {
    width: 100%;
  }
}