@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Emerald Night */
  --bg: #04130d;
  --bg-deep: #020b07;
  --surface: #0a2219;
  --surface-2: #0d2a1f;
  --surface-3: #081d15;
  --input: #061a12;
  --input-focus: #082016;
  --line: #1c3d30;
  --line-2: #275240;
  --line-3: #3f7a5f;
  --text: #effbf5;
  --text-2: #c3e0d2;
  --muted: #94b8a8;
  --muted-2: #7fa494;
  --accent: #22c55e;
  --accent-2: #86efac;
  --lime: #a3e635;
  --teal: #2dd4bf;
  --gold: #facc15;
  --danger: #fb7185;
  --on-accent: #052e16;

  --teal-bg: #0a2a28;
  --teal-line: #1f6b62;
  --gold-bg: #2a2415;
  --gold-line: #6b5a1f;
  --danger-bg: #2b1419;
  --danger-line: #7a3644;

  --header-bg: rgba(4, 19, 13, .86);
  --rule: rgba(28, 61, 48, .7);
  --accent-wash: rgba(163, 230, 53, .12);
  --wash: rgba(8, 29, 21, .6);
  --overlay: rgba(4, 19, 13, .92);
  --row-hover: rgba(13, 42, 31, .6);
  --gauge-1: #1f3a2e;
  --globe-sea: #061a12;
  --globe-land: #17382b;
  --globe-grat: rgba(195, 224, 210, .07);
  --globe-reach: #a3e635;
  --globe-dot: #ecfccb;
  --globe-far: rgba(195, 224, 210, .16);
  --globe-hot: #fb923c;
  --globe-ink: #effbf5;
  --gauge-2: #166534;
  --grad-bad: linear-gradient(135deg, rgba(251, 113, 133, .14), rgba(10, 34, 25, .95) 60%);
  --gold-text: #f5e6b0;
  --danger-text: #ffd5db;
  --pulse: rgba(163, 230, 53, .7);
  --pulse-0: rgba(163, 230, 53, 0);

  --grad-action: linear-gradient(135deg, #a3e635, #22c55e 55%, #10b981);
  --grad-result: linear-gradient(135deg, rgba(34, 197, 94, .24), rgba(163, 230, 53, .08) 45%, rgba(10, 34, 25, .95));
  --glow-1: radial-gradient(circle at 18% 0%, rgba(34, 197, 94, .28), transparent 34%);
  --glow-2: radial-gradient(circle at 90% 14%, rgba(163, 230, 53, .16), transparent 28%);

  /* Type: fixed rem scale, ratio ~1.2 */
  --font: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-display: 2.75rem;

  /* Space: 4px base */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  --r-sm: .5rem;
  --r-md: .75rem;
  --r-lg: 1.25rem;
  --r-pill: 999px;

  --focus: 0 0 0 3px rgba(163, 230, 53, .55);
  --shadow: 0 1.5rem 3rem rgba(0, 0, 0, .28);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text);
  background: transparent;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--glow-1), var(--glow-2), linear-gradient(180deg, transparent 60%, var(--bg-deep));
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-2); }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -3rem;
  z-index: var(--z-overlay);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--lime);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-3); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.site-header__inner {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: var(--s-3) max(var(--s-4), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: var(--fs-lg);
  font-weight: 850;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.wordmark__dot {
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-.04em);
}

.tabs {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-3);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: .2em;
}
.header-link:hover { color: var(--text); }
.tabs { margin-left: auto; }

.tab {
  min-height: 2.75rem;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--text);
  color: var(--on-accent);
}

/* ---------------- Layout ---------------- */

.shell {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: var(--s-6) max(var(--s-4), env(safe-area-inset-right)) var(--s-8) max(var(--s-4), env(safe-area-inset-left));
}
.shell:focus { outline: none; }

.intro { max-width: 44rem; margin-bottom: var(--s-6); }

.intro__title {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-display);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.intro__title .accent { color: var(--lime); }
.panel__question { max-width: none; margin-bottom: var(--s-6); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; }

.intro__lead {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.inputs {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}

.result {
  position: sticky;
  top: 5rem;
  min-width: 0;
  scroll-margin-top: 6rem;
}
@media (max-width: 40rem) { .result { scroll-margin-top: 8.5rem; } }

/* ---------------- Fields ---------------- */

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.field { display: flex; flex-direction: column; min-width: 0; }

.field__label {
  display: block;
  margin-bottom: var(--s-2);
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
}

.field__control { position: relative; }

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--input);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.input::placeholder { color: var(--muted-2); font-weight: 500; }
.input:hover:not(:disabled) { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--lime); background: var(--input-focus); box-shadow: var(--focus); }
.input:disabled { opacity: .55; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--danger); }

.field__control--suffix .input { padding-right: 3.5rem; }
.field__suffix {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.field__hint {
  margin: var(--s-2) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--muted);
}

