/* Pelli Live sign-in, owner dashboard and client pages. Builds on styles.css (colors, buttons, inputs). */
.portal { min-height: 100vh; }
.portal .nav { gap: 16px; }
.role-chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--light-teal-bg); color: var(--light-teal); }
.tabs { display: flex; gap: 6px; margin-left: auto; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); background: rgba(164, 107, 255, .16); }
.nav .tabs + .btn-ghost { margin-left: 0; }

/* Sign in */
.auth { display: grid; place-items: center; padding-block: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin: 0 0 20px; font: 800 28px/1.1 var(--display); }
.auth-card .fine { margin-top: 16px; }

/* Owner and client pages */
/* Full width on laptops and big screens (Chad, Oct 28 2026: "more full width on a laptop and responsive so there isn't this big wasted space"). */
.dash { max-width: 1760px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 64px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.dash-head h1 { margin: 0; font: 800 26px/1.1 var(--display); }
.dash-head .btn { margin-left: auto; }
.dash-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
/* The client list stays in view while a long client page scrolls. */
.client-list { position: sticky; top: 92px; }
/* One client: two columns of cards on a wide screen, Tools across both. */
.client-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.client-panel > .card { margin: 0; }
.client-panel > .span-2 { grid-column: 1 / -1; }
.card { min-width: 0; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.card + .card { margin-top: 16px; }
.card-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.reason { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.reason:empty { display: none; }
.empty { margin: 0; color: var(--muted); font-size: 14px; }
.btn-secondary { color: var(--text); background: rgba(164, 107, 255, .14); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-quiet { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: 600 13px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: default; }
.portal .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }
.portal input, .portal select { height: 44px; font-size: 14px; }
select { width: 100%; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(164, 107, 255, .3); background: rgba(11, 6, 20, .7); color: var(--text); font: 500 14px var(--body); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields .wide { grid-column: 1 / -1; }

/* Client list */
.client-list { display: grid; gap: 8px; }
.client-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.client-item[aria-current="true"] { border-color: var(--purple); background: rgba(164, 107, 255, .14); }
.client-item strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-item small { color: var(--muted); font-size: 12px; }
.dots { display: inline-flex; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -4px; }
.dots i:first-child { margin-left: 0; }
.status { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-active { background: rgba(126, 224, 138, .15); color: var(--green); }
.status-paused { background: rgba(255, 154, 166, .15); color: var(--error); }

/* OBS links */
.link-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.link-row + .link-row { margin-top: 8px; }
.link-row span { font-size: 13px; font-weight: 600; color: var(--lavender); }
.link-row input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }
.switch-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px; border: 0; background: rgba(164, 107, 255, .28); box-shadow: inset 0 0 0 1px rgba(164, 107, 255, .45); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch-row strong { font-size: 14px; }

/* Color system: the custom palette, every color as a swatch, its name and its hex code. */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.swatch { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--lavender); }
.swatch input[type="color"] { width: 44px; height: 44px; padding: 3px; border-radius: 12px; cursor: pointer; }
.swatch .hex { width: 96px; padding: 0 10px; font: 500 13px ui-monospace, Menlo, monospace; }
.theme-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.preview { min-height: 120px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: repeating-conic-gradient(rgba(255, 255, 255, .04) 0 25%, transparent 0 50%) 0 0 / 20px 20px, var(--bg); overflow: auto; }

/* Color system samples: one small Counters tile per preset, and Custom, three across. */
.group-label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.theme-block { margin-top: 4px; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.theme-custom[aria-pressed="false"] { border-style: dashed; }
.theme-card { display: grid; gap: 8px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 6, 20, .5); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.theme-card:hover { border-color: var(--line-strong); }
.theme-card[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 2px rgba(126, 224, 138, .35); }
.theme-card .mini { display: grid; place-items: center; height: 64px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / 16px 16px, #0b0614; }
.theme-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.theme-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-card .dots i { width: 12px; height: 12px; }

/* Counters */
.counter-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 10px; align-items: center; }
.counter-row + .counter-row { margin-top: 8px; }
/* The field labels are bigger and white, as on the dashboard (Chad, Nov 1 2026: "bigger and easier to see and white font"). */
.counter-head { font-size: 14px; font-weight: 700; color: var(--text); }
/* Share Goals: one tile per giveaway, with its pin (as the dashboard's card). Their settings go two across instead of stacking. */
.tool-group-across { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-group-across > .group-label { grid-column: 1 / -1; }
.tool-group-across .fields { grid-template-columns: minmax(0, 1fr); }
.tool-group-across .image-row { flex-wrap: wrap; }
@media (max-width: 640px) { .tool-group-across { grid-template-columns: minmax(0, 1fr); } }
.share-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; margin: 2px 0 8px; }
.share-goal { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; }
.share-goal[data-on="true"] { border-color: #7ee08a; box-shadow: 0 0 0 1px #7ee08a; }
.share-goal-pin { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; }
.share-goal-pin:empty::before { content: ""; width: 32px; height: 32px; box-sizing: border-box; border: 1px dashed currentColor; border-radius: 50%; opacity: .4; }
.share-goal-pin img { max-width: 100%; max-height: 44px; object-fit: contain; }
.share-goal-number { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* A seller's game cards leave colors to Chad, inside a racer or a prize too. */
.game-card[data-role="seller"] :is(.rb-field:has(> :is([id^="dd-racer-silk"], [id^="dd-racer-coat"])), .pd-slot input[type=color]) { display: none; }
.size-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--lavender); }
.size-row input { width: 220px; height: 30px; padding: 0; accent-color: var(--purple); }
.tap-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px 80px 44px; gap: 8px; align-items: center; }
.tap-row + .tap-row { margin-top: 8px; }
.tap-row strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap-row output { text-align: center; font: 800 22px var(--body); font-variant-numeric: tabular-nums; }
.tap-row .btn { padding: 0; font-size: 20px; }
.banner { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 154, 166, .4); background: rgba(255, 154, 166, .1); color: var(--text); font-size: 14px; }

/* Tools (Oct 28 2026): a tab per tool, its settings beside a live preview of its OBS page, its live controls and its link. */
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tool-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 6, 20, .5); color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.tool-chip[aria-selected="true"] { color: var(--text); border-color: var(--green); background: rgba(126, 224, 138, .12); }
.tool-chip[data-off="true"] { opacity: .5; text-decoration: line-through; }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.tool-name { margin: 0; font-size: 18px; font-weight: 700; }
.switch-row.compact { margin: 0; gap: 10px; font-size: 13px; font-weight: 600; color: var(--lavender); }
.tool-form { display: grid; gap: 12px; }
.tool-form .size-row { margin-top: 0; }
.tool-group { display: grid; gap: 8px; }
.tool-item { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 6, 20, .35); }
.tool-item strong { font-size: 13px; color: var(--lavender); }
.tool-stack { display: grid; gap: 6px; }
.stack-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
/* Shaped like the graphic itself (its measured size), so there's no empty box under it. */
.tool-preview { width: 100%; aspect-ratio: 16 / 9; max-height: 440px; min-height: 120px; padding: 0; overflow: hidden; }
.tool-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; } /* same color scheme as the OBS page inside, so the frame stays see-through */
.tool-panel > .group-label { margin-top: 18px; }
/* A tool's page opened out of sight to measure its graphic (owner dashboard). */
.tool-measure { position: fixed; left: -4000px; top: 0; width: 2000px; height: 1600px; border: 0; visibility: hidden; pointer-events: none; color-scheme: light; }
.live-box { display: grid; gap: 12px; }
.live-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.live-row label { min-width: 180px; }
.live-row .status { align-self: center; }
.stepper, .team-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-row strong { min-width: 120px; font-size: 14px; }
.big-num { min-width: 80px; text-align: center; font: 800 24px var(--body); font-variant-numeric: tabular-nums; }
.set-input { width: 110px; }
.people { display: grid; gap: 8px; justify-items: start; }
.person-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; align-items: center; gap: 8px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--light-teal-bg); color: var(--light-teal); font-size: 13px; font-weight: 600; }
.chip-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.short-field { max-width: 220px; }
.link-row span small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* A tool: settings on the left; preview, live controls and link on the right, staying in view while the settings scroll. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-side { position: sticky; top: 92px; display: grid; gap: 14px; min-width: 0; }
.tool-side > .group-label { margin: 4px 0 -6px; }
/* In the narrow side column the link sits under its name, so the address stays readable. */
.tool-side .link-row { grid-template-columns: minmax(0, 1fr) auto; }
.tool-side .link-row span { grid-column: 1 / -1; }
.tool-form .tool-group .tool-item + .tool-item { margin-top: 0; }
/* Seller page: the live controls two across on a wide screen. */
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.portal-grid > .card { margin: 0; }
.portal-grid > .span-2 { grid-column: 1 / -1; }

