/* "Sell this": a standalone page (own HTML/JS/CSS) on the studio's tokens.
   The kit is shown the way a print shop shows proofs: laid on a green cutting
   mat, with crop marks. The rest of the page stays quiet around it. */

/* The Sell page scrolls like a page: the studio's stylesheet locks html and
   body for its own app layout. */
html.sell-page { height: auto; overflow: visible; }
html.sell-page body { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }

.sell-body {
  --s-ink: #15171c;
  --s-muted: #5c616b;
  --s-faint: #6f747d;
  --s-counter: #f1f2ee;
  --s-line: rgba(21, 23, 28, 0.1);
  --s-line-strong: rgba(21, 23, 28, 0.16);
  --s-field: #f8f9f6;
  --s-field-line: rgba(21, 23, 28, 0.15);
  --s-mat: #1f5240;
  --s-mat-tint: #e6eee9;
  --s-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  min-height: 100vh;
  background: var(--s-counter);
  color: var(--s-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sell-loading > * { visibility: hidden; }

/* Buttons: the studio's, a little rounder and without the heavy shadow.
   :where() keeps these at the studio's own weight so later rules win. */
:where(.sell-body) .primary-button,
:where(.sell-body) .secondary-button {
  min-height: 42px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
:where(.sell-body) .primary-button { box-shadow: none; }
:where(.sell-body) .primary-button:hover { background: #000; }
:where(.sell-body) .secondary-button { border-color: var(--s-line-strong); }
:where(.sell-body) .secondary-button:hover { border-color: rgba(21, 23, 28, 0.32); }
:where(.sell-body) :is(button, a):focus-visible { outline: 2px solid var(--s-mat); outline-offset: 2px; }

/* --- Gates ------------------------------------------------------------- */
.sell-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sell-gate[hidden] { display: none; }
.sell-gate-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.sell-gate-card h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.05; }
.sell-gate-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Stopped by the owner: the same invite-only look as the studio. */
.sell-gate--waitlist {
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 178, 94, 0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(84, 98, 160, 0.20), transparent 46%),
    linear-gradient(160deg, #0b0d12 0%, #11141c 55%, #090a0e 100%);
}
.sell-gate--waitlist .sell-gate-card {
  width: min(600px, 100%);
  gap: 16px;
  border-color: rgba(244, 241, 234, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f4f1ea;
}
.sell-gate--waitlist .sell-gate-card h1 { font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.1rem, 5.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; color: #fbf8f1; }
.sell-gate--waitlist .sell-gate-card p { color: rgba(244, 241, 234, 0.86); }
.sell-gate--waitlist .sell-gate-card .sell-waitlist-kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 241, 234, 0.5); }
.sell-waitlist-chip { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; border: 1px solid rgba(214, 178, 94, 0.45); border-radius: 999px; background: rgba(214, 178, 94, 0.08); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sell-gate--waitlist .sell-gate-card .sell-waitlist-chip { color: #e6c987; }
.sell-waitlist-chip i { width: 8px; height: 8px; border-radius: 50%; background: #e6c987; animation: sell-waitlist-pulse 2.4s ease-out infinite; }
@keyframes sell-waitlist-pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 201, 135, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(230, 201, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 201, 135, 0); } }
@media (prefers-reduced-motion: reduce) { .sell-waitlist-chip i { animation: none; } }
.sell-waitlist-spot { padding: 14px 16px; border: 1px solid rgba(244, 241, 234, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.sell-waitlist-spot b { color: #fbf8f1; overflow-wrap: anywhere; }
.sell-gate--waitlist .sell-gate-card .sell-waitlist-note { color: rgba(244, 241, 234, 0.56); font-size: 0.92rem; }


/* --- The mat ------------------------------------------------------------- */
/* A self-healing cutting mat: a 24px grid, a heavier line every 120px and a
   ruler along the top edge. */
.sell-mat {
  position: relative;
  color: #fff;
  background-color: var(--s-mat);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.sell-mat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 10px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 24px) left top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 6px) left top / 100% 5px no-repeat;
}
.sell-mat :is(button, a):focus-visible { outline-color: #fff; }

/* --- Shell and header ---------------------------------------------------- */
.sell-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) 72px;
}
.sell-shell[hidden] { display: none; }
.sell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(26px, 4.5vw, 52px);
}
.sell-header .auth-brand { gap: 12px; }
.sell-header .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.sell-header .auth-brand p {
  max-width: min(44vw, 320px);
  margin: 0;
  overflow: hidden;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.sell-header h1 { margin: 1px 0 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.sell-header-actions { display: flex; flex: none; gap: 8px; }
.sell-header-actions .secondary-button { min-height: 36px; padding: 0 13px; background: transparent; font-size: 14px; font-weight: 500; }
.sell-header-actions .secondary-button:hover { background: #fff; }

.sell-view[hidden] { display: none; }
.sell-kicker {
  margin: 0 0 14px;
  color: var(--s-mat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sell-muted { color: var(--s-muted); }

/* --- Brief: the pitch and a sample kit ----------------------------------- */
.sell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sell-intro { min-width: 0; }
.sell-intro h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(34px, 3.9vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.sell-intro h2 span { color: var(--s-faint); }
.sell-lede { max-width: 44ch; margin: 0; color: var(--s-muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; }

/* The sample is drawn in em, so one font-size scales the whole table. */
.sell-demo { margin: 0; overflow: hidden; border-radius: 22px; container-type: inline-size; }
.sell-demo-stage { position: relative; height: 36em; font-size: 8px; font-size: calc(100cqw / 60); line-height: 1.3; }
.sell-mat-label {
  position: absolute;
  left: 20px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font: 400 10.5px/1 var(--s-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-piece {
  position: absolute;
  margin: 0;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 0.12em 0.25em rgba(0, 0, 0, 0.22), 0 1.4em 2.8em -1em rgba(0, 0, 0, 0.6);
  animation: sell-drop 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes sell-drop {
  from { opacity: 0; transform: translateY(-1.6em) rotate(calc(var(--r, 0deg) * 2)); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
.demo-eyebrow { margin: 0; font: 700 0.62em/1.2 Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #9a6a2f; }
.demo-foot { margin: auto 0 0; font: 500 0.58em/1.3 Inter, sans-serif; letter-spacing: 0.04em; color: #9a6a2f; }

.demo-menu {
  --r: -4deg;
  --d: 0.05s;
  left: 3em;
  top: 3.4em;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 17.5em;
  height: 24.75em;
  padding: 2.1em 1.9em 1.6em;
  background: #fff8ee;
  color: #3a1720;
}
.demo-title { margin: 0.3em 0 0.8em; font: 700 2.3em/1 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; color: #5b1a28; }
.demo-list { display: grid; margin: 0; padding: 0; list-style: none; }
.demo-list li { display: flex; align-items: baseline; gap: 0.35em; padding: 0.42em 0; border-bottom: 0.09em solid rgba(91, 26, 40, 0.14); font: 500 0.82em/1.2 Inter, sans-serif; }
.demo-list i { flex: 1; min-width: 1em; border-bottom: 0.14em dotted rgba(91, 26, 40, 0.38); }
.demo-list b { font-weight: 700; color: #5b1a28; }

.demo-flyer {
  --r: 3.5deg;
  --d: 0.15s;
  left: 17em;
  top: 10.2em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 14em;
  height: 19.8em;
  padding: 1.7em 1.5em 1.4em;
  background: #5b1a28;
  color: #fff1dc;
}
.demo-flyer .demo-eyebrow { color: #e8b04b; }
.demo-headline { margin: 0.35em 0 0; font: 700 2.55em/0.95 Georgia, serif; letter-spacing: -0.015em; }
.demo-burst {
  display: grid;
  place-content: center;
  width: 5.6em;
  height: 5.6em;
  margin: auto 0 0.9em auto;
  border-radius: 50%;
  background: #e8b04b;
  color: #5b1a28;
  text-align: center;
  transform: rotate(-10deg);
}
.demo-burst b { display: block; font: 700 2.3em/1 Georgia, serif; }
.demo-burst small { display: block; font: 700 0.5em/1.2 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-flyer .demo-foot { margin: 0; color: rgba(255, 241, 220, 0.75); }

.demo-post {
  --r: -3deg;
  --d: 0.25s;
  left: 30.6em;
  top: 2.6em;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 13.5em;
  height: 13.5em;
  padding: 1.2em;
  overflow: hidden;
  background: #e8b04b;
  color: #5b1a28;
}
.demo-plate {
  position: absolute;
  top: -1.4em;
  right: -1.6em;
  width: 9.5em;
  height: 9.5em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 42%, #6e8b3d 0 0.28em, transparent 0.3em),
    radial-gradient(circle at 57% 55%, #6e8b3d 0 0.24em, transparent 0.26em),
    radial-gradient(circle at 46% 63%, #6e8b3d 0 0.22em, transparent 0.24em),
    radial-gradient(circle at 62% 38%, #6e8b3d 0 0.2em, transparent 0.22em),
    radial-gradient(circle, #e2702f 0 47%, #f6a04d 48% 50%, #fff4e2 51% 63%, #d9a13f 64% 66%, transparent 67%);
}
.demo-post-title { position: relative; margin: 0; font: 700 1.65em/1 Georgia, serif; }
.demo-handle { position: relative; margin: 0.45em 0 0; font: 600 0.62em/1 Inter, sans-serif; letter-spacing: 0.06em; }
.demo-post--b {
  --r: 4deg;
  --d: 0.3s;
  left: 33.4em;
  top: 18.4em;
  z-index: 2;
  width: 11.2em;
  height: 11.2em;
  justify-content: space-between;
  background: #6e8b3d;
  color: #fff8ee;
}
.demo-post--b .demo-eyebrow { color: #f3d99b; font-size: 0.55em; }
.demo-post--b .demo-post-title { font-size: 1.45em; }

.demo-phone {
  --r: 4deg;
  --d: 0.4s;
  left: 45.6em;
  top: 5.4em;
  z-index: 3;
  width: 12.4em;
  height: 25.4em;
  padding: 0.5em;
  border-radius: 1.9em;
  background: #101215;
}
.demo-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 1.45em; background: #fff8ee; }
.demo-site-hero { padding: 2.4em 1.1em 1.1em; background: #5b1a28; color: #fff1dc; }
.demo-site-hero p { margin: 0; font: 700 1.5em/1 Georgia, serif; }
.demo-site-hero span { display: inline-block; margin-top: 0.7em; padding: 0.45em 1em; border-radius: 999px; background: #e8b04b; color: #5b1a28; font: 700 0.62em/1 Inter, sans-serif; }
.demo-site-list { margin: 0.4em 0 0; padding: 0 1.1em; list-style: none; }
.demo-site-list li { display: flex; justify-content: space-between; gap: 0.5em; padding: 0.65em 0; border-bottom: 0.09em solid rgba(91, 26, 40, 0.12); color: #3a1720; font: 500 0.64em/1.2 Inter, sans-serif; }
.demo-site-list b { font-weight: 700; }
.demo-chat { max-width: 78%; margin: 0.7em 0.9em 0; padding: 0.6em 0.8em; border-radius: 1em; font: 500 0.58em/1.35 Inter, sans-serif; }
.demo-chat--q { align-self: flex-start; border-bottom-left-radius: 0.25em; background: #efe4d6; color: #3a1720; }
.demo-chat--a { align-self: flex-end; border-bottom-right-radius: 0.25em; background: #5b1a28; color: #fff1dc; }

/* --- Brief: the kits, the two ways in, the brief ---------------------------- */
.sell-kits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; margin: 0 0 26px; }
.sell-kits.is-empty { display: none; }
.sell-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(560px, 100%); margin: 0 0 14px; padding: 5px; border: 1px solid var(--s-line); border-radius: 16px; background: #fff; }
.sell-mode-tab { display: grid; gap: 1px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--s-ink); font: inherit; text-align: start; cursor: pointer; }
.sell-mode-tab b { font-size: 15px; font-weight: 700; }
.sell-mode-tab small { color: var(--s-muted); font-size: 12.5px; }
.sell-mode-tab:hover { background: var(--s-field); }
.sell-mode-tab[aria-selected="true"] { background: var(--s-mat); color: #fff; }
.sell-mode-tab[aria-selected="true"] small { color: rgba(255, 255, 255, 0.76); }
.sell-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.sell-main { min-width: 0; }
.sell-side { position: sticky; top: 20px; display: grid; gap: 16px; min-width: 0; }

/* The builder: a chat in a card, its log scrolling between the head and the
   composer. */
.sell-chat { display: flex; flex-direction: column; height: min(680px, calc(100vh - 120px)); min-height: 460px; overflow: hidden; border: 1px solid var(--s-line); border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 24px 60px -32px rgba(21, 23, 28, 0.28); }
.sell-chat[hidden] { display: none; }
.sell-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--s-line); }
.sell-chat-mark { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--s-mat); color: #fff; font-weight: 800; }
.sell-chat-head div { display: grid; flex: 1; min-width: 0; }
.sell-chat-head b { font-size: 15px; }
.sell-chat-head small { color: var(--s-muted); font-size: 12.5px; line-height: 1.35; }
.sell-chat-reset, .sell-link { padding: 0; border: 0; background: none; color: var(--s-muted); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sell-chat-reset:hover, .sell-link:hover { color: var(--s-ink); }
.sell-chat-log { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(var(--s-field), #fff 160px); }
.sell-msg { display: grid; gap: 10px; max-width: min(86%, 560px); }
.sell-msg p { margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sell-msg--bot { align-self: flex-start; }
.sell-msg--bot p { border: 1px solid var(--s-line); border-bottom-left-radius: 6px; background: #fff; }
.sell-msg--me { align-self: flex-end; }
.sell-msg--me p { border-bottom-right-radius: 6px; background: var(--s-ink); color: #fff; }
.sell-msg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sell-msg-actions .primary-button, .sell-msg-actions .secondary-button { min-height: 38px; padding: 0 14px; font-size: 14px; }
.sell-chip { min-height: 38px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--s-mat), transparent 60%); border-radius: 999px; background: var(--s-mat-tint); color: #17392d; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sell-chip:hover { background: #d8e5dd; }
.sell-msg--typing { display: flex; gap: 5px; width: fit-content; padding: 15px 16px; border: 1px solid var(--s-line); border-radius: 16px; border-bottom-left-radius: 6px; background: #fff; }
.sell-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--s-faint); animation: sell-typing 1.2s ease-in-out infinite; }
.sell-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.sell-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sell-typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sell-chat-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fbeeec; color: #7a241c; font-size: 14px; }
.sell-chat-error p { flex: 1; margin: 0; }
.sell-chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--s-line); background: #fff; }
.sell-chat-compose textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 12px 14px; border: 1px solid var(--s-field-line); border-radius: 14px; background: var(--s-field); color: var(--s-ink); font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
.sell-chat-compose textarea:focus { outline: none; border-color: var(--s-mat); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-mat), transparent 85%); }
.sell-chat-attach, .sell-chat-send { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; cursor: pointer; }
.sell-chat-attach { border: 1px solid var(--s-field-line); background: #fff; color: var(--s-ink); }
.sell-chat-send { border: 0; background: var(--s-ink); color: #fff; }
.sell-chat-send:disabled { cursor: progress; opacity: 0.5; }
.sell-chat-attach svg, .sell-chat-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* What the brief has so far, and the button that makes the kit. */
.sell-summary { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--s-line); border-radius: 20px; background: #fff; }
.sell-summary h3 { margin: 0; color: var(--s-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sell-summary-list { display: grid; margin: 0; padding: 0; list-style: none; }
.sell-summary-row button { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--s-line); background: none; color: var(--s-ink); font: inherit; text-align: start; cursor: pointer; }
.sell-summary-row:last-child button { border-bottom: 0; }
.sell-summary-row i { grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 5px; border: 1.5px solid #b6bac2; border-radius: 50%; }
.sell-summary-row.is-done i { border-color: var(--s-mat); background: var(--s-mat); }
.sell-summary-row b { font-size: 14px; font-weight: 600; }
.sell-summary-row small { overflow: hidden; color: var(--s-faint); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.sell-summary-row.is-done small { color: var(--s-ink); }
.sell-summary-row button:hover b { text-decoration: underline; }
.sell-summary .sell-error { text-align: start; }
.sell-summary .sell-submit-note { margin: 0; font-size: 13px; text-align: center; }

/* The logo, the products with their photos, the other photos. */
.sell-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sell-logo-preview { display: grid; flex: none; place-items: center; width: 140px; height: 88px; overflow: hidden; padding: 8px; border: 1.5px dashed rgba(21, 23, 28, 0.2); border-radius: 14px; background: var(--s-field); color: var(--s-faint); font-size: 13px; }
.sell-logo-preview.has-logo { border-style: solid; border-color: var(--s-line); background: #fff; }
.sell-logo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sell-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sell-products { display: grid; gap: 10px; }
.sell-product { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(90px, 140px) 36px; gap: 6px 8px; align-items: center; padding: 10px; border: 1px solid var(--s-field-line); border-radius: 14px; background: var(--s-field); }
.sell-product-photo { display: grid; grid-row: 1 / span 2; place-items: center; align-self: start; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 1.5px dashed rgba(21, 23, 28, 0.24); border-radius: 12px; background: #fff; color: var(--s-muted); cursor: pointer; }
.sell-product-photo:hover { border-color: var(--s-mat); color: var(--s-mat); }
.sell-product-photo.has-photo { border-style: solid; border-color: var(--s-line); }
.sell-product-photo.is-busy { opacity: 0.45; }
.sell-product-photo img { width: 100%; height: 100%; object-fit: cover; }
.sell-product-photo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sell-product input { min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid var(--s-field-line); border-radius: 10px; background: #fff; color: var(--s-ink); font: inherit; font-size: 16px; }
.sell-product input:focus { outline: none; border-color: var(--s-mat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-mat), transparent 84%); }
.sell-product input::placeholder { color: #a3a7ae; }
.sell-product-name { grid-column: 2; grid-row: 1; }
.sell-product-price { grid-column: 3; grid-row: 1; }
.sell-product-remove { grid-column: 4; grid-row: 1; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--s-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.sell-product-remove:hover { background: #fff; color: var(--accent-2); }
.sell-product-desc { grid-column: 2 / 4; grid-row: 2; }
.sell-products-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.sell-paste { display: grid; gap: 8px; margin-top: 10px; }
.sell-paste-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sell-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sell-photos:empty { display: none; }
.sell-photo { position: relative; display: grid; gap: 6px; margin: 0; }
.sell-photo img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--s-field); object-fit: cover; }
.sell-photo input { min-width: 0; min-height: 40px; padding: 7px 10px; border: 1px solid var(--s-field-line); border-radius: 10px; background: #fff; color: var(--s-ink); font: inherit; font-size: 16px; }
.sell-photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(21, 23, 28, 0.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.sell-photos-add { justify-self: start; margin-top: 10px; }
.sell-wants .sell-switch { margin-top: 4px; padding: 14px; border: 1px solid var(--s-field-line); border-radius: 14px; background: var(--s-field); }
.sell-wants .sell-switch input { accent-color: var(--s-mat); }
/* What the builder just wrote into the form glows for a moment. */
.is-filled { animation: sell-filled 1.6s ease-out; }
@keyframes sell-filled { from { border-color: var(--s-mat); background-color: var(--s-mat-tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-mat), transparent 70%); } }
.sell-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--s-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 24px 60px -32px rgba(21, 23, 28, 0.28);
}
.sell-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  min-width: 0;
  margin: 0;
  padding: 22px 0 24px;
  border-top: 1px solid var(--s-line);
}
.sell-group:first-child { padding-top: 0; border-top: 0; }
.sell-group-title {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: var(--s-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sell-group-title small { color: var(--s-muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.sell-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.sell-field--wide { grid-column: 1 / -1; }
.sell-label { display: flex; align-items: baseline; gap: 8px; color: var(--s-ink); font-size: 14px; font-weight: 600; }
.sell-label em { color: var(--accent-2); font-size: 12px; font-style: normal; font-weight: 600; }
.sell-label em.sell-optional { color: var(--s-faint); font-weight: 500; }
.sell-help { margin: 0; color: var(--s-muted); font-size: 13px; line-height: 1.45; }
.sell-field input[type="text"], .sell-field textarea, .sell-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--s-field-line);
  border-radius: 12px;
  background-color: var(--s-field);
  color: var(--s-ink);
  font: inherit;
  /* 16px keeps phones from zooming in when a field is tapped. */
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.sell-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235c616b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.sell-field textarea { min-height: 96px; resize: vertical; }
.sell-field #sellItems { min-height: 136px; }
.sell-field input::placeholder, .sell-field textarea::placeholder { color: #9a9ea6; }
.sell-field input:hover, .sell-field textarea:hover, .sell-field select:hover { border-color: rgba(21, 23, 28, 0.3); }
.sell-field input:focus, .sell-field textarea:focus, .sell-field select:focus {
  outline: none;
  border-color: var(--s-mat);
  background-color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-mat), transparent 84%);
}
.sell-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* What to make: cards that tick on and off, each with the piece's real
   shape; the real checkbox covers each card. */
.sell-wants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sell-want { position: relative; display: block; min-width: 0; }
.sell-want input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sell-want-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 13px;
  height: 100%;
  padding: 14px 40px 14px 14px;
  border: 1.5px solid var(--s-field-line);
  border-radius: 14px;
  background: var(--s-field);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sell-want-box b { color: var(--s-ink); font-size: 15px; font-weight: 600; }
.sell-want-box small { grid-column: 2; color: var(--s-muted); font-size: 13px; line-height: 1.35; }
.sell-want-box::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(21, 23, 28, 0.28);
  border-radius: 7px;
  background: #fff;
}
.sell-want-shape { grid-row: 1 / span 2; position: relative; display: block; border: 1.5px solid currentColor; border-radius: 2px; background-color: #fff; color: #a3a7ae; transition: color 0.15s ease, background-color 0.15s ease; }
.sell-want-shape--menu {
  width: 22px;
  height: 31px;
  background-image:
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 9px 2px, 12px 1.5px, 12px 1.5px, 8px 1.5px;
  background-position: 5px 5px, 3.5px 12px, 3.5px 17px, 3.5px 22px;
  background-repeat: no-repeat;
}
.sell-want-shape--flyer {
  width: 20px;
  height: 28px;
  background-image: linear-gradient(currentColor, currentColor), radial-gradient(circle, currentColor 0 4px, transparent 4.5px);
  background-size: 11px 8px, 10px 10px;
  background-position: 3px 3px, 6px 14px;
  background-repeat: no-repeat;
}
.sell-want-shape--website {
  width: 18px;
  height: 31px;
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 9px 7px, 9px 1.5px, 6px 1.5px;
  background-position: 3px 4px, 3px 15px, 3px 19px;
  background-repeat: no-repeat;
}
.sell-want-shape--posts { width: 19px; height: 19px; margin: 8px 8px 0 0; box-shadow: 4px -4px 0 -1.5px #fff, 4px -4px 0 0 currentColor, 8px -8px 0 -1.5px #fff, 8px -8px 0 0 currentColor; }
.sell-want:hover .sell-want-box { border-color: rgba(21, 23, 28, 0.3); }
.sell-want input:checked + .sell-want-box { border-color: var(--s-ink); background: #fff; box-shadow: 0 8px 22px -12px rgba(21, 23, 28, 0.3); }
.sell-want input:checked + .sell-want-box .sell-want-shape { color: var(--s-mat); background-color: var(--s-mat-tint); }
.sell-want input:checked + .sell-want-box .sell-want-shape--posts { box-shadow: 4px -4px 0 -1.5px var(--s-mat-tint), 4px -4px 0 0 currentColor, 8px -8px 0 -1.5px var(--s-mat-tint), 8px -8px 0 0 currentColor; }
.sell-want input:checked + .sell-want-box::after { border-color: var(--s-ink); background: var(--s-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4 5.8 10 11 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sell-want input:focus-visible + .sell-want-box { outline: 2px solid var(--s-mat); outline-offset: 2px; }

.sell-submit { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--s-line); }
.sell-make { width: 100%; min-height: 56px; border-radius: 14px; font-size: 16px; }
.sell-submit-note { margin: 0; font-size: 13px; text-align: center; }
.sell-error { min-height: 1.2em; margin: 0; color: var(--accent-2); font-size: 14px; text-align: center; }

.sell-kits h3 { margin: 0; color: var(--s-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
/* Kits sit in a row you swipe or scroll. */
.sell-kit-list { display: grid; grid-auto-columns: minmax(220px, 260px); grid-auto-flow: column; gap: 10px; padding: 2px 2px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sell-kit-card { scroll-snap-align: start; }
.sell-kits-empty { margin: 0; padding: 22px 18px; border: 1.5px dashed rgba(21, 23, 28, 0.18); border-radius: 16px; color: var(--s-muted); font-size: 14px; line-height: 1.5; }
.sell-kit-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px 16px;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: #fff;
  color: var(--s-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sell-kit-card:hover { border-color: rgba(21, 23, 28, 0.28); box-shadow: 0 12px 30px -18px rgba(21, 23, 28, 0.4); }
.sell-kit-card strong { font-size: 15px; font-weight: 600; }
.sell-kit-card small { color: var(--s-muted); font-size: 12.5px; line-height: 1.4; }
.sell-swatches { display: flex; height: 8px; margin-bottom: 6px; overflow: hidden; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08); }
.sell-swatches i { flex: 1; }
.sell-swatches:empty { background: var(--s-field); }

/* --- Working: the four pieces drawn on the mat ---------------------------- */
.sell-working { display: grid; place-items: center; min-height: 56vh; }
.sell-working-card { display: grid; justify-items: center; gap: 10px; width: min(520px, 100%); text-align: center; }
.sell-working-card h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.sell-working-card p { margin: 0; }
.sell-working-mat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  width: 100%;
  height: 210px;
  margin-bottom: 14px;
  border-radius: 20px;
}
.sell-ghost { position: relative; display: block; overflow: hidden; border: 1.5px dashed rgba(255, 255, 255, 0.55); border-radius: 3px; }
.sell-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateY(-100%);
  animation: sell-print 2.4s ease-in-out infinite;
}
.sell-ghost--menu { width: 76px; height: 107px; }
.sell-ghost--flyer { width: 60px; height: 85px; }
.sell-ghost--flyer::after { animation-delay: 0.3s; }
.sell-ghost--post { width: 64px; height: 64px; }
.sell-ghost--post::after { animation-delay: 0.6s; }
.sell-ghost--phone { width: 50px; height: 100px; border-radius: 10px; }
.sell-ghost--phone::after { animation-delay: 0.9s; }
@keyframes sell-print { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.sell-time { font-family: var(--s-mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

/* --- Result -------------------------------------------------------------- */
.sell-result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 20px; }
.sell-result-title { min-width: 0; }
.sell-result-head h2 { margin: 0; font-family: var(--display); font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -0.028em; overflow-wrap: anywhere; }
.sell-result-head .sell-muted { margin: 8px 0 0; font-size: 16px; }
.sell-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-note { display: flex; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--s-mat-tint); color: #17392d; font-size: 14.5px; line-height: 1.5; }
.sell-note::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.55em; border-radius: 50%; background: var(--s-mat); }
.sell-result-head + .sell-error:empty { display: none; }

.sell-change { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 22px; padding: 16px 18px 18px; border: 1px solid var(--s-line); border-radius: 18px; background: #fff; }
.sell-change label { display: grid; gap: 3px; }
.sell-change label span { font-size: 15px; font-weight: 700; }
.sell-change label small { color: var(--s-muted); font-size: 13px; line-height: 1.45; }
.sell-change-row { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--s-field-line); border-radius: 14px; background: var(--s-field); transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.sell-change-row:focus-within { border-color: var(--s-mat); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-mat), transparent 85%); }
.sell-change-row input { flex: 1; min-width: 0; padding: 9px 10px; border: 0; outline: none; background: transparent; color: var(--s-ink); font: inherit; font-size: 16px; }
.sell-change-row input::placeholder { color: #9a9ea6; }
.sell-change-row .secondary-button { flex: none; min-height: 40px; border-color: var(--s-ink); background: var(--s-ink); color: #fff; }
.sell-change-row .secondary-button:hover { background: #000; }

.sell-share { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 18px; }
.sell-share input { min-width: 0; padding: 10px 12px; border: 1px solid var(--s-field-line); border-radius: 10px; background: #fff; color: var(--s-ink); font: inherit; font-size: 14px; }

/* The pieces: a segmented strip whose selected tab is the mat's own green. */
.sell-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 4px; overflow-x: auto; border: 1px solid var(--s-line); border-radius: 14px; background: #fff; scrollbar-width: none; }
.sell-tabs::-webkit-scrollbar { display: none; }
.sell-tab { flex: none; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--s-muted); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.sell-tab:hover { background: var(--s-field); color: var(--s-ink); }
.sell-tab[aria-selected="true"] { background: var(--s-mat); color: #fff; }

.sell-piece[hidden] { display: none; }
.sell-piece { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; padding: clamp(18px, 2.6vw, 28px); border-radius: 22px; }
.sell-mat.sell-piece { padding-top: clamp(26px, 3vw, 34px); }
.sell-piece-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.sell-piece-head h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 16px; font-weight: 700; }
.sell-piece-head small { color: var(--s-muted); font-size: 13px; font-weight: 500; }
.sell-mat .sell-piece-head small { color: rgba(255, 255, 255, 0.72); }
.sell-spec { padding: 3px 7px 2px; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 6px; color: rgba(255, 255, 255, 0.78); font: 400 10.5px/1.2 var(--s-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sell-mat .sell-piece-head .secondary-button { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); color: #fff; }
.sell-mat .sell-piece-head .secondary-button:hover { background: rgba(255, 255, 255, 0.14); }
.sell-mat .sell-piece-head .primary-button { background: #fff; color: var(--s-ink); }
.sell-mat .sell-piece-head .primary-button:hover { background: var(--s-counter); }
.sell-piece-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* A proof: the piece at its real proportions, with crop marks at the corners. */
.sell-proof { --crop: 22px; position: relative; width: 100%; max-width: calc(var(--shown, 640px) + 2 * var(--crop)); margin: 0 auto; padding: var(--crop); }
.sell-proof::before {
  --m: rgba(255, 255, 255, 0.72);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--m), var(--m)) left 0 top var(--crop) / 13px 1px,
    linear-gradient(var(--m), var(--m)) left var(--crop) top 0 / 1px 13px,
    linear-gradient(var(--m), var(--m)) right 0 top var(--crop) / 13px 1px,
    linear-gradient(var(--m), var(--m)) right var(--crop) top 0 / 1px 13px,
    linear-gradient(var(--m), var(--m)) left 0 bottom var(--crop) / 13px 1px,
    linear-gradient(var(--m), var(--m)) left var(--crop) bottom 0 / 1px 13px,
    linear-gradient(var(--m), var(--m)) right 0 bottom var(--crop) / 13px 1px,
    linear-gradient(var(--m), var(--m)) right var(--crop) bottom 0 / 1px 13px;
  background-repeat: no-repeat;
}
.sell-frame-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 24px 48px -18px rgba(0, 0, 0, 0.6); }
/* max-width: none beats the studio's global iframe { max-width: 100% }, which
   would clamp the frame before it is scaled and cut the piece in half. */
.sell-frame-wrap iframe { position: absolute; top: 0; left: 0; max-width: none; border: 0; background: #fff; transform-origin: top left; }
.sell-frame-wrap[data-dir="rtl"] iframe { left: auto; right: 0; transform-origin: top right; }
.sell-proof--phone { --crop: 0px; max-width: calc(var(--shown, 390px) + 20px); padding: 2px 0 6px; }
.sell-proof--phone::before { content: none; }
.sell-frame-wrap--phone { box-sizing: content-box; width: calc(100% - 20px); border: 10px solid #0e1013; border-radius: 36px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.65); }

.sell-site { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--s-ink); }
.sell-site-status { margin: 0; color: var(--s-muted); font-size: 14px; line-height: 1.55; }
.sell-site-status b { color: var(--s-ink); }
.sell-site .sell-site-status b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #a3a8b0; vertical-align: 1px; }
.sell-site.is-live .sell-site-status b::before { background: #1f9d5c; box-shadow: 0 0 0 3px rgba(31, 157, 92, 0.18); }
.sell-site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-share--site { margin: 0; }
/* The shop's address: the name sits right against .lyllic.com. */
.sell-address { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--s-line); }
.sell-address-label { display: grid; gap: 2px; }
.sell-address-label b { font-size: 14px; }
.sell-address-label small { color: var(--s-muted); font-size: 13px; }
.sell-address-row { display: flex; align-items: center; min-width: 0; padding: 4px 4px 4px 12px; border: 1px solid var(--s-field-line); border-radius: 12px; background: var(--s-field); }
.sell-address-row:focus-within { border-color: var(--s-mat); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-mat), transparent 85%); }
.sell-address-row input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--s-ink); font: inherit; font-size: 16px; font-weight: 600; text-align: end; }
.sell-address-domain { padding: 0 10px 0 1px; color: var(--s-muted); font-size: 16px; white-space: nowrap; }
.sell-address-row .secondary-button { flex: none; min-height: 38px; }
.sell-address-status { margin: 0; color: var(--s-muted); font-size: 13px; line-height: 1.45; }
.sell-address-status b { color: var(--s-ink); }
.sell-address-status.is-ok { color: #1f7a4d; }
.sell-address-status.is-bad { color: var(--accent-2); }

.sell-caption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--s-ink); }
.sell-caption p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.sell-caption .sell-tags { color: var(--s-mat); font-size: 14px; font-weight: 600; }
.sell-caption-actions { display: flex; gap: 8px; }

/* Orders are an inbox, not a print: they sit on paper, not on the mat. */
.sell-piece--orders { border: 1px solid var(--s-line); background: #fff; }

@media (min-width: 960px) {
  .sell-piece--post { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; }
  .sell-piece--post .sell-piece-head { grid-column: 1 / -1; }
  .sell-piece--post .sell-caption { margin-top: 22px; }
  .sell-piece--website { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); grid-template-areas: "head head" "proof site"; align-items: start; }
  .sell-piece--website .sell-piece-head { grid-area: head; }
  .sell-piece--website .sell-site { grid-area: site; }
  .sell-piece--website .sell-proof { grid-area: proof; }
}

/* Orders from the website */
.sell-badge { display: inline-block; min-width: 20px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.sell-tab[aria-selected="true"] .sell-badge { background: #fff; color: var(--ink); }
.sell-kit-orders { justify-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2), #fff 86%); color: var(--accent-2); font-size: 12px; font-weight: 700; }
.sell-orders-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.sell-shop-form { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-soft); }
.sell-shop-form h4 { margin: 0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sell-switch { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.sell-switch input, .sell-ways input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.sell-switch b { display: block; font-size: 14px; }
.sell-switch small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sell-ways { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; border: 0; font-size: 14px; }
.sell-ways legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.sell-ways label { display: inline-flex; align-items: center; gap: 8px; }
.sell-shop-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; resize: vertical; }
.sell-shop-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sell-orders { display: grid; gap: 12px; }
.sell-order { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sell-order--new { border-color: color-mix(in srgb, var(--accent-2), #fff 40%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2), transparent 88%); }
.sell-order--done, .sell-order--cancelled { opacity: 0.72; }
.sell-order header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sell-order header b { font-size: 16px; letter-spacing: 0.04em; }
.sell-order header time { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.sell-pill { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel-soft); color: var(--ink); }
.sell-pill--new { background: var(--accent-2); color: #fff; }
.sell-pill--confirmed { background: var(--accent-soft); color: var(--accent); }
.sell-pill--ready { background: color-mix(in srgb, var(--ok), #fff 82%); color: var(--ok); }
.sell-order-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.sell-order-items li { display: flex; justify-content: space-between; gap: 12px; }
.sell-order-items li span:last-child { color: var(--muted); white-space: nowrap; }
.sell-order-total { display: flex; justify-content: space-between; margin: 2px 0 0; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.sell-order-who, .sell-order-how, .sell-order-note, .sell-order-src { margin: 0; font-size: 14px; }
.sell-order-who a { color: var(--accent); font-weight: 700; }
.sell-order-how { color: var(--ink); }
.sell-order-note { padding: 8px 10px; border-radius: 10px; background: var(--page); white-space: pre-wrap; }
.sell-order-src { color: var(--muted); font-size: 12px; }
.sell-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* The orders panel in the page's own colours. */
.sell-shop-form { border-color: var(--s-line); background: var(--s-field); }
.sell-switch input, .sell-ways input { accent-color: var(--s-mat); }
.sell-order-who a { color: var(--s-mat); }
.sell-pill--confirmed { background: var(--s-mat-tint); color: var(--s-mat); }

.sell-body .toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 24px;
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--s-ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.45);
  /* The studio's toast waits for a .visible class this page never sets. */
  opacity: 1;
  transform: translateX(-50%);
  animation: sell-toast-in 0.2s ease-out both;
}
@keyframes sell-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 960px) {
  .sell-hero { grid-template-columns: minmax(0, 1fr); }
  .sell-columns { grid-template-columns: minmax(0, 1fr); }
  .sell-side { position: static; }
  .sell-kit-list { grid-auto-columns: minmax(220px, 76%); scrollbar-width: none; }
  .sell-kit-list::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .sell-shell { padding: 14px 16px 56px; }
  .sell-header { margin-bottom: 26px; }
  .sell-header .brand-mark { width: 34px; height: 34px; }
  .sell-header h1 { font-size: 18px; }
  .sell-header .auth-brand p { max-width: 38vw; }
  .sell-header-actions { gap: 6px; }
  .sell-header-actions .secondary-button { min-height: 34px; padding: 0 11px; font-size: 13px; }
  .sell-hero { gap: 24px; margin-bottom: 30px; }
  .sell-intro h2 { margin-bottom: 14px; font-size: 32px; }
  .sell-lede { font-size: 16px; }
  .sell-demo { border-radius: 18px; }
  .sell-mat-label { left: 14px; bottom: 10px; font-size: 9.5px; }
  .sell-form { padding: 20px 16px; border-radius: 18px; }
  .sell-group > .sell-field:not(.sell-field--pair) { grid-column: 1 / -1; }
  .sell-wants { grid-template-columns: minmax(0, 1fr); }
  .sell-mode { width: 100%; }
  .sell-mode-tab { padding: 9px 12px; }
  .sell-chat { height: min(620px, calc(100svh - 80px)); min-height: 420px; border-radius: 18px; }
  .sell-chat-head { padding: 12px 14px; }
  .sell-chat-log { padding: 14px; }
  .sell-chat-compose { padding: 10px; }
  .sell-msg { max-width: 92%; }
  .sell-product { grid-template-columns: 52px minmax(0, 1fr) 36px; }
  .sell-product-photo { grid-row: 1 / span 3; width: 52px; height: 52px; }
  .sell-product-price, .sell-product-desc { grid-column: 2 / 4; }
  .sell-product-price { grid-row: 2; }
  .sell-product-desc { grid-row: 3; }
  .sell-product-remove { grid-column: 3; }
  .sell-result-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .sell-result-actions #sellWebsiteBtn { grid-column: 1 / -1; }
  .sell-result-actions button { min-height: 46px; }
  .sell-share { grid-template-columns: 1fr 1fr; }
  .sell-share input { grid-column: 1 / -1; }
  .sell-change { padding: 14px; }
  .sell-piece { padding: 16px; border-radius: 18px; }
  .sell-mat.sell-piece { padding-top: 24px; }
  .sell-proof { --crop: 14px; }
  .sell-proof::before { background-size: 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px; }
  .sell-working-mat { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-piece, .sell-body .toast, .is-filled, .sell-msg--typing span { animation: none; }
  .sell-ghost::after { animation: none; transform: none; opacity: 0.4; }
}

/* --- Signing in on the Sell page ------------------------------------------ */
.sell-signin { text-align: start; }
.sell-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; }
.sell-google svg { width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #fff; }
.sell-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 !important; color: var(--s-faint) !important; font-size: 13px; }
.sell-or::before, .sell-or::after { content: ""; flex: 1; height: 1px; background: var(--s-line-strong); }
.sell-email-form { display: grid; gap: 10px; }
.sell-email-form .sell-field { display: grid; gap: 6px; }
.sell-email-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--s-field-line); border-radius: 10px; background: var(--s-field); font: inherit; font-size: 16px; color: var(--s-ink); }
.sell-email-form input:focus { outline: 2px solid var(--s-mat); outline-offset: 1px; background: #fff; }
.sell-email-switch { font-size: 13px; }
.sell-link { padding: 0; border: 0; background: none; color: var(--s-mat); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sell-signin-note { font-size: 13px; }
.sell-signin-note a { color: inherit; }

/* --- Design and colours in the brief (Sell without AI) --------------------- */
.sell-dzs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.sell-dz { display: grid; gap: 7px; padding: 6px 6px 9px; border: 1.5px solid var(--s-line-strong); border-radius: 14px; background: #fff; color: var(--s-ink); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sell-dz:hover { border-color: rgba(21, 23, 28, 0.32); }
.sell-dz[aria-checked="true"] { border-color: var(--s-mat); box-shadow: 0 0 0 3px rgba(31, 82, 64, 0.16); }
.sell-dz-art { position: relative; display: grid; align-content: end; gap: 4px; height: 82px; padding: 9px; overflow: hidden; border-radius: 9px; background: #f4efe2; color: #1d3b2a; }
.sell-dz-art b { font-size: 21px; line-height: 1; font-weight: 700; }
.sell-dz-art i { display: block; height: 5px; width: 72%; border-radius: 3px; background: currentColor; opacity: .22; }
.sell-dz-art i + i { width: 46%; }
.sell-dz-name { padding: 0 3px; font-size: 13px; font-weight: 600; }
.sell-dz--auto .sell-dz-art { background: repeating-linear-gradient(135deg, #eef0eb 0 10px, #e4e8e1 10px 20px); color: var(--s-mat); }
.sell-dz--souk .sell-dz-art { background: #fbf6ea; color: #1d3b2a; }
.sell-dz--noir .sell-dz-art { background: #111214; color: #f3f0ea; }
.sell-dz--noir .sell-dz-art b { font-size: 30px; font-weight: 400; letter-spacing: .02em; color: #e7a320; }
.sell-dz--pastel .sell-dz-art { background: #fde8ef; color: #7a2e5a; border-radius: 18px; }
.sell-dz--pastel .sell-dz-art b { font-weight: 800; letter-spacing: -.02em; }
.sell-dz--boutique .sell-dz-art { background: #faf8f3; color: #3a3a3a; justify-items: center; text-align: center; outline: 1px solid rgba(0,0,0,.12); outline-offset: -5px; }
.sell-dz--boutique .sell-dz-art b { font-style: italic; font-weight: 600; font-size: 22px; }
.sell-dz--link .sell-dz-art { background: linear-gradient(170deg, #dbe7fb, #f7faff); color: #0a1f44; justify-items: center; }
.sell-dz--link .sell-dz-art i { width: 86%; height: 9px; opacity: .9; background: #fff; box-shadow: 0 0 0 1px rgba(10,31,68,.14); }
.sell-dz--atelier .sell-dz-art { background: linear-gradient(90deg, #c9b79a 0 50%, #8d9a7a 50% 75%, #d9cbb5 75%); color: #fff; }
.sell-dz--atelier .sell-dz-art b { font-weight: 400; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.sell-pzs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sell-pz { display: grid; gap: 5px; padding: 7px; border: 1.5px solid var(--s-line-strong); border-radius: 11px; background: #fff; color: var(--s-ink); font: inherit; text-align: start; cursor: pointer; }
.sell-pz[aria-checked="true"] { border-color: var(--s-mat); box-shadow: 0 0 0 3px rgba(31, 82, 64, 0.16); }
.sell-pz > span { display: flex; height: 16px; overflow: hidden; border-radius: 5px; }
.sell-pz > span i { flex: 1; }
.sell-pz small { font-size: 11.5px; font-weight: 600; color: var(--s-muted); }
.sell-pz-auto { align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #eef0eb 0 6px, #e4e8e1 6px 12px); color: var(--s-mat); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* --- Result: edited marks, delete, confirm ------------------------------------ */
.sell-edited { color: #ffd98a; }
.sell-danger { color: #b42318; }
:where(.sell-body) .secondary-button.sell-danger:hover { border-color: rgba(180, 35, 24, 0.5); background: #fff5f4; }
.sell-confirm { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(15, 16, 20, 0.55); }
.sell-confirm-card { display: grid; gap: 12px; width: min(460px, 100%); padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
.sell-confirm-card h2 { margin: 0; font: 600 21px/1.2 "Space Grotesk", Inter, sans-serif; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sell-confirm-card p { margin: 0; color: var(--s-muted); line-height: 1.5; }
.sell-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
:where(.sell-body) .primary-button.sell-danger-fill { background: #b42318; border-color: #b42318; }
:where(.sell-body) .primary-button.sell-danger-fill:hover { background: #8f1b12; }
@media (max-width: 640px) {
  .sell-piece-actions { width: 100%; }
  .sell-piece-actions > * { flex: 1 1 auto; }
}
