

.hidden { display: none !important; }

:root { --lk-max: calc(var(--tmm-width) + 2 * var(--tmm-gutter)); }

body.lk { display: flex; flex-direction: column; }

/* ================= Lock-up (was tmm-wordmark.css and the skin's .tmm-lockup) ================= */
.tmm-wordmark { display: inline-flex; align-items: center; }
.tmm-lockup {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--tmm-font); font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--tmm-ink); white-space: nowrap; text-decoration: none;
}
.tmm-lockup .tmm-badge { display: block; flex: none; width: 28px; height: 28px; }
.tmm-lockup .tmm-lockup-my { color: var(--tmm-amber-deep); }
.tmm-lockup .tmm-badge-hi { stop-color: var(--tmm-badge-hi); }
.tmm-lockup .tmm-badge-lo { stop-color: var(--tmm-badge-lo); }
.tmm-lockup .tmm-badge-ring, .tmm-lockup .tmm-badge-tick { stroke: var(--tmm-white); }

/* ================= Header: white, the lock-up, the help link as a quiet text item ================= */
.lk-top { background-color: var(--tmm-white); border-bottom: 1px solid var(--tmm-line); }
.lk-top-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tmm-space-3);
  max-width: var(--lk-max); min-height: 72px; margin: 0 auto; padding: 0 var(--tmm-gutter);
}
.lk-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--tmm-ink); text-decoration: none; }
.lk-brand:hover { text-decoration: none; }
.lk-help {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--tmm-text); font-size: var(--tmm-fs-small); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lk-help:hover { color: var(--tmm-ink); text-decoration: underline; text-decoration-color: var(--tmm-amber); text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* ================= Page: the rail beside the question ================= */
.lk-page { flex: 1 0 auto; background-color: var(--tmm-white); }
.lk-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tmm-space-4); align-items: start;
  max-width: var(--lk-max); margin: 0 auto; padding: var(--tmm-space-5) var(--tmm-gutter) var(--tmm-space-7);
}
@media (min-width: 760px) {
  .lk-wrap { grid-template-columns: 264px minmax(0, 620px); gap: var(--tmm-space-6); }
}

/* The rail: one canvas card. Status word, the big plate, the vehicle or the account as stacked facts, the help line. */
.lk-rail { min-width: 0; }
.lk-rail-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--tmm-space-2);
  padding: var(--tmm-space-4); background-color: var(--tmm-canvas); border-radius: var(--tmm-r-card);
}
@media (max-width: 759px) { .lk-rail-card { padding: var(--tmm-pad-card); } }
.lk-veh { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--tmm-space-2); }   
.lk-veh-n { font-weight: 600; color: var(--tmm-text); }
.lk-veh-n:empty, .plate:empty { display: none; }
.lk-veh, .lk-was, .tk-head { margin-bottom: var(--tmm-space-1); }
.lk-was { width: 100%; }
.lk-veh + .lk-was { padding-top: var(--tmm-space-3); border-top: 1px solid var(--tmm-line); }
.lk-was .was-h { margin: 0; }
.lk-was .tmm-plate { margin-top: var(--tmm-space-2); }
/* Rail parts that belong to the question: once the page shows a state instead (thank you, expired), they go. */
.lk-wrap:has(.lk-formcard.hidden) .lk-form-only { display: none !important; }

/* Stacked facts, drawn by the page's script as .was-row > span + span: label above value, hairline between. */
.lk-facts { width: 100%; }
.was-row { display: flex; flex-direction: column; gap: var(--tmm-space-1); padding: var(--tmm-space-2) 0; }
.was-row + .was-row { border-top: 1px solid var(--tmm-line); }
.was-row span:first-child { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); font-weight: var(--tmm-fw-label); letter-spacing: var(--tmm-ls-label); text-transform: uppercase; color: var(--tmm-muted); }
.was-row span:last-child { font-size: var(--tmm-fs-body); font-weight: 600; color: var(--tmm-text); overflow-wrap: anywhere; }