.field__error {
  margin: var(--s-1) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--danger);
  font-weight: 600;
}
.field__error:empty { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

/* Segmented control */

.segmented__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-3);
}
.segmented__option { position: relative; margin: 0; }
.segmented__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.segmented__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-3);
  border-radius: calc(var(--r-md) - 4px);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.segmented__option span:hover { color: var(--text); }
.segmented__option input:checked + span {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.segmented__option input:focus-visible + span { box-shadow: var(--focus); }

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--accent-wash);
  color: var(--text);
}

.quick-values, .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.filter-chips { margin-top: 0; }

.source-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.source-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-2);
  min-height: 3.5rem;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-3);
  text-align: left;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.source-chip:hover { border-color: var(--line-3); }
.source-chip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source-chip__name { font-size: var(--fs-sm); font-weight: 800; color: var(--text); line-height: 1.2; }
.source-chip__kind { font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; }
.source-chip[aria-checked="true"] {
  border-color: var(--lime);
  background: var(--accent-wash);
}

/* Combobox */

.combobox { position: relative; }
.combobox__input { padding-right: var(--s-6); font-variant-numeric: normal; }
.combobox::after {
  content: '';
  position: absolute;
  right: var(--s-4);
  top: 1.45rem;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.combobox__list {
  position: absolute;
  z-index: var(--z-dropdown);
  left: 0;
  right: 0;
  top: calc(100% + var(--s-1));
  max-height: min(22rem, 55vh);
  margin: 0;
  padding: var(--s-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.combobox__group {
  padding: var(--s-2) var(--s-3) var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}
.combobox__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  cursor: pointer;
}
.combobox__option-label { flex: 1; min-width: 0; }
.combobox__option-meta { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.combobox__option[aria-selected="true"] { color: var(--lime); }
.combobox__option.is-active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.combobox__empty { padding: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }

/* Disclosure */

.more {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.more__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 var(--s-4);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-md);
}
.more__summary::-webkit-details-marker { display: none; }
.more__summary::after {
  content: '';
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t-fast) var(--ease-out);
}
.more[open] .more__summary::after { transform: rotate(-135deg) translateY(-2px); }
#earn-estimate { display: contents; }

.more__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-2) var(--s-4) var(--s-4);
}

.check {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--lime);
}

/* Wallet / goal banners */

.wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-md);
  background: var(--teal-bg);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.wallet__text strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Buttons */

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), filter var(--t-fast) var(--ease-out);
}
.btn--primary {
  border: 0;
  background: var(--grad-action);
  color: var(--on-accent);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--ghost {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
}
.btn--ghost:hover { border-color: var(--line-3); color: var(--text); }

.btn-text {
  min-height: 2.75rem;
  padding: 0 var(--s-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: var(--line-3);
}
.btn-text:hover { color: var(--text); }
.btn-text--small { min-height: 2.25rem; font-size: var(--fs-xs); }

/* ---------------- Result ---------------- */

.result__live { display: flex; flex-direction: column; gap: var(--s-4); }

.verdict {
  padding: var(--s-5);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--grad-result);
  box-shadow: var(--shadow);
}
.verdict--example { border-style: dashed; background: var(--wash); box-shadow: none; }
.verdict--bad { background: var(--grad-bad); border-color: var(--danger-line); }

.verdict__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}

.verdict__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3) var(--s-1) var(--s-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.verdict__badge svg { width: 1.125rem; height: 1.125rem; flex: none; }
.verdict__badge--excellent { background: var(--lime); color: var(--on-accent); }
.verdict__badge--good { background: var(--teal-bg); color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal-line); }
.verdict__badge--fair { background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.verdict__badge--low { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }

.verdict__headline {
  margin: var(--s-4) 0 var(--s-2);
  font-size: var(--fs-xl);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.verdict__headline strong { color: var(--lime); font-weight: 850; }
.verdict--bad .verdict__headline strong { color: var(--danger); }

.verdict__sub {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-base);
  color: var(--text-2);
}

.big-number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-variant-numeric: tabular-nums;
}
.big-number__value {
  font-variant-numeric: normal;
  font-size: var(--fs-2xl);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1;
}
.big-number__unit { font-size: var(--fs-base); font-weight: 700; color: var(--muted); }

/* Gauge */

.gauge { margin-top: var(--s-4); }
.gauge__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  height: .625rem;
}
.gauge__seg { border-radius: 2px; }
.gauge__seg:nth-child(1) { background: var(--gauge-1); border-radius: var(--r-pill) 2px 2px var(--r-pill); }
.gauge__seg:nth-child(2) { background: var(--gauge-2); }
.gauge__seg:nth-child(3) { background: var(--accent); }
.gauge__seg:nth-child(4) { background: var(--lime); border-radius: 2px var(--r-pill) var(--r-pill) 2px; }
.gauge__marker {
  position: absolute;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--text);
  transform: translate(-50%, -50%);
  transition: left var(--t-med) var(--ease-out);
}
.gauge__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.gauge__labels span { text-align: center; line-height: 1.3; }
.gauge__labels span.is-current { color: var(--text); font-weight: 800; }

