* {
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #f5f7fd;
  color: #1e2335;
  min-height: 100vh;
  display: flex;
  transition: background 0.3s ease, color 0.3s ease;
}

:root {
  --brand-accent-blue: #0f6abe;
}

body[data-theme="dark"] {
  background: #050912;
  color: #f4f6fb;
}

.layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  width: 100%;
}

.sidebar {
  background: linear-gradient(180deg, #ecf1ff 0%, #e6ecfb 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  padding: 26px 26px 36px;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

body[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #0c1424 0%, #080d18 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

body[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 18px;
  margin-bottom: 18px;
  background: inherit;
}

.sidebar-header h2 {
  margin: 0;
}

.sidebar-header .small {
  margin: 4px 0 12px;
  color: #5a6072;
}

body[data-theme="dark"] .sidebar-header .small {
  color: #a8b4d4;
}

#modelSearch {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  margin-bottom: 12px;
}

body[data-theme="dark"] #modelSearch {
  background: #111a2f;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row select,
.sort-row select {
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.filter-row #territoryFilter {
  grid-column: 1 / -1;
}

body[data-theme="dark"] .filter-row select,
body[data-theme="dark"] .sort-row select {
  background: #131b2f;
  color: #f4f6fb;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sort-row label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8199;
}

#filtersClearButton {
  margin-left: auto;
  padding: 8px 12px;
  font-size: 0.8rem;
}

body[data-theme="dark"] .sort-row label {
  color: #a2accb;
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.model-group {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

body[data-theme="dark"] .model-group {
  background: #10172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.model-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5165;
}

body[data-theme="dark"] .model-group-header {
  border-color: rgba(255, 255, 255, 0.15);
}

.model-group-header span:first-child {
  color: inherit;
}

.pill {
  background: rgba(15, 23, 42, 0.1);
  color: #1e2335;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
}

body[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.2);
  color: #f4f6fb;
}

.model-group-items {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.75);
}

body[data-theme="dark"] .model-group-items {
  background: rgba(0, 0, 0, 0.15);
}

.model-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 18px 20px;
  background: radial-gradient(circle at top left, #ffffff 0%, #eef2ff 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 140px;
}

body[data-theme="dark"] .model-card {
  background: radial-gradient(circle at top left, #18233b 0%, #0f1629 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

body[data-theme="dark"] .model-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] .model-card {
  background: #0f1629;
  border-color: rgba(255, 255, 255, 0.08);
}

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

.model-card-head strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.executive-strip {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0a142c 0%, #102142 54%, #173767 100%);
  color: #f4f7ff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(129, 165, 255, 0.32);
}

body[data-theme="dark"] .executive-strip {
  background: linear-gradient(135deg, #07101f 0%, #0b1932 54%, #143662 100%);
  border-color: rgba(141, 168, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

body[data-theme="dark"] .summary-eyebrow,
body[data-theme="dark"] .summary-context-main h2,
body[data-theme="dark"] .summary-context-meta,
body[data-theme="dark"] .summary-updated {
  color: #8bd2ff;
}

.summary-context-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 2px 6px 10px 2px;
}

.summary-context-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 2px;
  padding-right: 10px;
}

.summary-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent-blue);
}

.summary-context-main h2 {
  margin: 0;
  font-size: 1.78rem;
  line-height: 1.14;
  font-weight: 780;
  color: var(--brand-accent-blue);
  text-wrap: balance;
}

.summary-context-meta {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
  color: var(--brand-accent-blue);
}

.summary-context-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 4px;
  padding-right: 6px;
  min-width: 168px;
}

.scenario-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #3769c1;
  border: 1px solid rgba(219, 229, 255, 0.38);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.summary-updated {
  display: inline-block;
  font-size: 0.84rem;
  line-height: 1.25;
  color: var(--brand-accent-blue);
  text-align: right;
}

