:root {
    --navy: #082b4c;
    --navy-deep: #051d34;
    --blue: #1261a0;
    --blue-bright: #1672b8;
    --blue-pale: #eaf3f9;
    --yellow: #f6a000;
    --yellow-hover: #ffa52f;
    --yellow-pale: #fff8d7;
    --ink: #17212b;
    --grey-1: #53616d;
    --grey-2: #aeb9c2;
    --grey-3: #dce3e8;
    --grey-4: #f4f7f9;
    --white: #fff;
    --green: #167c4b;
    --red: #c63d32;
    --radius: 8px;
    --shadow: 0 8px 24px rgba(8, 43, 76, .08);
}

* { box-sizing: border-box; }
html { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); }
body { margin: 0; font-size: 18px; line-height: 1.55; background: var(--white); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy-deep); padding: 12px 16px; z-index: 9999; font-weight: 800; }
.skip-link:focus { left: 20px; top: 10px; }

.site-header { background: var(--navy); color: var(--white); border-bottom: 6px solid var(--yellow); box-shadow: 0 2px 8px rgba(5, 29, 52, .18); }
.header-inner { min-height: 86px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.brand { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 0; flex-wrap: wrap; }
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark { font-size: 31px; line-height: 1; font-weight: 900; letter-spacing: -1.5px; }
.brand-uk { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 34px; margin-left: 3px; padding: 0 7px; border-radius: 5px; background: var(--yellow); color: var(--navy-deep); font-size: 25px; line-height: 1; font-weight: 900; letter-spacing: -1px; }
.brand-sub { font-size: 13px; font-weight: 650; margin-left: 12px; color: #d8e7f2; letter-spacing: .25px; }
.top-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 10px; border-radius: 5px; }
.top-nav a:hover { background: rgba(255,255,255,.09); color: var(--white); }

.phase-bar { background: var(--blue-pale); border-bottom: 1px solid #c8dce9; padding: 9px 0; font-size: 14px; color: #29485f; }
.phase-tag { display: inline-block; background: var(--yellow); color: var(--navy-deep); padding: 3px 8px; border-radius: 4px; margin-right: 8px; font-size: 12px; font-weight: 900; letter-spacing: .8px; }

.main-content { padding-top: 52px; padding-bottom: 76px; min-height: 65vh; }
h1 { color: var(--navy-deep); font-size: clamp(38px, 5vw, 54px); line-height: 1.04; margin: 0 0 28px; letter-spacing: -1.6px; }
h2 { color: var(--navy); font-size: 31px; line-height: 1.18; margin-top: 42px; margin-bottom: 18px; letter-spacing: -.4px; }
h3 { color: var(--navy); font-size: 23px; line-height: 1.2; }
p { max-width: 760px; }
.lead { font-size: 25px; line-height: 1.4; max-width: 820px; color: #334755; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 48px; align-items: start; }

.card { border: 1px solid var(--grey-3); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: var(--shadow); }
.card--grey { background: var(--grey-4); }
.card--blue { border: 1px solid #c9ddea; border-top: 6px solid var(--blue); }
.inset { border-left: 6px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--blue-pale); padding: 18px 22px; margin: 30px 0; }
.inset p:last-child { margin-bottom: 0; }
.warning-inset { border-left-color: var(--yellow); background: var(--yellow-pale); }

.form-group { margin-bottom: 28px; max-width: 760px; }
label, .label { display: block; font-weight: 750; color: var(--navy-deep); margin-bottom: 7px; }
.hint { display: block; color: var(--grey-1); font-size: 16px; margin: 2px 0 8px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea {
    width: 100%; max-width: 620px; border: 2px solid #72828e; border-radius: 6px; padding: 11px 13px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 160px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(246, 201, 0, .65); outline-offset: 2px; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.reg-input { max-width: 290px !important; text-transform: uppercase; font-size: 30px !important; font-weight: 900; letter-spacing: 2px; background: #ffe211 !important; color: #111 !important; border: 3px solid #111 !important; border-radius: 7px !important; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pin-input { max-width: 230px !important; font-size: 26px !important; letter-spacing: 5px; font-weight: 800; }

.button, button { appearance: none; border: 0; border-radius: 6px; background: var(--yellow); color: var(--navy-deep); padding: 12px 20px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 3px 0 #b99200; transition: transform .08s ease, background .15s ease, box-shadow .08s ease; }
.button:hover, button:hover { background: var(--yellow-hover); color: var(--navy-deep); text-decoration: none; }
.button:active, button:active { transform: translateY(2px); box-shadow: 0 1px 0 #b99200; }
.button:focus, button:focus { outline: 3px solid rgba(22, 97, 160, .35); outline-offset: 3px; }
.button-secondary { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--navy-deep); }
.button-secondary:hover { background: var(--blue-bright); color: #fff; }
.button-secondary:active { box-shadow: 0 1px 0 var(--navy-deep); }
.button-warning { background: var(--red); color: #fff; box-shadow: 0 3px 0 #74251f; }
.button-warning:hover { background: #ad3128; color: #fff; }
.button-small { font-size: 15px; padding: 8px 12px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .45px; }
.status-approved { background: #d9f1e5; color: #0c6038; }
.status-pending { background: #fff3b8; color: #624d00; }
.status-rejected, .status-suspended { background: #f8dcda; color: #8e2921; }

.flash-stack { padding-top: 22px; }
.flash { border: 1px solid #c8dce9; border-left: 6px solid var(--blue); border-radius: 6px; background: var(--blue-pale); padding: 16px 20px; margin-bottom: 12px; font-weight: 700; }
.flash-success { border-left-color: var(--green); background: #eff9f4; }
.flash-error { border-left-color: var(--red); background: #fff1f0; }

.summary-list { border-top: 1px solid var(--grey-3); max-width: 860px; }
.summary-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; border-bottom: 1px solid var(--grey-3); padding: 14px 0; }
.summary-key { font-weight: 750; color: var(--navy-deep); }
.record-list { list-style: none; padding: 0; max-width: 900px; }
.record-item { position: relative; border: 1px solid var(--grey-3); border-left: 6px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin-bottom: 18px; background: #fff; box-shadow: 0 4px 14px rgba(8, 43, 76, .05); }
.record-item h3 { margin: 0 0 6px; }
.record-meta { color: var(--grey-1); font-size: 16px; }
.pin-panel { background: var(--navy); color: #fff; border-radius: var(--radius); border-bottom: 6px solid var(--yellow); padding: 26px; max-width: 720px; box-shadow: var(--shadow); }
.pin-panel .pin { font-size: 42px; line-height: 1; letter-spacing: 7px; color: var(--yellow); font-weight: 900; margin: 12px 0 18px; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f6f8fa; border: 1px solid #cbd5dc; border-radius: 5px; padding: 14px; word-break: break-all; font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; border-bottom: 1px solid var(--grey-3); padding: 12px 10px; vertical-align: top; }
th { color: var(--navy-deep); border-bottom: 2px solid var(--navy); background: var(--grey-4); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat { background: var(--grey-4); padding: 20px; border-radius: var(--radius); border-top: 5px solid var(--yellow); box-shadow: 0 3px 12px rgba(8, 43, 76, .05); }
.stat strong { display:block; color: var(--navy); font-size: 34px; }
.details-toggle { margin: 20px 0; }
details { max-width: 760px; }
summary { cursor: pointer; font-weight: 750; color: var(--blue); margin-bottom: 18px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; }
.checkbox-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); }

.site-footer { border-top: 6px solid var(--yellow); background: var(--navy-deep); padding: 42px 0; color: #c3d3df; font-size: 15px; }
.site-footer strong { color: #fff; font-size: 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-credit { text-align: right; color: #d5e1e9; }
.small-note { font-size: 15px; color: var(--grey-1); }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }
hr { border: 0; border-top: 1px solid var(--grey-3); margin: 36px 0; }
.error-list { border: 2px solid var(--red); border-left-width: 7px; border-radius: 6px; background: #fff5f4; padding: 20px 24px; max-width: 760px; margin-bottom: 30px; }
.error-list h2 { margin: 0 0 10px; font-size: 24px; color: #8e2921; }
.muted { color: var(--grey-1); }

@media (max-width: 760px) {
    body { font-size: 17px; }
    .container { width: min(100% - 28px, 1120px); }
    .header-inner { align-items: flex-start; flex-direction: column; gap: 11px; padding: 16px 0; }
    .top-nav { justify-content: flex-start; gap: 3px; margin-left: -9px; }
    .brand-sub { width: 100%; margin: 7px 0 0; }
    .main-content { padding-top: 36px; }
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-credit { text-align: left; }
    .summary-row { grid-template-columns: 1fr; gap: 3px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    h1 { font-size: 39px; }
    .lead { font-size: 22px; }
    table { display: block; overflow-x: auto; }
    .button, button { width: auto; }
}

/* DSRUK responsive layout */
@media (max-width: 900px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .brand {
        max-width: 100%;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .top-nav a {
        background: rgba(255,255,255,.07);
        padding: 8px 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-credit {
        grid-column: 1 / -1;
        text-align: left;
    }

    .main-content {
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .card,
    .pin-panel {
        max-width: 100%;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
        line-height: 1.5;
    }

    .container {
        width: calc(100% - 24px);
    }

    .site-header {
        border-bottom-width: 5px;
    }

    .header-inner {
        padding: 14px 0 12px;
        gap: 12px;
    }

    .brand-mark {
        font-size: 27px;
    }

    .brand-uk {
        min-width: 43px;
        height: 30px;
        font-size: 22px;
    }

    .brand-sub {
        width: 100%;
        margin: 7px 0 0;
        font-size: 12px;
    }

    .top-nav {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .top-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px;
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
        border: 1px solid rgba(255,255,255,.12);
    }

    .phase-bar {
        padding: 9px 0 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    .phase-tag {
        margin-bottom: 4px;
    }

    .main-content {
        padding-top: 30px;
        padding-bottom: 44px;
        min-height: 55vh;
    }

    h1 {
        font-size: clamp(32px, 10vw, 40px);
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 20px;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 26px;
        margin-top: 32px;
        margin-bottom: 14px;
    }

    h3 {
        font-size: 21px;
    }

    .lead {
        font-size: 20px;
        line-height: 1.4;
    }

    .hero-actions,
    .button-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .button,
    button,
    .button-row .button,
    .button-row button,
    .hero-actions .button {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .button-small {
        width: auto;
    }

    .card,
    .pin-panel,
    .inset,
    .error-list,
    .flash {
        padding: 18px;
    }

    .grid-2,
    .footer-grid {
        gap: 20px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    input:not([type]),
    input[type=text],
    input[type=email],
    input[type=password],
    input[type=number],
    input[type=date],
    input[type=tel],
    select,
    textarea {
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 11px 12px;
        font-size: 16px;
    }

    textarea {
        min-height: 140px;
    }

    .reg-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(24px, 8vw, 30px) !important;
    }

    .pin-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 24px !important;
    }

    .summary-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 12px 0;
    }

    .summary-key {
        font-size: 14px;
        color: var(--grey-1);
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat {
        padding: 15px;
    }

    .stat strong {
        font-size: 28px;
    }

    .record-item {
        padding: 17px 16px;
        border-left-width: 5px;
    }

    .pin-panel .pin {
        font-size: clamp(31px, 10vw, 42px);
        letter-spacing: 4px;
        overflow-wrap: anywhere;
    }

    .code-box {
        font-size: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .checkbox-row {
        align-items: flex-start;
    }

    .checkbox-row input {
        flex: 0 0 22px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .site-footer {
        padding: 32px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-credit {
        grid-column: auto;
    }
}

@media (max-width: 380px) {
    .top-nav {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Public acquisition + vehicle-owner portal */
.eyebrow { display:inline-block; margin-bottom:12px; color:var(--blue); font-size:13px; font-weight:900; letter-spacing:.9px; text-transform:uppercase; }
.eyebrow.light { color:var(--yellow); }
.narrow-page { max-width:760px; }
.button-large { padding:15px 24px; font-size:19px; }
.button-light { background:#fff; color:var(--navy-deep); box-shadow:0 3px 0 #a7bac8; }
.button-light:hover { background:#eef5f9; color:var(--navy-deep); }
.card--yellow { border-top:6px solid var(--yellow); background:var(--yellow-pale); }
.step-chip { display:inline-block; padding:5px 9px; border-radius:999px; background:var(--blue-pale); color:var(--navy); font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.45px; }
.card--yellow .step-chip { background:#fff0a8; }

.public-hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr); gap:60px; align-items:center; padding:28px 0 58px; }
.public-hero h1 { font-size:clamp(46px,6vw,72px); max-width:780px; }
.public-hero .lead { max-width:760px; }
.hero-login { margin-top:22px; color:var(--grey-1); font-size:15px; }
.hero-record-card { background:var(--navy); color:#fff; padding:28px; border-radius:16px; border-bottom:9px solid var(--yellow); box-shadow:0 24px 55px rgba(5,29,52,.2); transform:rotate(1.2deg); }
.record-card-brand { font-size:25px; font-weight:900; margin-bottom:28px; }
.record-card-brand span { display:block; margin-top:2px; color:#cfe2ef; font-size:12px; font-weight:650; letter-spacing:.3px; }
.reg-plate, .reg-plate-small { display:inline-block; background:#ffe211; color:#111; border:3px solid #111; border-radius:7px; font-weight:900; letter-spacing:2px; text-transform:uppercase; box-shadow:inset 0 0 0 1px rgba(255,255,255,.3); }
.reg-plate { padding:8px 16px; font-size:31px; margin:4px 0 14px; }
.reg-plate-small { padding:5px 10px; font-size:20px; }
.mock-vehicle { font-size:20px; font-weight:750; margin:0 0 20px; }
.mock-entry { background:#fff; color:var(--ink); padding:15px; border-radius:8px; margin-top:11px; display:grid; grid-template-columns:1fr auto; gap:4px 10px; align-items:center; }
.mock-entry .provenance { grid-column:1 / -1; width:max-content; }
.mock-entry strong { color:var(--navy); }
.mock-entry small { color:var(--grey-1); }
.mock-entry.owner { opacity:.92; }

.trust-band { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--grey-3); border:1px solid var(--grey-3); border-radius:10px; overflow:hidden; margin:0 0 78px; }
.trust-band > div { background:var(--grey-4); padding:20px 22px; }
.trust-band strong,.trust-band span { display:block; }
.trust-band strong { color:var(--navy); font-size:18px; }
.trust-band span { color:var(--grey-1); font-size:14px; margin-top:3px; }

.acquisition-section { margin:25px 0 88px; }
.acquisition-section > h2 { margin-top:0; font-size:40px; }
.acquisition-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-top:30px; }
.acquisition-grid > a { min-height:250px; padding:24px; border:1px solid var(--grey-3); border-radius:10px; background:#fff; box-shadow:0 5px 18px rgba(8,43,76,.05); color:inherit; text-decoration:none; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.acquisition-grid > a:hover { transform:translateY(-3px); border-color:#b9d3e5; box-shadow:0 12px 30px rgba(8,43,76,.1); }
.acquisition-grid h3 { margin:20px 0 10px; }
.acquisition-grid p { color:var(--grey-1); font-size:16px; line-height:1.5; }
.feature-number { font-weight:900; color:var(--blue); font-size:13px; letter-spacing:.8px; }

.verification-section { display:grid; grid-template-columns:.85fr 1.15fr; gap:55px; background:var(--grey-4); border-radius:14px; padding:42px; margin:0 0 80px; }
.verification-section h2 { margin-top:0; }
.verification-demo { display:grid; gap:16px; }
.verification-demo > div { background:#fff; border:1px solid var(--grey-3); border-radius:9px; padding:22px; }
.verification-demo h3 { margin:14px 0 7px; font-size:20px; }
.verification-demo p { margin:0; font-size:15px; color:var(--grey-1); }
.provenance { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:12px; line-height:1; font-weight:900; text-transform:uppercase; letter-spacing:.45px; white-space:nowrap; }
.provenance-verified-garage { background:#d9f1e5; color:#0c6038; }
.provenance-verified-garage::before { content:'✓'; }
.provenance-owner-supplied { background:#fff1b8; color:#644f00; }
.provenance-owner-supplied::before { content:'i'; display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border:1px solid currentColor; border-radius:50%; font-size:10px; }
.verification-key { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:900px; margin:32px 0; }
.verification-key > div { border:1px solid var(--grey-3); border-radius:8px; padding:16px; background:var(--grey-4); }
.verification-key p { margin:10px 0 0; font-size:14px; color:var(--grey-1); }
.verification-explainer { display:flex; align-items:flex-start; gap:15px; max-width:820px; border:1px solid #ead47a; background:var(--yellow-pale); border-radius:8px; padding:18px; margin:24px 0 30px; }
.verification-explainer p { margin:0; }
.record-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.record-heading h3 { margin:0; }
.record-owner-supplied { border-left-color:#d6a900; }
.record-verified-garage { border-left-color:var(--green); }
.record-docs { display:flex; gap:10px; align-items:center; flex-wrap:wrap; border-top:1px solid var(--grey-3); padding-top:12px; margin-top:14px; font-size:14px; }

.garage-cta { display:flex; justify-content:space-between; align-items:center; gap:40px; background:var(--navy); color:#fff; border-radius:14px; border-bottom:8px solid var(--yellow); padding:38px 42px; margin-bottom:25px; }
.garage-cta h2 { color:#fff; margin:0 0 10px; }
.garage-cta p { color:#cfe2ef; margin-bottom:0; }

.owner-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; margin-bottom:28px; }
.owner-heading h1 { margin-bottom:12px; }
.vehicle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.vehicle-card { border:1px solid var(--grey-3); border-radius:12px; padding:24px; box-shadow:var(--shadow); background:#fff; }
.vehicle-card-top { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.vehicle-card h2 { margin:20px 0 6px; }
.record-count { color:var(--grey-1); font-size:13px; }
.vehicle-actions { display:flex; flex-wrap:wrap; gap:10px 16px; border-top:1px solid var(--grey-3); margin-top:20px; padding-top:16px; font-size:14px; font-weight:700; }
.vehicle-hero { margin:22px 0 28px; }
.vehicle-hero h1 { margin:18px 0 8px; }
.owner-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:30px 0 50px; }
.owner-action-grid > a { display:grid; grid-template-columns:auto 1fr; column-gap:12px; border:1px solid var(--grey-3); border-radius:9px; padding:18px; text-decoration:none; color:var(--ink); background:#fff; }
.owner-action-grid > a:hover { border-color:#a8cada; box-shadow:0 7px 20px rgba(8,43,76,.08); }
.owner-action-grid strong,.owner-action-grid span:last-child { grid-column:2; }
.owner-action-grid strong { color:var(--navy); }
.owner-action-grid span:last-child { color:var(--grey-1); font-size:14px; margin-top:3px; }
.action-icon { grid-row:1 / 3; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:var(--yellow); color:var(--navy-deep); font-weight:900; }
.empty-state { border:2px dashed #b9c7d0; border-radius:12px; background:var(--grey-4); padding:40px; text-align:center; margin:25px 0; }
.empty-state h2,.empty-state p { margin-left:auto; margin-right:auto; }
.empty-state.compact { max-width:820px; padding:25px; text-align:left; }
.feature-strip { margin-top:60px; border-top:1px solid var(--grey-3); padding-top:20px; }
.mini-action-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
.mini-action-grid a { padding:18px; border-radius:8px; background:var(--grey-4); text-decoration:none; }
.mini-action-grid strong,.mini-action-grid span { display:block; }
.mini-action-grid span { color:var(--grey-1); font-size:14px; margin-top:3px; }
.document-list { max-width:900px; border-top:1px solid var(--grey-3); }
.document-row { display:flex; justify-content:space-between; gap:20px; align-items:center; border-bottom:1px solid var(--grey-3); padding:16px 0; }
.share-banner { display:flex; justify-content:space-between; gap:20px; align-items:center; border:1px solid #c8dce9; border-left:6px solid var(--blue); background:var(--blue-pale); padding:13px 16px; border-radius:0 7px 7px 0; margin-bottom:28px; font-size:14px; }
.share-banner span { color:var(--grey-1); }

.garage-search { display:flex; align-items:flex-end; gap:12px; margin:25px 0 35px; }
.garage-search .form-group { flex:1; margin:0; }
.garage-directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.garage-directory-card { display:flex; gap:20px; border:1px solid var(--grey-3); border-radius:10px; padding:22px; background:#fff; box-shadow:0 5px 16px rgba(8,43,76,.05); }
.garage-directory-card h2 { margin:0 0 6px; font-size:24px; }
.garage-directory-card p { margin:4px 0 10px; }
.garage-badge-mini { flex:0 0 74px; height:55px; display:flex; align-items:center; justify-content:center; background:var(--navy); color:#fff; border-radius:7px; border-bottom:6px solid var(--yellow); font-weight:900; }
.garage-badge-mini b { background:var(--yellow); color:var(--navy-deep); padding:2px 4px; border-radius:3px; margin-left:2px; }
.garage-profile-hero { display:flex; align-items:center; gap:28px; margin-bottom:30px; }
.garage-profile-hero img { width:260px; max-width:40%; height:auto; }
.garage-profile-hero h1 { margin:0 0 10px; }
.badge-preview { max-width:620px; padding:30px; background:var(--grey-4); border:1px solid var(--grey-3); border-radius:10px; }
.badge-preview img { display:block; width:100%; height:auto; }
.print-actions { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:24px; }
.service-slip { max-width:820px; border:1px solid var(--grey-3); border-radius:10px; padding:30px; background:#fff; box-shadow:var(--shadow); }
.service-slip-header { display:flex; justify-content:space-between; gap:28px; align-items:flex-start; border-bottom:4px solid var(--yellow); padding-bottom:22px; margin-bottom:26px; }
.service-slip-header .record-card-brand { color:var(--navy); margin-bottom:18px; }
.service-slip-header .record-card-brand span { color:var(--grey-1); }
.service-slip-header h1 { font-size:36px; letter-spacing:0; margin-bottom:10px; }
.service-slip-header p { margin:0; color:var(--grey-1); font-size:16px; }
.service-slip-badge { width:245px; max-width:34%; height:auto; }
.service-slip-badge-fallback { min-width:210px; border-radius:8px; background:var(--navy); color:#fff; border-bottom:6px solid var(--yellow); padding:18px; font-weight:900; text-align:center; }
.service-slip-main { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:28px; align-items:start; }
.service-slip-main h2 { margin:16px 0 18px; font-size:25px; letter-spacing:0; }
.slip-details { margin:0; border-top:1px solid var(--grey-3); }
.slip-details div { display:grid; grid-template-columns:170px 1fr; gap:14px; border-bottom:1px solid var(--grey-3); padding:10px 0; }
.slip-details dt { font-weight:800; color:var(--navy-deep); }
.slip-details dd { margin:0; }
.service-slip-qr { border:1px solid var(--grey-3); border-radius:8px; padding:14px; text-align:center; background:var(--grey-4); }
.service-slip-qr img { display:block; width:100%; max-width:220px; height:auto; margin:0 auto 14px; background:#fff; }
.service-slip-qr strong,.service-slip-qr span { display:block; }
.service-slip-qr .pin-inline { font-size:26px; font-weight:900; }
.service-slip-work { border-top:1px solid var(--grey-3); margin-top:26px; padding-top:20px; }
.service-slip-work h2 { margin:0 0 10px; font-size:24px; letter-spacing:0; }
.service-slip-work p { margin:0; max-width:none; }
.service-slip-footer { border-top:1px solid var(--grey-3); margin-top:24px; padding-top:14px; color:var(--grey-1); font-size:13px; }
.service-slip-footer span,.service-slip-footer small { display:block; overflow-wrap:anywhere; }

@media (max-width: 980px) {
    .public-hero { grid-template-columns:1fr; gap:36px; }
    .hero-record-card { max-width:560px; transform:none; }
    .acquisition-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .verification-section { grid-template-columns:1fr; gap:25px; }
    .owner-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .public-hero { padding-top:8px; }
    .public-hero h1 { font-size:clamp(39px,12vw,52px); }
    .trust-band,.vehicle-grid,.garage-directory,.verification-key,.mini-action-grid { grid-template-columns:1fr; }
    .acquisition-grid { grid-template-columns:1fr; }
    .acquisition-grid > a { min-height:0; }
    .verification-section { padding:24px 18px; }
    .garage-cta,.owner-heading,.garage-profile-hero,.share-banner { flex-direction:column; align-items:flex-start; }
    .garage-cta { padding:28px 20px; }
    .garage-cta .button-row { width:100%; }
    .owner-action-grid { grid-template-columns:1fr; }
    .record-heading { flex-direction:column; gap:9px; }
    .vehicle-card-top { align-items:flex-start; flex-direction:column; }
    .garage-search { display:block; }
    .garage-search .form-group { margin-bottom:12px; }
    .garage-profile-hero img { width:100%; max-width:420px; }
    .verification-explainer { flex-direction:column; }
    .print-actions,.service-slip-header { flex-direction:column; }
    .service-slip-badge { max-width:320px; width:100%; }
    .service-slip-main { grid-template-columns:1fr; }
    .slip-details div { grid-template-columns:1fr; gap:2px; }
}
.pin-inline { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; letter-spacing:3px; color:var(--navy); }

@media print {
    @page { margin:14mm; }
    body { background:#fff; font-size:14px; }
    .site-header,.phase-bar,.site-footer,.skip-link,.flash-stack,.print-actions { display:none !important; }
    .container,.main-content { width:100%; max-width:none; padding:0; margin:0; }
    .service-slip { max-width:none; border:0; border-radius:0; padding:0; box-shadow:none; }
    .service-slip-header { break-inside:avoid; }
    .service-slip-header h1 { font-size:28px; }
    .service-slip-main { grid-template-columns:1fr 210px; }
    .service-slip-badge { width:220px; max-width:220px; }
    .service-slip-qr { background:#fff; }
    .button,button { box-shadow:none; }
    a { color:inherit; text-decoration:none; }
}
