/* ============================================================
   THE 3D PRINTED STORE - styles
   Black and white on purpose. The only color on the page is the
   filament color itself, so it actually means something.
   You shouldn't need to touch this file.
   ============================================================ */

:root {
  --paper:  #ffffff;
  --card:   #ffffff;
  --sunk:   #f6f6f6;
  --ink:    #111111;
  --ink-2:  #5a5a5a;
  --ink-3:  #8e8e8e;
  --line:   #e2e2e2;
  --line-2: #c9c9c9;

  --r: 8px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --maxw: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #0f0f0f;
    --card:   #171717;
    --sunk:   #1e1e1e;
    --ink:    #f2f2f2;
    --ink-2:  #a8a8a8;
    --ink-3:  #7c7c7c;
    --line:   #2b2b2b;
    --line-2: #3d3d3d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.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;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r);
  padding: 9px 16px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s ease, border-color .13s ease, opacity .13s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[disabled] { opacity: .38; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover:not([disabled]) { opacity: .84; }

.btn-block { width: 100%; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------------- header ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 20px;
  display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark {
  width: 28px; height: 28px; flex: none; border-radius: 5px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px; letter-spacing: -.02em;
}
.brand-name {
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.head-actions { display: flex; align-items: center; gap: 8px; }

.whoami {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.whoami[hidden] { display: none !important; }

.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.hint[hidden] { display: none !important; }

.cart-btn { position: relative; }
.cart-count {
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none !important; }

/* ---------------- hero ---------------- */

.hero { padding-top: 44px; padding-bottom: 28px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 4.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 600;
}
.hero p { margin: 0; max-width: 58ch; color: var(--ink-2); font-size: 16px; }

.facts {
  margin-top: 24px; padding: 0; list-style: none;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.facts li {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; font-size: 13.5px; color: var(--ink-2);
}
.facts b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }

/* ---------------- filters ---------------- */

.toolbar {
  position: sticky; top: 55px; z-index: 30;
  background: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.toolbar-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.pill {
  border: 1px solid var(--line-2); background: var(--card);
  border-radius: var(--r); padding: 6px 12px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .13s, color .13s, border-color .13s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.search {
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  border-radius: var(--r); padding: 7px 12px; font-size: 14px; width: 170px;
  font-family: inherit;
}
.search:focus { outline: none; border-color: var(--ink); }
.search::placeholder { color: var(--ink-3); }

/* ---------------- product grid ---------------- */

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  padding-bottom: 44px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  display: flex; flex-direction: column;
  transition: border-color .13s ease;
}
.card:hover { border-color: var(--ink); }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card.is-out { opacity: .5; }

.thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
}
/* contain, not cover: photos come in every shape (a portrait phone
   photo, a landscape studio shot) and cropping them to fill would cut
   the edges off the thing being sold and zoom into the middle. */
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* plain placeholder, used until a real photo exists */
.thumb-auto {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  padding: 0 16px; text-align: center;
  background:
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.028) 0 1px, transparent 1px 6px);
}
.thumb-auto span {
  font-size: 12.5px; line-height: 1.35;
  color: var(--ink-3); font-weight: 500;
}
.thumb-auto em {
  font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); opacity: .7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thumb-auto {
    background: repeating-linear-gradient(180deg,
      rgba(255,255,255,.035) 0 1px, transparent 1px 6px);
  }
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-top { display: flex; align-items: baseline; gap: 10px; }
.card-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin: 0; flex: 1; }
.card-price { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-blurb { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }

.card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

.note-sm { font-size: 12.5px; color: var(--ink-3); }
.note-sm.is-out { color: var(--ink-2); font-weight: 600; }

.dots { display: flex; gap: 4px; margin-left: auto; }
.dot-sm {
  width: 11px; height: 11px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25); flex: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dot-sm { border-color: rgba(255,255,255,.3); }
}
.dot-sm.is-out { opacity: .3; }
.dots .more { font-size: 11.5px; color: var(--ink-3); align-self: center; }

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 5px; }

/* ---------------- overlay / modal / drawer ---------------- */

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade .14s ease;
}
.scrim[hidden] { display: none !important; }
/* a modal on top of another must not dim the page twice */
.scrim.stacked { background: rgba(0,0,0,.22); }
@keyframes fade { from { opacity: 0; } }

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: pop .15s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

.modal-narrow { width: min(430px, 100%); }

.modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px 13px; border-bottom: 1px solid var(--line); flex: none;
}
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; flex: 1; }
.modal-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }

.x-btn {
  border: 0; background: transparent; cursor: pointer; flex: none;
  width: 30px; height: 30px; border-radius: 5px; font-size: 18px; line-height: 1;
  color: var(--ink-3); display: grid; place-items: center;
}
.x-btn:hover { background: var(--sunk); color: var(--ink); }
.x-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 13px 18px; border-top: 1px solid var(--line); flex: none;
  display: flex; gap: 9px; align-items: center;
  background: var(--card);
}
.modal-foot .grow { flex: 1; }

