:root {
  --primary: #e8961e;
  --primary-600: #d6830d;
  --primary-700: #b86e08;
  --primary-soft: #f6eee3;
  --ink: #1d2025;
  --ink-2: #4a4f57;
  --muted: #7a808a;
  --line: #dcdfe4;
  --field-bg: #fbfbfc;
  --surface: #ffffff;
  --canvas: #f5f3ef;
  --danger: #c2352b;
  --danger-soft: #fdecea;
  --success: #1f7a4d;
  --success-soft: #e7f5ee;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 32px rgba(20, 22, 26, .08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.icon { flex-shrink: 0; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 24px;
  box-shadow: 0 6px 16px rgba(232, 150, 30, .35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 22px; letter-spacing: .01em; }
.brand__tag { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.brand--light .brand__logo { background: #fff; color: var(--primary); box-shadow: none; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: rgba(255, 255, 255, .85); }
.brand--compact .brand__logo { width: 40px; height: 40px; border-radius: 11px; font-size: 19px; }
.brand--compact .brand__name { font-size: 18px; }
.brand--compact .brand__tag { font-size: 10px; }

/* Auth layout */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-brand { display: none; }
.auth-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px 24px; gap: 28px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px 32px 32px; box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(380px, 46%) 1fr; }
  .auth-brand {
    display: block; position: relative; overflow: hidden;
    background:
      radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .18), transparent 40%),
      radial-gradient(circle at 90% 85%, rgba(0, 0, 0, .12), transparent 45%),
      linear-gradient(150deg, #f0a32e 0%, var(--primary) 45%, var(--primary-700) 100%);
    color: #fff;
  }
  .auth-brand::after {
    content: ""; position: absolute; inset: auto -20% -30% auto;
    width: 520px; height: 520px; border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .07);
  }
  .auth-brand__inner {
    position: relative; z-index: 1; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 48px 56px;
  }
  .auth-brand__copy h2 { font-size: 40px; line-height: 1.15; font-weight: 800; margin: 0 0 16px; max-width: 14ch; }
  .auth-brand__copy p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 36ch; color: rgba(255, 255, 255, .88); }
  .auth-brand__road { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255, 255, 255, .9); }
  .auth-card .brand { display: none; }
  .auth-card { padding: 44px 40px 40px; }
}

@media (max-width: 480px) {
  .auth-main { padding: 28px 16px 20px; justify-content: flex-start; }
  .auth-card { padding: 28px 22px 24px; box-shadow: none; background: transparent; }
  body.page-auth { background: var(--surface); }
}

.auth-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 8px; }
.auth-card .brand + .auth-title { margin-top: 28px; }
@media (min-width: 960px) { .auth-title { margin-top: 0; } }
.auth-subtitle { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Segmented control */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 999px; background: var(--primary-soft);
  margin-bottom: 24px;
}
.segmented__item {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.segmented__item:hover { color: var(--ink); }
.segmented__item.is-active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(232, 150, 30, .35); }
.segmented__item:focus-visible { outline: 2px solid var(--primary-700); outline-offset: 2px; }