.lk-help-line { margin: 0; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
.lk-help-line a { color: var(--tmm-text); font-weight: 600; }

/* ================= The question: plain text on white ================= */
.lk-main { min-width: 0; max-width: 620px; }
.lk-main h1 {
  margin: var(--tmm-space-1) 0 var(--tmm-space-2);
  font-size: var(--tmm-fs-h2); line-height: var(--tmm-lh-h2); font-weight: var(--tmm-fw-h2); letter-spacing: var(--tmm-ls-h2); color: var(--tmm-ink);
}
.lk-main > #form-card > h1 { text-align: left; }   /* a letter: its heading starts where its words do */
.lk-main h2 { margin: 0 0 var(--tmm-space-2); font-size: var(--tmm-fs-h3); line-height: var(--tmm-lh-h3); font-weight: var(--tmm-fw-h3); letter-spacing: 0; color: var(--tmm-text); }
.lk-lead { margin: 0 0 var(--tmm-space-3); color: var(--tmm-muted); }
.lk-loading { margin: 0; }
.lk-note { margin: var(--tmm-space-2) 0 0; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
.lk-actions { margin-top: var(--tmm-space-1); }
.lk-main .tmm-error { margin: var(--tmm-space-2) 0 0; }
@media (max-width: 519px) {
  .lk-actions .tmm-btn, .lk-panel .tmm-btn { width: 100%; }
}

/* A finished state: one small ink tick on mist, the headline, one line. */
.lk-ok { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 var(--tmm-space-2); border-radius: 50%; background-color: var(--tmm-mist); }

/* Fields: base.css .tmm-field / .tmm-label / .tmm-input; two side by side from 480px. */
.lk-two { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--tmm-space-2); }
@media (min-width: 480px) { .lk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-under { margin: calc(-1 * var(--tmm-space-2)) 0 var(--tmm-space-3); }
.lk-opt { font-weight: 400; color: var(--tmm-muted); }


body.lk:has(> main.lk-sheet), body.lk:has(> main.tk-sheet) { background-color: var(--tmm-canvas); }
main.lk-sheet {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--tmm-space-4);
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: var(--tmm-space-5) var(--tmm-gutter) var(--tmm-space-6);
}
main.tk-sheet { background-color: var(--tmm-white); }
@media (min-width: 760px) {
  main.lk-sheet, main.tk-sheet { flex: 0 0 auto; margin: var(--tmm-space-5) auto var(--tmm-space-6); padding: var(--tmm-space-5) var(--tmm-space-6); border-radius: var(--tmm-r-card); }
  main.tk-sheet { max-width: 816px; }
}
.lk-sheet:has(.lk-formcard.hidden) .lk-form-only { display: none !important; }
.lk-sheet h1 { margin: 0 0 var(--tmm-space-2); font-size: var(--tmm-fs-h2); line-height: var(--tmm-lh-h2); font-weight: var(--tmm-fw-h2); letter-spacing: var(--tmm-ls-h2); color: var(--tmm-ink); }

/* The plate headline: the plate, and beside it (stacked below on a phone) the vehicle or the account we had. */
.lk-plate-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--tmm-space-2) var(--tmm-space-4); padding-bottom: var(--tmm-space-4); border-bottom: 1px solid var(--tmm-line); }
.lk-plate-head:not(:has(> :not(.hidden))) { display: none; }
.lk-plate-head:has(> .lk-veh + .lk-was:not(.hidden)) { align-items: start; }
.lk-plate-head > .plate { justify-self: start; }
.lk-plate-head .lk-was { width: auto; }
@media (min-width: 520px) {
  .lk-plate-head { grid-template-columns: auto minmax(0, 1fr); }
  .lk-plate-head > .lk-veh + .lk-was { padding: 0 0 0 var(--tmm-space-4); border-top: 0; border-left: 1px solid var(--tmm-line); }
}

