/* deskslap.com/sell: what is this page's own. board.css gives the tokens, the nav, buttons and the
   calm states; maker.css gives the panel and every make-flow, share-options and end-screen piece. */

/* "Selling opens soon": the banner at the top while GET /v1/flags says selling is off (sell.js). */
.closed-banner { max-width: 760px; margin: 16px auto 0; padding: 10px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--secondary); font-size: 15px; line-height: 1.4; text-align: center; }
.closed-banner b { color: var(--ink); font-weight: 600; }
.closed-banner > p { margin: 0; }
.closed-banner .waitlist { margin-top: 12px; padding-bottom: 4px; }
.intro { text-align: center; padding-top: 56px; padding-bottom: 8px; }
.intro h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; }
.intro .lede { margin: 0 auto; }
.page-state { margin: 32px auto 72px; }
section.setup, section.maker, section.sales, section.how { padding-top: 0; }
.unsupported { max-width: 640px; margin: 32px auto 0; padding: 18px 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); text-align: center; }
.unsupported p { margin: 0; }
.fine.left { text-align: left; margin: 0 0 18px; }
.hint, .field-hint { font-size: 13px; line-height: 1.45; color: var(--secondary); margin: -6px 0 16px; }
.field-hint { margin: 6px 0 0; }

/* ── 1 to 3: the seller, as a list of tasks ─────────────────────────────────────────────────── */

.setup { max-width: 792px; margin: 36px auto 0; }
.tasks { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); overflow: hidden; position: relative; }
.tasks::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.task { padding: 22px 28px; }
.task + .task { border-top: 0.5px solid var(--hairline-strong); }
.task-head { display: flex; gap: 14px; align-items: flex-start; }
.task-what { min-width: 0; flex: 1; }
.task h2 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; margin: 3px 0 2px; }
.task h2:focus { outline: none; }
.task h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.task-sum { margin: 0; font-size: 15px; line-height: 1.4; color: var(--secondary); overflow-wrap: anywhere; }
.tn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600;
  font-family: ui-rounded, "SF Pro Rounded", var(--font); font-variant-numeric: tabular-nums; background: var(--fill-strong); color: var(--secondary); }
.tn .tick { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task[data-state="current"] .tn { background: var(--accent); color: var(--on-accent); }
.task[data-state="done"] .tn { background: var(--accent-soft); color: var(--accent); }
.task[data-state="done"] .tn .num { display: none; }
.task[data-state="done"] .tn .tick { display: block; }
.task[data-state="locked"] h2 { color: var(--tertiary); }
.task[data-state="locked"] .task-sum { color: var(--tertiary); }
.task-body { padding: 18px 0 0 44px; }
.task-body > .sub { margin-bottom: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.actions.start { justify-content: flex-start; }

/* Proving the website. */
.how-to { margin: 0 0 16px; padding: 0 0 0 20px; font-size: 15px; line-height: 1.45; color: var(--secondary); }
.how-to li + li { margin-top: 4px; }
.record { border-radius: 14px; background: var(--fill); padding: 4px 14px; margin: 0 0 6px; }
.rrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 0; }
.rrow + .rrow { border-top: 0.5px solid var(--hairline-strong); }
.rrow .rk { font-size: 13px; font-weight: 600; color: var(--secondary); }
.rrow code { font: 14px/1.35 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.rrow .rnote { font-size: 13px; color: var(--tertiary); }
.rrow .btn.sm { justify-self: end; }
.note { min-height: 0; }
.note:empty { display: none; }
.note.ok { color: var(--ink); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1 1 220px; }
.inline .btn { flex: none; min-height: 44px; }
.again { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.again .textbtn { padding: 6px 0; font-size: 14px; }
[data-way] .chips { margin-top: 10px; }
/* The emailed code leads; the address it goes to is shown publicly, so the page says so before sending. */
.email-way .chips { margin-top: 10px; }
.consent { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--secondary); }
.contact-line { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--secondary); overflow-wrap: anywhere; }
.contact-line b { color: var(--ink); font-weight: 500; user-select: all; -webkit-user-select: all; }
.contact-line .textbtn { font-size: 14px; padding: 2px 0 2px 6px; }
/* DNS, the advanced way: folded away under its own line. */
.advanced { margin: 18px 0 0; border-top: 0.5px solid var(--hairline-strong); padding-top: 12px; }
.advanced summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 15px; color: var(--accent); }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .2s var(--out); margin-right: 2px; }
.advanced[open] summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.advanced summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.advanced-body { padding: 12px 0 0; }
.advanced-body .fine.left { margin: 12px 0 0; }

/* Getting paid. */
.checks { list-style: none; margin: 0 0 14px; padding: 4px 14px; border-radius: 14px; background: var(--fill); }
.checks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; color: var(--secondary); }
.checks li + li { border-top: 0.5px solid var(--hairline-strong); }
.ck { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--field-line); display: grid; place-items: center; }
.checks li.on { color: var(--ink); }
.checks li.on .ck { background: var(--accent); box-shadow: none; }
.checks li.on .ck::after { content: ""; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }

