/*
 * The hosted stores (pod/storefront): one look, in each merchant's accent colour, display font and
 * theme. A store's own CSS comes after this, so anything here can be changed by it: the colours
 * and fonts are variables on :root (docs/hosted-stores.md).
 */
:root {
  --accent: #18181b;
  --on-accent: #fff;
  --display: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #fff;
  --surface: #f4f4f5;
  --photo: #ececee;
  --text: #18181b;
  --muted: #636369;            /* 4.5:1 on --surface too */
  --line: #e4e4e7;
  --control: #8a8a93;          /* the edge of a control: 3:1 on --bg and --surface */
  --good: #15803d;             /* what is saved */
  --bad: #b91c1c;              /* what to put right */
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0c0c0e;
  --surface: #18181b;
  --photo: #3a3a40;            /* light enough for a black garment */
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272a;
  --control: #6d6d78;
  --good: #4ade80;
  --bad: #f87171;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 16px/1.55 var(--body);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--body); text-decoration: none;
  transition: transform .1s ease, opacity .15s ease;
}
.button:hover { opacity: .9; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .4; cursor: not-allowed; }
.button.wide { width: 100%; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 2px var(--bg); }       /* two tones: seen on any colour */
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
main:focus { outline: none; }       /* focused by the skip link, to start reading there */

