@font-face {
  font-family: system;
  src: local("Inter");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #203d34;
  --muted: #6b7a73;
  --green: #214d3e;
  --lime: #e5efc8;
  --paper: #f5f6f1;
  --line: #dce2d9;
  --white: #fff;
  --red: #a53834;
  --radius: 20px;
  font-family:
    system,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #87ad6a;
  outline-offset: 3px;
}
button {
  border: 0;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 38px 24px;
  background: #edf0e8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 15;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  margin: 0 0 46px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: var(--lime);
  font-size: 34px;
  font-weight: 700;
  width: 47px;
  height: 47px;
  border-radius: 14px;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand strong {
  font-size: 19px;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 550;
  font-size: 14px;
}
.nav a.active {
  background: var(--green);
  color: white;
}
.nav a:not(.active):hover {
  background: #e0e7dc;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.user-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #dbe3cf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 650;
}
.workspace {
  margin-left: 238px;
  padding: 30px 44px 60px;
  max-width: 1570px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 36px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #648a4d;
  display: inline-block;
  margin-right: 7px;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 10px;
  font-weight: 700;
  color: #6f8064;
  margin-bottom: 12px;
}
h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1.6px;
  font-weight: 620;
  margin: 0 0 12px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 630;
  margin: 0 0 8px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.entry-card {
  padding: 0;
  overflow: hidden;
}
.form-section {
  padding: 24px 27px;
  border-bottom: 1px solid #edf0e9;
}
.form-section:last-child {
  border: 0;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 630;
  font-size: 14px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eef2e6;
  color: #668344;
  font-size: 11px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.spread {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: #52665a;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  min-height: 46px;
  font-size: 16px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
input[readonly] {
  background: #f2f4ed;
  color: #65755e;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--red);
}
.field-error {
  color: var(--red);
  font-size: 12px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.preset {
  position: relative;
  min-height: 108px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preset:hover {
  border-color: #829b71;
  background: #f8faf5;
}
.preset.selected {
  border-color: var(--green);
  background: #f0f5e8;
  box-shadow: 0 0 0 1px var(--green);
}
.preset .preset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #668150;
}
.preset strong {
  font-size: 13px;
  font-weight: 620;
  line-height: 1.3;
  padding-right: 6px;
}
.preset small {
  color: var(--muted);
  font-size: 11px;
}
.preset .selected-check {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.preset.selected .preset-top span {
  margin-right: 25px;
}
.preset-footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.text-button {
  color: #526b48;
  background: none;
  padding: 4px 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button.danger {
  color: var(--red);
}
.btn {
  min-height: 44px;
  border-radius: 10px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #eaf0e1;
  color: var(--green);
  white-space: nowrap;
}
.btn.primary {
  background: var(--green);
  color: white;
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
}
.btn.danger {
  background: #f7e7e5;
  color: var(--red);
}
.btn.icon {
  padding: 10px;
  min-width: 44px;
}
.btn:hover {
  filter: brightness(0.97);
}
.btn.wide {
  width: 100%;
}
.switches {
  display: flex;
  gap: 24px;
  margin: 4px 0 22px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
}
.switch input {
  appearance: none;
  min-height: 0;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #dce3d7;
  padding: 2px;
  border: 0;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
.switch input:checked {
  background: var(--green);
}
.switch input:checked:before {
  transform: translateX(14px);
}
.route-summary {
  background: #f7f8f3;
  border-radius: 13px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.route-points {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}
.route-points:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  bottom: 10px;
  width: 1px;
  background: #a5b394;
}
.route-point {
  font-size: 13px;
  position: relative;
  overflow-wrap: anywhere;
}
.route-point:before {
  content: "";
  position: absolute;
  left: -20px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: #8d9e75;
  border: 1px solid #8d9e75;
  border-radius: 50%;
}
.route-point:last-child:before {
  background: var(--green);
  border-radius: 2px;
}
.distance-display {
  font-size: 34px;
  letter-spacing: -1.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.distance-display span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.summary-meta {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.inline-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0;
}
.hint-box {
  background: #f1f5e9;
  padding: 12px 15px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}
.details {
  border: 0;
}
.details > summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 13px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
}
.details > summary:before {
  content: "+";
  font-size: 18px;
  font-weight: 400;
}
.details[open] > summary:before {
  content: "−";
}
.details[open] > summary {
  margin-bottom: 12px;
}
.details p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
.save-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fcfdf9;
}
.save-section small {
  color: var(--muted);
  max-width: 210px;
  line-height: 1.6;
  font-size: 11px;
}
.save-section .btn {
  min-width: 160px;
}
.aside-stack {
  display: grid;
  gap: 18px;
}
.tip-card {
  background: var(--lime);
  border: 0;
  padding: 24px;
}
.tip-card .tip-icon {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 35px;
}
.tip-card h2 {
  font-size: 23px;
  font-weight: 570;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.tip-card p {
  font-size: 12px;
  color: #5e704b;
  line-height: 1.75;
  margin-bottom: 0;
}
.month-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 22px;
}
.stat-big {
  font-size: 37px;
  letter-spacing: -1.6px;
  font-weight: 550;
}
.stat-big span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.stat-row:first-of-type {
  margin-top: 20px;
}
.soft-note {
  display: flex;
  gap: 10px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.soft-note svg {
  width: 17px;
  min-width: 17px;
  margin-top: 1px;
}
.alert {
  border-radius: 11px;
  background: #fff1ea;
  color: #853d2d;
  border: 1px solid #efd5c8;
  padding: 14px 16px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.6;
}
.alert:empty {
  display: none;
}
.success {
  background: #edf6e6;
  border-color: #cddfc4;
  color: #355b32;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.stat-card .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat-card strong {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  background: #f9faf6;
}
td,
th {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0e9;
}
td {
  font-size: 12px;
}
tr:last-child td {
  border: 0;
}
td strong {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef3e7;
  color: #547141;
  white-space: nowrap;
}
.badge.private {
  background: #f5eee4;
  color: #906c3b;
}
.badge.inactive {
  background: #f0f0ed;
  color: #7c8077;
}
.badge.warn {
  background: #fff1db;
  color: #94672c;
}
.trip-route {
  max-width: 250px;
  overflow-wrap: anywhere;
}
.trip-cards {
  display: none;
}
.empty {
  text-align: center;
  padding: 46px 22px;
  background: white;
  border: 1px dashed #cbd6c0;
  border-radius: 18px;
  color: var(--muted);
}
.empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}
.empty h2 {
  color: var(--ink);
}
.empty p {
  font-size: 13px;
  max-width: 340px;
  margin: 10px auto 20px;
}
.setting-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 22px;
  background: #eaf0e4;
  max-width: 100%;
  overflow: auto;
}
.setting-tabs button {
  padding: 10px 17px;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.setting-tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 6px #233c3010;
}
.master-list {
  display: grid;
  gap: 12px;
}
.master-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.master-row h3 {
  margin: 0 0 5px;
}
.master-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.master-row.inactive {
  opacity: 0.65;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.help-card .details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.help-card .details:last-child {
  border: 0;
}
.help-card .details > summary {
  font-size: 14px;
}
.help-card p {
  font-size: 13px;
}
.help-intro {
  background: var(--lime);
  padding: 28px;
  border-radius: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.help-intro p {
  max-width: 570px;
  margin-bottom: 0;
  color: #587043;
  font-size: 13px;
}
.help-steps {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #4e693c;
  white-space: nowrap;
}
.help-steps b {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  background: #ffffff90;
  border-radius: 50%;
  margin-right: 5px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fafbf7;
}
.auth-story {
  background: var(--green);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story .brand-mark {
  background: var(--lime);
  color: var(--green);
}
.auth-story .brand small {
  color: #b4c5aa;
}
.auth-story h1 {
  font-size: 62px;
  line-height: 1.1;
  letter-spacing: -3px;
  font-weight: 500;
  max-width: 440px;
}
.auth-story p {
  color: #c3d2b8;
  max-width: 340px;
  font-size: 14px;
}
.auth-graphic {
  margin: 55px 0 35px;
  border: 1px solid #6f8b65;
  border-radius: 20px;
  background: #ffffff08;
  max-width: 370px;
  padding: 24px;
  transform: rotate(-3deg);
}
.auth-graphic .route-points:before {
  background: #a6bd89;
}
.auth-graphic .route-point:before {
  background: #e5efc8;
  border-color: #e5efc8;
}
.auth-graphic .route-point:last-child:before {
  background: #e5efc8;
}
.auth-foot {
  font-size: 11px;
  color: #afc09f;
  letter-spacing: 0.3px;
}
.auth-panel {
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 45px;
}
.auth-form {
  width: 360px;
  max-width: 100%;
}
.auth-form h1 {
  font-size: 31px;
  letter-spacing: -1px;
}
.auth-form .field {
  margin: 18px 0;
}
.auth-form .btn.wide {
  margin-top: 10px;
}
.auth-logo-mobile {
  display: none;
}
.initial-loading {
  height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  z-index: 80;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  box-shadow: 0 6px 30px #0002;
  font-size: 13px;
  max-width: 90vw;
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 600px;
  width: calc(100% - 28px);
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 25px 90px #16312033;
}
dialog::backdrop {
  background: #173c355c;
  backdrop-filter: blur(3px);
}
.dialog-body {
  padding: 28px;
  overflow: auto;
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 25px;
}
.dialog-body .grid {
  margin-top: 14px;
}
.dialog-body .field {
  margin-top: 8px;
}
.dialog-body p {
  font-size: 13px;
  color: var(--muted);
}
.search {
  margin-bottom: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.mt {
  margin-top: 16px;
}
.full-span {
  grid-column: 1/-1;
}
@media (min-width: 1450px) {
  .workspace {
    padding-left: 60px;
    padding-right: 60px;
  }
  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .form-section {
    padding: 27px 30px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  .workspace {
    margin-left: 200px;
    padding: 25px;
  }
  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 18px;
  }
  .card {
    padding: 20px;
  }
  .entry-card {
    padding: 0;
  }
  .form-section {
    padding: 22px;
  }
  .filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .help-intro {
    display: block;
  }
  .help-steps {
    margin-top: 20px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 49px;
  }
  .auth-panel {
    padding: 30px;
  }
}
@media (max-width: 850px) {
  .entry-layout {
    grid-template-columns: 1fr;
  }
  .aside-stack {
    grid-template-columns: 1fr 1fr;
  }
  .soft-note {
    display: none;
  }
  .tip-card .tip-icon {
    margin-bottom: 14px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    padding: 30px 22px;
  }
  .auth-logo-mobile {
    display: block;
    margin-bottom: 35px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    width: 100%;
    height: 68px;
    bottom: 0;
    top: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(68px + env(safe-area-inset-bottom));
    background: #f7f9f2;
  }
  .sidebar > .brand,
  .side-foot {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
    height: 68px;
    gap: 0;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 60px;
    padding: 8px 3px;
    font-size: 10px;
    border-radius: 0;
  }
  .nav a.active {
    background: transparent;
    color: var(--green);
  }
  .nav a.active svg {
    background: var(--lime);
    box-shadow: 0 0 0 7px var(--lime);
    border-radius: 4px;
  }
  .nav a:not(.active) {
    color: #7f897e;
  }
  .workspace {
    margin-left: 0;
    padding: 20px 16px calc(95px + env(safe-area-inset-bottom));
  }
  .topline {
    margin-bottom: 27px;
    font-size: 10px;
  }
  .topline .mobile-brand {
    font-weight: 700;
    color: var(--green);
    font-size: 15px;
    letter-spacing: -0.5px;
  }
  .page-head {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1.3px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.6;
  }
  .page-head > .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .form-section {
    padding: 20px 17px;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .grid.three > .field:first-child {
    grid-column: 1/-1;
  }
  .preset {
    min-height: 112px;
    padding: 13px;
  }
  .preset strong {
    font-size: 12px;
  }
  .preset small {
    font-size: 10px;
  }
  .preset-grid {
    gap: 9px;
  }
  .section-label {
    gap: 5px;
  }
  .section-label .muted {
    font-size: 10px;
  }
  .switches {
    gap: 20px;
  }
  .distance-display {
    font-size: 30px;
  }
  .route-summary {
    padding: 15px;
    gap: 10px;
  }
  .route-point {
    font-size: 12px;
  }
  .save-section {
    display: block;
  }
  .save-section small {
    display: none;
  }
  .save-section .btn {
    width: 100%;
    min-height: 49px;
  }
  .aside-stack {
    grid-template-columns: 1fr;
  }
  .aside-stack .tip-card {
    display: none;
  }
  .month-label {
    margin-bottom: 13px;
  }
  .stat-big {
    font-size: 30px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters > .field:last-child {
    grid-column: 1/-1;
  }
  .stats {
    gap: 8px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-card strong {
    font-size: 22px;
  }
  .stat-card .label {
    font-size: 9px;
  }
  .table-wrap {
    display: none;
  }
  .trip-cards {
    display: grid;
    gap: 12px;
  }
  .trip-card {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
  }
  .trip-card .trip-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 14px;
  }
  .trip-card .trip-card-route {
    font-weight: 550;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
  }
  .trip-card .trip-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
  }
  .trip-card .trip-card-foot strong {
    font-size: 21px;
    color: var(--ink);
    font-weight: 550;
  }
  .setting-tabs {
    width: 100%;
  }
  .setting-tabs button {
    flex: 1;
    padding: 9px 11px;
    font-size: 11px;
  }
  .master-row {
    padding: 17px;
  }
  .master-row h3 {
    font-size: 13px;
  }
  .master-row .row {
    gap: 4px;
  }
  .master-row .btn {
    padding: 9px;
    font-size: 11px;
  }
  .master-row p {
    font-size: 11px;
  }
  .help-intro {
    padding: 23px;
  }
  .help-steps {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .help-card {
    padding: 20px;
  }
  .help-card .details > summary {
    font-size: 13px;
  }
  .dialog-body {
    padding: 22px;
  }
  .dialog-body .grid {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  #toast {
    left: 50%;
    bottom: calc(83px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .auth-form {
    width: 100%;
  }
  .auth-panel {
    justify-content: stretch;
    max-width: 440px;
    width: 100%;
    margin: auto;
  }
  .auth-form h1 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