/* Breakdown */

.breakdown {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.breakdown__title { margin: 0 0 var(--s-2); font-size: var(--fs-sm); font-weight: 800; color: var(--text-2); }
.breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.breakdown__row:last-child { border-bottom: 0; }
.breakdown__row dt { color: var(--muted); }
.breakdown__row dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.breakdown__row--total dt, .breakdown__row--total dd { color: var(--text); font-weight: 800; }

.threshold {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.threshold--above { border-color: var(--teal-line); background: var(--teal-bg); }
.threshold--below { border-color: var(--danger-line); background: var(--danger-bg); }
.threshold--aligned { border-color: var(--gold-line); background: var(--gold-bg); }
.threshold__title { margin: 0 0 var(--s-1); font-size: var(--fs-base); font-weight: 800; }
.threshold__text { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }

.handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--wash);
}
.handoff__text { margin: 0; font-size: var(--fs-sm); color: var(--text-2); max-width: 36ch; }

.notice {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  background: var(--gold-bg);
  font-size: var(--fs-sm);
  color: var(--gold-text);
}
.notice strong { color: var(--gold); }

/* ---------------- Converter result ---------------- */

.route-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: 0;
  list-style: none;
}
.route-path__node {
  display: inline-flex;
  flex-direction: column;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--wash);
  line-height: 1.25;
}
.route-path__name { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 800; }
.route-path__amount { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.route-path__node--end { border-color: var(--lime); }
.route-path__node--end .route-path__amount { color: var(--accent-2); }
.route-path__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}
.route-path__link::after {
  content: '';
  width: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--lime));
  border-radius: 2px;
}

.meta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-2);
}
.pill svg { width: .875rem; height: .875rem; flex: none; }
.pill--ok { border-color: var(--teal-line); background: var(--teal-bg); color: var(--teal); }
.pill--warn { border-color: var(--gold-line); background: var(--gold-bg); color: var(--gold); }
.pill--gain { border: 0; background: var(--grad-action); color: var(--on-accent); }
.pill--goal-ok { border-color: var(--lime); color: var(--lime); }
.pill--goal-miss { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger); }

