/* Wayzo app theme.
   Noite (#0B2F40) carries the frame: sidebar, boarding-pass bands, hero cards.
   Expedição orange (#FF6B2C, with Noite text) is reserved for the one primary action on each view.
   The dashed route with stations and an orange plane is the recurring brand element. */
:root {
  --tp-night: #0B2F40;
  --tp-night-2: #123E54;
  --tp-primary: #1B5A78;
  --tp-primary-hover: #154A63;
  --tp-primary-soft: #E3EEF3;
  --tp-accent: #FF6B2C;
  --tp-accent-hover: #F25A18;
  --tp-accent-ink: #0B2F40;
  --tp-accent-soft: #FFE8DC;
  --tp-accent-light: #FFB590;

  --tp-bg: #F4F0E5;
  --tp-bg-sunken: #ECE6D7;
  --tp-surface: #FFFFFF;
  --tp-surface-2: #FBF9F4;
  --tp-text: #14303F;
  --tp-text-muted: #556E7C;
  --tp-text-muted-2: #4A5F6B;
  --tp-text-muted-3: #3C5361;
  --tp-text-faint: #6B7880;
  --tp-border: #E4DCCB;
  --tp-border-2: #EAE4D7;
  --tp-border-3: #E1DACB;
  --tp-border-4: #D6CDBA;

  --tp-success: #2D6A4D;
  --tp-success-fg: #245A40;
  --tp-success-bg: #E0EEE6;
  --tp-warn-fg: #9A3E12;
  --tp-warn-bg: #FBE3D6;
  --tp-warn-fg-2: #8E2A12;
  --tp-danger-bg: #FCEAE6;
  --tp-tag-sonho-fg: #B3431B;
  --tp-tag-sonho-bg: #FBE5DA;
  --tp-tag-hosp-fg: #7A5310;
  --tp-tag-hosp-bg: #F5EAD3;

  --tp-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --tp-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --tp-ease: cubic-bezier(.2, .8, .2, 1);
  --tp-lift: 0 18px 34px -24px rgba(11, 47, 64, .55);
  --tp-pop: 0 30px 60px -32px rgba(11, 47, 64, .6);

  /* Dashed route + plane, drawn once and reused behind dark bands. */
  --tp-route-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' fill='none'%3E%3Cpath d='M-20 250 C 110 250 170 86 330 124 S 540 46 598 48' stroke='white' stroke-opacity='.22' stroke-width='3' stroke-dasharray='2 13' stroke-linecap='round'/%3E%3Ccircle cx='330' cy='124' r='6' fill='white' fill-opacity='.28'/%3E%3Ccircle cx='150' cy='196' r='4' fill='white' fill-opacity='.22'/%3E%3Cg transform='translate(614 44) rotate(-16) scale(.66)'%3E%3Cpath fill='%23FF6B2C' d='M26 0 C26 -2.6 23.5 -3.4 20 -3.4 L5 -3.4 L-8 -24 L-13.5 -24 L-5 -3.4 L-15 -3.4 L-21.5 -12 L-25.5 -12 L-22 -3 L-24 -2 Q-26 0 -24 2 L-22 3 L-25.5 12 L-21.5 12 L-15 3.4 L-5 3.4 L-13.5 24 L-8 24 L5 3.4 L20 3.4 C23.5 3.4 26 2.6 26 0 Z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--tp-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--tp-bg);
  color: var(--tp-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--tp-display); text-wrap: balance; }
a { color: var(--tp-primary); }
:focus-visible { outline: 3px solid rgba(27, 90, 120, .45); outline-offset: 2px; }
.tp-num { font-variant-numeric: tabular-nums; }

