@font-face {
  font-family: Lato;
  src: url("/assets/Lato-Regular.ttf");
}
@font-face {
  font-family: Lato;
  src: url("/assets/Lato-Black.ttf");
  font-weight: 900;
}
:root {
  --yellow: #ffc72c;
  --black: #090b0d;
  --muted: #646a70;
  --line: #dfe2e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f4f5;
  color: #171b1f;
  font-family: Lato, Arial, sans-serif;
  line-height: 1.5;
}
.masthead {
  background: var(--black);
  color: #fff;
  padding: 15px max(20px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand img {
  width: 155px;
  height: 60px;
  object-fit: contain;
}
.tag {
  display: block;
  font-size: 10px;
  color: #b5b9bc;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.test-banner {
  background: var(--yellow);
  color: #171b1f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 8px;
}
nav {
  background: #fff;
  display: flex;
  gap: 8px;
  padding: 10px max(20px, calc((100vw - 1200px) / 2));
  overflow: auto;
  border-bottom: 1px solid var(--line);
}
nav:empty {
  display: none;
}
nav a {
  white-space: nowrap;
  text-decoration: none;
  color: #464b50;
  border-radius: 6px;
  padding: 9px 17px;
  font-size: 14px;
}
nav a.active {
  background: var(--black);
  color: var(--yellow);
}
main {
  max-width: 1200px;
  margin: 30px auto 70px;
  padding: 0 22px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 900;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
}
h2 {
  font-size: 23px;
  margin: 8px 0 20px;
}
h3 {
  font-size: 17px;
  margin: 0 0 15px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #737a80;
}
.sub {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 28px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px #00000003;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 10px;
  border-top: 3px solid var(--yellow);
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat.alert {
  border-top-color: #ce4737;
}
.stat.alert strong {
  color: #ac3026;
}
.pill {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  background: #edf0f2;
  border-radius: 20px;
  font-weight: 900;
}
.pill.danger {
  background: #ffe8e3;
  color: #a62a21;
}
.pill.good {
  background: #e6f4e7;
  color: #27662e;
}
.pill.yellow {
  background: #fff2bd;
  color: #655217;
}
a {
  color: #24546f;
}
button,
.btn {
  background: var(--yellow);
  color: var(--black);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 17px;
  font:
    900 14px Lato,
    Arial;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button.secondary,
.btn.secondary {
  background: #fff;
  border-color: #c9ced2;
  color: #333;
}
button.dark,
.btn.dark {
  background: var(--black);
  color: var(--yellow);
}
button.danger {
  background: #a72d23;
  color: #fff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.small,
.btn.small {
  padding: 6px 11px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  font:
    14px Lato,
    Arial;
  padding: 11px 12px;
  border: 1px solid #bcc3c9;
  border-radius: 6px;
  margin-top: 6px;
  background: white;
  color: #171b1f;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #edbd3d;
  outline-offset: 2px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 7px 0 0;
  accent-color: #15191d;
}
.checklabel {
  font-weight: 400;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #6b7278;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f6f7f8;
  font-weight: 900;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid #e8eaec;
}
td a {
  font-weight: 900;
  text-decoration: none;
}
tr:last-child td {
  border-bottom: 0;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-width: 950px;
  margin: 45px auto;
  gap: 45px;
  align-items: center;
}
.auth-art {
  background: var(--black);
  color: white;
  border-radius: 15px;
  padding: 40px 35px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.auth-art:after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -100px;
  width: 220px;
  height: 300px;
  background: var(--yellow);
  transform: rotate(28deg);
  opacity: 0.15;
}
.auth-art h1 {
  font-size: 43px;
}
.auth-art em {
  font-style: normal;
  color: var(--yellow);
}
.auth-art p {
  color: #b8bec2;
}
.auth-art .eyebrow {
  color: var(--yellow);
}
.auth-card {
  padding: 30px;
}
.auth-card input {
  padding: 13px;
}
.auth-card button {
  width: 100%;
}
.empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  background: #f8f9fa;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.empty p {
  margin: 0 0 8px;
}
.empty p:last-child {
  margin-bottom: 0;
}
.warning {
  background: #fff4ce;
  border-left: 4px solid #efb721;
  border-radius: 4px;
  padding: 13px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}
.error {
  background: #ffe8e3;
  border-left: 4px solid #ad3226;
  padding: 12px;
}
.success {
  background: #e7f4e9;
  border-left: 4px solid #2a7938;
  padding: 14px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eaec;
}
.list-row:last-child {
  border: 0;
}
.list-row p {
  margin: 3px 0;
}
.check-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.check-item .choices {
  display: flex;
  gap: 7px;
}
.choices label,
.choice-chip {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #ccd1d5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.choices label:has(input:checked) {
  background: #fff0b0;
  border-color: #b58b13;
}
.check-title {
  font-size: 14px;
}
.check-title small {
  color: #555c63;
}
h3.check-group,
.check-group {
  background: #13181c;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  margin: 16px 0 0;
}
.sig {
  width: 100%;
  height: 150px;
  display: block;
  border: 1px dashed #a4afb6;
  border-radius: 6px;
  background: #fff;
  touch-action: none;
}
.sig-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 900;
}
.signature-block {
  max-width: 520px;
}
.form-long {
  max-width: 900px;
  margin: auto;
}
.qr img {
  width: 200px;
  height: 200px;
}
.qr {
  text-align: center;
  word-break: break-all;
}
.timeline {
  max-height: 370px;
  overflow: auto;
}
.message {
  background: #f2f4f6;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}
.message.admin {
  background: #fff5d1;
}
.message p {
  white-space: pre-wrap;
  margin: 4px 0;
}
.wide {
  grid-column: 1/-1;
}
footer {
  font-size: 11px;
  padding: 20px;
  text-align: center;
  color: #737a80;
  border-top: 1px solid #e3e6e8;
  background: #fff;
}
footer span {
  margin-left: 15px;
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 500px;
  padding: 15px 22px;
  border-radius: 8px;
  color: white;
  background: #17232b;
  box-shadow: 0 5px 30px #0003;
  z-index: 20;
  display: none;
}
#notice.error {
  display: block;
  background: #9c2f25;
}
#notice.success {
  display: block;
  background: #255c38;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 20px;
}
.profile-grid label {
  font-weight: 400;
  font-size: 12px;
}
.photo-preview {
  max-width: 150px;
}
.mobile-only {
  display: none;
}
@media (max-width: 760px) {
  .brand {
    font-size: 15px;
    gap: 10px;
  }
  .brand img {
    width: 95px;
    height: 45px;
  }
  .tag {
    font-size: 8px;
    max-width: 150px;
  }
  .masthead {
    padding: 12px 16px;
  }
  .masthead .quiet {
    display: none;
  }
  main {
    margin-top: 22px;
    padding: 0 15px;
  }
  h1 {
    font-size: 29px;
  }
  .heading {
    align-items: flex-start;
  }
  .grid,
  .auth-grid,
  .fields {
    grid-template-columns: 1fr;
  }
  .auth-grid {
    margin: 20px auto;
    gap: 18px;
  }
  .auth-art {
    min-height: 0;
    padding: 24px;
  }
  .auth-art h1 {
    font-size: 32px;
  }
  .auth-art p {
    margin-bottom: 0;
  }
  .auth-card {
    padding: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 29px;
  }
  .card {
    padding: 18px;
  }
  .check-item {
    grid-template-columns: 1fr;
  }
  .check-item .choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .choices label {
    text-align: center;
    padding: 13px 5px;
  }
  .check-title {
    font-size: 15px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 8px 10px;
  }
  nav a {
    padding: 8px 12px;
  }
  footer span {
    display: block;
    margin: 8px 0 0;
  }
  #notice {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
}
@media print {
  body {
    background: white;
  }
  .masthead,
  #nav,
  .test-banner,
  footer,
  .no-print {
    display: none;
  }
  main {
    margin: 0;
  }
  .card {
    border: 0;
    box-shadow: none;
  }
  .qr img {
    width: 300px;
    height: 300px;
  }
  .qr {
    font-size: 16px;
  }
  body.print-qr #app > * {
    display: none;
  }
  body.print-qr #app .qr {
    display: block;
  }
}
/* Acceptance-test refinements: readable touch targets, local form progress, no
   horizontal document overflow. Wide measurement tables scroll inside cards. */
