:root {
  /* Minimalist dark — warm-leaning near-black, single amber accent */
  --bg: #0b0b0d;
  --surface: #19191f;
  --surface-2: #22222a;
  --ink: #f2f2f3;
  --ink-dim: #a8a8ad;
  --ink-muted: #7c7c83;
  --ink-faint: #2a2a30;
  /* Warm-tinted hairlines — bumped from 18%/32% to 32%/55% so card edges read as amber */
  --border: oklch(0.78 0.13 75 / 0.32);
  --border-strong: oklch(0.78 0.13 75 / 0.55);
  --accent: oklch(0.78 0.13 75);          /* warm amber */
  --accent-dim: oklch(0.78 0.13 75 / 0.14);
  --accent-line: oklch(0.78 0.13 75 / 0.4);
  --accent-on: #1a1100;
  --danger: oklch(0.65 0.18 25);
  --radius: 4px;
  --radius-lg: 6px;

  /* Font stacks */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Fraunces", Georgia, "Iowan Old Style", serif;

  /* Typography roles (baked from the design handoff) */
  --font-h1: var(--font-mono);
  --size-h1: 18px;
  --font-tagline: var(--font);
  --size-tagline: 15px;
  --font-location: var(--font-serif);
  --size-location: 28px;
  --font-headline: var(--font-mono);
  --size-headline: 17px;
  --hero-size: 56px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any oversized content (long city names, etc.) from causing
     horizontal scroll on phones. */
  overflow-x: hidden;
}

.location-bar h2 { min-width: 0; word-break: break-word; }

::selection { background: var(--accent-dim); color: var(--ink); }

header, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding-top: 56px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

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

h1 {
  font-family: var(--font-h1, var(--font));
  font-size: var(--size-h1, 13px);
  margin: 0;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-dim);
}
h1::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

.tagline {
  margin: 20px 0 0;
  color: var(--ink-dim);
  font-family: var(--font-tagline, var(--font));
  font-size: var(--size-tagline, 15px);
  max-width: 40ch;
  letter-spacing: -0.005em;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-muted); }

.search-section { margin-bottom: 24px; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: border-color 0.15s;
}
.search-wrap:focus-within { border-color: var(--accent-line); }

.search-wrap input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.search-wrap input[type="text"]::placeholder { color: var(--ink-muted); }

.loc-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  transition: color 0.15s;
}
.loc-btn:hover { color: var(--accent); }

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
}
.suggestions:empty { display: none; }
.suggestions li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.suggestions li:hover, .suggestions li.active {
  background: var(--surface-2);
}
.suggestions li strong { font-weight: 500; }
.suggestions .country {
  color: var(--ink-muted);
  font-size: 13px;
}

.hidden { display: none !important; }

.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
.loading p { display: inline; margin: 0; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  background: transparent;
  color: var(--danger);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
  font-size: 14px;
}

.location-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.location-bar h2 {
  font-family: var(--font-location, var(--font));
  font-size: var(--size-location, 24px);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.muted { color: var(--ink-muted); }
.small { font-size: 12px; letter-spacing: 0.02em; }

/* ===== Hero "now" panel ===== */
.now {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.now-icon {
  font-size: 36px;
  line-height: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  filter: grayscale(0.15);
}
.now-temp { grid-column: 1; grid-row: 1; }
.now-temp .temp {
  font-size: var(--hero-size, 56px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-feature-settings: "tnum";
  color: var(--ink);
}
.now-temp .temp::first-letter,
.now-temp .temp { /* no-op */ }
.now-temp .feels {
  font-size: 13px;
  margin-top: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0;
  color: var(--ink-muted);
}
.now-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
  padding-top: 4px;
}
.now-meta #nowDesc {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.now-meta #nowDesc::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  margin: 0 4px 0 16px;
  vertical-align: -1px;
}
.now-meta #nowMeta { font-family: var(--font-mono); font-size: 12px; }

/* ===== Section blocks (lifted cards) ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: none;
}
.card h3 {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-family: var(--font);
  white-space: nowrap;
}

.outfit-headline {
  font-family: var(--font-headline, var(--font));
  font-size: var(--size-headline, 22px);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
  line-height: 1.25;
}

/* Outfit list — inline pill chips with amber dot */
.outfit-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.outfit-list li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  letter-spacing: 0;
  position: relative;
}
.outfit-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.notes {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  padding-left: 14px;
  border-left: 1px solid var(--accent-line);
}
.notes:empty { display: none; }

