:root {
  --page: #14151a;
  --card: #191b22;
  --card-hi: #23262f;
  --input: #23262f;
  --border: #34384a;
  --border-ui: #6b7080;
  --text: #cfd4e3;
  --strong: #eef0f6;
  --muted: #cbd0dd;
  --faint: #b8bfcf;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-text: #b4bdf3;
  --accent-border: #9aa4e6;
  --danger: #fca5a5;
  --ok: #4ade80;
  --warn: #fbbf24;
  --sky: #7dd3fc;
  --sos: #991b1b;
  --sos-hot: #b91c1c;
  --sos-edge: #fca5a5;
  --radius: 12px;
  --gutter: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 15px/1.5 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--accent-text);
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + var(--gutter)) calc(env(safe-area-inset-bottom) + 16px) calc(env(safe-area-inset-left) + var(--gutter));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
}

.brand img {
  border-radius: 8px;
}

.brand b {
  color: var(--accent-text);
  font-weight: 600;
}

main {
  flex: 1;
  outline: none;
}

.foot {
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--strong);
  margin: 12px 0 4px;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--strong);
  margin: 20px 0 8px;
}

p {
  margin: 8px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.pad {
  padding: 16px 0;
}

.err {
  color: var(--danger);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 0 8px;
}

a.card, button.card {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  min-height: 64px;
}

a.card:hover, button.card:hover, a.card:focus-visible {
  background: var(--card-hi);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  color: var(--strong);
}

.chev {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.card-desc {
  padding-left: 20px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--muted);
  display: inline-block;
}

.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }
.dot.sky { background: var(--sky); }
.dot.acc { background: var(--accent-text); }

.linkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  margin: 8px 0 12px;
  font-size: 14px;
}

.linkbar .grow {
  flex: 1;
}

.org {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.problem {
  color: var(--warn);
  font-size: 13px;
  margin: -4px 0 12px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-ui);
  background: var(--card-hi);
  color: var(--strong);
  font: 500 15px/1.2 Poppins, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.btn:hover {
  border-color: var(--accent-border);
}

.btn:disabled {
  opacity: .55;
  cursor: default;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.link {
  background: none;
  border: 0;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.row.end {
  justify-content: flex-end;
}

.row > .grow {
  flex: 1;
}

.stack > * + * {
  margin-top: 12px;
}

label.f {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 6px;
}

input[type=text], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-ui);
  background: var(--input);
  color: var(--strong);
  font: 16px/1.4 Poppins, system-ui, sans-serif;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.key-field {
  min-height: 132px;
  resize: none;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.key-masked {
  -webkit-text-security: disc;
}

input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-ui);
  background: var(--input);
  text-align: center;
  font-size: 14px;
  cursor: pointer;
}

.seg input:checked + span {
  border-color: var(--accent-border);
  background: var(--accent);
  color: #fff;
}

.seg input:focus-visible + span {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.seg .s-warning input:checked + span {
  background: #78350f;
  border-color: var(--warn);
}

.seg .s-danger input:checked + span {
  background: #7f1d1d;
  border-color: var(--danger);
}

.sos-wrap {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding: 10px var(--gutter) calc(env(safe-area-inset-bottom) + 6px);
  background: linear-gradient(to bottom, rgba(20, 21, 26, 0), var(--page) 18px);
}

.sos-wrap .sos-state {
  margin: 6px 0 0;
  text-align: center;
}

.sos {
  width: 100%;
  min-height: 64px;
  border-radius: 14px;
  border: 2px solid var(--sos-edge);
  background: var(--sos);
  color: #fff;
  font: 600 18px/1.2 Poppins, system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  position: relative;
  overflow: hidden;
}

.sos .fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--sos-hot);
  pointer-events: none;
}

.sos .lbl {
  position: relative;
}

.sos.holding .fill {
  width: 100%;
  transition: width 2s linear;
}

.sos-state {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}

.notice {
  border-left: 3px solid var(--warn);
  background: var(--card);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  margin: 12px 0;
}

.notice.info {
  border-left-color: var(--accent-border);
}