/* Accuracy and status (Oct 28 2026): where each tool stands, and Whatnot's numbers shown read only. */
.portal { --wait: #f3c969; --wait-bg: rgba(243, 201, 105, .14); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.client-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.client-name { margin: 0 0 2px; font: 800 22px/1.15 var(--display); }
.client-who .reason { margin: 0; }
.client-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.client-flags .reason { margin: 2px 0 0; }
.feed-pill { display: grid; gap: 2px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(243, 201, 105, .35); background: var(--wait-bg); font-size: 12px; color: var(--muted); }
.feed-pill strong { font-size: 13px; color: var(--wait); }
.feed-pill.on { border-color: rgba(126, 224, 138, .4); background: rgba(126, 224, 138, .1); }
.feed-pill.on strong { color: var(--green); }
.tool-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; min-width: 0; }
.tool-group-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.tool-chip { position: relative; }
.tool-group-row .group-label { margin: 0; }
.tool-tabs .tool-chips { margin: 0; }
.tool-chip { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: rgba(185, 169, 214, .45); }
.dot-on { background: var(--green); box-shadow: 0 0 0 3px rgba(126, 224, 138, .18); }
.dot-wait { background: var(--wait); }
.tool-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.state-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: rgba(185, 169, 214, .12); color: var(--muted); }
.state-on { background: rgba(126, 224, 138, .15); color: var(--green); }
.state-wait { background: var(--wait-bg); color: var(--wait); }
.saved { font-size: 12px; color: var(--muted); }
.feed-note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(243, 201, 105, .45); background: var(--wait-bg); font-size: 13px; color: var(--muted); }
.feed-note strong { font-size: 13px; color: var(--wait); }
.feed-note.on { border: 1px solid rgba(126, 224, 138, .35); background: rgba(126, 224, 138, .08); }
.feed-note.on strong { color: var(--green); }
.readout { margin: 0; font-size: 15px; color: var(--muted); }
.readout strong { font: 800 22px var(--body); color: var(--text); font-variant-numeric: tabular-nums; }
.readout-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.readout-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(11, 6, 20, .35); font-size: 14px; }
.readout-list strong { font-variant-numeric: tabular-nums; }
.readout-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readout-cols .readout { grid-column: 1 / -1; }
.preview-wrap { display: grid; gap: 6px; }
.preview-note { margin: 0; font-size: 12px; color: var(--wait); }
/* The owner's list of every link: 32px rows (a dense list). */
.link-row.compact { grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px; }
.link-row.compact + .link-row.compact { margin-top: 6px; }
.link-row.compact input { height: 32px; font-size: 11px; padding: 0 10px; border-radius: 9px; }
.portal .link-row.compact .btn { min-height: 32px; padding: 0 12px; font-size: 11px; }
.waiting-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.waiting-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(11, 6, 20, .35); font-size: 14px; font-weight: 600; }

