/* Snowstone Marketplace, Dusk. One painting behind the whole page; the sky band sits at the top.
   Two looks from one set of tokens: light (paper, the default for everyone) on bare :root, and the dark
   Dusk under :root[data-theme="dark"], chosen only by the visitor (footer switch, dusk/theme.js).
   The names --ground --ink --bone --bone-2 --bone-3 --gold --gold-hi --hair --hair-2 keep their roles in both:
   --bone is the main text, --bone-2 and --bone-3 quieter text, --gold and --gold-hi the accent, --ground the page.
   Canvas art reads --art-low, --art-bone, --art-gold and --art-spark (r g b) through art.js. */
:root {
  --ground: #fdfcfa;
  --ink: #f3f0ea;
  --bone: #1a1612;
  --bone-2: #4f463c;
  --bone-3: #6b6156;
  --gold: #80581a;
  --gold-hi: #8f4605;
  --bone-rgb: 26 22 18;
  --gold-rgb: 128 88 26;
  --gold-hi-rgb: 143 70 5;
  --glow-rgb: 236 178 98;
  --shade-rgb: 253 252 250;
  --hair: rgb(var(--bone-rgb) / .14);
  --hair-2: rgb(var(--bone-rgb) / .3);
  --ink-hi: #17110b;
  --bone-hi: #17110b;
  --price: #8a4708;
  --warn: #a63d1a;
  --page: #fcfbf8;
  --html-bg: #fcfbf8;
  --sheet: #ffffff;
  --veil: rgb(58 40 22 / .26);
  --sel-bg: rgb(214 150 60 / .32);
  --sel-ink: #17110b;
  --paint-bg:
    radial-gradient(55% 60% at 82% 24%, rgb(236 178 110 / .10), transparent 72%),
    radial-gradient(50% 60% at 4% 96%, rgb(206 140 96 / .05), transparent 72%),
    radial-gradient(40% 50% at 30% 0%, rgb(244 216 170 / .10), transparent 70%),
    #fdfcfa;
  --paint-op: .07;
  --vignette: rgb(150 104 58 / .03);
  --grain-op: .03;
  --glow-op: .5;
  --glow-op-hi: .7;
  --glow-blend: multiply;
  --form-op: .95;
  --form-op-hi: 1;
  --panel-bg: linear-gradient(180deg, #ffffff, #faf8f4);
  --sheet-bg: linear-gradient(180deg, #ffffff, #faf8f4);
  --cancel-filter: none;
  --sky-base: #f6efe4;
  --sky-filter: contrast(.32) brightness(1.62) hue-rotate(-10deg) saturate(1.1);
  --art-low: 176 134 90;
  --art-bone: 60 34 16;
  --art-gold: 190 90 10;
  --art-spark: 230 140 40;
  --art-halo: 236 140 52;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --side: 80px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #15110d;
  --ink: #241c15;
  --bone: #ede5d5;
  --bone-2: #bcb09c;
  --bone-3: #847866;
  --gold: #dcbc82;
  --gold-hi: #f3d9a6;
  --bone-rgb: 237 229 213;
  --gold-rgb: 220 188 130;
  --gold-hi-rgb: 243 217 166;
  --glow-rgb: 255 205 140;
  --shade-rgb: 16 12 9;
  --hair: rgb(var(--bone-rgb) / .13);
  --hair-2: rgb(var(--bone-rgb) / .3);
  --ink-hi: #f6f0e4;
  --bone-hi: #fff4df;
  --price: #f2cf8c;
  --warn: #f0b08a;
  --page: #0c0a08;
  --html-bg: #19130f;
  --sheet: #0e0b09;
  --veil: rgb(6 4 3 / .5);
  --sel-bg: rgb(220 188 130 / .35);
  --sel-ink: #fff;
  --paint-bg:
    radial-gradient(45% 55% at 80% 28%, rgb(64 44 28 / .22), transparent 72%),
    radial-gradient(60% 70% at 8% 100%, rgb(40 28 18 / .2), transparent 72%),
    #0c0a08;
  --paint-op: .22;
  --vignette: rgb(8 6 4 / .45);
  --grain-op: .09;
  --glow-op: .3;
  --glow-op-hi: .6;
  --glow-blend: screen;
  --form-op: .5;
  --form-op-hi: .9;
  --panel-bg: radial-gradient(80% 50% at 100% 0%, rgb(110 78 50 / .22), transparent 70%), linear-gradient(180deg, #1d1712, #14100c);
  --sheet-bg: radial-gradient(90% 60% at 100% 0%, rgb(110 78 50 / .22), transparent 70%), linear-gradient(180deg, #1d1712, #14100c);
  --cancel-filter: invert(.7) sepia(1);
  --sky-base: #1c1713;
  --sky-filter: brightness(.3) saturate(.7);
  --art-low: 120 88 58;
  --art-bone: 244 237 223;
  --art-gold: 246 210 142;
  --art-spark: 243 205 140;
  --art-halo: none;
  color-scheme: dark;
}
.theme-now, .theme-now *, .theme-now *::before, .theme-now *::after { transition: none !important; }
/* the painting in the light look: the warm mottle shows, the dark spots stay faint */
:root:not([data-theme="dark"]) .nav .hc-l { color: var(--bone-2); }
:root:not([data-theme="dark"]) .bg .paint rect:last-of-type { opacity: .12; }
:root:not([data-theme="dark"]) .scene .glow { filter: blur(10px); }
:root:not([data-theme="dark"]) .drop .melt { opacity: .6; }
:root:not([data-theme="dark"]) .drop:hover .melt, :root:not([data-theme="dark"]) .drop:focus-visible .melt { opacity: .8; }
:root:not([data-theme="dark"]) body.dragging .drop .melt, :root:not([data-theme="dark"]) .drop.flare .melt { opacity: 1; }
@media (max-width: 760px) { :root { --side: 16px; } }

* { box-sizing: border-box; }
html { background: var(--html-bg); }
body {
  margin: 0; color: var(--bone); background: transparent;
  font: 400 17px/1.5 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--sel-bg); color: var(--sel-ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- the painting: fixed to the window, so it never ends, repeats or shows an edge ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: var(--paint-bg);
}
.bg .paint { opacity: var(--paint-op); position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.03); transform-origin: 50% 50%; will-change: transform; }
.bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 60% 40%, transparent 60%, var(--vignette) 100%);
}
.drift { position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: var(--grain-op); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- navigation: same place in both views ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 39; height: 64px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--side); color: var(--bone);
}
.brand { font: 400 20px/1 var(--serif); letter-spacing: .01em; color: var(--bone); flex: none; }
.tabs { display: flex; gap: 4px; align-items: center; flex: none; }
.tab { font: 400 17px/1 var(--serif); padding: 10px 16px 11px; border: 1px solid transparent; border-radius: 2px; color: var(--bone-2); }
.tab:hover { color: var(--bone); border-color: rgb(var(--bone-rgb) / .2); }
.tab[aria-current="page"] { color: var(--bone); border-color: rgb(var(--bone-rgb) / .45); background: rgb(var(--bone-rgb) / .05); }
.hs-btn, .menu-btn { display: none; color: var(--bone-2); }
.hright { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.hupl { font: 400 17px/1 var(--serif); color: var(--gold-hi); padding: 8px 0; border-bottom: 1px solid transparent; }
.hupl:hover { border-bottom-color: rgb(var(--gold-hi-rgb) / .6); }
.hconn { display: flex; align-items: center; gap: 8px; }
.hc-l { font: italic 300 15px/1 var(--serif); color: var(--bone-3); margin-right: 4px; }
.hc { font: 400 15px/1 var(--serif); color: var(--bone); padding: 7px 11px 8px; border: 1px solid rgb(var(--bone-rgb) / .28); border-radius: 2px; }
.hc:hover { border-color: var(--bone); }
.hc.on { color: var(--gold-hi); border-color: rgb(var(--gold-hi-rgb) / .45); }
.mine { font: 400 15px/1 var(--serif); color: var(--bone-2); padding: 8px 0; border-bottom: 1px solid rgb(var(--bone-rgb) / .25); }
.mine:hover, .mine[aria-current="page"] { color: var(--bone); border-bottom-color: var(--bone-2); }

/* ---------- the hero: no background of its own; the painting shows through ---------- */
.scene { position: relative; }
.scene > svg, .scene > canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.scene .sky { width: 100%; height: 124px; z-index: 1; }
.scene .glow { z-index: 2; filter: blur(8px); opacity: var(--glow-op); mix-blend-mode: var(--glow-blend); transition: opacity .5s; }
.scene .form { z-index: 3; opacity: var(--form-op); transition: opacity .5s; }
.scene.lively .form { opacity: var(--form-op-hi); }
.scene.lively .glow { opacity: var(--glow-op-hi); }
.scene .fx { z-index: 3; }
.scene .pour { z-index: 4; }
body:not([data-view="market"]) .scene .form, body:not([data-view="market"]) .scene .glow, body:not([data-view="market"]) .tip { display: none; }
.tip {
  position: absolute; z-index: 6; pointer-events: none; max-width: 300px;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 11px;
  background: rgb(var(--shade-rgb) / .92); border: 1px solid rgb(var(--gold-rgb) / .35);
  font: 400 15px/1.25 var(--serif); color: var(--bone);
}
.tip b { font: 400 15px/1 var(--mono); color: var(--gold-hi); }
.hero-in { position: relative; z-index: 5; max-width: 1180px; margin: 0 auto; padding: 108px var(--side) 0; }
@media (min-width: 1341px) { .hero-in { padding-left: 0; padding-right: 0; } }
.hero-grid { display: block; }

.stagger { display: inline-block; margin: 0; font: 300 clamp(48px, 5.3vw, 78px)/1 var(--serif); letter-spacing: -.02em; color: var(--bone); }
.stagger span { display: block; }
.stagger span:nth-child(2) { padding-left: 1.3em; }

.find { display: flex; align-items: baseline; gap: 28px; margin-top: 34px; max-width: 640px; }
.search {
  flex: 1 1 auto; min-width: 0; width: 100%;
  background: none; border: 0; border-bottom: 1px solid rgb(var(--bone-rgb) / .55); border-radius: 0;
  color: var(--bone); font: 300 32px/1.2 var(--serif); padding: 6px 0 10px; outline: none;
}
.search::placeholder { color: var(--bone-2); }
.search:focus { border-bottom-color: var(--gold); }
.search::-webkit-search-cancel-button { filter: var(--cancel-filter); }
.count { font: 400 13px/1 var(--mono); color: var(--bone-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Upload, as words ---------- */
.upl-wrap { margin-top: 26px; }
.upl {
  display: inline-block; font: 300 clamp(34px, 3.3vw, 48px)/1.05 var(--serif); letter-spacing: -.015em;
  color: var(--gold-hi); text-shadow: 0 0 28px rgb(var(--glow-rgb) / .35);
  text-decoration: underline 1px transparent; text-underline-offset: .18em; transition: text-decoration-color .25s, text-shadow .25s;
  white-space: nowrap;
}
.upl:hover, .upl:focus-visible { text-decoration-color: rgb(var(--gold-hi-rgb) / .8); text-shadow: 0 0 36px rgb(var(--glow-rgb) / .55); }
body.dragging .upl { text-decoration-color: rgb(var(--gold-hi-rgb) / .8); text-shadow: 0 0 44px rgb(var(--glow-rgb) / .8); }
.upl-line { margin: 8px 0 0; font: italic 300 17px/1.3 var(--serif); color: var(--bone-2); }

/* ---------- material and shape rows ---------- */
.filters { margin-top: 30px; padding-bottom: 18px; }
.cats, .shapes { display: flex; align-items: baseline; gap: 4px 30px; flex-wrap: wrap; }
.cats { min-height: 34px; }
.chip { padding: 6px 0 7px; border-bottom: 2px solid transparent; color: var(--bone-2); white-space: nowrap; }
.chip .n { font: 400 12px/1 var(--mono); color: var(--bone-3); margin-left: 7px; font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--bone); }
.chip[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--gold-hi); box-shadow: 0 6px 10px -8px rgb(var(--gold-hi-rgb) / .7); }
.chip[aria-pressed="true"] .n { color: var(--gold); }
.chip.zero { opacity: .35; }
.cats .chip { font: 400 19px/1 var(--serif); }
.shapes { margin-top: 10px; gap: 4px 24px; }
.shapes .chip { font: 400 16px/1 var(--serif); }

/* ---------- price list: straight on the painting, hairline rules only ---------- */
.list, .upload { position: relative; max-width: 1180px; margin: 0 auto; padding: 6px var(--side) 40px; }
.list { min-height: 70vh; }
@media (min-width: 1341px) { .list, .upload { padding-left: 0; padding-right: 0; } }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 250px; column-gap: 40px; align-items: baseline; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.row { width: 100%; text-align: left; padding: 18px 0 17px; border-bottom: 1px solid rgb(var(--bone-rgb) / .1); transition: background-color .25s; }
.row:hover { background: linear-gradient(90deg, transparent, rgb(var(--bone-rgb) / .035) 30%, rgb(var(--bone-rgb) / .035) 70%, transparent); }
.row.on, .row.hl { background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / .08) 30%, rgb(var(--gold-rgb) / .08) 70%, transparent); }
.row.hl .price { color: var(--gold-hi); }
.item { min-width: 0; font: 400 20px/1.3 var(--serif); color: var(--ink-hi); }
.item .sz { color: var(--bone-2); font-weight: 300; margin-left: .25em; }
.item small { display: block; font: 300 14px/1.35 var(--serif); color: var(--bone-3); margin-top: 3px; }
.price { text-align: right; font: 400 18px/1 var(--mono); color: var(--price); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price .seller { display: block; margin-top: 6px; font: 400 12px/1.2 var(--serif); color: var(--bone-3); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.bar { position: relative; flex: 0 1 150px; height: 1px; background: var(--hair); }
.bar i {
  position: absolute; right: 0; top: -.5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--gold-rgb) / .25), var(--gold-hi));
  box-shadow: 0 0 6px rgb(var(--gold-hi-rgb) / .55), 0 0 14px rgb(var(--gold-rgb) / .25);
}
.pct { min-width: 76px; text-align: right; font: 400 15px/1 var(--mono); color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pct::before { content: "gap "; font: italic 300 15px/1 var(--serif); color: var(--bone-3); }
.pager { display: flex; justify-content: center; gap: 48px; margin-top: 40px; }
.more { padding: 10px 2px 6px; font: 300 24px/1 var(--serif); color: var(--bone); border-bottom: 1px solid var(--hair-2); }
.more:hover { border-bottom-color: var(--gold); }
.none { padding: 40px 0; font: italic 300 22px/1.3 var(--serif); color: var(--bone-2); }
.none a { color: var(--gold-hi); border-bottom: 1px solid var(--gold); }

/* ---------- seller panel ---------- */
.veil { position: fixed; inset: 0; z-index: 40; background: var(--veil); opacity: 0; pointer-events: none; transition: opacity .35s; }
.veil.on { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(480px, 100%); overflow-y: auto;
  background: var(--panel-bg);
  border-left: 1px solid var(--hair); padding: 34px 44px 48px;
  transform: translateX(102%); transition: transform .45s cubic-bezier(.2, .7, .1, 1); visibility: hidden;
}
.panel.on { transform: none; visibility: visible; }
.panel .close { position: absolute; top: 30px; right: 44px; font: 400 15px/1 var(--serif); color: var(--bone-2); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.panel .close:hover { color: var(--bone); border-bottom-color: currentColor; }
.p-kind { margin: 64px 0 10px; font: italic 300 16px/1.3 var(--serif); color: var(--bone-3); }
.p-name { margin: 0; font: 300 40px/1.05 var(--serif); letter-spacing: -.015em; }
.p-size { margin: 12px 0 0; font: 300 17px/1.35 var(--serif); color: var(--bone-2); }
.sellers { list-style: none; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--hair-2); }
.sellers li { padding: 16px 0 14px; border-bottom: 1px solid var(--hair); }
.sellers .line { display: grid; grid-template-columns: minmax(0, 1fr) auto 74px; gap: 18px; align-items: baseline; }
.sellers a { font: 400 18px/1.25 var(--serif); }
.sellers a:hover { border-bottom: 1px solid var(--hair-2); }
.sellers .pp { font: 400 16px/1 var(--mono); color: var(--bone-2); text-align: right; font-variant-numeric: tabular-nums; }
.sellers .dd { font: 400 12px/1 var(--mono); color: var(--bone-3); text-align: right; font-variant-numeric: tabular-nums; }
.sellers .len { height: 1px; margin-top: 12px; background: rgb(var(--bone-rgb) / .16); }
.sellers li.best .pp, .sellers li.best .dd { color: var(--gold); }
.sellers li.best .len { height: 2px; background: linear-gradient(90deg, var(--gold-hi), rgb(var(--gold-rgb) / .3)); box-shadow: 0 0 8px rgb(var(--gold-hi-rgb) / .5); }

/* ---------- upload view ---------- */
.up { padding-bottom: 40px; }
.u-title { margin: 0; font: 300 clamp(48px, 5.3vw, 78px)/1 var(--serif); letter-spacing: -.02em; }
.u-line { margin: 18px 0 0; font: italic 300 21px/1.3 var(--serif); color: var(--bone-2); }
.u-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; margin-top: 30px; align-items: center; }
.drop {
  position: relative; min-height: 300px; padding: 60px 20px; cursor: pointer; outline: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
}
.drop .melt {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .3; transition: opacity .35s;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.drop:hover .melt, .drop:focus-visible .melt { opacity: .45; }
body.dragging .drop .melt { opacity: .85; }
.drop > p { position: relative; z-index: 1; margin: 0; }
.d-title { font: 300 clamp(36px, 3.8vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; color: var(--bone-hi); text-shadow: 0 0 30px rgb(var(--shade-rgb) / .9), 0 0 26px rgb(var(--glow-rgb) / .3); }
body.dragging .d-title { text-shadow: 0 0 30px rgb(var(--shade-rgb) / .9), 0 0 40px rgb(var(--glow-rgb) / .75); }
.picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.lnk { font: 400 19px/1.3 var(--serif); color: var(--gold-hi); border-bottom: 1px solid rgb(var(--gold-hi-rgb) / .45); padding: 6px 0 2px; text-shadow: 0 0 10px rgb(var(--shade-rgb)), 0 0 4px rgb(var(--shade-rgb)); }
.lnk:hover { color: var(--bone-hi); border-bottom-color: var(--gold-hi); }
.lnk.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: 2px; background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .3; } }