.tip {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.tip strong { color: var(--lime); }

.eligibility {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  background: var(--gold-bg);
  font-size: var(--fs-sm);
  color: var(--gold-text);
}
.eligibility strong { color: var(--gold); }

.alternatives, .sources {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.alternatives > summary, .sources > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 var(--s-5);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-lg);
}
.alternatives > summary::-webkit-details-marker, .sources > summary::-webkit-details-marker { display: none; }
.alternatives > summary::after, .sources > summary::after {
  content: '';
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t-fast) var(--ease-out);
}
.alternatives[open] > summary::after, .sources[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.alt-list, .source-list, .dest-list { margin: 0; padding: 0 var(--s-5) var(--s-4); list-style: none; }

.alt-item {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
}
.alt-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}
.alt-item__path { font-size: var(--fs-sm); color: var(--text-2); }
.alt-item__value { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alt-item__steps { margin: var(--s-1) 0 0; font-size: var(--fs-xs); color: var(--muted); }

.detail-body { padding: 0 var(--s-5) var(--s-4); }
.detail-body .source-list { padding: 0; margin-top: var(--s-3); }
.source-list li { padding: var(--s-2) 0; border-top: 1px solid var(--rule); font-size: var(--fs-sm); }
.source-list a { color: var(--accent-2); text-underline-offset: .2em; }
.source-list span { display: block; font-size: var(--fs-xs); color: var(--muted); }

.steps-detail { margin: var(--s-4) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps-detail li {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) var(--s-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
  counter-increment: step;
}
.steps-detail li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--s-2);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-3);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--accent-2);
}
.steps-detail small { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* Explore list */

.dest-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.dest-summary__count { font-size: var(--fs-2xl); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.dest-summary__label { color: var(--text-2); }

.dest-list {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  overflow: hidden;
}
.dest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--rule);
}
.dest-item:first-child { border-top: 0; }
.dest-item__name { font-weight: 800; }
.dest-item__value { font-weight: 850; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dest-item__value small { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dest-item__route { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.dest-item__open {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Comparateur (explore table + company filter) */

.cmp-filter {
  margin: var(--s-4) var(--s-5) 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.cmp-filter__legend {
  padding: 0 var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-2);
}
.cmp-filter__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--s-2) var(--s-4);
}
.check--sm { font-size: var(--fs-sm); align-items: center; gap: var(--s-2); }
.check--sm input { width: 1.1rem; height: 1.1rem; }
.cmp-filter__actions {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}

.cmp-table-wrap { margin: var(--s-4) var(--s-5) var(--s-4); overflow-x: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.cmp-table th, .cmp-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-top: 1px solid var(--rule);
  vertical-align: baseline;
}
.cmp-table thead th {
  border-top: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmp-table tbody tr:first-child th,
.cmp-table tbody tr:first-child td { border-top: 0; }
.cmp-table__name { font-weight: 800; }
.cmp-table__name small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.cmp-table__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-table__num strong { font-weight: 850; }
.cmp-table__num small { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.cmp-table__goal {
  display: inline-block;
  margin-left: var(--s-1);
  padding: .1rem var(--s-2);
  border-radius: var(--r-sm);
  background: var(--teal-bg);
  color: var(--teal);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.cmp-table__route { color: var(--muted); }
.cmp-table__action { text-align: right; white-space: nowrap; }
.cmp-table__action .dest-item__open { min-height: 0; }
.cmp-empty { padding: var(--s-4); color: var(--muted); font-size: var(--fs-sm); }

/* Empty / example */

.empty {
  padding: var(--s-5);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--wash);
}
.empty__title { margin: 0 0 var(--s-2); font-size: var(--fs-md); font-weight: 800; }
.empty__text { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.empty .btn { margin-top: var(--s-4); }

/* ---------------- Method ---------------- */

.method {
  margin-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.method__summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 3rem;
  margin-top: var(--s-3);
  padding: 0 var(--s-2);
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-sm);
}
.method__summary::-webkit-details-marker { display: none; }
.method__summary::before {
  content: '+';
  font-size: var(--fs-md);
  color: var(--lime);
}
.method[open] .method__summary::before { content: '−'; }
.method__body { max-width: 65ch; padding: 0 var(--s-2) var(--s-4); color: var(--muted); font-size: var(--fs-sm); }
.method__body strong { color: var(--text-2); }
.method__body ul { padding-left: var(--s-5); }
.formula {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--input);
  color: var(--text-2);
  font-weight: 600;
}

/* ---------------- Misc ---------------- */

.engine-error {
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-lg);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.site-footer {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: var(--s-5) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer .legal-link { color: inherit; opacity: 0.7; margin-left: var(--s-2); }

.verdict-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--overlay);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.verdict-bar__button {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 3.25rem;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--grad-action);
  color: var(--on-accent);
  text-align: left;
}
.verdict-bar__value { font-size: var(--fs-md); font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.verdict-bar__label { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-bar__cta { font-size: var(--fs-xs); font-weight: 800; text-decoration: underline; }

/* ---------------- Motion ---------------- */

.is-entering { animation: enter var(--t-med) var(--ease-out); }
@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.is-celebrating .verdict__badge--excellent { animation: shine 900ms var(--ease-out) 1; }
@keyframes shine {
  0% { box-shadow: 0 0 0 0 var(--pulse); }
  100% { box-shadow: 0 0 0 14px var(--pulse-0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 56rem) {
  .workspace { grid-template-columns: 1fr; }
  .result { position: static; }
}

@media (max-width: 40rem) {
  :root { --fs-display: 2.125rem; --fs-2xl: 2rem; --fs-xl: 1.5rem; }
  .shell { padding-top: var(--s-5); }
  .site-header__inner { flex-wrap: wrap; gap: var(--s-2); }
  .tabs { width: 100%; order: 3; margin-left: 0; }
  .header-link { margin-left: auto; }
  .tab { flex: 1; padding: 0 var(--s-2); }
  .field-row { grid-template-columns: 1fr; }
  .verdict, .breakdown, .threshold, .handoff, .notice, .empty { padding: var(--s-4); }
  .alt-list, .detail-body { padding-inline: var(--s-4); }
  .alternatives > summary, .sources > summary { padding-inline: var(--s-4); }
  .dest-item { padding-inline: var(--s-4); }
  body.has-verdict-bar .site-footer { padding-bottom: calc(var(--s-8) + var(--s-4) + env(safe-area-inset-bottom)); }
}

@media (min-width: 56.01rem) {
  .verdict-bar { display: none !important; }
}

/* ================= Admin ================= */

.shell--wide { width: min(100%, 80rem); }
.admin .site-header__inner { width: min(100%, 80rem); }

.wordmark__suffix {
  margin-left: var(--s-3);
  padding-left: var(--s-3);
  border-left: 1px solid var(--line-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.admin-status {
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.admin-status--ok { border-color: var(--teal-line); background: var(--teal-bg); }
.admin-status--ok strong { color: var(--teal); }
.admin-status--off { border-color: var(--danger-line); background: var(--danger-bg); }
.admin-status--off strong { color: var(--danger); }

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.admin-title { margin: 0 0 var(--s-2); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.admin-subtitle { margin: 0 0 var(--s-4); font-size: var(--fs-lg); font-weight: 800; }
.admin-lead { margin: 0; max-width: 65ch; color: var(--muted); font-size: var(--fs-sm); }

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) minmax(9rem, 1fr) minmax(12rem, 1.5fr) auto;
  align-items: end;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.admin-count { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }

.input--compact { min-height: 2.75rem; font-size: var(--fs-base); font-weight: 500; }
.input--area { min-height: 4.5rem; padding-top: var(--s-2); padding-bottom: var(--s-2); resize: vertical; line-height: 1.45; }
select.input { appearance: auto; padding-right: var(--s-3); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.admin-table th {
  position: sticky;
  top: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.admin-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: var(--row-hover); }
.cell-main { display: block; font-weight: 700; color: var(--text); }
.cell-sub { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); }
.cell-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); }

.pill--off { color: var(--muted); }

.btn--small { min-height: 2.25rem; padding: 0 var(--s-3); font-size: var(--fs-xs); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-text--danger { color: var(--danger); text-decoration-color: var(--danger-line); }
.btn-text--danger:hover { color: var(--danger-text); }


.editor { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-5); }
.editor__group { padding: 0; border: 0; }
.editor__group legend { margin-bottom: var(--s-3); padding: 0; font-size: var(--fs-sm); font-weight: 800; color: var(--lime); }
.editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--s-4);
  align-items: start;
}
.field--wide { grid-column: span 2; }
.editor__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.editor__actions .btn-text--danger { margin-left: auto; }
.form-error { margin: 0; color: var(--danger); font-weight: 700; font-size: var(--fs-sm); }
.form-error:empty { display: none; }

.ratio-input { display: flex; align-items: center; gap: var(--s-2); }
.ratio-input .input { min-width: 0; }
.ratio-input span { color: var(--muted); font-size: var(--fs-sm); }

.history { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-3); }
.history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
}
.history__item:first-child { border-top: 0; }
.history__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); min-width: 0; }
.history__action { font-size: var(--fs-xs); font-weight: 800; color: var(--muted); }
.history__action--create { color: var(--teal); }
.history__action--delete { color: var(--danger); }
.history__action--revert { color: var(--gold); }
.history__label { font-weight: 700; }
.history__changes { flex-basis: 100%; font-size: var(--fs-xs); color: var(--muted); }
.history__time { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.history__done { font-size: var(--fs-xs); color: var(--muted); }
.history__empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
  z-index: var(--z-overlay);
  max-width: min(90vw, 32rem);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  animation: enter var(--t-med) var(--ease-out);
}
.toast[data-kind="error"] { background: var(--danger); color: #2b0a10; }

@media (max-width: 56rem) {
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-toolbar .field:first-child { grid-column: 1 / -1; }
  .field--wide { grid-column: auto; }
}
@media (max-width: 40rem) {
  .wordmark__suffix { display: none; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-1) var(--s-3);
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--rule);
  }
  .admin-table tbody tr td { padding: 0; border: 0; }
  .admin-table td:nth-child(1) { grid-column: 1 / -1; }
  .admin-table td:nth-child(2), .admin-table td:nth-child(3) { grid-column: 1; }
  .admin-table td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; align-self: center; text-align: right; }
  .editor { padding: var(--s-4); }
  .history__item { grid-template-columns: 1fr auto; }
  .history__time { grid-column: 1; }
}