/* Payments (Stripe): status, plan and the amount box. */
.stripe-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.stripe-status + .btn { margin-left: 0; }
.stripe-status .reason { margin: 0; }
.state-bad { background: rgba(255, 154, 166, .15); color: var(--error); }
.billing-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.billing-top > p { margin: 0; }
.billing-top .banner { flex-basis: 100%; margin: 4px 0 0; }
.money-in { position: relative; display: block; }
.money-in::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money-in input { padding-left: 28px; }
.banner-good { border-color: rgba(126, 224, 138, .4); background: rgba(126, 224, 138, .1); }

/* Notes, activity, last seen and view as seller (Oct 28 2026). */
.portal textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(164, 107, 255, .3); background: rgba(11, 6, 20, .7); color: var(--text); font: 500 14px/1.5 var(--body); resize: vertical; }
.portal textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(164, 107, 255, .2); }
.notes-label { display: grid; gap: 6px; margin-bottom: 16px; }
.notes-label > span { display: flex; align-items: center; justify-content: space-between; }
.activity { display: grid; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 10px; background: rgba(11, 6, 20, .35); font-size: 13px; color: var(--muted); }
.activity strong { color: var(--text); font-weight: 600; }
.activity time { flex: none; font-size: 12px; color: var(--faint); }
.link-row span small.seen-now { color: var(--green); }
.banner-view { border-color: rgba(164, 107, 255, .45); background: rgba(164, 107, 255, .12); }

