/* Owners HQ. Line 1: station-name bands, one reserved yellow for the period you follow. */

:root {
  color-scheme: light;
  --ground: #f5f5f2;
  --raised: #ffffff;
  --ink: #1c1c1a;
  --ink-2: #4f4f4a;
  --ink-3: #6b6b64;
  --rule: #d6d5cf;
  --grid: #e4e3dd;
  --track: #e4e3dd;
  --line1: #f2b705;
  --on-line1: #1c1c1a;
  --wash: rgb(242 183 5 / 0.22);
  --run: #1c1c1a;
  --cmp: #85847b;
  --good: #1f7a45;
  --bad: #b42318;
  --warn: #8a5a00;
  --focus: #1c1c1a;
  --dt: #f2610a;
  --rr: #c0397a;
  --mt: #2a78d6;
  --nrg: #1baf7a;
  --hair: 1px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sign: "Jost", "Futura", "Century Gothic", var(--sans);
  --gutter: 16px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-resolution: 2dppx) {
  :root { --hair: 0.5px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #121211;
    --raised: #1c1c1a;
    --ink: #f1f0ea;
    --ink-2: #c2c1b9;
    --ink-3: #9a9991;
    --rule: #35342f;
    --grid: #262623;
    --track: #2c2b28;
    --wash: rgb(242 183 5 / 0.10);
    --run: #f2b705;
    --cmp: #6f6e67;
    --good: #5cc98a;
    --bad: #ff8f85;
    --warn: #f2c14e;
    --focus: #f1f0ea;
    --dt: #de5d1c;
    --rr: #b23a7a;
    --mt: #3987e5;
    --nrg: #26ad7f;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #121211;
  --raised: #1c1c1a;
  --ink: #f1f0ea;
  --ink-2: #c2c1b9;
  --ink-3: #9a9991;
  --rule: #35342f;
  --grid: #262623;
  --track: #2c2b28;
  --wash: rgb(242 183 5 / 0.10);
  --run: #f2b705;
  --cmp: #6f6e67;
  --good: #5cc98a;
  --bad: #ff8f85;
  --warn: #f2c14e;
  --focus: #f1f0ea;
  --dt: #de5d1c;
  --rr: #b23a7a;
  --mt: #3987e5;
  --nrg: #26ad7f;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule) transparent;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input { caret-color: var(--ink); accent-color: var(--ink); }
table { font-variant-numeric: tabular-nums; }
svg { display: block; }
[hidden] { display: none !important; }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.boot { padding: 48px var(--gutter); color: var(--ink-3); text-align: center; }

/* Station lettering: the one signature face. */
.station {
  font-family: var(--sign);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  line-height: 1.1;
}
.trim {
  display: block;
  height: 6px;
  border-radius: 1px;
  background: var(--u, var(--ink));
}
.u-dt { --u: var(--dt); }
.u-rr { --u: var(--rr); }
.u-mt { --u: var(--mt); }
.u-nrg { --u: var(--nrg); }
.s-dt { fill: var(--dt); }
.s-rr { fill: var(--rr); }
.s-mt { fill: var(--mt); }
.s-nrg { fill: var(--nrg); }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: var(--hair) solid var(--rule);
  padding: calc(env(safe-area-inset-top) + 6px) calc(env(safe-area-inset-right) + var(--gutter)) 10px calc(env(safe-area-inset-left) + var(--gutter));
}
.bar-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand status" "tabs tabs";
  align-items: center;
  row-gap: 6px;
}
.brand {
  grid-area: brand;
  justify-self: start;
  font-family: var(--sign);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
}
.status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -10px;
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.updated.stale { color: var(--warn); }
.updated .ic { width: 16px; height: 16px; }
.iconbtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}
.iconbtn:hover:not(:disabled) { background: var(--track); }
.iconbtn:disabled { color: var(--ink-3); }
.iconbtn.spin .ic { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs {
  grid-area: tabs;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 9px;
}
.tabs button {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] {
  background: var(--line1);
  color: var(--on-line1);
  font-weight: 650;
}

@media (min-width: 900px) {
  .bar { padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 10px; }
  .bar-in {
    grid-template-columns: 1fr minmax(0, 480px) 1fr;
    grid-template-areas: "brand tabs status";
    column-gap: 24px;
  }
  .status { justify-self: end; }
}

/* ---------------------------------------------------------------- page */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 calc(env(safe-area-inset-right) + var(--gutter)) 0 calc(env(safe-area-inset-left) + var(--gutter));
  transition: opacity 0.2s var(--ease);
}
.main:focus { outline: none; }
.main.is-loading { opacity: 0.55; }

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.notice .ic { color: var(--warn); }
.notice button { margin-left: auto; }

