/* ==========================================================================
   360 Transport Intelligence Platform — customer pages
   Written against the site tokens in main.css (Graphite & Paper). Paper is
   the working ground; emerald is the accent; the only dark plane is the
   landing hero and the slim head band that carries the fixed nav.
   Prefix: tp-
   ========================================================================== */

body.tp-page { background: var(--surface-base); }
@media (max-width: 480px) {
  body.tp-page { --gutter: 1rem; }
}

/* ---------- Slim head band (hosts the fixed nav on working pages) ---------- */
.tp-head {
  background: var(--void);
  color: var(--paper);
  padding-top: clamp(6.6rem, 14vw, 8.2rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(142,148,145,0.16);
}
.tp-head--wizard { padding-bottom: 1.2rem; }
.tp-head__crumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pewter);
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.tp-head__crumb a { color: var(--pewter); }
.tp-head__crumb a:hover, .tp-head__crumb a:focus-visible { color: var(--360-green-400); }
.tp-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 0.8rem;
  color: var(--paper);
  max-width: 22ch;
}
.tp-head__sub { margin-top: 0.6rem; color: #bfc2c1; font-size: clamp(0.95rem, 1.2vw, 1.05rem); max-width: 60ch; line-height: 1.55; }
.tp-head__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.tp-head__aside { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pewter); }
.tp-head__aside a { color: var(--360-green-400); }

/* ---------- Landing hero (the one dark hero) ---------- */
.tp-hero .page-hero__headline { font-size: clamp(2.8rem, 7vw, 5.4rem); max-width: 12ch; }
.tp-hero .page-hero__support { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34ch; }
.tp-hero .page-hero__media { opacity: 0.42; }
@media (max-width: 480px) {
  .tp-hero .page-hero__actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.4; }
}

/* ---------- Sections ---------- */
.tp-section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.tp-section--tight { padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.tp-section--band { background: var(--surface-secondary); }
.tp-section__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.tp-section__head .h-section { margin-top: 0.6rem; }
.tp-section__lede { margin-top: 0.7rem; color: var(--text-secondary); max-width: 56ch; line-height: 1.6; }

/* ---------- Pathway tiles ---------- */
.tp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tp-tile {
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 100%;
  padding: 1.4rem 1.3rem 1.3rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 0 var(--edge-light) inset, var(--shadow-card);
  color: var(--text-primary);
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.tp-tile:hover, .tp-tile:focus-visible { border-color: var(--border-accent); transform: translateY(-2px); outline: none; }
.tp-tile:focus-visible { box-shadow: 0 0 0 2px var(--focus-ring); }
.tp-tile__num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--text-accent); }
.tp-tile__title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.tp-tile__desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.tp-tile__cta {
  margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-accent);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.tp-tile__cta svg { width: 14px; height: 14px; }
.tp-tile__icon { width: 34px; height: 34px; color: var(--360-green-500); }
@media (max-width: 1024px) { .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tp-tiles { grid-template-columns: 1fr; } }