.summary-cards-row {
  display: grid;
  grid-template-columns: 1.18fr 0.98fr 0.9fr 0.98fr 1.06fr;
  gap: 10px;
  align-items: stretch;
  padding: 8px 4px 0;
}

.executive-strip .summary-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 12px 15px;
  border-radius: 18px;
  background: linear-gradient(160deg, #3564a2 0%, #4676bb 52%, #5a8cd2 100%);
  border: 1px solid rgba(196, 211, 246, 0.24);
  min-height: 112px;
  overflow: hidden;
}

.executive-strip .summary-item span {
  display: block;
  font-size: 0.79rem;
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(234, 240, 252, 0.92);
  font-weight: 800;
}

.executive-strip .summary-item strong {
  display: block;
  font-size: 1.38rem;
  line-height: 1.08;
  color: #ffffff;
  font-weight: 780;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.executive-strip .summary-item-hero {
  background: linear-gradient(160deg, #1b3f77 0%, #24518f 52%, #2d60ac 100%);
  border: 1px solid rgba(210, 223, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.executive-strip .summary-item-hero strong {
  font-size: 2.16rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.executive-strip .summary-delta strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 1200px) {
  .summary-context-main h2 {
    font-size: 1.56rem;
  }

  .executive-strip .summary-item-hero strong {
    font-size: 2.18rem;
  }
}

@media (max-width: 1100px) {
  .summary-cards-row {
    grid-template-columns: 1fr 1fr;
  }

  .summary-context-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-context-side {
    align-items: flex-start;
    padding-top: 0;
  }

  .summary-updated {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .executive-strip {
    padding: 18px;
  }

  .summary-cards-row {
    grid-template-columns: 1fr;
  }

  .summary-context-main h2 {
    font-size: 1.36rem;
  }

  .executive-strip .summary-item,
  .executive-strip .summary-item-hero {
    min-height: 108px;
  }

  .executive-strip .summary-item-hero strong {
    font-size: 1.98rem;
  }
}

.model-card-head small {
  display: block;
  color: #7a8199;
  font-size: 0.82rem;
}

body[data-theme="dark"] .model-card-head small {
  color: #a2accb;
}

.model-card-time {
  font-size: 0.75rem;
  color: #7a8199;
}

body[data-theme="dark"] .model-card-time {
  color: #a2accb;
}

.model-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4b5165;
  gap: 12px;
}

.model-card-meta span {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  padding: 4px 12px;
  font-weight: 500;
}

body[data-theme="dark"] .model-card-meta {
  color: #c4ccee;
}

body[data-theme="dark"] .model-card-meta span {
  background: rgba(255, 255, 255, 0.08);
}

.model-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.model-card-footer span:first-child {
  background: rgba(15, 106, 190, 0.1);
  color: #0f6abe;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

body[data-theme="dark"] .model-card-footer span:first-child {
  background: rgba(27, 136, 245, 0.25);
  color: #9cd5ff;
}

.model-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.model-card-actions .valuation {
  font-weight: 700;
  font-size: 1.05rem;
}

.model-card-actions .del-btn {
  color: #9ba3be;
  font-weight: 500;
  font-size: 0.8rem;
}

body[data-theme="dark"] .model-card-actions .del-btn {
  color: #c6cee8;
}

.model-list li.empty {
  justify-content: center;
  cursor: default;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: transparent;
  padding: 16px;
}

body[data-theme="dark"] .model-list li.empty {
  border-color: rgba(255, 255, 255, 0.2);
}

.del-btn {
  border: none;
  background: transparent;
  color: #c53737;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
}

body[data-theme="dark"] .del-btn {
  color: #ff6b6b;
}

.content {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding-left: 28px;
  padding-right: 56px;
  padding: 24px;
}

header,
footer,
main,
nav.tabs,
.sticky-summary {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 24px 0;
}

header {
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

header h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  line-height: 1.1;
}

.title-line.accent {
  font-size: 2.4rem;
  color: #0f6abe;
}

body[data-theme="dark"] .title-line.accent {
  color: #8bd2ff;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button,
input,
select {
  font: inherit;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: #0f6abe;
  color: #fff;
  transition: background 0.2s ease;
}

button:hover {
  background: #0c5293;
}

button.ghost {
  background: transparent;
  color: #0f6abe;
  border: 1px solid rgba(15, 106, 190, 0.35);
}

body[data-theme="dark"] button.ghost {
  color: #8bd2ff;
  border-color: rgba(139, 210, 255, 0.4);
}

nav.tabs {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

.tabs .tab {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #4a5064;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tabs .tab.active {
  background: #0f6abe;
  color: #ffffff;
  border-color: #0f6abe;
}

body[data-theme="dark"] .tabs .tab {
  background: #111a2f;
  color: #c9d3f1;
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .tabs .tab.active {
  background: #1b88f5;
  color: #fff;
}

.sticky-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}

.summary-item {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body[data-theme="dark"] .summary-item {
  background: #0f1629;
  border-color: rgba(255, 255, 255, 0.08);
}

.summary-item span {
  font-size: 0.85rem;
  color: #5a6072;
}

.summary-item strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 6px;
}

.summary-delta {
  display: flex;
  align-items: center;
  gap: 8px;
}

#deltaBadge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: #e6f9ed;
  color: #138a3d;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 6px 0;
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body[data-theme="dark"] .panel {
  background: #0f1629;
  border-color: rgba(255, 255, 255, 0.08);
}


.som-field {
  grid-column: span 1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #4b5165;
}

body[data-theme="dark"] label span {
  color: #d0d9f8;
}

select,
input[type="text"],
input[type="number"],
input[type="range"] {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: #1e2335;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

body[data-theme="dark"] select,
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] input[type="range"] {
  background: #111a2f;
  color: #f4f6fb;
  border-color: rgba(255, 255, 255, 0.15);
}

.invalid input,
input.invalid {
  border-color: #ff6b6b;
  background: #ffecec;
}

body[data-theme="dark"] .invalid input,
body[data-theme="dark"] input.invalid {
  background: #2a0e15;
  border-color: #ffb3b3;
}

label.hidden {
  display: none;
}

body.clean-mode .full-only {
  display: none !important;
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
}


.som-sublabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8199;
  margin-bottom: 4px;
}

body[data-theme="dark"] .som-sublabel {
  color: #aab7dc;
}

.som-reset-col input,
.som-reset-col select {
  width: 100%;
  height: 40px;
}

.input-prefix .prefix {
  font-weight: 600;
  color: #4b5165;
}

body[data-theme="dark"] .input-prefix .prefix {
  color: #aab7dc;
}

.input-prefix input {
  flex: 1;
}

.value-box {
  background: #eff3fe;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: #1c2133;
}

body[data-theme="dark"] .value-box {
  background: #162136;
  color: #f4f6fb;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: #0f6abe;
  padding: 0;
  border: none;
  background: transparent;
}

#bidRangeDisplay {
  min-width: 55px;
  font-weight: 600;
  text-align: right;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.metric-group {
  margin-bottom: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 12px;
}

.metric-group:first-child {
  border-top: none;
  padding-top: 0;
}

.metric-group h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8199;
}

.metric-group dl,
.metrics-flat dl {
  margin: 0;
}

.metrics-view {
  display: none;
}

.metric-group dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.metric-group dl div:last-child {
  border-bottom: none;
}

body:not(.clean-mode) #scenarioFull {
  display: block;
}

body.clean-mode #scenarioClean {
  display: block;
}

.metrics-flat dl {
  background: #f9fbff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.metrics-flat dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  padding: 6px 0;
  gap: 8px;
}

.metric-group dt {
  font-weight: 500;
  color: #5a6072;
  position: relative;
}

.metric-group dt .tooltip-icon {
  margin-left: 6px;
  cursor: help;
  color: #0f6abe;
}

.metric-group dd {
  margin: 0;
  font-weight: 600;
  color: #1e2335;
}

.metrics-placeholder {
  padding: 28px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  text-align: center;
  color: #5a6072;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
}

body[data-theme="dark"] .metrics-placeholder {
  border-color: rgba(255, 255, 255, 0.25);
  color: #c4ccee;
  background: rgba(15, 23, 42, 0.4);
}

body[data-theme="dark"] .metric-group dt,
body[data-theme="dark"] .metric-group dd,
body[data-theme="dark"] .metrics-flat dt,
body[data-theme="dark"] .metrics-flat dd {
  color: #d0d9f8;
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 125%;
  white-space: nowrap;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease;
  font-size: 0.75rem;
  z-index: 10;
}

.tooltip-icon:hover::after {
  opacity: 1;
}

footer {
  color: #60657a;
  font-size: 0.9rem;
}

body[data-theme="dark"] footer {
  color: #aab7dc;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.tour-overlay.hidden {
  display: none;
}

.tour-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  width: min(420px, 90%);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .tour-card {
  background: #111a2f;
  color: #f4f6fb;
}

.preset-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.preset-overlay.hidden {
  display: none;
}

.preset-panel {
  width: min(520px, 90%);
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 35px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body[data-theme="dark"] .preset-panel {
  background: #121b30;
  color: #f4f6fb;
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.8);
}

.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 20, 0.6);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 24px;
}

.about-overlay.hidden {
  display: none !important;
}

.about-card {
  width: min(620px, 95%);
  background: rgba(17, 23, 43, 0.9);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 50px 90px rgba(5, 9, 18, 0.65);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f4f6fb;
  border: 1px solid rgba(139, 210, 255, 0.2);
}

body[data-theme="light"] .about-card {
  background: rgba(255, 255, 255, 0.92);
  color: #101528;
  border-color: rgba(15, 23, 42, 0.12);
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.about-header h3 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.about-header .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  opacity: 0.8;
}

.about-lede,
.about-footnote {
  margin: 0;
  line-height: 1.6;
  color: inherit;
  opacity: 0.92;
}

body[data-theme="light"] .about-lede,
body[data-theme="light"] .about-footnote {
  color: #33384c;
}

.about-definitions {
  margin: 0;
  display: grid;
  gap: 12px;
}

.about-definitions div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .about-definitions div {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.about-definitions dt {
  font-weight: 700;
  margin-bottom: 4px;
  color: #8bd2ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

body[data-theme="light"] .about-definitions dt {
  color: #0f6abe;
}

.about-definitions dd {
  margin: 0;
  font-size: 0.95rem;
  color: inherit;
  opacity: 0.95;
}

.about-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 20px;
}

body[data-theme="light"] .about-close {
  background: rgba(15, 23, 42, 0.08);
  color: #4b5165;
}

.about-dismiss {
  align-self: flex-start;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preset-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preset-panel-header h3 {
  margin: 0;
}

#presetOverlayClose {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #5a6072;
}

body[data-theme="dark"] #presetOverlayClose {
  color: #c4ccee;
}

.preset-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
  background: rgba(248, 250, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-theme="dark"] .preset-section {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.preset-section h4 {
  margin: 0;
  font-size: 0.95rem;
}

.primary {
  background: linear-gradient(120deg, #0f6abe, #1b88f5);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.preset-save-row {
  display: flex;
  gap: 10px;
}

#presetNameInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.preset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-empty {
  text-align: center;
  padding: 20px;
  color: #7a8199;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 12px;
}

.preset-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

body[data-theme="dark"] .preset-item {
  background: rgba(18, 27, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.preset-item-info {
  display: flex;
  flex-direction: column;
}

.preset-item-actions {
  display: flex;
  gap: 8px;
}

.preset-item-actions button {
  border-radius: 8px;
  padding: 6px 12px;
}

.preset-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
}

.tour-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.invalid-message {
  font-size: 0.75rem;
  color: #d03131;
}

.mobile-only {
  display: none;
}

@media (max-width: 600px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 80%);
    transform: translateX(-100%);
    z-index: 50;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }

  .mobile-only {
    display: inline-flex;
  }

  .content {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding-left: 28px;
  padding-right: 56px;
    padding: 16px;
  }

  .summary-item {
    font-size: 0.9rem;
  }
}
.print-summary {
  display: none;
  background: #ffffff;
  color: #0f172a;
  border-radius: 32px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 70px rgba(5, 10, 24, 0.1);
}

.print-summary__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.print-summary__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
  margin-bottom: 0.5rem;
}

