.ops-shell {
  --ops-ink: #251910;
  --ops-muted: #6b594a;
  --ops-line: #dfd2bf;
  --ops-paper: #fbf7ef;
  --ops-accent: #3c2416;
  width: min(calc(100% - 2rem), 68rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 5rem) 0;
  color: var(--ops-ink);
}
.ops-shell *, .ops-shell *::before, .ops-shell *::after { box-sizing: border-box; }
.ops-shell .ops-mast { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; border-bottom: 1px solid var(--ops-line); padding-bottom: 1.2rem; margin-bottom: 2rem; }
.ops-shell .ops-mast a, .ops-shell .ops-back { color: var(--ops-ink); }
.ops-shell .ops-logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; font-size: 1.2rem; font-weight: 700; }
.ops-logo small { display: block; font-size: .65rem; line-height: 1; letter-spacing: .025em; }
.ops-shell .ops-title, .ops-shell .ops-document-heading { position: static; display: block; background: none; border: 0; padding: 0; margin: 1.5rem 0; }
.ops-shell h1 { margin: .1em 0 .25em; color: var(--ops-ink); font: 700 clamp(2.35rem, 7vw, 4rem)/1.03 'Argentum Sans', 'Instrument Sans', sans-serif; letter-spacing: -.06em; overflow-wrap: anywhere; }
.ops-shell h2 { font-size: clamp(1.15rem, 3vw, 1.45rem); margin: 0 0 1rem; line-height: 1.2; color: var(--ops-ink); letter-spacing: -.025em; }
.ops-shell p { line-height: 1.5; color: var(--ops-muted); }
.ops-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; margin: 0; }
.ops-card, .ops-document { background: var(--ops-paper); border: 1px solid var(--ops-line); border-radius: .3rem; padding: clamp(1rem, 4vw, 2.25rem); }
.ops-login { max-width: 28rem; margin: 4rem auto; }
.ops-form { display: grid; gap: 1rem; }
.ops-form[hidden] { display: none; }
.ops-shell label { display: grid; gap: .45rem; color: var(--ops-ink); font-weight: 600; font-size: .88rem; }
.ops-shell input:not([type="radio"]) { width: 100%; min-width: 0; min-height: 2.75rem; padding: .65rem .78rem; font: inherit; color: var(--ops-ink); border: 1px solid var(--ops-line); background: #fffdfa; border-radius: .2rem; }
.ops-shell :where(input, a, button):focus-visible { outline: 2px solid #8d4a25; outline-offset: 4px; }
.ops-shell .ops-action, .ops-shell .ops-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; width: fit-content; border-radius: .2rem; padding: .66rem 1.08rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.ops-shell .ops-action { background: var(--ops-accent); color: #fffaf2; border: 1px solid var(--ops-accent); }
.ops-shell .ops-action:hover { background: #603d26; }
.ops-shell .ops-action:disabled { opacity: .6; cursor: wait; }
.ops-shell .ops-secondary { background: transparent; color: var(--ops-ink); border: 1px solid var(--ops-line); }
.ops-shell .ops-secondary:hover { background: #f3e8d8; }
.ops-shell .ops-text-button { background: none; color: var(--ops-ink); border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.ops-shell .ops-error { color: #8b2424; margin: 0; }
.ops-error:empty { display: none; }
.ops-shell .ops-search { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin: 1.75rem 0; }
.ops-search label { flex: 1 0 12rem; max-width: 26rem; }
.ops-shell .ops-list { padding-block: 0; }
.ops-shell .ops-list:has(> p) { padding-block: 1rem; }
.ops-order { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 4.8rem; padding: .8rem 0; text-decoration: none; color: var(--ops-ink); }
.ops-order + .ops-order { border-top: 1px solid var(--ops-line); }
.ops-order:hover strong { text-decoration: underline; }
.ops-order > span { display: grid; gap: .15rem; }
.ops-order > span:last-child { text-align: right; }
.ops-order small { display: block; color: var(--ops-muted); }
.ops-status { font-size: .72rem; background: #eee4d7; color: var(--ops-ink); padding: .2rem .45rem; border-radius: 2rem; white-space: nowrap; }
.ops-columns { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.5fr); align-items: start; gap: 1rem; }
.ops-facts { display: grid; gap: .7rem; margin: 0; }
.ops-facts dt { font-size: .72rem; text-transform: uppercase; color: var(--ops-muted); }
.ops-facts dd { margin: .14rem 0 0; overflow-wrap: anywhere; line-height: 1.4; }
.ops-table-scroll { overflow: auto; }
.ops-items { width: 100%; border-collapse: collapse; border-spacing: 0; text-align: left; }
.ops-items th, .ops-items td { padding: .65rem .4rem; border-bottom: 1px solid var(--ops-line); color: var(--ops-ink); }
.ops-items td:not(:first-child), .ops-items thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.ops-items thead th { font-weight: 600; font-size: .75rem; color: var(--ops-muted); }
.ops-items th[scope="row"] small { display: block; font-weight: 400; color: var(--ops-muted); }
.ops-items input { max-width: 8rem; }
.ops-shell fieldset { border: 1px solid var(--ops-line); margin: 0; padding: 1rem; min-width: 0; }
.ops-shell legend { font-weight: 700; padding: 0 .3rem; }
.ops-modes { display: flex; gap: .55rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ops-modes label { display: flex; align-items: center; gap: .4rem; }
.ops-totals { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1.2rem; margin: .25rem 0 .8rem auto; min-width: min(100%, 15rem); max-width: 24rem; }
.ops-totals > :nth-child(even) { text-align: right; }
.ops-totals strong { border-top: 1px solid var(--ops-line); padding-top: .6rem; }
.ops-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ops-invoice-shell { max-width: 49rem; }
.ops-shell .ops-document-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; border-bottom: 1px solid var(--ops-line); padding-bottom: 1rem; margin-top: 0; }
.ops-document .ops-bill { margin-bottom: 1.5rem; }
.ops-bill p { margin: .2rem 0; }
.ops-document .ops-totals { margin-top: 1.3rem; }
.ops-payment { margin-top: 2rem; border-top: 1px solid var(--ops-line); padding-top: 1rem; }
.ops-thanks { margin-bottom: 0; }
.ops-invoice-actions { margin-top: 1rem; }
@media(max-width: 43rem) {
  .ops-columns { grid-template-columns: 1fr; }
  .ops-shell .ops-title { margin-top: 1rem; }
}
@media print {
  @page { margin: 15mm; }
  body, html { background: white !important; }
  body > header, body > footer, body > .skip-link, .ops-mast, .ops-invoice-actions { display: none !important; }
  .ops-shell { width: 100%; padding: 0; margin: 0; }
  .ops-document { border: 0; border-radius: 0; background: white; padding: 0; }
  .ops-document-heading, .ops-payment, .ops-totals, .ops-items tr { break-inside: avoid; }
  .ops-table-scroll { overflow: visible; }
}
.ops-seller summary { margin-bottom: .75rem; cursor: pointer; font-weight: 650; }
body.is-admin:has(.ops-shell) > main { background: #f6ebdc; }

.ops-shell select { min-height: 2.75rem; width: 100%; padding: .65rem .78rem; font: inherit; color: var(--ops-ink); background: #fffdfa; border: 1px solid var(--ops-line); border-radius: .2rem; }
.ops-shell .ops-palette { display: grid; grid-template-columns: repeat(auto-fit,minmax(7.75rem,1fr)); gap: .45rem; }
.ops-shell .ops-palette label { display: flex; align-items: center; gap: .35rem; font-weight: 500; min-height: 1.5rem; }
.ops-shell .ops-palette input[type="checkbox"] { width: auto; min-height: auto; margin: 0; }
.ops-swatch { flex: 0 0 .75rem; height: .75rem; border: 1px solid var(--ops-line); border-radius: 50%; }
.ops-shell .ops-photo-note { font-size: .85rem; margin: -.4rem 0 0; }
.ops-placement { position: relative; max-width: 14rem; aspect-ratio: 1; margin: 0 0 1rem; background: #f1e5d3; }
.ops-placement img { width: 100%; height: 100%; object-fit: cover; }
.ops-placement span { position: absolute; left: var(--mark-x,50%); top: var(--mark-y,55%); transform: translate(-50%,-50%); width: var(--mark-w,15%); text-align: center; color: #fff; background: #211b1780; font-size: clamp(.35rem,.65vw,.65rem); font-weight: 700; text-shadow: 0 1px 1px #111; }
.ops-shell input[type="range"] { accent-color: var(--ops-accent); }
.ops-product-list { padding: 0; margin: 0; list-style: none; }
.ops-product-list li { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--ops-line); }
.ops-product-list img { flex: 0 0 3rem; width: 3rem; height: 3rem; object-fit: cover; border-radius: .2rem; background: #f1e5d3; }
.ops-product-list small { display: block; color: var(--ops-muted); }