/* Panels & forms */
.auth-panel { display: none; }
.auth-panel.is-active { display: block; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); transition: color .15s ease; }
.field:focus-within .field__label { color: var(--primary-700); }
.field__control {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 14px 0 16px;
  background: var(--field-bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field__control:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(232, 150, 30, .15); color: var(--primary-600); }
.field__control.is-ok, .field__control.is-ok:focus-within { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.field__control.is-bad, .field__control.is-bad:focus-within { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.pw-match.ok { color: #16a34a; }
.pw-match.bad { color: #dc2626; }
.field__control:hover:not(:focus-within) { border-color: #c5cad1; }
.field__control::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1.5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), #f6c26b, var(--primary));
  transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.field__control:focus-within::after { transform: scaleX(1); }
.field__control > .icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.field__control:focus-within > .icon { transform: scale(1.15); }
.field__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #a35f00; animation: rise .25s ease backwards; }
.field__hint[hidden] { display: none; }
.field__control input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
}
.field__control input::placeholder { color: #9aa0a8; }
.field__control--readonly { background: #f3f4f6; }
.field__value { flex: 1; font-size: 16px; color: var(--ink); font-weight: 500; }

.field__toggle {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: -6px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.field__toggle:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.field__toggle .icon { transition: transform .15s ease; }
.field__toggle:active .icon { transform: scale(.82); }
.field__toggle .icon-eye-off { display: none; }
.field__toggle.is-visible .icon-eye { display: none; }
.field__toggle.is-visible .icon-eye-off { display: block; }

.auth-form__row { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: -4px; }
.auth-form__row--center { justify-content: center; margin-top: 0; font-size: 14px; }
.muted { color: var(--muted); }
.link { color: var(--primary-600); font-size: 14px; font-weight: 600; text-decoration: none; }
.link:hover { color: var(--primary-700); text-decoration: underline; }
.link--small { font-size: 13px; }
.link--button { background: none; border: 0; padding: 0; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; font-weight: 600; text-decoration: none;
  transition: background-color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  height: 56px; margin-top: 10px; border-radius: 999px;
  background: linear-gradient(135deg, #f2ab3c 0%, var(--primary) 50%, var(--primary-600) 100%); color: #fff; font-size: 16px;
  box-shadow: 0 8px 20px rgba(232, 150, 30, .32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(232, 150, 30, .42); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(232, 150, 30, .3); }
.btn--primary:focus-visible { outline: 3px solid rgba(232, 150, 30, .45); outline-offset: 3px; }
.btn--primary.is-loading { opacity: .85; pointer-events: none; }
.btn--primary::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg); animation: shine 1.1s ease 1.3s backwards;
}
.btn--primary:hover::before { animation: shine-hover .9s ease; }
.btn--primary .icon { transition: transform .25s ease; }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--primary.is-loading .btn__spinner { display: inline-block; }
.btn--primary.is-loading .icon { display: none; }
.btn__ripple {
  position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); pointer-events: none; animation: ripple .6s ease-out forwards;
}
.btn--ghost {
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); font-size: 14px;
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-700); }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.45;
}
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--success-soft); color: var(--success); }
.alert.is-gone {
  animation: none; opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0;
  overflow: hidden; transition: opacity .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease;
}

/* Footer */
.auth-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); }
.auth-footer__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-bottom: 2px; }
.auth-footer__meta { color: var(--muted); font-size: 12px; }
.auth-footer__dot { animation: pulse-ring 2.4s ease-out infinite; }

/* Login motion */
.reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }
.auth-card { animation: card-in .8s cubic-bezier(.2, .7, .2, 1) backwards; }

.alert > .icon { margin-top: 1px; }
.alert--error { animation: shake .5s cubic-bezier(.36, .07, .19, .97) .45s both; }
.alert--info { animation: rise .5s ease .3s backwards; }

.auth-features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .95); }
.auth-features__ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .18); transition: transform .25s ease, background-color .25s ease;
}
.auth-features li:hover .auth-features__ic { transform: translateY(-2px) rotate(-6deg); background: rgba(255, 255, 255, .3); }

.live-card {
  margin-top: 28px; max-width: 420px; padding: 12px 12px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 40px rgba(120, 60, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: live-glow 3.6s ease-in-out infinite;
}
.live-card__head { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; font-size: 12.5px; font-weight: 600; }
.live-card__title { color: rgba(255, 255, 255, .95); }
.live-card__clock {
  margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: rgba(255, 255, 255, .9);
  transition: color .15s ease, text-shadow .15s ease;
}
.live-card__clock.is-tick { color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .55); }
.live-badge {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: #fff; color: #c2352b; font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.live-badge::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 1.5px solid rgba(229, 72, 77, .55);
  animation: live-ring 1.6s ease-out infinite; pointer-events: none;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: live-blink 1.2s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); }
