.tnvc-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.tnvc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  margin-bottom: 20px;
}

.tnvc-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tnvc-help,
.tnvc-checked-at,
.tnvc-subvalue,
.tnvc-note,
.tnvc-message {
  color: #4b5563;
}

.tnvc-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tnvc-input,
.tnvc-input:hover,
.tnvc-input:focus,
.tnvc-input:active,
.tnvc-vrn-input,
.tnvc-vrn-input:hover,
.tnvc-vrn-input:focus,
.tnvc-vrn-input:active {
  flex: 1 1 260px;
  width: 100%;
  min-height: 118px !important;
  height: 118px !important;
  border: 4px solid #c2aa28 !important;
  border-radius: 22px !important;
  padding: 0 14px !important;
  font-family: 'Arial Black', Impact, Haettenschweiler, 'Arial Narrow Bold', system-ui, sans-serif !important;
  font-size: 3.15rem !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  line-height: 1 !important;
  text-transform: uppercase;
  text-align: center !important;
  color: #15264c !important;
  background: #ffd21f !important;
  background-color: #ffd21f !important;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.10), 0 6px 0 rgba(176, 145, 0, .88) !important;
  -webkit-text-fill-color: #15264c !important;
  text-shadow: none !important;
  caret-color: #2458FF;
  appearance: none;
  -webkit-appearance: none;
  opacity: 1 !important;
}

.tnvc-input::placeholder,
.tnvc-vrn-input::placeholder {
  color: rgba(24, 40, 75, .50) !important;
  -webkit-text-fill-color: rgba(24, 40, 75, .50) !important;
  font-size: .84em !important;
  font-weight: 800 !important;
  letter-spacing: .15em !important;
}

.tnvc-input:focus,
.tnvc-vrn-input:focus {
  outline: none !important;
  border-color: #111827 !important;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.10), 0 6px 0 #111827, 0 0 0 4px rgba(255, 210, 31, .24) !important;
  background: #ffd21f !important;
  background-color: #ffd21f !important;
}


input.tnvc-input,
input.tnvc-vrn-input {
  font-size: 3.15rem !important;
}

@media (max-width: 768px) {
  .tnvc-input,
  .tnvc-input:hover,
  .tnvc-input:focus,
  .tnvc-input:active,
  .tnvc-vrn-input,
  .tnvc-vrn-input:hover,
  .tnvc-vrn-input:focus,
  .tnvc-vrn-input:active,
  input.tnvc-input,
  input.tnvc-vrn-input {
    min-height: 110px !important;
    height: 110px !important;
    font-size: 2.75rem !important;
    letter-spacing: .15em !important;
    padding: 0 10px !important;
  }
}