/* One notice: amber tint for a problem, canvas with the tick once done, plain while loading. Empty, it goes. */
.lk-notice { display: grid; gap: var(--tmm-space-1); padding: var(--tmm-space-3); border-radius: var(--tmm-r-control); background-color: var(--tmm-amber-tint); }
.lk-notice:not(:has(> :not(.hidden))) { display: none; }
.lk-notice:has(> .lk-loading:not(.hidden)) { padding: 0; background-color: transparent; }
.lk-notice:has(.lk-ok:not(.hidden)) { background-color: var(--tmm-canvas); }
.lk-notice > p { margin: 0; }
.lk-loading { color: var(--tmm-muted); }
.lk-notice-state { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--tmm-space-3); align-items: start; }
.lk-notice-state:has(> .lk-ok.hidden) { display: block; }
.lk-notice-state > .lk-ok { grid-row: 1 / span 2; margin: 0; background-color: var(--tmm-white); }
.lk-notice-state > h1, .lk-notice-state > p { grid-column: 2; }
.lk-notice-state > h1 { margin-bottom: var(--tmm-space-1); }
.lk-notice-state > p { margin: 0; color: var(--tmm-text); }

/* The form: fields as label > span + input, then one amber action with its note beside it. */
.lk-formcard > .lk-lead { margin-bottom: var(--tmm-space-4); }
.lk-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.lk-under { display: block; }
.lk-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tmm-space-2) var(--tmm-space-3); margin-top: var(--tmm-space-1); }
.lk-act .lk-note { margin: 0; }
@media (max-width: 519px) { .lk-act .tmm-btn { width: 100%; } }
.lk-sheet > .lk-help-line { max-width: none; padding-top: var(--tmm-space-3); border-top: 1px solid var(--tmm-line); }

/* ================= choose-term: the price options (button.opt[role=radio], .sel when picked) ================= */
.lk-opts { display: grid; gap: var(--tmm-space-2); margin: var(--tmm-space-1) 0 var(--tmm-space-3); }
.opt {
  display: flex; align-items: center; gap: var(--tmm-space-2); width: 100%;
  padding: var(--tmm-space-3); border: 0; border-radius: var(--tmm-r-control); box-shadow: none;
  background-color: var(--tmm-mist); color: var(--tmm-text);
  font-family: var(--tmm-font); font-size: var(--tmm-fs-body); text-align: left; cursor: pointer;
  transition: background-color var(--tmm-motion);
}
.opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background-color: var(--tmm-white); box-shadow: inset 0 0 0 2px var(--tmm-muted); }
.opt:hover { background-color: var(--tmm-canvas); }
.opt.sel { background-color: var(--tmm-white); box-shadow: inset 0 0 0 2px var(--tmm-amber); }
.opt.sel::before { box-shadow: inset 0 0 0 5px var(--tmm-ink); }
.opt-b { flex: 1; min-width: 0; }
.opt-t { display: block; font-size: var(--tmm-fs-body); line-height: 1.3; font-weight: 700; color: var(--tmm-text); }
.opt-d { display: block; margin-top: 2px; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
.opt-p { flex: none; font-size: var(--tmm-fs-body); font-weight: 700; color: var(--tmm-ink); text-align: right; white-space: nowrap; font-feature-settings: var(--tmm-tnum); }

/* ================= bank-details: the "don't go together" check (it asks, never refuses) ================= */
.lk-warn { margin: 0 0 var(--tmm-space-3); padding: var(--tmm-space-2) var(--tmm-space-3); background-color: var(--tmm-amber-tint); border-radius: var(--tmm-r-control); }
.lk-warn-t, .lk-warn-p { display: block; }
.lk-warn-t { font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); font-weight: 700; color: var(--tmm-amber-deep); }
.lk-warn-t::before { content: "\26A0\FE0E\00A0"; }
.lk-warn-p { margin: var(--tmm-space-1) 0 var(--tmm-space-2); font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-text); }
.lk-warn .tmm-check { font-size: var(--tmm-fs-small); font-weight: 600; cursor: pointer; }
.lk-warn .tmm-check input { width: 18px; height: 18px; margin-top: 1px; }