.c-head { margin: 0 0 14px; font: italic 300 19px/1.2 var(--serif); color: var(--bone-2); }
.c-btns { display: flex; gap: 28px; margin: 0; }
.c-btn { font: 400 24px/1.2 var(--serif); color: var(--bone); border-bottom: 1px solid var(--hair-2); padding: 4px 0 3px; }
.c-btn:hover { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
.c-note { margin-top: 18px; font: 400 16px/1.35 var(--serif); color: var(--gold-hi); }
.c-note:empty { display: none; }
.c-note .warn { color: var(--bone); }
.c-note a { display: block; margin-top: 8px; font: 400 13px/1.3 var(--mono); color: var(--bone-2); word-break: break-all; }
.c-list { list-style: none; margin: 14px 0 0; padding: 0; }
.c-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.c-list a, .copy { color: var(--bone-2); border-bottom: 1px solid var(--hair-2); font: 400 14px/1.2 var(--serif); padding-bottom: 1px; }
.c-list a:hover, .copy:hover { color: var(--bone); }

.flist { list-style: none; margin: 0; padding: 0; }
.flist:not(:empty) { border-top: 1px solid var(--hair-2); margin-bottom: 30px; }
.flist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: baseline; padding: 11px 0 10px; border-bottom: 1px solid var(--hair); }
.flist .fn { font: 400 16px/1.3 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flist .fs { font: 400 13px/1 var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.flist .st { font: 400 12px/1 var(--mono); color: var(--bone-3); }
.flist .rm { font: 400 14px/1 var(--serif); color: var(--bone-3); border-bottom: 1px solid var(--hair); }
.flist .rm:hover { color: var(--bone); }
.sheet { display: flex; gap: 56px; margin: 0 0 34px; }
.sheet div { display: flex; flex-direction: column; gap: 6px; }
.sheet b { font: 400 26px/1 var(--mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.sheet span { font: 400 13px/1 var(--serif); color: var(--bone-3); }

.fields { display: grid; gap: 30px; }
.f {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--hair-2); border-radius: 0;
  color: var(--bone); font: 300 22px/1.35 var(--serif); padding: 8px 0 12px; outline: none; resize: none;
}
.f::placeholder { color: var(--bone-3); }
.f:focus { border-bottom-color: var(--gold); }
.msg { overflow: hidden; }
.pair { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; }
.go {
  height: 54px; padding: 0 52px; border: 1px solid rgb(var(--bone-rgb) / .55);
  font: 400 20px/1 var(--serif); color: var(--bone); transition: background-color .25s, color .25s;
}
.go:hover { background: var(--bone); color: var(--ground); }
.go:disabled { opacity: .5; cursor: default; background: none; color: var(--bone); }
.meter { position: relative; display: flex; align-items: center; gap: 18px; }
.meter::before { content: ""; flex: 1; height: 1px; background: var(--hair-2); }
.meter i { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 0; background: var(--gold-hi); box-shadow: 0 0 8px rgb(var(--gold-hi-rgb) / .7); transition: width .3s; }
.meter span { font: 400 13px/1 var(--mono); color: var(--bone-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.err { margin: 0; font: italic 300 19px/1.3 var(--serif); color: var(--warn); }
.done { padding: 10px 0 20px; }
.got { margin: 0; font: 300 40px/1.1 var(--serif); color: var(--bone-hi); }
.link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px; margin: 18px 0 0; }
.link a { font: 400 15px/1.3 var(--mono); color: var(--gold-hi); word-break: break-all; }

.foot {
  max-width: 1180px; margin: 90px auto 0; padding: 22px var(--side) 34px; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: baseline; font: 400 14px/1 var(--serif); color: var(--bone-3);
}
@media (min-width: 1341px) { .foot { padding-left: 0; padding-right: 0; } }
.foot a:hover { color: var(--bone); }
.f-r { display: flex; align-items: baseline; gap: 28px; }
.f-theme { color: var(--bone-3); }
/* no look to choose: the page is light. Only a visitor already on the dark look sees the word that leads back. */
:root:not([data-theme="dark"]) .f-theme { display: none; }
.f-theme:hover { color: var(--bone); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .u-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .nav { height: 56px; gap: 10px; }
  .brand { font-size: 17px; }
  .tab { font-size: 16px; padding: 9px 11px 10px; }
  .hs-btn, .menu-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; font: 400 15px/1 var(--serif); }
  .hs-btn { width: 40px; margin-left: auto; }
  .menu-btn { padding: 0 4px; }
  .hright { display: none; position: fixed; left: 0; right: 0; top: 56px; margin: 0; padding: 14px var(--side) 20px; background: var(--sheet);
    flex-direction: column; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--hair); }
  .nav.menu-open .hright { display: flex; }
  .hero-in { padding-top: 84px; }
  .stagger, .u-title { font-size: 44px; }
  .find { margin-top: 170px; gap: 16px; }
  .search { font-size: 24px; }
  .upl-wrap { margin-top: 22px; }
  .upl { font-size: 34px; }
  .filters { margin: 22px calc(-1 * var(--side)) 0; padding: 0 0 14px; }
  .cats, .shapes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 var(--side); gap: 22px; }
  .cats::-webkit-scrollbar, .shapes::-webkit-scrollbar { display: none; }
  .cats .chip { font-size: 17px; }
  .row { grid-template-columns: minmax(0, 1fr) 84px 50px; column-gap: 12px; }
  .bar { display: none; }
  .pct { min-width: 0; }
  .item { font-size: 17px; }
  .price { font-size: 15px; }
  .drop { min-height: 240px; padding: 40px 6px; }
  .picks { flex-direction: column; gap: 8px; }
  .pair { grid-template-columns: 1fr; gap: 28px; }
  .go { width: 100%; }
  .sheet { gap: 28px; }
  .got { font-size: 30px; }
  .panel { padding: 26px 20px 40px; }
  .panel .close { right: 20px; top: 24px; }
  .p-name { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .veil, .row, .upl, .drop .melt { transition: none; }
}

/* ---------- links to sellers' own pages ---------- */
.row { cursor: pointer; }
.row:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.ext { font-size: .85em; color: var(--gold); }
.price a.seller { cursor: pointer; }
.price a.seller:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 2px; }
.sellers .line { color: inherit; }
.sellers .sn { font: 400 18px/1.25 var(--serif); }
.sellers a.line:hover .sn { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.sellers a.line:hover .pp { color: var(--gold-hi); }
.drop.flare .melt { opacity: 1; }

/* ---------- the header stays at the top while scrolling (23 Nov), the painted sky band behind it ---------- */
html { scroll-padding-top: 80px; }
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: -1; pointer-events: none;
  filter: var(--sky-filter);
  background: var(--sky-base) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 320%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3Cfilter id=%22brush%22 x=%22-10%25%22 y=%22-40%25%22 width=%22120%25%22 height=%22180%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.007 0.05%22 numOctaves=%223%22 seed=%227%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%2254%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22 result=%22d%22/%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.0022 0.16%22 numOctaves=%222%22 seed=%223%22 result=%22s%22/%3E%3CfeColorMatrix in=%22s%22 type=%22matrix%22 values=%220 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.45%22 result=%22sa%22/%3E%3CfeComposite in=%22d%22 in2=%22sa%22 operator=%22arithmetic%22 k1=%22.22%22 k2=%22.78%22 k3=%220%22 k4=%220%22 result=%22st%22/%3E%3CfeGaussianBlur in=%22st%22 stdDeviation=%22.7%22/%3E%3C/filter%3E%3ClinearGradient id=%22skyg%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23d9cfbd%22/%3E%3Cstop offset=%22.65%22 stop-color=%22%23bcae98%22/%3E%3Cstop offset=%221%22 stop-color=%22%2397876f%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter=%22url(%23brush)%22%3E%3Crect x=%22-80%22 y=%22-80%22 width=%221600%22 height=%22210%22 fill=%22url(%23skyg)%22/%3E%3Crect x=%22560%22 y=%2234%22 width=%22540%22 height=%2256%22 fill=%22%23e7dece%22 opacity=%22.45%22/%3E%3Crect x=%22-60%22 y=%22118%22 width=%22540%22 height=%2248%22 fill=%22%23ac9e87%22 opacity=%22.9%22/%3E%3Crect x=%22400%22 y=%22126%22 width=%22420%22 height=%2234%22 fill=%22%239f907a%22 opacity=%22.75%22/%3E%3Crect x=%22770%22 y=%22114%22 width=%22390%22 height=%2256%22 fill=%22%23b4a690%22 opacity=%22.85%22/%3E%3Crect x=%221110%22 y=%22122%22 width=%22430%22 height=%2242%22 fill=%22%23a39480%22 opacity=%22.8%22/%3E%3Crect x=%22100%22 y=%22168%22 width=%22310%22 height=%2220%22 fill=%22%237c6e5a%22 opacity=%22.5%22/%3E%3Crect x=%22640%22 y=%22164%22 width=%22200%22 height=%2216%22 fill=%22%2386775f%22 opacity=%22.4%22/%3E%3Crect x=%22930%22 y=%22172%22 width=%22270%22 height=%2224%22 fill=%22%23776955%22 opacity=%22.45%22/%3E%3Crect x=%221240%22 y=%22166%22 width=%22220%22 height=%2214%22 fill=%22%238a7b65%22 opacity=%22.4%22/%3E%3C/g%3E%3C/svg%3E") top center / 100% 88px no-repeat;
}
@media (max-width: 760px) { .nav::before { height: 56px; background-size: 100% 80px; } }

/* ---------- calmer details (24 Nov) ---------- */
.chip:hover { color: var(--bone); border-bottom-color: rgb(var(--bone-rgb) / .25); }
[data-for].fade { animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.row:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 0; background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / .08) 30%, rgb(var(--gold-rgb) / .08) 70%, transparent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- your shop ---------- */
.s-name { cursor: text; border-bottom: 1px solid transparent; display: inline-block; }
.s-name:hover { border-bottom-color: rgb(var(--bone-rgb) / .25); }
.s-name-in { display: block; width: min(100%, 900px); background: none; border: 0; border-bottom: 1px solid var(--gold); color: var(--bone);
  font: 300 clamp(48px, 5.3vw, 78px)/1 var(--serif); letter-spacing: -.02em; padding: 0 0 6px; outline: none; }
.shop { padding-top: 40px; }
.s-sec { margin: 0 0 56px; }
.s-h { margin: 0 0 16px; font: italic 300 19px/1.2 var(--serif); color: var(--bone-2); }
.s-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.s-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: baseline; padding: 14px 0 13px; border-bottom: 1px solid var(--hair); }
.s-list .a { font: 400 18px/1.3 var(--serif); color: var(--ink-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-list .b { font: 400 13px/1 var(--mono); color: var(--bone-2); font-variant-numeric: tabular-nums; }
.s-list .c { font: 400 14px/1 var(--serif); color: var(--bone-2); border-bottom: 1px solid var(--hair-2); }
.s-list .c:hover { color: var(--bone); }
.s-list li.empty { display: block; font: italic 300 17px/1.3 var(--serif); color: var(--bone-3); }
.sheet.big b { font-size: 34px; }
.s-note { margin: 10px 0 0; font: italic 300 15px/1.3 var(--serif); color: var(--bone-3); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair-2); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0 14px; font: 400 19px/1.3 var(--serif); color: var(--ink-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--bone-3); font-family: var(--mono); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; font: 300 17px/1.45 var(--serif); color: var(--bone-2); }
.s-none { padding: 20px 0 40px; display: grid; gap: 30px; justify-items: start; }
.s-none .c-btns { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) {
  .s-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .s-list li .b.sz { display: none; }
}
.search:focus-visible, .f:focus-visible, .s-name-in:focus-visible { outline: none; }

/* one way in at a time: the nav word "Ask" (where lists and files go, 26 Nov) is the gold one */
.tab[data-view="ask"] { color: var(--gold-hi); }
.tab[data-view="ask"]:hover { color: var(--bone-hi); border-color: rgb(var(--gold-hi-rgb) / .4); }
.tab[data-view="ask"][aria-current="page"] { color: var(--gold-hi); border-color: rgb(var(--gold-hi-rgb) / .55); background: rgb(var(--gold-hi-rgb) / .06); }

/* ---------- phones and tablets, second pass (23 Nov): the M mark, thumb-size targets, safe areas ---------- */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --nav-h: 64px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
a, button, summary, .row { touch-action: manipulation; }
.b-m, .addapp, .w-touch { display: none; }
.f-add:hover { color: var(--bone); }

/* the header leaves room for the status bar of the phone when the site runs as an app */
.nav { height: calc(var(--nav-h) + var(--sat)); padding-top: var(--sat); }
.nav::before { height: calc(var(--nav-h) + var(--sat)); background-size: 100% calc(var(--nav-h) + 24px + var(--sat)); }
.hero-in { padding-top: calc(108px + var(--sat)); }
.panel { padding-top: calc(34px + var(--sat)); padding-bottom: calc(48px + var(--sab)); }
.panel .close { top: calc(30px + var(--sat)); }
.foot { padding-bottom: calc(34px + var(--sab)); }

.hright { flex: none; }
.mine, .hc, .tab { white-space: nowrap; }

html { scroll-padding-top: calc(var(--nav-h) + var(--sat) + 16px); }

@media (max-width: 1100px) { :root { --side: max(40px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); } }

/* narrow windows and tablets: search and the rest fold into two buttons */
@media (max-width: 980px) {
  .nav { gap: 10px; }
  .hs-btn, .menu-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; font: 400 16px/1 var(--serif); }
  .hs-btn { width: 44px; margin-left: auto; }
  .menu-btn { min-width: 44px; padding: 0 6px; margin-right: -6px; }
  .menu-btn[aria-expanded="true"] { color: var(--gold-hi); }
  .hright {
    display: none; position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + var(--sat)); margin: 0;
    padding: 4px var(--side) 10px; background: var(--sheet); border-bottom: 1px solid var(--hair);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--nav-h) - var(--sat)); overflow-y: auto;
  }
  .nav.menu-open .hright { display: flex; }
  .hconn { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 12px 0 16px; }
  .hc-l { grid-column: 1 / -1; margin: 0 0 10px; }
  .hc { height: 48px; padding: 0; font-size: 18px; display: flex; align-items: center; justify-content: center; }
  .mine, .addapp {
    display: flex; align-items: center; height: 54px; padding: 0; text-align: left;
    font: 400 19px/1 var(--serif); color: var(--bone); border: 0; border-top: 1px solid var(--hair);
  }
  .mine:hover, .mine[aria-current="page"] { color: var(--gold-hi); }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; --side: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  :root { --bar-h: 58px; }
  html { background: var(--page); scroll-padding-top: calc(var(--sat) + 16px); scroll-padding-bottom: calc(var(--bar-h) + var(--sab) + 16px); }

  /* one slim bar at the bottom, always on screen: Market, Ask, Your shop, search. Nothing at the top. */
  .nav {
    top: auto; bottom: 0; height: calc(var(--bar-h) + var(--sab)); gap: 0;
    padding: 0 max(6px, env(safe-area-inset-left, 0px)) var(--sab) max(6px, env(safe-area-inset-right, 0px));
  }
  .nav::before {
    top: 0; height: 100%; filter: none; background: rgb(var(--shade-rgb) / .86); border-top: 1px solid var(--hair);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .brand, .menu-btn, .hconn, .addapp { display: none !important; }
  .tabs, .hright { display: contents; }
  .tab, .mine, .hs-btn {
    position: relative; flex: 1 1 0; width: auto; height: var(--bar-h); margin: 0; padding: 0; border: 0; background: none;
    display: flex; align-items: center; justify-content: center;
    font: 400 17px/1 var(--serif); color: var(--bone-2); transition: color .2s, opacity .15s;
  }
  .hs-btn { flex: 0 0 60px; order: 5; }
  .tab:hover, .tab[aria-current="page"], .mine:hover, .mine[aria-current="page"] { color: var(--bone); border: 0; background: none; }
  .tab[data-view="ask"], .tab[data-view="ask"][aria-current="page"] { color: var(--gold-hi); border: 0; background: none; }
  .tab::after, .mine::after {
    content: ""; position: absolute; left: 50%; bottom: 11px; width: 18px; height: 1px; margin-left: -9px;
    background: var(--gold-hi); opacity: 0; transform: scaleX(.3); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .1, 1);
  }
  .tab[aria-current="page"]::after, .mine[aria-current="page"]::after { opacity: 1; transform: none; }
  .tab:active, .mine:active, .hs-btn:active { opacity: .55; }
  body::before { content: ""; position: fixed; z-index: 38; left: 0; right: 0; top: 0; height: var(--sat); background: var(--page); }

  /* fewer words on the screen */
  .hero-in { padding-top: calc(34px + var(--sat)); }
  .upl-wrap, .count, .chip .n, .row .price .seller { display: none; }
  .find { margin-top: 160px; }
  .filters { padding-bottom: 4px; }
  .cats .chip, .shapes .chip { padding: 14px 0 13px; transition: color .2s, border-color .25s; }
  .cats { min-height: 46px; }
  .shapes { margin-top: 0; }
  /* a row: name, then its size on one line of its own; at the right the lowest price, the gap between sellers under it */
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 18px; padding: 17px 0 16px; }
  .item { grid-column: 1; grid-row: 1 / span 2; }
  .item .sz { display: block; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row .price { grid-column: 2; grid-row: 1; font: 400 20px/22px var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
  .row .save { grid-column: 2; grid-row: 2; display: block; text-align: right; align-self: start; }
  .row .pct { min-width: 0; font: 400 15px/22px var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--gold); }
  .row .pct::before { font: italic 300 15px/22px var(--serif); }
  .sellers .pp, .sellers .dd, .sheet b, .flist .fs, .flist .st { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
  .sellers .pp { font-size: 19px; }
  .sellers .dd { font-size: 14px; }
  .row:active { background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / .08) 30%, rgb(var(--gold-rgb) / .08) 70%, transparent); }
  .flist:empty ~ .fields:has(.msg:placeholder-shown) .pair { display: none; }

  /* softer moves between pages and after a tap */
  [data-for].fade, .rows.fade { animation: rise .34s cubic-bezier(.2, .7, .1, 1) both; }
  .pager { margin-top: 26px; }
  .more { min-height: 48px; padding: 12px 12px 8px; }

  .panel { padding: calc(26px + var(--sat)) 20px calc(40px + var(--sab)); }
  .panel .close { top: calc(12px + var(--sat)); right: 12px; padding: 14px 8px; }
  .sellers .line { grid-template-columns: minmax(0, 1fr) auto 64px; gap: 12px; }

  .u-line { font-size: 19px; }
  .drop { min-height: 210px; padding: 34px 6px; gap: 12px; }
  .d-title { font-size: 34px; }
  .picks { gap: 0; }
  .lnk { padding: 12px 0 8px; }
  .c-btns { gap: 34px; }
  .c-btn { padding: 8px 0 7px; }
  .c-list a, .copy, .s-list .c, .flist .rm { padding: 11px 0 9px; }
  .flist li { gap: 14px; }
  .fields { gap: 22px; }
  .f { font-size: 20px; }
  .sheet { flex-wrap: wrap; gap: 22px 32px; }
  .sheet.big b { font-size: 26px; }
  .s-name-in { font-size: 44px; }
  .shop { padding-top: 22px; }
  .s-sec { margin-bottom: 44px; }
  .foot { margin-top: 60px; padding-top: 10px; padding-bottom: calc(18px + var(--bar-h) + var(--sab)); align-items: center; }
  .foot a, .f-add, .f-theme { padding: 14px 0; }
  .f-r { gap: 24px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-for].fade, .rows.fade { animation: none; } }