.admin code { padding: 1px 5px; border-radius: 4px; background: var(--input); color: var(--text-2); font-size: .92em; }
.cell-link { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-2); text-underline-offset: .2em; }

.recheck-list { display: flex; flex-direction: column; gap: var(--s-5); margin-bottom: var(--s-7); }
.recheck {
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  scroll-margin-top: 6rem;
}
.recheck__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) 0;
}
.recheck__title { margin: 0 0 var(--s-1); font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; }
.recheck__meta { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.recheck__meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.recheck__meta a { color: var(--accent-2); }
.recheck__why { margin: var(--s-2) 0 0; max-width: 70ch; font-size: var(--fs-sm); color: var(--text-2); }
.recheck-empty { padding: var(--s-6); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); text-align: center; }
.editor--flat { padding: var(--s-5); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-2); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-3);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.choice strong { font-size: var(--fs-sm); }
.choice small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.choice:hover span { border-color: var(--line-3); }
.choice input:checked + span { border-color: var(--lime); background: rgba(163, 230, 53, .1); }
.choice input:focus-visible + span { box-shadow: var(--focus); }

.stale-list { margin: var(--s-3) 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-3); }
.stale { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--text-2); }
.stale:first-child { border-top: 0; }

/* ---------------- Quand réserver ---------------- */

#dates-result { position: static; }

.dates-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  max-height: 26rem;
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
}
.dates-list__item { min-height: 2.5rem; padding: 0 var(--s-1); }
.dates-list__item[hidden] { display: none; }

.dates-today {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-md);
  color: var(--text-2);
  text-wrap: pretty;
}
.dates-today strong { color: var(--lime); font-weight: 800; }