/* The seller terms: the box on step 1, and the same box for a seller that still has to accept them. */
.terms-check { margin: 0 0 16px; }
.terms-due { display: grid; gap: 10px; justify-items: start; margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--tile-shadow); }
.terms-due > p:first-child { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.terms-due .problem { margin: 0; }

/* The person's review, under the tasks. */
.review { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--tile-shadow); }
.review p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--secondary); }
.review p b { color: var(--ink); font-weight: 600; }
.review .textbtn { font-size: 14px; padding: 4px 0; }
.review .rv-text { min-width: 0; }
.review .rv-fine { margin: 6px 0 0; font-size: 13px; color: var(--tertiary); }
.review .btn.sm { white-space: nowrap; }
/* Flagged by the automatic check: an exclamation in a soft ring, not an alarm. */
.review[data-review="flagged"] { align-items: start; }
.review[data-review="flagged"] .rv-icon { box-shadow: inset 0 0 0 1.5px var(--secondary); margin-top: 1px; }
.review[data-review="flagged"] .rv-icon::before { left: 10.25px; top: 5px; height: 7px; transform: none; background: var(--secondary); }
.review[data-review="flagged"] .rv-icon::after { left: 10.25px; top: 14px; height: 1.6px; transform: none; background: var(--secondary); }
.rv-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px var(--tertiary); }
.rv-icon::before, .rv-icon::after { content: ""; position: absolute; left: 10px; top: 5px; width: 1.5px; height: 6.5px; background: var(--tertiary); border-radius: 1px; transform-origin: 50% 100%; }
.rv-icon::after { transform: rotate(120deg); }
.review[data-review="approved"] .rv-icon { background: var(--accent); box-shadow: none; }
.review[data-review="approved"] .rv-icon::before { left: 8.5px; top: 5px; width: 5px; height: 9px; background: none; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); border-radius: 0; }
.review[data-review="approved"] .rv-icon::after { display: none; }
.review[data-review="rejected"] .rv-icon { box-shadow: inset 0 0 0 1.5px var(--problem); }
.review[data-review="rejected"] .rv-icon::before, .review[data-review="rejected"] .rv-icon::after { background: var(--problem); top: 7.5px; height: 8px; transform: rotate(45deg); transform-origin: 50% 50%; left: 10.25px; }
.review[data-review="rejected"] .rv-icon::after { transform: rotate(-45deg); }
.then { text-align: center; font-size: 15px; color: var(--tertiary); margin: 18px 0 0; }

/* ── 4: which sticker ───────────────────────────────────────────────────────────────────────── */

.choose-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.choose-grid button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px;
  border-radius: 16px; border: 0; background: var(--fill); cursor: pointer; font: inherit; font-size: 13px; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em;
}
.choose-grid button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.choose-grid button:disabled { cursor: default; }
.choose-grid button:disabled .stk { opacity: 0.45; filter: grayscale(0.6); }
.choose-grid .stk { --s: 76px; }
.choose-grid .t { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.choose-grid .m { display: block; max-width: 100%; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.choose-grid button:disabled .m { color: var(--tertiary); }
.choose-grid .new { justify-content: center; color: var(--accent); min-height: 150px; }
.choose-grid .plus { font-size: 34px; line-height: 1; font-weight: 300; }
.first { text-align: center; padding: 10px 0 6px; }
.first p { color: var(--secondary); margin: 0 auto 20px; max-width: 460px; }

/* ── 5: the edition ─────────────────────────────────────────────────────────────────────────── */

.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.money { display: flex; align-items: center; gap: 4px; background: var(--field); border: 1px solid var(--field-line); border-radius: 14px; padding: 2px 16px; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.money span { font-size: 30px; font-weight: 600; color: var(--secondary); }
/* The edition's currency, "$" or "€", in place of the sign while the server sells euros (../prices.js currencyPicker). */
.money select.cur { flex: none; font: inherit; font-size: 30px; font-weight: 600; color: var(--secondary); background: none; border: 0; padding: 0 2px 0 0; cursor: pointer; }
.money select.cur:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.money input { border: 0 !important; box-shadow: none !important; background: none !important; padding: 6px 0 !important; font-size: 30px !important; font-weight: 600; letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums; width: 100%; min-width: 0; -moz-appearance: textfield; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money .unit { flex: none; font-size: 14px; font-weight: 400; color: var(--secondary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { font: inherit; font-size: 14px; letter-spacing: -0.01em; border: 0; border-radius: 980px; padding: 7px 14px; cursor: pointer; background: var(--fill); color: var(--ink); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--fill-strong); }
.chip[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.earn { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--fill); }
.earn p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--secondary); }
.earn p b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.earn .earn-sub { font-size: 13px; margin-top: 2px; }
.earn .earn-sub:empty { display: none; }
.earn .earn-rise { margin-bottom: 2px; }
.earn .earn-rise:empty { display: none; }
.rise-check { margin: 14px 0 0; }
.rise-field { margin: 12px 0 0; }
.blockers { margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.blockers h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.blockers ul { list-style: none; margin: 0; padding: 0; }
.blockers li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--secondary); }
.blockers li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); transform: translateY(-2px); }
.blockers li span { flex: 1 1 200px; min-width: 0; }
.blockers .textbtn { font-size: 14px; padding: 0; }