/* ================= reply: the message, the answers (button.choice), one open panel at a time ================= */
.msg p { margin: 0 0 var(--tmm-space-2); color: var(--tmm-text); }
.choices { display: grid; gap: var(--tmm-space-2); margin: var(--tmm-space-3) 0 0; }
.choice {
  display: block; width: 100%; padding: var(--tmm-space-3); border: 0; border-radius: var(--tmm-r-control);
  background-color: var(--tmm-mist); color: var(--tmm-text);
  font-family: var(--tmm-font); font-size: var(--tmm-fs-body); font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background-color var(--tmm-motion);
}
.choice:hover { background-color: var(--tmm-canvas); }
.choice small { display: block; margin-top: 2px; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); font-weight: 400; color: var(--tmm-muted); }
.choice.secondary { background-color: var(--tmm-canvas); }
.choice.secondary:hover { background-color: var(--tmm-mist); }
.lk-panel { margin: var(--tmm-space-4) 0 0; padding: var(--tmm-space-4) 0 0; border-top: 1px solid var(--tmm-line); }
.lk-panel .tmm-btn { margin-top: var(--tmm-space-1); }
.lk-panel .lk-lead { margin-bottom: var(--tmm-space-2); }
.lk-terms { display: grid; gap: var(--tmm-space-2); margin: 0 0 var(--tmm-space-3); }
.lk-terms label {
  display: flex; align-items: center; gap: var(--tmm-space-2); padding: var(--tmm-space-3);
  background-color: var(--tmm-mist); border-radius: var(--tmm-r-control);
  font-weight: 700; color: var(--tmm-text); cursor: pointer; transition: background-color var(--tmm-motion);
}
.lk-terms label:has(input:checked) { background-color: var(--tmm-white); box-shadow: inset 0 0 0 2px var(--tmm-amber); }
.lk-terms input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--tmm-ink); }

/* ================= logbook-tracking: one answer, read-only ================= */
/* Review-only strip (?state=): not part of the page a customer sees; the live page hides it. */
.tk-demo { width: 100%; max-width: var(--lk-max); margin: 0 auto; padding: var(--tmm-space-2) var(--tmm-gutter) 0; font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); color: var(--tmm-muted); }
.tk-demo:empty { display: none; }
.tk-demo a { display: inline-block; margin-right: var(--tmm-space-2); padding: var(--tmm-space-1) 0; color: var(--tmm-ink); font-weight: 700; }

.tk-sheet {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--tmm-space-3);
  width: 100%; max-width: calc(720px + 2 * var(--tmm-gutter)); margin: 0 auto;
  padding: var(--tmm-space-5) var(--tmm-gutter) var(--tmm-space-7);
}
.tk-plate-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--tmm-space-2) var(--tmm-space-3); }
.tk-veh { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tk-veh b { display: block; font-weight: 600; color: var(--tmm-text); }
.tk-veh b:empty { display: none; }
.tk-veh span:last-child { font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
.tk-ref { display: block; margin-top: var(--tmm-space-1); font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); color: var(--tmm-muted); }
.tk-ref:empty { display: none; }

.tk-state { margin: var(--tmm-space-2) 0 0; font-size: var(--tmm-fs-h1); line-height: var(--tmm-lh-h1); font-weight: var(--tmm-fw-h1); letter-spacing: var(--tmm-ls-h1); color: var(--tmm-ink); }
/* One state sentence; the day count (#daysBox, hidden by the script before posting) runs on inline. */
.tk-sentence { margin: 0; max-width: var(--tmm-measure); color: var(--tmm-text); }
.tk-days > b { display: inline-block; padding: 0 var(--tmm-space-1); border-radius: var(--tmm-r-chip); background-color: var(--tmm-mist); font-weight: 800; color: var(--tmm-ink); font-feature-settings: var(--tmm-tnum); }
.tk-days span b { font-weight: 700; color: var(--tmm-ink); }

/* The progress rail: five bars side by side, the label and date under each. Mist to come, dark grey once
   done, amber for the step it is at. */
.tk-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--tmm-space-1); margin: var(--tmm-space-2) 0; }
.tk-step { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-step::before { content: ""; display: block; height: 6px; margin-bottom: var(--tmm-space-1); border-radius: var(--tmm-r-chip); background-color: var(--tmm-mist); }
.tk-step.done::before { background-color: var(--tmm-text); }
.tk-step.now::before { background-color: var(--tmm-amber); }
.tk-step b { font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); font-weight: 700; color: var(--tmm-muted); overflow-wrap: break-word; }
.tk-step.done b, .tk-step.now b { color: var(--tmm-text); }
.tk-step [data-when] { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); color: var(--tmm-muted); }
.tk-step [data-when]:empty { display: none; }
/* On a phone the five columns size to their words (no word is split); the bars stay in one row. */
@media (max-width: 519px) {
  .tk-rail { grid-template-columns: repeat(5, auto); gap: 4px; }
  .tk-step { min-width: auto; }
  .tk-step b { font-size: var(--tmm-fs-label); line-height: var(--tmm-lh-label); }
}

