:root {
  --slp-ivory: #ffffff;
  --slp-cream: #f2eee3;
  --slp-cream-soft: #f6f3eb;
  --slp-navy: #264251;
  --slp-gold: #cbb26b;
  --slp-gold-soft: #dbc997;
  --slp-blue: #4c748a;
  --slp-blue-soft: #829ead;
  --slp-steel: #677b85;
  --shadow-soft: 0 22px 60px rgba(38, 66, 81, 0.14);
  --shadow-tight: 0 12px 28px rgba(38, 66, 81, 0.12);
  --border-soft: rgba(38, 66, 81, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--slp-cream-soft);
}

body {
  margin: 0;
  color: var(--slp-navy);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(76, 116, 138, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(203, 178, 107, 0.18), transparent 42%),
    var(--slp-cream-soft);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.dashboard-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 22px;
  color: var(--slp-ivory);
  background: var(--slp-navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand-lockup img {
  width: 172px;
  height: 86px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--slp-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--slp-ivory);
  font-size: clamp(2.1rem, 4vw, 4.75rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.18;
}

h3 {
  margin: 0 0 14px;
  color: var(--slp-navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.header-actions,
.mode-tabs,
.control-row,
.results-top,
.panel-heading,
.actual-inputs,
.comparison-grid,
.snapshot-bars {
  display: flex;
}

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

.button,
.text-button,
.mode-tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.button:hover,
.text-button:hover,
.mode-tab:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--slp-navy);
  background: var(--slp-gold);
  box-shadow: 0 10px 22px rgba(203, 178, 107, 0.25);
}

.button-consultation {
  box-shadow:
    0 0 0 4px rgba(203, 178, 107, 0.22),
    0 0 28px rgba(203, 178, 107, 0.48),
    0 12px 26px rgba(203, 178, 107, 0.28);
}

.button-consultation:hover {
  box-shadow:
    0 0 0 5px rgba(203, 178, 107, 0.28),
    0 0 36px rgba(203, 178, 107, 0.58),
    0 14px 30px rgba(203, 178, 107, 0.32);
}

.button-secondary {
  color: var(--slp-ivory);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.text-button {
  min-height: 36px;
  padding: 0 2px;
  color: var(--slp-blue);
  background: transparent;
  font-weight: 700;
}

.snapshot {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.4fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.snapshot-copy,
.metric-card,
.assumptions-panel,
.results-panel,
.deck-snapshot,
.methodology-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-tight);
}

.snapshot-copy {
  padding: 24px;
}

.snapshot-copy h2 {
  margin-bottom: 12px;
}

.snapshot-copy p:last-child {
  margin-bottom: 0;
  color: var(--slp-steel);
  line-height: 1.55;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.metric-card span,
.investment-pill span,
.breakdown-row span,
.comparison-grid span,
.snapshot-bars span {
  color: var(--slp-steel);
  font-size: 0.82rem;
  font-weight: 600;
}

.metric-card strong {
  color: var(--slp-navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.metric-card-strong {
  color: var(--slp-ivory);
  background:
    linear-gradient(135deg, rgba(219, 201, 151, 0.22), transparent 68%),
    var(--slp-navy);
}

.metric-card-strong span,
.metric-card-strong strong {
  color: var(--slp-ivory);
}

.mode-tabs {
  width: fit-content;
  margin: 18px 0;
  padding: 5px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(38, 66, 81, 0.08);
}

.mode-tab {
  padding: 0 18px;
  color: var(--slp-steel);
  background: transparent;
  font-weight: 700;
}

.mode-tab.is-active {
  color: var(--slp-ivory);
  background: var(--slp-blue);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.assumptions-panel,
.results-panel,
.deck-snapshot,
.methodology-panel {
  padding: 22px;
}

.panel-heading {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-heading-compact {
  margin-bottom: 16px;
}

.text-field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.text-field span,
.actual-inputs span {
  color: var(--slp-steel);
  font-size: 0.82rem;
  font-weight: 600;
}

.text-field input,
.actual-inputs input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--slp-navy);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--slp-ivory);
}

.input-section {
  padding: 18px 0;
  border-top: 1px solid rgba(38, 66, 81, 0.12);
}

.input-section:last-child {
  padding-bottom: 0;
}

.control {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.control:last-child {
  margin-bottom: 0;
}

.control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slp-steel);
  font-size: 0.84rem;
  font-weight: 600;
}

.control output {
  flex: 0 0 auto;
  color: var(--slp-navy);
  font-weight: 700;
}

.control-row {
  align-items: center;
  gap: 12px;
}

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

.control-row input[type="number"] {
  width: 94px;
  min-height: 40px;
  padding: 0 8px;
  color: var(--slp-navy);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--slp-ivory);
  text-align: right;
}

.results-top {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.investment-pill {
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid rgba(203, 178, 107, 0.42);
  border-radius: 8px;
  background: var(--slp-cream);
  text-align: right;
}

.investment-pill strong {
  font-size: 1.4rem;
}

.roi-visual-wrap {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.roi-ring {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--slp-gold) var(--roi-angle, 190deg),
    rgba(76, 116, 138, 0.16) 0
  );
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.72);
}

.roi-ring > div {
  display: grid;
  width: 64%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--slp-ivory);
  text-align: center;
}