/* A preview of a closed store */
.preview-bar { padding: 8px 16px; text-align: center; font-size: 14px; background: #fde68a; color: #422006; }

/* The header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 36px; width: auto; max-width: min(280px, 55vw); object-fit: contain; }
.brand span { font: 700 18px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
             text-decoration: none; font-weight: 500; }
.top nav a:hover { background: var(--surface); }
.cart-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-link .count:empty { display: none; }
.cart-link .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
                    background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
@media (max-width: 480px) { .cart-link > span:not(.count) { display: none; } }

/* The home page */
.hero { padding: 56px 0 40px; }
.hero p { max-width: 640px; color: var(--muted); margin: 12px 0 0; font-size: 17px; }
.hero .tagline { color: var(--text); font-size: 20px; }
.hero.has-banner { position: relative; padding: 96px 0 56px; color: #fff; isolation: isolate;
                   background: var(--banner) center / cover no-repeat; }
.hero.has-banner::before { content: ''; position: absolute; inset: 0; z-index: -1;
                           background: linear-gradient(to top, rgb(0 0 0 / .65), rgb(0 0 0 / .1)); }
.hero.has-banner p, .hero.has-banner .tagline { color: rgb(255 255 255 / .9); }
.sections { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 8px; scrollbar-width: none; }
.sections a { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
              font-weight: 500; font-size: 15px; }
.sections a:hover { background: var(--surface); }
.shelf { padding: 24px 0 16px; scroll-margin-top: 80px; }
.shelf h2 { margin-bottom: 16px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 16px;
        grid-template-columns: repeat(auto-fill, minmax(min(220px, 44%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card .pic { margin-bottom: 8px; transition: transform .25s ease; }
.card:hover .pic { transform: translateY(-2px); }
.card .name { font-weight: 600; }
.card .price { color: var(--muted); }
.card .choose { color: var(--muted); font-size: 14px; }
.empty { padding: 48px 0; color: var(--muted); }

/* A listing's picture: the base product in its colour, the art where it prints (pod/storefront/pictures.py) */
.pic { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--photo);
       overflow: hidden; isolation: isolate; }
.pic.empty { background: var(--surface); }
.pic .blank, .pic .lift { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pic .pod-tint { position: absolute; width: 0; height: 0; overflow: hidden; }
.pic .lift { display: none; }
.pic.tinted.dark .lift { display: block; filter: invert(1); mix-blend-mode: screen; opacity: .45; }
.pic .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.pic.photo .shot { display: block; }
.pic.own .shot { object-fit: contain; }                 /* a listing's own picture: all of it */
.pic.photo .blank, .pic.photo .lift { display: none; }
.pic .art { position: absolute; object-fit: contain; object-position: top center; }
.pic .art.fill { background: #fff; padding: 3%; border-radius: 2%; object-position: center; }
.pic .art.free { object-position: center; transform-origin: 50% 50%; }     /* put where the customer wanted it: at its own footprint, turned about its centre */

/* A listing's page */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.product > * { min-width: 0; }
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-top: 40px; } }
.gallery { position: relative; align-self: start; }
@media (min-width: 860px) { .gallery { position: sticky; top: 88px; } }
.flip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.flip button { padding: 8px 18px; white-space: nowrap; border: 1px solid var(--control); border-radius: 999px; background: none; color: inherit;
               font: 500 15px var(--body); cursor: pointer; }
.flip button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* The zoom on a picture (static/pod/zoom.js): a "Zoom" button on it, a dialog with it large (magnified 2.5 times, as zoom.js has it), and with
   a mouse a lens over it */
.zoom-open { position: absolute; top: 10px; right: 10px; z-index: 2; min-height: 40px; padding: 0 16px; border: 1px solid var(--control); border-radius: 999px;
             background: var(--bg); color: var(--text); font: 500 15px var(--body); cursor: zoom-in; }
.zoom-open:hover { background: var(--surface); }
.view .pic:not(.empty), .designer .pic:not(.empty) { cursor: zoom-in; }
dialog.zoom { display: none; width: min(96vw, 1400px); height: min(94vh, 1000px); max-width: none; max-height: none; margin: auto; padding: 0;
              border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); overflow: hidden; }
dialog.zoom[open] { display: flex; flex-direction: column; }
dialog.zoom::backdrop { background: rgb(0 0 0 / .78); }
html:has(dialog.zoom[open]) { overflow: hidden; }
.zoom-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.zoom-name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-hint { color: var(--muted); font-size: 14px; }
.zoom-magnify { margin-left: auto; }
@media (max-width: 760px) { .zoom-hint { display: none; } }
.zoom-bar button, .zoom-flip button { min-height: 40px; padding: 0 18px; white-space: nowrap; border: 1px solid var(--control); border-radius: 999px;
                                      background: none; color: inherit; font: 500 15px var(--body); cursor: pointer; }
.zoom-bar button:hover, .zoom-flip button:hover { background: var(--surface); }
.zoom-bar button[aria-pressed="true"], .zoom-flip button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.zoom-body { position: relative; flex: 1; min-height: 0; }
.zoom-stage { position: absolute; inset: 0; display: flex; padding: 12px; overflow: auto; container-type: size; background: var(--surface);
              cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.zoom-stage img { -webkit-user-drag: none; }
.zoom-stage.magnified { cursor: grab; touch-action: pan-x pan-y; }
.zoom-sheet { flex: none; margin: auto; width: min(100cqw, 100cqh); }
.zoom-stage.magnified .zoom-sheet { width: calc(min(100cqw, 100cqh) * 2.5); }
.zoom-sheet .spot { pointer-events: none; }
.zoom-step { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 1px solid var(--control); border-radius: 50%;
             background: var(--bg); color: var(--text); font: 28px/1 var(--body); cursor: pointer; }
.zoom-step:hover { background: var(--surface); }
.zoom-prev { left: 12px; }
.zoom-next { right: 12px; }
.zoom-flip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.lens { position: fixed; z-index: 60; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; pointer-events: none; border: 2px solid var(--text);
        box-shadow: var(--shadow); background: var(--photo); }
.lens > * { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; }
@media (prefers-reduced-motion: no-preference) { dialog.zoom[open] { animation: fade-in .2s ease; } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 520px) { dialog.zoom { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border-width: 0; } .zoom-stage { padding: 8px; } }
.details { display: flex; flex-direction: column; gap: 16px; }
.crumb { color: var(--muted); text-decoration: none; font-size: 15px; }
.crumb::before { content: '\2190  '; }
.crumb:hover { color: var(--text); }
.details .price { margin: -4px 0 0; font-size: 24px; font-weight: 700; }
.details .price .was { margin-right: 8px; color: var(--muted); font-size: 18px; font-weight: 400; }
.saving { margin: -12px 0 0; color: var(--good); font-size: 15px; font-weight: 600; }
.availability { margin: -12px 0 0; font-size: 15px; color: var(--muted); }
.availability:empty, .ships:empty { display: none; }
.availability[data-status="low"], .availability[data-status="backorder"] { color: #b45309; }
.availability[data-status="out"], .availability[data-status="unavailable"] { color: #dc2626; }
.included { display: flex; flex-direction: column; gap: 10px; }
.included h2 { font-size: 17px; }
.included ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.included li { display: flex; align-items: center; gap: 12px; }
.included .pic { flex: none; width: 52px; border-radius: 10px; }
.included small { color: var(--muted); font-size: 14px; margin-left: 4px; }
.fixed { margin: 0; }
.fixed strong { font-weight: 600; }
.pick { display: flex; flex-direction: column; gap: 16px; }
.pick-name { margin: 0; font-size: 17px; }
.pick + .pick { padding-top: 16px; border-top: 1px solid var(--line); }
.option { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.option legend, .option > span { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
label.option > span { margin-bottom: 0; }
.option .chosen { font-weight: 400; color: var(--muted); margin-left: 6px; }
.option.needs .size, .option.needs .swatch { border-color: var(--bad); }
.option .ask { margin: 0; color: var(--bad); font-size: 15px; font-weight: 600; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--control); background: var(--swatch);
          cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg); padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.swatch:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px var(--bg); }
.swatch { position: relative; }
.swatch img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* chosen is also a tick, not the outline's colour alone */
.swatch[aria-pressed="true"]::after { content: '✓'; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px;
          border-radius: 50%; background: var(--text); color: var(--bg); font: 700 12px/16px var(--body); text-align: center; }
.size { min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--control); border-radius: 10px;
        background: none; color: inherit; font: 500 15px var(--body); cursor: pointer; }
.size:hover { border-color: var(--text); }
.size[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
/* What the buyer may choose for a spot (the bib, the pocket) or a piece: radio buttons drawn as tiles, each a design's picture and name.
   Wide groups wrap; a spot with very many has them in a box of its own to scroll. */
.designs .tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.designs.pieces .tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.designs.long .tiles { max-height: 22rem; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.designs .row { display: contents; }
.designs .group { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.designs .group:first-child { margin-top: 0; }
.design { position: relative; display: block; min-width: 0; cursor: pointer; }
.design input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.design .tile { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 6px; border: 1px solid var(--control);
                border-radius: 10px; background: var(--bg); }
.design:hover .tile { border-color: var(--text); }
.design img, .design .nothing { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--photo); }
.design .nothing { display: grid; place-items: center; color: var(--muted); font-size: 30px; line-height: 1; }
.design .label { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.design .label small { display: block; color: var(--muted); font-size: 12px; }
.design input:checked + .tile { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.design input:focus-visible + .tile { outline: 3px solid var(--text); outline-offset: 3px; }
/* chosen is also a tick, not the outline alone */
.design input:checked + .tile::after { content: '✓'; position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%;
                                       background: var(--text); color: var(--bg); font: 700 12px/18px var(--body); text-align: center; }
select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--control); border-radius: 10px;
         background: var(--bg); color: inherit; font: 16px var(--body); }
.buy { display: flex; align-items: flex-end; gap: 12px; }
.details .buy .button { flex: 1; }
.qty { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.qty input { width: 84px; height: 48px; padding: 0 12px; border: 1px solid var(--control); border-radius: 10px;
             background: var(--bg); color: var(--text); font: 16px var(--body); }
.description { color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.description p { margin: 0 0 12px; }

/* The cart */
.cart-page h1, .done h1 { margin: 40px 0 24px; }
.cart { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cr-line { display: grid; grid-template-columns: 1fr auto auto auto auto auto; align-items: center; gap: 8px;
           padding: 16px 0; border-bottom: 1px solid var(--line); }
.cr-line-name { font-weight: 500; min-width: 0; }
.cr-line button { width: 32px; height: 32px; border: 1px solid var(--control); border-radius: 50%; background: none;
                  color: inherit; font-size: 16px; cursor: pointer; }
.cr-line button:hover { background: var(--surface); }
.cr-line .cr-remove { border: 0; color: var(--muted); }
.cr-line-with, .cr-line-products, .cr-line-ships { color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.cr-line-with .cr-line-saving { color: var(--good); }
.cr-line-was { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.cr-line-thumb { display: block; width: 64px; }
.cr-line-thumb .pic { border-radius: 10px; }
.cr-line:has(> .cr-line-thumb) { grid-template-columns: 64px 1fr auto auto auto auto auto; gap: 8px 12px; }
.cr-line-problem, .cr-line-note { font-weight: 400; font-size: 14px; margin-top: 2px; }
.cr-line-problem { color: #dc2626; }
.cr-line-note { color: var(--muted); }
.cr-line-products .cr-product-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-line-qty { min-width: 20px; text-align: center; }
.cr-line-price { min-width: 84px; text-align: right; font-weight: 600; }
@media (max-width: 520px) {
  .cr-line { grid-template-columns: auto auto auto 1fr auto; }
  .cr-line-name { grid-column: 1 / -1; }
  .cr-line:has(> .cr-line-thumb) { grid-template-columns: 64px auto auto auto 1fr auto; }
  .cr-line:has(> .cr-line-thumb) .cr-line-thumb { grid-row: 1 / span 2; align-self: start; }
  .cr-line:has(> .cr-line-thumb) .cr-line-name { grid-column: 2 / -1; }
}
.cr-empty { padding: 24px 0; color: var(--muted); margin: 0; }
.cart-error { color: #dc2626; }
.cart-error:empty { display: none; }
.summary { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 64px; }
.summary .row { display: flex; justify-content: space-between; font-size: 18px; }
.summary p { margin: 0; }
.quiet { align-self: center; color: var(--muted); font-size: 15px; }

.done { padding-bottom: 64px; }
.done p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

/* The foot of the page */
.foot { margin-top: 48px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .own { color: var(--text); margin-bottom: 12px; }
.foot p { margin: 0; }

/* "Added to your cart" */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%);
         display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; max-width: calc(100% - 32px);
         border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-weight: 500;
         animation: rise .2s ease; }
.toast a { padding: 8px 16px; border-radius: 999px; background: var(--bg); color: var(--text); text-decoration: none; white-space: nowrap; }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Make your own (pod/adhoc/pages.py): the menu, a request's page, its forms */
.custom { padding-top: 32px; padding-bottom: 48px; }
.custom h1 { margin-bottom: 12px; }
.custom h2 { margin: 32px 0 12px; }
.custom .lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.offers { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.offers a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
            text-decoration: none; }
.offers a:hover, .offers a[aria-current="true"] { border-color: var(--text); }
.offers .name { font-weight: 600; }
.offers .about { color: var(--muted); font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.form .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.hint, .form .field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 10px; background: var(--bg);
  color: var(--text); font: 16px var(--body); }
.form input[type="file"] { font: 16px var(--body); max-width: 100%; }
.form .sizes-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.form .sizes-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form .tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form .tick input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.notice { max-width: 560px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.notice.bad { border-color: #dc2626; }
.notice.good { border-color: #15803d; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.req-lines { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.req-line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.req-line .shot { width: 96px; height: 96px; border-radius: 10px; background: var(--photo); overflow: hidden; display: grid; place-items: center; }
.req-line .shot img { width: 100%; height: 100%; object-fit: contain; }
.req-line h3 { margin-bottom: 4px; }
.req-line p { margin: 4px 0; }
.req-line .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.req-line .acts form { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.designers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin: 0 0 24px; max-width: 640px; }
.designer { position: relative; }
.designer .spot { position: absolute; display: grid; place-items: center; border: 2px dashed var(--text); border-radius: 6px; background: rgba(255, 255, 255, .35); }
.designer .spot b, .place legend .spot-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--text); color: var(--bg); font-size: 13px; }
.place { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.place legend { font-weight: 600; padding: 0 6px; }
.req-item { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.req-item > h2 { margin: 0 0 4px; }
.req-item .req-lines { margin-top: 12px; }
.req-line .find { color: #b45309; }
.req-line .find.fail { color: #dc2626; }
.button.plain { background: none; color: var(--text); border: 1px solid var(--control); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.sums { max-width: 360px; margin: 0 0 16px; }
.sums div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.sums .total { font-weight: 700; font-size: 20px; }
.checking { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.checking::before { content: ''; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 520px) { .req-line { grid-template-columns: 72px 1fr; } .req-line .shot { width: 72px; height: 72px; } }