@media (max-width: 350px) {
  .stagger, .u-title, .s-name-in { font-size: 38px; }
  .tab, .mine { font-size: 16px; }
}

/* touch screens: no hover leftovers, no folder picker, a lighter page to scroll */
@media (hover: none) and (pointer: coarse) {
  .w-fine { display: none; }
  .w-touch { display: inline; }
  [data-pick="folder"] { display: none; }
  .grain { display: none; }
  .row:hover:not(.on):not(.hl):not(:active) { background: none; }
  .row .price a.seller { pointer-events: none; }             /* the whole row opens the sellers; their links are there */
  .row .price .ext { display: none; }
  .bg { bottom: auto; height: 100vh; height: 100lvh; }      /* the painting does not redraw when the address bar slides */
}

/* ---------- add to phone: a small sheet ---------- */
.iveil { position: fixed; inset: 0; z-index: 42; background: var(--veil); opacity: 0; pointer-events: none; transition: opacity .3s; }
.iveil.on { opacity: 1; pointer-events: auto; }
.isheet {
  position: fixed; z-index: 43; left: 50%; bottom: 0; width: min(440px, 100%);
  padding: 30px max(28px, env(safe-area-inset-left, 0px)) calc(30px + var(--sab));
  background: var(--sheet-bg);
  border: 1px solid var(--hair); border-bottom: 0;
  transform: translate(-50%, 104%); visibility: hidden;
  transition: transform .4s cubic-bezier(.2, .7, .1, 1), visibility 0s .4s;
}
.isheet.on { transform: translate(-50%, 0); visibility: visible; transition: transform .4s cubic-bezier(.2, .7, .1, 1); }
.isheet .close { position: absolute; top: 14px; right: 18px; padding: 14px 8px; font: 400 15px/1 var(--serif); color: var(--bone-2); }
.isheet .close:hover { color: var(--bone); }
.i-mark { display: block; width: 52px; height: 52px; }
.i-title { margin: 18px 0 0; font: 300 34px/1.05 var(--serif); letter-spacing: -.015em; }
.i-steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--hair-2); }
.i-steps li {
  counter-increment: step; display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; align-items: center; gap: 10px;
  min-height: 58px; border-bottom: 1px solid var(--hair); font: 400 20px/1.25 var(--serif); color: var(--ink-hi);
}
.i-steps li::before { content: counter(step); font: 400 14px/1 var(--mono); color: var(--gold); }
.i-i { display: flex; color: var(--gold-hi); }
.i-i svg { width: 26px; height: 26px; }
.i-go { margin-top: 24px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .isheet, .isheet.on, .iveil { transition: none; } }

