:root {
  --ink: #17212b;
  --muted: #6b7882;
  --paper: #f4f7f5;
  --panel: #ffffff;
  --line: #dbe4e1;
  --teal: #176b67;
  --teal-dark: #0d4e4c;
  --teal-light: #dcefeb;
  --orange: #c56d32;
  --orange-light: #fff0e5;
  --yellow-light: #fff7d9;
  --shadow: 0 18px 50px rgba(23, 33, 43, .18);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #dfe8e5; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.desktop-stage { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.phone-frame { width: min(100%, 456px); min-height: min(900px, calc(100vh - 56px)); padding: 8px; border: 1px solid #162126; border-radius: 30px; background: #162126; box-shadow: var(--shadow); }
.phone-screen { min-height: min(884px, calc(100vh - 72px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 23px; background: var(--paper); }
.app-header { height: 62px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "back brand status"; align-items: center; padding: 0 16px; background: var(--teal); color: #fff; }
.app-header.no-back { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand status"; }
#header-back { grid-area: back; }
.app-header .brand-lockup { grid-area: brand; }
#header-status, #header-compare { grid-area: status; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #a8d8d1; border-radius: 50%; color: #dff5f0; font-size: 14px; font-weight: 800; }
.brand-name { font-size: 19px; font-weight: 760; letter-spacing: .02em; }
.header-status { color: #c4e3de; font-size: 12px; }
.header-compare { padding: 5px 8px; border: 1px solid rgba(255,255,255,.42); border-radius: 4px; color: #fff; background: transparent; font-size: 11px; font-weight: 750; }
.header-compare span { margin-left: 3px; color: #dff5f0; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 0; color: #fff; background: transparent; font-size: 24px; line-height: 1; text-align: left; }
.app-view { flex: 1; overflow-y: auto; padding: 28px 18px 26px; }
.screen { min-height: 100%; }
.hidden { display: none !important; }
.intro-block { padding: 12px 3px 24px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 7vw, 35px); line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.2; }
.intro-copy, .muted-copy { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.search-form { display: grid; gap: 16px; }
.station-fields { position: relative; display: grid; gap: 9px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.station-field label, .compact-field span { display: block; margin: 0 0 6px 26px; color: var(--muted); font-size: 11px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 39px; padding: 0 10px 0 26px; border: 0; border-bottom: 1px solid var(--line); outline: none; color: var(--ink); background: transparent; font-size: 16px; font-weight: 650; }
.station-field:last-child .input-wrap input { border-bottom: 0; }
.input-wrap input:focus { border-color: var(--teal); }
.field-dot { position: absolute; top: 13px; left: 3px; z-index: 1; width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 50%; background: var(--panel); }
.destination-dot { border-color: var(--orange); }
.swap-button { position: absolute; z-index: 2; top: 50%; right: 16px; width: 31px; height: 31px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: var(--panel); font-size: 20px; line-height: 1; }
.autocomplete { position: absolute; z-index: 10; top: 42px; right: 0; left: 0; display: none; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 8px 24px rgba(23, 33, 43, .14); }
.autocomplete.open { display: block; }
.autocomplete button { display: block; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--panel); text-align: left; }
.autocomplete button:last-child { border-bottom: 0; }
.autocomplete button:hover, .autocomplete button:focus { background: var(--teal-light); }
.search-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.date-field { grid-column: 1 / -1; }
.compact-field { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.compact-field span { margin-left: 0; }
.compact-field input, .compact-field select { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 650; }
.primary-button { min-height: 47px; border: 0; border-radius: 7px; color: #fff; background: var(--teal); font-size: 15px; font-weight: 750; }
.primary-button:hover, .primary-button:focus { background: var(--teal-dark); }
.primary-button span { padding-left: 7px; font-size: 18px; }
.app-error { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #d8a89d; border-radius: 6px; color: #852b1d; background: #fff1ed; font-size: 13px; line-height: 1.45; }
.primary-button:disabled { cursor: wait; opacity: .65; }
#timetable-range { margin: -5px 0 0; }
.plan-date { margin: 8px 0; color: var(--muted); font-size: 13px; }
.contract-note { margin-top: 34px; padding: 15px 16px; border-left: 3px solid var(--orange); background: var(--orange-light); }
.note-kicker { display: block; margin-bottom: 5px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contract-note p { margin: 0; color: #704021; font-size: 13px; line-height: 1.45; }
.screen-heading { margin: 4px 2px 18px; }
.screen-heading h1 { font-size: 25px; }
.detail-heading { margin-bottom: 14px; }
.scope-strip { margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.journey-list, .departure-list, .variant-list { display: grid; gap: 10px; }
.journey-card, .departure-row, .variant-card { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.journey-card { overflow: hidden; }
.journey-card-button, .departure-row-button { display: block; width: 100%; padding: 15px; border: 0; color: inherit; background: transparent; text-align: left; }
.journey-card-button:hover, .journey-card-button:focus, .departure-row-button:hover, .departure-row-button:focus { background: #f8fbfa; }
.card-topline, .departure-topline, .section-heading, .metric-row, .stat-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { margin-bottom: 4px; font-size: 16px; font-weight: 750; }
.service-label { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.layer-badge, .recommend-badge { padding: 4px 7px; border-radius: 4px; color: var(--teal-dark); background: var(--teal-light); font-size: 10px; font-weight: 800; white-space: nowrap; }
.recommend-badge { color: #80511d; background: var(--yellow-light); }
.card-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding-top: 11px; border-top: 1px solid var(--line); }
.metric-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.metric-value { display: block; font-size: 13px; font-weight: 750; }
.card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--line); color: var(--teal); font-size: 12px; font-weight: 700; }
.card-next-departure { min-width: 0; color: var(--muted); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.card-next-departure strong { color: var(--teal); font-weight: 700; }
.card-departure-count { flex: none; text-align: right; }
.later-journeys { display: grid; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.later-heading h2 { margin-bottom: 4px; font-size: 17px; }
.later-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.empty-state { padding: 25px 15px; border: 1px dashed var(--line); color: var(--muted); background: var(--panel); font-size: 13px; line-height: 1.45; }
.metric-row { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.metric-pill { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.metric-pill strong { display: block; font-size: 15px; }
.metric-pill span { color: var(--muted); font-size: 10px; }
.section-heading { margin: 22px 2px 10px; }
.section-meta { color: var(--muted); font-size: 11px; }
.journey-departure-meta { margin: -8px 2px 12px; }
.departure-row-button { padding: 13px 14px; }
.departure-topline { justify-content: flex-start; gap: 9px; }
.departure-time, .arrival-time { color: var(--ink); font-size: 19px; font-weight: 800; }
.departure-arrow { color: var(--muted); font-size: 15px; }
.departure-duration { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.departure-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.departure-meta strong { color: var(--ink); }
.departure-row.outclassed { border-style: dashed; background: transparent; }
.departure-row.outclassed .departure-time, .departure-row.outclassed .arrival-time { color: var(--muted); font-weight: 700; }
.departure-outclassed { color: #80511d; }
.departure-services { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.departure-hero { padding: 4px 2px 2px; }
.departure-hero .eyebrow { margin-bottom: 9px; }
.hero-times { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; }
.hero-times strong { font-size: 33px; line-height: 1; }
.hero-times span { color: var(--muted); font-size: 17px; }
.hero-route { margin-bottom: 11px; color: var(--muted); font-size: 13px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.stat-chip { padding: 5px 8px; border-radius: 4px; color: var(--teal-dark); background: var(--teal-light); font-size: 11px; font-weight: 700; }
.variant-card { padding: 14px; }
.transfer-shared-context { display: grid; gap: 4px; padding: 9px 10px; border-left: 2px solid var(--teal); color: var(--muted); background: #f5faf8; font-size: 11px; }
.transfer-shared-context strong { color: var(--ink); }
.choice-badge { padding: 3px 5px; border-radius: 3px; color: #80511d; background: var(--yellow-light); font-size: 9px; font-weight: 800; white-space: nowrap; }
.choice-badge.alternative { color: var(--muted); background: #edf1ef; }
.transfer-option-note { margin: 3px 2px 13px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.variant-summary-card { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.variant-summary-button { display: block; width: 100%; padding: 13px 14px; border: 0; color: inherit; background: transparent; text-align: left; }
.variant-summary-button:hover, .variant-summary-button:focus { background: #f8fbfa; }
.variant-summary-route { margin-bottom: 5px; font-size: 14px; font-weight: 800; }
.variant-preview { display: grid; gap: 7px; margin-top: 10px; }
.variant-preview-transfer { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding-left: 9px; border-left: 2px solid var(--orange); }
.variant-preview-transfer strong, .variant-preview-leg strong { display: block; font-size: 12px; }
.variant-preview-transfer span, .variant-preview-leg span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.variant-preview-transfer small, .variant-preview-leg small { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.variant-preview-leg { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 8px 9px; background: #f5faf8; }
.variant-detail { padding-bottom: 6px; }
.secondary-button { width: 100%; min-height: 41px; margin: 0 0 14px; border: 1px solid var(--teal); border-radius: 6px; color: var(--teal-dark); background: var(--teal-light); font-size: 13px; font-weight: 800; }
.secondary-button:hover, .secondary-button:focus { background: #cae7e1; }
.secondary-button.in-comparison { border-color: var(--orange); color: #7a421d; background: var(--orange-light); }
.secondary-button.in-comparison:hover, .secondary-button.in-comparison:focus { background: #ffe2cf; }
.variant-block { display: grid; gap: 8px; margin-bottom: 19px; }
.variant-block:last-child { margin-bottom: 0; }
.variant-block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 2px 0; }
.variant-block-heading h3 { margin: 0; font-size: 14px; }
.variant-block-heading span { color: var(--muted); font-size: 11px; }
.variant-card.recommended { border-color: #d4b374; }
.variant-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.variant-title { margin: 0 0 3px; font-size: 14px; font-weight: 800; }
.variant-subtitle { margin: 0; color: var(--muted); font-size: 11px; }
.transfer-list { display: grid; gap: 7px; }
.transfer-item { padding: 9px 10px; border-left: 2px solid var(--teal); background: #f5faf8; }
.transfer-main { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 750; }
.transfer-detail { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.warning { margin-top: 10px; padding: 8px 9px; color: #75491d; background: var(--yellow-light); font-size: 11px; line-height: 1.35; }
.legs { display: grid; gap: 0; margin-top: 12px; }
.leg { position: relative; padding: 0 0 12px 18px; border-left: 1px solid #b8cbc6; }
.leg:last-child { padding-bottom: 0; border-left-color: transparent; }
.leg::before { position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border: 2px solid var(--teal); border-radius: 50%; background: var(--panel); content: ""; }
.leg-head { display: flex; justify-content: space-between; gap: 7px; font-size: 12px; font-weight: 750; }
.leg-detail { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.final-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding-top: 5px; color: var(--muted); font-size: 13px; }
.final-summary strong { color: var(--ink); font-size: 20px; }
.journey-timeline { display: grid; gap: 10px; }
.journey-timeline-leg { position: relative; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.timeline-stop { display: grid; grid-template-columns: 53px 1fr; gap: 9px; align-items: start; }
.timeline-stop time { color: var(--ink); font-size: 17px; font-weight: 800; }
.timeline-stop strong { display: block; font-size: 15px; }
.timeline-stop span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.timeline-service { margin-left: 53px; padding: 9px 10px; border-left: 3px solid var(--teal); background: #f5faf8; }
.timeline-service strong { display: block; font-size: 12px; }
.timeline-service span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.journey-timeline-transfer { display: grid; grid-template-columns: 53px 1fr; gap: 9px; margin: -2px 0; padding: 3px 0 3px 14px; color: var(--muted); font-size: 12px; }
.journey-timeline-transfer strong { color: var(--orange); }
.comparison-track { display: flex; gap: 14px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.comparison-plan { flex: 0 0 calc(100% - 10px); padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); scroll-snap-align: start; }
.comparison-plan .screen-heading { margin-top: 5px; }
.comparison-plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.comparison-plan-actions button { border: 0; color: var(--orange); background: transparent; font-size: 11px; font-weight: 750; }
.app-footer { display: flex; justify-content: space-between; padding: 10px 18px 13px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: 10px; }
@media (max-width: 600px) {
  .desktop-stage { display: block; padding: 0; }
  .phone-frame, .phone-screen { min-height: 100vh; width: 100%; border-radius: 0; }
  .phone-frame { padding: 0; border: 0; }
  .phone-screen { border-radius: 0; }
  .app-view { padding-top: 23px; }
}
/* Marks a time that falls on the day after the queried service date. GTFS
   reports these as hours >= 24; the app wraps the clock and adds this badge so
   00:11 tomorrow is never mistaken for 00:11 this morning. */
.next-day {
  font-size: 0.62em;
  font-weight: 700;
  color: #b4531f;
  margin-left: 0.15em;
  vertical-align: super;
  line-height: 0;
}
/* Supplement-bearing leg count, not a fare quote. Hidden at zero. */
.supplement-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  background: #fdf0e4;
  color: #b4531f;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
/* Second level of the departure screen: one departure that carries a choice of
   middle service. The times are shared, so the heading states them once. */
.middle-leg-heading { margin: 0 0 12px; }
.middle-leg-heading h2 { margin: 0; font-size: 1.15rem; }
.middle-leg-heading p { margin: 4px 0 0; font-size: 0.82rem; color: #5d6b73; }
/* Journey diagram.
   One row per option, one shared time axis, so the rows line up and the
   difference between options is a shape rather than a paragraph:

       -------A-----B---------
       -------A---------C-----
       ----------D------------

   Everything inside a track is positioned by PERCENTAGE of the journey's
   duration, so the geometry is the timetable: a wide gap is a long wait. */
.diagram {
  display: grid;
  gap: 7px;
}
.diagram-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.diagram-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 11px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  background: var(--panel);
  text-align: left;
}
.diagram-row:hover,
.diagram-row:focus {
  border-color: var(--teal);
  background: var(--teal-light);
}
.diagram-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 14px;
}
.diagram-meta small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
/* The track is the only positioned context; every mark inside is absolute. */
.diagram-track {
  position: relative;
  height: 30px;
}
.diagram-ride {
  position: absolute;
  top: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
}
/* A wait is drawn as a break in the line rather than more line, because that
   is what it is: the train you were on has gone without you. */
.diagram-wait {
  position: absolute;
  top: 15.5px;
  height: 1px;
  background: repeating-linear-gradient(
    to right, var(--line) 0 2px, transparent 2px 4px);
}
.diagram-endpoint {
  position: absolute;
  top: 12.5px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--panel);
}
.diagram-endpoint.start { left: 0; }
.diagram-endpoint.end { right: 0; border-color: var(--orange); }
.diagram-row:hover .diagram-endpoint,
.diagram-row:focus .diagram-endpoint {
  background: var(--teal-light);
}
/* The letter sits above the line so it never covers the geometry. */
.diagram-stop {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  min-width: 13px;
  padding: 0 2px;
  border-radius: 3px;
  color: var(--teal-dark);
  background: var(--teal-light);
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}
.diagram-train {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
/* Named once for every row, because two Dutch station names will not fit on a
   phone-width track. */
.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  padding: 8px 3px 0;
  color: var(--muted);
  font-size: 11px;
}
.diagram-legend b {
  margin-right: 5px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}
.way-sections { display: grid; gap: 14px; }
.way-sections-note {
  margin: 4px 2px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.way-section {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfc;
}
.way-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
}
.way-section > summary { cursor: pointer; list-style: none; }
.way-section > summary::-webkit-details-marker { display: none; }
.way-section > summary::after {
  content: "+";
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
}
.way-section[open] > summary::after { content: "−"; }
.way-section[open] > .way-section-body > .diagram { margin-top: 8px; }
.way-section-heading h3 { margin: 0; font-size: 13px; }
.way-section-heading span { color: var(--muted); font-size: 11px; }
/* Fixture descriptions remain available through the explicit #testbench URL. */
.testbench-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #5c6b6a);
}
/* The picker's hero, inherited from the single-departure transfer screen it
   replaced. Same look, one code path. */
.picker-hero {
  margin-bottom: 4px;
}
/* Card metrics describe the next departure; variation belongs beside them. */
.card-route-note { margin: .65rem 0 0; font-size: .83rem; line-height: 1.4; color: var(--muted, #5b6c67); }
.card-kicker { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-stock-note { margin: .7rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.card-stock-note strong { color: var(--teal); }
.card-title-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.footer-link { padding: 3px; border: 0; background: none; color: var(--teal); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#bug-report-dialog { width: min(440px, calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f7faf8; }
#bug-report-dialog::backdrop { background: rgba(14, 39, 43, .52); }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-heading h2 { margin: 0; font-size: 21px; }
.feedback-heading .icon-button { color: var(--teal); }
#bug-report-form label { display: block; margin: 20px 0 8px; font-weight: 700; }
#bug-report-message { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; box-sizing: border-box; }
.feedback-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
#bug-report-status { overflow-wrap: anywhere; font-size: 13px; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.feedback-actions button { width: auto; }
/* Per-browser search preferences and exact-minimum transfer hints. */
.search-settings { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 12px 0; }
.search-settings span { font-size: 12px; color: #66736e; }
#settings-dialog { width: min(540px, calc(100% - 32px)); max-height: 88vh; overflow: auto; border: 1px solid #d5ddd8; border-radius: 16px; padding: 22px; }
#settings-dialog::backdrop { background: rgb(16 36 28 / 35%); }
.settings-toggle { display: flex; align-items: start; gap: 10px; font-weight: 600; }
.settings-toggle input { margin-top: 5px; }
.transfer-setting { display: grid; grid-template-columns: 1fr 76px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e4e8e5; }
.transfer-setting small { display: block; font-size: 12px; color: #66736e; font-weight: normal; }
.transfer-setting input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid #bdc9c1; border-radius: 7px; font: inherit; }
.minimum-transfer-note { display: inline-block; color: #866021; background: #f8f1e4; border-radius: 5px; padding: 2px 6px; font-size: 11px; font-weight: 500; }
.journey-timeline-transfer .minimum-transfer-note { display: block; width: fit-content; margin-top: 5px; }