.tp-scroll { scrollbar-width: thin; scrollbar-color: #D6CDBA transparent; }

/* ---------- Shell ---------- */
.tp-shell { display: flex; height: 100vh; overflow: hidden; background: var(--tp-bg); }
.tp-main { flex-grow: 1; min-width: 0; height: 100vh; padding: 36px 44px 72px; overflow-y: auto; }
.tp-page { max-width: 1180px; margin: 0 auto; }
.tp-main.tp-main-landing { display: block; padding: 0; scroll-behavior: smooth; }
.tp-main-guest { display: flex; align-items: safe center; justify-content: center; }

.tp-sidebar {
  width: 264px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px;
  height: 100vh; overflow-y: auto; padding: 24px 16px 18px; color: rgba(255, 255, 255, .74);
  background: radial-gradient(140% 60% at 0% 0%, rgba(27, 90, 120, .55) 0%, transparent 60%), var(--tp-night);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.tp-brand {
  display: inline-flex; align-items: center; gap: 10px; padding: 2px 8px; text-decoration: none; color: #fff;
  font: 800 26px/1 var(--tp-display); letter-spacing: -.035em;
}
.tp-brand img { width: 38px; height: 38px; flex: none; }
.tp-brand img.wm { width: auto; height: 64px; }
.tp-sidebar > .tp-brand { justify-content: center; }
.tp-brand.is-dark { color: var(--tp-night); }

.tp-navlist { display: flex; flex-direction: column; gap: 4px; }
.tp-navhint { padding: 0 12px 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .46); }

.tp-nav {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .74);
  font: 600 14px/1 var(--tp-display); text-align: left; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.tp-nav:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tp-nav.is-on { background: rgba(255, 255, 255, .11); color: #fff; }
.tp-nav.is-on::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tp-accent); }
.tp-nav.is-parent { color: #fff; }
.tp-nav span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-nav:disabled, .tp-nav.is-disabled { opacity: .45; cursor: not-allowed; }

/* The open trip is drawn as a short route: a dashed line with one station per section. */
.tp-subnav { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px 21px; padding-left: 16px; border-left: 2px dashed rgba(255, 255, 255, .2); }
.tp-subnav-trip { padding: 6px 8px 6px 0; font: 700 13px/1.25 var(--tp-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-nav.is-sub { height: 36px; font-size: 13px; padding: 0 10px; }
.tp-nav.is-sub .ic { width: 16px; height: 16px; }
.tp-nav.is-sub::after {
  content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--tp-night); border: 2px solid rgba(255, 255, 255, .34); transition: background .2s, border-color .2s;
}
.tp-nav.is-sub.is-on::before { display: none; }
.tp-nav.is-sub.is-on::after { background: var(--tp-accent); border-color: var(--tp-accent); box-shadow: 0 0 0 4px rgba(255, 107, 44, .18); }

.tp-account { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tp-me { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; color: #fff; transition: background .2s; }
.tp-me:hover { background: rgba(255, 255, 255, .07); }
.tp-me.is-on { background: rgba(255, 255, 255, .11); }
.tp-me-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-me-name { font: 700 14px/1.2 var(--tp-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-me-sub { font-size: 12px; color: rgba(255, 255, 255, .58); }
.tp-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--tp-accent); color: var(--tp-night); font: 800 15px/1 var(--tp-display); text-transform: uppercase;
}
.tp-avatar.is-lg { width: 64px; height: 64px; font-size: 24px; }
.tp-logout {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: rgba(255, 255, 255, .6); font: 600 13px/1 var(--tp-display); cursor: pointer; transition: background .2s, color .2s;
}
.tp-logout:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tp-logout .ic { width: 16px; height: 16px; }

.tp-burger { display: none; }
.tp-menu { display: contents; }

/* ---------- Guest (auth) layout ---------- */
.tp-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; width: 100%; }
.tp-auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px clamp(28px, 4vw, 56px) 40px; color: #fff;
  background: radial-gradient(110% 80% at 100% 0%, #22698A 0%, var(--tp-primary) 20%, var(--tp-night) 64%);
}
.tp-auth-brand::before {
  content: ""; position: absolute; inset: auto 3% 22% auto; width: 94%; aspect-ratio: 640 / 260; pointer-events: none;
  background: var(--tp-route-art) center / contain no-repeat;
}
.tp-auth-pitch { position: relative; max-width: 30rem; }
.tp-auth-pitch h2 { margin: 0; font: 800 clamp(34px, 3.6vw, 50px)/1.02 var(--tp-display); letter-spacing: -.035em; }
.tp-auth-pitch p { margin: 18px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.tp-auth-pass {
  position: relative; max-width: 360px; padding: 18px 20px; border-radius: 20px; background: #fff; color: var(--tp-text);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .65);
}
.tp-auth-pass-title { font: 800 16px/1.2 var(--tp-display); }
.tp-auth-pass-sub { font-size: 13px; color: var(--tp-text-muted); margin-top: 2px; }
.tp-auth-main { display: flex; align-items: safe center; justify-content: center; padding: 48px 24px; min-width: 0; }

.tp-authform { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.tp-authform.is-wide { max-width: 560px; }
.tp-auth-title { margin: 0; font: 800 34px/1.08 var(--tp-display); letter-spacing: -.03em; color: var(--tp-night); }
.tp-auth-sub { margin: -8px 0 6px; font-size: 16px; color: var(--tp-text-muted); }
.tp-auth-alt { text-align: center; font-size: 14px; color: var(--tp-text-muted-3); }
.tp-auth-alt a { font-weight: 700; color: var(--tp-primary); }

/* Mini route used on the auth panel and in empty states */
.tp-miniroute { list-style: none; margin: 14px 0 0; padding: 0; position: relative; display: grid; gap: 12px; }
.tp-miniroute::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; border-left: 2px dashed var(--tp-border-4); }
.tp-miniroute li { position: relative; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.tp-miniroute li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--tp-primary); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--tp-primary); position: relative; z-index: 1; }
.tp-miniroute li:last-child::before { background: var(--tp-accent); box-shadow: 0 0 0 2px var(--tp-accent); }
.tp-miniroute b { font: 700 14px/1.2 var(--tp-display); }
.tp-miniroute small { font-size: 12px; color: var(--tp-text-muted); }

/* ---------- Typography blocks ---------- */
.tp-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.tp-pagehead-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tp-pagehead-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.tp-h1 { margin: 0; font: 800 clamp(30px, 3.4vw, 42px)/1.04 var(--tp-display); letter-spacing: -.035em; color: var(--tp-night); }
.tp-sub { margin: 0; max-width: 62ch; font-size: 16px; color: var(--tp-text-muted); }
.tp-h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 22px/1.15 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); }
.tp-h3 { margin: 0; font: 700 17px/1.25 var(--tp-display); color: var(--tp-night); }
.tp-help { font-size: 13px; line-height: 1.5; color: var(--tp-text-muted); }
.tp-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--tp-text-muted); }
.tp-crumb a { color: inherit; text-decoration: none; }
.tp-crumb a:hover { color: var(--tp-primary); text-decoration: underline; }
.tp-crumb .sep { color: var(--tp-border-4); }

.tp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tp-toolbar-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-search { width: 260px; }
.tp-search .tp-field { height: 42px; }
.tp-search > .ic { top: 12px; }
.tp-progress-line { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--tp-text-muted-3); }
.tp-progress-line strong { font-family: var(--tp-display); color: var(--tp-night); }

.tp-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 44px 0 16px; }
.tp-sechead.is-first { margin-top: 0; }
.tp-sechead-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tp-link { font-weight: 700; color: var(--tp-primary); text-decoration: none; }
.tp-link:hover { text-decoration: underline; }
.tp-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--tp-primary); cursor: pointer; }
.tp-linkbtn:hover { text-decoration: underline; }

/* ---------- Fields ---------- */
.tp-field {
  width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid var(--tp-border-3); border-radius: 12px;
  background: var(--tp-surface-2); font: 500 15px/1.2 var(--tp-body); color: var(--tp-text); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tp-field.plain { padding-left: 14px; }
select.tp-field { padding-right: 36px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556E7C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.tp-field::placeholder { color: #8A979E; }
.tp-field:hover { border-color: #CFC6B3; }
.tp-field:focus { border-color: var(--tp-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(27, 90, 120, .14); }
.tp-field:disabled { background-color: var(--tp-bg-sunken); color: var(--tp-text-muted); cursor: not-allowed; }
.tp-field.is-err { border-color: var(--tp-accent-hover); box-shadow: 0 0 0 4px rgba(255, 107, 44, .16); }
.tp-fwrap { position: relative; }
.tp-fwrap > .ic { position: absolute; left: 14px; top: 14px; color: var(--tp-text-faint); pointer-events: none; transition: color .2s; }
.tp-fwrap:focus-within > .ic { color: var(--tp-primary); }
.tp-eye {
  position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent;
  color: var(--tp-text-faint); cursor: pointer; display: grid; place-items: center;
}
.tp-eye:hover { background: var(--tp-bg-sunken); color: var(--tp-text); }
.tp-label { display: block; margin-bottom: 6px; font: 600 13px/1.3 var(--tp-body); color: var(--tp-text-muted-3); }
.tp-label .opt { font-weight: 500; color: var(--tp-text-faint); }

.tp-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 16px; align-items: end; }
.tp-form-grid .span-2 { grid-column: span 2; }
.tp-form-grid .span-all { grid-column: 1 / -1; }
.tp-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tp-form-2 .span-all { grid-column: 1 / -1; }
.tp-form-row { display: flex; gap: 14px 16px; flex-wrap: wrap; align-items: flex-end; }
.tp-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--tp-border-2); }
.tp-choice { display: flex; gap: 8px; flex-wrap: wrap; }

.tp-err { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--tp-danger-bg); font-size: 13.5px; font-weight: 600; color: var(--tp-warn-fg-2); }
.tp-err .ic { width: 16px; height: 16px; margin-top: 1px; }
.tp-ok { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--tp-success-bg); font-size: 13.5px; font-weight: 600; color: var(--tp-success-fg); }