/* ---------- Landing hero lane form ---------- */
/* hero: copy left, the price form right from 1024px; stacked with the form first on a phone */
.tp-hero .page-hero__content.tp-hero__grid { max-width: none; }
.tp-hero__grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
@media (min-width: 1024px) {
  .tp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
  .tp-hero .page-hero__headline { max-width: 11ch; }
  .tp-hero .tp-lane { margin-top: 0; max-width: none; }
}
.tp-hero__points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; color: var(--bone); font-size: 0.98rem; line-height: 1.5; }
.tp-hero__points li { display: flex; gap: 0.6rem; align-items: flex-start; }
.tp-hero__points li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.55em; border-radius: 50%; background: var(--360-green-400); }
@media (max-width: 640px) {
  .tp-hero__grid { gap: 1rem; }
  .tp-hero__copy { display: contents; }
  .tp-hero .page-hero__support { order: 3; margin-top: 1.2rem; }
  .tp-hero__points { order: 4; }
  .tp-hero .tp-lane { order: 2; margin-top: 1.2rem; }
}
.tp-lane__sub { margin: 0 0 0.9rem; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.45; }
.tp-how { border-bottom: 1px solid var(--border-subtle); }
.tp-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2rem; counter-reset: how; }
.tp-how__steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; align-items: start; }
.tp-how__n { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--360-green-500); color: var(--text-accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.tp-how__t { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.tp-how__d { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 860px) { .tp-how__steps { grid-template-columns: 1fr; } }
.tp-nowrap { white-space: nowrap; }
.tp-lane { margin-top: 1.8rem; background: var(--surface-elevated); color: var(--text-primary); padding: 1.2rem 1.2rem 1rem; box-shadow: var(--shadow-card); border: 1px solid var(--border-medium); max-width: 760px; }
.tp-lane__types { margin-bottom: 0.9rem; }
.tp-lane__types .tp-chip { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.tp-lane__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; align-items: end; }
.tp-lane__field[hidden], .tp-lane__when[hidden] { display: none; }
.tp-lane__field { margin-top: 0; }
.tp-lane__when { grid-column: 1 / span 2; }
.tp-lane__go { grid-column: 1 / span 2; }
.tp-lane__go .btn { width: 100%; justify-content: center; }
.tp-lane__foot { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.tp-lane__foot a { color: var(--text-accent); border-bottom: 1px solid var(--border-accent); }
.tp-lane .tp-input[hidden] { display: none; }
@media (min-width: 720px) {
  .tp-lane__grid { grid-template-columns: 1fr 1fr auto; }
  .tp-lane__when { grid-column: 1 / span 2; }
  .tp-lane__go { grid-column: 3; grid-row: 1; }
  .tp-lane__go .btn { width: auto; }
}
@media (max-width: 480px) { .tp-lane { padding: 1rem; } .tp-lane__grid { grid-template-columns: 1fr; } .tp-lane__when, .tp-lane__go { grid-column: 1; } }

/* ---------- Not sure router ---------- */
.tp-router { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tp-router__q { margin-top: 1.4rem; }
.tp-router__q:first-of-type { margin-top: 0; }
.tp-router__label { font-weight: 600; font-size: 1.02rem; }
.tp-router__result {
  background: var(--surface-elevated);
  border: 1px solid var(--border-accent);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  min-height: 12rem;
}
.tp-router__result[data-empty="true"] { border-style: dashed; border-color: var(--border-medium); color: var(--text-muted); }
.tp-router__result-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-top: 0.4rem; }
.tp-router__why { margin-top: 0.6rem; color: var(--text-secondary); line-height: 1.55; font-size: 0.94rem; }
.tp-router__alt { margin-top: 1rem; font-size: 0.9rem; color: var(--text-secondary); }
.tp-router__alt a { color: var(--text-accent); border-bottom: 1px solid var(--border-accent); }
@media (max-width: 860px) { .tp-router { grid-template-columns: 1fr; } }

/* ---------- Chips (selectable) ---------- */
.tp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.tp-chip {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.2;
  transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.tp-chip:hover { border-color: var(--360-green-500); background: var(--brand-primary-soft); }
.tp-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tp-chip[aria-pressed="true"], .tp-chip.is-selected { border-color: var(--360-green-500); background: var(--brand-primary-soft-2); box-shadow: inset 3px 0 0 var(--360-green-500); }
.tp-chip--tag { min-height: 0; padding: 0.3rem 0.6rem; font-size: 0.78rem; border-color: var(--border-medium); background: var(--surface-base); cursor: default; }
.tp-chip--tag:hover { border-color: var(--border-medium); background: var(--surface-base); }

/* ---------- Vehicle catalogue ---------- */
.tp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.tp-vcard {
  display: flex; flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 0 var(--edge-light) inset, var(--shadow-card);
}
.tp-vcard__media {
  background: var(--surface-secondary);
  padding: 0.6rem 0.8rem;
  min-height: 118px;
  display: flex; align-items: center; justify-content: center;
}
.tp-vcard__media img { width: 100%; height: auto; max-height: 140px; object-fit: contain; }
.tp-vcard__media img[hidden] { display: none; }
.tp-vcard__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tp-vcard__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.tp-vcard__class { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.tp-vcard__desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.tp-vcard__cap { font-size: 0.86rem; color: var(--text-primary); }
.tp-vcard__cap strong { font-weight: 600; }
.tp-vcard__ref { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-secondary); letter-spacing: 0.02em; line-height: 1.6; }
.tp-vcard__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.tp-vcard__actions .btn { padding: 0.75rem 1rem; font-size: 0.7rem; min-height: 44px; }
.tp-vcard__recommend { width: 100%; justify-content: center; }

.tp-detail { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tp-detail__media {
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.tp-detail__media img { width: 100%; height: auto; }
.tp-detail__media img[hidden] { display: none; }
.tp-detail__media + .tp-detail__media { margin-top: 1rem; }
.tp-detail__caption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.tp-detail__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.tp-detail__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.tp-back { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.tp-back:hover { color: var(--text-accent); }
@media (max-width: 860px) { .tp-detail { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.tp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface-elevated); }
.tp-table th, .tp-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.tp-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.tp-table td.num, .tp-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-table--kv td:first-child { color: var(--text-secondary); width: 50%; }
.tp-table--kv td:last-child { font-variant-numeric: tabular-nums; }
.tp-table tbody tr:last-child td { border-bottom: 0; }
.tp-table--compact td, .tp-table--compact th { padding: 0.45rem 0.6rem; font-size: 0.84rem; }

/* ---------- Forms ---------- */
.tp-form { display: block; }
.tp-field { display: block; margin-top: 1.1rem; }
.tp-field:first-child { margin-top: 0; }
.tp-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.4rem; }
.tp-label .opt { color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.tp-input, .tp-select, .tp-textarea {
  display: block; width: 100%; min-height: 46px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 1rem;
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.tp-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.tp-textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.tp-input:focus, .tp-select:focus, .tp-textarea:focus { outline: none; border-color: var(--360-green-500); box-shadow: 0 0 0 2px rgba(var(--360-green-rgb), 0.18); }
.tp-input[aria-invalid="true"], .tp-select[aria-invalid="true"], .tp-textarea[aria-invalid="true"] { border-color: var(--danger); }
.tp-input::placeholder, .tp-textarea::placeholder { color: var(--pewter-dim); }
.tp-input--short { max-width: 10rem; }
.tp-input--num { max-width: 8rem; text-align: right; font-variant-numeric: tabular-nums; }
.tp-hint { display: block; margin-top: 0.35rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.tp-field-error { display: block; margin-top: 0.35rem; font-size: 0.84rem; color: var(--danger); }
.tp-field-error[hidden] { display: none; }
.tp-grid { display: grid; gap: 0.9rem 1rem; }
.tp-grid[hidden], .tp-chips[hidden], .tp-actions[hidden], .btn[hidden], .tp-wiz__summary[hidden] { display: none; }
.tp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-grid--addr { grid-template-columns: 1.6fr 0.8fr 0.8fr; }
.tp-grid--addr2 { grid-template-columns: 2fr 1fr; }
.tp-grid .tp-field { margin-top: 0; }
@media (max-width: 560px) {
  .tp-grid--2, .tp-grid--3 { grid-template-columns: 1fr; }
  .tp-grid--addr { grid-template-columns: 1fr 1fr; }
  .tp-grid--addr .tp-field:first-child { grid-column: 1 / -1; }
  .tp-grid--addr2 { grid-template-columns: 1.4fr 1fr; }
}
/* A fold keeps the optional questions (deliver by, must-haves) out of the way until they are wanted. */
.tp-fold { margin-top: 1rem; }
.tp-fold[hidden] { display: none; }
.tp-fold summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.tp-fold summary::-webkit-details-marker { display: none; }
.tp-fold summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--360-green-500); border-bottom: 2px solid var(--360-green-500); transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease-standard); flex: none; }
.tp-fold[open] summary::before { transform: rotate(45deg); }
.tp-fold summary:hover { color: var(--360-green-600); }
.tp-fold summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tp-fold > .tp-label { margin-top: 0.4rem; }
.tp-picked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; margin-bottom: 1.2rem; font-size: 1rem; }
.tp-picked[hidden] { display: none; }
.tp-picked strong { font-family: var(--font-display); font-weight: 600; }
.tp-check { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding: 0.5rem 0; cursor: pointer; font-size: 0.95rem; line-height: 1.4; }
.tp-check input { width: 22px; height: 22px; margin: 0.05rem 0 0; flex: none; accent-color: var(--360-green-500); }
.tp-check small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.tp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin-top: 0.4rem; }
@media (max-width: 560px) { .tp-checks { grid-template-columns: 1fr; } }
.tp-fieldset { border: 0; padding: 0; margin: 1.4rem 0 0; min-width: 0; }
.tp-fieldset legend { padding: 0; font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.tp-error {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--danger-border); background: var(--danger-soft); color: var(--danger);
  font-size: 0.9rem; line-height: 1.5;
}
.tp-error[hidden] { display: none; }
.tp-note { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--border-medium); background: var(--surface-elevated); font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); }
.tp-note--accent { border-color: var(--border-accent); background: var(--surface-highlight); color: var(--text-primary); }
.tp-note strong { color: var(--text-primary); }
.tp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin-top: 1.6rem; }
.tp-actions--end { justify-content: flex-end; }
.tp-actions--between { justify-content: space-between; }
@media (max-width: 480px) {
  .tp-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.4; }
  .tp-actions .btn--ghost { width: auto; }
}
.btn--small { padding: 0.7rem 1.1rem; font-size: 0.7rem; min-height: 44px; }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.tp-link { color: var(--text-accent); border-bottom: 1px solid var(--border-accent); background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; font: inherit; cursor: pointer; }
.tp-link:hover { color: var(--360-green-600); }
.tp-linkbtn { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-accent); background: none; border: 0; padding: 0.4rem 0; cursor: pointer; }
.tp-linkbtn:hover, .tp-linkbtn:focus-visible { color: var(--360-green-600); }
.tp-linkbtn--muted { color: var(--text-secondary); }