.link-btn { padding: 0; border: 0; background: none; color: var(--purple-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.forgot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-msg.good { color: var(--green); }

/* Picture settings: a thumbnail, the choice, Upload. */
.image-field { display: grid; gap: 6px; }
.image-label { font-size: 13px; font-weight: 600; color: var(--lavender); }
.image-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.image-row select { width: auto; min-width: 160px; flex: 1 1 160px; }
.thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(rgba(255, 255, 255, .06) 0 25%, transparent 0 50%) 0 0 / 12px 12px, var(--bg); font-size: 10px; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.confirm-inline { font-size: 13px; color: var(--muted); }

/* Invite requests */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid rgba(164, 107, 255, .1); white-space: nowrap; }
td a { color: var(--purple-2); }
td .btn { min-height: 32px; padding: 0 12px; font-size: 11px; }

@media (max-width: 1400px) {
  .client-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .tool-layout, .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-side { position: static; }
}
@media (max-width: 860px) {
  .dash-grid, .theme-split { grid-template-columns: 1fr; }
  .client-list { position: static; }
}
@media (max-width: 680px) {
  .dash { padding: 20px 16px 48px; }
  .fields { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-row span { grid-column: 1 / -1; }
  .counter-row { grid-template-columns: minmax(0, 1fr) 90px auto; }
  .size-row input { width: 100%; }
  .tabs a { padding: 0 10px; }
  .portal .nav .role-chip { display: none; }
  /* The owner tabs drop to their own row under the logo, so they stay on phones. */
  .portal .nav { flex-wrap: wrap; }
  .portal .nav nav.tabs { display: flex; order: 3; width: 100%; margin-left: 0; }
  .portal .nav .tabs + .btn-ghost { margin-left: auto; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-custom { grid-column: 1 / -1; }
  .person-row { grid-template-columns: minmax(0, 1fr) 90px auto; }
  /* The tool tabs scroll sideways on a phone instead of stacking into a tall block. */
  .tool-tabs .tool-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tool-tabs .tool-chip { flex: none; }
  .readout-cols { grid-template-columns: minmax(0, 1fr); }
  .link-row.compact { grid-template-columns: minmax(0, 1fr) auto; }
  .link-row.compact span { grid-column: 1 / -1; }
  .live-row label { min-width: 0; flex: 1 1 140px; }
  .theme-card .dots { display: none; }
}

/* Live Whatnot numbers (Oct 28 2026): the Pelli Live Chrome extension's connection, on the seller's page and Chad's. */
.live-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-section > .card { margin: 0; }
.live-section > .span-2 { grid-column: 1 / -1; }
.connection { display: grid; gap: 10px; }
.connection > .group-label { margin: 6px 0 0; }
.connection .card-actions { margin-top: 6px; }
.feed-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-part { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--muted); }
.feed-part.on { border-color: rgba(126, 224, 138, .45); color: var(--green); }
.connection > .reason { margin: 0; }
.feed-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-size: 13px; }
.device-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.device-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 4px 4px 4px 14px; border-radius: 12px; background: rgba(11, 6, 20, .35); font-size: 14px; }
.device-name small { display: block; font-size: 12px; color: var(--muted); }
.waiting { display: grid; gap: 8px; }
.waiting .group-label { margin: 6px 0 0; }
.waiting-list li .reason { margin: 0; font-weight: 500; flex: 1 1 260px; text-align: right; }
.setup-steps { border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 14px; }
.setup-steps summary { min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 700; cursor: pointer; }
.setup-steps ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.code-box { display: grid; gap: 2px; }
.code-box:empty { display: none; }
.pair-code { font: 800 30px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--green); user-select: all; }
@media (max-width: 760px) { .live-section { grid-template-columns: minmax(0, 1fr); } .waiting-list li .reason { text-align: left; } }

