:root {
  --ink: #163129;
  --ink-soft: #39564d;
  --muted: #6c8079;
  --green: #58a937;
  --green-dark: #357b23;
  --green-soft: #edf7e9;
  --green-line: #cfe5c6;
  --paper: #ffffff;
  --page: #f4f7f3;
  --line: #dde6df;
  --line-strong: #cdd9d0;
  --shadow:
    0 16px 45px rgba(22, 49, 41, .07);
  --shadow-soft:
    0 8px 24px rgba(22, 49, 41, .05);
  --radius: 20px;
  --radius-small: 13px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(88, 169, 55, .08),
      transparent 28rem
    ),
    var(--page);
  color: var(--ink);
  font-family:
    "Segoe UI Variable",
    "Segoe UI",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at top left,
      rgba(88, 169, 55, .14),
      transparent 34rem
    ),
    #f4f7f3;
}

.login-card {
  width: min(430px, 100%);
  padding: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.login-card img {
  width: auto;
  height: 38px;
  margin-bottom: 30px;
}

.login-card h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.login-card p {
  margin: 0 0 25px;
  color: var(--muted);
}

.login-card label,
.field label,
.market-toolbar label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}

.login-card input,
.field input,
.field select,
.market-toolbar select,
.selection-search {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fbfdfb;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  font-weight: 650;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.login-card input {
  margin-bottom: 17px;
}

.login-card input:focus,
.field input:focus,
.field select:focus,
.market-toolbar select:focus,
.selection-search:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(88, 169, 55, .12);
}

.form-error {
  margin: 0 0 15px;
  padding: 11px 13px;
  color: #9b2c2c;
  background: #fff3f3;
  border: 1px solid #f2c5c5;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.workspace {
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 0 30px 40px;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 -30px;
  padding: 16px 30px;
  background: rgba(244, 247, 243, .94);
  border-bottom: 1px solid rgba(205, 217, 208, .8);
  backdrop-filter: blur(16px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-brand img {
  width: auto;
  height: 38px;
}

.header-brand h1 {
  margin: 1px 0 0;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 760;
  transition:
    transform .15s ease,
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    #62b63e,
    #438f2c
  );
  border-color: #438f2c;
  box-shadow:
    0 10px 22px rgba(67, 143, 44, .20);
}

.button.primary:hover:not(:disabled) {
  box-shadow:
    0 13px 28px rgba(67, 143, 44, .27);
}

.button.quiet {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .76);
  border-color: var(--line);
}

.button.quiet:hover {
  color: var(--green-dark);
  background: #fff;
  border-color: var(--green-line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .53;
  box-shadow: none;
}

.button.wide {
  width: 100%;
}

.eyebrow {
  display: block;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(360px, .75fr);
  gap: 32px;
  align-items: center;
  padding: 58px 0 34px;
}

.hero-copy h2 {
  max-width: 960px;
  margin: 11px 0 18px;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 840;
  line-height: 1.01;
  letter-spacing: -.055em;
}

.hero-copy > p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 550;
}

.hero-guards {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.hero-guards span {
  padding: 8px 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.campaign-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.campaign-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}

.fixed-value {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: #f5f8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 750;
}

.campaign-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
}

.metric-card {
  min-height: 138px;
  padding: 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-soft);
}