.textbtn {
  border: 0;
  background: transparent;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.textbtn:hover { text-decoration-thickness: 2px; }

/* Period heading and stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
}
.stepper-text { min-width: 0; }
.period-name { font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.period-sub { margin-top: 2px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stepper-nav { margin-left: auto; display: flex; align-items: center; margin-right: -10px; }
.stepper-nav .textbtn { margin-right: 4px; font-weight: 500; }

/* The combined figure, at sign scale */
.figure {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(3.4rem, 17.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
}
.figure.long { font-size: clamp(3.2rem, 14.5vw, 6rem); }
.figure .cents { font-size: 0.42em; letter-spacing: 0; color: var(--ink-3); margin-left: 0.04em; }

.deltas { list-style: none; padding: 0; display: grid; gap: 6px; }
.delta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.delta .ic { width: 16px; height: 16px; stroke-width: 2.2; align-self: center; color: var(--good); }
.delta.down .ic { color: var(--bad); }
.d-amt { font-weight: 650; }
.d-vs { color: var(--ink-2); }
.nw { white-space: nowrap; }
@media (max-width: 619px) {
  .d-vs { flex-basis: 100%; padding-left: 24px; }
}
.delta.none { color: var(--ink-3); font-size: 14px; }
.gapnote { margin-top: 10px; font-size: 13px; color: var(--ink-3); max-width: 60ch; }

/* Goal bars */
.goal { display: grid; gap: 7px; }
.goal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.goal-row b { color: var(--ink); font-weight: 650; }
.goal-cap { font-size: 13px; color: var(--ink-3); }
.meter {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--track);
}
.meter .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--w, 0) * 100%);
  border-radius: 4px;
  background: var(--u, var(--ink));
}
.meter .tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: calc(var(--t, 0) * 100%);
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ground);
}
.group-goal { margin-top: 24px; padding-top: 18px; border-top: var(--hair) solid var(--rule); }