.card,
.grid > *,
.list-row > *,
fieldset {
  min-width: 0;
}
.list-row strong,
.list-row a,
fieldset legend {
  overflow-wrap: anywhere;
}
.check-progress {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff9e6;
  border: 1px solid #e3cd7b;
  border-radius: 6px;
  padding: 11px 13px;
  margin: 8px 0 14px;
  font-size: 13px;
  font-weight: 900;
}
.choices label:has(input:checked[value="OK"]),
.choices label:has(input:checked[value="Pass"]) {
  background: #e9f5ec;
  border-color: #4b8b5a;
}
.choices label:has(input:checked[value="Defect"]),
.choices label:has(input:checked[value="Fail"]),
.choices label:has(input:checked[value="Repair"]) {
  background: #ffe9e3;
  border-color: #b94734;
}
.choices label:has(input:checked[value="Monitor"]) {
  background: #fff4d6;
  border-color: #c48a12;
}
.choices label:has(input:checked[value="NA"]) {
  background: #e7eef8;
  border-color: #3d6fb8;
}
.choices label:has(input:disabled) {
  background: #f5f6f7;
  color: #979ea4;
  border-color: #e2e5e8;
}
.pmi-choices {
  display: flex;
  gap: 6px;
}
.choice-btn {
  position: relative;
  width: 52px;
  min-width: 44px;
  min-height: 52px;
  margin: 0;
  padding: 6px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #ccd1d5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: #4a5158;
}
.choice-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}
.choice-caption {
  font-size: 11px;
  letter-spacing: 0.01em;
}
.choice-ok { color: #2f7a43; }
.choice-ok .choice-icon { color: #2f7a43; }
.choice-repair { color: #b94734; }
.choice-repair .choice-icon { color: #b94734; }
.choice-monitor { color: #7a4a00; }
.choice-na { color: #2f5ea8; }
.choice-na .choice-icon { color: #2f5ea8; }
.choice-btn:has(input:checked).choice-ok {
  background: #e9f5ec;
  border-color: #2f7a43;
  color: #1f5a30;
}
.choice-btn:has(input:checked).choice-repair {
  background: #ffe9e3;
  border-color: #b94734;
}
.choice-btn:has(input:checked).choice-monitor {
  background: #fff4d6;
  border-color: #c48a12;
}
.choice-btn:has(input:checked).choice-na {
  background: #e7eef8;
  border-color: #2f5ea8;
}
.monitor-tri {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid #7a4a00;
}
.monitor-tri span {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 10px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.choice-btn:has(input:focus-visible) {
  outline: 2px solid #13181c;
  outline-offset: 2px;
}
.repair-followup {
  display: grid;
  gap: 12px;
  padding: 10px 0 4px;
}
.repair-q {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.repair-choices label {
  padding: 8px 12px;
}
.choice-safety:has(input:checked) {
  background: #ffe9e3;
  border-color: #b94734;
}
.choice-not-safety:has(input:checked) {
  background: #fff4d6;
  border-color: #c48a12;
}
.repair-closed {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  align-items: start;
}
.repair-closed[hidden] {
  display: none;
}
.time-spent input {
  width: 100%;
}
@media (max-width: 760px) {
  .pmi-item .pmi-choices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .choice-btn {
    width: auto;
    min-height: 56px;
  }
  .repair-closed {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  button,
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .heading {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }
  .heading > div {
    min-width: 0;
    flex: 1 1 220px;
  }
  .heading .sub {
    margin-bottom: 0;
  }
  .heading > .btn {
    padding: 10px 13px;
  }
  .form-long .heading {
    margin-bottom: 20px;
  }
  .list-row {
    flex-wrap: wrap;
  }
  .list-row > div:first-child {
    flex: 1 1 190px;
  }
}
.qr {
  word-break: normal;
  overflow-wrap: anywhere;
}
#notice {
  padding-right: 52px;
}
#notice button {
  position: absolute;
  right: 3px;
  top: 3px;
  background: transparent;
  color: #fff;
  font:
    24px Arial,
    sans-serif;
  min-height: 40px;
  width: 40px;
  padding: 0;
}

/* Role-specific entry and accessible password visibility controls. */
.portal-context {display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1200px;margin:auto;padding:12px 22px;background:#fff;}
.portal-context a {font-size:12px;color:#343a40;}
.portal-badge {background:#090b0d;color:#ffc72c;border-radius:5px;padding:5px 9px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
.role-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0;}
.role-choice {display:flex;flex-direction:column;gap:16px;padding:28px;background:#ffc72c;border:2px solid #090b0d;border-radius:12px;color:#171b1f;text-decoration:none;box-shadow:0 4px 0 #090b0d;}
.role-choice:hover,.role-choice:focus-visible {background:#ffe084;outline:3px solid #090b0d;outline-offset:3px;}
.role-choice-title {display:flex;justify-content:space-between;gap:10px;font-size:24px;font-weight:900;line-height:1.2;}
.role-choice>span:last-child {font-size:14px;}
.chooser .auth-art {padding:32px;border-radius:12px;}
.chooser .auth-art h1 {font-size:40px;}
.password-field {display:block;margin-bottom:16px;min-width:0;}
.password-field>label {display:block;margin:0 0 6px;}
.password-wrap {position:relative;}
.password-wrap input {padding-right:58px;width:100%;margin:0;}
.password-toggle {position:absolute;right:4px;top:4px;height:calc(100% - 8px);min-height:40px;min-width:44px;width:44px;padding:8px;background:#f3f4f5;border:0;border-radius:5px;display:flex;align-items:center;justify-content:center;}
.password-toggle svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;}
.password-rules {list-style:none;padding:0;margin:9px 0 0;font-size:12px;color:#646a70;}
.password-rules .met {color:#216a34;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.vehicle-choice {color:inherit;text-decoration:none;}
.account-card .heading {align-items:flex-start;flex-wrap:wrap;}
.account-card .heading h2 {overflow-wrap:anywhere;}
#invite-link {font-size:14px;overflow-wrap:anywhere;}
@media(max-width:700px) {.role-grid{grid-template-columns:1fr;gap:16px;}.role-choice{padding:22px;gap:10px;}.role-choice-title{font-size:24px;}.chooser .auth-art{padding:24px;}.chooser .auth-art h1{font-size:32px;}.portal-context{padding:10px 15px;}.portal-context a{max-width:145px;text-align:right;}.auth-art h1{overflow-wrap:anywhere;}}

.password-wrap .password-toggle {width:44px;min-width:44px;margin:0;right:4px;}

/* Phase A mobile safety, office and inline-validation controls. */
input,select,textarea {font-size:16px}
.field-error{display:block;color:#9e1b18;font-weight:700;font-size:14px;margin-top:6px}
.error-summary{padding:12px;border-left:4px solid #a52020;background:#fff0ee;color:#8f1818;margin-bottom:16px;font-weight:700}
[aria-invalid="true"]{border:2px solid #b52222!important}
.password-rules .unmet{color:#a21919;font-weight:700}
.prohibition-banner{display:block;background:#a51d22;color:#fff!important;border:2px solid #7e1116;border-radius:7px;padding:10px 12px;margin:8px 0;font-weight:800;line-height:1.4}
.prohibition-banner a{color:#fff}.dvsa-stop{background:#ad161c!important;color:#fff!important;min-height:52px;font-weight:900}
.email-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;padding:12px;background:#f6f6f3}
#nav{flex-wrap:wrap;overflow:visible}a[href="#choose"],a[href="/portal/"]{display:inline-flex;align-items:center;min-height:32px}
[hidden]{display:none!important}details>summary{cursor:pointer;min-height:44px;padding:10px}

.invoice-line{padding:12px 0;border-bottom:1px solid #e0e2e4}.invoice-line .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-line label:first-child{grid-column:1/-1}

.fleet-switch {
  display: inline-flex;
  border: 1px solid #ccd1d5;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 10px;
  vertical-align: middle;
}
.fleet-switch button {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #13181c;
}
.fleet-switch button.active {
  background: #13181c;
  color: #fff;
}
@media (max-width: 760px) {
  .fleet-switch { display: flex; margin: 0 0 8px; }
  .fleet-switch button { min-height: 44px; min-width: 44px; padding: 8px 12px; }
  .choice-caption { font-size: 12px; }
}

/* Phone-width: fold long technician and accounts screens, jump between
   sections without changing the hash route, and stack data tables. */
.fold-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
}
.fold-card > summary::-webkit-details-marker,
.fold-card > summary::marker {
  display: none;
}
.fold-card > summary h2 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 18px;
}
.fold-card > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #090b0d;
  border-bottom: 2px solid #090b0d;
  transform: rotate(45deg);
  transition: transform 0.15s;
  margin-right: 4px;
  flex: 0 0 auto;
}
.fold-card[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}
.section-jump {
  display: none;
}
@media (min-width: 761px) {
  .fold-card > summary {
    cursor: default;
    pointer-events: none;
    padding: 0;
  }
  .fold-card > summary::after {
    display: none;
  }
  .fold-card:not([open]) > .fold-body {
    display: block !important;
  }
}
@media (max-width: 760px) {
  .mobile-only {
    display: block;
  }
  h1 {
    font-size: 24px;
  }
  .section-jump {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f3f4f5;
    margin: 0 -15px 14px;
    padding: 8px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .section-jump::-webkit-scrollbar {
    display: none;
  }
  .section-jump .jump-chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid #090b0d;
    border-radius: 999px;
    background: #ffc72c;
    color: #171b1f;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: none;
  }
  .check-progress {
    top: 60px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn,
  .actions button,
  .actions a.btn {
    width: 100%;
  }
  .form-long form > button,
  .fold-body > button,
  .fold-body form > button {
    width: 100%;
  }
  .table-wrap table.stack-rows {
    min-width: 0;
    width: 100%;
    border: 0;
  }
  .table-wrap table.stack-rows thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .table-wrap table.stack-rows tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 10px;
    background: #fff;
  }
  .table-wrap table.stack-rows tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border: 0;
    padding: 6px 0;
    text-align: right;
  }
  .table-wrap table.stack-rows tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    color: var(--muted);
    flex: 1 1 auto;
  }
  .table-wrap table.stack-rows tbody td:not([data-label])::before,
  .table-wrap table.stack-rows tbody td[data-label=""]::before {
    content: none;
  }
}
@media print {
  .section-jump {
    display: none !important;
  }
  .fold-card > summary::after {
    display: none;
  }
  .fold-card:not([open]) > .fold-body {
    display: block !important;
  }
}

.parts-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.parts-list-actions form,
.parts-list-actions details {
  margin: 0;
}
.parts-list-actions button,
.parts-list-actions summary {
  min-height: 44px;
}
.hint {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: -6px 0 12px;
}
/* Phones: tick boxes (N/A profile, declarations, consents) get a full-height tap row. */
@media (max-width: 760px) {
  .checklabel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 6px;
  }
  .checklabel input[type="checkbox"] {
    width: 24px;
    height: 24px;
    flex: none;
    margin: 0;
  }
}