/* Postcode suggestions */
.tp-suggest-wrap { position: relative; }
.tp-suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  margin: 0; padding: 0.3rem 0; list-style: none;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  max-height: 16rem; overflow-y: auto;
}
.tp-suggest[hidden] { display: none; }
.tp-suggest li { padding: 0.6rem 0.8rem; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; cursor: pointer; font-size: 0.92rem; }
.tp-suggest li[aria-selected="true"], .tp-suggest li:hover { background: var(--brand-primary-soft-2); }
.tp-suggest li span:last-child { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ---------- Panels / cards ---------- */
.tp-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 0 var(--edge-light) inset, var(--shadow-card);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.tp-panel + .tp-panel { margin-top: 1.2rem; }
.tp-panel__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.tp-panel__sub { margin-top: 0.4rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }
.tp-panel--soft { background: var(--surface-secondary); box-shadow: none; }
.tp-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.tp-layout__side { position: sticky; top: 1rem; }
@media (max-width: 900px) { .tp-layout { grid-template-columns: 1fr; } .tp-layout__side { position: static; } }

/* ---------- Wizard (book) ---------- */
.tp-wiz { max-width: 720px; margin-inline: auto; }
.tp-wiz__progress { margin-bottom: 1.2rem; }
.tp-wiz__track { height: 3px; background: var(--border-medium); overflow: hidden; }
.tp-wiz__fill { height: 100%; background: var(--360-green-500); transition: width var(--dur-med) var(--ease-standard); }
.tp-wiz__label { margin-top: 0.5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 1rem; }
.tp-wiz__dot { color: var(--text-muted); }
.tp-wiz__ring { color: var(--360-green-600); white-space: nowrap; min-height: 24px; display: inline-flex; align-items: center; }
.tp-wiz__ring:hover, .tp-wiz__ring:focus-visible { color: var(--text-primary); }
@media (max-width: 640px) { .tp-head--wizard .tp-head__aside { display: none; } }
.tp-wiz__step {
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 0 var(--edge-light) inset, var(--shadow-card);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  animation: tp-rise var(--dur-med) var(--ease-standard) both;
}
@keyframes tp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tp-wiz__step { animation: none; } }
.tp-wiz__kicker { margin-bottom: 1rem; }
.tp-wiz__q { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.tp-wiz__help { margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.55; max-width: 56ch; }
.tp-wiz__body { margin-top: 1.4rem; }
.tp-wiz__nav { margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tp-wiz__back { min-height: 44px; display: inline-flex; align-items: center; padding: 0.6rem 0.6rem 0.6rem 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.tp-wiz__back:hover { color: var(--text-primary); }
.tp-wiz__back[hidden] { visibility: hidden; display: inline-flex; }
.tp-wiz__summary { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.8rem; }
.tp-wiz__summary span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--360-green-500); margin-right: 0.4rem; vertical-align: middle; }
.tp-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--border-medium); margin-bottom: 1.2rem; }
.tp-tab {
  min-height: 46px; padding: 0.7rem 1rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tp-tab:hover { color: var(--text-primary); }
.tp-tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--360-green-500); }
.tp-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.tp-tabpanel[hidden] { display: none; }