/* ---------- Buttons ---------- */
.tp-primary, .tp-ghost, .tp-quiet, .tp-dark {
  height: 46px; padding: 0 20px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14.5px/1 var(--tp-display); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--tp-ease), box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.tp-primary { border: 0; background: var(--tp-accent); color: var(--tp-accent-ink); box-shadow: 0 10px 22px -12px rgba(255, 107, 44, .95); }
.tp-primary:hover:not(:disabled) { transform: translateY(-1px); background: var(--tp-accent-hover); box-shadow: 0 14px 26px -12px rgba(242, 90, 24, .95); }
.tp-primary:active:not(:disabled) { transform: scale(.98); }
.tp-ghost { border: 1.5px solid var(--tp-border-4); background: #fff; color: var(--tp-text); }
.tp-ghost:hover:not(:disabled) { border-color: var(--tp-primary); color: var(--tp-primary); }
.tp-quiet { border: 0; background: transparent; color: var(--tp-text-muted-3); padding: 0 14px; }
.tp-quiet:hover:not(:disabled) { background: var(--tp-bg-sunken); color: var(--tp-text); }
.tp-dark { border: 0; background: var(--tp-night); color: #fff; }
.tp-dark:hover:not(:disabled) { background: var(--tp-primary); }
.tp-primary:disabled, .tp-ghost:disabled, .tp-quiet:disabled, .tp-dark:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.tp-primary.is-sm, .tp-ghost.is-sm, .tp-quiet.is-sm, .tp-dark.is-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.tp-primary.is-block, .tp-ghost.is-block, .tp-dark.is-block { width: 100%; }
.tp-ghost.on-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.tp-ghost.on-dark:hover:not(:disabled) { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .45); color: #fff; }

.tp-pill {
  height: 38px; padding: 0 14px; border: 1.5px solid var(--tp-border-3); border-radius: 999px; background: #fff;
  color: var(--tp-text-muted-3); font: 600 13px/1 var(--tp-display); display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.tp-pill .ic { width: 16px; height: 16px; }
.tp-pill:hover { border-color: var(--tp-primary); color: var(--tp-primary); }
.tp-pill.is-on { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-pill.is-on.is-dream { background: var(--tp-tag-sonho-fg); border-color: var(--tp-tag-sonho-fg); }
.tp-pill.is-on.is-real { background: var(--tp-success); border-color: var(--tp-success); }

/* Segmented filters */
.tp-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(11, 47, 64, .07); flex-wrap: wrap; }
.tp-tab {
  height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--tp-text-muted-2);
  font: 600 13px/1 var(--tp-display); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .2s, color .2s;
}
.tp-tab:hover { color: var(--tp-text); }
.tp-tab.is-on { background: #fff; color: var(--tp-night); box-shadow: 0 1px 3px rgba(11, 47, 64, .16); }
.tp-seg.on-dark { background: rgba(255, 255, 255, .1); }
.tp-seg.on-dark .tp-tab { color: rgba(255, 255, 255, .72); }
.tp-seg.on-dark .tp-tab.is-on { background: #fff; color: var(--tp-night); }
.tp-count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(11, 47, 64, .08); color: var(--tp-text-muted-3);
  font: 700 11.5px/1 var(--tp-display); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.tp-tab.is-on .tp-count { background: var(--tp-accent-soft); color: var(--tp-warn-fg); }
.tp-h2 .tp-count { height: 26px; min-width: 26px; font-size: 12.5px; }

/* Page-level tabs (underline) */
.tp-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--tp-border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tp-tabs > .tp-tab { height: 48px; padding: 0 14px; border-radius: 0; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; box-shadow: none; background: transparent; }
.tp-tabs > .tp-tab.is-on { background: transparent; border-bottom-color: var(--tp-accent); color: var(--tp-night); box-shadow: none; }

.tp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tp-text-muted); text-decoration: none; margin-bottom: 16px; }
.tp-back:hover { color: var(--tp-primary); }

.tp-arrow {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--tp-border-2); background: #fff; color: var(--tp-primary); font: 600 13px/1 var(--tp-display);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.tp-arrow:hover { background: #F5F1E8; }
.tp-arrow.is-disabled { opacity: .4; pointer-events: none; }
.tp-arrow .ic { width: 16px; height: 16px; }
.tp-arrow.on-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.tp-arrow.on-dark:hover { background: rgba(255, 255, 255, .18); }
.tp-stopnav-arrows { display: flex; gap: 8px; }

.tp-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tp-sort:hover { text-decoration: underline; }

/* ---------- Surfaces ---------- */
.tp-card { padding: 24px; border-radius: 20px; background: var(--tp-surface); border: 1px solid var(--tp-border-2); }
.tp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tp-card-in { animation: tpIn .5s var(--tp-ease) both; }
.tp-stack { display: flex; flex-direction: column; gap: 16px; }
.tp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-grid-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }

/* Add/edit panel: opens in place, above the list it feeds */
.tp-drawer {
  display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; padding: 22px 24px; border-radius: 20px; background: #fff;
  border: 1px solid var(--tp-border-2); box-shadow: 0 24px 48px -36px rgba(11, 47, 64, .55); animation: tpIn .4s var(--tp-ease) both;
}
.tp-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tp-drawer-title { margin: 0; font: 700 17px/1.25 var(--tp-display); color: var(--tp-night); }
.tp-drawer-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--tp-text-muted); }

.tp-iconbtn {
  width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--tp-text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s;
}
.tp-iconbtn:hover { background: var(--tp-bg-sunken); color: var(--tp-text); }