/* Show History (Oct 28 2026): a dense table, so 32px rows and 11px column headers; it scrolls sideways on phones. */
.table-scroll { overflow-x: auto; margin-top: 10px; }
.show-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.show-table th { padding: 0 10px 8px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.show-table td { padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.show-table tbody tr:first-child td { border-top-color: var(--line-strong); }
.show-when { display: flex; align-items: center; gap: 8px; }
/* Get Set Up: each step checks itself off. */
.setup-slot:empty { display: none; }
.setup-slot > .card { margin: 0; }
.setup-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.setup-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.setup-list .dot { margin-top: 6px; }
.setup-list li.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(185, 169, 214, .5); }
/* A link's "last seen" line wraps under its name instead of running into the link box. */
.link-row span small.seen, .link-row span small.seen-now { white-space: normal; }
/* Chat Vote's Question List: one box per question, Remove beside its name. */
.question-list { display: grid; gap: 10px; }
.tool-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-item-head .btn-quiet { min-height: 32px; }
/* A seller's tool card: its name with Show Preview beside it, the preview, then the live controls. */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.card-head .card-title { margin: 0; }
.preview-slot:empty { display: none; }
.preview-slot { display: grid; gap: 6px; margin-bottom: 14px; }
.preview-slot .reason { margin: 0; }

/* One tool's own colors (Oct 28 2026): folded under the tool's settings, same swatches as the Custom Palette. */
.paint-box { margin-top: 18px; border-top: 1px solid var(--line); }
.paint-box summary { min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.paint-box .paint-count { font-weight: 500; color: var(--muted); }
.paint-box .swatches { margin-top: 4px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.paint-name { display: grid; min-width: 0; line-height: 1.3; }
.paint-from { font-size: 12px; font-weight: 500; color: var(--muted); }
.paint-box .paint-reset { min-height: 0; padding: 0; justify-self: start; font-size: 12px; }
.paint-box > .saved { display: block; min-height: 18px; margin-top: 6px; }

/* Saved palettes and designs (Oct 28 2026). */
.saved-themes { margin-top: 6px; }
.palette-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.palette-save input { width: 220px; max-width: 100%; }
.palette-row { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.palette-row strong { flex: 1; min-width: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rename-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.rename-row input { width: 280px; max-width: 100%; font: 800 18px var(--display); }

/* Seller page tabs (Oct 29 2026): Show, Setup, History. Each refreshable card sits in a slot that doesn't box it in the grid. */
.slot { display: contents; }
.portal-grid > .slot > .card, .portal-grid > .slot > .banner { margin: 0; }
.portal-grid > .slot > .span-2 { grid-column: 1 / -1; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--wait-bg); color: var(--wait); font-size: 11px; font-weight: 800; line-height: 1; }
/* Live Whatnot Numbers in one line at the top of Show. */
.feed-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.feed-strip .card-title, .feed-strip .reason { margin: 0; }
.feed-strip > .btn { margin-left: auto; }
.feed-strip + .feed-warn { margin-top: 12px; }
.waiting-list li strong { font-weight: 700; }
.help-line { margin: 0; font-size: 13px; color: var(--muted); }

/* Owner (Oct 29 2026): a client's sections as tabs under its name, the list's summary and search, and on a phone only the open
   client in the list until Switch Client. */
.head-actions { margin-top: 12px; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.section-tab { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 6, 20, .5); color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.section-tab:hover { border-color: var(--line-strong); color: var(--text); }
.section-tab[aria-selected="true"] { color: var(--text); border-color: var(--green); background: rgba(126, 224, 138, .12); }
.client-items { display: grid; gap: 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.list-summary { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.list-toggle { display: none; min-height: 32px; padding: 0; }
.billing-card .fields { max-width: 640px; }
@media (max-width: 860px) {
  .list-toggle { display: inline-flex; align-items: center; }
  .client-list.collapsed .client-item:not([aria-current="true"]), .client-list.collapsed .list-search { display: none; }
}
@media (max-width: 680px) {
  /* The section tabs scroll sideways on a phone, like the tool tabs. */
  .section-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .section-tab { flex: none; }
}
/* Sign in: Show Password inside the password box. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 72px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: rgba(164, 107, 255, .14); color: var(--lavender); font: 600 12px var(--body); cursor: pointer; }
.pw-toggle:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 2px; }

/* Results (Oct 29 2026): before and with Pelli Live, and the home page numbers. */
.results-table { max-width: 760px; }
.results-table td:first-child { white-space: normal; min-width: 180px; }
.results + .table-scroll, .results .table-scroll + .table-scroll { margin-top: 18px; }
.show-table .show-title { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.muted-dash { color: var(--muted); }
.result-start { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 14px; }
.result-start label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--lavender); }
.result-start input { width: auto; min-width: 170px; }
.total-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.total { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(164, 107, 255, .06); }
.total strong { display: block; font: 800 22px/1.15 var(--display); color: var(--green); overflow-wrap: anywhere; }
.total span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.total.private strong { color: var(--text); }
.public-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; margin-top: 14px; }
.public-switches .switch-row { margin: 0; }
/* On a phone the before, after and change columns fit beside the names instead of sliding sideways. */
@media (max-width: 560px) {
  .results-table th, .results-table td { padding: 8px 5px; white-space: normal; }
  .results-table td:first-child { min-width: 0; }
  .results-table .state-pill { padding: 3px 6px; }
}

/* Prospects (Oct 29 2026). */
.prospect-list { width: 100%; max-width: 420px; min-height: 160px; font: 500 14px/1.5 var(--body); }
.show-table .hour-row td { color: var(--muted); font-size: 12px; padding-top: 4px; padding-bottom: 4px; border-top: 0; }
.dash-head .head-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.dash-head .head-links .btn { margin-left: 0; }

/* Terms of Service checkbox (Oct 30 2026): set-password page and the seller's one-time agreement card. */
.agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.agree input { width: 20px; height: 20px; flex: none; margin: 0; padding: 0; accent-color: var(--green); box-shadow: none; }
.terms-card { max-width: 520px; }
.terms-actions { margin-top: 18px; }
.terms-card .form-msg { margin-top: 12px; }

/* The dashboard's own tool cards (public/cards): its theme tokens, in the same pellilive.com colors. */
.game-slot{grid-column:1/-1;min-width:0}
.card.game-card{--bg:#0b0614;--card:#170d29;--card-border:#362258;--text:#f6f1ff;--muted:#b9a9d6;--accent:#7ee08a;--accent-hover:#9be8a3;--workspace-on-accent:#0d1a10;--workspace-surface:#110922;--workspace-raised:#21143a;
  --workspace-button:#2b1a47;--workspace-button-hover:#382359;--workspace-purple:#c79bff;--workspace-purple-fill:#6b35c9;--workspace-on-purple:#fff;--workspace-purple-soft:#28173f;--workspace-vip:#f2b84b;--workspace-on-vip:#1a1205;
  --workspace-green:#7ee08a;--workspace-green-soft:#1a2a27;--workspace-focus:#c79bff;--workspace-danger:#ff9aa6;--workspace-danger-soft:#3a1a2c;--workspace-input-border:#7d62b3;--workspace-row-hover:#22143a;--workspace-subtle:#a898c6;
  --workspace-select-arrow: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.5l5 5 5-5' fill='none' stroke='%23b9a9d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color:var(--text);background:var(--card);border:1px solid var(--card-border);padding:20px;box-sizing:border-box;min-width:0}
.game-card input,.game-card select,.game-card textarea{box-sizing:border-box;min-height:44px;font:inherit;font-size:13px;color:var(--text);background:var(--workspace-surface);border:1px solid var(--workspace-input-border);border-radius:8px;padding:0 12px;max-width:100%}
.game-card input[type=color]{padding:2px;width:44px;height:44px}
.game-card input[type=range]{padding:0;border:0;background:none;min-height:0}
.game-card input[type=checkbox]{min-height:0}
.game-card button,.game-card a.ui-secondary{font:inherit}
.game-card .ui-section{border-top:1px solid var(--card-border);padding:10px 0}
.game-card .ui-section-summary{cursor:pointer;font-size:15px;font-weight:600;min-height:32px;display:flex;align-items:center}
.game-card .ui-section-body{padding-top:10px}
.game-card .pg-check{display:none}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]) .card.game-card{}}
.photo-drop-mark,.photo-drop-note{--bg:#0b0614;--card:#170d29;--card-border:#362258;--text:#f6f1ff;--accent:#7ee08a;--workspace-on-accent:#0d1a10;--workspace-raised:#2a1747;--workspace-surface:#110922}
.game-fold{padding:14px 20px}
.game-fold summary{cursor:pointer;min-height:32px;display:flex;align-items:center}
.game-fold[open] summary{margin-bottom:12px}
.game-fold .card.game-card{padding:0;border:0;background:none}

/* Folds on a tool's card, like the dashboard's. */
.tool-layout .ui-section{border-top:1px solid var(--line,#362258);padding:10px 0}
.tool-layout .ui-section-summary{cursor:pointer;font-size:15px;font-weight:600;min-height:32px;display:flex;align-items:center}
.tool-layout .ui-section-body{padding-top:10px}
.banner-alert{background:#7a2a48;color:#fff;font-weight:700}
/* Live Chat */
.live-chat{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:20px}
.chat-list{list-style:none;margin:8px 0 0;padding:0;height:min(60vh,560px);overflow:auto;display:flex;flex-direction:column;gap:6px}
.chat-list li{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.chat-name{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;margin-right:6px}
.chat-noted{color:#7ee08a;font-style:normal;margin-right:6px}
.chat-rail{display:flex;flex-direction:column;gap:12px;min-width:0}
.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.note-list li{display:flex;flex-direction:column;gap:2px;font-size:13px}
.note-list small{opacity:.7}
@media (max-width:800px){.live-chat{grid-template-columns:minmax(0,1fr)}.chat-list{height:50vh}}
.game-fold .game-card h2.ui-card-title{display:none}
.game-fold .game-card .rb-head{justify-content:flex-end}
.tabs a{white-space:nowrap}
/* Client care (Nov 2 2026): health dots, check lists, monthly reports, referrals */
.health-red { background: var(--error); box-shadow: 0 0 0 3px rgba(255, 154, 166, .2); }
.health-yellow { background: var(--wait, #f3c969); }
.health-green { background: var(--green); }
.health-paused { background: rgba(185, 169, 214, .45); }
.client-item strong .dot { display: inline-block; margin: 0 7px 1px 0; vertical-align: middle; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.check-list li .dot { margin-top: 6px; }
.check-list strong { display: block; font-weight: 600; color: var(--text); }
.check-list small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.check-list li.ok strong { color: var(--muted); font-weight: 500; }
.health-box { display: grid; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.health-box .health-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.health-box .health-head .card-title { margin: 0; font-size: 14px; }
.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.report-tile { min-width: 0; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(164, 107, 255, .06); }
.report-tile strong { display: block; font: 800 22px/1.1 var(--body); color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-tile span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.report-highlights { margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.report-body { margin-top: 10px; }
.ref-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.reward-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.reward-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.reward-list li > span { flex: 1 1 200px; }
.preshow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.preshow-head .card-title { margin: 0; }
.client-head .health-box { flex: 1 1 100%; }
.preshow-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reward-list + .short-field, .ref-counts + .empty { margin-top: 10px; }
/* Phone: the tab row scrolls sideways so the last tabs (Results) stay reachable (Nov 2 2026). */
@media (max-width: 860px) { .portal .nav nav.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .portal .nav nav.tabs::-webkit-scrollbar { display: none; } }
/* Practice Show (Nov 3 2026): Start row, the running line, and the banner on the live pages. */
.practice-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 14px; }
.practice-row .short-field { display: grid; gap: 6px; min-width: 150px; }
.practice-line { margin: 12px 0 0; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.practice-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.practice-banner > span:first-child { font-variant-numeric: tabular-nums; }
.practice-banner .reason { flex-basis: 100%; margin: 0; }
.practice-banner .reason:empty { display: none; }