/* ===== Forecast strip ===== */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.day {
  text-align: left;
  padding: 14px 14px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.day:last-child { border-right: none; }
.day:hover { background: var(--surface); }
.day.active {
  background: var(--surface-2);
}
.day.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}
.day .dow {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.day.active .dow { color: var(--accent); }
.day .ico { font-size: 18px; margin: 10px 0 8px; line-height: 1; }
.day .hi {
  font-weight: 400;
  font-size: 18px;
  font-family: var(--font);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  color: var(--ink);
}
.day .lo {
  color: var(--ink-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ===== Recommendation header ===== */
.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rec-header h3 { margin: 0; flex-shrink: 0; white-space: nowrap; }
.rec-header .period-toggle { flex-shrink: 0; }
.rec-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.period-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0;
}
.period-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 5px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s;
}
.period-btn + .period-btn { border-left: 1px solid var(--border-strong); }
.period-btn:hover { color: var(--ink); }
.period-btn.active {
  background: var(--accent);
  color: #1a1100;
}

/* Style context toggle (Casual / Business / Active) — same chassis as period toggle */
.style-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0;
}
.style-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 5px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s;
}
.style-btn + .style-btn { border-left: 1px solid var(--border-strong); }
.style-btn:hover { color: var(--ink); }
.style-btn.active {
  background: var(--accent);
  color: #1a1100;
}
.rec-for {
  margin: -8px 0 22px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ===== Favorites + location actions + toast ===== */
.favorites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.favorites.hidden { display: none; }
.fav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--border-strong);
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: color 0.15s, border-color 0.15s;
}
.fav-chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.fav-chip span:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}
.fav-x {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 4px;
}
.fav-x:hover { color: var(--ink); }

