/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-sky-600: oklch(58.8% 0.158 241.966);
    --color-sky-700: oklch(50% 0.134 242.749);
    --color-rose-50: oklch(96.9% 0.015 12.422);
    --color-rose-200: oklch(89.2% 0.058 10.001);
    --color-rose-700: oklch(51.4% 0.222 16.935);
    --color-slate-50: oklch(98.4% 0.003 247.858);
    --color-slate-200: oklch(92.9% 0.013 255.508);
    --color-slate-400: oklch(70.4% 0.04 256.788);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --color-slate-900: oklch(20.8% 0.042 265.755);
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -0.025em;
    --tracking-wide: 0.025em;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .mx-auto {
    margin-inline: auto;
  }
  .mt-1 {
    margin-top: var(--spacing);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-5 {
    margin-top: calc(var(--spacing) * 5);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mb-1 {
    margin-bottom: var(--spacing);
  }
  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .table {
    display: table;
  }
  .h-14 {
    height: calc(var(--spacing) * 14);
  }
  .h-20 {
    height: calc(var(--spacing) * 20);
  }
  .min-h-12 {
    min-height: calc(var(--spacing) * 12);
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-14 {
    width: calc(var(--spacing) * 14);
  }
  .w-auto {
    width: auto;
  }
  .w-full {
    width: 100%;
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .items-start {
    align-items: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-rose-200 {
    border-color: var(--color-rose-200);
  }
  .border-slate-200 {
    border-color: var(--color-slate-200);
  }
  .bg-rose-50 {
    background-color: var(--color-rose-50);
  }
  .bg-sky-600 {
    background-color: var(--color-sky-600);
  }
  .bg-slate-50 {
    background-color: var(--color-slate-50);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .bg-white\/10 {
    background-color: color-mix(in srgb, #fff 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
    }
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-10 {
    padding-block: calc(var(--spacing) * 10);
  }
  .text-center {
    text-align: center;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .text-rose-700 {
    color: var(--color-rose-700);
  }
  .text-slate-400 {
    color: var(--color-slate-400);
  }
  .text-slate-500 {
    color: var(--color-slate-500);
  }
  .text-slate-900 {
    color: var(--color-slate-900);
  }
  .text-white {
    color: var(--color-white);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .underline {
    text-decoration-line: underline;
  }
  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  @media (hover: hover) {
    .hover\:bg-sky-700:hover {
      background-color: var(--color-sky-700);
    }
    .hover\:bg-white\/20:hover {
      background-color: color-mix(in srgb, #fff 20%, transparent);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-white\/20:hover {
        background-color: color-mix(in oklab, var(--color-white) 20%, transparent);
      }
    }
  }
  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }
  .disabled\:opacity-60:disabled {
    opacity: 60%;
  }
  @media (width >= 40rem) {
    .sm\:mx-auto {
      margin-inline: auto;
    }
    .sm\:w-full {
      width: 100%;
    }
    .sm\:max-w-sm {
      max-width: var(--container-sm);
    }
    .sm\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sm\:p-8 {
      padding: calc(var(--spacing) * 8);
    }
  }
  @media (width >= 64rem) {
    .lg\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --ink: #172033;
  --muted: #64748b;
  --light: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --navy: #0f2942;
  --navy-hover: #163a59;
  --brand: #0284c7;
  --brand-hover: #0369a1;
  --brand-soft: #f0f9ff;
  --good: #059669;
  --good-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #e11d48;
  --bad-soft: #fff1f2;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.04),
    0 1px 3px rgb(15 23 42 / 0.04);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04),
    0 4px 14px rgb(15 23 42 / 0.05);
  color-scheme: light;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 56px;
}
html, body, button, input, textarea, select, label {
  touch-action: manipulation;
}
button, input, textarea, select {
  font: inherit;
}
button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button:not(:disabled) {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
main.wrap {
  padding-top: 8px;
  padding-bottom: 28px;
}
.top {
  display: contents;
}
.cols {
  display: block;
}
.stops {
  display: block;
}
.sumgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "w" "r" "a";
  gap: 0;
}
.sumgrid > .sw {
  grid-area: w;
  min-width: 0;
}
.sumgrid > .sr {
  grid-area: r;
  min-width: 0;
}
.sumgrid > .sa {
  grid-area: a;
  min-width: 0;
}
main.v-history {
  max-width: 1200px;
}
main.v-settings {
  max-width: 1000px;
}
header {
  background: var(--navy);
  color: #ffffff;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 14px;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}
header small {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}
#saved {
  color: #7dd3fc;
  font-weight: 600;
}
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav .wrap {
  display: flex;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
nav .wrap::-webkit-scrollbar {
  display: none;
}
nav button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, transform 100ms ease;
}
nav button:hover {
  background: #f1f5f9;
  color: var(--ink);
}
nav button:active {
  transform: scale(0.98);
}
nav button[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.card {
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.card:first-child {
  margin-top: 12px;
}
h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hint {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.f {
  display: block;
  margin-top: 16px;
}
.f > span, .pst > small {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 17px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
input:hover, textarea:hover, select:hover {
  border-color: #94a3b8;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.12);
}
input::placeholder, textarea::placeholder {
  color: #94a3b8;
}
textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.segs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}
.seg-b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface-alt);
  color: #475569;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.seg-b:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: #bae6fd;
}
.seg-b:active {
  transform: scale(0.98);
}
.seg-b[aria-pressed="true"] {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgb(2 132 199 / 0.18), 0 4px 10px rgb(2 132 199 / 0.12);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgb(2 132 199 / 0.2), 0 3px 8px rgb(2 132 199 / 0.12);
}
.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn.danger {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: #fecdd3;
}
.btn.danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}
.btn.sm {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}
.btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.step {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}
.step button {
  min-height: 50px;
  padding: 0;
  background: var(--surface-alt);
  color: #475569;
  border: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}
.step button:first-child {
  border-right: 1px solid var(--line);
}
.step button:last-child {
  border-left: 1px solid var(--line);
}
.step button:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.step button:active {
  background: #e0f2fe;
}
.step input {
  min-width: 0;
  min-height: 50px;
  padding: 6px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
.step input:hover, .step input:focus {
  border: 0;
  box-shadow: none;
}
.tot {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.tot b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.chips button {
  min-height: 34px;
  padding: 6px 11px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.chips button:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: #bae6fd;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tt {
  min-height: 48px;
  padding: 8px 13px;
  text-align: left;
  background: #ffffff;
  color: #475569;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.tt:hover {
  background: #f8fafc;
  border-color: var(--line-strong);
}
.tt small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.tt[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: #7dd3fc;
}
.tt[aria-pressed="true"] small {
  color: var(--brand);
}
.prow {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.prow:last-child {
  border-bottom: 0;
}
.phead {
  display: block;
  margin-bottom: 12px;
}
.phead .stop {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}
.phead .stop b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.phead small {
  margin-left: 0;
  color: var(--light);
  font-size: 12px;
  font-weight: 500;
}
.abrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 12px;
}
.abrow b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.abrow .neg b {
  color: var(--bad);
}
.pgrid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}
.gh {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}
.gh small {
  display: block;
}
.cl {
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}
.ci {
  color: var(--muted);
  text-align: center;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pgrid .step {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}
.pgrid .step button {
  min-height: 46px;
  font-size: 21px;
}
.pgrid .step input {
  min-height: 46px;
  padding: 4px 2px;
  font-size: 18px;
}
.tw {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mini {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  color: #334155;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.mini th, .mini td {
  padding: 11px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mini th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mini th:first-child {
  border-radius: 8px 0 0 8px;
}
.mini th:last-child {
  border-radius: 0 8px 8px 0;
}
.mini th:first-child, .mini td:first-child {
  text-align: left;
}
.mini tbody tr {
  transition: background 150ms ease;
}
.mini tbody tr:hover {
  background: #f8fafc;
}
.mini .bad, .bad {
  color: var(--bad);
  font-weight: 700;
}
.msg {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #fde68a;
  border-radius: 11px;
  font-size: 14px;
}
.ok {
  color: var(--good) !important;
  font-weight: 700;
}
.rep {
  margin-top: 16px;
  padding: 24px;
  background: #ffffff;
  color: #172033;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.rep h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.rep .sm {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}
.rep h4 {
  margin: 24px 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.rep table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rep th {
  padding: 8px;
  color: #64748b;
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}
.rep td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.rep th:first-child, .rep td:first-child {
  text-align: left;
}
.rep .big {
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.rep .notes {
  margin-top: 6px;
  padding: 12px;
  white-space: pre-wrap;
  background: #f8fafc;
  border-radius: 10px;
}
.v-history > .card:first-child {
  margin-top: 16px;
}
.v-history .card {
  box-shadow: var(--shadow-sm);
}
.v-history .card h2 {
  font-size: 19px;
}
.hist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}
.hist:last-child {
  border-bottom: 0;
}
.hist:hover {
  background: #f8fafc;
}
.hist b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.hist small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.v-history .grid > div {
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.v-history .grid > div:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.v-settings textarea {
  background: #ffffff;
}
.v-settings .card + .card {
  margin-top: 16px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  background: #172033;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 11px;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.22);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
button:focus-visible {
  outline: 3px solid rgb(14 165 233 / 0.25);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  body {
    padding-bottom: 40px;
  }
  main.wrap {
    max-width: 1200px;
    padding-top: 14px;
  }
  .top {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) max(24px, env(safe-area-inset-right, 0px)) 8px max(24px, env(safe-area-inset-left, 0px));
    background: rgb(15 41 66 / 0.98);
    color: #ffffff;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 4px 20px rgb(15 23 42 / 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .top header {
    min-width: 0;
    padding: 0;
    background: transparent;
  }
  .top header .wrap {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .top header h1 {
    font-size: 19px;
  }
  .top header small {
    font-size: 11px;
  }
  .top nav {
    position: static;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }
  .top nav .wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .top nav button {
    min-height: 38px;
    padding: 7px 13px;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
  }
  .top nav button:hover {
    background: rgb(255 255 255 / 0.08);
    color: #ffffff;
  }
  .top nav button[aria-pressed="true"] {
    background: #ffffff;
    color: var(--navy);
  }
  .cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "run fuel" "run oil" "notes notes";
    gap: 0 16px;
    align-items: start;
  }
  .c-run {
    grid-area: run;
  }
  .c-fuel {
    grid-area: fuel;
  }
  .c-oil {
    grid-area: oil;
  }
  .c-notes {
    grid-area: notes;
  }
  .stops {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .sumgrid {
    grid-template-columns: minmax(0, 780px) minmax(280px, 1fr);
    grid-template-areas: "r w" "r a";
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-content: start;
  }
  .sumgrid > .sa {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  main.v-history {
    max-width: 1280px;
  }
  .v-history {
    padding-bottom: 50px;
  }
}
@media (max-height: 520px) {
  header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 7px);
    padding-bottom: 7px;
  }
  header h1 {
    font-size: 18px;
  }
  nav .wrap {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  nav button {
    min-height: 38px;
    padding: 6px 10px;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  .wrap {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  main.wrap {
    padding-top: 2px;
  }
  header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: 11px;
  }
  header .wrap {
    gap: 6px;
  }
  header h1 {
    font-size: 19px;
  }
  header small {
    font-size: 11px;
  }
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(255 255 255 / 0.97);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -5px 20px rgb(15 23 42 / 0.07);
  }
  nav .wrap {
    max-width: none;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 2px;
    overflow: visible;
  }
  nav button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 7px 2px;
    color: #64748b;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: normal;
  }
  nav button[aria-pressed="true"] {
    background: var(--brand-soft);
    color: var(--brand-hover);
  }
  #toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  }
  .card {
    margin-top: 10px;
    padding: 15px;
    border-radius: 14px;
  }
  .card:first-child {
    margin-top: 8px;
  }
  h2 {
    font-size: 17px;
  }
  .hint {
    font-size: 13px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  input, textarea, select {
    min-height: 48px;
    font-size: 16px;
  }
  .segs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seg-b {
    font-size: 13px;
  }
  .step {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
  .pgrid {
    grid-template-columns: 51px minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 7px;
  }
  .pgrid .step {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }
  .pgrid .step button {
    min-height: 44px;
    font-size: 20px;
  }
  .pgrid .step input {
    min-height: 44px;
    padding: 3px 0;
    font-size: 17px;
  }
  .cl {
    font-size: 12px;
  }
  .phead .stop b {
    font-size: 16px;
  }
  .abrow {
    gap: 3px 10px;
    font-size: 11px;
  }
  .abrow b {
    font-size: 15px;
  }
  .mini {
    font-size: 12px;
  }
  .mini th, .mini td {
    padding: 8px 6px;
  }
  .rep {
    margin-top: 10px;
    padding: 16px;
    border-radius: 14px;
  }
  .rep h3 {
    font-size: 23px;
  }
  .rep .sm {
    font-size: 12px;
  }
  .rep table {
    font-size: 12px;
  }
  .rep th {
    padding: 6px 4px;
    font-size: 9px;
  }
  .rep td {
    padding: 7px 4px;
  }
  .rep .big {
    font-size: 30px;
  }
  .hist {
    align-items: flex-start;
    padding: 13px 2px;
  }
}
@media (max-width: 520px) {
  .rep .trip {
    font-size: 11px;
  }
  .rep .trip th, .rep .trip td {
    padding: 6px 2px;
    white-space: nowrap;
  }
  .rep .trip td:first-child {
    min-width: 62px;
    white-space: normal;
  }
  .rep .trip th:last-child, .rep .trip td:last-child {
    display: none;
  }
  .btns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .pgrid {
    grid-template-columns: 45px minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
  }
  .pgrid .step {
    grid-template-columns: 33px minmax(0, 1fr) 33px;
  }
  .pgrid .step input {
    font-size: 15px;
  }
  nav button {
    font-size: 10px;
  }
}
@media (max-width: 700px) and (max-height: 520px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  nav button {
    min-height: 38px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  #toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 62px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media print {
  body {
    background: #ffffff;
    padding: 0;
  }
  .top, .btns, #toast {
    display: none !important;
  }
  main.wrap {
    max-width: none;
    padding: 0;
  }
  .card, .rep {
    box-shadow: none;
  }
  .rep {
    border: 0;
    margin: 0;
    padding: 0;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
    }
  }
}
