:root {
  --ink: #222222;
  --ink-soft: #5f5f5f;
  --graphite: #171717;
  --surface: #ffffff;
  --canvas: #f5f5f3;
  --line: #e7e7e4;
  --accent: #ff385c;
  --accent-deep: #d90b42;
  --accent-soft: #fff0f3;
  --positive: #0f8a62;
  --positive-soft: #e9f7f1;
  --warning: #9a5d00;
  --warning-soft: #fff5dd;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 50px rgba(24, 24, 24, 0.08);
  font-family: "Airbnb Cereal VF", "Airbnb Cereal App", Circular, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 3%, rgba(255, 56, 92, 0.08), transparent 28rem),
    var(--canvas);
  font-weight: 500;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 4vw;
  color: white;
  background: rgba(23, 23, 23, 0.96);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-divider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.26);
}

.brand-product {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 500;
}

.topbar-actions,
.hero-side,
.legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secondary-button,
.icon-button,
.primary-button {
  border: 0;
  border-radius: 12px;
  transition: transform 150ms ease, background 150ms ease;
}

.secondary-button {
  padding: 11px 16px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.secondary-button.quiet {
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
}

.secondary-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.primary-button {
  width: 100%;
  padding: 15px 18px;
  color: white;
  background: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
}

.icon-button {
  width: 40px;
  height: 40px;
  color: white;
  background: transparent;
  font-size: 19px;
}

.status-pill,
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  padding: 8px 11px;
}

.status-pill.neutral {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.09);
}

.status-pill.good {
  color: #bff6df;
  background: rgba(31, 177, 122, 0.15);
}

.status-pill.warn {
  color: #ffe2a0;
  background: rgba(255, 179, 0, 0.13);
}

main {
  width: min(1440px, 92vw);
  margin: 0 auto;
  padding-bottom: 40px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 310px;
  padding: 76px 0 44px;
}

.hero h1,
.login-brand h1 {
  max-width: 850px;
  margin: 8px 0 20px;
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #777;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.hero-side {
  align-items: flex-end;
  flex-direction: column;
}

.no-write-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 255px;
  padding: 15px 18px;
  border-radius: 16px;
  color: white;
  background: var(--graphite);
}

.no-write-badge div {
  display: grid;
  gap: 3px;
}

.no-write-badge span:last-child {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 56, 92, 0.15);
}