.notice.bad {
  border-left-color: var(--danger);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.list button.item {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
}

.item .name {
  flex: 1;
  color: var(--strong);
}

.item .meta, .h-meta {
  font-size: 12px;
  color: var(--muted);
}

.h-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.h-row .grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.st {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid var(--border-ui);
  white-space: nowrap;
}

.st.QUEUED { color: var(--warn); border-color: var(--warn); }
.st.SENT { color: var(--sky); border-color: var(--sky); }
.st.DELIVERED { color: var(--ok); border-color: var(--ok); }
.st.FAILED { color: var(--danger); border-color: var(--danger); }

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: var(--strong);
  overflow-wrap: anywhere;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
  text-decoration: none;
  font-size: 14px;
}

.ios-hint {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 4px 0 8px;
}

.ico {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: var(--card-hi);
  color: var(--strong);
  border: 1px solid var(--border-ui);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  z-index: 30;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.sheet {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 520px;
  margin-bottom: env(safe-area-inset-bottom);
}

.sheet h2 {
  margin-top: 0;
}

.scan video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos.holding .fill {
    transition: none;
  }
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.map-slot[hidden] {
  display: none;
}

.map-wrap {
  position: relative;
  height: 300px;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.map-page .map-wrap {
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.map-canvas {
  position: absolute;
  inset: 0;
}

.map-wrap.map-off {
  height: auto;
  min-height: 64px;
}

.map-wrap.map-off .map-canvas {
  display: none;
}

.map-note {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.map-wrap:not(.map-off) .map-note {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20, 21, 26, .88);
}

.map-btn {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-ui);
  background: rgba(20, 21, 26, .92);
  color: var(--strong);
  font: 500 13px/1 Poppins, system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.map-btn[hidden], .map-zoom[hidden] {
  display: none;
}

.map-btn svg, .map-ctl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.map-zoom {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-ui);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 21, 26, .92);
}

.map-ctl {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--strong);
  cursor: pointer;
  touch-action: manipulation;
}

.map-ctl + .map-ctl {
  border-top: 1px solid var(--border);
}

.map-btn:hover, .map-ctl:hover {
  background: var(--card-hi);
  border-color: var(--accent-border);
}

.map-btn:active, .map-ctl:active {
  background: var(--border);
}

.map-btn:focus-visible, .map-ctl:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: -2px;
}

.nav-card .nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.nav-card .nav-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--strong);
  overflow-wrap: anywhere;
}

.nav-card .nav-dist {
  font-size: 15px;
  color: var(--accent-text);
  margin-top: 2px;
}

.nav-card .nav-off {
  font-size: 13px;
  color: var(--warn);
  margin-top: 4px;
}

.nav-card .btn-nav {
  margin-top: 12px;
  min-height: 52px;
  font-size: 16px;
  background: var(--card-hi);
  border-color: var(--accent-border);
  color: var(--strong);
}

.nav-card .btn-nav .ico {
  color: var(--accent-text);
  width: 18px;
  height: 18px;
}

.nav-card .nav-all {
  margin-top: 8px;
  min-height: 44px;
  font-size: 13px;
  text-align: center;
  background: var(--card);
  border-color: var(--border-ui);
  color: var(--text);
}

.nav-card .btn-nav:hover, .nav-card .nav-all:hover {
  background: #2b2f3a;
  border-color: var(--accent-border);
}

.nav-card .btn-nav:active, .nav-card .nav-all:active {
  background: var(--border);
}

.nav-card .nav-pos {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stop-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--page);
  background: var(--sky);
  margin-top: 1px;
}

.stop-mark.start {
  background: var(--ok);
}

.stop-mark.end {
  background: var(--danger);
}

.stops li.done {
  opacity: .6;
}

.stops li.next {
  border-color: var(--accent-border);
}

.next-tag {
  color: var(--accent-text);
}

.trip-sketch {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--page);
}

.trip-sketch .sk-route {
  fill: none;
  stroke: #818cf8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-sketch .sk-route.sk-straight {
  stroke-dasharray: 5 5;
}

.trip-sketch .sk-stop {
  fill: var(--sky);
  stroke: var(--page);
  stroke-width: 1.5;
}

.trip-sketch .sk-stop.start {
  fill: var(--ok);
}