/* Vehicle picker inside the wizard */
.tp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.tp-pick[hidden] { display: none; }
/* The vehicle the customer arrived with (from a landing card): shown large, picker hidden until Change */
.tp-vpick { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: 0.6rem 1.2rem; align-items: center; padding: 0.9rem 1.1rem; margin-bottom: 1rem; background: var(--surface-highlight); border: 1px solid var(--border-accent); }
.tp-vpick[hidden] { display: none; }
.tp-vpick__img { width: 100%; max-height: 90px; object-fit: contain; }
.tp-vpick__img[hidden] { display: none; }
.tp-vpick__kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.tp-vpick__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; margin: 0.15rem 0 0; }
.tp-vpick__cap { font-size: 0.86rem; color: var(--text-secondary); margin: 0.15rem 0 0; }
@media (max-width: 560px) { .tp-vpick { grid-template-columns: 1fr; } .tp-vpick__img { max-height: 110px; } }
.tp-tabs[hidden] { display: none; }
.tp-pick__item {
  text-align: left; padding: 0.6rem; border: 1px solid var(--border-medium); background: var(--surface-base);
  display: flex; flex-direction: column; gap: 0.3rem; min-height: 44px;
}
.tp-pick__item img { width: 100%; height: 76px; object-fit: contain; }
.tp-pick__item img[hidden] { display: none; }
.tp-pick__item:hover { border-color: var(--360-green-500); }
.tp-pick__item[aria-pressed="true"] { border-color: var(--360-green-500); background: var(--brand-primary-soft-2); box-shadow: inset 3px 0 0 var(--360-green-500); }
.tp-pick__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tp-pick__name { font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.tp-pick__ref { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }

/* Freight lines */
.tp-lines { display: flex; flex-direction: column; gap: 0.8rem; }
.tp-line { border: 1px solid var(--border-medium); background: var(--surface-base); padding: 0.9rem; position: relative; }
.tp-line__head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.6rem; }
.tp-line__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-accent); }
.tp-line__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0.7rem; }
.tp-line__dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.tp-line__flags { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 0.4rem; }
.tp-line__flags .tp-check { min-height: 40px; padding: 0.3rem 0; }
@media (max-width: 560px) { .tp-line__grid { grid-template-columns: 1fr 1fr; } .tp-line__dims { grid-template-columns: 1fr 1fr; } }
.tp-line .tp-label { font-size: .72rem; }
.tp-line .tp-input, .tp-line .tp-select { min-height: 42px; font-size: 0.94rem; }
.tp-add { margin-top: 0.8rem; }

/* Quote options */
.tp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tp-option {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; text-align: left;
  font: inherit; color: inherit; cursor: pointer; width: 100%;
  padding: 1.2rem 1.2rem 1.1rem;
  background: var(--surface-elevated); border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
}
.tp-option--recommended { border-color: var(--360-green-500); box-shadow: 0 0 0 1px var(--360-green-500), var(--shadow-card); }
.tp-option[aria-pressed="true"] { background: var(--surface-highlight); }
.tp-option__media { display: flex; align-items: center; justify-content: center; width: calc(100% + 2.4rem); margin: -1.2rem -1.2rem 0.2rem; padding: 0.7rem 1rem; height: 112px; background: var(--surface-secondary); border-bottom: 1px solid var(--border-subtle); }
.tp-option__img { width: 100%; height: 100%; object-fit: contain; }
.tp-option__img[hidden] { display: none; }
.tp-option__media--shared { gap: 0.35rem; flex-wrap: wrap; align-content: center; }
.tp-option__media--shared i { width: 26px; height: 18px; border: 2px solid var(--360-green-500); border-radius: 2px; background: repeating-linear-gradient(90deg, var(--360-green-500) 0 3px, transparent 3px 8px); opacity: 0.9; }
.tp-option__media--shared b { flex-basis: 100%; text-align: center; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
.tp-option__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-accent); }
.tp-option__service { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.tp-option__vehicle { font-size: 0.88rem; color: var(--text-secondary); }
.tp-option__price { margin-top: 0.4rem; font-size: 1.7rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tp-option__price small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-secondary); margin-top: 0.2rem; }
.tp-option__gst { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); margin-left: 0.15rem; }
.tp-option__firm { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.tp-option__firm::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--360-green-500); flex: none; }
.tp-option__firm--estimate { font-weight: 500; color: var(--text-secondary); }
.tp-option__firm--estimate::before { background: var(--pewter); }
.tp-option__firm:empty { display: none; }
.tp-option__why { font-size: 0.85rem; line-height: 1.45; color: var(--text-secondary); margin-top: 0.35rem; }
.tp-option__promise { font-size: 0.9rem; line-height: 1.5; margin-top: 0.45rem; }
.tp-option__promise:empty { display: none; }
#options-summary { margin: 0.2rem 0 0.4rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.tp-option__list { margin: 0.3rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.tp-option__list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.tp-option__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.5em; border: 1.5px solid var(--360-green-500); border-radius: 50%; }
.tp-option__list--ex li::before { border-color: var(--pewter); }
.tp-option__list-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.6rem; }
.tp-options--one { grid-template-columns: 1fr; }
.tp-option--static { cursor: default; }
.tp-alts { list-style: none; margin: 0.4rem 0 0; padding: 0; border-top: 1px solid var(--border-medium); }
.tp-alt { display: grid; grid-template-columns: 1fr auto auto; gap: 0.3rem 1.2rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--border-medium); }
.tp-alt__name { font-weight: 600; }
.tp-alt__meta { grid-column: 1; font-size: 0.82rem; color: var(--text-secondary); }
.tp-alt__price { grid-column: 2; grid-row: 1 / span 2; font-variant-numeric: tabular-nums; font-weight: 600; }
.tp-alt .tp-linkbtn { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 480px) { .tp-alt { grid-template-columns: 1fr auto; } .tp-alt .tp-linkbtn { grid-column: 1 / span 2; grid-row: 3; justify-self: start; } }
.tp-option__choose { margin-top: auto; padding-top: 0.8rem; }