.print-summary__meta {
  text-align: right;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.75);
}

.print-summary__section {
  margin-top: 2rem;
}

.print-summary__section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
}

.print-summary__grid,
.print-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.print-summary__grid .label,
.print-metrics .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 23, 42, 0.6);
  margin: 0 0 0.25rem;
}

.print-summary__grid .value,
.print-metrics .value {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.print-assumptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.print-assumptions div {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.print-assumptions dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 0.4rem;
}

.print-assumptions dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

body.printing-pdf {
  background: #ffffff;
  color: #0f172a;
}

body.printing-pdf .sidebar,
body.printing-pdf header,
body.printing-pdf .tabs,
body.printing-pdf .sticky-summary,
body.printing-pdf main,
body.printing-pdf footer,
body.printing-pdf #tourOverlay,
body.printing-pdf #presetOverlay,
body.printing-pdf #aboutOverlay {
  display: none !important;
}

body.printing-pdf #printSummary {
  display: block !important;
  box-shadow: none;
  border: none;
}

body.printing-pdf .content {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding-left: 28px;
  padding-right: 56px;
  padding: 0;
  background: transparent;
}

@media print {
  @page {
    margin: 0.3in !important;
    size: portrait !important;
  }
  body {
    background: #ffffff !important;
    font-size: 11px !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body,
  #printSummary {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
    color: #1e293b !important;
  }
  #print-dynamic-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 24px !important;
  }
  .text-slate-500,
  .metric-label {
    color: #64748b !important;
  }
  .sidebar,
  header,
  .tabs,
  .sticky-summary,
  main,
  footer,
  #tourOverlay,
  #presetOverlay,
  #aboutOverlay {
    display: none !important;
  }
  #printSummary {
    display: block !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
  .print-card {
    page-break-inside: avoid !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem !important;
  }
  #printSummary .metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
  }
}