/* Boarding-pass band: identity + key numbers of a trip or stop */
.tp-band {
  position: relative; isolation: isolate; overflow: hidden; margin-bottom: 28px; padding: 28px 32px 0; border-radius: 28px; color: #fff;
  background: radial-gradient(90% 150% at 100% 0%, #22698A 0%, var(--tp-primary) 24%, var(--tp-night) 72%);
  box-shadow: var(--tp-pop);
}
.tp-band::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -20px; width: 620px; height: 250px; background: var(--tp-route-art) center / contain no-repeat; pointer-events: none; }
.tp-band-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tp-band-main { min-width: 0; flex: 1 1 360px; }
.tp-band .tp-crumb { color: rgba(255, 255, 255, .66); }
.tp-band .tp-crumb a:hover { color: #fff; }
.tp-band .tp-crumb .sep { color: rgba(255, 255, 255, .35); }
.tp-band h1 { margin: 10px 0 14px; font: 800 clamp(32px, 4.2vw, 50px)/1.02 var(--tp-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.tp-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-band-stats {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px;
  margin: 26px -32px 0; padding: 18px 32px 22px; border-top: 2px dashed rgba(255, 255, 255, .2); background: rgba(3, 20, 29, .24);
}
.tp-band-stats::before, .tp-band-stats::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-bg); }
.tp-band-stats::before { left: -11px; }
.tp-band-stats::after { right: -11px; }
.tp-stat-label { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .64); }
.tp-stat-value { margin-top: 4px; font: 800 22px/1.15 var(--tp-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-stat-value.is-dream { color: var(--tp-accent-light); }
.tp-stat-value.is-real { color: #9FE3BF; }

/* Stop cover: same band, with the city photo behind a dark wash */
.tp-band.tp-cover { background-color: var(--tp-night); background-image: linear-gradient(180deg, rgba(11, 47, 64, .35) 0%, rgba(11, 47, 64, .82) 58%, rgba(11, 47, 64, .96) 100%), var(--cover, none); background-size: cover; background-position: center; }
.tp-band.tp-cover::before { display: none; }
.tp-band.tp-cover .tp-band-top { margin-bottom: 64px; }

/* Hero cards inside pages (solvency, balance, countdown) */
.tp-hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #22698A 0%, var(--tp-primary) 26%, var(--tp-night) 76%);
}
.tp-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -40px; width: 460px; height: 190px; background: var(--tp-route-art) center / contain no-repeat; opacity: .75; pointer-events: none; }
.tp-hero-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.tp-hero-value { font: 800 30px/1.1 var(--tp-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tp-hero-note { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tp-hero .tp-bar-track { background: rgba(255, 255, 255, .14); }
.tp-badge-status { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--tp-display); }
.tp-badge-status.is-good { background: rgba(127, 209, 168, .16); color: #9FE3BF; }
.tp-badge-status.is-bad { background: rgba(255, 107, 44, .18); color: var(--tp-accent-light); }

/* Trip tickets (home) */
.tp-ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.tp-ticket {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1px solid var(--tp-border-2);
  transition: transform .25s var(--tp-ease), box-shadow .25s var(--tp-ease);
}
.tp-ticket:hover { transform: translateY(-3px); box-shadow: var(--tp-lift); }
.tp-ticket-top {
  position: relative; isolation: isolate; overflow: hidden; padding: 18px 20px 22px; border-radius: 21px 21px 0 0; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(120% 140% at 100% 0%, #22698A 0%, var(--tp-primary) 26%, var(--tp-night) 78%);
}
.tp-ticket-top::before { content: ""; position: absolute; z-index: -1; right: -110px; top: -18px; width: 360px; height: 150px; background: var(--tp-route-art) center / contain no-repeat; opacity: .9; }
.tp-ticket-when {
  align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 107, 44, .18); border: 1px solid rgba(255, 107, 44, .38); color: var(--tp-accent-light); font: 700 12px/1 var(--tp-display);
}
.tp-ticket-when.is-now { background: rgba(127, 209, 168, .16); border-color: rgba(127, 209, 168, .4); color: #9FE3BF; }
.tp-ticket-when.is-past { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); }
.tp-ticket-name { margin: auto 0 0; font: 800 24px/1.1 var(--tp-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.tp-ticket-name a { color: #fff; text-decoration: none; }
.tp-ticket-dates { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.tp-ticket-body { position: relative; padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tp-ticket-body::before, .tp-ticket-body::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-bg); border: 1px solid var(--tp-border-2); }
.tp-ticket-body::before { left: -12px; clip-path: inset(0 0 0 50%); }
.tp-ticket-body::after { right: -12px; clip-path: inset(0 50% 0 0); }
.tp-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--tp-border); }
.tp-facts dt { font-size: 12px; font-weight: 600; color: var(--tp-text-muted); }
.tp-facts dd { margin: 3px 0 0; font: 700 15px/1.2 var(--tp-display); color: var(--tp-night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-ticket-open { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--tp-display); color: var(--tp-primary); }
.tp-ticket-open .ic { transition: transform .25s var(--tp-ease); }
.tp-ticket:hover .tp-ticket-open .ic { transform: translateX(4px); }
.tp-ticket-actions { position: relative; z-index: 2; display: flex; gap: 2px; }

/* Whole-card links: the heading link stretches over its card, actions sit above it */
.tp-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tp-stretch:focus-visible { outline: none; }
.tp-stretch:focus-visible::after { outline: 3px solid var(--tp-accent); outline-offset: 3px; border-radius: 22px; }

/* Same idea as .tp-stretch, but as its own element: .tp-ticket has an intermediate
   positioned child (.tp-ticket-top), so a ::after on a nested anchor would only cover
   that child instead of the whole card. This sits directly under .tp-ticket instead. */
.tp-ticket-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tp-ticket-link:focus-visible { outline: 3px solid var(--tp-accent); outline-offset: 3px; border-radius: 22px; }

/* Stops as a route: numbered stations on a dashed line */
.tp-stations { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.tp-stations::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; border-left: 2px dashed var(--tp-border-4); }
.tp-station { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; }
.tp-station-dot {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tp-night); color: #fff; font: 800 16px/1 var(--tp-display); box-shadow: 0 0 0 6px var(--tp-bg);
}
.tp-station.is-last .tp-station-dot { background: var(--tp-accent); color: var(--tp-accent-ink); }
.tp-station-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 12px; border-radius: 20px; background: #fff;
  border: 1px solid var(--tp-border-2); transition: transform .22s var(--tp-ease), box-shadow .22s var(--tp-ease), border-color .22s;
}
.tp-station-card:hover { transform: translateX(4px); box-shadow: var(--tp-lift); border-color: var(--tp-border-4); }
.tp-station-card.is-editing { display: block; padding: 20px; transform: none; box-shadow: var(--tp-lift); }
.tp-station-thumb {
  width: 120px; height: 84px; flex: none; border-radius: 14px; background-color: var(--tp-primary-soft); background-size: cover; background-position: center;
  display: grid; place-items: center; color: var(--tp-primary);
}
.tp-station-thumb .ic { width: 26px; height: 26px; opacity: .7; }
.tp-station-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tp-station-name { margin: 0; font: 800 19px/1.15 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); }
.tp-station-name a { color: inherit; text-decoration: none; }
.tp-station-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-station-side { position: relative; z-index: 2; display: flex; align-items: center; gap: 2px; }
.tp-station-go { color: var(--tp-text-faint); margin-left: 6px; transition: transform .22s var(--tp-ease), color .22s; }
.tp-station-card:hover .tp-station-go { color: var(--tp-accent-hover); transform: translateX(3px); }

/* Tiles / list items */
.tp-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--tp-border-2);
  border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tp-tile:hover { border-color: var(--tp-border-4); }
.tp-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.tp-list { display: flex; flex-direction: column; gap: 10px; }
.tp-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--tp-border-2);
  border-radius: 16px; transition: box-shadow .2s, border-color .2s;
}
.tp-item:hover { box-shadow: 0 14px 26px -22px rgba(11, 47, 64, .5); border-color: var(--tp-border-4); }
.tp-item.is-done { background: var(--tp-surface-2); }
.tp-item.is-done .tp-title { text-decoration: line-through; text-decoration-color: rgba(20, 48, 63, .35); color: #5E6E77; }
.tp-item.is-done .tp-badge { opacity: .55; }
.tp-item.is-new { animation: tpNew 1.1s var(--tp-ease) both; }
.tp-item.is-attn { border-left: 4px solid var(--tp-accent); }
.tp-item-main { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tp-title { font: 700 15px/1.3 var(--tp-display); color: var(--tp-text); transition: color .2s; }
.tp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 500; color: var(--tp-text-muted); }
.tp-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.tp-meta .ic { width: 14px; height: 14px; }

.tp-daysep { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 700 14px/1 var(--tp-display); color: var(--tp-night); }
.tp-daysep::first-letter { text-transform: uppercase; }
.tp-daysep::after { content: ""; flex-grow: 1; height: 1px; background: var(--tp-border); }
.tp-daysep:first-child { margin-top: 0; }

.tp-badge { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .2s; }

.tp-check {
  width: 36px; height: 36px; border: 2px solid var(--tp-border-4); border-radius: 50%; background: #fff; color: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .2s, border-color .2s, color .2s;
}
.tp-check .ic { width: 16px; height: 16px; }
.tp-check:hover { border-color: var(--tp-success); color: #B9D3C4; }
.tp-check.is-on { background: var(--tp-success); border-color: var(--tp-success); color: #fff; animation: tpPop .35s; }

.tp-del, .tp-edit {
  width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--tp-text-faint); flex: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s;
}
.tp-item:hover .tp-del, .tp-tile:hover .tp-del, .tp-ticket:hover .tp-del, .tp-station-card:hover .tp-del, .tp-del:focus-visible,
.tp-item:hover .tp-edit, .tp-tile:hover .tp-edit, .tp-ticket:hover .tp-edit, .tp-station-card:hover .tp-edit, .tp-edit:focus-visible,
.tp-row-actions .tp-del, .tp-row-actions .tp-edit, .tp-ticket-actions .tp-edit { opacity: 1; }
.tp-del:hover { background: var(--tp-tag-sonho-bg); color: var(--tp-warn-fg); }
.tp-edit:hover { background: var(--tp-primary-soft); color: var(--tp-primary); }
.tp-tile-actions, .tp-row-actions { display: flex; gap: 2px; }
.tp-row-actions { justify-content: flex-end; align-items: center; }
.tp-del.is-sm, .tp-edit.is-sm { width: 34px; height: 34px; }
.tp-del .ic, .tp-edit .ic { width: 17px; height: 17px; }
@media (hover: none) { .tp-del, .tp-edit { opacity: 1; } }

.tp-badge-num {
  width: 28px; height: 28px; border-radius: 999px; background: var(--tp-primary); color: #fff; font: 700 13px/1 var(--tp-display);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Chips / tags */
.tp-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--tp-border); font: 600 13px/1 var(--tp-body); color: var(--tp-text-muted-3); white-space: nowrap;
}
.tp-chip .ic { width: 14px; height: 14px; }
.tp-chip.on-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.tp-chip.is-soft { background: var(--tp-bg-sunken); border-color: transparent; }
.tp-chip.is-auto { height: 22px; padding: 0 8px; font-size: 11.5px; background: var(--tp-primary-soft); border-color: transparent; color: var(--tp-primary); }
.tp-tag { height: 28px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--tp-display); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tp-tag.pe { background: var(--tp-success-bg); color: var(--tp-success-fg); }
.tp-tag.sonho { background: var(--tp-tag-sonho-bg); color: var(--tp-tag-sonho-fg); }
.tp-tag.info { background: var(--tp-primary-soft); color: var(--tp-primary); }
.tp-tag.muted { background: var(--tp-bg-sunken); color: var(--tp-text-muted-3); }
.tp-dotlabel { display: inline-flex; align-items: center; gap: 8px; }
.tp-dotlabel::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--tp-primary)); flex: none; }