/* ---------- The one booking flow (22 Sep 2026): job types, drops, price grid, book screen ---------- */
.tp-jobtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.4rem; }
.tp-jobtype { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; text-align: left; padding: 0.9rem 1rem; min-height: 44px; border: 1px solid var(--border-strong); background: var(--surface-elevated); color: var(--text-primary); font: inherit; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard); }
.tp-jobtype strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.tp-jobtype span { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.tp-jobtype:hover { border-color: var(--360-green-500); }
.tp-jobtype:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tp-jobtype[aria-pressed="true"] { border-color: var(--360-green-500); background: var(--brand-primary-soft-2); box-shadow: inset 3px 0 0 var(--360-green-500); }
@media (max-width: 640px) { .tp-jobtypes { grid-template-columns: 1fr; } }
.tp-addr legend { display: flex; align-items: center; gap: 0.8rem; }
.tp-addr legend .tp-linkbtn { min-height: 0; padding: 0; }
.tp-line__grid--3 { grid-template-columns: 1.7fr 0.7fr 1.5fr; }
.tp-line__more { margin-top: 0.6rem; }
.tp-line__more summary { cursor: pointer; font-size: 0.84rem; color: var(--text-secondary); padding: 0.3rem 0; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.tp-line__more summary::-webkit-details-marker { display: none; }
.tp-line__more summary::before { content: "+"; font-family: var(--font-mono); color: var(--text-accent); }
.tp-line__more[open] summary::before { content: "–"; }
.tp-chips--multi .tp-chip[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--360-green-500); }
.tp-fleet-row { grid-template-columns: 2fr 0.8fr auto; }
.tp-trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border-medium); font-size: 0.82rem; color: var(--text-secondary); }
.tp-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.tp-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--360-green-500); flex: none; }
.tp-trust[hidden] { display: none; }
.tp-option__badge { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.45rem; border: 1px solid var(--border-strong); font-style: normal; font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); vertical-align: middle; }
.tp-option__run { font-size: 0.86rem; color: var(--text-primary); font-weight: 600; margin-top: 0.2rem; line-height: 1.4; }
.tp-more { margin-top: 1rem; }
.tp-more summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); padding: 0.5rem 0; }
.tp-more summary:hover { color: var(--text-primary); }
.tp-notfit { margin: 0.5rem 0 0; padding-left: 1rem; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; }
.tp-emailquote { margin-top: 1.2rem; font-size: 0.9rem; }
.tp-policy { border: 1px solid var(--border-medium); background: var(--surface-base); padding: 1rem 1.1rem; font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary); }
.tp-policy p + p { margin-top: 0.6rem; }
.tp-policy b { color: var(--text-primary); }
.tp-policy a { color: var(--text-link); text-decoration: underline; }
.tp-policy .tp-check { margin-top: 0.6rem; color: var(--text-primary); }
.tp-savedsite { margin-bottom: 0.8rem; }
.tp-savedsite[hidden] { display: none; }
.tp-next { margin: 1.2rem auto 0; max-width: 40ch; padding-left: 1.2rem; text-align: left; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }
.tp-head__aside a { color: var(--360-green-400); }
@media (max-width: 480px) { .tp-line__grid--3 { grid-template-columns: 1fr 1fr; } .tp-line__grid--3 > div:first-child { grid-column: 1 / span 2; } .tp-fleet-row { grid-template-columns: 1fr 1fr; } }
.tp-option__choose .btn { width: 100%; justify-content: center; }
.tp-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border: 1px solid var(--border-medium); color: var(--text-secondary); white-space: nowrap;
}
.tp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pewter); }
.tp-pill--fixed::before, .tp-pill--good::before { background: var(--360-green-500); }
.tp-pill--calculated::before { background: var(--360-green-400); }
.tp-pill--indicative::before, .tp-pill--warn::before { background: var(--warning); }
.tp-pill--manual_review::before, .tp-pill--bad::before { background: var(--danger); }
.tp-review-card { border: 1px dashed var(--border-strong); background: var(--surface-base); padding: 1.3rem; margin-top: 1rem; }

