/* deskslap.com/dashboard: what is this page's own. board.css gives the tokens, the nav, buttons and the
   calm states; maker.css gives the workbench panel and every make-flow, share-options and end-screen
   piece. Figures are tabular throughout, so columns of numbers line up. */

:root {
  /* The chart's one series: the spectrum's blue (BRAND.md keeps the accent for things you press). */
  --chart-bar: #3D7BFF; --chart-bar-on: #1F5FE0; --chart-res: rgba(61, 123, 255, 0.32);
  --warn: #FF9500;
}
@media (prefers-color-scheme: dark) {
  :root { --chart-bar: #4C86FF; --chart-bar-on: #8AB0FF; --chart-res: rgba(76, 134, 255, 0.38); --warn: #FF9F0A; }
}

html { scroll-padding-top: 116px; }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; border-radius: 10px; background: var(--surface); color: var(--accent); box-shadow: var(--tile-shadow); }
.skip:focus { top: 8px; }
.fine.left { text-align: left; margin: 0 0 18px; }
.dim { color: var(--tertiary); }
.note:empty { display: none; }
.note.bad, .hint-line.bad { color: var(--problem); }
.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; }
.page-state { margin: 40px auto 72px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1 1 200px; }
.inline .btn { flex: none; }
.again { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
.again .textbtn { padding: 6px 0; font-size: 14px; }
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--tile-shadow); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill { font-variant-numeric: tabular-nums; }

/* The selling gate (assets/selling.js, assets/flags.js): "Sell" in the header and the footer shows only
   once GET /v1/flags says selling is open; "Selling opens soon" only while it is closed, and before
   the answer it keeps its place, invisible (without scripts it appears after 3 s). */
html:not([data-selling="open"]) [data-sell-open] { display: none !important; }
html[data-selling="open"] [data-sell-closed] { display: none !important; }
html:not([data-selling]) [data-sell-closed] { animation: sell-wait 0s 3s both; }
@keyframes sell-wait { from { visibility: hidden; } to { visibility: visible; } }
.localnav nav .sell-soon { padding: 3px 10px; border-radius: 980px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--secondary); white-space: nowrap; }
footer nav .sell-soon { color: var(--tertiary); padding: 0 10px; border-left: 0.5px solid var(--hairline-strong); }
@media (max-width: 760px) { .localnav nav .sell-soon { display: none; } }

/* The mock banner, for local checks only. */
.mockbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; margin-bottom: 0; font-size: 13px; color: var(--secondary); }
.mockbar.wrap { padding-top: 8px; padding-bottom: 8px; border-radius: 12px; background: var(--fill); max-width: 980px; }
.mockbar .modes { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.mockbar [aria-current] { color: var(--ink); font-weight: 600; }
.mockbar .textbtn { font-size: 13px; padding: 0; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 120px; padding-bottom: 120px; color: var(--secondary); font-size: 15px; }
.loading .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }

/* ── Signing in ─────────────────────────────────────────────────────────────────────────────── */