.tnvc-button,
.tnvc-secondary-button {
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.tnvc-button {
  background: #2458FF;
  color: #fff;
}

.tnvc-secondary-button {
  background: #eef2ff;
  color: #1f2a44;
}

.tnvc-button[disabled] {
  opacity: .7;
  cursor: wait;
}

.tnvc-message {
  margin-top: 14px;
  font-weight: 600;
}

.tnvc-message.is-error { color: #b91c1c; }
.tnvc-message.is-success { color: #166534; }

.tnvc-plate-wrap {
  margin-bottom: 18px;
}

.tnvc-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: #FFD000;
  color: #111827;
  font-family: 'Arial Black', Impact, Haettenschweiler, 'Arial Narrow Bold', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: .14em;
  border: 2px solid #e6c200;
  box-sizing: border-box;
}

.tnvc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.tnvc-summary-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.tnvc-summary-label,
.tnvc-label {
  display: block;
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.tnvc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.tnvc-core-grid {
  margin-bottom: 22px;
}

.tnvc-value {
  display: block;
  font-weight: 800;
  color: #111827;
  font-size: 1.1rem;
}

.tnvc-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.tnvc-status-block,
.tnvc-mot-history,
.tnvc-extra-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.tnvc-status-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tnvc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.tnvc-pill.is-good { background: #dcfce7; color: #166534; }
.tnvc-pill.is-bad { background: #fee2e2; color: #b91c1c; }
.tnvc-pill.is-warn { background: #fef3c7; color: #92400e; }
.tnvc-pill.is-neutral { background: #e5e7eb; color: #374151; }

.tnvc-note {
  margin-top: 10px;
  font-size: .95rem;
}

.tnvc-mot-history {
  margin-top: 18px;
}

.tnvc-mot-history h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tnvc-mot-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.tnvc-test-list {
  display: grid;
  gap: 12px;
}

.tnvc-test-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.tnvc-test-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tnvc-comment-list {
  margin: 10px 0 0 18px;
}

.tnvc-extra-details {
  margin-top: 18px;
}

.tnvc-extra-details summary {
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tnvc-extra {
  padding-top: 16px;
}

.tnvc-actions {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .tnvc-grid,
  .tnvc-status-row,
  .tnvc-summary,
  .tnvc-mot-meta {
    grid-template-columns: 1fr;
  }

  .tnvc-button,
  .tnvc-input,
  .tnvc-secondary-button {
    width: 100%;
  }

  .tnvc-plate {
    font-size: 1.6rem;
  }

  .tnvc-input {
    font-size: 1.45rem;
    letter-spacing: .12em;
    min-height: 68px;
  }
}


.tnvc-insurance-block {
  margin-top: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.tnvc-insurance-note {
  margin: 8px 0 12px;
}

.tnvc-insurance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #2458FF;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tnvc-insurance-link:hover,
.tnvc-insurance-link:focus {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(36,88,255,.15);
}

.tnvc-test-list {
  position: relative;
  gap: 16px;
}

.tnvc-test-item {
  position: relative;
  padding-left: 18px;
}

.tnvc-test-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2458FF;
}

@media (max-width: 640px) {
  .tnvc-input {
    min-height: 84px;
    font-size: 1.85rem;
    letter-spacing: .14em;
    border-radius: 18px;
  }

  .tnvc-input::placeholder {
    font-size: .88em;
  }
}


@media (max-width: 640px) {
  .tnvc-input,
  .tnvc-input:hover,
  .tnvc-input:focus,
  .tnvc-input:active,
  .tnvc-vrn-input,
  .tnvc-vrn-input:hover,
  .tnvc-vrn-input:focus,
  .tnvc-vrn-input:active {
    min-height: 94px !important;
    font-size: 2.2rem !important;
    letter-spacing: .12em !important;
    border-radius: 20px !important;
  }
}


@media (max-width: 768px) {
  .tnvc-plate {
    min-height: 80px;
    font-size: 2rem;
    letter-spacing: .13em;
  }
}


/* 1.0.3.4 stronger VRN typography overrides */
.tnvc-search-card input.tnvc-input.tnvc-vrn-input,
.tnvc-search-card input.tnvc-input.tnvc-vrn-input[type="text"],
.tnvc-search-card .tnvc-form input.tnvc-vrn-input,
.tnvc-search-card .tnvc-form input.tnvc-vrn-input[type="text"] {
  font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif !important;
  font-size: 56px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  -webkit-text-size-adjust: 100%;
}

.tnvc-search-card input.tnvc-input.tnvc-vrn-input::placeholder,
.tnvc-search-card input.tnvc-input.tnvc-vrn-input[type="text"]::placeholder {
  font-size: 56px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

@media (max-width: 768px) {
  .tnvc-search-card input.tnvc-input.tnvc-vrn-input,
  .tnvc-search-card input.tnvc-input.tnvc-vrn-input[type="text"],
  .tnvc-search-card .tnvc-form input.tnvc-vrn-input,
  .tnvc-search-card .tnvc-form input.tnvc-vrn-input[type="text"] {
    font-size: 48px !important;
    letter-spacing: .10em !important;
  }

  .tnvc-search-card input.tnvc-input.tnvc-vrn-input::placeholder,
  .tnvc-search-card input.tnvc-input.tnvc-vrn-input[type="text"]::placeholder {
    font-size: 48px !important;
    letter-spacing: .10em !important;
  }
}


.tnvc-insights {
  margin: 0 0 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 16px;
}

.tnvc-insights h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #166534;
}

.tnvc-insights-list {
  margin: 0;
  padding-left: 18px;
}

.tnvc-insights-list li {
  margin: 0 0 8px;
  color: #14532d;
}

.tnvc-insights-list li:last-child {
  margin-bottom: 0;
}


.tnvc-insights {
  margin-bottom: 14px;
}

.tnvc-insights h3 {
  margin-bottom: 10px;
}

.tnvc-insights-list li {
  margin-bottom: 8px;
}

.tnvc-note + .tnvc-note {
  margin-top: 6px;
}

.tnvc-mot-history .tnvc-mot-item + .tnvc-mot-item {
  margin-top: 14px;
}

.tnvc-utility-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tnvc-reminder-panel,
.tnvc-insurance-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-top: 18px;
}

.tnvc-reminder-email {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.tnvc-reminder-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.tnvc-reminder-message { margin-top: 12px; }
.tnvc-reminder-message.is-error { color: #b91c1c; }
.tnvc-reminder-message.is-success { color: #166534; }

.tnvc-insurance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 16px;
  padding: 0 20px;
  background: #2458FF;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tnvc-reminder-toggle{background:#2458FF;color:#fff;}
.tnvc-share-button{background:#eef2ff;color:#1f2a44;}
.tnvc-plate{font-size:2.8rem;}
@media (max-width:768px){.tnvc-plate{font-size:2.3rem;}}


/* 1.0.6.10 polish */
.tnvc-note:empty,
.tnvc-subvalue:empty,
.tnvc-value:empty {
  display: none;
}

.tnvc-test-item {
  padding: 16px 16px 14px 18px;
}

.tnvc-comment-list {
  margin: 14px 0 0 18px;
  padding-left: 14px;
}

.tnvc-comment-list li {
  margin: 0 0 12px;
  line-height: 1.55;
}

.tnvc-comment-list li:last-child {
  margin-bottom: 0;
}

.tnvc-comment-item {
  padding: 10px 12px;
  border-radius: 12px;
  list-style-position: outside;
}

.tnvc-comment-advisory,
.tnvc-comment-minor {
  background: #fff7ed;
}

.tnvc-comment-major,
.tnvc-comment-fail,
.tnvc-comment-failed,
.tnvc-comment-dangerous {
  background: #fef2f2;
}

.tnvc-mot-history .tnvc-test-item + .tnvc-test-item {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .tnvc-comment-list {
    margin-top: 12px;
  }

  .tnvc-comment-item {
    padding: 10px 10px;
  }

  .tnvc-comment-list li {
    margin-bottom: 10px;
  }
}


.tnvc-note[hidden] { display:none !important; }
.tnvc-comment-list { margin: 12px 0 0 20px; padding-left: 16px; }
.tnvc-comment-list li { margin-bottom: 10px; line-height: 1.55; }
.tnvc-comment-item { word-break: break-word; }
.tnvc-comment-advisory { background:#fff8e7; border-radius:10px; padding:8px 10px; }
.tnvc-comment-major, .tnvc-comment-fail, .tnvc-comment-failed { background:#fff1f1; border-radius:10px; padding:8px 10px; }
.tnvc-comment-dangerous { background:#ffe3e3; border-radius:10px; padding:8px 10px; }
.tnvc-test-item { margin-bottom: 8px; }

/* 1.0.6.12 final cleanup */
.tnvc-note[hidden],
.tnvc-note:empty { display:none !important; }
.tnvc-comment-list li { margin-bottom: 12px; }
.tnvc-comment-item { line-height: 1.6; }


[hidden] {
  display: none !important;
}

.tnvc-note[data-key="mot_note"]:empty,
.tnvc-note[data-key="mot_note"]:not(.tnvc-has-note) {
  display: none !important;
}

.tnvc-comment-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}


.tnvc-test-item{background:#fff;border:1px solid #e3e7ef;border-radius:18px;padding:0;margin-bottom:14px;overflow:hidden}
.tnvc-test-summary{list-style:none;cursor:pointer;padding:16px 16px 14px}
.tnvc-test-summary::-webkit-details-marker{display:none}
.tnvc-test-meta-inline{display:flex;flex-direction:column;gap:4px;margin-top:10px}
.tnvc-test-chips{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}
.tnvc-note-chip{display:inline-block;padding:8px 12px;border-radius:999px;background:#eef1f6;color:#44506a;font-weight:700;font-size:13px}
.tnvc-note-chip.has-notes{background:#fff6db;color:#6a5200}
.tnvc-expand-hint{font-size:12px;color:#6b7280;font-weight:600}
.tnvc-mot-notes{padding:0 16px 16px;display:grid;gap:10px}
.tnvc-note-block{border-radius:12px;padding:12px 14px}
.tnvc-note-label{display:block;font-weight:800;text-transform:uppercase;font-size:12px;letter-spacing:.03em;margin-bottom:4px}
.tnvc-note-text{line-height:1.55;color:#374151;word-break:break-word}
.tnvc-note-advisory{background:#fff8e7}
.tnvc-note-advisory .tnvc-note-label{color:#8a6a00}
.tnvc-note-major{background:#fdecec}
.tnvc-note-major .tnvc-note-label{color:#a63232}
.tnvc-note-dangerous{background:#fde2e2}
.tnvc-note-dangerous .tnvc-note-label{color:#991b1b}
.tnvc-note-minor{background:#fff5d6}
.tnvc-note-minor .tnvc-note-label{color:#9a6700}
.tnvc-more-tests{display:block;width:100%;margin-top:8px;padding:14px 16px;border:none;border-radius:16px;background:#eef2ff;color:#243b85;font-weight:800;cursor:pointer}
.tnvc-test-hidden[hidden]{display:none !important}
@media (max-width: 640px){
 .tnvc-test-summary{padding:14px}
 .tnvc-mot-notes{padding:0 14px 14px}
 .tnvc-note-text{font-size:14px}
}


.tnvc-test-summary {
  cursor: pointer;
  list-style: none;
}
.tnvc-test-summary::-webkit-details-marker { display:none; }
.tnvc-test-item[open] .tnvc-expand-hint { display:none; }
.tnvc-expand-hint { color:#6b7280; font-weight:600; }


/* 1.0.6.19 final MOT fix */
.tnvc-collapsed .tnvc-mot-notes,
.tnvc-collapsed .tnvc-note-wrap,
.tnvc-collapsed .tnvc-card-details,
.tnvc-collapsed .tnvc-mot-details,
.tnvc-collapsed .tnvc-timeline-details,
.tnvc-collapsed .tn-mot-details,
.tnvc-collapsed .tn-details{display:none!important;}
.tnvc-show-more-tests{background:#2458FF;color:#fff;border:none;border-radius:18px;padding:14px 18px;font-weight:700;cursor:pointer;width:100%;margin-top:16px;}