/* ---------- Stats and charts ---------- */
.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.tp-stat { background: var(--surface-elevated); border: 1px solid var(--border-medium); padding: 0.9rem 1rem; }
.tp-stat__label { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.3; }
.tp-stat__value { margin-top: 0.3rem; font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.tp-stat__sub { margin-top: 0.25rem; font-size: 0.76rem; color: var(--text-muted); }
.tp-stat--hero .tp-stat__value { font-size: 2.6rem; }
.tp-chart { margin-top: 1rem; }
.tp-chart svg { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.tp-chart__title { font-size: 0.9rem; font-weight: 600; }
.tp-chart__sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.tp-chart .bar { fill: var(--360-green-500); }
.tp-chart .bar:hover { fill: var(--360-green-600); }
.tp-chart .grid { stroke: var(--border-subtle); stroke-width: 1; }
.tp-chart .axis { fill: var(--pewter-dim); font-size: 10px; }
.tp-chart .lbl { fill: var(--ink); font-size: 10px; font-weight: 600; }
.tp-score { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.tp-score__ring { width: 92px; height: 92px; flex: none; }
.tp-score__ring circle.track { stroke: var(--360-green-100); }
.tp-score__ring circle.fill { stroke: var(--360-green-500); transition: stroke-dashoffset var(--dur-med) var(--ease-standard); }
.tp-score__ring[data-band="poor"] circle.fill, .tp-score__ring[data-band="low"] circle.fill { stroke: var(--danger); }
.tp-score__ring[data-band="fair"] circle.fill { stroke: var(--warning); }
.tp-score__ring text { font-family: var(--font-body); font-weight: 600; font-size: 24px; fill: var(--ink); }
.tp-score__band { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.tp-score__desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.2rem; max-width: 46ch; }
.tp-issues { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tp-issue { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.7rem 0.9rem; border: 1px solid var(--border-subtle); background: var(--surface-elevated); font-size: 0.88rem; }
.tp-issue__count { font-family: var(--font-mono); font-size: 0.8rem; min-width: 3ch; text-align: right; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.tp-issue__count--error { color: var(--danger); }
.tp-issue__msg { line-height: 1.5; }
.tp-issue__fix { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }

/* ---------- Compare: steps, drop zone, mapping ---------- */
.tp-steps { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tp-steps__item {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 36px; padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-medium); font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.tp-steps__item[data-state="active"] { border-color: var(--360-green-500); color: var(--text-primary); }
.tp-steps__item[data-state="done"] { color: var(--text-accent); border-color: var(--border-accent); }
.tp-steps__item[data-state="done"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--360-green-500); }
.tp-drop {
  display: block; width: 100%; margin-top: 0.4rem;
  border: 1px dashed var(--border-strong); background: var(--surface-elevated);
  padding: clamp(1.6rem, 5vw, 2.8rem) 1.2rem; text-align: center; cursor: pointer; color: var(--text-secondary);
  transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.tp-drop:hover, .tp-drop.is-over { border-color: var(--360-green-500); background: var(--surface-highlight); }
.tp-drop:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tp-drop__cue { display: block; font-size: 1.05rem; color: var(--text-primary); font-weight: 600; }
.tp-drop__hint { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.tp-drop__btn { margin-top: 1rem; }
.tp-file { margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-accent); flex-wrap: wrap; }
.tp-map { display: flex; flex-direction: column; gap: 0.4rem; }
.tp-map__row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.7rem; border: 1px solid var(--border-subtle); background: var(--surface-elevated); }
.tp-map__field { font-size: 0.9rem; font-weight: 600; }
.tp-map__field small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.74rem; }
.tp-map__row .tp-select { min-height: 40px; font-size: 0.9rem; }
@media (max-width: 560px) { .tp-map__row { grid-template-columns: 1fr; } }
.tp-cols { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tp-opps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.tp-opp { background: var(--surface-elevated); border: 1px solid var(--border-medium); padding: 1.2rem; box-shadow: var(--shadow-card); }
.tp-opp__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.tp-opp__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.tp-opp__impact { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-opp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.4rem; margin-top: 0.9rem; font-size: 0.88rem; line-height: 1.5; }
.tp-opp__grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.3rem; font-weight: 500; }
.tp-opp__grid ul { padding-left: 1rem; list-style: disc; color: var(--text-secondary); }
@media (max-width: 560px) { .tp-opp__grid { grid-template-columns: 1fr; } }

/* ---------- Fleet builder ---------- */
.tp-fleet-rows { display: flex; flex-direction: column; gap: 0.7rem; }
.tp-fleet-row { display: grid; grid-template-columns: 2fr 0.7fr 1.2fr auto auto; gap: 0.6rem; align-items: end; padding: 0.8rem; border: 1px solid var(--border-medium); background: var(--surface-base); }
.tp-fleet-row .tp-field { margin-top: 0; }
.tp-fleet-row .tp-check { min-height: 46px; }
@media (max-width: 720px) { .tp-fleet-row { grid-template-columns: 1fr 1fr; } .tp-fleet-row .tp-field:first-child { grid-column: 1 / -1; } }
.tp-estimate { margin-top: 0; }
.tp-estimate__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.tp-estimate__cell { background: var(--surface-base); border: 1px solid var(--border-subtle); padding: 0.8rem 0.9rem; }
.tp-estimate__cell small { display: block; font-size: 0.74rem; color: var(--text-muted); }
.tp-estimate__cell strong { display: block; font-size: 1.35rem; font-weight: 600; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.tp-estimate__cell em { display: block; font-style: normal; font-size: 0.74rem; color: var(--text-secondary); margin-top: 0.1rem; }
.tp-assume { margin-top: 1rem; padding-left: 1rem; list-style: disc; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.tp-assume li + li { margin-top: 0.25rem; }

/* ---------- Account ---------- */
.tp-list { display: flex; flex-direction: column; gap: 0.6rem; }
.tp-row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: center; padding: 0.9rem 1rem; background: var(--surface-elevated); border: 1px solid var(--border-medium); }
.tp-row--btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tp-row--btn:hover, .tp-row--btn:focus-visible { border-color: var(--360-green-500); outline: none; }
.tp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tp-timeline__step { display: grid; grid-template-columns: 18px 1fr; gap: 0.8rem; position: relative; padding-bottom: 1rem; }
.tp-timeline__step::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--border-medium); }
.tp-timeline__step:last-child::before { display: none; }
.tp-timeline__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface-elevated); margin-top: 1px; }
.tp-timeline__step.is-done .tp-timeline__dot { background: var(--360-green-500); border-color: var(--360-green-500); }
.tp-timeline__step.is-current .tp-timeline__dot { border-color: var(--360-green-500); box-shadow: 0 0 0 3px var(--brand-primary-soft-2); }
.tp-timeline__label { font-weight: 600; color: var(--text-muted); }
.tp-timeline__step.is-done .tp-timeline__label, .tp-timeline__step.is-current .tp-timeline__label { color: var(--text-primary); }
.tp-timeline__detail { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }
.tp-timeline__detail a { color: var(--text-link); text-decoration: underline; }
.tp-timeline__event { display: block; }
.tp-timeline__event + .tp-timeline__event { margin-top: 0.15rem; }
.tp-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.tp-stops b { color: var(--text-primary); }
.tp-row__main { min-width: 0; }
.tp-row__title { font-weight: 600; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.tp-row__meta { margin-top: 0.2rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.tp-row__meta .tp-pill { margin-right: 0.4rem; vertical-align: middle; }
.tp-row__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .tp-row { grid-template-columns: 1fr; } .tp-row__actions { justify-content: flex-start; } }
/* Regular runs (account): one panel per schedule, the next four weeks as a list with skip / run anyway */
.tp-run { margin-top: 0.9rem; }
.tp-rundays { list-style: none; margin: 0.4rem 0 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.tp-runday { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.92rem; }
.tp-runday__date { display: flex; flex-direction: column; gap: 0.1rem; min-width: 7.5rem; }
.tp-runday__date small { font-size: 0.78rem; color: var(--text-muted); }
.tp-runday__state { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.tp-runday__state .tp-pill { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.tp-run .tp-fold { margin-top: 0.8rem; }
.tp-empty { padding: 1.6rem 1rem; border: 1px dashed var(--border-medium); color: var(--text-muted); text-align: center; font-size: 0.92rem; }
.tp-signin { max-width: 460px; }
.tp-code { letter-spacing: 0.3em; font-family: var(--font-mono); font-size: 1.3rem; text-align: center; }
.tp-who { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; font-size: 0.9rem; color: var(--text-secondary); }
.tp-who strong { color: var(--text-primary); }

/* ---------- Book a vehicle (landing): the renders large, one card per class ---------- */
.tp-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.tp-fleet__card { display: flex; flex-direction: column; background: var(--surface-elevated); border: 1px solid var(--border-medium); box-shadow: 0 1px 0 var(--edge-light) inset, var(--shadow-card); transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.tp-fleet__card:hover { border-color: var(--border-accent); }
.tp-fleet__media { display: flex; align-items: center; justify-content: center; height: 136px; box-sizing: border-box; padding: 0.8rem 1rem; background: var(--surface-secondary); }
.tp-fleet__media img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-med) var(--ease-standard); }
.tp-fleet__card:hover .tp-fleet__media img { transform: translateX(6px); }
.tp-fleet__media img[hidden] { display: none; }
.tp-fleet__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.tp-fleet__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; margin: 0; }
.tp-fleet__cap { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.tp-fleet__actions { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; gap: 1rem; }
.tp-fleet__card--any { grid-column: 1 / -1; background: var(--surface-highlight); border-color: var(--border-accent); }
.tp-fleet__card--any .tp-fleet__body { padding: 1.4rem 1.4rem 1.3rem; max-width: 62ch; }
.tp-fleet__card--any .tp-fleet__cap { font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .tp-fleet__card:hover .tp-fleet__media img { transform: none; } }
@media (max-width: 640px) {
  .tp-fleet { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 0.8rem; padding: 0 0 0.6rem; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tp-fleet::-webkit-scrollbar { display: none; }
  .tp-fleet__card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .tp-fleet__card--any { flex-basis: min(86vw, 320px); }
}

/* ---------- Toast, loading, demo, misc ---------- */
.tp-toast {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 300; max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.1rem; background: var(--carbon); color: var(--paper); font-size: 0.9rem; line-height: 1.4;
  box-shadow: var(--shadow-elevated); border-left: 3px solid var(--360-green-400);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard);
}
.tp-toast.is-visible { opacity: 1; }
.tp-toast--error { border-left-color: var(--danger-tint); }
.tp-loading { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.9rem; min-height: 44px; }
.tp-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--border-medium); border-top-color: var(--360-green-500); border-radius: 50%; animation: tp-spin 0.8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-demo {
  background: var(--warning); color: #ffffff; font-size: 0.82rem; line-height: 1.4;
  padding: 0.5rem var(--gutter); text-align: center; font-family: var(--font-mono); letter-spacing: 0.04em;
}
.tp-demo[hidden] { display: none; }
.tp-mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.tp-muted { color: var(--text-muted); }
.tp-small { font-size: 0.84rem; }
.tp-mt { margin-top: 1rem; }
.tp-mt-lg { margin-top: 2rem; }
.tp-inline-list { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.88rem; color: var(--text-secondary); }
.tp-done { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem; }
.tp-done__mark { width: 56px; height: 56px; margin: 0 auto 1rem; border: 2px solid var(--360-green-500); border-radius: 50%; display: grid; place-items: center; color: var(--360-green-500); }
.tp-done__mark svg { width: 26px; height: 26px; }
.tp-done__ref { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.1em; margin-top: 0.6rem; color: var(--text-accent); }
.tp-kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; }
.tp-kv dt { color: var(--text-muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.2rem; }
.tp-kv dd { margin: 0; }
.tp-included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.tp-included h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 0.6rem; font-weight: 500; }
.tp-included ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; color: var(--text-primary); }
.tp-included li { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.tp-included li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.55em; border: 1.5px solid var(--360-green-500); border-radius: 50%; }
.tp-included--ex li::before { border-color: var(--pewter); }
@media (max-width: 640px) { .tp-included { grid-template-columns: 1fr; } }
/* ---------------- driver job sheet (/transport/drive/) ----------------
   A phone in a cab, often in sun, sometimes in gloves: one column, big type, one primary
   action at a time, tap targets 56px, links to maps and the phone dialer. Same tokens as
   the rest of the site so it reads as 360 and works in both colour schemes. */
body.dr-page { background: var(--surface-base); }
.dr-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem var(--gutter); background: var(--carbon); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.08); }
.dr-bar__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); }
.dr-bar__brand img { width: 28px; height: 28px; }
.dr-bar__ring { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--360-green-400); color: var(--360-green-400); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.dr-bar__ring:hover, .dr-bar__ring:focus-visible { background: rgba(var(--360-green-400-rgb), 0.14); }
.dr-main { max-width: 40rem; margin: 0 auto; padding: 1rem var(--gutter) 3rem; display: grid; gap: 1rem; }
.dr-main > div { display: grid; gap: 1rem; }
#pod-save { margin-top: 1.1rem; }
.dr-state { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.dr-state__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.dr-state__text { color: var(--text-secondary); max-width: 40ch; line-height: 1.55; }
.dr-card { background: var(--surface-elevated); border: 1px solid var(--border-medium); padding: 1.1rem 1.1rem 1.2rem; }
.dr-card--soft { background: var(--surface-secondary); border-color: transparent; }
.dr-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.dr-card__sub { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 0.6rem; }
.dr-ref { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.1em; color: var(--text-accent); }
.dr-lane { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.2; margin-top: 0.35rem; }
.dr-when { margin-top: 0.4rem; font-weight: 600; }
.dr-freight, .dr-hello { margin-top: 0.4rem; color: var(--text-secondary); line-height: 1.5; }
.dr-notes { margin-top: 0.6rem; padding: 0.7rem 0.8rem; background: var(--warning-soft); border-left: 3px solid var(--warning); line-height: 1.5; font-size: 0.95rem; }
.dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; padding: 0 1.3rem; border: 1px solid var(--border-strong); background: var(--surface-elevated); color: var(--text-primary); font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; text-decoration: none; text-align: center; }
.dr-btn--primary { background: var(--360-green-500); border-color: var(--360-green-500); color: #ffffff; }
.dr-btn--primary:hover, .dr-btn--primary:focus-visible { background: var(--360-green-600); border-color: var(--360-green-600); }
.dr-btn--ghost { background: transparent; }
.dr-btn--ghost:hover, .dr-btn--ghost:focus-visible { border-color: var(--360-green-500); color: var(--text-accent); }
.dr-btn--big { width: 100%; min-height: 64px; font-size: 1.15rem; }
.dr-btn--sm { min-height: 44px; font-size: 0.92rem; padding: 0 1rem; }
.dr-btn--file { width: 100%; }
.dr-btn:disabled, .dr-btn.is-busy { opacity: 0.6; cursor: wait; }
.dr-next { display: grid; gap: 0.5rem; }
.dr-next__hint { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; text-align: center; min-height: 1.2em; }
.dr-stops { display: grid; gap: 0.8rem; }
.dr-stop { background: var(--surface-elevated); border: 1px solid var(--border-medium); padding: 1rem 1.1rem; display: grid; gap: 0.35rem; }
.dr-stop.is-next { border-color: var(--360-green-500); box-shadow: inset 4px 0 0 var(--360-green-500); }
.dr-stop.is-done { background: var(--surface-secondary); border-color: transparent; }
.dr-stop__kind { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.dr-stop__state { font-weight: 600; color: var(--text-accent); font-size: 0.92rem; }
.dr-stop__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.dr-stop__addr { font-size: 1.02rem; line-height: 1.45; }
.dr-stop__addr a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.dr-stop__meta { color: var(--text-secondary); font-size: 0.95rem; }
.dr-stop__meta a { color: var(--text-link); text-decoration: underline; }
.dr-stop__notes { margin-top: 0.2rem; padding: 0.6rem 0.7rem; background: var(--surface-secondary); font-size: 0.95rem; line-height: 1.5; }
.dr-stop__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.dr-input { font-size: 1.05rem; min-height: 52px; }
.dr-check { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 0.9rem; font-size: 0.98rem; line-height: 1.45; cursor: pointer; }
.dr-check input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--360-green-500); flex: none; }
.dr-sig { position: relative; background: #ffffff; border: 1px dashed var(--border-strong); }
.dr-sig canvas { display: block; width: 100%; height: auto; touch-action: none; }
.dr-sig__hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pewter-dim); pointer-events: none; font-size: 0.95rem; }
.dr-files { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.dr-files li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.dr-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.dr-cnd { margin-top: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--border-medium); }
.dr-cnd .tp-chip { min-height: 44px; }
.dr-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; line-height: 1.45; }
.dr-foot { text-align: center; color: var(--text-muted); font-size: 0.86rem; margin-top: 0.5rem; }
.dr-foot a { color: var(--text-link); }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Print or save as PDF on the price screen (book.js): the summary, the option
   cards and the stamp print; the chrome, the other screens and the controls do not. */