/* ── 6: on sale ─────────────────────────────────────────────────────────────────────────────── */

.onsale { margin: 0 0 22px; }
.onsale h2 { margin: 0 0 4px; }
.onsale p { margin: 0; color: var(--secondary); font-size: 15px; }
.done-sticker .done-name { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; overflow-wrap: anywhere; }
.buyer { margin: 18px auto 0; max-width: 300px; padding: 14px 16px 12px; border-radius: 16px; background: var(--fill); }
.buyer-k { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--tertiary); }
.buy-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 980px; background: var(--accent); color: var(--on-accent);
  font-size: 17px; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; cursor: default; user-select: none; -webkit-user-select: none; }
.buyer-sub { margin: 8px 0 0; font-size: 13px; color: var(--secondary); overflow-wrap: anywhere; }

/* ── 7: sales ───────────────────────────────────────────────────────────────────────────────── */

.sales { max-width: 792px; margin: 0 auto 64px; }
.sales-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 12px; }
.sales h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 2px; }
.sales-sum { margin: 0; font-size: 14px; color: var(--secondary); }
.sales-head .textbtn { font-size: 14px; flex: none; }
.sale-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 18px; box-shadow: var(--tile-shadow); overflow: hidden; }
.sale-list:empty { display: none; }
.sale-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 84px; gap: 4px 14px; align-items: center; padding: 12px 18px; }
.sale-list li + li { border-top: 0.5px solid var(--hairline); }
.sale-list b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sale-list .m { display: block; font-size: 13px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale-list .amt b { font-weight: 500; }
.sale-list .st { font-size: 14px; color: var(--ink); }
.sale-list .st .m { white-space: normal; }
.sale-list li.refunded .st, .sale-list li.refunded .amt b { color: var(--tertiary); }
.sale-list li.refunded .amt b { text-decoration: line-through; }
.sale-list .act { justify-self: end; }
.sale-list .act .textbtn { font-size: 14px; padding: 4px 0; }
.sales-empty { margin: 0; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--tile-shadow); color: var(--secondary); text-align: center; font-size: 15px; }

/* The refund confirmation. */
.confirm { border: 0; padding: 0; border-radius: 18px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 0.5px var(--hairline-strong), 0 30px 80px rgba(0, 0, 0, 0.3); }
.confirm::backdrop { background: rgba(0, 0, 0, 0.32); }
.confirm form { padding: 22px 22px 18px; }
.confirm h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 6px; }
.confirm p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--secondary); }
.confirm .refund-money:empty { display: none; }
.confirm .actions { margin-top: 16px; }
.confirm .actions .btn { min-width: 110px; }

/* What happens next, in three lines. */
.how { max-width: 792px; margin: 56px auto 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 760px) {
  .intro { padding-top: 36px; }
  .setup { margin-top: 28px; }
  .tasks { border-radius: 18px; }
  .task { padding: 18px; }
  .task-body { padding-left: 0; }
  .two, .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .sale-list li { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .sale-list .amt { text-align: right; }
  .sale-list .st { grid-column: 1; }
  .sale-list .act { grid-column: 2; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .review { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
  .review .textbtn, .review .btn.sm { grid-column: 2; justify-self: start; }
  .review .btn.sm { margin-top: 8px; }
}
@media (max-width: 420px) {
  .choose-grid { grid-template-columns: 1fr 1fr; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto; }
  .rrow .rk { grid-column: 1 / -1; }
  .rrow .rnote { grid-column: 1 / -1; margin-top: -4px; }
  .money span, .money input, .money select.cur { font-size: 26px !important; }
  .money .unit { font-size: 13px !important; }
  .inline .btn { flex: 1 1 auto; }
}

/* The panel's steps carry on from the seller's three: 4, 5, 6. */
#panel .steps { counter-reset: step 3; }

/* Support stickers: who the seller is (an organisation or a cause), and a cause's kind and registration
   number (sell.js, while GET /v1/flags lists "support"). */
.kind-seg { margin: 4px 0 14px; }
.kind-seg legend { padding: 0; margin: 0 0 6px; width: 100%; }
.cause-fields { margin: 0 0 6px; }
.select { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--field-line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.reg-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
@media (max-width: 520px) { .reg-row { grid-template-columns: minmax(0, 1fr); } }

/* The business sign-in in step 1, and its way out to the DNS form (assets/business/signin.js). */
.dns-way { margin: 16px 0 0; padding-top: 12px; border-top: 0.5px solid var(--hairline-strong); }
.dns-way .textbtn { padding: 6px 0; font-size: 14px; text-align: left; }
#seller-form .actions { justify-content: space-between; }
#seller-form .actions .textbtn { padding: 6px 0; font-size: 15px; }
