  :root {
    color-scheme: light;
    --paper: #f6f2ea;
    --card: #fffdf8;
    --ink: #29302f;
    --muted: #596360;
    --line: #d9d1c1;
    --control: #8a8373;
    --teal: #1d6b66;
    --teal-soft: #e5f0ee;
    --error: #a8281f;
    --error-soft: #fbeae7;
    --focus: #1b5fa8;
  }
  * { box-sizing: border-box; }
  html { background: var(--paper); }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 100%/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: anywhere;
  }
  .wrap { max-width: 60rem; margin: 0 auto; padding: 20px 16px 32px; }
  h1 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; }
  h2 { margin: 0 0 16px; font-size: 1.125rem; line-height: 1.3; }
  .lede { margin: 0 0 20px; color: var(--muted); }
  .grid { display: grid; gap: 16px; }
  @media (min-width: 44rem) {
    .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  }
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 16px;
  }
  .field { margin-bottom: 20px; }
  label.name, legend { display: block; margin: 0 0 6px; font-weight: 600; padding: 0; }
  select, input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--control);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
  }
  select { -webkit-appearance: none; appearance: none; padding-right: 40px; }
  .select-wrap { position: relative; }
  .select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
  }
  input[aria-invalid="true"] { border-color: var(--error); background: var(--error-soft); }
  .hint { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
  .error { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--error); }
  fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
  .check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }
  .check:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); }
  .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
  .check-name { display: block; font-weight: 600; }
  .check-price { display: block; font-size: 0.875rem; color: var(--muted); }
  .btn {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--teal);
    border-radius: 12px;
    background: transparent;
    color: var(--teal);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .btn:hover { background: var(--teal-soft); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  dl { margin: 0; }
  .row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .row:first-child { border-top: 0; padding-top: 0; }
  dt { flex: 1 1 8rem; min-width: 0; color: var(--ink); }
  dt small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
  dd { margin: 0 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .row.total { font-weight: 700; }
  .row.total dd { font-size: 1.125rem; }
  .row.final { background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 12px; padding: 12px; margin-top: 8px; }
  .empty { margin: 0; padding: 12px; border-radius: 12px; background: #f1ece1; color: var(--ink); }
  .note { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); }
  body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .sample-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; font-weight: 700; color: var(--teal); }
  .sample-brand span { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 0.875rem; }