.tp-print-stamp { display: none; }
@media print {
  .tp-print-stamp { display: block; margin-top: 1rem; font-size: 0.8rem; color: #000; }
  .tp-wiz__progress, .tp-wiz__nav, .tp-emailquote, .tp-trust, .tp-more, #step-job, #step-book, .tp-head__aside, .tp-head__crumb, main > .section { display: none !important; }
  html, body.tp-page, .tp-page main { background: #fff !important; }
  .tp-head { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .tp-head__title { color: #000 !important; }
  #step-price { display: block !important; }
  .tp-option { break-inside: avoid; border: 1px solid #000 !important; color: #000 !important; background: #fff !important; }
  .tp-option[aria-pressed="true"]::after { content: " (selected)"; font-weight: 700; }
}

/* Where is my job (/transport/status/): facts list and the milestone timeline */
.tp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 0; }
.tp-dl dt { color: var(--pewter); font-size: 0.9rem; }
.tp-dl dd { margin: 0; }
.tp-timeline { list-style: none; margin: 0.6rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--360-green-500); }
.tp-timeline li { position: relative; padding: 0.3rem 0 0.3rem 0.4rem; }
.tp-timeline li::before { content: ""; position: absolute; left: -1.5rem; top: 0.85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--360-green-500); }
@media (max-width: 520px) { .tp-dl { grid-template-columns: 1fr; gap: 0.1rem 0; } .tp-dl dt { margin-top: 0.5rem; } }