.metric-card.accent {
  background:
    linear-gradient(
      145deg,
      #edf8e9,
      #ffffff
    );
  border-color: var(--green-line);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.metric-card strong {
  display: block;
  margin: 9px 0 5px;
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
}

.metric-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.market-toolbar {
  display: grid;
  grid-template-columns:
    minmax(300px, .7fr)
    minmax(0, 1.3fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.market-title {
  min-width: 0;
}

.market-title h2 {
  margin: 5px 0 2px;
  overflow: hidden;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.priority-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.decision-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(340px, .65fr);
  gap: 20px;
  margin-bottom: 20px;
}

.panel {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -.03em;
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map {
  width: 100%;
  height: 570px;
  background: #edf2ec;
}

.map-footer {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.map-legend i {
  width: 92px;
  height: 9px;
  display: block;
  background:
    linear-gradient(
      90deg,
      #e7eee5,
      #c4ddb9,
      #77b85b,
      #2d7525
    );
  border-radius: 999px;
}

.maplibregl-popup-content {
  padding: 13px 15px !important;
  color: var(--ink);
  border-radius: 13px !important;
  box-shadow: var(--shadow) !important;
  font-family: inherit;
}

.popup-name {
  max-width: 260px;
  margin-bottom: 5px;
  font-weight: 820;
}

.popup-meta {
  color: var(--muted);
  font-size: 12px;
}

.guidance-panel {
  display: flex;
  flex-direction: column;
}

.recommendation {
  margin: 21px;
  padding: 18px;
  color: var(--ink-soft);
  background:
    linear-gradient(
      145deg,
      #f2f8ef,
      #fbfdfb
    );
  border: 1px solid var(--green-line);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 620;
}

.guidance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 21px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guidance-grid div {
  padding: 16px;
  background: #fff;
}

.guidance-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.guidance-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  font-weight: 830;
}

.safety-box {
  margin: 21px;
  padding: 18px;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.safety-box strong {
  font-size: 13px;
  font-weight: 820;
}

.safety-box ul {
  margin: 11px 0 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 12px;
}

.safety-box li + li {
  margin-top: 7px;
}

.selection-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.selection-panel {
  overflow: hidden;
}

.selection-heading {
  min-height: 82px;
}

.mini-actions {
  display: flex;
  gap: 10px;
}

.text-button {
  padding: 0;
  color: var(--green-dark);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 790;
}

.selection-search {
  width: calc(100% - 36px);
  min-height: 43px;
  margin: 17px 18px 8px;
}

.selection-list {
  max-height: 520px;
  overflow: auto;
  padding: 8px 10px 14px;
}

.selection-item {
  position: relative;
  display: grid;
  grid-template-columns:
    25px
    42px
    minmax(0, 1fr)
    auto;
  gap: 9px;
  align-items: center;
  min-height: 69px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease;
}

.selection-item:hover {
  background: #f7faf6;
  border-color: var(--line);
}

.selection-item.selected {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.selection-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.selection-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #edf5ea;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.selection-item.selected .selection-rank {
  color: #fff;
  background: var(--green);
}

.selection-copy {
  min-width: 0;
}

.selection-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-numbers {
  text-align: right;
}

.selection-numbers strong {
  display: block;
  font-size: 14px;
  font-weight: 830;
}

.selection-numbers small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.loading-row,
.empty-row {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.preview-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

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

.preview-summary {
  display: flex;
  gap: 26px;
  text-align: right;
}

.preview-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.preview-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  font-weight: 830;
}

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

table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  background: #fafcfa;
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .05em;
  text-transform: uppercase;
}

td {
  font-size: 12px;
  font-weight: 620;
}

td strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.score-badge,
.risk-badge {
  display: inline-flex;
  min-width: 45px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
}

.score-badge {
  color: var(--green-dark);
  background: var(--green-soft);
}

.risk-badge {
  color: #7b5d12;
  background: #fff8dc;
}

.preview-note {
  padding: 13px 18px;
  color: var(--muted);
  background: #fafcfa;
  font-size: 11px;
  font-weight: 620;
}

.campaigns-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

.campaign-list {
  display: grid;
}

.campaign-item {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(130px, .5fr)
    repeat(3, minmax(90px, .35fr))
    auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 13px 21px;
  border-bottom: 1px solid var(--line);
}

.campaign-item:last-child {
  border-bottom: 0;
}

.campaign-name strong {
  display: block;
  font-size: 13px;
  font-weight: 810;
}

.campaign-name small,
.campaign-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.campaign-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 820;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: #f1f5f1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 820;
  text-transform: capitalize;
}

.status-badge.active,
.status-badge.completed {
  color: var(--green-dark);
  background: var(--green-soft);
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 3px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  max-width: 380px;
  padding: 13px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity .18s ease,
    transform .18s ease;
  font-size: 13px;
  font-weight: 700;
}

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

.toast.error {
  background: #9b2c2c;
}

@media (max-width: 1450px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .decision-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  }
}

@media (max-width: 1080px) {
  .workspace {
    padding-right: 20px;
    padding-left: 20px;
  }

  .workspace-header {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero,
  .decision-layout,
  .selection-layout {
    grid-template-columns: 1fr;
  }

  .market-toolbar {
    grid-template-columns: 1fr;
  }

  .campaign-item {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .campaign-name {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workspace-header {
    position: relative;
    align-items: flex-start;
  }

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

  .hero {
    padding-top: 34px;
  }

  .hero-copy h2 {
    font-size: 39px;
  }

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

  .preview-heading,
  .panel-heading,
  .workspace-header,
  .workspace-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-summary {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .map {
    height: 430px;
  }

  .campaign-item {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .workspace {
    padding-right: 13px;
    padding-left: 13px;
  }

  .workspace-header {
    margin-right: -13px;
    margin-left: -13px;
    padding-right: 13px;
    padding-left: 13px;
  }

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

  .campaign-row,
  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .campaign-item {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .header-brand img {
    height: 32px;
  }
}

/* IGLOCAL_MARKET_SESSION_GATE_V1 */
.session-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(88, 169, 55, .09),
      transparent 30rem
    ),
    #f4f7f3;
}

.session-gate-card {
  min-width: min(360px, 90vw);
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 30px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.session-gate-card strong {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 820;
}

.session-gate-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.session-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dce9d7;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: market-session-spin .75s linear infinite;
}

@keyframes market-session-spin {
  to {
    transform: rotate(360deg);
  }
}

/* IGLOCAL_SIMPLE_MARKET_UX_V1 */
.simple-market-metrics {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.hero-guards.simple {
  display: block;
}

.hero-guards.simple span {
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}

#sendLimit {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
  font-size: 17px;
  font-weight: 760;
}

#sendLimit:focus {
  outline: 3px solid rgba(91, 170, 60, .13);
  border-color: var(--green);
}

.simple-protection {
  display: block;
}

.simple-protection p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.preview-summary {
  grid-template-columns:
    repeat(2, minmax(110px, 1fr));
}

.preview-panel table {
  min-width: 760px;
}

.preview-panel th:nth-child(1),
.preview-panel td:nth-child(1) {
  width: 72px;
}

.preview-panel th:nth-child(5),
.preview-panel td:nth-child(5) {
  min-width: 230px;
}

.email-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 670;
}

@media (max-width: 980px) {
  .simple-market-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .simple-market-metrics {
    grid-template-columns: 1fr;
  }
}

/* IGLOCAL_SEARCHABLE_METRO_AND_PACING_V1 */
.campaign-message-field {
  margin-top: 16px;
}

.custom-interval {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.custom-interval[hidden] {
  display: none !important;
}

.custom-interval input {
  width: 130px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfb;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}

.custom-interval span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metro-combobox {
  position: relative;
  width: min(610px, 100%);
}

.metro-picker-button {
  width: 100%;
  min-height: 58px;
  padding: 0 17px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #b8d9ad;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 5px rgba(91, 170, 60, .09);
  font: inherit;
  font-size: 15px;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.metro-picker-button:hover,
.metro-picker-button[aria-expanded="true"] {
  border-color: var(--green);
  box-shadow:
    0 0 0 5px rgba(91, 170, 60, .13);
}

.metro-picker-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metro-picker-button i {
  flex: 0 0 auto;
  font-size: 20px;
  transition: transform .16s ease;
}

.metro-picker-button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.metro-picker-panel {
  position: absolute;
  z-index: 500;
  top: calc(100% + 9px);
  left: 0;
  width: min(680px, calc(100vw - 42px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow:
    0 24px 70px rgba(21, 48, 36, .18);
}

.metro-picker-panel[hidden] {
  display: none !important;
}

.metro-search-box {
  position: relative;
  margin-bottom: 8px;
}

.metro-search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.metro-search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf7;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.metro-search-box input:focus {
  outline: 3px solid rgba(91, 170, 60, .12);
  border-color: var(--green);
  background: #fff;
}

.metro-option-list {
  max-height: 390px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.metro-option {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.metro-option:hover,
.metro-option.selected {
  background: #eff8ec;
}

.metro-option.selected {
  box-shadow:
    inset 3px 0 0 var(--green);
}

.metro-option-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.metro-option-main strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metro-option-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.metro-option-priority {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dff2d7;
  color: #347b25;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.metro-empty {
  padding: 28px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .metro-picker-panel {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 92px);
  }

  .metro-option-list {
    max-height: calc(100vh - 180px);
  }
}
