/* Carrier on-time performance -- design tokens and layout.
 *
 * Everything is local: no font, stylesheet, script or image is loaded from an
 * external host, so the page renders identically with all outbound network
 * access blocked.
 *
 * Type: the system sans carries prose and the headline figures; the system
 * monospace carries every MEASURED quantity -- times, station codes, leg
 * counts, rates in tables. That split is the page's typographic rule: if a
 * number came off an instrument, it is set in mono.
 *
 * Colour: the validated categorical palette. A carrier's colour is bound to
 * the carrier in app/config.py, never to its rank in a result set, so
 * filtering or adding a carrier never repaints the others.
 */

:root {
  color-scheme: light;

  --page:            #f9f9f7;
  --surface:         #fcfcfb;
  --ink:             #0b0b0b;
  --ink-2:           #52514e;
  --ink-3:           #898781;
  --grid:            #e1e0d9;
  --axis:            #c3c2b7;
  --hairline:        rgba(11, 11, 11, 0.10);
  --shadow:          0 1px 2px rgba(11, 11, 11, 0.04);

  --series-1: #2a78d6;  /* blue    */
  --series-2: #eb6834;  /* orange  */
  --series-3: #1baf7a;  /* aqua    */
  --series-4: #eda100;  /* yellow  */
  --series-5: #e87ba4;  /* magenta */
  --series-6: #008300;  /* green   */
  --series-7: #4a3aa7;  /* violet  */
  --series-8: #e34948;  /* red     */

  /* Etihad gold. Page chrome only -- the brand colour never paints a data
   * mark, so the validated series palette stays intact and no reader can
   * mistake brand for a carrier's series. */
  --brand:           #bd8b13;

  --ghost:           #b9b7b0;  /* the raw / uncorrected mark */
  --warn-ink:        #7a4a00;
  --warn-bg:         #fdf4e3;
  --warn-edge:       #e8cf9a;

  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --radius: 8px;
  --gap: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page:     #0d0d0d;
    --surface:  #1a1a19;
    --ink:      #ffffff;
    --ink-2:    #c3c2b7;
    --ink-3:    #898781;
    --grid:     #2c2c2a;
    --axis:     #383835;
    --hairline: rgba(255, 255, 255, 0.10);
    --shadow:   none;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --brand:    #cba344;
    --ghost:    #5c5b56;
    --warn-ink: #f0cd8c;
    --warn-bg:  #2a2318;
    --warn-edge:#4a3d22;
  }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page:     #0d0d0d;
    --surface:  #1a1a19;
    --ink:      #ffffff;
    --ink-2:    #c3c2b7;
    --ink-3:    #898781;
    --grid:     #2c2c2a;
    --axis:     #383835;
    --hairline: rgba(255, 255, 255, 0.10);
    --shadow:   none;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --brand:    #cba344;
    --ghost:    #5c5b56;
    --warn-ink: #f0cd8c;
    --warn-bg:  #2a2318;
    --warn-edge:#4a3d22;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* --- filter bar: one row, above everything it scopes ---------------------- */
.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  margin-bottom: 28px;
}
.filters-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: flex-end;
}
.filters-row + .filters-row {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  /* top-align so the field labels ("DATES", "DEPARTURE/ARRIVAL TIME",
     "OTP CALCULATION TYPE") sit on one line even though the slider field is
     taller than the others. */
  align-items: flex-start;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 6px 8px;
  min-height: 32px;
}
.field input:focus-visible, .field select:focus-visible,
button:focus-visible, summary:focus-visible, th button:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 2px;
}
.dates { display: flex; align-items: center; gap: 6px; }
.dates span.sep { color: var(--ink-3); font-family: var(--mono); }

.toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.toggle button {
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 12px;
  border: 0;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.spacer { flex: 1; }

/* --- carrier chips: subject locked-on, peers toggle; colour = carrier ---- */
.carrier-chips { align-items: center; }
.chip-carrier {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12.5px; padding: 5px 11px;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; cursor: pointer;
}
.chip-carrier .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip-carrier[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); font-weight: 600; }
.chip-carrier[aria-pressed="false"] { border-style: dashed; opacity: 0.6; }
.chip-carrier.locked { cursor: default; }

/* --- time-of-day range slider (dual thumb, one track) --------------------- */
/* The visible rail (.tod-rail) is inset by the thumb radius (9px) on each side,
   so it spans exactly the range the thumb CENTRES travel: a thumb at 00:00 sits
   at the rail's left end, one at 24:00 at its right end, and the fill lines up
   with both. The two range inputs stay full-width underneath (their native
   thumbs are inset by half their own width), which is what makes the ends line
   up. THUMB_RADIUS 9px must equal half the 18px thumb below. */