.report-time {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.warning-banner {
  margin: 0 0 20px;
  padding: 15px 18px;
  border: 1px solid #f0d89b;
  border-radius: 14px;
  color: #714700;
  background: var(--warning-soft);
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-card,
.panel {
  border: 1px solid rgba(34, 34, 34, 0.06);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(24, 24, 24, 0.045);
}

.kpi-card {
  display: grid;
  min-height: 164px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.kpi-card p,
.kpi-card span {
  margin: 0;
  color: #777;
  font-size: 13px;
}

.kpi-card strong {
  align-self: center;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.kpi-card.featured {
  color: white;
  border: 0;
  background: var(--accent);
}

.kpi-card.featured p,
.kpi-card.featured span {
  color: rgba(255, 255, 255, 0.78);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

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

.panel {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.panel-heading.compact {
  align-items: center;
}

.panel h2 {
  margin: 6px 0 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.panel h3 {
  margin: 0;
  font-size: 15px;
}

.legend {
  color: #777;
  font-size: 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.accent {
  background: var(--accent);
}

.legend-dot.soft {
  background: #d9d9d4;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 0 12px 13px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

td {
  padding: 15px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

td:first-child,
th:first-child {
  padding-left: 0;
}

td:last-child,
th:last-child {
  padding-right: 0;
}

.date-cell {
  white-space: nowrap;
  font-weight: 700;
}

.category-cell {
  min-width: 190px;
}

.category-cell span {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 11px;
}

.inventory-badge {
  display: inline-flex;
  min-width: 36px;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 10px;
  background: #f0f0ed;
  font-weight: 800;
}

.inventory-badge.low {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.recommendation-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 150px;
  color: #7b6642;
  font-size: 12px;
}

.recommendation-state::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d3a84f;
}

.recommendation-state.raise {
  color: var(--positive);
}

.recommendation-state.raise::before {
  background: var(--positive);
}

.recommendation-state.lower {
  color: var(--accent-deep);
}

.recommendation-state.lower::before {
  background: var(--accent);
}

.decision-cell {
  min-width: 220px;
}

.decision-cell small {
  display: block;
  overflow: hidden;
  max-width: 260px;
  margin-top: 5px;
  color: #929292;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pace-list {
  display: grid;
  gap: 10px;
}

.pace-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.pace-row + .pace-row {
  border-top: 1px solid var(--line);
}

.pace-period {
  color: #777;
  font-size: 12px;
}

.pace-bar {
  overflow: hidden;
  height: 8px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #eeeeeb;
  appearance: none;
}

.pace-bar::-webkit-progress-bar {
  border-radius: inherit;
  background: #eeeeeb;
}

.pace-bar::-webkit-progress-value,
.pace-bar::-moz-progress-bar {
  border-radius: inherit;
  background: var(--accent);
}

.pace-value {
  min-width: 48px;
  text-align: right;
  font-weight: 800;
}

.pace-value.negative {
  color: var(--accent-deep);
}

.panel-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.mini-heading span {
  color: #888;
  font-size: 11px;
}

.weather-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(43px, 1fr));
  gap: 5px;
}

.weather-day {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 10px 2px;
  border-radius: 12px;
  background: #f7f7f5;
}

.weather-day span {
  color: #888;
  font-size: 10px;
}

.weather-day strong {
  font-size: 12px;
}

.weather-day em {
  color: #577080;
  font-size: 10px;
  font-style: normal;
}

.metric-chip {
  padding: 8px 11px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.competitor-list,
.audit-list {
  display: grid;
}

.competitor-row,
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.competitor-row:first-child,
.audit-row:first-child {
  border-top: 0;
}

.competitor-row div,
.audit-row div {
  display: grid;
  gap: 3px;
}

.competitor-row small,
.audit-row small {
  color: #888;
}

.tier {
  padding: 6px 9px;
  border-radius: 999px;
  color: #6b6b6b;
  background: #f0f0ed;
  font-size: 10px;
  text-transform: uppercase;
}

.tier.primary {
  color: var(--positive);
  background: var(--positive-soft);
}

.requirements-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: requirements;
}

.requirements-list li {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #555;
  line-height: 1.45;
  counter-increment: requirements;
}

.requirements-list li::before {
  content: counter(requirements);
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.history-summary > div {
  display: grid;
  gap: 3px;
  padding: 13px;
  border-radius: 13px;
  background: #f7f7f5;
}

.history-summary strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.history-summary span {
  color: #888;
  font-size: 9px;
}

.history-timeline,
.history-reasons {
  display: grid;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.history-row > div {
  display: grid;
  gap: 3px;
}

.history-row small {
  color: #888;
  font-size: 9px;
}

.history-pickup {
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.history-pickup.negative {
  color: var(--accent-deep);
}

.history-reason-row {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.history-reason-row:first-child {
  border-top: 0;
}

.history-reason-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #666;
  font-size: 10px;
}

.history-reason-row progress {
  overflow: hidden;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #eeeeeb;
  appearance: none;
}

.history-reason-row progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #eeeeeb;
}

.history-reason-row progress::-webkit-progress-value,
.history-reason-row progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--accent);
}

.audit-panel {
  margin-bottom: 14px;
}

.settings-panel {
  margin-bottom: 14px;
  scroll-margin-top: 92px;
}

.settings-heading {
  align-items: flex-start;
}

.section-lead {
  max-width: 720px;
  margin: 10px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.55;
}

.settings-summary {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: end;
}

.status-chip {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status-chip.pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-chip.ready {
  color: var(--positive);
  background: var(--positive-soft);
}

.settings-updated {
  color: #888;
  font-size: 11px;
}

.settings-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #5f5f5f;
  background: #f7f7f5;
  font-size: 12px;
  line-height: 1.5;
}

.settings-notice strong {
  color: var(--ink);
}

.schedule-settings {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px auto;
  align-items: end;
  gap: 18px;
}

.schedule-copy h3 {
  margin: 6px 0 5px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.schedule-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.45;
}

.schedule-zone {
  display: grid;
  gap: 8px;
  min-height: 44px;
  align-content: center;
}

.schedule-zone span {
  color: #777;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-zone strong {
  font-size: 11px;
}

.settings-divider {
  margin: 30px 0;
}

.subsection-heading,
.lead-profiles-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.subsection-heading h3,
.lead-profiles-heading h3 {
  margin: 6px 0 5px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.subsection-heading p:last-child,
.lead-profiles-heading p {
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.45;
}

.approval-toggle.prominent {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--accent-soft);
}

.model-global-grid {
  margin-bottom: 26px;
}

.plain-config-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcdcd7;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.plain-config-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.secondary-light-button,
.text-button {
  border: 0;
  font: inherit;
}

.secondary-light-button {
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--ink);
  background: #efefec;
  font-size: 11px;
  font-weight: 800;
}

.text-button {
  padding: 5px;
  color: var(--accent-deep);
  background: transparent;
  font-size: 10px;
}

.lead-profile-list {
  display: grid;
  gap: 10px;
}

.lead-profile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafaf8;
}

.lead-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.lead-profile-heading > div {
  display: grid;
  gap: 3px;
}

.lead-profile-heading small {
  color: #888;
  font-size: 10px;
}

.compact-empty {
  padding: 12px 0;
}

.market-mapping-groups {
  display: grid;
  gap: 10px;
}

.market-mapping-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafaf8;
}

.market-mapping-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.market-mapping-group summary small {
  color: #888;
  font-size: 10px;
  font-weight: 600;
}

.market-mapping-list {
  padding: 0 14px 14px;
}

.market-mapping-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) 125px minmax(330px, 1.4fr) auto;
  align-items: end;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.market-room {
  display: grid;
  align-self: center;
  gap: 4px;
}

.market-room strong {
  font-size: 11px;
  line-height: 1.35;
}

.market-room small {
  color: #888;
  font-size: 9px;
}

.mapping-compact-field {
  display: grid;
  gap: 5px;
}

.mapping-compact-field > span {
  color: #777;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mapping-compact-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #dcdcd7;
  border-radius: 9px;
  outline: none;
  background: white;
  font-size: 10px;
}

.mapping-conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 7px;
}

.mapping-approval {
  min-height: 38px;
  align-self: end;
}

.category-settings {
  display: grid;
  gap: 12px;
}

.category-config-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fdfdfc;
}

.category-config-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.category-config-title > div {
  display: grid;
  gap: 3px;
}

.category-config-title small {
  color: #888;
  font-size: 10px;
}

.approval-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 11px;
}