section.signin { padding-top: 56px; padding-bottom: 72px; }
.signin-card { position: relative; max-width: 520px; margin: 0 auto; padding: 36px 32px 28px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.signin-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.signin-card .icon { display: block; width: 64px; height: 64px; margin: 0 0 16px; }
.signin-card h1 { font-size: clamp(26px, 5vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.signin-card h1:focus { outline: none; }
.signin-sub { margin: 0 0 22px; color: var(--secondary); font-size: 15px; line-height: 1.45; }
.signin-card .inline .btn { min-height: 44px; }
.sent { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.signin-card .problem { margin-top: 14px; }
.signin-foot { margin: 22px 0 0; padding-top: 16px; border-top: 0.5px solid var(--hairline-strong); font-size: 14px; color: var(--secondary); }

/* ── Signed in: the head and the section nav ────────────────────────────────────────────────── */

.dash-head { padding-top: 44px; padding-bottom: 18px; }
.dash-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; overflow-wrap: anywhere; }
.dash-head h1:focus { outline: none; }
.dash-sub { margin: 0; color: var(--secondary); font-size: 15px; overflow-wrap: anywhere; }

.secnav { position: sticky; top: 52px; z-index: 90; background: var(--nav); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0.5px 0 var(--hairline-strong); }
.secnav ul { list-style: none; margin: 0; padding: 7px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.secnav ul::-webkit-scrollbar { display: none; }
.secnav li { flex: none; }
.secnav a { display: block; padding: 6px 13px; border-radius: 980px; font-size: 14px; letter-spacing: -0.01em; color: var(--secondary); white-space: nowrap; }
.secnav a:hover { color: var(--ink); text-decoration: none; background: var(--fill); }
.secnav a[aria-current="true"] { color: var(--ink); background: var(--fill-strong); font-weight: 500; }
.secnav a:focus-visible { outline-offset: -2px; }

section.dsec { padding-top: 48px; }
section.dsec:last-of-type { padding-bottom: 24px; }
.dsec h2 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 4px; }
.dsec h2:focus { outline: none; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 16px; }
.sec-head > div { min-width: 0; flex: 1 1 260px; }
.sec-head .btn, .sec-head .textbtn { flex: none; }
.sec-head .textbtn { padding-left: 0; padding-right: 0; }
.sec-sub { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sub-title { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; margin: 32px 0 4px; }
.sub-title + .sec-sub { margin-bottom: 12px; }
.empty { padding: 26px 24px; text-align: center; }
.empty h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.empty p { margin: 0 auto; max-width: 460px; color: var(--secondary); font-size: 15px; }
.empty .btn, .empty .textbtn { margin-top: 14px; }
.empty-line { margin: 0; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--tile-shadow); color: var(--secondary); text-align: center; font-size: 15px; }

/* ── Overview ───────────────────────────────────────────────────────────────────────────────── */

.totals { margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: 18px; box-shadow: var(--tile-shadow); overflow: hidden; }
.total { padding: 16px 20px 18px; min-width: 0; }
.total + .total { box-shadow: -0.5px 0 0 var(--hairline-strong); }
.total dt { font-size: 13px; font-weight: 600; color: var(--secondary); letter-spacing: -0.01em; }
.total dd { margin: 0; }
.total .fig { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.total .fig-sub { font-size: 13px; color: var(--tertiary); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "chart att"; gap: 16px; align-items: start; }
.attention { grid-area: att; padding: 18px 20px 16px; }
.chart-card { grid-area: chart; margin: 0; padding: 18px 20px 14px; min-width: 0; }
.attention h3, .chart-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.att-list { list-style: none; margin: 10px 0 0; padding: 0; }
.att-list li { display: flex; gap: 10px; padding: 10px 0; }
.att-list li + li { border-top: 0.5px solid var(--hairline); }
.att-ic { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--warn); }
.att-list li.att-wait .att-ic { background: none; box-shadow: inset 0 0 0 1.5px var(--tertiary); }
.att-body { min-width: 0; }
.att-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.att-body .textbtn { font-size: 14px; padding: 4px 0 0; display: inline-block; }
.att-err { color: var(--problem) !important; margin-top: 4px !important; }
/* The Seller Terms box, for a seller that has not accepted the ones in force. */
.att-body .check.att-terms { margin: 8px 0 0; }
.att-none { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: 14px; color: var(--secondary); }
.ok-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); position: relative; flex: none; }
.ok-dot::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 8px; }
.chart-sum { margin: 0; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.chart { position: relative; border-radius: 8px; }
.chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; letter-spacing: 0; fill: var(--tertiary); font-variant-numeric: tabular-nums; }
.c-line { stroke: var(--hairline); stroke-width: 1; }
.c-base { stroke: var(--hairline-strong); stroke-width: 1; }
.c-bar { fill: var(--chart-bar); transition: fill 0.12s, opacity 0.12s; }
.chart.has-active .c-bar { opacity: 0.45; }
.chart.has-active .c-bar.on { opacity: 1; fill: var(--chart-bar-on); }
.c-hit { fill: transparent; cursor: default; }
.chart-tip { position: absolute; pointer-events: none; padding: 5px 9px; border-radius: 8px; background: var(--surface); color: var(--ink); white-space: nowrap;
  box-shadow: 0 0 0 0.5px var(--hairline-strong), 0 6px 18px -6px var(--shadow-strong); font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.chart-tip b { display: block; font-size: 13px; font-weight: 600; }
.chart-tip span { color: var(--secondary); }
.chart-empty { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); margin: 0; font-size: 14px; color: var(--secondary); text-align: center; width: 80%; }
.chart-readout { margin: 4px 0 0; min-height: 0; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.chart-readout:empty { display: none; }
.chart-table { margin-top: 8px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--accent); width: max-content; border-radius: 6px; }
.table-scroll { max-height: 240px; overflow: auto; margin-top: 8px; border-radius: 10px; background: var(--fill); }
.chart-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 5px 12px; }
.chart-table th { position: sticky; top: 0; background: var(--fill); color: var(--secondary); font-weight: 600; }
.chart-table td + td, .chart-table th + th { text-align: right; }
.chart-table tr + tr td { border-top: 0.5px solid var(--hairline); }