.live-map { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(0, 0, 0, .06); overflow: hidden; }
.live-map__labels { font-family: inherit; }
.live-map__lanes { animation: lane 1.2s linear infinite; }
.live-map__ping { transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
.live-map__ping--2 { animation-delay: 1s; }
.live-map__ping--3 { animation-delay: .45s; }
.live-map__halo { transform-box: fill-box; transform-origin: center; animation: halo 1.6s ease-in-out infinite; }
.auth-features__ic { animation: feature-float 3.8s ease-in-out infinite; }
.auth-features li:nth-child(2) .auth-features__ic { animation-delay: .6s; }
.auth-features li:nth-child(3) .auth-features__ic { animation-delay: 1.2s; }
.brand--light .brand__logo { position: relative; overflow: hidden; }
.brand--light .brand__logo::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%);
  animation: logo-sheen 5.5s ease-in-out 1.2s infinite;
}
@media (min-width: 960px) {
  .auth-brand::after { animation: drift-ring 18s ease-in-out infinite alternate; }
  .orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
  }
  .orb--1 { width: 280px; height: 280px; top: -70px; right: -50px; animation: float 14s ease-in-out infinite; }
  .orb--2 { width: 150px; height: 150px; top: 40%; left: -55px; animation: float 11s ease-in-out -3s infinite reverse; }
  .orb--3 { width: 90px; height: 90px; bottom: 20%; right: 16%; animation: float 9s ease-in-out -6s infinite; }
}
/* Keep the brand panel within short (or zoomed-in) screens. */
@media (min-width: 960px) and (max-height: 880px) {
  .auth-features { display: none; }
}
@media (min-width: 960px) and (max-height: 720px) {
  .auth-brand__inner { padding: 32px 48px; }
  .auth-brand__copy h2 { font-size: 32px; }
  .live-card { margin-top: 20px; max-width: 340px; }
}
@media (min-width: 960px) and (max-height: 640px) {
  .auth-brand__inner { justify-content: flex-start; gap: 22px; }
  .auth-brand__copy h2 { font-size: 30px; margin-bottom: 10px; }
  .live-card { margin-top: 16px; max-width: 300px; }
}
@media (min-width: 960px) and (max-height: 540px) {
  .auth-brand__copy p, .auth-brand__road { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(232, 150, 30, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(232, 150, 30, 0); } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); }
}
@keyframes shine { from { left: -60%; } to { left: 130%; } }
@keyframes shine-hover { from { left: -60%; } to { left: 130%; } }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lane { to { stroke-dashoffset: -15; } }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.35); opacity: .35; } }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes live-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes live-glow {
  0%, 100% { box-shadow: 0 18px 40px rgba(120, 60, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .25); }
  50% { box-shadow: 0 22px 48px rgba(120, 60, 0, .28), 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@keyframes feature-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes logo-sheen { 0%, 78% { transform: translateX(-70%) rotate(12deg); } 100% { transform: translateX(70%) rotate(12deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -22px); } }
@keyframes drift-ring { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-30px, -20px) rotate(25deg); } }

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

/* App (post-login) */
.page-app { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--surface); border-bottom: 1px solid #eceef1;
}
.topbar form { margin: 0; }
.app-tabs {
  display: flex; gap: 4px; padding: 0 clamp(16px, 4vw, 40px);
  background: var(--surface); border-bottom: 1px solid #eceef1;
}
.app-tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; margin-bottom: -1px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.app-tabs a:hover { color: var(--ink); }
.app-tabs a.is-active { color: var(--primary-700); border-bottom-color: var(--primary); }
.app-tabs__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
}
.app-main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px); }
.app-main--wide { max-width: 1080px; }
.welcome-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-700); font-size: 26px; font-weight: 800;
}
.welcome-card__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-600); }
.welcome-card__title { margin: 0 0 16px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.welcome-card__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 28px; margin: 0; }
.welcome-card__meta dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.welcome-card__meta dd { margin: 0; font-weight: 600; word-break: break-word; }
.welcome-card__cta { margin: 20px 0 0; }
.page-intro { margin-bottom: 20px; }
.page-intro__title { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.page-intro__sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.kpi-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px;
}
@media (max-width: 720px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.kpi-card small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kpi-card b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.panel {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid #eceef1;
}
.panel__head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.panel__meta { font-size: 13px; color: var(--muted); }
.trip-list { list-style: none; margin: 0; padding: 0; }
.trip-card {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  padding: 18px 20px; border-bottom: 1px solid #eceef1;
}
.trip-card:last-child { border-bottom: 0; }
@media (max-width: 800px) { .trip-card { grid-template-columns: 1fr; } }
.trip-card__id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.trip-card__id b { font-size: 15px; }
.trip-card__route { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.trip-card__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; margin: 0;
}
.trip-card__meta dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.trip-card__meta dd { margin: 0; font-size: 13px; font-weight: 600; }
.trip-card__remark { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.trip-card__actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 200px;
}
.trip-card__actions form { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.trip-reject .inp {
  width: 100%; height: 36px; padding: 0 10px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--field-bg); font: inherit; font-size: 13px;
}
.tag {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-700); font-size: 11px; font-weight: 700;
}
.tag--soft { background: #eef1f5; color: var(--ink-2); }
.list-empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.btn--primary-sm, .btn--ok, .btn--danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.btn--primary-sm { background: var(--primary); color: #fff; }
.btn--primary-sm:hover { background: var(--primary-600); }
.btn--ok { background: var(--success); color: #fff; }
.btn--ok:hover { filter: brightness(.95); }
.btn--danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #f0c2bd; }
.btn--danger:hover { background: #fadad6; }
.app-footer { text-align: center; padding: 20px; font-size: 12px; color: var(--muted); }
