/* QR access keeps the navy/lime identity without using colour as permission. */
[data-vqa-host] { min-width: 0; overflow-wrap: anywhere; color: var(--navy, #0c1c31); }
[data-vqa-host] h2 { font-size: clamp(1.55rem, 4vw, 2rem); margin-bottom: .3rem; }
[data-vqa-host] h3 { font-size: 1.15rem; margin: 0 0 .75rem; }
[data-vqa-host] p { line-height: 1.55; }
.vqa-security-note { background: #eff8dc; border: 1px solid #d8e9b0; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.vqa-section { padding: 1.15rem; margin: 1rem 0; border: 1px solid #dde4ef; border-radius: 16px; background: #fff; min-width: 0; }
.vqa-mileage-value { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 1rem; }
.vqa-mileage-value strong { font-size: 2rem; line-height: 1.15; }
.vqa-mileage-value span { color: #57687e; }
[data-vqa-host] label.field { display: flex; flex-direction: column; gap: .4rem; }
[data-vqa-host] input:not([type=file]), [data-vqa-host] textarea { min-height: 48px; width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
[data-vqa-host] button, .vqa-qr-panel button, .vqa-file-button { min-height: 44px; font-size: .9rem; }
.vqa-hint, .vqa-qr-copy small { color: #57687e; font-size: .85rem; line-height: 1.55; }
[data-vqa-host] [role=alert], .vqa-qr-panel [role=alert] { color: #a52b3d; white-space: pre-wrap; }
[data-vqa-host] [role=status] { color: #236438; }
[data-vqa-host] [role=alert]:empty, [data-vqa-host] [role=status]:empty, .vqa-qr-panel [role=alert]:empty { display: none; }
.vqa-history { border-top: 1px solid #e0e5ee; margin-top: 1rem; padding-top: .5rem; }
.vqa-history summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.vqa-history summary::before { content: '▸'; display: inline-block; margin-right: .6rem; }
.vqa-history[open] summary::before { content: '▾'; }
.vqa-history ul { list-style: none; padding: 0; margin: .4rem 0; }
.vqa-history li { display: flex; gap: .5rem 1rem; justify-content: space-between; padding: .6rem 0; border-top: 1px solid #eef1f5; flex-wrap: wrap; }
.vqa-history li span { color: #57687e; font-size: .85rem; }
.vqa-photo-actions, .vqa-qr-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.vqa-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; box-sizing: border-box; padding: .65rem 1rem; }
.vqa-file-button input[type=file] { opacity: 0; position: absolute; width: 100%; height: 100%; inset: 0; cursor: pointer; }
.vqa-file-button:focus-within { outline: 3px solid #2864a8; outline-offset: 3px; }
.vqa-file-button:has(input:disabled) { opacity: .6; cursor: wait; }
.vqa-photo-preview, .vqa-incident-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.vqa-photo-preview:empty { display: none; }
.vqa-photo-preview figure { border: 1px solid #dde4ef; border-radius: 12px; margin: 0; overflow: hidden; min-width: 0; }
.vqa-photo-preview img, .vqa-incident-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1f5; }
.vqa-photo-preview figcaption { padding: .5rem; font-size: .75rem; overflow-wrap: anywhere; }
.vqa-photo-preview button { width: calc(100% - 1rem); margin: 0 .5rem .5rem; }
.vqa-incident { padding: .85rem 0; border-top: 1px solid #e0e5ee; }
.vqa-incident-date { color: #57687e; font-size: .8rem; margin: 0; }
.vqa-incident-description { white-space: pre-wrap; margin: .4rem 0; }
.vqa-incident-photos a { display: block; min-height: 44px; border-radius: 10px; overflow: hidden; }
.vqa-qr-panel { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.15rem; align-items: center; border: 1px solid #dde4ef; padding: 1rem; border-radius: 16px; margin: 1rem 0; }
.vqa-qr-image { max-width: 160px; background: #fff; }
.vqa-qr-image svg { display: block; width: 100%; height: auto; }
.vqa-qr-copy { min-width: 0; }
.vqa-qr-copy h3 { margin: 0 0 .4rem; }
.vqa-qr-copy p { margin: .4rem 0; font-size: .9rem; }
.vqa-access-error { padding: 1rem; background: #fff4f1; border-radius: 12px; }
@media (max-width: 560px) {
  .vqa-section { padding: .9rem; }
  .vqa-qr-panel { grid-template-columns: minmax(0, 1fr); }
  .vqa-qr-image { justify-self: center; }
  .vqa-photo-actions > *, .vqa-qr-actions > * { flex: 1 1 100%; width: 100%; }
  [data-vqa-host] form > button[type=submit] { width: 100%; }
  .vqa-photo-preview, .vqa-incident-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vqa-qr-copy h3, .vqa-qr-copy p, .vqa-qr-copy small { text-align: left; }
}
/* Standalone sticker: SVG keeps sharp edges at every print resolution. */
.vqa-print-page { margin: 0; padding: 24px; color: #0c1c31; background: #f4f6f9; font-family: Arial, sans-serif; }
.vqa-sticker { width: 70mm; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 5mm; border: 1mm solid #0c1c31; border-radius: 4mm; background: #fff; text-align: center; }
.vqa-sticker-brand { background: #0c1c31; color: #bbfa3c; font-size: 13pt; font-weight: 700; padding: 3mm 0; border-radius: 2mm; letter-spacing: .3mm; }
.vqa-sticker h1 { font-size: 17pt; margin: 3mm 0; overflow-wrap: anywhere; }
.vqa-sticker-qr svg { display: block; width: 48mm; height: 48mm; max-width: 100%; margin: 0 auto; }
.vqa-sticker strong { display: block; font-size: 10pt; margin: 2mm 0; }
.vqa-sticker p { margin: 2mm 0; font-size: 8pt; }
.vqa-sticker small { font-size: 8pt; overflow-wrap: anywhere; }
.vqa-sticker-link { display: none; }
@media print {
  @page { margin: 10mm; }
  .vqa-print-page { padding: 0; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .vqa-sticker { margin: 0; break-inside: avoid; }
}