/* ---------------------------------------------------------------- overview grid */
.top { display: grid; gap: 8px; }
.share { padding-top: 28px; }
.h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
.share .h2 { margin-bottom: 4px; }
.donut { position: relative; max-width: 420px; margin: 0 auto; }
.donut-svg { width: 100%; height: auto; overflow: visible; }
.dn-slice { transition: opacity 0.2s var(--ease); cursor: pointer; }
.dn-slice.dim { opacity: 0.28; }
.dn-name { font: 400 14px var(--sans); fill: var(--ink-2); }
.dn-pct { font: 650 17px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.dn-big { font: 600 34px var(--sans); fill: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dn-small { font: 400 13px var(--sans); fill: var(--ink-3); }
.ring-empty { fill: none; stroke: var(--track); stroke-width: 30; }
@media (max-width: 619px) {
  .ring-empty { stroke-width: 24; }
  .dn-big { font-size: 27px; }
}

/* Station bands: one per business, they are also the chart legend */
.lines { margin-top: 20px; border-top: var(--hair) solid var(--rule); }
.band {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  gap: 10px;
  padding: 18px 0 20px;
  color: inherit;
  text-decoration: none;
  border-bottom: var(--hair) solid var(--rule);
  transition: opacity 0.2s var(--ease);
}
.band.dim { opacity: 0.4; }
.band-head { display: flex; align-items: baseline; gap: 10px; }
.band-share { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.band-head .ic { align-self: center; color: var(--ink-3); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.band:hover .band-head .ic, .band:focus-visible .band-head .ic { transform: translateX(3px); color: var(--ink); }
.band:hover .station { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.band-amt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.band .delta { font-size: 14px; }
.band .goal { margin-top: 4px; align-self: end; }

@media (min-width: 620px) {
  .lines { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
  .band { border-bottom: 0; border-top: var(--hair) solid var(--rule); padding-top: 20px; }
}
@media (min-width: 900px) {
  .top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .share { padding-top: 6px; }
  .lines { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; margin-top: 36px; }
  .band { border-top: 0; padding-top: 0; }
  .figure { margin-top: 14px; }
}

/* ---------------------------------------------------------------- trend chart */
.section { margin-top: 44px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.seg button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); font-weight: 600; }
.section-head .textbtn { margin-left: auto; font-weight: 500; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 12px;
}
.key {
  display: inline-grid;
  justify-items: start;
  gap: 5px;
  font-family: var(--sign);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.key i { display: block; width: 100%; min-width: 24px; height: 3px; border-radius: 1px; background: var(--u, var(--ink)); }
.key.run i { background: var(--run); }
.key.cmp i { background: var(--cmp); }
.sw { width: 10px; height: 10px; border-radius: 2px; background: var(--u, var(--ink)); }
.sw.line { width: 16px; height: 3px; border-radius: 2px; }
.sw.run { background: var(--run); }
.sw.cmp { background: var(--cmp); }

.chart { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; min-height: 220px; }
.chart svg { width: 100%; overflow: visible; }
.c-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.c-base { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.c-ylab, .c-xlab { font: 400 11.5px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.c-run { fill: none; stroke: var(--run); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-cmp { fill: none; stroke: var(--cmp); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-wash { fill: var(--wash); }
.c-now { fill: var(--line1); stroke: var(--ground); stroke-width: 2.5; }
.c-endlab { font: 650 12.5px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--ground); stroke-width: 4px; stroke-linejoin: round; }
.c-cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.c-dot { stroke: var(--ground); stroke-width: 2; }
.c-dot.run { fill: var(--run); }
.c-dot.cmp { fill: var(--cmp); }
.c-bar { transition: opacity 0.15s var(--ease); }
.c-bar.dim { opacity: 0.35; }
.c-bar.u { fill: var(--u, var(--ink)); }
.c-hit { fill: transparent; }

.tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 168px;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised);
  font-size: 13px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.tip-t { font-weight: 650; margin-bottom: 4px; }
.tip-r { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.tip-r b { margin-left: auto; padding-left: 12px; font-weight: 600; }
.tip-r.total { margin-top: 3px; padding-top: 3px; border-top: var(--hair) solid var(--rule); }
.tip-r small { color: var(--ink-3); font-size: 12px; }

.tablewrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 6px; }
.tbl th {
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.tbl td {
  padding: 10px 8px 10px 0;
  border-bottom: var(--hair) solid var(--rule);
  vertical-align: top;
}
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tbody th { font-size: inherit; font-weight: 400; color: var(--ink); white-space: nowrap; border-bottom: var(--hair) solid var(--rule); padding: 10px 8px 10px 0; }
.tbl { font-variant-numeric: tabular-nums; }
@media (max-width: 519px) {
  .tbl { font-size: 13px; }
  .tbl .wd { display: none; }
  .tbl th, .tbl td, .tbl tbody th { padding-right: 0; padding-left: 5px; }
  .tbl tr > :first-child { padding-left: 0; }
}
.tbl th.num { text-align: right; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl tfoot td { font-weight: 650; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- one business */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 14px 0 0 -6px;
  padding: 8px 8px 8px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
}
.back:hover { color: var(--ink); }
.station-head { display: grid; gap: 10px; padding-top: 12px; }
.station-head .station { font-size: 24px; letter-spacing: 0.12em; }
.station-head .trim { height: 8px; }
.station-full { font-size: 14px; color: var(--ink-2); }
.unit-goal { margin-top: 24px; padding-top: 18px; border-top: var(--hair) solid var(--rule); }
.split { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }
.split b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-top: var(--hair) solid var(--rule);
}
.stats > div { padding: 14px 0; border-bottom: var(--hair) solid var(--rule); }
.stats > div:nth-child(odd) { padding-right: 12px; }
.stats > div:nth-child(even) { padding-left: 16px; border-left: var(--hair) solid var(--rule); }
.stats dt { font-size: 13px; color: var(--ink-2); }
.stats dd { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .unit-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .stats { margin-top: 0; }
}

.catlist { list-style: none; padding: 0; display: grid; gap: 16px; }
.cat-row { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.cat-row b { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.catbar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--track); position: relative; }
.catbar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--w, 0) * 100%);
  min-width: 2px;
  border-radius: 3px;
  background: var(--u, var(--ink));
}
.catbar.zero i { display: none; }
.cat-delta { margin-top: 5px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-delta b { font-weight: 600; color: var(--ink-2); }

.p-title { display: block; font-weight: 500; overflow-wrap: anywhere; }
.p-cat { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }

@media (min-width: 900px) {
  .unit-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 48px; align-items: start; }
}

/* ---------------------------------------------------------------- footer */
.foot {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 18px calc(env(safe-area-inset-right) + var(--gutter)) calc(env(safe-area-inset-bottom) + 28px) calc(env(safe-area-inset-left) + var(--gutter));
  border-top: var(--hair) solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
  display: grid;
  gap: 10px;
}
.foot p { max-width: 72ch; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.foot .textbtn { font-weight: 500; font-size: 13px; color: var(--ink-2); padding: 8px 0; }

/* ---------------------------------------------------------------- skeleton and errors */
.skel { padding-top: 24px; }
.skel i {
  display: block;
  border-radius: 6px;
  background: var(--track);
  animation: pulse 1.4s ease-in-out infinite;
}
.skel .s1 { width: 42%; height: 20px; }
.skel .s2 { width: 72%; height: 72px; margin-top: 20px; }
.skel .s3 { width: 58%; height: 16px; margin-top: 18px; }
.skel .s4 { width: 100%; height: 160px; margin-top: 36px; }
@keyframes pulse { 50% { opacity: 0.5; } }
.problem { padding: 56px 0; max-width: 46ch; }
.problem h1 { font-size: 19px; font-weight: 650; }
.problem p { margin-top: 8px; color: var(--ink-2); }
.problem .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- sign in */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: calc(env(safe-area-inset-top) + 32px) var(--gutter) calc(env(safe-area-inset-bottom) + 32px);
}
.login-in { width: 100%; max-width: 360px; }
.login-sign { display: grid; gap: 12px; margin-bottom: 40px; }
.login-sign .station { font-size: 26px; letter-spacing: 0.16em; font-weight: 500; }
.login-sign .trim { height: 8px; }
.trim-all { display: flex; gap: 3px; background: none; }
.trim-all i { flex: 1; border-radius: 1px; background: var(--u); }
.login h1 { font-size: 19px; font-weight: 650; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.15s var(--ease);
}
.field input:hover { border-color: var(--ink-3); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.err { min-height: 20px; margin: 2px 0 10px; font-size: 14px; color: var(--bad); }
.btn {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--ground);
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.15s var(--ease);
}
.btn:hover:not(:disabled) { opacity: 0.88; }
.btn:disabled { opacity: 0.55; }
.btn.wide { width: 100%; }
.login-fine { margin-top: 28px; font-size: 13px; color: var(--ink-3); max-width: 40ch; }

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