.print-summary h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
}

.print-summary__subtitle {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.65);
}

.print-summary__meta-note {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
}

.print-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.print-scenario {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
}

.print-scenario h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.8);
}

.print-header {
  margin-bottom: 1rem;
}

.print-header h1 {
  margin: 0.25rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.print-divider {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  margin: 0.75rem 0;
}

.print-date {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
}

.print-summary {
  display: none;
  font-size: 0.95rem;
}

.print-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
}

.print-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: 100%;
}

.text-xs {
  font-size: 0.75rem;
}
.font-semibold {
  font-weight: 600;
}
.tracking-wider {
  letter-spacing: 0.08em;
}
.mt-1 {
  margin-top: 0.25rem;
}
.text-slate-500 {
  color: rgba(100, 116, 139, 1);
}
}

/* SOM field layout */
.som-field .som-input-row,
.som-reset-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.som-reset-col {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.som-sublabel {
  font-size: 0.85rem;
  color: rgba(90, 96, 114, 0.85);
  margin-bottom: 4px;
}

body[data-theme="dark"] .som-sublabel {
  color: rgba(208, 217, 248, 0.85);
}

.som-field .som-inline {
  display: flex;
  gap: 10px;
}

.som-field .som-inline input,
.som-field .som-inline select {
  flex: 1;
  min-width: 0;
}

.som-field .som-inline select {
  flex: 0.9;
}



.input-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.input-grid label {
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.input-grid input,
.input-grid select {
  width: 100% !important;
  box-sizing: border-box !important;
}

.som-inline {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

.som-reset-col { flex: 1 !important; min-width: 0 !important; }

.som-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  margin-bottom: 4px;
}

.som-field-label {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #4b5165 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.som-field.som-reset {
  padding-top: 0 !important;
}

.som-inline {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.som-field.som-reset > span {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #4b5165 !important;
  margin-bottom: 6px !important;
}

.som-field.som-reset {
  display: flex !important;
  flex-direction: column !important;
}

.som-inline {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(190px, 1fr)) !important;
  gap: 14px !important;
}

.som-reset-col input, .som-reset-col select {
  height: 44px !important;
}

.som-field.som-reset > span {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #4b5165 !important;
  margin-bottom: 6px !important;
}

.som-inline {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin-top: auto !important;
}

.som-reset-col {
  flex: 1 !important;
  min-width: 0 !important;
}

.som-reset-col input,
.som-reset-col select {
  height: 42px !important;
  font-size: 0.95rem !important;
}

.som-source {
  font-size: 0.95rem !important;
}

.som-field.som-reset {
  padding-top: 0 !important;
}
.som-field.som-reset > span {
  display: inline-block !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #4b5165 !important;
}
.som-inline {
  display: flex !important;
  gap: 14px !important;
  align-items: stretch !important;
}
.som-reset-col input,
.som-reset-col select {
  height: 44px !important;
}

.som-field.som-reset {
  padding-top: 0;
}

.som-field.som-reset > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5165;
  margin-bottom: 6px;
  display: inline-block;
}

.som-inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.som-reset-col {
  flex: 1;
  min-width: 0;
}

.som-reset-col input,
.som-reset-col select {
  width: 100%;
  height: 44px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.som-source {
  font-size: 0.95rem;
}

.som-field.som-reset {
  gap: 6px;
}

.som-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.som-header-meta {
  display: flex;
  gap: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7a8199;
}

.som-inline {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.som-reset-col {
  flex: 1;
  min-width: 0;
}

.som-reset-col input,
.som-reset-col select {
  height: 44px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.som-title-inline {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5165;
  display: inline-block;
  margin-bottom: 6px;
}

.som-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px;
}

.som-reset-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.som-reset-col input,
.som-reset-col select {
  height: 44px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.som-field.som-reset {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.som-title-inline {
  margin-bottom: 4px;
}

.som-inline {
  align-items: flex-end;
}

.som-sublabel {
  display: none !important;
}

.som-inline {
  align-items: flex-end !important;
}

#som,
#somSource,
.som-source {
  height: 44px !important;
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
}

.som-field.som-reset {
  padding-top: 0 !important;
}

.som-field.som-reset > span,
.som-title-inline {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
}

.som-inline {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

.som-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  height: 100% !important;
}

.som-field span {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  white-space: nowrap !important;
}

#som,
#somSource,
.som-source {
  height: 38px !important;
  box-sizing: border-box !important;
}

.som-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.som-field span {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  color: #4b5165 !important;
}

.som-inline {
  display: flex !important;
  gap: 14px !important;
  align-items: flex-end !important;
}

.som-inline input,
.som-inline select {
  height: 40px !important;
  box-sizing: border-box !important;
}

/* === Inputs section polish pass (2026-03-31) === */
.panel.inputs {
  padding: 28px 42px 30px;
}

.panel.inputs h2 {
  margin-bottom: 18px;
}

.panel.inputs .input-grid {
  gap: 22px 24px !important;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.panel.inputs .input-grid label {
  gap: 8px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(244,247,253,0.96) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  min-height: 112px;
}

body[data-theme="dark"] .panel.inputs .input-grid label {
  background: linear-gradient(180deg, rgba(18,27,47,0.92) 0%, rgba(12,18,34,0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.panel.inputs .input-grid label > span {
  display: block;
  min-height: 34px;
  margin: 0;
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #3f4a63 !important;
  white-space: normal !important;
}

body[data-theme="dark"] .panel.inputs .input-grid label > span {
  color: #dce6ff !important;
}

.panel.inputs .input-grid input,
.panel.inputs .input-grid select,
.panel.inputs .input-grid .value-box,
.panel.inputs .input-grid .input-prefix,
.panel.inputs .input-grid .slider-row {
  min-height: 46px;
}

.panel.inputs .input-grid input,
.panel.inputs .input-grid select {
  padding: 11px 14px !important;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(15,23,42,0.03);
  font-size: 0.96rem !important;
}

body[data-theme="dark"] .panel.inputs .input-grid input,
body[data-theme="dark"] .panel.inputs .input-grid select {
  background: #0f1728 !important;
  color: #f5f8ff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 1px 2px rgba(0,0,0,0.28);
}

.panel.inputs .input-grid input:focus,
.panel.inputs .input-grid select:focus {
  outline: none;
  border-color: #7daaf5 !important;
  box-shadow: 0 0 0 4px rgba(15, 106, 190, 0.12);
}

.panel.inputs .input-grid label.readonly,
.panel.inputs .input-grid label[data-field="churnAfter"],
.panel.inputs .input-grid label[data-field="ltvBeforeValue"],
.panel.inputs .input-grid label[data-field="ltvAfterValue"] {
  background: linear-gradient(180deg, rgba(240,244,251,0.96) 0%, rgba(232,238,249,0.96) 100%);
  border-color: rgba(116, 134, 174, 0.18);
}

body[data-theme="dark"] .panel.inputs .input-grid label.readonly,
body[data-theme="dark"] .panel.inputs .input-grid label[data-field="churnAfter"],
body[data-theme="dark"] .panel.inputs .input-grid label[data-field="ltvBeforeValue"],
body[data-theme="dark"] .panel.inputs .input-grid label[data-field="ltvAfterValue"] {
  background: linear-gradient(180deg, rgba(17,24,40,0.98) 0%, rgba(13,18,30,0.98) 100%);
  border-color: rgba(125, 146, 193, 0.16);
}

.panel.inputs .value-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(116, 134, 174, 0.18);
  background: rgba(255,255,255,0.72);
  font-weight: 700;
  color: #20304d;
}

body[data-theme="dark"] .panel.inputs .value-box {
  background: rgba(255,255,255,0.04);
  color: #eef4ff;
  border-color: rgba(255,255,255,0.1);
}

.panel.inputs .input-prefix {
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.panel.inputs .input-prefix .prefix {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #edf3ff;
  color: #31518e;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-right: 0;
  font-weight: 700;
}

body[data-theme="dark"] .panel.inputs .input-prefix .prefix {
  background: #12213f;
  color: #cfe1ff;
  border-color: rgba(255,255,255,0.12);
}

.panel.inputs .input-prefix input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.panel.inputs .slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.panel.inputs .slider-row input[type="range"] {
  width: 100%;
}

.panel.inputs #bidRangeDisplay {
  min-width: 58px;
  text-align: right;
  font-weight: 700;
  color: #31518e;
}

body[data-theme="dark"] .panel.inputs #bidRangeDisplay {
  color: #cfe1ff;
}

.panel.inputs .som-field,
.panel.inputs .som-field.som-reset {
  justify-content: flex-start !important;
  gap: 8px !important;
}

.panel.inputs .som-inline {
  display: grid !important;
  grid-template-columns: minmax(72px, 82px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.panel.inputs .som-inline > * {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.panel.inputs .som-inline input {
  min-width: 84px !important;
}

.panel.inputs .som-inline select {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 30px !important;
  font-size: 0.9rem !important;
  margin-right: 0 !important;
}

.panel.inputs #som,
.panel.inputs #somSource,
.panel.inputs .som-source {
  height: 46px !important;
  padding: 11px 14px !important;
}

@media (max-width: 1180px) {
  .panel.inputs .input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .panel.inputs {
    padding: 22px 20px 24px;
  }

  .panel.inputs .input-grid {
    grid-template-columns: 1fr !important;
  }
}