.location-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn-sm {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.icon-btn-sm svg { width: 14px; height: 14px; }
.icon-btn-sm:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn-sm.on { color: var(--accent); }
.icon-btn-sm.on svg { fill: var(--accent); }

/* Accent the location actions: fav = rose-leaning, share = cyan-leaning */
#favBtn { color: oklch(0.72 0.15 20); border-color: oklch(0.72 0.15 20 / 0.32); }
#favBtn:hover { background: oklch(0.72 0.15 20 / 0.12); border-color: oklch(0.72 0.15 20 / 0.5); color: oklch(0.78 0.16 20); }
#favBtn.on { color: oklch(0.72 0.15 20); background: oklch(0.72 0.15 20 / 0.14); border-color: oklch(0.72 0.15 20 / 0.5); }
#favBtn.on svg { fill: oklch(0.72 0.15 20); }
#shareBtn { color: oklch(0.78 0.12 200); border-color: oklch(0.78 0.12 200 / 0.32); }
#shareBtn:hover { background: oklch(0.78 0.12 200 / 0.12); border-color: oklch(0.78 0.12 200 / 0.5); color: oklch(0.84 0.13 200); }
.icon-btn-sm { border-width: 1px !important; border-style: solid; }

#locationTime {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent) !important;
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  margin-right: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-right: 8px;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 100;
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Collapsible cards (Trip + Compare) ===== */
.collapsible summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  gap: 12px;
  margin: 0 !important;
}
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary h3 {
  margin: 0 !important;
  flex: 0 0 auto;
  white-space: nowrap;
}
.collapsible summary .hint {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: right;
  margin-right: 16px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collapsible summary::after {
  content: "+";
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.2s;
  font-family: var(--font-mono);
}
.collapsible[open] summary::after { content: "−"; }
.collapsible[open] > *:not(summary) { margin-top: 24px; }

.trip-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field.inline {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  flex: 1 1 140px;
}
.field.inline > span {
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.field.inline input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  color-scheme: dark;
  transition: border-color 0.15s;
}
.field.inline input:focus { outline: none; border-color: var(--accent-line); }

.btn-primary {
  background: var(--accent);
  color: #1a1100;
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.trip-result { margin-top: 4px; }
.trip-days {
  margin-top: 16px;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0 !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trip-days .day { border-bottom: 1px solid var(--border); }
.trip-days .day:nth-child(5n) { border-right: 1px solid var(--border); }
.trip-days .day:last-child { border-right: none; }

#tripSummary {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.compare-form { margin-bottom: 16px; }
.search-wrap.small-wrap { box-shadow: none; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-col {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px;
}
.compare-col + .compare-col { border-left: 1px solid var(--border); }
.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.cc-name { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.cc-temp {
  font-size: 16px;
  font-weight: 400;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.cc-meta {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
}
.cc-headline {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.compare-col .outfit-list li { font-size: 11px; }

@media (max-width: 540px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--border); }
  .trip-form { flex-direction: column; align-items: stretch; }
  .btn-primary { width: 100%; }
}

@media (max-width: 500px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { padding-top: 36px; padding-bottom: 4px; margin-bottom: 8px; }
  .tagline { font-size: 14px; margin-top: 14px; }

  /* Hero "now" panel — tighten padding and shrink the temp on phones */
  .now { padding: 22px 18px; gap: 16px; }
  .now-temp .temp { font-size: 56px; letter-spacing: -0.05em; }
  .now-icon { font-size: 28px; }
  .now-meta { gap: 4px 14px; padding-top: 0; }
  .now-meta #nowDesc::after { display: none; }

  /* Cards: tighter padding on phones */
  .card { padding: 22px 18px; }

  /* Section labels stay readable but tighten margins */
  .card h3 { margin-bottom: 14px; }

  /* Forecast strip — readable at narrow widths */
  .forecast-compact { padding: 14px 12px; }
  .day { padding: 10px 4px; }
  .day .dow { font-size: 9px; }
  .day .ico { font-size: 14px; margin: 6px 0 4px; }
  .day .hi { font-size: 14px; }
  .day .lo { font-size: 10px; }

  /* Recommendation header: stack toggles below title on narrow screens */
  .rec-header { gap: 8px; }
  .rec-toggles { width: 100%; }
  .period-toggle, .style-toggle { flex: 0 0 auto; }
  .style-btn, .period-btn { padding: 6px 10px; }

  /* Outfit headline / chips */
  .outfit-headline { font-size: 16px; max-width: none; }
  .outfit-list li { font-size: 12px; padding: 6px 12px 6px 10px; }

  /* Location bar — let the city name shrink so the time pill stays inline */
  .location-bar h2 { font-size: 24px; }
  .location-bar { gap: 8px; }

  /* Tap targets: small icon buttons get a touch larger on phones */
  .icon-btn-sm { width: 34px; height: 34px; }

  /* Trip planner */
  .field.inline { flex-basis: 100%; }
  .field.inline input { padding: 12px; font-size: 14px; }
  .trip-cities { margin-top: 18px; padding-top: 18px; }

  /* Settings dialog: slightly tighter padding */
  .settings-dialog form { padding: 22px 20px; }
  .settings-dialog h2 { margin-bottom: 18px; }
  .field { margin-bottom: 18px; }

  /* Compare cols stack at 540px already, tighten padding here */
  .compare-col { padding: 14px; }

  /* Footer */
  footer { padding: 32px 16px 40px; margin-top: 32px; }
}

/* Very small phones (iPhone SE, narrow Androids) */
@media (max-width: 380px) {
  header, main, footer { padding-left: 14px; padding-right: 14px; }
  .now-temp .temp { font-size: 48px; }
  .now { padding: 18px 14px; }
  .card { padding: 18px 14px; }
  .forecast-compact { padding: 12px 8px; }
  .day { padding: 8px 2px; }
  .day .dow { font-size: 8px; letter-spacing: 0.08em; }
  .day .ico { font-size: 13px; }
  .day .hi { font-size: 13px; }
  .day .lo { font-size: 9px; }
  .outfit-list li { font-size: 11px; padding: 5px 10px 5px 8px; }
  .style-btn, .period-btn { font-size: 10px; padding: 5px 8px; }
}

footer {
  padding: 48px 24px 56px;
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
footer a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.15s, border-color 0.15s;
}
footer a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }

/* ===== Settings dialog ===== */
.settings-dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(440px, calc(100% - 40px));
  font-family: var(--font);
}
.settings-dialog::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.settings-dialog form { padding: 28px; }
.settings-dialog h2 {
  margin: 0 0 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dim);
}
.settings-dialog h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

.field {
  display: block;
  margin-bottom: 22px;
}
.field > span, .field legend {
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  padding: 0;
}
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  letter-spacing: -0.005em;
  color-scheme: dark;
  cursor: pointer;
  transition: border-color 0.15s;
}
.field select:focus { outline: none; border-color: var(--accent-line); }
fieldset.field {
  border: none;
  padding: 0;
  margin-bottom: 22px;
}
fieldset.field p.muted {
  margin: 0 0 8px;
  font-size: 12px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.radio:hover { color: var(--ink); }
.radio input {
  margin: 0;
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}
.radio input:checked + span { color: var(--ink); }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dialog-actions button {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.dialog-actions .primary {
  background: var(--accent);
  color: #1a1100;
  border-color: var(--accent);
}
.dialog-actions .primary:hover { opacity: 0.9; }
.dialog-actions .ghost {
  background: transparent;
  color: var(--ink-dim);
}
.dialog-actions .ghost:hover { color: var(--ink); border-color: var(--ink-muted); }

/* ===== Compact forecast (right under the now panel) ===== */
.forecast-compact { padding: 18px 18px; }
.forecast-compact h3 { margin-bottom: 12px; }
.forecast-compact .day { padding: 10px 8px; }
.forecast-compact .day .dow { font-size: 9px; letter-spacing: 0.14em; }
.forecast-compact .day .ico { font-size: 14px; margin: 6px 0 4px; }
.forecast-compact .day .hi { font-size: 14px; }
.forecast-compact .day .lo { font-size: 10px; }

/* ===== Trip planner — destinations + add city ===== */
.trip-cities {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.trip-cities-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.trip-city-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trip-city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.trip-city.primary {
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.trip-city.primary .trip-city-name { color: var(--ink); }
.trip-city-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
}
.trip-city-x {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
  transition: color 0.15s;
}
.trip-city-x:hover { color: var(--ink); }

.trip-add-wrap { position: relative; }
.trip-add-btn {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.trip-add-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.trip-add-form { margin-top: 4px; max-width: 320px; }
.trip-add-form .loc-btn {
  font-size: 18px;
  color: var(--ink-muted);
  padding: 0 12px;
  border-left: 1px solid var(--border);
}

#tripDays { margin-top: 18px; }
#tripSummary { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-dim); }