/* Notes and upsell */
.tp-note { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--tp-primary-soft); color: var(--tp-text-muted-3); font-size: 14px; line-height: 1.55; }
.tp-note > .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--tp-primary); }
.tp-note-body { flex: 1; min-width: 0; }
.tp-upsell {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 20px;
  background: var(--tp-night); color: #fff; margin-bottom: 20px;
}
.tp-upsell::before { content: ""; position: absolute; z-index: -1; right: -150px; top: -30px; width: 440px; height: 180px; background: var(--tp-route-art) center / contain no-repeat; opacity: .8; }
.tp-upsell-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 107, 44, .18); color: var(--tp-accent); }
.tp-upsell-text { flex: 1 1 260px; min-width: 0; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.tp-upsell-text b { display: block; margin-bottom: 2px; font: 700 16px/1.3 var(--tp-display); color: #fff; }

/* Tables */
.tp-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tp-table th { text-align: left; padding: 10px 14px; font: 600 12.5px/1.2 var(--tp-body); color: var(--tp-text-muted); border-bottom: 1px solid var(--tp-border-2); white-space: nowrap; }
.tp-table td { padding: 12px 14px; border-bottom: 1px solid #F1ECE1; vertical-align: middle; }
.tp-table tbody tr:last-child td { border-bottom: 0; }
.tp-table tr.is-neg td { background: var(--tp-danger-bg); color: var(--tp-warn-fg-2); }
.tp-table tfoot td { font-weight: 700; border-top: 2px solid var(--tp-border-2); border-bottom: none; }
.tp-table .is-num { text-align: right; }
.tp-table-card { background: #fff; border: 1px solid var(--tp-border-2); border-radius: 18px; overflow-x: auto; }
.tp-table-strong { font-size: 14.5px; color: var(--tp-text); }
.tp-table-strong thead th { background: var(--tp-night); color: rgba(255, 255, 255, .86); padding: 14px 16px; border-bottom: 0; font-family: var(--tp-display); font-weight: 600; font-size: 12.5px; }
.tp-table-strong td { padding: 14px 16px; border-bottom: 1px solid var(--tp-border-2); font-weight: 500; }
.tp-table-strong tbody tr:nth-child(even) td { background: #FBF9F4; }
.tp-table-strong tbody tr:hover td { background: #EEF4F7; }
.tp-table-strong tfoot td { background: var(--tp-primary-soft); color: var(--tp-night); font: 800 15.5px/1.2 var(--tp-display); border-top: 0; padding: 16px; white-space: nowrap; }
.tp-table-strong .tp-del, .tp-table-strong .tp-edit { color: var(--tp-text-muted-3); }
.tp-table-strong .tp-sort:hover { color: #fff; }
.tp-table .tp-cell-strong { font-weight: 700; color: var(--tp-night); }

.tp-flightbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid #BFD6E1; border-radius: 999px;
  background: var(--tp-primary-soft); color: var(--tp-primary); font: 700 12px/1 var(--tp-display); cursor: pointer; transition: background .2s, border-color .2s;
}
.tp-flightbtn .ic { width: 14px; height: 14px; }
.tp-flightbtn:hover, .tp-flightbtn[aria-expanded="true"] { background: #D3E5EE; border-color: var(--tp-primary); }
.tp-flightbtn-hint { font-weight: 600; opacity: .7; }
.tp-table-strong tbody tr.tp-flightrow td { background: #F2F7F9; }
.tp-flight { display: flex; align-items: flex-start; gap: 14px 24px; flex-wrap: wrap; padding: 6px 0; font-size: 13.5px; color: var(--tp-text-muted-3); }
.tp-flight-legs { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 12px 28px; flex: 1; }
.tp-flight-k { font: 700 12.5px/1.3 var(--tp-display); color: var(--tp-night); margin-bottom: 2px; }

.tp-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--tp-text-muted-3); }

/* Meters / bars */
.tp-bar-track { height: 8px; border-radius: 99px; background: #EFE9DC; overflow: hidden; }
.tp-bar { height: 100%; border-radius: 99px; transition: width .6s var(--tp-ease); animation: tpGrow 1s var(--tp-ease) both; transform-origin: left; }
.tp-meter-track { height: 6px; border-radius: 99px; background: #EFE9DC; overflow: hidden; }
.tp-meter { height: 100%; border-radius: 99px; transition: width .4s ease, background .3s ease; }
.tp-stackbar { display: flex; height: 14px; gap: 3px; border-radius: 99px; overflow: hidden; background: #EFE9DC; }
.tp-stackbar > div { height: 100%; border-radius: 99px; animation: tpGrow 1s var(--tp-ease) both; transform-origin: left; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tp-legend > div { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--tp-text-muted-3); }
.tp-legend b { color: var(--tp-night); font-variant-numeric: tabular-nums; }
.tp-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Ring */
.tp-ringbox { position: relative; flex: none; }
.tp-ringbox svg { display: block; transform: rotate(-90deg); }
.tp-ringbox-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tp-ringbox-value { font: 800 26px/1 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); }
.tp-ringbox-label { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--tp-text-muted); }

/* KPI tiles */
.tp-kpi { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--tp-border-2); }
.tp-kpi-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tp-primary-soft); color: var(--tp-primary); }
.tp-kpi-label { font-size: 13px; font-weight: 600; color: var(--tp-text-muted); }
.tp-kpi-value { margin-top: 4px; font: 800 26px/1.1 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); font-variant-numeric: tabular-nums; }

/* Plans */
.tp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tp-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--tp-border-2); }
.tp-plan.is-hl { border: 2px solid var(--tp-accent); box-shadow: var(--tp-pop); }
.tp-plan.is-dark { background: var(--tp-night); color: #fff; border-color: transparent; overflow: hidden; isolation: isolate; }
.tp-plan.is-dark.is-hl { border: 2px solid var(--tp-accent); }
.tp-plan.is-dark::before { content: ""; position: absolute; z-index: -1; right: -150px; bottom: -70px; width: 460px; height: 190px; background: var(--tp-route-art) center / contain no-repeat; }
.tp-plan-badge { position: absolute; top: -13px; left: 24px; height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--tp-accent); color: var(--tp-accent-ink); font: 800 12px/1 var(--tp-display); }
.tp-plan-name { margin: 0; font: 800 20px/1.2 var(--tp-display); }
.tp-plan-price { font: 800 44px/1 var(--tp-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tp-plan-price small { font: 600 15px var(--tp-body); letter-spacing: 0; opacity: .7; }
.tp-plan-desc { margin: 0; font-size: 14.5px; color: var(--tp-text-muted); }
.tp-plan.is-dark .tp-plan-desc { color: rgba(255, 255, 255, .75); }
.tp-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.tp-plan li { display: flex; gap: 10px; align-items: flex-start; }
.tp-plan li .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--tp-success); }
.tp-plan.is-dark li .ic { color: var(--tp-accent); }

/* Status screens (payment) */
.tp-status { max-width: 520px; margin: 6vh auto 0; padding: 40px 36px; border-radius: 28px; background: #fff; border: 1px solid var(--tp-border-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--tp-lift); }
.tp-status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.tp-status-icon .ic { width: 34px; height: 34px; }
.tp-status-icon.is-ok { background: var(--tp-success-bg); color: var(--tp-success); animation: tpPop .5s var(--tp-ease) both; }
.tp-status-icon.is-wait { background: var(--tp-primary-soft); color: var(--tp-primary); }
.tp-status-icon.is-bad { background: var(--tp-tag-sonho-bg); color: var(--tp-tag-sonho-fg); }
.tp-status h1 { margin: 0; font: 800 26px/1.15 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); }
.tp-status p { margin: 0; font-size: 15px; color: var(--tp-text-muted); max-width: 40ch; }
.tp-status-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Upload drop area */
.tp-upload {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed var(--tp-border-4); border-radius: 16px; background: var(--tp-surface-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.tp-upload:hover, .tp-upload:focus-within { border-color: var(--tp-primary); background: #F2F7F9; }
.tp-upload-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--tp-primary); border: 1px solid var(--tp-border-2); }
.tp-upload b { display: block; font: 700 14.5px/1.3 var(--tp-display); color: var(--tp-night); }
.tp-upload span { font-size: 13px; color: var(--tp-text-muted); }

/* Suggestions */
.tp-sugg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tp-sugg { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--tp-border-2); }
.tp-sugg-name { font: 700 15px/1.3 var(--tp-display); color: var(--tp-night); }
.tp-sugg-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Empty / skeleton states */
.tp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px; padding: 32px;
  border: 2px dashed var(--tp-border-4); border-radius: 22px; text-align: center; background: rgba(255, 255, 255, .35);
}
.tp-empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-accent-soft); color: var(--tp-accent-hover); }
.tp-empty-icon .ic { width: 28px; height: 28px; }
.tp-empty-title { font: 700 17px/1.3 var(--tp-display); color: var(--tp-night); }
.tp-empty-text { max-width: 380px; font-size: 14px; line-height: 1.5; color: var(--tp-text-muted-2); }
.tp-skel { background: linear-gradient(90deg, #ECE6D9 25%, #F5F1E8 37%, #ECE6D9 63%); background-size: 400% 100%; animation: tpSkel 1.4s ease infinite; border-radius: 16px; }

/* Modal */
.tp-modal-back { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 28, 38, .66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: tpFade .2s ease both; }
.tp-modal { width: min(960px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: tpIn .3s var(--tp-ease) both; }
.tp-modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--tp-border-2); }
.tp-modal-title { flex-grow: 1; min-width: 0; font: 700 16px/1.2 var(--tp-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-modal-body { flex-grow: 1; min-height: 0; background: #F5F1E8; display: flex; align-items: center; justify-content: center; }
.tp-modal-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.tp-modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.tp-spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(11, 47, 64, .25); border-top-color: var(--tp-night); border-radius: 50%; animation: tpSpin .7s linear infinite; }
.tp-spinner.is-dark { border-color: rgba(20, 48, 63, .18); border-top-color: var(--tp-primary); }
.tp-spinner.is-light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.tp-spinner.is-lg { width: 34px; height: 34px; border-width: 3.5px; }

.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Motion ---------- */
@keyframes tpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tpNew { 0% { opacity: 0; transform: translateX(-26px) scale(.97); background: #FFF1E9; border-color: #FFB590; } 55% { opacity: 1; transform: none; background: #FFF1E9; border-color: #FFB590; } 100% { background: #fff; border-color: var(--tp-border-2); } }
@keyframes tpPop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes tpShakeA { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.tp-shake { animation: tpShakeA .45s; }
@keyframes tpGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tpRingIn { from { stroke-dashoffset: 327; } }
.tp-ring { animation: tpRingIn 1.4s var(--tp-ease) both; transition: stroke-dashoffset .8s var(--tp-ease); }
@keyframes tpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tp-float { animation: tpFloat 3.2s ease-in-out infinite; }
@keyframes tpSpin { to { transform: rotate(360deg); } }
@keyframes tpSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tp-main { padding: 28px 28px 64px; }
  .tp-grid-hero { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .tp-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tp-auth-brand { flex-direction: row; align-items: center; padding: 18px 20px; gap: 16px; }
  .tp-auth-brand::before { width: 60%; inset: -20% -10% auto auto; opacity: .7; }
  .tp-auth-pitch, .tp-auth-pass { display: none; }
  .tp-auth-main { padding: 32px 18px 48px; align-items: flex-start; }
}

@media (max-width: 820px) {
  .tp-shell { flex-direction: column; height: auto; min-height: 100dvh; overflow: visible; }

  /* The sidebar becomes a sticky top bar; the menu drops down from it */
  .tp-sidebar {
    position: sticky; top: 0; z-index: 20; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 14px; overflow: visible; background: var(--tp-night); box-shadow: 0 6px 18px rgba(11, 47, 64, .25);
  }
  .tp-brand { font-size: 22px; }
  .tp-brand img { width: 32px; height: 32px; }
  .tp-brand img.wm { width: auto; height: 38px; }
  .tp-burger {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  }
  .tp-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 16px; padding: 14px 16px 18px;
    background: var(--tp-night); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 30px rgba(11, 47, 64, .35);
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .tp-menu.is-open { display: flex; }
  .tp-nav.is-on::before { display: none; }
  .tp-account { margin-top: 0; }

  .tp-main { height: auto; padding: 20px 16px 40px; overflow: visible; }
  .tp-card { padding: 18px; }
  .tp-drawer { padding: 18px; }
  .tp-band { padding: 22px 20px 0; border-radius: 22px; }
  .tp-band-stats { margin: 22px -20px 0; padding: 16px 20px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-band-actions { width: 100%; }
  .tp-band-actions > * { flex: 1; }
  .tp-band.tp-cover .tp-band-top { margin-bottom: 36px; }
  .tp-pagehead-actions { width: 100%; }
  .tp-search, .tp-toolbar-side { width: 100%; }
  .tp-toolbar-side > .tp-primary { flex: 1; }

  .tp-grid-2, .tp-grid-3, .tp-plans, .tp-form-2 { grid-template-columns: 1fr; }
  .tp-aside { width: 100% !important; }

  .tp-station { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .tp-stations::before { left: 16px; }
  .tp-station-dot { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 4px var(--tp-bg); }
  .tp-station-card { flex-wrap: wrap; gap: 12px; }
  .tp-station-thumb { width: 100%; height: 120px; }
  .tp-station-side { margin-left: auto; }

  .tp-tabs > .tp-tab { padding: 0 10px; }
  .tp-item { flex-wrap: wrap; }

  .tp-table, .tp-table-card .tp-table { display: block; overflow-x: auto; white-space: nowrap; }
  .tp-table-strong td, .tp-table-strong thead th { padding: 12px; }

  /* 16px inputs stop iOS from zooming when a field is focused */
  .tp-field, input, select, textarea { font-size: 16px; }
  .tp-del, .tp-edit { opacity: 1; }
  .tp-del.is-sm, .tp-edit.is-sm { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .tp-tabs { gap: 0; }
  .tp-tabs > .tp-tab { padding: 0 8px; font-size: 13px; }
  .tp-tabs > .tp-tab .ic { display: none; }
  .tp-form-grid .span-2 { grid-column: 1 / -1; }
  .tp-status { padding: 32px 22px; }
  .tp-plan { padding: 22px; }
  .tp-plan-price { font-size: 38px; }
}

.tp-locked-note { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--tp-border-2); font-size: 13.5px; line-height: 1.4; color: #4a5a63; }
.tp-locked-note .ic { flex-shrink: 0; width: 18px; height: 18px; }

.tp-readonly :is(form, .tp-edit, .tp-del, [data-edit]) { display: none; }
.tp-readonly .tp-note .tp-ghost { display: none; }

/* Dashboard route map */
.tp-route-controls { display: flex; gap: 8px; align-items: center; }
.tp-route-map { height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--tp-border); background: var(--tp-bg-sunken); z-index: 0; }
.tp-route-now { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tp-route-now-name { font: 800 20px/1.2 var(--tp-display); color: var(--tp-night); margin: 2px 0; }
.tp-route-now-cost { text-align: right; font: 800 20px/1.2 var(--tp-display); color: var(--tp-night); }
.tp-route-now-cost .tp-help { font-size: 13px; font-weight: 500; }
.tp-route-stops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tp-route-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--tp-border-4); background: var(--tp-surface); color: var(--tp-text); font-size: 13px; cursor: pointer; }
.tp-route-chip.is-on { background: var(--tp-primary-soft); border-color: var(--tp-primary); }
.tp-route-chip:disabled { opacity: .6; cursor: default; }
.tp-route-chip-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-night); color: #fff; font-size: 12px; font-weight: 700; }
.tp-map-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--tp-night); color: #fff; font: 800 14px/1 var(--tp-display); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11, 47, 64, .35); }
.tp-map-vehicle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; box-shadow: 0 2px 10px rgba(11, 47, 64, .4); }
@media (max-width: 600px) { .tp-route-map { height: 300px; } .tp-route-now-cost { text-align: left; } }
.tp-travelers { display: flex; align-items: center; gap: 12px; }

.tp-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--tp-border-4); border-radius: 12px; background: var(--tp-surface); cursor: pointer; }
.tp-toggle:has(input:checked) { border-color: var(--tp-primary); background: var(--tp-primary-soft); }
.tp-toggle input { width: 18px; height: 18px; flex: none; accent-color: var(--tp-primary); margin: 0; }
.tp-toggle span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--tp-night); }
.tp-toggle small { font-size: 12.5px; color: var(--tp-text-muted); }