.field-tod { flex: 1 1 380px; min-width: 300px; }
.tod { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.tod-track { position: relative; height: 28px; }
.tod-rail {
  position: absolute; left: 9px; right: 9px; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 999px; background: var(--hairline);
}
.tod-fill {
  position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--series-1);
}
.tod-track input[type=range] {
  position: absolute; left: 0; right: 0; width: 100%; margin: 0; height: 28px;
  background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.tod-track input[type=range]::-webkit-slider-runnable-track {
  background: transparent; height: 28px; border: 0;
}
.tod-track input[type=range]::-moz-range-track { background: transparent; height: 28px; border: 0; }
.tod-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; margin-top: 5px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--series-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.tod-track input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--series-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); cursor: pointer;
}
.tod-track input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.tod-track input[type=range]:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(42, 120, 214, 0.16), 0 1px 3px rgba(0, 0, 0, 0.28);
}
.tod-track input[type=range]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(42, 120, 214, 0.22), 0 1px 3px rgba(0, 0, 0, 0.28);
}
.tod-track input[type=range]:focus { outline: none; }
.tod-readout { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* --- taxi-allowance strip (styled, under the basis line) ----------------- */
.taxi-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
}
.taxi-strip-label {
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 2px;
}
.taxi-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 4px 10px 4px 6px; background: var(--surface);
}
.taxi-pill .tp-code {
  font-family: var(--mono); font-weight: 700; font-size: 11.5px; color: var(--ink);
  background: var(--grid); border-radius: 6px; padding: 2px 7px;
}
.taxi-pill .tp-nums { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.taxi-pill .tp-nums b { color: var(--series-1); font-weight: 700; }
.taxi-pill .tp-tag {
  font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--hairline); border-radius: 4px;
  padding: 1px 5px;
}
.taxi-pill[data-instrument="direct"] { border-color: var(--series-1); }
.taxi-pill[data-instrument="direct"] .tp-tag {
  color: var(--series-1); border-color: var(--series-1);
}

/* --- header -------------------------------------------------------------- */
header.page { padding: 8px 0 26px; }
.brandbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.brandbar img { height: 34px; width: auto; display: block; }
.brandbar .rule { width: 1px; align-self: stretch; background: var(--hairline); }
.brandbar .owner {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brandbar .owner b { display: block; color: var(--brand); font-weight: 600; letter-spacing: 0.10em; }
header.page h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.window-line { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.basis {
  margin-top: 12px;
  max-width: 74ch;
  font-size: 13px;
  color: var(--ink-2);
  border-left: 2px solid var(--axis);
  padding-left: 12px;
}

.notice {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--warn-edge);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 6px;
  font-size: 13px;
}
.notice[hidden] { display: none; }

/* --- cards --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.card .sub { font-size: 12.5px; color: var(--ink-2); margin: 0 0 14px; max-width: 70ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-bottom: var(--gap); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- headline tiles: one row per carrier, Etihad on top ------------------ */
.tiles { display: flex; flex-direction: column; gap: var(--gap); margin-bottom: var(--gap); }
.tile-row { display: flex; flex-direction: column; gap: 8px; }
.tile-row-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.tile-row-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.subject-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 7px;
}
.tile-row-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 560px) { .tile-row-cards { grid-template-columns: 1fr; } }

.tile { display: flex; flex-direction: column; gap: 2px; }
.tile .who { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.tile .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tile .metric { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.03em; }
.tile .value {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 6px;
}
.tile .band { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tile .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* The correction rail: the raw figure, the corrected figure, and the distance
 * between them, on every tile. The correction is the fact that decides the
 * departure ranking, so it is shown rather than footnoted. */
.rail { margin-top: 14px; }
.rail-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.tile.is-raw .value { color: var(--ink-2); }

/* --- tables (the twin of every chart) ------------------------------------ */
details.tableview { margin-top: 12px; }
details.tableview summary {
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
details.tableview summary::-webkit-details-marker { display: none; }
details.tableview summary::before { content: "+"; font-family: var(--mono); color: var(--ink-3); }
details.tableview[open] summary::before { content: "-"; }

table { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 12.5px; }
th, td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--grid); }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--ink-3); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
th button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
}
.scroll-x { overflow-x: auto; }