.approval-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

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

.mapping-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--positive-soft);
}

.mapping-row.unresolved {
  background: var(--warning-soft);
}

.mapping-row > div {
  display: grid;
  gap: 3px;
}

.mapping-row > div > span,
.mapping-id-field > span {
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mapping-row small {
  color: #777;
  font-size: 10px;
  line-height: 1.35;
}

.mapping-id-field {
  display: grid;
  gap: 5px;
}

.mapping-id-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d7d7d2;
  border-radius: 10px;
  outline: none;
  background: white;
  font-size: 12px;
}

.configuration-field {
  display: grid;
  gap: 7px;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  width: 100%;
  min-height: 44px;
  padding: 10px 66px 10px 12px;
  border: 1px solid #dcdcd7;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 700;
}

.input-with-suffix input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-with-suffix em {
  position: absolute;
  top: 50%;
  right: 11px;
  overflow: hidden;
  max-width: 52px;
  color: #999;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  text-transform: none;
  transform: translateY(-50%);
  white-space: nowrap;
}

.settings-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.settings-remaining {
  max-width: 760px;
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
}

.compact-button {
  width: auto;
  flex: 0 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.audit-row {
  align-items: flex-start;
}

.audit-row time {
  color: #888;
  font-size: 11px;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1440px, 92vw);
  margin: 0 auto;
  padding: 22px 0 42px;
  color: #777;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  color: white;
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.empty {
  padding: 24px 0;
  color: #888;
  text-align: center;
}

.login-page {
  color: white;
  background: var(--graphite);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 76px);
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.88), rgba(30, 30, 30, 0.7)),
    radial-gradient(circle at 72% 24%, rgba(255, 56, 92, 0.4), transparent 27rem),
    #151515;
}

.login-brand h1 {
  margin-top: 14px;
}

.login-lead {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.safe-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(34px, 6vw, 92px);
  color: var(--ink);
  background: white;
}

.login-card h2 {
  margin: 8px 0 10px;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.login-card > div > p:last-child,
.privacy-note {
  color: #777;
  line-height: 1.5;
}

.login-card form {
  display: grid;
  gap: 10px;
  margin: 36px 0 26px;
}

.login-card label {
  color: #555;
  font-size: 13px;
}

.login-card input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d6d6d2;
  border-radius: 12px;
  outline: none;
}

.login-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--accent-deep);
  font-size: 12px;
}

.privacy-note {
  font-size: 11px;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .configuration-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .mapping-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-settings {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .market-mapping-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mapping-conditions {
    grid-template-columns: 1fr;
  }

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

  .market-mapping-group summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .subsection-heading,
  .lead-profiles-heading {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 18px;
  }

  .brand-product,
  .brand-divider,
  #freshness-pill,
  #settings-button {
    display: none;
  }

  .secondary-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  main {
    width: min(100% - 28px, 1440px);
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    min-height: auto;
    padding: 48px 0 30px;
  }

  .hero-side {
    width: 100%;
    align-items: stretch;
  }

  .no-write-badge {
    min-width: 0;
  }

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

  .kpi-card {
    min-height: 145px;
  }

  .panel {
    padding: 20px;
    border-radius: 22px;
  }

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

  .settings-summary {
    justify-items: start;
  }

  .category-config-title,
  .settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .configuration-grid {
    grid-template-columns: 1fr;
  }

  .compact-button {
    width: 100%;
  }

  .legend {
    flex-wrap: wrap;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: min(100% - 28px, 1440px);
  }

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

  .login-brand {
    min-height: 54vh;
  }

  .login-card {
    min-height: 46vh;
  }
}