/* City suggestions under the stop's city field */
.tp-cityopts { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto; background: var(--tp-surface, #fff); border: 1px solid var(--tp-border, rgba(0,0,0,.12)); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.tp-cityopts button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-cityopts button:hover, .tp-cityopts button:focus-visible { background: var(--tp-accent-soft, rgba(0,0,0,.06)); }
.tp-cityopts button span { font-size: .8rem; color: var(--tp-text-faint, #6b7280); }

/* ---------- Conquistas (badges) ---------- */
.tp-medal {
  --medal-a: #D9A15F; --medal-b: #9A5E2B; --medal-ink: #fff;
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--medal-ink); background: radial-gradient(120% 120% at 30% 15%, var(--medal-a) 0%, var(--medal-b) 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), 0 10px 18px -10px rgba(11, 47, 64, .7);
}
.tp-medal .ic { width: 26px; height: 26px; stroke-width: 1.9; }
.tp-medal.is-lg { width: 76px; height: 76px; }
.tp-medal.is-lg .ic { width: 34px; height: 34px; }
.tp-medal.t2 { --medal-a: #D5DEE4; --medal-b: #7F93A1; --medal-ink: var(--tp-night); }
.tp-medal.t3 { --medal-a: #F2CF73; --medal-b: #C08F1B; --medal-ink: var(--tp-night); }
.tp-medal.t4 { --medal-a: #8FD0E6; --medal-b: #2F7FA0; }
.tp-medal.t5 { --medal-a: #7FE6D6; --medal-b: #2B6FB5; }
.tp-medal.t5::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed rgba(63, 193, 201, .6); }
.tp-medal.is-locked {
  color: var(--tp-text-faint); background: var(--tp-bg-sunken); box-shadow: inset 0 0 0 2px var(--tp-border-4); opacity: .85;
}
.tp-medal.is-locked::after { display: none; }

.tp-conq-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; margin-bottom: 28px; }
.tp-conq-hero-main { display: flex; flex-direction: column; gap: 12px; }
.tp-conq-total { font-size: clamp(40px, 6vw, 60px); }
.tp-conq-total small { font-size: .4em; font-weight: 700; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.tp-conq-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tp-conq-cat-row { display: flex; justify-content: space-between; margin-bottom: 6px; font: 600 13px/1 var(--tp-body); color: rgba(255, 255, 255, .85); }
.tp-conq-cat-row b { font-family: var(--tp-display); font-variant-numeric: tabular-nums; }

.tp-conq-new {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; padding: 18px 22px; border-radius: 20px;
  background: var(--tp-success-bg); border: 1px solid #C5DFCF; color: var(--tp-success-fg);
}
.tp-conq-new p { margin: 4px 0 0; font-size: 14px; }
.tp-conq-new strong { font: 800 18px/1.2 var(--tp-display); color: var(--tp-night); }
.tp-conq-new-medals { display: flex; gap: 10px; }

.tp-conq-section { margin-bottom: 32px; }
.tp-conq-section > .tp-h2 { margin: 0 0 14px; }
.tp-conq-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tp-conq-nextcard { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--tp-border-2); }
.tp-conq-nextbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.tp-conq-nextbody strong { font: 700 15px/1.2 var(--tp-display); color: var(--tp-night); }
.tp-conq-nextbody span { font-size: 13px; color: var(--tp-text-muted); }
.tp-conq-nextbody small { font: 700 12px/1 var(--tp-display); color: var(--tp-text-muted-3); font-variant-numeric: tabular-nums; }

.tp-conq-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-conq-filters .tp-h2 { margin: 0; }
.tp-conq-cat-filter { margin-bottom: 8px; }
.tp-conq-group { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font: 800 18px/1.2 var(--tp-display); letter-spacing: -.02em; color: var(--tp-night); }
.tp-conq-empty { margin-top: 24px; }

.tp-conq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tp-conq {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 18px 16px; border-radius: 20px;
  background: #fff; border: 1px solid var(--tp-border-2); box-shadow: 0 18px 34px -30px rgba(11, 47, 64, .6);
  transition: transform .25s var(--tp-ease), box-shadow .25s var(--tp-ease);
}
.tp-conq:hover { transform: translateY(-2px); box-shadow: var(--tp-lift); }
.tp-conq .tp-medal { margin-bottom: 8px; }
.tp-conq.is-locked { background: var(--tp-surface-2); border-style: dashed; border-color: var(--tp-border-4); box-shadow: none; }
.tp-conq-title { margin: 0; font: 700 15.5px/1.25 var(--tp-display); color: var(--tp-night); }
.tp-conq.is-locked .tp-conq-title { color: var(--tp-text-muted-3); }
.tp-conq-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tp-text-muted); }
.tp-conq-foot { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; padding-top: 10px; }
.tp-conq-foot small { font: 700 12px/1 var(--tp-display); color: var(--tp-text-muted-3); font-variant-numeric: tabular-nums; }
.tp-conq-hint { align-self: flex-start; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--tp-primary-soft); color: var(--tp-primary); font: 600 11px/1 var(--tp-body); }
.tp-conq-when { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.3 var(--tp-body); color: var(--tp-success-fg); }
.tp-conq-when .ic { width: 14px; height: 14px; }
.tp-conq-tier { position: absolute; top: 16px; right: 16px; font: 700 10.5px/1 var(--tp-display); letter-spacing: .06em; text-transform: uppercase; color: var(--tp-text-faint); }
.tp-conq-flag { position: absolute; top: 14px; left: 14px; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--tp-night); color: #fff; font: 700 11px/1 var(--tp-display); z-index: 1; }

@media (max-width: 820px) {
  .tp-conq-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tp-conq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tp-conq { padding: 16px 14px 14px; }
}

/* Admin: review of city cover photos */
.tp-cityimg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.tp-cityimg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-border); border-radius: 16px; overflow: hidden; }
.tp-cityimg-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tp-bg-sunken); display: block; }
.tp-cityimg-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.tp-cityimg-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 14px/1.3 var(--tp-display); color: var(--tp-night); text-transform: capitalize; }
.tp-cityimg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-cityimg-actions > button { height: 36px; padding: 0 14px; font-size: 13px; }