/* --- legend -------------------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.legend .key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .key.line { height: 2px; border-radius: 2px; width: 16px; }
.legend .key.hollow { background: transparent; border: 2px solid var(--ghost); }

/* --- charts -------------------------------------------------------------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.chart text.value { font-family: var(--sans); font-size: 12px; fill: var(--ink-2); font-weight: 500; }
.chart text.cat { fill: var(--ink-2); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .threshold { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: none; opacity: 0.55; }
.chart .hit { fill: transparent; cursor: default; }
.chart .mark { transition: opacity 120ms ease; }
.chart .mark.dim { opacity: 0.35; }
/* Marks whose colour is a theme token. An SVG presentation attribute cannot
 * resolve var(), so these carry a class and take their paint from CSS. */
.chart .ring { stroke: var(--surface); }
.chart .track { stroke: var(--grid); }
.chart .connector { stroke: var(--axis); }
.chart .marked { fill: var(--warn-bg); }
.chart .raw-dot { fill: var(--surface); stroke: var(--ghost); }

.tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(11, 11, 11, 0.13);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-2);
  max-width: 260px;
}
.tooltip[hidden] { display: none; }
.tooltip .tt-head { color: var(--ink); font-weight: 600; margin-bottom: 5px; }
.tooltip .tt-row { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.tooltip .tt-key { width: 14px; height: 2px; border-radius: 2px; flex: none; transform: translateY(-3px); }
.tooltip .tt-val { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.tooltip .tt-name { color: var(--ink-2); }

/* Small multiples: the movement becomes a panel rather than a fourth thing
 * colour has to carry. */
.facets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .facets { grid-template-columns: 1fr; } }
.facet-title {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

/* --- segment explorer ---------------------------------------------------- */
.seg-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 999px;
  cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips-reset {
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 12px;
  min-height: 32px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
}
.held { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* --- coverage ------------------------------------------------------------ */
.cov-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grid); }
.cov-row:last-child { border-bottom: 0; }
.cov-row .who { flex: none; width: 130px; display: flex; align-items: center; gap: 7px; }
.cov-row .bar { flex: 1; height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.cov-row .bar > i { display: block; height: 100%; border-radius: 4px; }
.cov-row .fig { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); flex: none; }
.prov { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 12px; line-height: 1.7; }
.prov b { color: var(--ink); font-weight: 600; }

/* --- footer -------------------------------------------------------------- */
footer.page { margin-top: 34px; border-top: 1px solid var(--hairline); padding-top: 20px; }
footer.page h2 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
footer.page dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; }
footer.page dt { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
footer.page dd { margin: 0; font-size: 12.5px; color: var(--ink-2); max-width: 88ch; }
@media (max-width: 700px) { footer.page dl { grid-template-columns: 1fr; gap: 2px 0; } footer.page dd { margin-bottom: 10px; } }

.loading { opacity: 0.45; transition: opacity 150ms ease; }
.error { color: var(--series-8); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* A rate computed over very few legs must not look like a solid reading. */
.chart .thin-dot { fill: var(--surface); }
.legend .key.thin { background: transparent; border: 2px solid var(--ink-3); }
.cov-row .bar { max-width: 420px; }

/* --- logout: a quiet control at the very bottom of the page -------------- */
.logout { display: flex; justify-content: center; margin-top: 32px; }
.logout form { margin: 0; }
.logout button {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 20px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 6px;
  cursor: pointer;
}
.logout button:hover { color: var(--ink); border-color: var(--ink-2); }

/* --- login screen: same tokens, same wordmark, no external asset --------- */
.login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--page);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px 26px;
}
.login-brand img { height: 38px; width: auto; display: block; margin-bottom: 16px; }
.login-owner {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.login-owner b { display: block; color: var(--brand); font-weight: 600; letter-spacing: 0.10em; }
.login-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.login-sub { font-size: 13px; color: var(--ink-2); margin: 0 0 20px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.login-form input {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 11px;
}
.login-form input:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.login-form button {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #241a05;
  cursor: pointer;
}
.login-form button:hover { filter: brightness(1.06); }
.login-error {
  margin: 0 0 16px;
  padding: 9px 12px;
  border: 1px solid var(--warn-edge);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 6px;
  font-size: 13px;
}
.login-note {
  margin: 0 0 16px;
  padding: 9px 12px;
  border: 1px solid var(--hairline);
  background: var(--page);
  color: var(--ink-2);
  border-radius: 6px;
  font-size: 13px;
}
.login-foot { margin: 18px 0 0; font-size: 11px; color: var(--ink-3); text-align: center; }
