:root {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1c211f;
  background: #f8f7f3;
  font-synthesis: none;
  --accent: #e64b38;
  --accent-ink: #a52e20;
  --line: #d6d8d1;
  --muted: #62665f;
  --radius: 3px;
  --shadow: 0 8px 30px #1c211f06;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a52e20;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: #1c211f;
  color: #fff;
  padding: 14px;
}
.skip:focus {
  top: 12px;
}
.top {
  min-height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(24px, calc((100vw - 1160px) / 2));
}
.brand {
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.35em;
  margin-top: 6px;
  text-align: center;
}
.toplink {
  font-size: 14px;
  padding: 10px 0;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 40px 24px 64px;
  flex: 1;
  min-width: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 12px 0 16px;
}
h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
  margin: 0 0 18px;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #53534e;
  max-width: 720px;
  margin-bottom: 28px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 13px;
  margin: 8px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card + .card {
  margin-top: 20px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 24px;
  align-items: start;
}
.narrow {
  max-width: 620px;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.row.start {
  justify-content: flex-start;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #1c211f;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent);
  color: #171717;
  min-height: 46px;
  line-height: 1.35;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
.button:hover {
  background: #373f3b;
}
.button.secondary {
  background: #fff;
  border-color: #85857d;
}
.button.secondary:hover {
  background: #f4f4f0;
}
.button.danger {
  border-color: #b04a40;
  background: #fff;
  color: #8a2c23;
}
.button.small {
  font-size: 13px;
  padding: 9px 16px;
  min-height: 40px;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 4px;
  min-height: 44px;
  color: #363630;
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}
.field label,
.field > span {
  font-size: 14px;
  font-weight: 600;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #85857d;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #1c211f;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #a3382c;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #1c211f;
  width: 20px;
  height: 20px;
  flex: none;
}
.field-error {
  color: #922d22;
  font-size: 13px;
}
.notice {
  padding: 16px 18px;
  border: 1px solid #c1c8bd;
  border-radius: 10px;
  background: #f3f5f0;
  line-height: 1.6;
  margin-bottom: 20px;
}
.notice.error {
  border-color: #e1b2ac;
  background: #fff3f1;
  color: #79271e;
}
.notice.success {
  border-color: #aacbb6;
  background: #f0faf3;
  color: #28533a;
}
.notice.info {
  border-color: #bfccd9;
  background: #f4f8fc;
  color: #304b65;
}
.notice p:last-child {
  margin-bottom: 0;
}
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  gap: 10px;
}
.steps li {
  flex: 1;
  border-top: 3px solid #d9d9d1;
  padding-top: 12px;
  font-size: 13px;
  color: #67675f;
}
.steps li[aria-current="step"] {
  border-color: #e64b38;
  color: #1c211f;
  font-weight: 700;
}
.steps li.complete {
  border-color: #333;
}
.step-num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c9c0;
  border-radius: 50%;
  margin-right: 7px;
  font-size: 12px;
}
.choice {
  display: flex;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  align-items: flex-start;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: #1c211f;
  background: #f5f6f2;
}
.choice input {
  margin: 2px 0;
}
.choice strong {
  display: block;
  font-size: 15px;
}
.choice p {
  font-size: 14px;
  color: #5d5d56;
  margin: 7px 0 0;
}
.choice.disabled {
  background: #f5f5f2;
  color: #75756d;
  cursor: default;
}
.product {
  display: grid;
  grid-template-columns: 24px 76px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.product:last-child {
  border-bottom: 0;
}
.product-image {
  width: 76px;
  height: 96px;
  object-fit: cover;
  background: #f1f1ed;
  border-radius: 8px;
  display: grid;
  place-content: center;
  color: #777;
}
.product h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.product p {
  font-size: 13px;
  margin: 0 0 6px;
}
.product label {
  display: inline-block;
  max-width: 100%;
}
.product .field {
  margin: 14px 0 0;
}
.product-info {
  min-width: 0;
}
.product-fields {
  grid-column: 3;
  min-width: 0;
}
.selection-caption {
  display: none;
}
.file-status {
  overflow-wrap: anywhere;
}
.replacement-summary {
  margin-top: 24px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #edede8;
  font-size: 14px;
}
.summary-line:last-child {
  border-bottom: 0;
}
.summary-line.total {
  font-size: 19px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
}
.amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #efefea;
  color: #44443c;
  line-height: 1.4;
}
.badge.good {
  background: #e7f3eb;
  color: #29513a;
}
.badge.warn {
  background: #f9e9df;
  color: #85472c;
}
.badge.bad {
  background: #f9e6e2;
  color: #8b3326;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 24px;
}
.tabs a {
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
}
.tabs a[aria-current="page"] {
  background: #1c211f;
  color: #fff;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #e9e9e3;
  vertical-align: top;
}
th {
  font-weight: 600;
  background: #f9f9f6;
  font-size: 12px;
  color: #5c5c54;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td a {
  font-weight: 600;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #63635b;
}
.metric {
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.filters .field {
  flex: 1;
  min-width: 170px;
  margin: 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 2px solid #d6d8d1;
  margin-left: 7px;
  padding: 0 0 24px 22px;
  position: relative;
}
.timeline li:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e64b38;
  left: -6px;
  top: 4px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline time {
  display: block;
  color: #62625a;
  font-size: 12px;
  margin-bottom: 5px;
}
.timeline p {
  font-size: 14px;
  margin: 0;
}
.scan-input {
  font-size: 22px !important;
  letter-spacing: 0.04em;
}
.scan-video {
  display: block;
  width: 100%;
  max-height: 320px;
  background: #242424;
  border-radius: 12px;
}
.code {
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}
.wrap {
  overflow-wrap: anywhere;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
footer {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #5e5e56;
  font-size: 12px;
  line-height: 1.6;
  background: #fff;
}
.loading {
  color: #5b5b53;
  padding: 28px 0;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #a52e20;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .top {
    min-height: 76px;
    padding: 16px 20px;
  }
  .brand {
    font-size: 18px;
  }
  .brand span {
    font-size: 8px;
  }
  .top-actions {
    gap: 10px;
  }
  .toplink {
    font-size: 12px;
  }
  main {
    padding: 28px 18px 44px;
  }
  .card {
    padding: 22px;
  }
  .steps {
    gap: 6px;
    margin: 24px 0;
  }
  .steps li {
    font-size: 11px;
  }
  .step-num {
    display: none;
  }
  .product {
    grid-template-columns: 22px 60px minmax(0, 1fr);
    gap: 10px;
  }
  .product-image {
    width: 60px;
    height: 80px;
  }
  .product-fields {
    grid-column: 1 / -1;
  }
  .product-fields .grid {
    grid-template-columns: 1fr;
  }
  .product .selection-caption {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    color: var(--muted);
  }
  .actions .button {
    flex: 1;
  }
  .tabs {
    gap: 4px;
  }
  .tabs a {
    padding: 9px 11px;
  }
  .summary-line {
    gap: 12px;
  }
}
@media print {
  .top-actions,
  .tabs,
  .actions,
  .button,
  .text-button,
  .steps,
  footer {
    display: none !important;
  }
  body,
  main,
  .card {
    background: #fff;
    box-shadow: none;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .layout {
    display: block;
  }
  .card {
    break-inside: avoid;
    margin-bottom: 20px;
  }
  .notice {
    border-color: #555;
  }
  .no-print {
    display: none !important;
  }
}
.confirmation {
  border: 1px solid #d6d8d1;
  border-radius: 16px;
  padding: 28px;
  max-width: min(620px, calc(100vw - 32px));
  color: #1c211f;
  box-shadow: 0 20px 80px #0003;
}
.confirmation::backdrop {
  background: #0006;
}
.dialog-body {
  max-height: 65vh;
  overflow: auto;
}
.confirmation .actions {
  margin-top: 24px;
}

.language-choice {
  display: grid;
  gap: 4px;
  min-width: 115px;
}
.language-choice label {
  font-size: 12px;
}
.language-choice select {
  padding: 6px 8px;
  min-height: 44px;
  font-size: 13px;
}
.brand {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 500px;
}
.confirmation-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
}
@media (max-width: 560px) {
  .top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .brand {
    max-width: 100%;
  }
  .top-actions {
    flex: 1;
    justify-content: space-between;
  }
  .language-choice {
    min-width: 125px;
  }
  .summary-line > span:first-child {
    overflow-wrap: anywhere;
    min-width: 0;
  }
}

/* Atelier: warm paper / ink / vermilion. Native system fonts; no font downloads. */
:root {
  --ink: #1c211f;
  --paper: #f8f7f3;
  --display: Georgia, "Times New Roman", serif;
  --shadow: none;
}
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
}
.top {
  min-height: 102px;
  background: var(--paper);
  padding: 22px max(32px, calc((100vw - 1240px) / 2));
  gap: 28px;
}
.brand {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 0.055em;
}
.brand span {
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-top: 8px;
}
.top-actions {
  gap: 26px;
}
.toplink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
main {
  width: min(100%, 1240px);
  padding: 54px 32px 88px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5.3vw, 68px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0 0 24px;
  max-width: 900px;
}
h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 20px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}
p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 670px;
  margin-bottom: 36px;
}
.hint {
  font-size: 12px;
  line-height: 1.65;
}
.card {
  padding: 32px;
  box-shadow: none;
}
.card + .card {
  margin-top: 24px;
}
.layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 28px;
}
.narrow {
  max-width: 680px;
}
.row > *,
.summary-line > * {
  min-width: 0;
}
.grid {
  gap: 20px;
}
.button {
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  min-height: 50px;
  font-size: 13px;
  gap: 16px;
  transition: background 0.16s ease;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #8c938b;
}
.button.secondary:hover {
  background: #eeefeb;
}
.button.small {
  min-height: 44px;
}
.text-button {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 4px;
  text-underline-offset: 4px;
}
.field {
  gap: 8px;
  margin-bottom: 22px;
  min-width: 0;
}
.field label,
.field > span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.field label input,
.field label select,
.field label textarea {
  margin-top: 8px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 50px;
  border-color: #90978e;
  border-radius: 2px;
  padding: 13px 14px;
  max-width: 100%;
}
label.row {
  min-height: 44px;
  font-size: 14px;
}
.notice {
  border-radius: 2px;
  border-left-width: 3px;
  padding: 20px 22px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.steps {
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 34px 0 36px;
}
.steps li {
  border-top: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 15px 12px 20px 0;
  font-size: 12px;
  line-height: 1.5;
}
.steps li[aria-current="step"] .step-num {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.choice {
  border-radius: 2px;
  padding: 22px;
  gap: 16px;
}
.choice:has(input:checked) {
  box-shadow: inset 3px 0 var(--accent);
}
.product {
  grid-template-columns: 24px 86px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
}
.product-image {
  width: 86px;
  height: 112px;
  border-radius: 1px;
  background: #eeefea;
  font: 19px var(--display);
  color: #626a61;
}
.product .field {
  margin-top: 16px;
}
.replacement-summary {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.summary-line {
  flex-wrap: wrap;
  padding: 14px 0;
  line-height: 1.6;
}
.summary-line > span:first-child {
  overflow-wrap: anywhere;
  flex: 1 1 150px;
}
.summary-line.total {
  border-color: var(--ink);
  font-size: 21px;
  font-weight: 650;
}
.amount {
  letter-spacing: -0.015em;
}
.badge {
  border-radius: 2px;
  font-size: 11px;
  padding: 6px 10px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tabs {
  gap: 0 20px;
  border-top: 1px solid var(--line);
  padding: 5px 0;
  margin: 28px 0 30px;
}
.tabs a {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  min-height: 46px;
  font-size: 12px;
}
.tabs a[aria-current="page"] {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.table-wrap {
  border-radius: 2px;
}
table {
  font-size: 13px;
}
th,
td {
  padding: 17px 18px;
  line-height: 1.6;
}
th {
  background: #eff1eb;
  font-size: 11px;
  color: #4f584c;
}
.metric {
  font: 40px var(--display);
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.timeline li {
  border-left-width: 1px;
  padding-left: 24px;
}
.timeline time {
  font-size: 11px;
}
.scan-input {
  min-height: 66px !important;
  font-size: 24px !important;
}
.scan-video {
  border-radius: 2px;
}
footer {
  background: var(--paper);
  padding: 28px 32px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.confirmation {
  border-top: 4px solid var(--accent);
  border-radius: 3px;
  background: var(--paper);
  padding: 32px;
  width: 680px;
  max-width: calc(100vw - 32px);
}
.confirmation::backdrop {
  background: #14201988;
  backdrop-filter: blur(3px);
}
.dialog-body {
  max-height: 62vh;
  overscroll-behavior: contain;
}
.confirmation-actions {
  border-radius: 2px;
  border-top: 2px solid var(--ink);
}
.service-note {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 38px 32px;
}
.service-note h2 {
  font-size: 36px;
}
.service-note p {
  color: #d3d9d0;
  font-size: 14px;
}
.service-note a {
  color: #fff;
  font-size: 13px;
}
.service-mark {
  display: block;
  font: 72px/1 var(--display);
  color: #ff7c68;
  margin-bottom: 36px;
}
.service-divider {
  border-top: 1px solid #556055;
  padding-top: 24px;
  margin-top: 30px;
}
.page-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.page-intro .lead {
  margin: 0 0 26px;
}
.section-index {
  font-size: 11px;
  color: var(--accent-ink);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.policy-section {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0 0;
  padding: 24px 0 0;
  min-width: 0;
}
.policy-section legend {
  font: 23px var(--display);
  padding: 0 12px 0 0;
}
.rule-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  padding: 24px;
  margin-top: 18px;
  background: #fcfcf9;
  min-width: 0;
}
.rule-card summary {
  cursor: pointer;
  list-style-position: outside;
  margin-left: 18px;
  font-weight: 600;
  line-height: 1.6;
  min-height: 44px;
}
.rule-fields {
  margin-top: 20px;
}
.rule-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.rule-card .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.variant-caption {
  padding: 16px;
  background: #eff1eb;
  border-left: 2px solid var(--ink);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin-top: 0;
}
.eligibility-detail {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 12px 0;
}
body[data-surface="admin"] h1,
body[data-surface="scanner"] h1 {
  font-size: clamp(36px, 4.4vw, 54px);
}
body[data-surface="admin"] .card {
  padding: 28px;
}
body[data-surface="scanner"] main {
  max-width: 1000px;
}
body[data-surface="scanner"] .button {
  min-height: 54px;
}
@media (max-width: 900px) {
  .page-intro {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .page-intro .lead {
    margin-bottom: 0;
  }
  .layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 20px;
  }
  .card {
    padding: 26px;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .top {
    min-height: 86px;
    padding: 20px 24px;
    gap: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .top-actions {
    gap: 18px;
  }
  main {
    padding: 34px 20px 56px;
  }
  .card,
  body[data-surface="admin"] .card {
    padding: 24px;
  }
  .steps {
    margin: 28px 0;
  }
  .steps li {
    font-size: 11px;
    padding-right: 5px;
  }
  .step-num {
    display: flex;
    margin-bottom: 9px;
  }
  .product {
    grid-template-columns: 22px 66px minmax(0, 1fr);
    gap: 12px;
  }
  .product-image {
    width: 66px;
    height: 88px;
  }
  .product-fields {
    grid-column: 1 / -1;
  }
  .product-fields .grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 0 18px;
  }
  .rule-card {
    padding: 18px;
  }
  .confirmation {
    padding: 22px;
  }
  .service-mark {
    font-size: 58px;
    margin-bottom: 24px;
  }
}
@media (max-width: 560px) {
  .top-actions {
    flex: 1 1 100%;
  }
  .card,
  body[data-surface="admin"] .card {
    padding: 22px 18px;
  }
  h2 {
    font-size: 27px;
  }
  .grid {
    gap: 4px;
  }
  .button {
    padding: 14px 18px;
  }
  .filters .field {
    min-width: min(100%, 170px);
  }
  .rule-toolbar .button {
    flex: 1 1 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 560px) {
  body[data-surface="customer"] .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px 14px;
    padding: 18px 20px 12px;
    min-height: 0;
  }
  body[data-surface="customer"] .brand {
    font-size: 17px;
  }
  body[data-surface="customer"] .brand span {
    font-size: 8px;
    margin-top: 5px;
  }
  body[data-surface="customer"] .top-actions {
    display: contents;
  }
  body[data-surface="customer"] .language-choice {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  body[data-surface="customer"] .language-choice label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  body[data-surface="customer"] .toplink {
    grid-column: 1 / -1;
    min-height: 32px;
    padding: 4px 0;
    font-size: 11px;
  }
  body[data-surface="customer"] main {
    padding-top: 26px;
  }
  .page-intro {
    gap: 14px;
  }
  .page-intro h1 {
    margin-bottom: 0;
  }
  .page-intro .eyebrow {
    margin-bottom: 12px;
  }
  .page-intro .lead {
    font-size: 14px;
    line-height: 1.65;
  }
  .steps {
    margin: 20px 0;
  }
  .steps li {
    padding-top: 6px;
    padding-bottom: 12px;
  }
}
.condition-group {
  border: 1px solid var(--line);
  margin: 0 0 20px;
  padding: 18px;
  min-width: 0;
}
.condition-group legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.condition-choices {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.condition-choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
}
.rule-advanced {
  margin-bottom: 22px;
}
.rule-advanced summary {
  font-size: 12px;
  font-weight: 400;
}
.rule-description {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
