:root {
  /* Bag Carriers brand (bagcarriers.com and /apparel) */
  --black: #0a0c10; --charcoal: #111620; --denim-dk: #1a2335; --denim: #243347; --denim-lt: #3d5578; --denim-pale: #4e6a92;
  --tobacco: #5a3218; --leather: #6b3318; --leather-lt: #7a4520; --rust-bright: #9a5a2e; --leather-btn: #5a3218; --leather-btn-hover: #6e3f1f;
  --white: #f0ece4; --text: #c8bfb2; --text-dim: #8c8578;
  /* The light working area: warm paper, charcoal ink, so mockups and the checkerboard read true */
  --paper: #f0ece4; --card: #fbfaf7; --ink: #111620; --navy: #1a2335; --slate: #3d5578; --sky: #7a9ec0; --line: #d6cdbf;
  --soft: #5f584f; --rust: #7a4520; --picked: #f6ece1;
  --good: #1f6b3a; --warn: #8a5a00; --bad: #a32020;
  --serif: "Libre Baskerville", Georgia, serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; accent-color: var(--leather-lt); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: var(--serif); }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 14px; color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 736px; }

/* Header: the bagcarriers.com/apparel nav, then a short title band in the apparel hero's colours */
.top { background: var(--black); color: var(--text); }
.top .bar { background: rgba(10, 12, 16, 0.9); border-bottom: 1px solid rgba(200, 191, 178, 0.07); }
.top .bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: .01em; color: var(--white); text-decoration: none; white-space: nowrap; }
.brand img { display: block; height: 44px; width: 44px; mix-blend-mode: screen; }
.brand b { color: var(--rust-bright); font-weight: 700; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--white); }
.nav-links a.nav-cta { background: var(--leather-btn); color: var(--white); padding: 10px 20px; font-weight: 600; letter-spacing: .06em; border: 1px solid rgba(200, 191, 178, 0.1); }
.nav-links a.nav-cta:hover { background: var(--leather-btn-hover); }
.hero { position: relative; overflow: hidden; padding: 34px 0 36px;
  background: linear-gradient(105deg, rgba(10, 12, 16, 0.97) 0%, rgba(10, 12, 16, 0.82) 45%, rgba(10, 12, 16, 0.55) 100%),
    radial-gradient(120% 120% at 80% 20%, #2a1d12 0%, #14110d 40%, #0a0c10 75%); }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(0, 0, 0, 0.12) 38px 76px); opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 12px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--text-dim); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--rust-bright); }
.hero h1 { margin: 12px 0 0; font-weight: 700; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.01em; color: var(--white); }
.hero .sub { margin: 12px 0 0; max-width: 60ch; padding-left: 16px; border-left: 2px solid var(--rust); color: var(--text); font-size: 16px; }
.hero .sub:empty { display: none; }

/* Footer: copied from bagcarriers.com/apparel (which copies index.html) */
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 26px 48px; background: #050608; border-top: 1px solid rgba(139, 94, 60, .1); }
.foot p { margin: 0; font-size: 11px; color: var(--text); }
.foot a { color: var(--leather-lt); text-decoration: none; }
.foot a.agent { color: inherit; font-weight: 600; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 768px) { .foot { padding: 20px; flex-direction: column; text-align: center; } }
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 24px 0 26px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { height: 38px; width: 38px; }
  .nav-links a.nav-cta { padding: 9px 12px; }
}
@media (max-width: 400px) { .brand .word b { display: none; } }


/* Storefront theme (web/lib/brand.ts applyTheme sets html[data-shop="own"] for a storefront other than Bag Carriers):
   a paper header and hero in the storefront's own ink, the logo at its own shape, and its heading and label fonts
   (--heading-font, --label-font) when it names them. Bag Carriers' pages never carry the attribute. */
html[data-shop="own"] { --serif: var(--heading-font, "Libre Baskerville", Georgia, serif); }
html[data-shop="own"] .top { background: var(--paper); color: var(--ink); }
html[data-shop="own"] .top .bar { background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
html[data-shop="own"] .brand { color: var(--ink); font-weight: 600; }
html[data-shop="own"] .brand img { width: auto; height: 44px; mix-blend-mode: normal; }
html[data-shop="own"] .brand b { color: var(--accent2); }
html[data-shop="own"] .nav-links a { color: var(--ink); font-family: var(--label-font, var(--sans)); }
html[data-shop="own"] .nav-links a:hover { color: var(--accent2); }
html[data-shop="own"] .hero { background: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
html[data-shop="own"] .hero::after { display: none; }
html[data-shop="own"] .hero h1 { color: var(--ink); font-weight: 500; }
html[data-shop="own"] .hero .sub { color: var(--ink); border-left-color: var(--accent2); }
html[data-shop="own"] .eyebrow { color: var(--accent2); font-family: var(--label-font, var(--sans)); font-weight: 400; letter-spacing: .22em; }
html[data-shop="own"] .eyebrow::before { background: var(--accent2); }
html[data-shop="own"] .foot { background: var(--ink); color: var(--paper); border-top: 0; }
html[data-shop="own"] .foot p, html[data-shop="own"] .foot a { color: var(--paper); }
html[data-shop="own"] .foot a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) { html[data-shop="own"] .brand img { width: auto; height: 38px; } }

main { max-width: 1160px; margin: 0 auto; padding: 32px 28px 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
.side { position: sticky; top: 16px; display: grid; gap: 16px; }
.step, .cart, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 24px 24px 20px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 12px; }
.card { display: grid; gap: 6px; padding: 8px; overflow-wrap: anywhere; background: var(--card); border: 2px solid var(--line); border-radius: 2px; cursor: pointer; font: inherit; font-size: 0.95rem; line-height: 1.35; color: inherit; text-align: center; min-height: 44px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card.on, .chip.on { border-color: var(--rust); background: var(--picked); }
.card:hover, .chip:not(:disabled):hover { border-color: var(--rust-bright); }
.checker, .card.logo img { background: repeating-conic-gradient(#e9e6e0 0% 25%, #ffffff 0% 50%) 50% / 16px 16px; border-radius: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-weight: 500; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.drop { display: block; padding: 20px 18px; border: 2px dashed var(--denim-pale); border-radius: 2px; background: #fff; text-align: center; cursor: pointer; }
.drop input { display: block; margin: 10px auto 0; font-size: 16px; max-width: 100%; }
.uploaded img { display: block; max-width: 220px; max-height: 160px; margin-top: 12px; }
/* The inline cropper: the artwork with a box over it. The frame's padding leaves room for the 44 px corner handles
   past the picture's edge, so the cropper never widens the page on a phone. */
.cropper { margin-top: 12px; }
.crop-hint { margin: 0 0 4px; }
.crop-frame { padding: 22px; max-width: 100%; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.uploaded .crop-img, .crop-img { display: block; max-width: 100%; max-height: min(55vh, 420px); width: auto; height: auto; margin: 0; }
.crop-box { position: absolute; box-sizing: border-box; border: 2px solid var(--rust-bright); cursor: move; touch-action: none; }
.crop-shade { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.crop-window { position: absolute; box-shadow: 0 0 0 9999px rgba(17, 22, 32, .45); }
.crop-box:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 2px; }
.crop-handle { position: absolute; width: 44px; height: 44px; touch-action: none; }
.crop-handle::after { content: ""; position: absolute; left: 15px; top: 15px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--rust-bright); border-radius: 2px; }
.crop-handle.nw { left: -22px; top: -22px; cursor: nwse-resize; }
.crop-handle.ne { right: -22px; top: -22px; cursor: nesw-resize; }
.crop-handle.sw { left: -22px; bottom: -22px; cursor: nesw-resize; }
.crop-handle.se { right: -22px; bottom: -22px; cursor: nwse-resize; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field > span:first-child:not([id]) { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.field input, .size input { font: inherit; font-size: 16px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; width: 100%; background: #fff; color: var(--ink); }
.field input[type="range"] { padding: 0; }
.err { color: var(--bad); font-size: 0.9rem; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-bottom: 14px; }
.size { display: grid; gap: 4px; text-align: center; font-weight: 600; }
/* The apparel page's leather button */
.primary { min-height: 48px; padding: 14px 24px; border: 1px solid rgba(200, 191, 178, 0.12); border-radius: 0; background: var(--leather-btn); color: var(--white); font: 600 12.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; width: 100%; transition: background .18s, transform .18s; }
.primary:not(:disabled):hover { background: var(--leather-btn-hover); transform: translateY(-1px); }
.primary:focus-visible, .chip:focus-visible, .card:focus-visible, .link:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 2px; }
.primary:disabled, .chip:disabled { opacity: 0.6; cursor: default; }
.link { border: 0; background: none; color: var(--rust); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; min-height: 44px; }
.stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.layout > div > .stage { margin-bottom: 16px; }
.stage.empty { padding: 48px 16px; text-align: center; color: var(--soft); }
.photo { display: block; width: 100%; height: auto; }
.overlay { position: absolute; display: none; }
.overlay.light { mix-blend-mode: multiply; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; border-radius: 2px; }
.totals { margin: 12px 0; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 1.1rem; font-family: var(--serif); border-top: 1px solid var(--line); padding-top: 6px; }
.totals .pay { font-weight: 700; font-size: 1.1rem; font-family: var(--serif); }
.muted { color: var(--soft); font-size: 0.92rem; }
.notice { padding: 10px 14px; border-radius: 2px; margin: 10px 0; background: #f4efe7; border-left: 2px solid var(--line); }
.notice:empty { display: none; }
.notice.good { color: var(--good); background: #eaf5ee; border-left-color: var(--good); }
.notice.warn { color: var(--warn); background: #fdf3df; border-left-color: var(--warn); }
.notice.bad { color: var(--bad); background: #fbeaea; border-left-color: var(--bad); }
.quote { border-left: 2px solid var(--rust); padding: 10px 14px; background: var(--card); margin: 12px 0; }
.mockup { max-width: 1160px; margin: 0 auto; }
.mockup .step { max-width: 860px; margin-left: auto; margin-right: auto; }
.mockup .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mockup .tile { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.mockup .tile img { display: block; width: 100%; height: auto; }
.mockup .tile figcaption { display: grid; gap: 2px; padding: 10px 12px 12px; text-align: left; font-size: 0.9rem; color: var(--soft); line-height: 1.3; overflow-wrap: anywhere; }
.mockup .download, .mockup > .notice { max-width: 860px; margin: 12px auto 16px; }
.mockup .tile figcaption b { color: var(--ink); font-weight: 600; }
.mockup .download a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rust); text-underline-offset: 3px; }
.mockup .sheet, .cart .sheet { display: block; width: 100%; height: auto; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
ul.plain { margin: 0 0 16px; padding-left: 20px; }
a.primary { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.previews { display: grid; gap: 12px; }
.previews.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stage .tag { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 0; background: rgba(10, 12, 16, 0.78); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card.pick { position: relative; }
.card.pick input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; }
.placement { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.step .placement:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.field textarea { font: inherit; font-size: 16px; min-height: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; width: 100%; background: #fff; color: var(--ink); resize: vertical; }
.share { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.share input { flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); }
.row.ink { align-items: center; }
.overlay.ink-black { filter: brightness(0); }
.overlay.ink-white { filter: brightness(0) invert(1); }
.overlay.movable { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.overlay.movable.dragging { cursor: grabbing; }
.overlay.movable:focus-visible { outline: 2px dashed var(--rust-bright); outline-offset: -2px; }
.nudge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 4px; }
.nudge .chip { min-width: 44px; padding: 8px 12px; font-size: 1.1rem; line-height: 1; -webkit-tap-highlight-color: transparent; }
#sent-positions { margin-top: 10px; }
.nudge .link { padding: 0 4px; }
.intro { margin: 0 0 16px; }
.color-sizes { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.step .color-sizes:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.color-sizes h3 { margin: 0 0 8px; font-size: 1.02rem; }
.size .price { font-weight: 400; font-size: 0.85rem; color: var(--soft); }
/* A print tier with its two prices, label and two columns (designer estimate, checkout page). */
.print-tier { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: baseline; margin: 2px 0; font-size: 0.9rem; }
.print-tier .price { color: var(--soft); white-space: nowrap; }
.sent .share, .sent .totals { margin: 12px 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.transfer-stage { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.transfer-box { width: calc(var(--w, 1) * 100%); margin: 0 auto 8px; outline: 3px solid #4a4a4a; background: repeating-conic-gradient(#cdcdcd 0% 25%, #aaaaaa 0% 50%) 50% / 16px 16px; }
.transfer-box img { display: block; width: 100%; height: 100%; object-fit: fill; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .sizes { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .mockup .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
main.checkout { max-width: 736px; }
.checkout .sheet { display: block; width: 100%; height: auto; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.field select { font: inherit; font-size: 16px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; width: 100%; background: #fff; color: var(--ink); }
.discount { margin: 8px 0; padding: 8px 12px; border-radius: 2px; background: #edf5ef; color: var(--good); }
.field input:focus, .field textarea:focus, .field select:focus, .size input:focus, .share input:focus { outline: none; border-color: var(--rust-bright); box-shadow: 0 0 0 1px var(--rust-bright); }
@media (max-width: 520px) {
  main { padding: 20px 16px 56px; }
  .step, .cart, .panel { padding: 18px 16px 16px; }
}
a.link { display: inline-flex; align-items: center; }
.layout > div > #preview { margin-bottom: 18px; }

/* Step 1 picker (designer and Studio): category chips that scroll sideways on a phone, style cards, color swatches */
.row.scroll { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 2px 2px 6px; margin: 4px -2px 10px; }
.row.scroll .chip { flex: none; white-space: nowrap; }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0 0 16px; }
.style-card { grid-template-columns: 64px minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; gap: 2px 12px; padding: 10px; text-align: left; }
.style-card > :not(img, .noswatch) { grid-column: 2; }
.style-card img, .style-card .noswatch { grid-row: 1 / span 4; width: 64px; height: 80px; aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 2px; }
.style-card b { font-weight: 600; line-height: 1.3; }
.style-card .muted { font-size: 0.85rem; }
.style-card .from { font-size: 0.85rem; font-weight: 600; color: var(--rust); white-space: nowrap; }
.swatch-title { margin: 6px 0 8px; font-size: 1.05rem; scroll-margin-top: 12px; }
.swatch-title:focus { outline: none; }
.field.filter { margin-top: 0; max-width: 360px; }
.field.filter .muted { font-size: 0.85rem; }
.grid.swatches { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.swatches .card { padding: 6px; font-size: 0.88rem; }
.swatches .card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
@media (max-width: 520px) {
  .styles { grid-template-columns: minmax(0, 1fr); }
  .grid.swatches { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
}

/* Your own garments on the designer: the preview color chips and the how-to-send-them note */
.own-colors { flex-wrap: wrap; }
.swatch-chip { display: inline-flex; align-items: center; gap: 8px; }
.swatch-chip .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.3); flex: none; }
.own-garments { margin-top: 12px; }
.own-garments summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Studio inside the portal's client frame (web/lib/frame.ts sets html[data-framed], data-mode and the --frame-* tokens
   the portal posts): no header or footer of its own; the frame's grounds, ink, lines, accent and fonts, light or dark.
   Photo stages, swatches and the transparency checkerboard stay white, so garments and logos read true. */
html[data-framed] {
  --paper: var(--frame-app, #f0ece4); --card: var(--frame-card, #fbfaf7); --ink: var(--frame-ink, #111620);
  --line: var(--frame-line, #d6cdbf); --soft: var(--frame-muted, #5f584f);
  --rust: var(--frame-accent, #7a4520); --rust-bright: var(--frame-accent, #9a5a2e);
  --picked: color-mix(in srgb, var(--rust) 14%, var(--card));
  --leather-btn: var(--frame-primary, #5a3218); --leather-btn-hover: var(--frame-primary-hover, #6e3f1f); --white: var(--frame-primary-ink, #ffffff);
  --field: var(--frame-field, #ffffff);
  --sans: var(--frame-font, Inter, system-ui, sans-serif); --serif: var(--frame-serif, var(--frame-font, Inter, system-ui, sans-serif));
  color-scheme: light;
}
html[data-framed][data-mode="dark"] { color-scheme: dark; --good: #7fd49b; --warn: #f0bd5c; --bad: #ff9a9a; }
html[data-framed] .top, html[data-framed] .foot { display: none; }
html[data-framed] main { max-width: none; padding: 4px 2px 32px; }
html[data-framed] .primary { border-color: transparent; border-radius: 8px; }
html[data-framed] .step, html[data-framed] .panel { border-radius: 10px; }
html[data-framed] .chip, html[data-framed] .drop, html[data-framed] .field input, html[data-framed] .field textarea,
html[data-framed] .field select, html[data-framed] .size input, html[data-framed] .share input { background: var(--field); color: var(--ink); }
html[data-framed] .drop { border-color: var(--line); }
html[data-framed] .notice { background: color-mix(in srgb, var(--line) 30%, var(--card)); }
html[data-framed] .notice.good, html[data-framed] .discount { background: color-mix(in srgb, var(--good) 14%, var(--card)); }
html[data-framed] .notice.warn { background: color-mix(in srgb, var(--warn) 14%, var(--card)); }
html[data-framed] .notice.bad { background: color-mix(in srgb, var(--bad) 14%, var(--card)); }
@media (max-width: 520px) { html[data-framed] main { padding: 0 0 24px; } }

/* A shop's merch storefront (public/shop.html, Task A15): mobile first, no fixed widths, every colour from the theme. */
.shop { padding: 16px; max-width: 1100px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.shop-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.shop-buy { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-buy select { flex: 1 1 80px; min-width: 0; }
.shop-total { font-weight: 700; }
.shop-form .field input, .shop-form select { width: 100%; box-sizing: border-box; }