/* Only once it has gone past six weeks (body.is-late): an amber-tint notice. */
.tk-late { display: none; padding: var(--tmm-space-2) var(--tmm-space-3); background-color: var(--tmm-amber-tint); border-radius: var(--tmm-r-control); font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-text); }
body.is-late .tk-late { display: block; }
.tk-late strong { display: block; margin-bottom: 2px; font-weight: 700; color: var(--tmm-amber-deep); }
.tk-late strong::before { content: "\26A0\FE0E\00A0"; }

/* The questions: open details/summary, a hairline between, a small chevron. */
.tk-faq { margin-top: var(--tmm-space-3); padding-top: var(--tmm-space-4); border-top: 1px solid var(--tmm-line); }
.tk-faq h2 { margin: 0 0 var(--tmm-space-1); font-size: var(--tmm-fs-h3); line-height: var(--tmm-lh-h3); font-weight: var(--tmm-fw-h3); color: var(--tmm-text); }
.tk-faq details { padding: var(--tmm-space-2) 0; }
.tk-faq details + details { border-top: 1px solid var(--tmm-line); }
.tk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--tmm-space-2); list-style: none; font-weight: 700; color: var(--tmm-text); cursor: pointer; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--tmm-muted); border-bottom: 2px solid var(--tmm-muted); transform: rotate(45deg); transition: transform var(--tmm-motion); }
.tk-faq details[open] summary::after { transform: rotate(-135deg); }
.tk-faq details p { margin: 2px 0 0; font-size: var(--tmm-fs-small); line-height: var(--tmm-lh-small); color: var(--tmm-muted); }
.tk-faq details b { color: var(--tmm-text); }
.tk-sheet > .tk-foot { max-width: none; padding-top: var(--tmm-space-3); border-top: 1px solid var(--tmm-line); }

/* ================= Footer: the independence line on a thin graphite strip ================= */
.lk-foot { margin-top: auto; background-color: var(--tmm-graphite); color: var(--tmm-white); }
.lk-foot-in { max-width: var(--lk-max); margin: 0 auto; padding: var(--tmm-space-3) var(--tmm-gutter); font-size: var(--tmm-fs-label); line-height: 1.4; }
.lk-foot [data-tmm-cookie-settings] { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-bottom: calc(-1 * var(--tmm-space-2)); color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lk-foot :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }


.lk-plate-head:not(:has(> .lk-was:not(.hidden))) { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.lk-plate-head:not(:has(> .lk-was:not(.hidden))) > .plate { justify-self: center; }
main.lk-sheet:not(:has(.lk-was:not(.hidden))) .lk-formcard > h1,
main.lk-sheet:not(:has(.lk-was:not(.hidden))) .lk-formcard > .lk-lead { text-align: center; margin-left: auto; margin-right: auto; }
main.lk-sheet:not(:has(.lk-was:not(.hidden))) .lk-formcard .lk-fields { width: 100%; max-width: 30rem; margin-left: auto; margin-right: auto; }
main.lk-sheet:not(:has(.lk-was:not(.hidden))) .lk-act { justify-content: center; text-align: center; }
.tk-state { text-align: center; }
.tk-sentence { text-align: center; margin-left: auto; margin-right: auto; }
/* The tracking head: the plate stands alone, so it stacks centred over its vehicle lines (the plate itself centred,
   not the plate-and-text pair). */
.tk-plate-head { flex-direction: column; }
.tk-veh { align-items: center; text-align: center; }
.tk-faq summary { min-height: 44px; }