.roi-ring span {
  align-self: end;
  color: var(--slp-steel);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.roi-ring strong {
  align-self: start;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
}

.breakdown-list {
  display: grid;
  gap: 18px;
}

.breakdown-row {
  display: grid;
  gap: 8px;
}

.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.breakdown-row strong {
  color: var(--slp-navy);
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 116, 138, 0.15);
}

.bar-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
}

#meetingBar {
  background: var(--slp-blue);
}

#errorBar {
  background: var(--slp-gold);
}

#turnoverBar {
  background: var(--slp-blue-soft);
}

.actual-pane,
.scenario-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(38, 66, 81, 0.12);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--slp-navy);
  border: 1px solid rgba(203, 178, 107, 0.5);
  border-radius: 999px;
  background: var(--slp-cream);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.actual-inputs label {
  display: grid;
  gap: 8px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.comparison-grid article,
.snapshot-bars > div {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(38, 66, 81, 0.12);
  border-radius: 8px;
  background: var(--slp-cream-soft);
}

.comparison-grid strong,
.snapshot-bars strong {
  font-size: 1.35rem;
}

.scenario-table {
  display: grid;
  gap: 10px;
}

.scenario-row {
  display: grid;
  grid-template-columns: minmax(74px, 0.45fr) minmax(160px, 1.2fr) minmax(96px, 0.5fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(38, 66, 81, 0.1);
}

.scenario-row:last-child {
  border-bottom: 0;
}

.scenario-name {
  color: var(--slp-navy);
  font-weight: 700;
}

.scenario-meta {
  color: var(--slp-steel);
  font-size: 0.78rem;
  font-weight: 600;
}

.scenario-bar-wrap {
  display: grid;
  gap: 7px;
}

.scenario-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 116, 138, 0.13);
}

.scenario-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--slp-blue), var(--slp-gold));
}

.scenario-values {
  text-align: right;
}

.scenario-values strong {
  display: block;
}

.scenario-values span {
  color: var(--slp-steel);
  font-size: 0.78rem;
  font-weight: 600;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.deck-snapshot {
  background:
    linear-gradient(135deg, rgba(203, 178, 107, 0.16), transparent 48%),
    var(--slp-ivory);
}

.deck-snapshot > p {
  max-width: 920px;
  margin-bottom: 20px;
  color: var(--slp-steel);
  font-size: 1.05rem;
  line-height: 1.62;
}

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

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

.formula-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(38, 66, 81, 0.1);
}

.formula-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.formula-list span {
  color: var(--slp-steel);
  font-size: 0.9rem;
  line-height: 1.45;
}

.is-embedded {
  background: var(--slp-cream-soft);
}

.is-embedded .dashboard-shell {
  max-width: 1440px;
  padding: 24px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: min(340px, calc(100vw - 48px));
  padding: 12px 14px;
  color: var(--slp-ivory);
  border-radius: 8px;
  background: var(--slp-navy);
  box-shadow: var(--shadow-tight);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .snapshot,
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .assumptions-panel {
    order: 2;
  }

}

@media (max-width: 760px) {
  .dashboard-shell {
    padding: 14px;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup img {
    width: 148px;
    height: 74px;
  }

  .header-actions,
  .button,
  .mode-tabs,
  .mode-tab {
    width: 100%;
  }

  .header-actions {
    justify-content: stretch;
  }

  .metric-strip,
  .roi-visual-wrap,
  .actual-inputs,
  .comparison-grid,
  .snapshot-bars {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 118px;
  }

  .results-top,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .investment-pill {
    width: 100%;
    text-align: left;
  }

  .control-row {
    display: grid;
    grid-template-columns: 1fr 88px;
  }

  .scenario-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scenario-values {
    text-align: left;
  }
}

@media print {
  body {
    background: var(--slp-ivory);
  }

  .dashboard-shell {
    padding: 0;
  }

  .header-actions,
  .mode-tabs,
  .assumptions-panel,
  .toast,
  .text-button {
    display: none !important;
  }

  .brand-header,
  .snapshot-copy,
  .metric-card,
  .results-panel,
  .deck-snapshot,
  .methodology-panel {
    box-shadow: none;
  }

  .dashboard-grid,
  .bottom-grid,
  .snapshot {
    display: block;
  }

  .results-panel,
  .deck-snapshot,
  .methodology-panel {
    margin-top: 14px;
  }
}