.trip-sketch .sk-stop.end {
  fill: var(--danger);
}

.trip-sketch .sk-me {
  fill: #818cf8;
  stroke: #fff;
  stroke-width: 2;
}

.trip-sketch .sk-me.stale {
  fill: #9ca3af;
}

.wiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.wiz-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.wiz-steps li {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.wiz-steps li.done {
  background: var(--accent-border);
}

.wiz-steps li.now {
  background: var(--ok);
}

.wiz-item {
  font-size: 17px;
  font-weight: 600;
  color: var(--strong);
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}

.bill-run {
  margin: 0 0 8px;
}

.btn-big {
  min-height: 56px;
  font-size: 17px;
  font-weight: 600;
}

.center {
  text-align: center;
}

.stepper {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 10px;
  align-items: stretch;
}

.step-btn {
  min-height: 72px;
  font-size: 30px;
  font-weight: 600;
  padding: 0;
}

input.qty-big {
  width: 100%;
  min-height: 72px;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.chip {
  appearance: none;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border-ui);
  background: var(--card-hi);
  color: var(--strong);
  font: 600 18px/1 Poppins, system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.chip:hover {
  border-color: var(--accent-border);
}

.chip.on {
  background: var(--accent);
  border-color: var(--accent-border);
  color: #fff;
}

.chip:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.pay {
  display: grid;
  gap: 12px;
}

.chip.big {
  min-height: 72px;
  font-size: 22px;
}

.total-big {
  font-size: 34px;
  font-weight: 600;
  color: var(--strong);
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.list.pick {
  margin-top: 12px;
}

.list.pick .item.big {
  min-height: 56px;
}

.item .price {
  color: var(--strong);
  font-weight: 600;
  white-space: nowrap;
}

.bill-lines {
  margin-bottom: 8px;
}

.bill-lines .h-row {
  align-items: center;
}

.bill-lines .amt {
  color: var(--strong);
  font-weight: 600;
  white-space: nowrap;
}

.bill-lines .x {
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 20px;
}

.bill-sum {
  margin: 8px 0 16px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bill-sum dd {
  text-align: right;
}

.bill-sum .tot {
  font-size: 18px;
  font-weight: 600;
  color: var(--strong);
}

.bill-done {
  margin-bottom: 12px;
}

.ok-mark {
  width: 56px;
  height: 56px;
  margin: 8px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--page);
  background: var(--ok);
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.seg.paper {
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}

.tk .wiz-top {
  margin-bottom: 8px;
}

.tk-other {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 40px;
  padding: 0 4px;
}

.tk-from {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-border);
  background: var(--card);
  color: var(--strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.tk-from:hover {
  background: var(--card-hi);
}

.tk-from:focus-visible,
.tk-stop:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.tk-k {
  font-size: 12px;
  color: var(--muted);
}

.tk-from-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.tk-chips .chip {
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
}

.tk-opts {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}

.tk-pax {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-step {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
}

.tk-step:disabled {
  opacity: .45;
  cursor: default;
}

.tk-pax-n {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  line-height: 1.1;
}

.tk-pax-n b {
  font-size: 22px;
  color: var(--strong);
}

.tk-pax-n small {
  font-size: 11px;
  color: var(--muted);
}

.tk-pay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.tk-pay .chip {
  min-height: 48px;
  min-width: 0;
  padding: 0 4px;
  font-size: 15px;
}

.tk .err:empty {
  display: none;
}

.tk-stops {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tk-stop {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-ui);
  background: var(--card-hi);
  color: var(--strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.tk-stop:hover {
  border-color: var(--accent-border);
}

.tk-stop:active {
  background: var(--accent);
  border-color: var(--accent-border);
}

.tk-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tk-km {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.tk-price {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.tk-undo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
  padding: 8px 12px 12px;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  font-size: 14px;
}

.tk-undo .btn {
  min-height: 44px;
  min-width: 88px;
  border-color: var(--warn);
  color: var(--warn);
  font-weight: 600;
}

.tk-undo-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--warn);
  transform-origin: left center;
  animation: tk-undo 5s linear forwards;
}

@keyframes tk-undo {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-undo-bar {
    animation: none;
  }
}
