/* The owner portal (portal.html, portal-login.html): one left-aligned column, read top to
   bottom like a printed report, for an owner checking fuel on a phone. Light only. Nothing
   under 18px. Colour is spent on the status sentence and the fuel, nowhere else. */
:root {
  --paper: #FFFFFF; --ink: #101B33; --soft: #3D4660; --rule: #C9CDD6; --wash: #F1F3F7;
  --fuel: #F0A81C; --fine: #17603A; --act: #AD2E0B; --desk: #E4E7ED;
  --face: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Verdana, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--face);
  font-size: 20px; line-height: 1.35; }
[hidden] { display: none !important; }
.app { max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--paper);
  padding: calc(22px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px))
           calc(40px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 4px solid var(--fuel); outline-offset: 2px; }

.station { color: var(--soft); }
.loading, .problem { margin-top: 18px; }
.problem { color: var(--act); font-weight: 700; }

/* the status sentence */
.status { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.status__icon { flex: 0 0 auto; width: 44px; height: 44px; margin-top: 2px; }
.status__icon--fine { color: var(--fine); }
.status__icon--attention { color: var(--act); }
.status__icon--no_reading { color: var(--soft); }
.status h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.status--attention h1 { color: var(--act); }
.read { margin: 8px 0 0 58px; font-size: 19px; color: var(--soft); }
.problems { margin: 12px 0 0 58px; padding: 0 0 0 22px; font-size: 20px; }
.problems li + li { margin-top: 6px; }
.rule { border: 0; border-top: 3px solid var(--ink); margin: 22px 0 0; }

/* a tank */
.tank { display: block; width: 100%; padding: 18px 0 14px; border: 0; background: none; text-align: left;
  text-decoration: none; color: inherit; }
.tank + .tank { border-top: 2px solid var(--rule); }
.tank__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tank__name { font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.verdict { font-size: 21px; font-weight: 700; white-space: nowrap; }
.verdict--ok { color: var(--fine); }
.verdict--bad { color: var(--act); }
.verdict--old, .verdict--none { color: var(--soft); }
.tank__left { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; margin-top: 4px;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tank__left small { font-size: 21px; font-weight: 400; }
.bar { display: block; position: relative; height: 30px; margin-top: 10px; border: 3px solid var(--ink);
  border-radius: 8px; background: var(--paper); overflow: hidden; }
.bar__fuel { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fuel); }
.bar__fuel--bad { background: var(--act); }
.bar__fuel--old { background: var(--rule); }
.bar__line { position: absolute; top: 0; bottom: 0; border-left: 3px dashed var(--ink); }
.tank__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--soft); }
.tank__ends b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tank__more { display: block; margin-top: 8px; font-size: 19px; text-decoration: underline; color: var(--soft); }

/* the two lookups, and the station list */
.go { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 84px; margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 12px;
  background: var(--wash); text-align: left; text-decoration: none; }
.go:active { background: var(--rule); }
.go small { display: block; font-size: 19px; color: var(--soft); }
.go b { display: block; font-size: 23px; overflow-wrap: anywhere; }
.go small.go__bad { color: var(--act); font-weight: 700; }
.icon { flex: 0 0 auto; width: 30px; height: 30px; }
.icon, .status__icon { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px 0 12px;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); font-size: 21px;
  font-weight: 700; text-decoration: none; }
.title { margin-top: 20px; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; }
.quiet { min-height: 52px; padding: 0; border: 0; background: none; font-size: 20px;
  text-decoration: underline; color: var(--soft); display: inline-flex; align-items: center; }
.foot form { margin: 0; }

/* lists */
h2 { font-size: 25px; margin: 26px 0 2px; }
.when { font-size: 19px; color: var(--soft); margin-bottom: 6px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0;
  border-top: 2px solid var(--rule); font-size: 22px; }
.row--first { border-top: 0; }
.row b { font-size: 26px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row small { display: block; font-size: 19px; color: var(--soft); }
.row--total { border-top: 3px solid var(--ink); font-weight: 700; }
.note { margin-top: 18px; font-size: 19px; color: var(--soft); }
.more { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 60px; margin-top: 24px;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); font-size: 21px; font-weight: 700; }

/* charts */
.chart { margin-top: 14px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--face); fill: var(--ink); }
.chart .dim { fill: var(--soft); }
.chart .strong { font-weight: 700; }
.c-axis { stroke: var(--ink); stroke-width: 3; }
.c-full { stroke: var(--rule); stroke-width: 2; }
.c-dash { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; }
.c-area { fill: var(--fuel); opacity: .35; }
.c-level { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.c-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.c-bar { fill: var(--fuel); stroke: var(--ink); stroke-width: 2; }
.c-bar--on { fill: var(--ink); }
.c-hit { fill: transparent; cursor: pointer; }
.picked { margin-top: 6px; padding: 16px; border-radius: 12px; background: var(--wash); }
.picked h3 { font-size: 23px; }

/* sign in */
.signin__title { font-size: 34px; line-height: 1.1; margin-top: 6px; }
.signin__form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 21px; font-weight: 700; }
.field input { height: 62px; border: 3px solid var(--ink); border-radius: 10px; padding: 0 14px;
  font: inherit; font-size: 23px; font-weight: 400; color: var(--ink); background: var(--paper); }
.primary { height: 66px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper);
  font-size: 24px; font-weight: 700; }
.login__error { padding: 12px 14px; border-radius: 10px; border: 3px solid var(--act); color: var(--act);
  font-weight: 700; }

@media (min-width: 700px) {
  .app { margin: 24px auto; min-height: 0; border-radius: 14px; padding-top: 30px; }
}