/* ---------- Ask (25 Nov): paste a request for quote, see who to ask ---------- */
.ask-hero { padding-bottom: 26px; }
.a-box { margin-top: 34px; max-width: 760px; }
.a-in {
  display: block; width: 100%; min-height: 1.4em; resize: none; overflow-y: auto;
  background: none; border: 0; border-bottom: 1px solid rgb(var(--bone-rgb) / .55); border-radius: 0;
  color: var(--bone); font: 300 28px/1.35 var(--serif); padding: 6px 0 10px; outline: none;
}
.a-in::placeholder { color: var(--bone-2); }
.a-in:focus { border-bottom-color: var(--gold); }
.a-in:focus-visible { outline: none; }
.a-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 14px 0 0; }
.a-pick .lnk { font-size: 17px; }
.a-note { font: italic 300 16px/1.3 var(--serif); color: var(--warn); }
.a-past { margin-top: 44px; max-width: 760px; }
.a-pastl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.a-pq { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; width: 100%; text-align: left; align-items: baseline;
  padding: 12px 0 11px; border-bottom: 1px solid var(--hair); }
.a-pq .d { font: 400 13px/1 var(--mono); color: var(--bone-3); font-variant-numeric: tabular-nums; }
.a-pq .t { font: 400 16px/1.3 var(--serif); color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pq:hover .t { color: var(--bone); }

.ask { padding-top: 8px; }
.ask:not(.empty) { padding-top: 30px; }
.a-sec { margin: 0 0 60px; }
.a-sellers, .a-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.a-s { border-bottom: 1px solid var(--hair); }
.a-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; width: 100%; text-align: left; align-items: start; padding: 18px 0 17px; }
.a-row:hover .a-n { text-decoration: underline 1px var(--hair-2); text-underline-offset: 4px; }
.a-l, .a-r { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.a-r { text-align: right; align-items: flex-end; }
.a-n { font: 400 21px/1.25 var(--serif); color: var(--ink-hi); }
.a-s.best .a-n { color: var(--gold-hi); }
.a-t { font: 400 15px/1.3 var(--serif); color: var(--bone-2); font-variant-numeric: lining-nums tabular-nums; }
.a-why { font: italic 300 15px/1.35 var(--serif); color: var(--bone-3); }
.a-send { font: 400 17px/1.25 var(--serif); color: var(--bone); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.a-tag { font: italic 300 14px/1.2 var(--serif); color: var(--bone-2); }
.a-tag.dim { color: var(--bone-3); }
.a-facts { padding: 0 0 26px; max-width: 720px; }
.a-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 9px 24px; margin: 0; font: 400 16px/1.35 var(--serif); }
.a-dl dt { color: var(--bone-3); }
.a-dl dd { margin: 0; color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.a-reach { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 0; font: 400 16px/1.3 var(--serif); }
.a-reach a { color: var(--bone); border-bottom: 1px solid var(--hair-2); padding-bottom: 1px; word-break: break-all; }
.a-reach a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.a-reach span { color: var(--bone-3); font-style: italic; }
.a-copy { display: inline-block; margin-top: 18px; font-size: 16px; }
.a-deliv { margin: 20px 0 0; font: italic 300 18px/1.35 var(--serif); color: var(--bone-2); font-variant-numeric: lining-nums; }
.a-empty { padding: 20px 0; font: italic 300 19px/1.3 var(--serif); color: var(--bone-2); border-bottom: 1px solid var(--hair); }

.a-i { padding: 18px 0 16px; border-bottom: 1px solid var(--hair); }
.a-it { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; }
.a-num { font: 400 13px/1 var(--mono); color: var(--bone-3); font-variant-numeric: tabular-nums; }
.a-raw { font: 400 19px/1.3 var(--serif); color: var(--ink-hi); overflow-wrap: anywhere; }
.a-read { margin: 6px 0 0 30px; font: 300 16px/1.4 var(--serif); color: var(--bone-2); font-variant-numeric: lining-nums; }
.a-sure { margin-left: 14px; font-style: italic; color: var(--bone-3); white-space: nowrap; }
.a-sure.not-sure { color: var(--warn); }
.a-i.unread .a-read { font-style: italic; color: var(--warn); }

@media (max-width: 760px) {
  .a-box { margin-top: 26px; }
  .a-in { font-size: 22px; }
  .a-pick .lnk { padding: 12px 0 8px; }
  .a-pq { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; min-height: 48px; align-items: center; }
  .a-sec { margin-bottom: 46px; }
  .a-row { gap: 14px; padding: 16px 0 15px; min-height: 56px; }
  .a-n { font-size: 19px; }
  .a-t, .a-why { font-size: 14px; }
  .a-send { font-size: 16px; }
  .a-dl { grid-template-columns: 118px minmax(0, 1fr); gap: 8px 14px; font-size: 15px; }
  .a-reach { flex-direction: column; gap: 0; }
  .a-reach a, .a-copy { padding: 13px 0 11px; }
  .a-raw { font-size: 18px; }
  .a-it { grid-template-columns: 24px minmax(0, 1fr); }
  .a-read { margin-left: 24px; font-size: 15px; }
  .a-deliv { font-size: 17px; }
  /* four words and the search icon in the bottom bar */
  .nav:has(#mine:not([hidden])) .tab, .nav:has(#mine:not([hidden])) .mine { font-size: 15px; }
}

/* Upload: a calm line for a spreadsheet the browser could not read (added 25 Nov 2026) */
/* Upload and Your shop: "from your system" (Excel or CSV export by name; Business Central sign-in when switched on) */
.c-sys-h { margin-top: 30px; }
.c-sys { margin: 0 0 14px; max-width: 30rem; font: 400 16px/1.45 var(--serif); color: var(--bone-2); }
.s-none .c-sys { margin: 0; }
.bc-row[hidden] { display: none; }
.c-list li .lnk { color: var(--bone-2); border-bottom: 1px solid var(--hair-2); font: 400 14px/1.2 var(--serif); padding: 0 0 1px; min-height: 0; }
@media (max-width: 760px) {
  .s-none .c-btns { flex-wrap: wrap; row-gap: 6px; }
  .c-list li .lnk { padding: 11px 0 9px; }
}
.u-note { margin: 0 0 28px; max-width: 46rem; font: 400 16px/1.45 var(--serif); color: var(--bone-2); overflow-wrap: anywhere; }

/* ---------- one box (26 Nov): Ask and Upload are one view, with one Connect under it ---------- */
/* the glow of digits that sat behind the old drop words now wakes behind the box while files are dragged */
.a-box { position: relative; }
.a-box > .melt {
  position: absolute; left: calc(-1 * min(40px, var(--side))); top: -40px; width: calc(100% + 2 * min(40px, var(--side))); height: calc(100% + 70px); z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .35s;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
body.dragging .a-box > .melt { opacity: .85; }
:root:not([data-theme="dark"]) body.dragging .a-box > .melt { opacity: 1; }
/* the quiet line: Connect and Say it */
.c-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; margin: 22px 0 0; }
.lnk.q { font-size: 17px; color: var(--bone-2); border-bottom-color: var(--hair-2); }
.lnk.q:hover, .lnk.q[aria-expanded="true"] { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
.cpane { margin-top: 16px; max-width: 760px; }
.cpane .sys > .sys-row:first-child { display: none; }   /* its names now sit in the Connect row or under Other */
.cpane .c-note { margin-top: 14px; }
.s-none .cwrap { width: 100%; }
/* Your shop with nothing known has no heading above it: its one line starts clear of the header */
.s-none { padding-top: 88px; }
@media (max-width: 760px) { .s-none { padding-top: 20px; } }
.s-none .c-line { margin-top: 0; }
/* the upload line: what waits, and one button */
.queue { display: grid; gap: 16px; margin: 0 0 44px; }
.queue[hidden] { display: none; }
.q-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0;
  padding: 14px 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair); }
.q-what { font: 400 19px/1.3 var(--serif); color: var(--ink-hi); font-variant-numeric: lining-nums tabular-nums; }
.ask .done { padding-top: 0; margin-bottom: 40px; }
/* the footer without its word: the switch and the privacy link sit at the right */
.f-r { margin-left: auto; }
/* tablets: no Menu button when there is nothing in it */
@media (min-width: 761px) and (max-width: 980px) {
  .nav:not(:has(#mine:not([hidden]))):not(:has(.addapp:not([hidden]))) .menu-btn { display: none; }
}
@media (max-width: 760px) {
  .c-line { margin-top: 14px; }
  .q-what { font-size: 18px; }
}

/* ---------- the footer rests at the bottom of the window on a short page, so its rule does not float mid-screen ---------- */
body { position: relative; padding-bottom: 160px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; }
@media (max-width: 760px) { body { padding-bottom: calc(190px + var(--sab)); } }

/* ---------- desktop at 80% (26 Nov: "the site looks a little zoomed in too much ... better at like 80%") ---------- */
/* Every block of words and rules is drawn at four fifths. The canvases behind them (the figure, the pour, the drift)
   and the hover tip keep the window's own measure, so the art still lines up with what it points at: market.js and
   scene.js measure the words on screen. Tablets and phones (980px and below) are as they were. */
@media (min-width: 981px) {
  .nav, .hero-in, main.list, main.upload, .foot, .panel, .isheet { zoom: .8; }
  .tip { max-width: 240px; gap: 5px; padding: 8px 11px 9px; font-size: 12px; }
  .tip b { font-size: 12px; }
  /* the smallest type keeps a floor: nothing is drawn under 11px */
  .price .seller, .chip .n, .count, .sellers .dd, .a-num, .a-pq .d, .s-list .b, .sf-m, .sys-fn, .sys-steps li::before, .i-steps li::before { font-size: 14px; }
  .item small, .a-tag, .a-t, .s-note, .foot, .copy, .c-list a, .s-list .c, .a-cl { font-size: 15px; }
  html { scroll-padding-top: calc(var(--nav-h) * .8 + var(--sat) + 16px); }
  body { padding-bottom: 130px; }
  /* the name and Your shop sit on the same two edges as the column below them */
  .nav { padding-left: calc((100% - 1180px) / 2 + var(--side)); padding-right: calc((100% - 1180px) / 2 + var(--side)); }
}
@media (min-width: 1341px) {
  .nav { padding-left: calc((100% - 1180px) / 2); padding-right: calc((100% - 1180px) / 2); }
}