.dates-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dates-table thead th {
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.dates-table tbody th, .dates-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.dates-table tbody tr:last-child > * { border-bottom: 0; }
.dates-table__date { font-weight: 800; color: var(--text); white-space: nowrap; }
.dates-table__open { color: var(--teal); }
.dates-table__close { color: var(--text-2); min-width: 10rem; }

@media (max-width: 40rem) {
  .dates-table thead { display: none; }
  .dates-table, .dates-table tbody, .dates-table tr { display: block; }
  .dates-table tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); }
  .dates-table tbody tr:last-child { border-bottom: 0; }
  .dates-table tbody th, .dates-table td { display: block; padding: 0; border: 0; }
  .dates-table__date { margin-top: var(--s-1); font-size: var(--fs-md); }
  .dates-table td[data-label] { display: flex; gap: var(--s-2); margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--muted); }
  .dates-table td[data-label]::before { content: attr(data-label) " :"; flex: none; font-weight: 700; }
  .dates-table__close { min-width: 0; }
}

.alogo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-sm);
  background: #fff;
}
.alogo img { display: block; width: 1.25rem; height: 1.25rem; object-fit: contain; }
.alogo--code {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-2);
}
.dates-list__item .alogo { width: 1.5rem; height: 1.5rem; }
.dates-list__item .alogo img { width: 1.125rem; height: 1.125rem; }
.dates-airline { display: flex; gap: var(--s-3); align-items: flex-start; }
.alogo--sm { width: 1.375rem; height: 1.375rem; border-radius: .375rem; }
.alogo--sm img { width: 1rem; height: 1rem; }
.alogo--sm.alogo--code { font-size: .5625rem; }
.cmp-table__prog { display: flex; gap: var(--s-3); align-items: center; }
@media (max-width: 40rem) {
  .source-chip { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
}

/* ---------------- Explorer ---------------- */

.explore-notice {
  display: inline-block;
  margin: 0 0 var(--s-5);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}
@media (min-width: 56.01rem) { .explore { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.explore-stage { position: relative; min-width: 0; }
#globe { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; }
#globe:active { cursor: grabbing; }
.globe-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.globe-tip {
  position: absolute; z-index: var(--z-dropdown); pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  padding: var(--s-1) var(--s-3); border-radius: var(--r-sm); background: var(--text); color: var(--bg);
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.globe-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.globe-legend i { display: inline-block; width: 1.25rem; height: 3px; margin-right: var(--s-2); border-radius: 2px; vertical-align: middle; }
.globe-legend__reach { background: var(--globe-reach); }
.globe-legend__far { background: var(--globe-far); }
.explore-budget { display: block; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.explore-budget small { font-size: var(--fs-base); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.explore-range { width: 100%; min-height: 2.75rem; accent-color: var(--lime); }
.explore-summary { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.explore-summary strong { color: var(--text); }
.explore-list { max-height: 20rem; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; border-top: 1px solid var(--rule); }
.explore-list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s-3); align-items: baseline; width: 100%;
  padding: var(--s-2) var(--s-2); border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--text); text-align: left;
}
.explore-list button:hover, .explore-list button[aria-current="true"] { background: var(--row-hover); }
.explore-list__city { font-weight: 700; }
.explore-list__meta { grid-column: 1; font-size: var(--fs-xs); color: var(--muted); }
.explore-list__miles { grid-column: 2; grid-row: 1; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.explore-list__miles.is-far { color: var(--muted); font-weight: 500; }
.explore-card { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.explore-card__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.explore-card__price { margin: var(--s-1) 0 0; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.explore-card__price small { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.explore-card__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); margin: var(--s-3) 0; font-size: var(--fs-sm); }
.explore-card__facts dt { color: var(--muted); }
.explore-card__facts dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.explore-card__facts .is-short { color: var(--danger); }

@media (max-width: 40rem) {
  .tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .tabs.is-end { -webkit-mask-image: none; mask-image: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0 var(--s-3); }
}
.explore-notice[data-reliability="official"], .explore-notice[data-reliability="chart"], .explore-notice[data-reliability="observed"] { color: var(--text-2); border-color: var(--line-3); }
.explore-list__sub { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.explore-pending { margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--text-2); }

/* ---------------- Hôtel ---------------- */

.stay-options { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-3); }
.stay-option { padding: var(--s-3) var(--s-4) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--wash); }
.stay-option__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.stay-option__name { font-weight: 800; color: var(--text); }
.stay-option__title { flex: 1; min-width: 0; font-weight: 700; }
.stay-option__grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.stay-option__card { grid-column: 1 / -1; margin: 0; }
.stay-option__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stay-table tbody tr.is-best > * { background: var(--accent-wash); }
.stay-table__ref .cell-main { color: var(--muted); }
.stay-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stay-rate { font-weight: 700; margin-right: var(--s-1); }
.stay-benchmarks { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.stay-benchmarks strong { color: var(--text-2); }
@media (max-width: 40rem) {
  .stay-option__grid { grid-template-columns: 1fr; }
}
.stay-option__head .alogo { flex: none; }
.stay-option__name { flex: 1; }
.stay-price { display: flex; gap: var(--s-2); }
.stay-price > .input:first-child { flex: 1; min-width: 0; }
.stay-cur { flex: 0 0 5.75rem; width: 5.75rem; padding-left: var(--s-3); padding-right: var(--s-2); }
.shop-offer__title { float: left; width: 100%; padding: 0; margin-bottom: var(--s-1); }
.shop-offer__hint { clear: both; margin: 0 0 var(--s-3); }
.stay-card { display: flex; align-items: center; gap: var(--s-2); }
.stay-card select { flex: 1; min-width: 0; }
.stay-card__logo { display: inline-flex; flex: none; }
.stay-add { width: auto; max-width: 100%; }
.explore-card__limit { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.explore-card__limit strong { color: var(--text); }

/* Calendrier: programmes */
.book-chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.book-chip { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2) 2px 2px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.book-chip.is-reachable { border-color: var(--accent); color: var(--text); background: var(--accent-wash); }
.book-chip--more { padding: 2px var(--s-2); color: var(--muted); background: none; font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.book-chip--more:hover { color: var(--text); border-color: var(--accent); }
.book-chip--more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-chip[hidden] { display: none; }
.dates-table__book { min-width: 12rem; }
.dates-legend { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--muted); }
#panel-dates td[data-label="Lien"] .pill { white-space: nowrap; }

/* Cartes */
.cards-list { max-height: none; }
.cards-table th[scope="col"] .alogo { vertical-align: middle; }
.cards-ratio { display: block; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cards-ratio.is-best { font-weight: 850; color: var(--accent); }
.cards-note { text-decoration: underline dotted; cursor: help; }
.cards-amount { display: block; font-size: var(--fs-xs); color: var(--text); font-weight: 600; white-space: nowrap; }
.field__optional { font-weight: 400; color: var(--muted); }
.cards-toggle { margin-left: var(--s-2); font-size: var(--fs-xs); }
.cards-balance-row[hidden] { display: none; }
.cards-balance-row td { padding-top: 0; }
.cards-balance-row__label { font-size: var(--fs-xs); color: var(--muted); vertical-align: middle; }
.cards-balance-input.input { min-height: 2rem; max-width: 9rem; padding-block: var(--s-1); font-size: var(--fs-sm); }
@media (max-width: 40rem) {
  .cards-table thead { display: block; border-bottom: 1px solid var(--rule); }
  .cards-table thead tr:first-child th:not(:first-child) { display: none; }
  .cards-table thead tr:first-child th:first-child { display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; }
  .cards-table thead tr { border-bottom: 0; }
  .cards-balance-row { padding-top: 0; }
  .cards-table .cards-balance-row__label { display: none; }
  .cards-balance-row td[data-label] { align-items: center; justify-content: space-between; margin-top: var(--s-2); }
}

/* ---------------- Billets prime (award availability calendar) ---------------- */

.segmented__options--3 { grid-template-columns: repeat(3, 1fr); }
.segmented__options--fit { grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
.segmented__options--fit .segmented__option span { white-space: nowrap; padding-left: var(--s-2); padding-right: var(--s-2); }
.pair-hint { margin: 0 0 var(--s-3); }

.stepper {
  display: inline-grid;
  grid-template-columns: 2.75rem 3rem 2.75rem;
  align-items: center;
  width: max-content;
  padding: var(--s-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-3);
}
.stepper__btn {
  min-height: 2.75rem;
  border: 0;
  border-radius: calc(var(--r-md) - 4px);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.stepper__btn:hover:not(:disabled) { background: var(--surface-2); }
.stepper__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.stepper__btn:disabled { color: var(--muted-2); cursor: not-allowed; }
.stepper__value { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.range { width: 100%; min-height: 2.75rem; accent-color: var(--lime); cursor: pointer; }
.range:disabled { cursor: not-allowed; opacity: .5; }
.range:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

.places-workspace { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
.places-result { position: static; }
@media (min-width: 56.01rem) { .places-workspace > .inputs { position: sticky; top: 6rem; } }

.places-summary { margin: 0 0 var(--s-2); font-size: var(--fs-md); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.places-summary strong { color: var(--text); font-weight: 800; }
.places-meta { max-width: 70ch; margin: 0 0 var(--s-5); font-size: var(--fs-xs); color: var(--muted); }
.places-jump {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.places-jump:hover { color: var(--gold-text); }
.places-jump:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.places-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  margin: 0 0 var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-3);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.places-step[hidden] { display: none; }
.places-step strong { color: var(--text); }

.places-more { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.places-more__summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
}
.places-more__summary { list-style: none; justify-content: space-between; }
.places-more__summary::-webkit-details-marker { display: none; }
.places-more__summary::after { content: ''; width: .5rem; height: .5rem; margin-right: var(--s-2); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-fast) var(--ease-out); }
.places-more[open] > .places-more__summary::after { transform: rotate(-135deg); }
.places-more__summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.places-more__body { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-3); }
.places-alert .btn { width: 100%; }
.places-alert .btn:disabled { opacity: 1; color: var(--muted); border-color: var(--line); }
@media (min-width: 56.01rem) {
  .places-more { border-top: 0; padding-top: 0; }
  .places-more__summary { display: none; }
  .places-more__body { padding-top: 0; }
}
.places-badge {
  display: inline-block;
  margin-right: var(--s-1);
  padding: 0 var(--s-2);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  background: var(--gold-bg);
  color: var(--gold-text);
  font-weight: 800;
}

.places-months-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.25rem, 1fr));
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}
.places-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.75rem;
  padding: var(--s-1) 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.places-bar:hover:not(:disabled) { background: var(--row-hover); color: var(--text); }
.places-bar:focus-visible { outline: none; box-shadow: var(--focus); }
.places-bar:disabled { cursor: default; color: var(--muted-2); }
.places-bar__track { display: flex; align-items: flex-end; width: .625rem; height: 2rem; border-radius: 2px; background: var(--gauge-1); overflow: hidden; }
.places-bar__fill { width: 100%; height: var(--h); background: var(--accent); }
.places-bar__label { display: flex; flex-direction: column; align-items: center; font-size: var(--fs-xs); font-weight: 700; line-height: 1.15; text-transform: capitalize; }
.places-bar__year { font-size: .625rem; font-weight: 600; color: var(--muted); }
.places-bar__count { min-height: 1em; font-size: .6875rem; font-weight: 800; line-height: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }

.places-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: 1.5rem; margin-bottom: var(--s-4); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.places-legend:empty { display: none; }
.places-legend__key { display: inline-flex; align-items: center; gap: var(--s-2); }
.pday-key { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; }
.pday-key--best { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.pday-key--over { border: 1px dashed var(--line-3); }
.places-legend__scale { flex: 0 1 10rem; height: .5rem; border-radius: var(--r-pill); background: linear-gradient(90deg in oklch, var(--accent), var(--danger)); }

.places-cal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  grid-auto-flow: row dense;
  gap: var(--s-5) var(--s-6);
}
.pmonth { scroll-margin-top: 6rem; }
.pmonth__title { margin: 0 0 var(--s-2); font-size: var(--fs-md); font-weight: 800; }
.pmonth__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pmonth__wd { padding-bottom: var(--s-1); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-align: center; }

.pday {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 2.75rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text-2);
}
.pday--blank { visibility: hidden; }
.pday--out { color: var(--muted-2); opacity: .35; }
.pday--none { color: var(--muted-2); font-weight: 500; }
.pday--on {
  border: 0;
  background: color-mix(in oklch, var(--danger) var(--heat), var(--accent));
  color: var(--on-accent);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.pday--on small { font-size: .6875rem; font-weight: 700; opacity: .85; }
.pday--on:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--text); }
.pday--on:focus-visible { outline: none; box-shadow: var(--focus); }
.pday--on[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.pday--best { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.pday--best[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.pday--over { background: transparent; border: 1px dashed var(--line-3); color: var(--muted); }
.pday--over small { opacity: 1; }
.pday--over:hover { box-shadow: none; border-color: var(--muted); color: var(--text-2); }

.places-detail {
  grid-column: 1 / -1;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.places-detail:focus { outline: none; }
.places-detail:focus-visible { box-shadow: var(--focus); }
.places-detail__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.places-detail__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.places-detail__price, .places-detail__total { margin: var(--s-2) 0 0; color: var(--text-2); }
.places-detail__price strong, .places-detail__total strong { color: var(--text); }
.places-flights { margin: var(--s-4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.places-leg + .places-leg { margin-top: var(--s-4); }
.places-leg__title { margin: var(--s-3) 0 0; font-weight: 800; color: var(--text); }
.places-flight {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.places-flight__no { font-weight: 800; }
.places-flight__ac { color: var(--muted); }
.places-detail__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

@media (max-width: 56rem) {
  .places-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .places-cal { grid-template-columns: 1fr; }
  .places-flight { grid-template-columns: 4.5rem 1fr; }
  .places-flight__ac { grid-column: 2; }
  .places-months-bar {
    position: sticky;
    top: var(--places-sticky-top, 7rem);
    z-index: var(--z-dropdown);
    margin-inline: calc(-1 * var(--s-4));
    padding: var(--s-1) var(--s-4);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .places-months-bar::-webkit-scrollbar { display: none; }
  .pmonth { scroll-margin-top: 13rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pday--on, .pday--on:hover { transition: none; transform: none; }
}
