.leaflet-container img { max-width: none !important; height: auto; }

.step-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.step-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--label-tertiary);
  font-size: var(--text-caption);
  font-weight: 600;
}

.step-list li span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--label-secondary);
  font-size: 11px;
}

.step-list li.is-now { color: var(--accent); }
.step-list li.is-now span,
.step-list li.is-done span { background: var(--accent); color: #fff; }
.step-list li.is-done { color: var(--label-secondary); }

.wizard-card.is-wide { width: min(920px, 100%); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  border: 0;
  background: var(--fill);
  color: var(--label);
  border-radius: var(--r-pill);
  min-height: 32px;
  padding: 0 12px;
  font-size: var(--text-footnote);
  font-weight: 600;
}

.chip.is-on {
  background: var(--accent-deep);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(12, 110, 102, 0.35);
}

.chip.is-ready { box-shadow: inset 0 0 0 1.5px var(--ok-ink); }

.segmented {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: var(--fill);
  flex-wrap: wrap;
}

.segmented-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: transparent;
  color: var(--label);
  font-size: var(--text-footnote);
  font-weight: 600;
  text-align: center;
}

.segmented-btn.is-on {
  background: #fff;
  color: var(--label);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

fieldset legend {
  padding: 0;
  font-size: var(--text-footnote);
  font-weight: 650;
  color: var(--label-secondary);
}

.check-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--separator);
}

.check-card h3 { margin: 0; font-size: var(--text-headline); letter-spacing: -0.02em; }

.split { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.check-list { display: flex; flex-direction: column; gap: 8px; }

.reach, .legal-note, .quiet-note, .status, .geo-summary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: var(--text-footnote);
  line-height: 1.4;
}

.reach { display: flex; flex-direction: column; gap: 2px; background: var(--field); }
.reach strong { font-size: var(--text-subhead); }
.reach em { font-style: normal; color: var(--label-tertiary); }
.reach.is-likely { background: var(--ok-bg); color: var(--ok-ink); }
.reach.is-likely em { color: var(--ok-ink); }
.reach.is-narrow { background: var(--warn-bg); color: var(--warn-ink); }
.reach.is-hard { background: var(--hard-bg); color: var(--hard-ink); }

.legal-note, .quiet-note { background: var(--warn-bg); color: var(--warn-ink); }
.status.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.is-wait { background: var(--warn-bg); color: var(--warn-ink); }

.footer-preview {
  background: var(--field);
  border-radius: 12px;
  padding: 8px 10px;
}

.footer-preview span {
  display: block;
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--label-tertiary);
  margin-bottom: 4px;
}

.footer-preview pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: var(--text-footnote);
  color: var(--label-secondary);
}

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

.geo-map {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #e7eef2;
  box-shadow: inset 0 0 0 1px var(--separator);
  z-index: 0;
}

.geo-fallback {
  margin: 0;
  padding: 24px;
  color: var(--label-secondary);
}

.geo-results {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.geo-results button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-top: 1px solid var(--separator);
}

.geo-results button:first-child { border-top: 0; }
.geo-results button span { color: var(--accent); font-size: var(--text-caption); font-weight: 650; }

.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 4px 0 10px;
  border-radius: var(--r-pill);
  background: var(--accent-deep);
  color: var(--accent-bright);
  font-size: var(--text-footnote);
  font-weight: 600;
}

.place-chip small { color: var(--label-tertiary); font-weight: 500; }

.slider-label input[type="range"] { width: 100%; accent-color: var(--accent); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

.trait-block { display: flex; flex-direction: column; gap: 6px; }
.trait-block > span { font-size: var(--text-caption); font-weight: 650; color: var(--label-tertiary); }

.catalog-group { display: flex; flex-direction: column; gap: 6px; }
.catalog-group.is-secondary { margin-top: 4px; }

.status-row, .advance-row, .channel-bar, .menu-anchor, .head-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.head-side { margin-left: auto; }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--label-secondary);
  font-size: var(--text-caption);
  font-weight: 650;
}

.status-pill.is-ok,
.status-pill.is-likely { background: var(--ok-bg); color: var(--ok-ink); }

.status-pill.is-wait,
.status-pill.is-narrow { background: var(--warn-bg); color: var(--warn-ink); }

.status-pill.is-hard { background: var(--hard-bg); color: var(--hard-ink); }

.why-line {
  margin: 0 0 8px;
  color: var(--label-secondary);
  font-size: var(--text-footnote);
  line-height: 1.35;
}

.disclosure.is-quiet {
  background: transparent;
  padding: 0;
}

.menu {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow: auto;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-2);
}

.menu-label {
  margin: 8px 10px 2px;
  color: var(--label-tertiary);
  font-size: var(--text-caption);
  font-weight: 650;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 6px 10px;
  font-size: var(--text-subhead);
}

.menu-item:hover { background: var(--hover); }

.menu-item.is-on { color: var(--accent); font-weight: 650; }

.menu-item.is-on::after { content: "✓"; }

.menu-name {
  display: flex;
  gap: 6px;
  padding: 6px;
}

.menu-name input { min-height: 36px; }

.menu-anchor, .catalog-anchor { position: relative; }

.catalog-menu, .menu-anchor .menu, .picker-menu {
  position: absolute;
  z-index: 6;
  width: min(260px, 70vw);
  top: calc(100% + 6px);
  left: 0;
}

.channel-bar .segmented { flex: 1; }

.add-channel { width: 36px; height: 36px; }

.from-line {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-top: 1px solid var(--separator);
}

.roster-row strong {
  flex: 1;
  min-width: 0;
  font-size: var(--text-subhead);
  font-weight: 600;
}

.roster-row select { width: auto; min-height: 32px; flex: none; }

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

.lead-inline input,
.lead-inline select { min-height: 36px; }

.lead-inline input { flex: 1; }

.lead-inline select { width: auto; min-width: 96px; }

.suggest-line {
  margin: 0 0 12px;
  color: var(--label-secondary);
  font-size: var(--text-footnote);
  line-height: 1.4;
}

.plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--separator);
  font-size: var(--text-subhead);
}

.plan-row > span:first-child { flex: 1; min-width: 140px; }

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.preset {
  width: 52px;
  height: 64px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0;
}

.preset.is-on { box-shadow: 0 0 0 2px var(--accent); }

.preset-add {
  display: grid;
  place-items: center;
  background: var(--fill);
}

.dress-layout, .dress-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dress-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 18px 22px 22px;
  border-radius: var(--r-xl);
}

.dress-close { position: absolute; top: 10px; right: 10px; }

.dress-name, .dress-role {
  text-align: center;
  background: transparent;
  box-shadow: none;
  min-height: 36px;
}

.dress-name { font-size: var(--text-title3); font-weight: 650; }

.dress-styles { width: 100%; }

.dress-switches { display: flex; gap: 16px; }

#trigger-menu {
  position: fixed;
  z-index: 36;
  width: min(220px, calc(100vw - 24px));
}

.catalog-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.cell-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-caption);
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}

.segment-meta {
  color: var(--label-tertiary);
  font-weight: 560;
  font-size: var(--text-caption);
}

.plan-sheet { width: min(520px, 100%); }

.plan-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-line {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: var(--text-footnote);
  line-height: 1.4;
}

.plan-line.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.plan-line.is-wait { background: var(--warn-bg); color: var(--warn-ink); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

@media (max-width: 700px) {
  .geo-map { height: 220px; }
  .catalog-bar { max-height: none; }
}