/* ── Stickers ───────────────────────────────────────────────────────────────────────────────── */

.bench { margin: 0 auto 20px; max-width: 760px; scroll-margin-top: 116px; }
.bench-close { position: absolute; top: 14px; right: 18px; z-index: 2; font-size: 15px; }
.bench .step { padding-top: 26px; }
.bench [data-panel="make"] h2, .bench [data-panel="wait"] h2 { padding-right: 60px; }
.bench .after { margin-top: 24px; }

.scards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.scard { padding: 20px 20px 16px; min-width: 0; }
.sc-head { display: flex; gap: 16px; align-items: center; }
.sc-head .stk { --s: 84px; --r: -4deg; flex: none; }
.sc-what { min-width: 0; }
.sc-what h3 { margin: 0 0 2px; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.sc-what h3:focus { outline: none; }
.sc-dom { margin: 0; font-size: 14px; color: var(--secondary); overflow-wrap: anywhere; }
.sc-made { margin: 2px 0 0; font-size: 12px; color: var(--tertiary); }
.sc-made:empty { display: none; }
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; padding: 10px 0; border-top: 0.5px solid var(--hairline); border-bottom: 0.5px solid var(--hairline); }
.sc-stats div { min-width: 0; }
.sc-stats div + div { padding-left: 12px; box-shadow: -0.5px 0 0 var(--hairline); }
.sc-stats dt { font-size: 12px; color: var(--secondary); }
.sc-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.sc-label { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--tertiary); }
.sc-links { list-style: none; margin: 0; padding: 0; }
.sc-links > li { padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sc-links > li + li { border-top: 0.5px solid var(--hairline); }
.lk-main { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.lk-main code { font: 13px/1.35 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; color: var(--ink); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-meta { flex-basis: 100%; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.sc-links li.off code, .sc-links li.off .lk-meta { color: var(--tertiary); }
.sc-links li.off code { text-decoration: line-through; text-decoration-color: var(--hairline-strong); }
.lk-acts { display: flex; gap: 2px 14px; flex: none; }
.lk-acts .textbtn { font-size: 14px; padding: 4px 0; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-acts .btn[aria-expanded="true"] { background: var(--accent-soft); }
.sc-form { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--fill); }
.sc-form .inline input { flex: 1 1 180px; }
.sc-form .btn.sm { min-height: 40px; }
.hint-line { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--secondary); }
.sc-note { margin: 10px 0 0; }

/* A confirmation built into the page, under the thing it is about. */
.inline-confirm { flex-basis: 100%; grid-column: 1 / -1; margin: 6px 0 2px; padding: 12px 14px; border-radius: 12px; background: var(--fill); }
.inline-confirm p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.inline-confirm .ic-sum { color: var(--secondary); margin-top: 2px; font-variant-numeric: tabular-nums; }
.inline-confirm .problem { margin: 8px 0 0; }
.ic-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ic-acts .btn { min-height: 34px; }

/* The price on the new-link form. */
.price-opt { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--fill); }
.price-row { margin-top: 12px; }
.money { display: flex; align-items: center; gap: 4px; max-width: 220px; background: var(--field); border: 1px solid var(--field-line); border-radius: 12px; padding: 2px 14px; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.money span { font-size: 24px; 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: 24px; 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: 24px !important; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.earn-line { margin: 8px 0 0; font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.earn-line b { color: var(--ink); font-weight: 600; }

/* ── Editions and sales ─────────────────────────────────────────────────────────────────────── */

.payouts { font-size: 15px; }
.payouts-note { margin: -8px 0 12px; }
.editions { list-style: none; margin: 0; padding: 4px 20px; }
.editions li { display: flex; gap: 16px; align-items: center; padding: 14px 0; }
.editions li + li { border-top: 0.5px solid var(--hairline); }
.editions .stk { --s: 52px; flex: none; }
.editions li.off .stk { opacity: 0.5; filter: grayscale(0.6); }
.ed-main { flex: 1; min-width: 0; }
.ed-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.ed-title b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ed-title .pill { margin: 0; }
.ed-sub { margin: 2px 0 8px; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.meter { display: flex; height: 6px; border-radius: 3px; background: var(--fill-strong); overflow: hidden; gap: 0; }
.meter .m-sold { background: var(--chart-bar); }
.meter .m-res { background: var(--chart-res); }
.editions li.off .meter span { background: var(--tertiary); opacity: 0.5; }
.ed-nums { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 6px 0 0; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.ed-nums b { color: var(--ink); font-weight: 600; }

.sale-rows, .bid-rows, .device-rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.sale-rows > li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 20px; }
.sale-rows > li + li, .bid-rows > li + li, .device-rows > li + li { border-top: 0.5px solid var(--hairline); }
.sale-rows b, .bid-rows b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sale-rows .m, .bid-rows .m, .device-rows .m { display: block; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sale-rows .amt b { font-weight: 500; }
.sale-rows .st > span:first-child, .bid-rows .st > span:first-child { font-size: 14px; }
.sale-rows li.refunded .amt b { text-decoration: line-through; color: var(--tertiary); }
.sale-rows li.refunded .st > span:first-child, .sale-rows li.expired .st > span:first-child, .sale-rows li.expired b { color: var(--tertiary); }
.sale-rows .act { justify-self: end; min-width: 52px; text-align: right; }
.sale-rows .act .textbtn { font-size: 14px; padding: 4px 0; }
.more-line { margin: 8px 0 0; text-align: center; }
.more-line .textbtn { font-size: 15px; }

/* ── This week's board ──────────────────────────────────────────────────────────────────────── */

.board-rows { list-style: none; margin: 0; padding: 4px 20px; }
.board-rows li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.board-rows li + li { border-top: 0.5px solid var(--hairline); }
.rank { flex: none; width: 44px; font-family: ui-rounded, "SF Pro Rounded", var(--font); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--secondary); font-variant-numeric: tabular-nums; }
.board-rows li.top .rank { color: var(--ink); }
.board-rows .stk, .board-rows .ph { --s: 52px; flex: none; }
.bd-main { flex: 1; min-width: 0; }
.bd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.bd-title b { font-size: 16px; font-weight: 600; }
.bd-title .pill { margin: 0; }
.bd-sub { margin: 2px 0 0; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.bd-note { margin: 2px 0 0; font-size: 12px; color: var(--tertiary); }
.board-rows .btn { flex: none; }
.others { margin: 16px 0 0; }
.others ul { list-style: none; padding: 0; margin: 0; }
.chip { display: inline-block; font-size: 14px; letter-spacing: -0.01em; border-radius: 980px; padding: 7px 14px; background: var(--surface); box-shadow: var(--tile-shadow); color: var(--accent); }
.chip:hover { text-decoration: none; background: var(--fill); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bid-rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 20px; }
.bid-rows .st { text-align: right; }
.bid-rows li.pending .st > span:first-child, .bid-rows li.expired .st > span:first-child { color: var(--secondary); }

/* ── Profile ────────────────────────────────────────────────────────────────────────────────── */

.prof { padding: 4px 20px; }
.prof-list { margin: 0; }
.prof-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; padding: 13px 0; align-items: baseline; }
.prof-list > div + div { border-top: 0.5px solid var(--hairline); }
.prof-list dt { font-size: 14px; font-weight: 600; color: var(--secondary); }
.prof-list dd { margin: 0; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.contact-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.contact-line .textbtn { font-size: 14px; padding: 2px 0; }
.contact-box { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--fill); }
.contact-box .btn.sm { min-height: 40px; }
.contact-box .problem { margin: 10px 0 0; }

.device-rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 20px; }
.dv-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; color: var(--secondary); }
.dv-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dv-main { flex: 1 1 200px; min-width: 0; }
.dv-main p { margin: 0; }
.dv-main p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dv-main b { font-size: 15px; font-weight: 600; }
.dv-main .pill { margin: 0; }
.device-rows .act .textbtn { font-size: 14px; padding: 4px 0; }
#profile + .note, [data-devices-note] { margin-top: 10px; }

/* ── Narrower ───────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .scards { grid-template-columns: minmax(0, 1fr); }
  .ov-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "att" "chart"; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 108px; }
  .dash-head { padding-top: 32px; }
  section.dsec { padding-top: 40px; }
  .dsec h2 { font-size: 24px; }
  .totals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .total:nth-child(3) { box-shadow: 0 -0.5px 0 var(--hairline-strong); }
  .total:nth-child(4) { box-shadow: -0.5px 0 0 var(--hairline-strong), 0 -0.5px 0 var(--hairline-strong); }
  .total .fig { font-size: 24px; }
  .sale-rows > li { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .sale-rows .amt { text-align: right; }
  .sale-rows .act { grid-column: 2; }
  .sale-rows .st { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .sale-rows .st .m::before { content: "· "; }
  .editions, .board-rows, .prof { padding-left: 16px; padding-right: 16px; }
  .bid-rows > li, .device-rows > li { padding-left: 16px; padding-right: 16px; }
  .prof-list > div { grid-template-columns: minmax(0, 1fr); }
  .signin-card { padding: 28px 20px 22px; border-radius: 18px; }
  .bench-close { top: 12px; right: 14px; }
}
@media (max-width: 420px) {
  .scard { padding: 16px 16px 14px; }
  .sc-head .stk { --s: 64px; }
  .sc-stats dd { font-size: 17px; }
  .total { padding: 14px 14px 16px; }
  .total .fig { font-size: 22px; }
  .board-rows li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 12px; }
  .rank { width: auto; min-width: 30px; font-size: 19px; }
  .board-rows .stk, .board-rows .ph { --s: 44px; }
  .board-rows .btn { grid-column: 3; justify-self: start; }
  .inline .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .loading .spin { animation: none; }
  .c-bar { transition: none; }
}
.sc-form .btn.alt, .contact-box .btn.alt { background: var(--surface); }
.sc-form .btn.alt:hover, .contact-box .btn.alt:hover { background: var(--fill-strong); }

/* Nearby (nearby.js): a card per place, its counts in a row, and the form that adds one. */
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.near-card { padding: 18px 20px; }
.near-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.near-head h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.near-state { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 980px; background: var(--fill); color: var(--secondary); }
.near-state.s-live { background: rgba(52, 199, 89, 0.16); color: #1B7F3B; }
.near-state.s-pending { background: rgba(255, 159, 10, 0.16); color: #A05A00; }
.near-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 12px 0 0; }
.near-stats div { background: var(--fill); border-radius: 12px; padding: 8px 10px; }
.near-stats dt { font-size: 12px; color: var(--secondary); }
.near-stats dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.near-perk { margin: 8px 0 0; font-weight: 600; }
.near-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.near-acts .textbtn { font-size: 14px; padding: 4px 0; }
.near-acts .danger { color: #D70015; }
.near-form { padding: 18px 20px; margin-top: 12px; display: grid; gap: 10px; }
.near-form h3 { margin: 0; font-size: 19px; font-weight: 600; }
.near-field { display: grid; gap: 4px; min-width: 0; }
.near-field input, .near-field select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); min-width: 0; }
.near-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.near-redeem { margin-top: 12px; max-width: 420px; }
.near-redeem .near-acts { margin-top: 4px; }
@media (max-width: 520px) { .near-row { grid-template-columns: 1fr; } }

/* News (news.js): the rules, the totals, the composer with its two previews, and the notes. */
.news-rules { margin: 0 0 16px; max-width: 760px; font-size: 15px; line-height: 1.5; color: var(--secondary); }
.news-totals { margin: 0 0 16px; }
.news-totals .totals { margin-bottom: 4px; }
.news-closed { padding: 16px 20px; margin: 0 0 16px; }
.news-closed p { margin: 0; font-size: 15px; }
.news-form { padding: 20px; margin: 0 0 8px; }
.news-form h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }
.news-fields .field { margin: 0 0 14px; }
.news-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.news-count { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.news-count.over { color: var(--problem); font-weight: 600; }
.news-fields textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.news-fields input[type="url"], .news-fields input[type="datetime-local"] { width: 100%; box-sizing: border-box; }
.news-fields .check { margin: 0 0 8px; }
.news-form .field-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--secondary); }
.news-form .field-error { margin: 6px 0 0; font-size: 13px; color: var(--problem); }
.news-actions { justify-content: flex-end; flex-wrap: wrap; }
.news-form .problem { margin: 8px 0 0; }

.news-preview { display: grid; gap: 14px; min-width: 0; }
.news-preview figure, .np-screen, .np-stage { min-width: 0; max-width: 100%; box-sizing: border-box; }
.news-preview figure { margin: 0; }
.news-preview figcaption { margin: 6px 0 0; font-size: 12px; color: var(--tertiary); text-align: center; }
/* A phone's lock screen notification. */
.np-screen { padding: 14px 10px; border-radius: 20px; background: linear-gradient(160deg, #3a5bd9, #9b4fd6 55%, #e8618c); }
.np-notif { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 14px; background: rgba(245, 245, 247, 0.86); color: #1d1d1f; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.np-app { flex: none; width: 20px; height: 20px; border-radius: 5px; margin-top: 1px; }
.np-text { flex: 1; min-width: 0; }
.np-top { display: flex; justify-content: space-between; gap: 6px; margin: 0; font-size: 13px; }
.np-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-top span { flex: none; color: #6e6e73; font-size: 12px; }
.np-notif .np-body { margin: 1px 0 0; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.np-art { flex: none; width: 38px; height: 38px; object-fit: contain; }
/* A Mac desktop: the sticker with its dot, and the card beside it. */
.np-stage { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: linear-gradient(200deg, #c9d7e8, #8fa6c6); }
.np-sticker { position: relative; flex: none; width: 74px; height: 74px; transform: rotate(-3deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.np-sticker img { width: 74px; height: 74px; object-fit: contain; }
.np-dot { position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0, 0, 0, 0.35); }
.np-card { flex: 1; min-width: 0; padding: 10px 11px; border-radius: 11px; background: rgba(250, 250, 252, 0.94); color: #1d1d1f; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.12); font-size: 12px; line-height: 1.35; }
.np-card p { margin: 0; }
.np-name { display: flex; gap: 4px; align-items: center; }
.np-name b { font-size: 12.5px; font-weight: 600; }
.np-seal { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #8e8e93; color: #fff; font-size: 8px; font-weight: 700; }
.np-card .np-body { margin-top: 4px; overflow-wrap: anywhere; }
.np-link { margin-top: 3px !important; color: #0066cc; font-weight: 500; }
.np-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px !important; font-size: 10.5px; color: #6e6e73; }
.np-meta span + span { color: #0066cc; }
.np-stop { margin-top: 6px !important; padding-top: 6px; border-top: 0.5px solid rgba(0, 0, 0, 0.12); color: #0066cc; font-size: 11px; }

.news-list-wrap .sub-title { margin-top: 28px; }
.news-notes { list-style: none; margin: 8px 0 0; padding: 4px 20px; }
.news-note { padding: 14px 0; }
.news-note + .news-note { border-top: 0.5px solid var(--hairline); }
.news-body { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.news-link { margin-top: 4px; }
.news-note .sec-sub { margin-top: 4px; }
.news-refused { color: var(--problem) !important; }
.news-state.s-sent, .news-state.s-approved { background: rgba(52, 199, 89, 0.16); color: #1B7F3B; }
.news-state.s-in_review { background: rgba(255, 159, 10, 0.16); color: #A05A00; }
.news-state.s-refused { background: rgba(255, 59, 48, 0.14); color: #C4261D; }
.news-note.s-withdrawn .news-body { color: var(--tertiary); }
.news-stats { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.news-note .inline-confirm { margin-top: 10px; }
@media (prefers-color-scheme: dark) {
  .news-state.s-sent, .news-state.s-approved { color: #4CD964; }
  .news-state.s-in_review { color: #FFB340; }
  .news-state.s-refused { color: #FF6961; }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-notes { padding-left: 16px; padding-right: 16px; }
  .news-form { padding: 16px; }
}

/* With selling closed the overview has three totals (the sales tile is behind the selling gate): three across, or one per row on a phone. */
html:not([data-selling="open"]) [data-totals] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  html:not([data-selling="open"]) [data-totals] { grid-template-columns: minmax(0, 1fr); }
  html:not([data-selling="open"]) [data-totals] .total + .total { box-shadow: 0 -0.5px 0 var(--hairline-strong); }
}

/* Broadcasts (news.js, NEWS.md "Broadcasts for everyone"): Plus and the slots, the stickers, making one, a sticker's trend. */
.bc-owned { padding: 16px 20px; margin: 0 0 16px; }
.bc-owned p { margin: 0 0 6px; }
.bc-owned .tag.off { background: var(--fill-off, #E8E8ED); color: var(--secondary); }
.bc-list { list-style: none; margin: 8px 0 16px; padding: 4px 20px; }
.bc-row { padding: 14px 0; }
.bc-row + .bc-row { border-top: 0.5px solid var(--hairline); }
.bc-row.on { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; margin-left: -12px; }
.bc-head { display: flex; gap: 12px; align-items: flex-start; }
.bc-art { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.bc-art.none { background: var(--fill); }
.bc-main { flex: 1; min-width: 0; }
.bc-main p { margin: 0; overflow-wrap: anywhere; }
.bc-name b { font-size: 16px; font-weight: 600; }
.bc-url { font-size: 14px; margin-top: 2px !important; }
.bc-why { margin-top: 6px; }
.bc-state.s-active { background: rgba(52, 199, 89, 0.16); color: #1B7F3B; }
.bc-state.s-paused { background: rgba(255, 159, 10, 0.16); color: #A05A00; }
.bc-row.s-withdrawn .bc-name b { color: var(--tertiary); }
.bc-row .near-acts { flex-wrap: wrap; }
.bc-make { padding: 16px 20px; margin: 0 0 16px; }
.bc-make summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.bc-make-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.bc-make-grid .field-label, .bc-edit .field-label { display: grid; gap: 6px; }
.bc-make select, .bc-make input, .bc-edit input { width: 100%; box-sizing: border-box; min-height: 40px; }
.bc-slug { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bc-slug > span { flex: none; color: var(--secondary); font-size: 14px; }
.bc-slug input { flex: 1; min-width: 0; }
.bc-edit { display: grid; gap: 10px; }
.bc-panel { margin-top: 8px; }
.bc-trend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0; }
.bc-spark { width: 220px; max-width: 100%; height: 40px; }
.bc-spark polyline { fill: none; stroke: var(--chart-bar); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bc-range { display: flex; gap: 4px; }
.bc-range button[aria-pressed="true"] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.np-badge { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: #0071E3; color: #fff; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .bc-state.s-active { color: #4CD964; }
  .bc-state.s-paused { color: #FFB340; }
}
@media (max-width: 760px) {
  .bc-make-grid { grid-template-columns: minmax(0, 1fr); }
  .bc-list { padding-left: 16px; padding-right: 16px; }
  .bc-row.on { padding-left: 10px; margin-left: -10px; }
}

/* ── The business sign-in and its quick check (assets/business/signin.js, signin.css) ──────── */

.signin-card .biz .problem { margin-top: 12px; }
.dash-head .check-line { max-width: 640px; }

/* The owner's "People asking to join": a name and address, Let In and Not Them. */
.joins { padding: 16px 20px; margin: 0 0 16px; }
.joins h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.join-rows { list-style: none; margin: 0; padding: 0; }
.join-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; }
.join-rows li + li { border-top: 0.5px solid var(--hairline-strong); }
.join-rows .jr-main { flex: 1 1 280px; min-width: 0; }
.join-rows .jr-main p { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.join-rows .jr-main .m { font-size: 13px; color: var(--tertiary); margin-top: 2px; }
.join-rows .act { display: flex; gap: 8px; flex: none; }
.joins .note { margin: 6px 0 0; }
@media (max-width: 560px) {
  .join-rows .act { flex: 1 1 100%; }
  .join-rows .act .btn { flex: 1 1 0; }
}

/* The team (Profile): the ownership offer and invitations, the owner's; the member offered accepts here. */
.team { padding: 16px 20px; margin: 16px 0 0; }
.team h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.team p { margin: 0 0 8px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.team form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.team form label { flex: 1 1 100%; font-size: 15px; font-weight: 600; }
.team form .sec-sub { flex: 1 1 100%; margin: 0; }
.team form input { flex: 1 1 220px; min-width: 0; }
.team .invite-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.team .invite-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 0.5px solid var(--hairline-strong); }
.team .invite-rows .jr-main { flex: 1 1 220px; min-width: 0; }
.team .invite-rows .jr-main p { margin: 0; }
.team .invite-rows .jr-main .m { font-size: 13px; color: var(--tertiary); margin-top: 2px; }
.team .note { margin: 6px 0 0; }
.device-rows .act { display: flex; gap: 14px; }

/* The 15 November audit's additions: the plan card, Redeem a Code, a link found unsafe, a link's promo, leaving or closing. */
.plan-card, .redeem-card { padding: 18px 20px; margin-top: 16px; }
.plan-card h3, .redeem-card h3 { margin: 2px 0 6px; font-size: 19px; font-weight: 600; }
.plan-card p { margin: 0 0 6px; max-width: 680px; }
.plan-card[data-state="lapsed"] h3 { color: #D70015; }
.redeem-card label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--secondary); }
.redeem-card .inline, .leave-card .inline { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.redeem-card input, .leave-card input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); }
.sc-flag { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #D70015; }
.lk-promo { display: block; }
.promo-form { display: grid; gap: 10px; max-width: 560px; }
.promo-form h4 { margin: 0; font-size: 16px; font-weight: 600; }
.promo-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.promo-form input[type="text"], .promo-form input[type="url"], .promo-form input[type="datetime-local"], .promo-form select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.near-code { margin-top: 10px; max-width: 420px; }
.act .danger, .ic-acts .danger { color: #D70015; }
.btn.danger { background: #D70015; color: #fff; }
.leave-card { padding: 18px 20px; margin-top: 16px; }
.leave-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.leave-card label { display: block; margin: 8px 0 6px; font-size: 14px; color: var(--secondary); }
.bc-owned .bc-manage { margin-top: 6px; }
.news-retry { margin-top: 8px; }
