.sample-import { padding-block: 1.6rem clamp(3rem, 6vw, 5rem); }
.sample-steps {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem;
  margin: 1.3rem 0 1.6rem; padding: 0; list-style: none;
}
.sample-steps li {
  padding: .6rem .35rem; text-align: center; border-bottom: 2px solid var(--line);
  color: var(--muted); font-size: .9rem; font-weight: 600;
}
.sample-steps [aria-current] { border-color: var(--pine); color: var(--pine); background: #eef3ec; }
.sample-heading {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap;
  gap: .7rem 1.5rem; margin-bottom: 1.15rem;
}
.sample-heading h1 { font-size: clamp(2rem, 4vw, 3.75rem); }
.sample-context { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.sample-description { max-width: 63ch; color: var(--muted); }
.sample-form, .sample-filters { display: grid; gap: 1.25rem; min-width: 0; }
.sample-options {
  min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem; padding: 0; border: 0; margin: .3rem 0 0;
}
.sample-options legend { padding: 0; margin-bottom: .55rem; font-weight: 650; }
.sample-option {
  display: flex; align-items: start; gap: .7rem; border: 1px solid var(--line);
  border-radius: .6rem; padding: 1.1rem; background: white; cursor: pointer;
}
.sample-option:has(:checked) { border-color: var(--pine); background: #f0f6e9; }
.sample-option input { margin: .38rem 0 0; accent-color: var(--pine); }
.sample-option strong, .sample-option small { display: block; }
.sample-option small { color: var(--muted); margin-top: .2rem; }
.sample-fields, .sample-filters {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem;
}
.sample-fields { max-width: 64rem; }
.sample-price-fields { max-width: 42rem; grid-template-columns: 2fr 1fr; }
.sample-field { min-width: 0; display: grid; gap: .3rem; font-weight: 600; }
.sample-field input, .sample-field select, .sample-row-options select, .sample-match-options select {
  width: 100%; min-width: 0; min-height: 2.7rem; padding: .45rem .6rem;
  border: 1px solid #7e9286; border-radius: .35rem; color: var(--ink); background: white;
}
.sample-form .errorlist, .sample-filters .errorlist { color: #922b21; margin-block: .3rem 0; }
.sample-status { background: #eff6ea; padding: .75rem 1rem; border-radius: .4rem; margin: .7rem 0; }
.sample-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem; margin: .35rem 0 1rem;
}
.sample-metrics > div { padding: .75rem; border-radius: .45rem; border: 1px solid var(--line); background: white; }
.sample-metrics dt { color: var(--muted); line-height: 1.3; font-size: .88rem; }
.sample-metrics dd { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-top: .3rem; }
.sample-conflict { padding: .9rem 1rem; border: 1px solid #b5ae92; background: #f9f6ec; border-radius: .45rem; }
.sample-conflict h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.sample-conflict p { color: var(--muted); }
.sample-match-options { display: grid; gap: .35rem; margin-top: .65rem; max-width: 33rem; }
.sample-match-options label, .sample-row-options label { font-size: .88rem; }
.sample-filters { grid-template-columns: minmax(11rem, 2fr) minmax(8rem, 1fr) minmax(9rem, 1fr) auto; align-items: end; margin-bottom: 1rem; }
.sample-filters .button { min-height: 2.7rem; }
.sample-review-actions, .sample-pagination, .sample-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; justify-content: space-between;
}
.sample-pagination { justify-content: center; }
.sample-footer { justify-content: flex-start; }
.sample-scroll { overflow-x: auto; min-width: 0; border: 1px solid var(--line); border-radius: .5rem; }
.sample-scroll:focus-visible, .sample-row-options summary:focus-visible { outline: 3px solid #c36819; outline-offset: 3px; }
.sample-table { width: 100%; border-collapse: collapse; background: white; }
.sample-table caption { text-align: left; padding: .6rem .8rem; color: var(--muted); font-size: .9rem; }
.sample-table th, .sample-table td { padding: .55rem .65rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.sample-table thead { background: #edf3eb; }
.sample-table td, .sample-table tbody th { font-size: .9rem; overflow-wrap: anywhere; }
.sample-table .sample-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sample-review-table .sample-match-cell span { display: block; color: var(--muted); font-size: .83rem; margin-top: .25rem; }
.sample-review-table .sample-match-cell { min-width: 8.3rem; }
.sample-review-table .sample-match-cell .sample-alert { color: #922b21; font-weight: 650; }
.sample-review-table .sample-action-cell { min-width: 9.5rem; }
.sample-row-buttons { display: flex; flex-wrap: wrap; gap: 0 .5rem; }
.sample-link-button {
  border: 0; color: var(--pine); background: transparent; padding: .32rem 0;
  text-align: left; text-decoration: underline; text-underline-offset: .18rem; font-weight: 650;
}
.sample-decision-label { display: block; color: var(--pine); font-size: .9rem; }
.sample-row-options { margin-top: .3rem; }
.sample-row-options summary { cursor: pointer; color: var(--pine); font-weight: 600; }
.sample-row-options select { margin-top: .3rem; font-size: .9rem; }

@media (max-width: 58rem) {
  .sample-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-review { border: 0; overflow: visible; }
  .sample-review-table, .sample-review-table caption, .sample-review-table tbody { display: block; }
  .sample-review-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sample-review-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .65rem;
    margin-bottom: .7rem; padding: .75rem; border-radius: .4rem; border: 1px solid var(--line);
  }
  .sample-review-table tr > * { min-width: 0; padding: 0; border: 0; white-space: normal; }
  .sample-review-table td[data-label]::before {
    content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; margin-bottom: .12rem;
  }
  .sample-review-table .sample-product-cell, .sample-review-table .sample-match-cell,
  .sample-review-table .sample-action-cell, .sample-review-table td[colspan] { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 39rem) {
  .sample-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sample-options, .sample-fields, .sample-price-fields, .sample-filters { grid-template-columns: 1fr; }
  .sample-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-review-actions { align-items: start; }
}

.guest-preview [hidden] { display: none !important; }
.guest-drop { padding: 1.15rem; border: 2px dashed #819287; border-radius: .55rem; background: #f3f7f0; }
.guest-drop input { display: block; width: 100%; margin: .65rem 0; }
.guest-drop p, .guest-section > p { color: var(--muted); }
.guest-section { display: grid; min-width: 0; gap: .9rem; margin-block: 1.25rem; }
.guest-section h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