.drawer-scrim { place-items: stretch; justify-items: end; padding: 0; }
.drawer {
  width: min(400px, 100%); max-height: none; height: 100%;
  border-radius: 0; border-width: 0 0 0 1px;
  animation: slide .17s ease;
}
@keyframes slide { from { transform: translateX(100%); } }

/* ---------------- product detail ---------------- */

.detail-hero {
  /* squarer than the card, so an upright photo of a small object has
     room to show in full rather than being letterboxed to a sliver */
  aspect-ratio: 4 / 3; position: relative; background: var(--sunk);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* says so when the picture isn't of the colours they just picked */
.hero-note {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.74); color: #fff;
  font-size: 11.5px; line-height: 1.3; font-weight: 500;
  padding: 5px 9px; border-radius: 6px; text-align: center;
}

.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.detail-meta b { color: var(--ink); font-weight: 600; }

.detail-price { font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.mw-link {
  display: inline-block; font-size: 13px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.mw-link:hover { color: var(--ink-2); }

.field-label { font-size: 13px; font-weight: 600; margin: 18px 0 8px; display: block; }
.field-label .muted { font-weight: 400; color: var(--ink-3); }

.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card);
  border-radius: var(--r); padding: 7px 13px 7px 9px;
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: border-color .13s, background .13s;
}
.swatch:hover:not([disabled]) { border-color: var(--ink); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch[disabled] { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.swatch .chip {
  width: 17px; height: 17px; border-radius: 999px; flex: none;
  border: 1px solid rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch .chip { border-color: rgba(255,255,255,.3); }
}
.swatch .sw-out { font-size: 11.5px; color: var(--ink-3); text-decoration: none; }
/* a colour that costs more than the base price */
.swatch .sw-extra {
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  background: var(--sunk); border-radius: 4px; padding: 1px 5px;
  text-decoration: none;
}
.card-price .from { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.qty button {
  border: 0; background: transparent; cursor: pointer;
  width: 34px; height: 34px; font-size: 16px; line-height: 1; color: var(--ink);
}
.qty button:hover:not([disabled]) { background: var(--sunk); }
.qty button[disabled] { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }

.notice {
  border-radius: var(--r); padding: 11px 13px; font-size: 13.5px; line-height: 1.45;
  border: 1px solid var(--line); background: var(--sunk); margin-top: 14px;
}
.notice b { font-weight: 600; }
.notice-strong { border-color: var(--ink); }

/* ---------------- cart ---------------- */

.line { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line-sw {
  width: 38px; height: 38px; border-radius: 6px; flex: none;
  border: 1px solid var(--line-2); overflow: hidden;
}
.line-sw img { width: 100%; height: 100%; object-fit: cover; }
.line-main { flex: 1; min-width: 0; }
.line-name { font-weight: 600; font-size: 14px; }
.line-sub { font-size: 12.5px; color: var(--ink-2); }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.line-price { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: var(--ink); }

.totals { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--ink); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; }
.total-row .big { font-size: 21px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------------- forms ---------------- */

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-row .hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { min-height: 70px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.err { color: var(--ink); font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.err[hidden] { display: none !important; }

.pay-grid { display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.pay-opt {
  border: 1px solid var(--line-2); background: var(--card);
  border-radius: var(--r); padding: 10px 12px; cursor: pointer; text-align: left;
  font-weight: 500; font-size: 14px;
  transition: border-color .13s, background .13s;
}
.pay-opt:hover { border-color: var(--ink); }
.pay-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--ink); background: var(--sunk);
  border-radius: var(--r); padding: 12px 14px; cursor: pointer;
  font-size: 13.5px; line-height: 1.45;
}
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--ink); flex: none; cursor: pointer; }

/* ---------------- are you sure ---------------- */

.confirm-body { padding: 20px 20px 16px; }
.confirm-body h2 { margin: 0 0 7px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.confirm-body > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }

.recap {
  background: var(--sunk); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px;
}
.recap-line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.recap-total { border-top: 1px solid var(--line-2); margin-top: 7px; padding-top: 7px; font-weight: 600; font-size: 14.5px; }

/* ---------------- order placed ---------------- */

.success-top { padding: 22px 20px 4px; }
.success-top h2 { margin: 0 0 5px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.success-top p { margin: 0; color: var(--ink-2); font-size: 14px; }

.code-box {
  margin-top: 15px;
  border: 1px solid var(--ink); border-radius: var(--r);
  padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.code-box[hidden] { display: none !important; }
.code-box small { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.code-box .code { font-size: 21px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.step { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-n {
  width: 22px; height: 22px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-2); color: var(--ink-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.step-t { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.handle {
  display: inline-block; margin-top: 5px;
  font-weight: 600; font-size: 14px;
  background: var(--sunk); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 5px 10px;
  user-select: all;
}

/* ---------------- my orders ---------------- */

.order-card {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 10px;
}
.order-card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.order-card-top .code { font-weight: 600; font-size: 14.5px; letter-spacing: .04em; }
.order-card-top .when { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.order-items { font-size: 13.5px; color: var(--ink-2); }
.order-items div { padding: 1px 0; }

/* where an order has got to, as the buyer sees it */
.track { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 11px 0; }
.track-step {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3);
}
.track-step i {
  width: 9px; height: 9px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-2); background: var(--paper);
}
.track-step.is-past { color: var(--ink-2); }
.track-step.is-past i { background: var(--ink-3); border-color: var(--ink-3); }
.track-step.is-now { color: var(--ink); font-weight: 700; }
.track-step.is-now i { background: var(--ink); border-color: var(--ink); }

/* a note the seller wrote to this buyer */
.from-seller {
  border-left: 2px solid var(--ink);
  background: var(--sunk);
  padding: 9px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px; line-height: 1.45;
  margin: 11px 0;
}
.from-seller b { font-weight: 600; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--r);
  font-size: 14px;
  animation: toastin .18s ease;
}
.toast[hidden] { display: none !important; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------------- footer ---------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 26px; padding-bottom: 36px;
  font-size: 13.5px; color: var(--ink-2);
}
.foot-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-foot h3 { margin: 0 0 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.site-foot p { margin: 0; }
.site-foot ul { margin: 0; padding-left: 16px; }
.site-foot li { padding: 1px 0; }

/* ---------------- setup bar ---------------- */

.setup-bar {
  background: var(--ink); color: var(--paper);
  padding: 8px 20px; font-size: 13px; text-align: center;
}

/* shown across the top when the store is paused or the order cap is full */
.closed-bar {
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; font-size: 13.5px; font-weight: 500; text-align: center;
}
.closed-bar[hidden] { display: none !important; }

/* ---------------- admin ---------------- */

.admin-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 18px;
}
.admin-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-right: auto; }

.gate { max-width: 340px; margin: 70px auto; text-align: center; }
.gate h1 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.gate p { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }

.o-row {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; margin-bottom: 10px;
}
.o-row.is-done { opacity: .55; }
.o-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.o-top .code { font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.o-top .who { font-weight: 600; }
.o-top .stage {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px;
}
/* an order you're still waiting on money for should stand out */
.o-top .stage.is-unpaid { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.o-top .when { color: var(--ink-3); font-size: 12.5px; margin-left: auto; }

/* move the order along and write the buyer a note */
.o-edit {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--line);
}
.o-edit .select, .o-edit .input { font-size: 13.5px; padding: 8px 10px; }
.o-edit .o-stage { width: auto; flex: none; min-width: 118px; }
.o-edit .o-msg { flex: 1; min-width: 190px; }
.o-edit .o-save { flex: none; padding: 8px 16px; font-size: 13.5px; }
.o-items { font-size: 14px; }
.o-items div { padding: 2px 0; display: flex; gap: 8px; }
.o-items .c { color: var(--ink-2); }
/* what the buyer typed for a personalised item - the thing you must
   not get wrong, so it gets the strongest treatment in the row */
.o-items .custom {
  background: var(--ink); color: var(--paper);
  padding: 1px 8px; border-radius: 5px; font-weight: 600;
}
/* jump straight to the model to print it */
.o-items .mw {
  font-size: 12.5px; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
.o-items .mw:hover { color: var(--ink); }
.o-note {
  margin-top: 8px; padding: 8px 10px; background: var(--sunk);
  border-radius: 6px; font-size: 13.5px;
}
.o-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.o-foot .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.o-foot .pay { color: var(--ink-2); font-size: 13.5px; }

.tabs { display: flex; gap: 6px; }

/* the open/paused switch and the order cap, above the order list */
.store-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 16px;
}
.store-bar.is-closed { border-color: var(--ink); background: var(--sunk); }
.store-bar-state { margin-right: auto; }
.store-bar-state b { display: block; font-size: 14.5px; }
.store-cap {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--ink-2);
}
.cap-in { width: 68px; padding: 7px 9px; font-size: 13.5px; text-align: center; }

@media (max-width: 620px) {
  .store-bar-state { margin-right: 0; width: 100%; }
  .store-cap { flex: 1; }
}

/* ---------------- phones ---------------- */

@media (max-width: 620px) {
  .hero { padding-top: 28px; padding-bottom: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-blurb { display: none; }
  .card-body { padding: 10px 11px 12px; }
  .toolbar { top: 54px; }
  .search { width: 100%; order: 3; }
  .scrim { padding: 0; place-items: end stretch; }
  .modal {
    width: 100%; max-height: 92vh;
    border-radius: var(--r) var(--r) 0 0;
    border-width: 1px 0 0;
    animation: sheet .2s ease;
  }
  @keyframes sheet { from { transform: translateY(100%); } }
  .drawer { height: 92vh; border-radius: var(--r) var(--r) 0 0; border-width: 1px 0 0; }
  .modal-foot { padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .o-top .when { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
