/* Small rules for every page of the app, loaded after v3.css. */

/* Terry (7 Nov 2026): every column's heading sits on its left, numbers included. 8 Nov 2026: the figures underneath sit on the left too (the block at the end) */
.tbl thead th.num, table thead th.num { text-align: left; }
.tbl thead th.num > a, .tbl thead th.num > span { justify-content: flex-start; }

/* Learn this page (Terry, 7 Nov 2026): a coral button top right, a drawer from the right, and the Help centre (page_help.py) */
.ph-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgb(var(--v3-primary)); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.ph-btn:hover { filter: brightness(1.06); color: #fff; }
.ph-btn:focus-visible { outline: 2px solid rgb(var(--v3-primary)); outline-offset: 2px; }
@media (max-width: 639px) { .ph-btn { width: 30px; padding: 0; justify-content: center; } .ph-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.ph-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); overflow-y: auto; box-shadow: -12px 0 32px rgb(0 0 0 / .25); }
.ph-drawer::backdrop { background: rgb(0 0 0 / .35); }
.ph-x { position: sticky; top: 10px; float: right; z-index: 2; margin: 10px 12px 0 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg-2)); cursor: pointer; }
.ph-x:hover { color: rgb(var(--v3-fg)); }
.hp-drawer-in { padding: 18px 22px 28px; }
.hp-loading { padding: 24px 22px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.hp-head { margin-bottom: 10px; padding-right: 36px; }
.hp-kicker { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--v3-primary)); margin: 0 0 2px; }
.hp-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.hp-tldr { font-size: 14px; line-height: 1.5; margin: 0 0 6px; padding: 10px 12px; border-radius: 8px; background: rgb(var(--v3-primary) / .09); border-left: 3px solid rgb(var(--v3-primary)); }
.hp-where { font-size: 12px; color: rgb(var(--v3-fg-3)); margin: 0 0 10px; }
.hp-toc { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; margin: 0 0 12px; color: rgb(var(--v3-fg-3)); }
.hp-toc a { color: rgb(var(--v3-fg-2)); text-decoration: underline; text-underline-offset: 2px; }
.hp-toc a:hover { color: rgb(var(--v3-fg)); }
.hp-sec { margin: 14px 0 0; }
.hp-sec h3 { font-size: 13.5px; font-weight: 650; margin: 0 0 6px; }
.hp-sec ul { margin: 0; padding-left: 18px; list-style: disc; }
.hp-sec li { font-size: 13px; line-height: 1.5; margin: 3px 0; color: rgb(var(--v3-fg-2)); }
.hp-good { padding: 10px 12px; border-radius: 8px; background: rgb(var(--v3-surface-2)); }
.hp-tasks li::marker { color: rgb(var(--v3-primary)); }
.hp-shot { margin: 6px 0 10px; }
.hp-shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid rgb(var(--v3-line)); }
.hp-shot figcaption { font-size: 11.5px; color: rgb(var(--v3-fg-3)); margin-top: 4px; }
.hp-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.hp-page { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.hp-search { display: flex; gap: 8px; align-items: center; padding: 10px; }
.hp-found, .hp-none { font-size: 13px; color: rgb(var(--v3-fg-2)); margin: 0; }
.hp-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; font-size: 13px; }
.hp-jump a { color: rgb(var(--v3-fg-2)); }
.hp-jump a:hover { color: rgb(var(--v3-fg)); }
.hp-block .card-h, .hp-guide .card-h { padding: 12px 16px; border-bottom: 1px solid rgb(var(--v3-line)); }
.hp-block .card-h h2, .hp-guide .card-h h2 { font-size: 15px; font-weight: 650; margin: 0; }
.hp-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 22px; padding: 0 16px 16px; }
.hp-faq { padding: 6px 16px 14px; }
.hp-q { border-bottom: 1px solid rgb(var(--v3-line)); }
.hp-q:last-child { border-bottom: 0; }
.hp-q summary { cursor: pointer; padding: 10px 0; font-size: 13.5px; font-weight: 600; list-style-position: outside; }
.hp-q p { font-size: 13px; line-height: 1.55; color: rgb(var(--v3-fg-2)); margin: 0 0 12px; }
.hp-group { display: flex; flex-direction: column; gap: 12px; }
.hp-group-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--v3-fg-3)); margin: 8px 0 0; }
.hp-guide { scroll-margin-top: 70px; }
.hp-guide-in { padding: 12px 16px 16px; }
/* the Help centre in categories (Terry msg 1770): cards by topic, a list per topic, a guide per view. Theme tokens only; no fades */
.hc { max-width: 1040px; }
.hc .hp-search { padding: 8px 12px; }
.hc-find { width: 100%; border: 0; background: transparent; outline: 0; font-size: 14px; padding: 6px 0; color: rgb(var(--v3-fg)); }
.hc-find::placeholder { color: rgb(var(--v3-fg-3)); }
.hc .hp-search:focus-within { box-shadow: 0 0 0 2px rgb(var(--v3-primary) / .35); }
.hc-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--v3-fg-3)); margin: 4px 0 8px; }
.hc-pop-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hc-pop-row::-webkit-scrollbar { display: none; }
.hc-chip { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.hc-chip:hover { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-primary) / .5); }
.hc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hc-card { position: relative; }
.hc-card-a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 40px 14px 14px; border-radius: inherit; color: rgb(var(--v3-fg)); }
.hc-card-a:hover { background: rgb(var(--v3-hover)); }
.hc-card-a .hc-ico { grid-row: 1 / 3; }
.hc-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(var(--v3-primary) / .1); color: rgb(var(--v3-primary)); flex: none; }
.hc-staff .hc-ico { background: rgb(var(--v3-warn) / .12); color: rgb(var(--v3-warn)); }
.hc-card-t { font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.hc-card-n { font-size: 12px; color: rgb(var(--v3-fg-3)); font-weight: 500; }
.hc-card-tip { position: absolute; top: 10px; right: 10px; }
.hc-list { display: flex; flex-direction: column; }
.hc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg)); scroll-margin-top: 70px; }
.hc-row:last-child { border-bottom: 0; }
.hc-row:hover { background: rgb(var(--v3-hover)); }
.hc-row-t { font-size: 14px; font-weight: 600; grid-column: 1; }
.hc-row-s { font-size: 13px; line-height: 1.45; color: rgb(var(--v3-fg-2)); grid-column: 1; margin-top: 2px; }
.hc-row-m { font-size: 11.5px; color: rgb(var(--v3-fg-3)); grid-column: 1; margin-top: 4px; }
.hc-row-go { grid-column: 2; grid-row: 1 / 4; align-self: center; color: rgb(var(--v3-fg-3)); }
.hc-all > summary { cursor: pointer; padding: 12px 14px; font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.hc-all[open] > summary { border-bottom: 1px solid rgb(var(--v3-line)); }
.hc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: rgb(var(--v3-fg-3)); min-width: 0; }
.hc-crumbs a { color: rgb(var(--v3-fg-2)); }
.hc-crumbs a:hover { color: rgb(var(--v3-fg)); text-decoration: underline; }
.hc-crumbs [aria-current] { color: rgb(var(--v3-fg)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hc-head { display: flex; align-items: center; gap: 10px; }
.hc-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.hc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); align-self: flex-start; }
.hc-back:hover { color: rgb(var(--v3-fg)); }
.hc .hp-guide .card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hc .hp-guide, .hc-pn { max-width: 820px; }
.hc-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-pn-a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; color: rgb(var(--v3-fg)); min-width: 0; }
.hc-pn-a:hover { background: rgb(var(--v3-hover)); }
.hc-pn-next { text-align: right; align-items: flex-end; grid-column: 2; }
.hc-pn-l { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.hc-pn-t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
[data-help-main], [data-help-results] { display: flex; flex-direction: column; gap: 14px; }
[data-help-main][hidden], [data-help-results][hidden] { display: none; }
[data-ipane][hidden] { display: none !important; }   /* instant tabs (v3.js): a pane's own flex / grid never shows a hidden tab (Terry msg 3748) */

/* a creator's labels (Terry, 7 Nov 2026): Top creator amber, Potential creator blue, any other tag neutral; the Label menu */
.lbl { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); }
.lbl-top { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .14); border-color: rgb(var(--v3-warn) / .4); }
.lbl-potential { color: rgb(var(--v3-info)); background: rgb(var(--v3-info) / .14); border-color: rgb(var(--v3-info) / .4); }
.lbl-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.lbl-menu { position: relative; display: inline-block; }
.lbl-menu > summary { list-style: none; cursor: pointer; }
.lbl-menu > summary::-webkit-details-marker { display: none; }
.lbl-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 250px; padding: 8px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-raised, var(--v3-surface))); box-shadow: 0 10px 28px rgb(0 0 0 / .28); }
.lbl-k { margin: 2px 4px 6px; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.lbl-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; }
.lbl-opt:hover, .lbl-opt:focus-visible { background: rgb(var(--v3-surface-2)); }
.lbl-tick { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 4px; color: rgb(var(--v3-primary)); flex: none; }
.lbl-opt.is-on .lbl-tick { border-color: rgb(var(--v3-primary)); }
.lbl-new { display: flex; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgb(var(--v3-line)); }
.lbl-new .input { flex: 1; min-width: 0; height: 30px; font-size: 12px; }
.ib-labels { padding-top: 2px !important; }
.ib-fk { width: 100%; font-size: 11px; font-weight: 600; color: rgb(var(--v3-fg-3)); }
.ib-fnone { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.lbl-f-top.is-on, .lbl-f-top { color: rgb(var(--v3-warn)); border-color: rgb(var(--v3-warn) / .4); }
.lbl-f-potential.is-on, .lbl-f-potential { color: rgb(var(--v3-info)); border-color: rgb(var(--v3-info) / .4); }
@media (max-width: 640px) { .lbl-menu[open] { flex-basis: 100%; width: 100%; } .lbl-pop { position: static; width: 100%; margin-top: 6px; box-shadow: none; } }   /* a phone: the menu opens in place under its button, full width, so nothing is cut off */

/* Email Campaigns on a shop on the feed (Terry, 8 Nov 2026): Cruva's page and a three-step New Campaign */
.em-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.em-title { font-size: 20px; font-weight: 650; color: rgb(var(--v3-fg)); }
.em-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.em-off { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; margin-bottom: 12px; border: 1px solid rgb(var(--v3-warn) / .4); border-radius: 10px; background: rgb(var(--v3-warn) / .08); color: rgb(var(--v3-fg)); font-size: 13px; }
.em-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.em-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
.em-search { display: inline-flex; align-items: center; gap: 6px; }
.em-search .input { width: 15rem; max-width: 60vw; }
.em-bulk { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid rgb(var(--v3-line)); font-size: 13px; color: rgb(var(--v3-fg-2)); }
.em-acts { display: inline-flex; align-items: center; gap: 4px; }
.em-play { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgb(var(--v3-primary)); color: #fff; font-size: 11px; line-height: 1; }
.em-play.em-pause { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); box-shadow: inset 0 0 0 1px rgb(var(--v3-line)); }
.em-menu { position: relative; }
.em-menu > summary { list-style: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: rgb(var(--v3-fg-2)); }
.em-menu > summary::-webkit-details-marker { display: none; }
.em-menu > summary:hover { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.em-menu-pop { position: absolute; right: 0; top: 32px; z-index: 30; min-width: 170px; padding: 4px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-surface)); box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
.em-menu-pop a, .em-menu-pop button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: rgb(var(--v3-fg)); text-align: left; background: none; border: 0; cursor: pointer; }
.em-menu-pop a:hover, .em-menu-pop button:hover:not([disabled]) { background: rgb(var(--v3-surface-2)); }
.em-menu-pop button[disabled] { opacity: .45; cursor: not-allowed; }
.em-menu-pop form { margin: 0; }
.em-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 16px; text-align: center; }
.em-empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgb(var(--v3-primary) / .12); color: rgb(var(--v3-primary)); margin-bottom: 4px; }
.em-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.em-size { padding: 3px 8px; border-radius: 7px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.em-size.is-on { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); font-weight: 600; }
.em-pg { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 7px; background: rgb(var(--v3-surface-2)); font-size: 12px; font-weight: 600; }
.ew { display: flex; flex-direction: column; gap: 14px; }
.ew-progress { height: 4px; border-radius: 999px; background: rgb(var(--v3-surface-2)); overflow: hidden; }
.ew-progress > span { display: block; height: 100%; width: 33%; background: rgb(var(--v3-primary)); transition: width .2s ease; }
.ew-steps { display: none; }
.ew-js .ew-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.ew-steps li.is-on { color: rgb(var(--v3-fg)); font-weight: 600; }
.ew-steps li.is-done { color: rgb(var(--v3-fg-2)); }
.ew-step { display: flex; flex-direction: column; gap: 12px; }
.ew-k { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.ew-h { font-size: 18px; font-weight: 650; color: rgb(var(--v3-fg)); margin-top: -8px; }
.ew-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); max-width: 920px; }
.ew-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); }
.ew-hint { font-size: 11.5px; font-weight: 400; color: rgb(var(--v3-fg-3)); }
.ew-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: rgb(var(--v3-surface-2)); font-size: 12.5px; color: rgb(var(--v3-fg-2)); max-width: 920px; }
.ew-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ew-choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 36px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; cursor: pointer; }
.ew-choice input { position: absolute; left: 12px; top: 14px; }
.ew-choice:has(input:checked) { border-color: rgb(var(--v3-primary)); box-shadow: 0 0 0 1px rgb(var(--v3-primary)); }
.ew-choice-t { font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); }
.ew-choice-d { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.ew-choice-k { font-size: 10.5px; color: rgb(var(--v3-fg-3)); margin-top: 2px; }
.ew-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ew-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1100px) { .ew-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.ew-preview { position: sticky; top: 72px; padding: 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 14px; background: rgb(var(--v3-surface-2)); }
.ew-preview-h { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); margin-bottom: 8px; }
.ew-mail { border-radius: 10px; background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line)); padding: 12px; font-size: 13px; color: rgb(var(--v3-fg)); overflow-wrap: anywhere; }
.ew-mail-s { font-weight: 650; padding-bottom: 8px; border-bottom: 1px solid rgb(var(--v3-line)); margin-bottom: 8px; }
.ew-mail-b { white-space: pre-line; color: rgb(var(--v3-fg-2)); }
.ew-mail-f { margin-top: 12px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.ew-nav { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 0; background: rgb(var(--v3-bg)); border-top: 1px solid rgb(var(--v3-line)); }
.ew:not(.ew-js) [data-ew-back], .ew:not(.ew-js) [data-ew-next] { display: none; }
@media (max-width: 640px) { .em-search .input { width: 100%; } .em-filters > * { flex: 1 1 auto; } }

/* Terry (8 Nov 2026): every "Choose file" button looks like the app's own buttons, in all three themes */
input[type="file"] { font-size: 13px; color: rgb(var(--v3-fg-2)); max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2));
  color: rgb(var(--v3-fg)); font: inherit; font-weight: 600; cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
input[type="file"]::file-selector-button:hover { background: rgb(var(--v3-surface-3, var(--v3-surface-2))); border-color: rgb(var(--v3-primary) / .5); }
input[type="file"]:focus-visible { outline: 2px solid rgb(var(--v3-primary) / .6); outline-offset: 2px; border-radius: 8px; }

/* The sidebar (Terry, 8 Nov 2026): open sections never squash it. The logo stays at the top, the bottom block and the shop picker stay at the
   bottom, and only the middle list scrolls, with a thin scrollbar. Rows keep their height (flex children of a scrolling column would shrink). */
.ds-side { min-height: 0; }
.ds-side > .ds-brand, .ds-side > .ds-foot, .ds-side > .ds-shop-bottom, .nv-nav > .nv-bottom { flex-shrink: 0; }
.nv-nav { min-height: 0; }
.nv-scroll { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(var(--v3-fg-3) / .35) transparent; }
.nv-scroll > *, .nv-sub > *, .nv-bottom > * { flex-shrink: 0; }
.nv-scroll::-webkit-scrollbar { width: 6px; }
.nv-scroll::-webkit-scrollbar-thumb { background: rgb(var(--v3-fg-3) / .35); border-radius: 999px; }
.nv-scroll::-webkit-scrollbar-track { background: transparent; }
/* the shop picker at the bottom left, like Cruva's: a raised tile, and its menu opens upwards */
.ds-shop-bottom { border-top: 1px solid rgb(var(--v3-line)); }
.ds-shop-bottom .ds-switch { border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); }
.ds-shop-bottom .ds-switch:hover, .ds-shop-bottom .ds-switch[aria-expanded="true"] { background: rgb(var(--v3-surface-2)); }
.ds-shop-bottom .v4-shopmenu { top: auto; bottom: calc(100% + 6px); margin-top: 0; max-height: min(70vh, 560px); }
.ds-sidebar[class~="w-14"] .ds-shop-bottom { padding-left: 8px; padding-right: 8px; }
.ds-sidebar[class~="w-14"] .ds-shop-bottom .ds-switch { border-color: transparent; background: transparent; }

/* the shop picker, bigger and roomier (Terry, 8 Nov 2026): a taller tile with a bigger badge and name; a wider menu with taller rows; All shops at its top */
.ds-shop-bottom { padding-top: 8px; padding-bottom: 10px; }
.ds-shop-bottom .ds-switch { height: 60px; padding: 0 12px; gap: 12px; border-radius: 12px; }
.ds-shop-bottom .ds-switch:hover, .ds-shop-bottom .ds-switch[aria-expanded="true"] { border-color: rgb(var(--v3-primary) / .45); }
.ds-shop-bottom .ds-switch .v4-badge { width: 36px; height: 36px; font-size: 13px; border-radius: 9px; }
.ds-shop-bottom .ds-switch .text-\[13px\] { font-size: 14.5px; line-height: 20px; }
.ds-shop-bottom .ds-switch .text-\[11px\] { font-size: 12px; line-height: 16px; }
.ds-shop-bottom .v4-shopmenu { width: max(300px, calc(100% - 16px)); max-height: min(72vh, 600px); }
.ds-shop-bottom .v4-shopmenu .nav-item { min-height: 46px; height: auto; padding-top: 6px; padding-bottom: 6px; gap: 10px; }
.ds-shop-bottom .v4-shopmenu .nav-item.active { background: rgb(var(--v3-primary) / .10); box-shadow: inset 3px 0 0 rgb(var(--v3-primary)); }
.ds-shop-bottom .v4-shopmenu .v4-sb { width: 28px; height: 28px; font-size: 10.5px; border-radius: 7px; }
/* the shop's data source: staff only, an ⓘ in place of the old Live / Cruva chips (Terry msg 2462) */
.v4-src { display: inline-flex; align-items: center; flex: none; color: rgb(var(--v3-fg-3)); cursor: help; }
.v4-src:hover { color: rgb(var(--v3-fg-2)); }
.ds-shop-bottom .v4-shopmenu .v4-sn .truncate { font-size: 13.5px; font-weight: 600; }
.ds-shop-bottom .v4-shopmenu .v4-cur { color: rgb(var(--v3-primary)); margin-left: 6px; }
.v4-shopmenu-all { margin: 8px 8px 4px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; flex-shrink: 0; }
.v4-all-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: rgb(var(--v3-primary) / .14); color: rgb(var(--v3-primary)); flex-shrink: 0; }
.ds-sidebar[class~="w-14"] .ds-shop-bottom .ds-switch { height: 48px; padding: 0 6px; justify-content: center; }
/* TAP (TikTok affiliate partner) sales, the third commission type beside Target and Open (Terry, 8 Nov 2026): a purple chip that reads in every theme */
:root { --v3-tap: 167 139 250; }
html[data-theme=light] { --v3-tap: 109 40 217; }
html[data-theme=navy] { --v3-tap: 178 156 255; }
.tap-chip { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; border: 1px solid rgb(var(--v3-tap) / .45); background: rgb(var(--v3-tap) / .14);
  color: rgb(var(--v3-tap)); font-size: 10.5px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; cursor: help; }
.fx-psub[data-comms-tap] { display: block; white-space: normal; }   /* a TAP campaign's line wraps under the product, never over the Rate column */
/* the side panel's Commission by product fits its card: headings wrap to two lines, the product column gives up width, and anything still wider scrolls inside the card, never past its edge */
[data-cpn-comms] .tbl-wrap { overflow-x: auto; max-width: 100%; }
[data-cpn-comms] table { width: 100%; }
[data-cpn-comms] th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
[data-cpn-comms] td:first-child, [data-cpn-comms] th:first-child { max-width: 230px; }
[data-cpn-comms] td:first-child .truncate, [data-cpn-comms] td:first-child .fx-prod { max-width: 170px; }
[data-cpn-comms] td.text-xs { white-space: normal; }
/* a shop's own logo where its initials tile was (Terry, 8 Nov 2026): the tile's size from the spot's own class, the image fitted inside a
   rounded square with a subtle border; a soft grey square on Light so a white logo shows, a white one on Dark and Navy so a dark logo shows */
img.shop-logo { display: block; flex-shrink: 0; object-fit: cover; object-position: center; padding: 0; background: #fff; border: 1px solid rgb(var(--v3-line-2)); box-shadow: none; }   /* fills its box edge to edge (Terry msg 2822); logo-fit.js trims a plain border round a small logo */
html:not([data-theme=light]) img.shop-logo { border-color: rgb(255 255 255 / .22); }
img.shop-logo-sm { width: 18px; height: 18px; border-radius: 5px; }
img.shop-logo-md { width: 20px; height: 20px; border-radius: 5px; }
.shop-init, .shop-init.tw-grad { display: inline-grid; place-items: center; flex-shrink: 0; color: #fff !important; font-weight: 700; letter-spacing: .02em; background: var(--shop-tint, #4338ca) !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }   /* a shop with no picture anywhere: its initials on the brand's colour (Terry msg 3410), the same in every theme */
.shop-init.shop-logo-sm { width: 18px; height: 18px; border-radius: 5px; font-size: 7.5px; }
.shop-init.shop-logo-md { width: 20px; height: 20px; border-radius: 5px; font-size: 8px; }
.shop-logo-acts { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.shop-logo-acts .is-busy { opacity: .6; pointer-events: none; }
/* Campaign tables (Automations, both tabs, and Email campaigns; Terry, 8 Nov 2026): a 40px tick column, Campaign Name takes the spare width (at least 220px,
   long names cut with the full name on hover), headers on one line (Requests and Created shortened, the full name on hover), 16px between columns, rows about 52px. Wider than its card, the table
   scrolls sideways inside the card (.tbl-wrap), never the page. Phones keep the stacked rows. */
@media (min-width: 768px) {
  table.cm-tbl th { white-space: nowrap; vertical-align: middle; line-height: 15px; }
  table.cm-tbl th a { white-space: nowrap; }
  table.cm-tbl th, table.cm-tbl td { padding-left: 8px; padding-right: 8px; }
  table.cm-tbl th:first-child { min-width: 0; }
  table.cm-tbl th:first-child, table.cm-tbl td:first-child { padding-left: 16px; }
  table.cm-tbl th:last-child, table.cm-tbl td:last-child { padding-right: 16px; }
  table.cm-tbl tbody td { height: 52px; padding-top: 6px; padding-bottom: 6px; }
  table.cm-tbl .cm-tick { width: 40px; min-width: 40px; max-width: 40px; padding-left: 14px; padding-right: 0; }
  table.cm-tbl .cm-name { width: 100%; min-width: 220px; max-width: 0; }
  table.cm-tbl td.cm-name .go-nm, table.cm-tbl td.cm-name .cm-nm { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.cm-tbl td.cm-name .sub-block { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.cm-tbl td.cm-st, table.cm-tbl td.cm-acts { white-space: nowrap; }
  table.cm-tbl td.cm-st > span, table.cm-tbl td.cm-acts > span { gap: 6px; }
  table.cm-tbl .cm-acts { width: 1%; }
}
/* laptop widths: the columns worked out from others on show (reply and sample rates) or always blank (Email Views) step aside, so Status and the
   pinned Actions have room; wider screens show them all */
@media (min-width: 768px) and (max-width: 1499px) { table.cm-tbl .cm-wide { display: none; } }

/* Terry (8 Nov 2026): numbers sit on the left of their columns, under their headings, in every table on every page (v3.css right-aligns td.num; some cells add text-right) */
.tbl td.num, .\!tbl td.num, table td.num, table td.num.text-right, .tbl th.text-right, table th.text-right { text-align: left; }
.tbl td.num > span.inline-flex { justify-content: flex-start; }
/* the three commission types each have their own colour (Terry, 8 Nov 2026): TAP purple (above), TC TikWhizz red, Open white. On Light, Open is a
   dark outline (white on white wouldn't show). Fixed colours, not the theme accent, so Navy's purple accent never makes TC look like TAP */
:root { --v3-tc: 244 55 88; --v3-open: 255 255 255; }
html[data-theme=light] { --v3-tc: 196 28 62; --v3-open: 30 30 36; }
.chip.tc-chip, .open-chip { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.6;
  letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.chip.tc-chip { border: 1px solid rgb(var(--v3-tc) / .5); background: rgb(var(--v3-tc) / .14); color: rgb(var(--v3-tc)); }
.open-chip { border: 1px solid rgb(var(--v3-open) / .55); background: rgb(var(--v3-open) / .08); color: rgb(var(--v3-open)); }
/* an info bubble keeps its line breaks, so a commission tag's hover can list the name, campaigns and sample rate one per line */
/* a little info bubble: see data-info in v3.js. Here, not feed.css, so every page's ⓘ shows it (Terry msg 994: a title's explaining line lives behind its ⓘ everywhere).
   pre-line keeps a tip's paragraphs (blank-line apart); a little wider for those. */
.info-tip { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: rgb(var(--v3-fg-3)); cursor: help; }
.info-tip:hover, .info-tip:focus-visible { color: rgb(var(--v3-fg)); }
/* the info bubble itself (.info-bubble) is in shared/ui.css: one look on both sides (Terry msgs 1476, 1480) */
/* a creator's TikTok agency (Terry, 8 Nov 2026): the TikMarketing badge (TikWhizz red outline and a small star) beside a creator signed to TikMarketing, wherever
   creators are listed; the panel's Agency line; My affiliates' Agency filter. Fixed reds per theme, as the type tags, so Navy's purple accent never changes it */
:root { --v3-tm: 244 55 88; }
html[data-theme=light] { --v3-tm: 196 28 62; }
.tm-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid rgb(var(--v3-tm) / .7);
  background: rgb(var(--v3-tm) / .1); color: rgb(var(--v3-tm)); font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; white-space: nowrap;
  vertical-align: middle; flex-shrink: 0; cursor: help; }
.tm-badge svg { flex-shrink: 0; }
/* A creator's level L0–L7 by their last 30 days' GMV (Terry, 8 Nov 2026, msg 688): one small tag next to the name on every page. Low levels quiet,
   L3–L4 blue, L5 and up gold, so the big creators stand out; hover says the figure, window and source. */
:root { --v3-lv: 96 165 250; --v3-lv-hi: 245 190 70; }
html[data-theme=light] { --v3-lv: 29 98 196; --v3-lv-hi: 161 98 7; }
.lv-chip { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 5px; border-radius: 5px; border: 1px solid rgb(var(--v3-fg-3) / .45); background: rgb(var(--v3-fg-3) / .08);
  color: rgb(var(--v3-fg-2)); font-size: 10px; font-weight: 700; line-height: 1.55; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; flex-shrink: 0;
  cursor: help; font-variant-numeric: tabular-nums; }
.lv-chip.lv-3, .lv-chip.lv-4 { border-color: rgb(var(--v3-lv) / .55); background: rgb(var(--v3-lv) / .12); color: rgb(var(--v3-lv)); }
.lv-chip.lv-5, .lv-chip.lv-6, .lv-chip.lv-7 { border-color: rgb(var(--v3-lv-hi) / .6); background: rgb(var(--v3-lv-hi) / .14); color: rgb(var(--v3-lv-hi)); }
.cpn-hrow .lv-chip { margin-left: 0; }
.lv-band { color: rgb(var(--v3-fg-2)); font-size: 12px; white-space: nowrap; }
.lv-src { display: block; color: rgb(var(--v3-fg-3)); font-size: 11px; }
.cpn-hrow .tm-badge { margin-left: 0; }
/* VIP (Terry msg 2725): a creator on one of the shop's protected (VIP) invites, or marked VIP by hand. Solid gold with a crown, so it reads apart
   from the gold outline of an L5+ level tag; the ⓘ names the shop and the invite. */
:root { --tw-vip: 240 185 40; --tw-vip-ink: 58 40 0; }
html[data-theme=light] { --tw-vip: 214 158 16; --tw-vip-ink: 48 32 0; }
.vip-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid rgb(var(--tw-vip));
  background: rgb(var(--tw-vip)); color: rgb(var(--tw-vip-ink)); font-size: 10px; font-weight: 800; line-height: 1.6; letter-spacing: .04em; white-space: nowrap;
  vertical-align: middle; flex-shrink: 0; cursor: help; }
.vip-badge svg { flex-shrink: 0; }
.cpn-hrow .vip-badge, .ib-top .vip-badge { margin-left: 0; }
/* ♛ VIP on a VIP invite (Terry msgs 3659, 3665, 3669): the same gold, a size smaller, so an invite's name keeps its one line */
.vip-tc { font-size: 9.5px; padding: 0 5px; gap: 2px; line-height: 1.55; }
.vip-tc svg { width: 9px; height: 9px; }
.aw-vip-name { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-size: 11px; color: rgb(var(--v3-fg-2)); }
.aw-vip-name .vip-badge { margin-left: 0; margin-top: 1px; }
/* THE creator cell (Terry msg 3396, c.who): picture, @name, TikTok badge and level on line 1; followers and the small ★ CAP / ♛ VIP tags (each
   with its ⓘ) on line 2, small and muted. At most --crc-max wide, so a creator column never takes half the table: a name longer than that ends in
   "…" (the full name on hover and in the side panel). line: one line, for a creator under a video's or LIVE's title. */
.crc { --crc-max: 280px; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: var(--crc-max); }
.crc > .cp, .crc-avbtn { flex: none; }
.crc-avbtn { display: inline-flex; border-radius: 999px; cursor: pointer; }
.crc-avbtn:focus-visible, .crc-namebtn:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.crc-t { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.crc-l1 { display: flex; align-items: center; min-width: 0; white-space: nowrap; line-height: 1.35; }
.crc-l1 > * { flex: none; }
.crc-l1 > .crc-nm, .crc-l1 > .crc-namebtn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crc-namebtn { display: block; cursor: pointer; border-radius: 4px; }
.crc-namebtn > .crc-nm { display: block; overflow: hidden; text-overflow: ellipsis; }
.crc-namebtn:hover > .cr-nm { text-decoration: underline; text-decoration-color: rgb(var(--v3-fg) / .35); text-underline-offset: 3px; }
.crc-l1 .lv-chip { margin-left: 4px; }
.crc-l2 { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; font-size: 11px; font-weight: 400; line-height: 1.45; color: rgb(var(--v3-fg-3)); }
.crc-l2:empty { display: none; }
.crc-l2 > * { flex: none; max-width: 100%; }
.crc-l2 > :empty:not(.cp) { display: none; }
.crc-f { white-space: nowrap; font-variant-numeric: tabular-nums; }
.crc-nick { min-width: 0; flex: 0 1 auto !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }
.crc-l2 .tm-badge, .crc-l2 .vip-badge { margin-left: 0; padding: 0 5px; font-size: 9.5px; line-height: 1.5; gap: 2px; }
.crc-l2 .tm-badge svg, .crc-l2 .vip-badge svg { width: 8px; height: 8px; }
.crc-line { display: inline-flex; gap: 6px; max-width: 100%; }
/* TikTok's creator levels Lv.1 to Lv.9: one colour each (Terry msgs 3804, 3806), THE ONLY PLACE THESE COLOURS LIVE. A ramp of our own:
   grey, gold, teal, pink, purple, indigo, sky, blue, deep blue. Dark (and Navy, which inherits it) by default, Light below; each is at least
   3:1 on its theme's page and card (dots and bars), and text beside them stays the theme's own ink. Use: class tlv-c<N> sets --tlv. */
:root { --tlv-1: 156 163 175; --tlv-2: 232 179 58; --tlv-3: 44 199 176; --tlv-4: 240 106 168; --tlv-5: 176 124 245; --tlv-6: 165 160 251;
  --tlv-7: 56 189 248; --tlv-8: 59 130 246; --tlv-9: 88 101 242; }
html[data-theme=light] { --tlv-1: 107 114 128; --tlv-2: 154 101 22; --tlv-3: 11 118 108; --tlv-4: 208 54 122; --tlv-5: 139 63 209; --tlv-6: 79 70 229;
  --tlv-7: 3 105 161; --tlv-8: 37 99 235; --tlv-9: 30 58 138; }
.tlv-c1 { --tlv: var(--tlv-1); } .tlv-c2 { --tlv: var(--tlv-2); } .tlv-c3 { --tlv: var(--tlv-3); } .tlv-c4 { --tlv: var(--tlv-4); } .tlv-c5 { --tlv: var(--tlv-5); }
.tlv-c6 { --tlv: var(--tlv-6); } .tlv-c7 { --tlv: var(--tlv-7); } .tlv-c8 { --tlv: var(--tlv-8); } .tlv-c9 { --tlv: var(--tlv-9); }
.tlv-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 999px; background: rgb(var(--tlv, var(--v3-fg-3))); box-shadow: 0 0 0 2px rgb(var(--tlv, var(--v3-fg-3)) / .18); }
/* the "Lv.3" on a creator: its level's colour as a dot and a tinted outline, the words in the theme's own ink, so it never reads as TikWhizz's L tag */
.tlv-chip { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px 0 4px; border-radius: 999px; border: 1px solid rgb(var(--tlv, var(--v3-fg-3)) / .55);
  background: rgb(var(--tlv, var(--v3-fg-3)) / .10); color: rgb(var(--v3-fg-2)); font-size: 9.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: help; font-variant-numeric: tabular-nums; }
.tlv-chip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--tlv, var(--v3-fg-3))); }
.crc-line .crc-t { flex-direction: row; align-items: center; gap: 6px; }
.crc-line .crc-l2 { flex-wrap: nowrap; }
/* one line (under a video's or LIVE's title) has no room for words: ★ and ♛ alone, the ⓘ says what they mean, so the name keeps its room */
.crc-line .crc-l2 .tm-badge, .crc-line .crc-l2 .vip-badge { font-size: 0; gap: 0; padding: 0 3px; height: 14px; }
.crc-line .crc-l2 .tm-badge svg, .crc-line .crc-l2 .vip-badge svg { width: 9px; height: 9px; }
.crc-line .crc-l1 { flex: 0 1 auto; min-width: 0; }
/* ⭐ Star (Terry msgs 3664, 3671): a creator on TikMarketing's Star Creator List, staff only. A soft gold pill, so it reads apart from VIP's solid gold
   and an L5+ level's gold outline; the ⓘ says what the list is. */
.star-badge { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid rgb(var(--tw-vip) / .6);
  background: rgb(var(--tw-vip) / .14); color: rgb(var(--v3-fg)); font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: middle;
  flex-shrink: 0; cursor: help; }
.star-badge .star-i { font-size: 9px; line-height: 1; }
.crc-l2 .star-badge { margin-left: 0; padding: 0 5px; font-size: 9.5px; line-height: 1.5; }
.crc-line .crc-l2 .star-badge { font-size: 0; padding: 0 3px; height: 14px; }
.crc-line .crc-l2 .star-badge .star-i { font-size: 9px; }
.star-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; }
.star-info .si-k { font-size: 11px; color: rgb(var(--v3-fg-3)); display: inline-flex; align-items: center; gap: 4px; }
.star-info .si-v { font-size: 15px; font-weight: 700; color: rgb(var(--v3-fg)); font-variant-numeric: tabular-nums; }
td > .crc, td > div > .crc { vertical-align: middle; }
/* the Agency cell (c.agency_text): the agency's short name, and under it the CAP chip and "via samples" / "TikTok says: …", small */
.agc { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; max-width: 100%; vertical-align: middle; }
.agc-main { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.agc-sub { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; font-size: 11px; line-height: 1.35; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.agc-sub .cap-chip { margin-left: 0; flex: none; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 13px; vertical-align: 0; }
.agc-subt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* inside a line of words (the creator panel's "Agency: …" line), the cell stays in the line */
.cpn-agency .agc { display: inline-flex; vertical-align: baseline; margin-left: 3px; }
.cpn-agency .agc-sub { margin-left: 4px; }
.cpn-agency .agc:has(.agc-sub) { flex-direction: row; align-items: baseline; }
td[data-agency-cell] { white-space: nowrap; }
[data-agency-unknown] { cursor: help; text-decoration: underline dotted rgb(var(--v3-fg-3) / .5); text-underline-offset: 3px; }
.vip-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgb(var(--v3-line)); font-size: 11px; font-weight: 600; white-space: nowrap; }
.vip-pill.is-on { background: rgb(var(--tw-vip)); border-color: rgb(var(--tw-vip)); color: rgb(var(--tw-vip-ink)); }
.vip-row-on td:first-child { box-shadow: inset 3px 0 0 rgb(var(--tw-vip)); }
.cpn-agency { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cpn-agency > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cf-agency { margin-top: 8px; }
/* CRM › Reports (Terry, 8 Nov 2026): Cruva's CRM Report on one page at TikWhizz's normal sizes. Section chips stay at the top while you scroll; numbers sit on the
   left under their titles (Terry's rule); pies, the cohort grid and the GMV mix share one purple-led palette that reads in Light, Dark and Navy. */
.crp-chips { position: sticky; top: 52px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 12px; background: rgb(var(--v3-bg)); }
.crp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 999px; font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface)); }
.crp-chip:hover, .crp-chip:focus-visible { color: rgb(var(--v3-fg)); border-color: rgb(139 92 246 / .6); background: rgb(139 92 246 / .1); }
.crp-sec { margin-top: 16px; scroll-margin-top: 116px; overflow: visible; }
.crp-block[id] { scroll-margin-top: 116px; }
.crp-sec .card-h h2 { font-size: 16px; }
.crp-tip { margin-left: 4px; vertical-align: -2px; }
.crp-sub { padding: 0 16px 10px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.crp-inline { display: inline-flex; }
.crp-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 4px 16px 14px; }
.crp-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; color: rgb(var(--v3-fg-2)); min-width: 0; }
.crp-f > span { display: inline-flex; align-items: center; }
.crp-f .input { min-width: 150px; max-width: 260px; height: 34px; }
.crp-f-row { flex-direction: row; align-items: center; gap: 8px; }
.crp-seg { display: inline-flex; padding: 2px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 8px; background: rgb(var(--v3-surface-2)); }
.crp-seg-b { padding: 5px 12px; border-radius: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.crp-seg-b.is-on { background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.crp-pies { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px; }
.crp-pie { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; background: rgb(var(--v3-surface-2) / .5); }
.crp-pie[hidden] { display: none; }
.crp-pie-h { display: flex; align-items: center; font-size: 15px; font-weight: 600; }
.crp-pie-body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crp-pie-c { position: relative; flex: 0 0 104px; width: 104px; height: 104px; }
.crp-pchips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.crp-pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.4; color: rgb(var(--v3-fg)); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); cursor: help; }
.crp-pchip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.crp-pie.is-soon { border-style: dashed; background: transparent; }
.crp-soon { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 104px; font-size: 13px; color: rgb(var(--v3-fg-3)); text-align: center; }
.crp-more { display: flex; justify-content: center; padding: 10px 16px 4px; }
.crp-more-b { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: rgb(167 139 250); background: none; border: 0; cursor: pointer; }
html[data-theme=light] .crp-more-b { color: rgb(109 40 217); }
.crp-more-b[aria-expanded=true] svg { transform: rotate(180deg); }
.crp-block { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgb(var(--v3-line)); }
.crp-bh { display: flex; align-items: center; padding: 0 16px 10px; }
.crp-bh h3 { font-size: 14px; font-weight: 600; }
.crp-caps { text-transform: uppercase; letter-spacing: .06em; font-size: 12px !important; color: rgb(var(--v3-fg-2)); }
.crp-chart { position: relative; height: var(--h, 280px); margin: 0 16px; }
.crp-legend { justify-content: center; padding: 8px 16px 14px; }
.crp-cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px 14px; }
.crp-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crp-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; background: rgb(var(--v3-surface-2) / .5); }
.crp-k { display: inline-flex; align-items: center; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.crp-v { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.crp-v2 { font-size: 15px; font-weight: 500; color: rgb(var(--v3-fg-2)); }
.crp-band { margin-left: 4px; font-size: 11.5px; font-weight: 400; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
td .crp-band { display: block; margin-left: 0; }
.crp-tbl th, .crp-heat th { white-space: nowrap; text-align: left; }
.crp-n { text-align: left !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crp-tbl tr.crp-sum td { background: rgb(139 92 246 / .07); }
.crp-tbl tr.crp-total td { background: rgb(139 92 246 / .14); font-weight: 600; }
.crp-tbl td.crp-t-good { color: rgb(var(--v3-pos)); font-weight: 600; }
.crp-tbl td.crp-t-warn { color: rgb(var(--v3-warn)); font-weight: 600; }
.crp-tbl td.crp-t-bad { color: rgb(var(--v3-neg)); font-weight: 600; }
.crp-tbl.crp-wrap th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.crp-tbl.crp-wrap th, .crp-tbl.crp-wrap td { padding-left: 8px; padding-right: 8px; }
.crp-heat td.crp-hc, .crp-heat th.crp-hc { min-width: 72px; text-align: center !important; }
.crp-cell { display: block; padding: 6px 4px; border-radius: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; background: rgb(124 58 237 / calc(.10 + .80 * var(--a, 0))); color: rgb(var(--v3-fg)); }
html[data-theme=light] .crp-cell { background: rgb(124 58 237 / calc(.08 + .72 * var(--a, 0))); }
.crp-scale { display: flex; align-items: center; gap: 4px; padding: 10px 16px 14px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.crp-scale i { width: 18px; height: 8px; border-radius: 4px; background: rgb(139 92 246 / calc(.10 + .80 * var(--a))); }
.crp-ins { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; }
.crp-in { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; }
.crp-in p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgb(var(--v3-fg-2)); }
.crp-in-t { font-size: 14px; font-weight: 600; }
.crp-in-i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: rgb(var(--v3-surface-2)); }
.crp-in-bad { background: rgb(var(--v3-neg) / .07); border-color: rgb(var(--v3-neg) / .25); }
.crp-in-bad .crp-in-i { color: rgb(var(--v3-neg)); }
.crp-in-warn { background: rgb(var(--v3-warn) / .07); border-color: rgb(var(--v3-warn) / .25); }
.crp-in-warn .crp-in-i { color: rgb(var(--v3-warn)); }
.crp-in-good { background: rgb(var(--v3-pos) / .07); border-color: rgb(var(--v3-pos) / .25); }
.crp-in-good .crp-in-i { color: rgb(var(--v3-pos)); }
.crp-in-info { background: rgb(var(--v3-surface-2) / .6); }
.crp-in-info .crp-in-i { color: rgb(var(--v3-warn)); }
.crp-cta { margin-top: 10px; max-width: 100%; white-space: normal; height: auto; min-height: 30px; text-align: left; }
.crp-in > div { min-width: 0; }   /* bug sweep B: the text column may narrow (a 360 phone ran 12px wide) */
@media (max-width: 1100px) { .crp-pies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crp-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .crp-pies, .crp-ins, .crp-cards, .crp-cards-4 { grid-template-columns: minmax(0, 1fr); } .crp-pie-body { flex-direction: column; align-items: flex-start; } .crp-f .input { min-width: 0; max-width: 100%; } }
@media print { body[data-crp-print] * { visibility: hidden; } body[data-crp-print="crp-retention"] #crp-retention, body[data-crp-print="crp-retention"] #crp-retention * { visibility: visible; } body[data-crp-print="crp-retention"] #crp-retention { position: absolute; left: 0; top: 0; width: 100%; } body[data-crp-print] .crp-filters, body[data-crp-print] [data-crp-print] { display: none; } }
/* Add Products, Cruva's picker (Terry, 8 Nov 2026): the Invite Products menu (Add By Name | ID, a search, Add All, the shop's products with picture, ID,
   an Available or Unavailable tag, price and stock), then one card per product with a drag handle, Commission %, a Shop Ads Commission tick that opens its
   own %, and remove. Theme tokens only, so Light, Dark and Navy all read; numbers sit left */
.ap-pick { position: relative; }
.ap-sum { display: flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; list-style: none; color: rgb(var(--v3-fg-3)); }
.ap-sum::-webkit-details-marker { display: none; }
.ap-pop { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 6px); padding: 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px;
  background: rgb(var(--v3-surface)); box-shadow: 0 14px 36px rgb(0 0 0 / .22); }
.ap-bar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; }
.ap-by { font-size: 13px; color: rgb(var(--v3-fg-2)); }
.ap-mode { display: inline-flex; gap: 6px; }
.ap-mode button { padding: 4px 14px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); background: transparent; }
.ap-mode button.is-on { background: rgb(var(--v3-primary)); border-color: rgb(var(--v3-primary)); color: #fff; }
.ap-findrow { display: flex; gap: 8px; align-items: flex-start; }
.ap-findrow > .input { flex: 1; min-width: 0; }
.ap-findrow > [hidden] { display: none; }
.ap-findrow textarea.input { resize: vertical; min-height: 36px; max-height: 120px; line-height: 1.4; padding-top: 7px; }
.ap-msg { margin: 8px 2px 0; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.ap-msg.is-bad { color: rgb(var(--v3-warn)); }
.ap-list { margin-top: 8px; max-height: 22rem; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-align: left; width: 100%; color: rgb(var(--v3-fg)); background: transparent; }
.ap-row:hover:not(:disabled) { background: rgb(var(--v3-hover)); }
.ap-row.is-off { opacity: .55; }
.ap-row.is-off { cursor: not-allowed; }
.ap-row.is-added { cursor: pointer; }
.aw-pthumb.ap-thumb { width: 40px; height: 40px; border-radius: 8px; }
.ap-rmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ap-rname { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-rsub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.ap-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.7; }
.ap-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-chip.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); }
.ap-chip.is-no { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.ap-rright { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 7.5rem; font-size: 13px; }
.ap-stock { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.ap-tick { width: 16px; font-weight: 700; color: rgb(var(--v3-pos)); }
.ap-none { padding: 14px 10px; font-size: 13px; color: rgb(var(--v3-fg-3)); }
/* Add Products (Terry msgs 2074, 2076): unavailable or out-of-stock products sit under a small divider at the bottom; an added row is a clear tick */
.ap-divider { margin: 6px 10px 2px; padding-top: 8px; border-top: 1px solid rgb(var(--v3-line)); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgb(var(--v3-fg-3)); }
/* a picked product (Terry msg 2164): clearly darker/tinted, with a left accent bar and the tick; unpicking returns it to normal at once.
   One look for every product menu: Add Products, the shared picker (select.js), Sample requests' Products/SKUs, the wizard's condition pickers */
:root { --v3-picked: 74 32 46; }
html[data-theme=light] { --v3-picked: 252 221 228; }
html[data-theme=navy] { --v3-picked: 52 47 112; }
.ap-row.is-added, .sr-mprow.on, .aw-ms-row:has(input:checked) { background: rgb(var(--v3-picked)); box-shadow: inset 3px 0 0 rgb(var(--v3-accent)); }
.ap-row.is-added:hover:not(:disabled), .sr-mprow.on:hover, .aw-ms-row:has(input:checked):hover { background: rgb(var(--v3-picked)); box-shadow: inset 4px 0 0 rgb(var(--v3-accent)), inset 0 0 0 1px rgb(var(--v3-accent) / .35); }
.ap-row.is-added .ap-rname { font-weight: 600; }
.ap-row.is-added .ap-tick { color: rgb(var(--v3-accent)); font-weight: 700; }
.ap-note.is-bad { color: rgb(var(--v3-neg)); }
.ap-help { margin-top: 8px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.ap-link { color: rgb(var(--v3-accent-ink)); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; background: none; padding: 0; }
.ap-link:disabled { opacity: .6; }
.ap-asof { color: rgb(var(--v3-fg-3)); }
.ap-editall-btn { margin-top: 10px; gap: 6px; }
.ap-editall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; padding: 10px 12px; border: 1px dashed rgb(var(--v3-line-2)); border-radius: 10px; }
.ap-editall[hidden], .ap-msg[hidden], .ap-empty[hidden], .ap-note[hidden], .ap-pct[hidden] { display: none; }
.ap-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ap-empty { margin-top: 10px; font-size: 13px; color: rgb(var(--v3-fg-3)); }
.ap-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface-2) / .5); }
.ap-card.is-drag { opacity: .5; border-style: dashed; }
.ap-grip { align-self: center; padding: 4px 2px; font-size: 15px; line-height: 1; color: rgb(var(--v3-fg-3)); cursor: grab; background: none; border-radius: 4px; touch-action: none; }
.ap-grip:hover, .ap-grip:focus-visible { color: rgb(var(--v3-fg)); }
.ap-card .aw-pthumb.ap-thumb { width: 48px; height: 48px; }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-top { display: flex; align-items: flex-start; gap: 8px; }
.ap-name { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-id { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.ap-reload { display: inline-flex; padding: 2px; border-radius: 4px; color: rgb(var(--v3-fg-3)); background: none; }
.ap-reload:hover { color: rgb(var(--v3-fg)); }
.ap-note { display: block; margin-top: 2px; font-size: 12px; color: rgb(var(--v3-warn)); }
.ap-rates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ap-com { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); }
.ap-pct { display: inline-flex; align-items: center; gap: 4px; }
.ap-pct .input { width: 4rem; text-align: left; }
.ap-pct > span { font-size: 13px; color: rgb(var(--v3-fg-3)); }
.ap-adsbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); cursor: pointer; }
.ap-status { margin-top: 8px; }
/* Creator Watch's Renew: the wizard says who the draft is for, and anything the link carried that was left out */
.aw-renew-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgb(var(--v3-accent) / .35); background: rgb(var(--v3-accent) / .08); font-size: 13px; color: rgb(var(--v3-fg)); }
@media (max-width: 640px) { .ap-row { flex-wrap: wrap; } .ap-rright { min-width: 0; flex-direction: row; gap: 8px; padding-left: 52px; } .ap-findrow { flex-wrap: wrap; } }

/* CRM › Creator Watch (Cassey via Terry, 8 Nov 2026): four tabs with counts, a window switch, section headings with an info bubble, red and amber
   days left, Yes/No posted since, the likely-why tag, rank moves; and the red strip on the Dashboard and Automations. Numbers sit left like every table */
[data-cw] .cf-bar { flex-wrap: wrap; row-gap: 8px; }
[data-cw] .cf-tabs { flex-wrap: wrap; }
.cw-hot { color: rgb(var(--v3-neg)); font-weight: 700; }
.cw-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; }
.cw-seg-b { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.cw-seg-b.is-on { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.cw-set { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cw-set .input { width: 90px; height: 30px; }
.cw-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px 10px; border-top: 1px solid rgb(var(--v3-line)); }
.cw-h h2 { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cw-h2 { margin-top: 8px; }
.cw-meta { font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cw-tbl td .sub { display: block; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.cw-tbl tbody tr[data-cpn] { cursor: pointer; }
.cw-tc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 120px; overflow: hidden; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; cursor: help; }   /* two lines, so the collaboration's name still tells them apart; the full name and its products on hover */
[data-cw] .tbl-wrap { overflow-x: auto; }   /* a wide list scrolls inside the card, never past its edge */
.cw-tbl .fx-chg { margin-left: 6px; }
.cw-tbl .cw-act .btn { padding-left: 6px; padding-right: 6px; }
.cw-days { display: inline-block; font-weight: 600; }
.cw-days.cw-bad { color: rgb(var(--v3-neg)); }
.cw-days.cw-warn { color: rgb(var(--v3-warn)); }
.cw-yes, .cw-no { display: inline-flex; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.7; }
.cw-yes { background: rgb(var(--v3-pos) / .14); color: rgb(var(--v3-pos)); }
.cw-no { background: rgb(var(--v3-neg) / .14); color: rgb(var(--v3-neg)); }
.cw-why { display: inline-flex; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: normal; border: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg-2)); }
.cw-why-tc { border-color: rgb(var(--v3-tc) / .5); background: rgb(var(--v3-tc) / .12); color: rgb(var(--v3-tc)); }
.cw-why-rate, .cw-why-sample, .cw-why-stock { border-color: rgb(var(--v3-warn) / .5); background: rgb(var(--v3-warn) / .12); color: rgb(var(--v3-warn)); }
.cw-move { font-size: 11px; font-weight: 700; margin-left: 2px; }
.cw-move-up { color: rgb(var(--v3-pos)); }
.cw-move-down { color: rgb(var(--v3-neg)); }
.cw-move-new { color: rgb(var(--v3-fg-3)); font-weight: 600; }
.cw-act { width: 1%; white-space: nowrap; }
/* The two target collab tables fit a 1440 screen with the sidebar open (Terry msg 5021: no scrolling right to reach Renew): tighter cells, the long names
   cut with the full name on hover, the Renew button always the last, fixed column */
.tbl.dense.cw-tbl :is(th, td) { padding-left: 7px; padding-right: 7px; }
.cw-tbl td.primary .crc-l1 > .crc-nm, .cw-tbl td.primary .crc-l1 > .crc-namebtn { max-width: 115px; }
.tbl.dense.cw-tbl td.cw-act { padding-right: 12px; }
/* Creator Watch ticks (Terry msg 5021): a box per row, a page box in the header, Select all in each heading, a solid bar once anything is ticked */
.tbl.dense.cw-tbl :is(th, td).cw-tick { width: 1%; padding-left: 12px; padding-right: 0; }
.cw-tickl { display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 28px; margin: -6px 0; cursor: pointer; }
@media (pointer: coarse) { .cw-tickl { min-width: 44px; min-height: 44px; } }
.cw-selall { margin-left: auto; }
.cw-bar .cw-rate { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 13px; }
.cw-bar input.cw-bad { box-shadow: 0 0 0 2px rgb(var(--v3-neg)); }
.cw-bar .cw-pick { width: 12.5rem; max-width: 100%; }
.cw-bar [hidden] { display: none !important; }   /* the name box goes when an existing list is picked */
@media (max-width: 767px) { .cw-bar .input, .cw-bar .btn { min-height: 44px; } .cw-bar .cw-pick, .cw-bar [data-cw-name] { flex: 1 1 calc(50% - 4px); min-width: 0; width: auto !important; } }   /* a phone: the picker and the name share one row (the picker alone, full width, once a list is picked), 44px to tap */
.cw-bar .bb-n0 { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px 0 2px; font-size: 13px; color: #fff; white-space: nowrap; font-weight: 600; }
.bb-err { padding: 3px 10px; border-radius: 8px; background: rgb(var(--v3-neg)); color: #fff; font-size: 12.5px; font-weight: 600; }
.bb-err[hidden] { display: none; }
.cw-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px; border-radius: 12px; background: rgb(var(--v3-tc)); color: #fff; font-size: 13.5px; }
.cw-alert[hidden] { display: none; }
.cw-alert b { font-weight: 700; }
.cw-alert-sep { opacity: .75; }
.cw-alert-go { margin-left: auto; padding: 4px 12px; border-radius: 8px; background: #fff; color: rgb(var(--v3-tc)); font-weight: 700; font-size: 12.5px; }
.cw-alert-x { display: inline-flex; padding: 4px; border-radius: 6px; color: #fff; opacity: .85; }
.cw-alert-x:hover, .cw-alert-x:focus-visible { opacity: 1; background: rgb(255 255 255 / .15); }
/* Creator inbox, room for the chat (Terry, 8 Nov 2026, msg 548): the intro is one small line (the full words in its info bubble); the list and the
   conversation fill the screen below it (v3.js sets --ib-top to where they start) and each scrolls on its own; the conversation header is one line
   (picture and @username open the side panel, one TC chip, the actions small, folded under ⋯ when the pane is narrow); saved replies sit on one
   scrolling row and the reply box starts at two lines and grows to about eight. Phones keep the stacked layout. */
.ib-meta-s { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-size: 11.5px; }
@media (min-width: 901px) {
  .ib-list, .ib-thread { height: max(420px, calc(100dvh - var(--ib-top, 160px) - 16px)); max-height: none; }
}
.ib-list .ib-rows { flex: 1 1 auto; min-height: 0; }
.ib-thread { container-type: inline-size; container-name: ibth; }
.ib-msgs { min-height: 0; }
.ib-th-one { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 12px; position: relative; }
.ib-who { display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 96px; padding: 3px 8px 3px 3px; border-radius: 999px; cursor: pointer; }
.ib-who:hover, .ib-who:focus-visible { background: rgb(var(--v3-surface-2)); }
.ib-who:hover .ib-th-name { text-decoration: underline; text-underline-offset: 3px; }
.ib-th-one .ib-th-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-th-lbls { flex-wrap: nowrap; overflow: hidden; min-width: 0; max-width: 30%; }
.ib-tc-chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-block; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: help;
  color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); }
.ib-tc-chip.is-amber { color: rgb(var(--v3-warn)); border-color: rgb(var(--v3-warn) / .55); background: rgb(var(--v3-warn) / .12); }
.ib-tc-chip.is-red { color: rgb(var(--v3-neg)); border-color: rgb(var(--v3-neg) / .55); background: rgb(var(--v3-neg) / .12); }
.ib-th-one .ib-th-name { min-width: 0; }
.ib-th-one .ib-th-acts { margin-left: auto; flex: none; flex-wrap: nowrap; gap: 2px; }
.ib-th-one .ib-th-acts form { flex-wrap: nowrap; gap: 2px; }
.ib-th-one .ib-th-acts .btn { gap: 5px; }
.ib-more-btn { display: none; margin-left: auto; flex: none; }
@container ibth (max-width: 820px) { .ib-th-lbls { display: none; } }   /* the labels show on the creator's row in the list, and in their overview */
@container ibth (max-width: 720px) {
  .ib-more-btn { display: inline-flex; }
  .ib-th-one .ib-th-acts { display: none; position: absolute; right: 8px; top: calc(100% + 4px); z-index: 30; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px;
    margin: 0; background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line)); border-radius: 10px; box-shadow: 0 10px 28px rgb(0 0 0 / .28); }
  .ib-th-one .ib-th-acts.is-open { display: flex; }
  .ib-th-one .ib-th-acts form { flex-direction: column; align-items: stretch; }
  .ib-th-one .ib-th-acts .btn, .ib-th-one .ib-th-acts summary { justify-content: flex-start; }
  .ib-th-lbls { display: none; }
}
.ib-reply { padding: 8px 12px 10px; gap: 6px; }
.ib-saved-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ib-saved-row > * { flex: none; white-space: nowrap; }
.ib-text[data-ib-grow] { min-height: 0; resize: none; overflow-y: auto; line-height: 1.45; }
.ib-send .ib-off { flex: 1 1 320px; max-width: none; font-size: 11.5px; line-height: 1.4; }
.ib-send > .btn { flex: none; }
.ib[aria-busy] .ib-rows, .ib[aria-busy] .ib-thread { opacity: .6; transition: opacity .12s ease; }   /* an in-place update on its way (v3.js) */
@media (max-width: 900px) {
  .ib-list, .ib-thread { height: auto; }
  .ib-msgs { max-height: 62vh; }
  .ib-thread .ib2-reply { padding-right: 74px; }   /* the round help button (48 to 56px, 20px in from the edge) sits at the bottom right: the reply box's Send / Copy stays at least 8px clear of it, on a new chat too (sweep 23 Nov; 24 Nov roomier, Terry msg 4876) */
  .ib2-plus .ib2-plusmenu { right: -76px; }   /* on a phone the + menu sat 8px off the left edge of the screen: it opens inside the box now */
}

/* Creator inbox in three panes, like Cruva's (Terry, 8 Nov 2026, msgs 609-612): "I shouldn't need to scroll the whole screen, only the creator DM list and
   the chat itself." On a desktop the page is locked to the window; the list, the chat and the creator pane each fill the height under the top bar, and only
   the list and the messages scroll. The right pane folds away (») and back (the same page, ?side=0). A phone stacks: the list, then a chat with a back arrow. */
@media (min-width: 901px) {
  html:has([data-ib2]), html:has([data-ib2]) body { height: 100%; overflow: hidden; }
  .ib2 { height: calc(100dvh - var(--ib-top, 150px) - 12px); align-items: stretch; gap: 10px; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
  .ib2.has-conv:not(.is-side-off) { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) clamp(250px, 21vw, 320px); }
  .ib2 > .ib-list, .ib2 > .ib-thread, .ib2 > .ib2-side { height: 100%; max-height: none; min-height: 0; }
  /* Terry 23 Nov (computer): while the "N not done" pill shows (progress.js sets --tw-gp-h, its height) the three panes end above it, so the reply box and Send are whole and clickable;
     the pill sits 20px up, so 12px + its height + 16px more clears it with a breathing space. Nothing changes when it is not showing. */
  body.tw-gp-on .ib2 { height: calc(100dvh - var(--ib-top, 150px) - 12px - var(--tw-gp-h, 48px) - 16px); }
}
.ib2 .ib-list { overflow: visible; }   /* the Filters and Inbox menus open over the list; the rows still scroll inside */
.ib2 .ib-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ib2 .ib-pager { flex: none; }   /* the list's pages (speed round 3): the standard footer, kept snug under the list */
.ib2 .ib-pager .tw-pager { padding: 8px 12px; row-gap: 6px; }
/* the list is narrow: the total and the size picker on one line, the page numbers on the next (never cut off at the edge) */
.ib2 .ib-pager .go-pager { display: contents; }
.ib2 .ib-pager .tw-pg-size { order: 2; }
.ib2 .ib-pager .tw-pager::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
.ib2 .ib-pager [data-page-prev], .ib2 .ib-pager .tw-pg-nums, .ib2 .ib-pager [data-page-next] { order: 4; }
.ib2-src { display: flex; align-items: center; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid rgb(var(--v3-line)); }
.ib2-src-t { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); border-bottom: 2px solid transparent; white-space: nowrap; }
.ib2-src-t.is-on { color: rgb(var(--v3-fg)); font-weight: 600; border-bottom-color: rgb(var(--v3-primary)); }
.ib2-src-t.is-soon { cursor: help; color: rgb(var(--v3-fg-3)); }
.ib2-soon { font-size: 9.5px; font-weight: 600; letter-spacing: .02em; padding: 0 5px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); color: rgb(var(--v3-fg-3)); line-height: 15px; }
.ib2-status { margin: 0 0 0 auto !important; padding-bottom: 4px; color: rgb(var(--v3-fg-3)); white-space: nowrap; font-size: 11px !important; flex: none; }
.ib2-status-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the words stay for screen readers; the ⓘ shows them */
.ib2-findrow { display: flex; align-items: center; gap: 4px; padding: 8px 8px 4px; }
.ib2-findrow .ib-find { padding: 0; flex: 1; min-width: 0; }
.ib2-findrow .ib-search .input { height: 32px; font-size: 12.5px; }
.ib2-ico { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid transparent; border-radius: 8px; color: rgb(var(--v3-fg-2)); background: none; cursor: pointer; list-style: none; }
.ib2-ico::-webkit-details-marker { display: none; }
.ib2-ico:hover, .ib2-ico:focus-visible { color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface-2)); }
.ib2-ico.is-on { color: rgb(var(--v3-primary)); border-color: rgb(var(--v3-primary) / .4); background: rgb(var(--v3-primary) / .1); }
.ib2-dot { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: rgb(var(--v3-primary)); color: #fff; font-size: 9.5px; line-height: 15px; text-align: center; }
.ib2-fdrop { border: 0; margin: 0; position: relative; }
.ib2-fdrop > summary { padding: 0; }
.ib2-pop { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; width: 290px; max-height: min(70vh, 460px); overflow-y: auto; padding: 8px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-raised, var(--v3-surface))); box-shadow: 0 10px 28px rgb(0 0 0 / .28); }
.ib2-pop .ib-chips { padding: 0 0 8px; }
.ib2-pop .ib-fk { margin: 2px 0 5px; }
.ib2-folders { display: flex; align-items: center; gap: 4px; padding: 2px 8px 8px; flex-wrap: wrap; }
.ib2-folder { position: relative; }
.ib2-folder > summary { list-style: none; }
.ib2-folder > summary::-webkit-details-marker { display: none; }
.ib2-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 8px; font-size: 12px; font-weight: 500; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); cursor: pointer; white-space: nowrap; }
.ib2-chip:hover { color: rgb(var(--v3-fg)); }
.ib2-chip.is-on { color: #fff; background: rgb(var(--v3-primary)); border-color: rgb(var(--v3-primary)); }
.ib2-chip.is-on .ib-n { color: rgb(255 255 255 / .8); }
.ib2-chip.is-soon { cursor: help; color: rgb(var(--v3-fg-3)); background: none; }
/* a new conversation (Terry msg 4579, like Cruva's): the searched username has no chat, so a row offers one; one line, a long name ends in "…" */
.ib2-newchat { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; margin: 0 8px 6px; padding: 6px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface-2) / .5); font-size: 13px; text-decoration: none; }
.ib2-newchat:hover, .ib2-newchat:focus-visible { border-color: rgb(var(--v3-primary) / .5); background: rgb(var(--v3-primary) / .08); }
.ib2-newchat.is-on { border-color: rgb(var(--v3-primary) / .6); background: rgb(var(--v3-primary) / .1); }
.ib2-newchat-plus { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; color: rgb(var(--v3-primary)); border: 1.5px solid rgb(var(--v3-primary) / .6); background: rgb(var(--v3-primary) / .08); }
.ib2-newchat-t { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-thread > .ib2-new { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ib2-new-in { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 360px; min-width: 0; text-align: center; }
.ib2-new-in p { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }
.ib2-new-in p.ib-off { color: rgb(var(--v3-fg)); }
.ib2-new-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 999px; color: #fff; background: rgb(var(--v3-pos)); }
.ib2-head .ib-who .ib-th-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib2-head .ib-who { flex-shrink: .3; }   /* the name keeps room: the deal chip gives way first (down to "TC…"), so a phone head never shows only "@" */
.ib2-head .ib-tc-chip { min-width: 34px; }
.ib2-folder-pop { left: 0; right: auto; width: 220px; padding: 4px; }
.ib2-mi { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: rgb(var(--v3-fg)); text-align: left; cursor: pointer; }
.ib2-mi:hover, .ib2-mi:focus-visible, .ib2-mi.is-on { background: rgb(var(--v3-surface-2)); }
.ib2-mi .ib-n { margin-left: auto; }
.ib2 .ib-row { gap: 4px; padding: 0 4px 0 8px; }
.ib2 .ib-tick { opacity: 0; width: 14px; transition: opacity .1s ease; }
.ib2 .ib-row:hover .ib-tick, .ib2 .ib-tick:checked, .ib2 .ib-tick:focus-visible, .ib2 .ib-rows:has(.ib-tick:checked) .ib-tick { opacity: 1; }
.ib2 .ib-link { gap: 9px; padding: 8px 0; }
.ib2 .ib-marks { flex-wrap: nowrap; overflow: hidden; }
.ib2 .ib-marks > * { flex: none; }
.ib2 .ib-marks .lbl { font-size: 10px; padding: 0 6px; }
.ib2-bmf { display: contents; }
.ib2-bm { width: 28px; height: 28px; color: rgb(var(--v3-fg-3)); }
.ib2-bm.is-on { color: rgb(var(--v3-primary)); border-color: transparent; background: none; }
.ib2-bm.is-on svg { fill: currentColor; }
.ib2-go { display: inline-grid; place-items: center; width: 20px; color: rgb(var(--v3-fg-3)); flex: none; }
/* the chat */
.ib2 .ib-thread { overflow: hidden; }
/* the inbox with no chat picked (Terry msg 1442): the bubble and words one tight group, centred in the whole conversation column, no inner box */
.ib-thread > .ib-pick { flex: 1 1 auto; min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 24px; border: 0; background: none; }
.ib-pick-in { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 320px; text-align: center; }
.ib-pick-ico { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 999px; background: rgb(var(--v3-accent) / .1); color: rgb(var(--v3-accent)); }
.ib-pick-svg { width: 56px; height: 56px; }
.ib-pick-in p { margin: 0; font-size: 14.5px; line-height: 1.45; color: rgb(var(--v3-fg-2)); }
.ib2-head { gap: 6px !important; min-height: 52px; }
.ib2-back { display: none; }
.ib2-head .ib-who { min-width: 0; }
.ib2-tt { width: 28px; height: 28px; }
.ib2-crm, .ib2-paused { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: help; flex: none; }
.ib2-crm { color: rgb(var(--v3-pos)); border: 1px solid rgb(var(--v3-pos) / .5); background: rgb(var(--v3-pos) / .12); }
.ib2-paused { color: rgb(var(--v3-warn)); border: 1px solid rgb(var(--v3-warn) / .5); background: rgb(var(--v3-warn) / .12); }
.ib2-head-acts { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.ib2-lang { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); border-bottom: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.ib2-lang > span { flex: 1; min-width: 0; }
.ib2-translate { gap: 5px; cursor: help; opacity: .85; }
.ib2 .ib-msgs { min-height: 0; flex: 1 1 auto; }
.ib2-sheets { flex: none; }
.ib2-sheet { display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; padding: 10px 12px; border-top: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2) / .6); }
.ib2-sheet[hidden] { display: none; }
.ib2-sheet form { display: flex; flex-direction: column; gap: 8px; }
.ib2-sheet-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ib2-sheet-h > .ib2-ico { margin-left: auto; width: 28px; height: 28px; }
.ib2-sheet-f { position: sticky; bottom: -10px; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; margin: 0 -12px -10px; padding: 8px 12px; border-top: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); }
.ib2-sheet-f .ib-off { margin-right: auto; flex: 1 1 auto; min-width: 0; font-size: 11px; line-height: 1.35; }
.ib2-sheet-f .btn { flex: none; }
.ib2-chip .ib2-soon { font-size: 9px; padding: 0 4px; }
.ib2-saved { flex-wrap: wrap; }
.ib2-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; }
.ib2-prow { display: flex; align-items: center; gap: 9px; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.ib2-prow:hover { background: rgb(var(--v3-surface-2)); }
.ib2-prow:has(input:checked) { border-color: rgb(var(--v3-primary) / .6); background: rgb(var(--v3-primary) / .08); }
.ib2-prow[hidden] { display: none; }
.ib2-pthumb { width: 34px; height: 34px; flex: none; border-radius: 6px; overflow: hidden; background: rgb(var(--v3-surface-3)); border: 1px solid rgb(var(--v3-line)); }
.ib2-pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ib2-pname { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib2-psub { display: block; font-size: 11px; color: rgb(var(--v3-fg-3)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib2-drop { display: grid; place-items: center; gap: 6px; min-height: 120px; padding: 10px; border: 1px dashed rgb(var(--v3-line-2)); border-radius: 10px; font-size: 12.5px; color: rgb(var(--v3-fg-3)); cursor: pointer; text-align: center; }
.ib2-drop:hover { border-color: rgb(var(--v3-primary) / .6); }
.ib2-drop > span { display: inline-flex; align-items: center; gap: 6px; }
.ib2-imgprev { max-height: 160px; max-width: 100%; border-radius: 8px; }
.ib2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ib2-f { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.ib2-f .input { font-weight: 400; font-size: 12.5px; }
.ib2-f-wide { grid-column: 1 / -1; }
.ib2-f-check { flex-direction: row; align-items: center; gap: 6px; align-self: end; padding-bottom: 6px; }
.ib2-reply { padding: 8px 10px 10px; gap: 4px; flex: none; }
.ib2-compose { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border: 1px solid rgb(var(--v3-input-line, var(--v3-line-2))); border-radius: 12px; background: rgb(var(--v3-input, var(--v3-surface))); }
.ib2-compose .ib-text { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 6px 8px; }
.ib2-compose .ib-text:focus { outline: none; box-shadow: none; }
.ib2-compose:focus-within { border-color: rgb(var(--v3-primary) / .6); }
.ib2-plus { position: relative; flex: none; }
.ib2-plus > summary { list-style: none; }
.ib2-plus > summary::-webkit-details-marker { display: none; }
.ib2-plusbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 9px; color: rgb(var(--v3-fg)); cursor: pointer; }
.ib2-plusbtn:hover, .ib2-plus[open] .ib2-plusbtn { background: rgb(var(--v3-surface-2)); }
.ib2-plusmenu { top: auto; bottom: calc(100% + 8px); right: 0; width: 230px; padding: 4px; }
.ib2-send { flex: none; height: 34px; gap: 5px; }
.ib2-off { margin: 2px 2px 0; font-size: 11px; line-height: 1.35; color: rgb(var(--v3-fg-3)); max-width: none; }
/* the creator pane */
.ib2-side { display: flex; flex-direction: column; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0 0 10px; }
.ib2-side-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-bottom: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); }
.ib2-side-h .btn { gap: 5px; }
.ib2-side-h .lbl-pop { right: 0; }
.ib2-pausebtn.is-on { color: rgb(var(--v3-warn)); border-color: rgb(var(--v3-warn) / .55); }
.ib2-side-tags { padding: 6px 12px 0; }
.ib2-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 0; }
.ib2-sec-h { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.ib2-sec-hr { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ib2-range .input { height: 28px; font-size: 12px; padding: 0 8px; }
.ib2-note { font-size: 11px; color: rgb(var(--v3-fg-3)); line-height: 1.35; }
.ib2-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ib2-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 9px; border: 1px solid rgb(var(--v3-line)); border-radius: 9px; background: rgb(var(--v3-surface-2) / .5); text-align: left; }
.ib2-tl { font-size: 11px; color: rgb(var(--v3-fg-3)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib2-tv { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib2-tv.na { font-size: 11.5px; font-weight: 500; color: rgb(var(--v3-fg-3)); white-space: normal; }
.ib2-tile .spark { width: 100%; height: 26px; margin-top: 2px; }
.ib2-manage { width: min(920px, 94vw); max-height: 86vh; padding: 0; overflow: auto; color: rgb(var(--v3-fg)); }
.ib2-manage::backdrop { background: rgb(0 0 0 / .45); }
.ib2-manage .card-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
/* a phone, or a narrow window: the list, then the chat with a back arrow; the creator pane is the side panel (their name) */
@media (max-width: 767px) { .ib2 { --ib-tabs: calc(56px + env(safe-area-inset-bottom, 0px)); } }   /* the phone's tab bar (h-14) */
@media (max-width: 900px) {
  .ib2 { grid-template-columns: minmax(0, 1fr) !important; }
  .ib2.has-conv > .ib-list, .ib2:not(.has-conv) > .ib-thread, .ib2 > .ib2-side { display: none; }
  .ib2-back { display: inline-grid; }
  .ib2-sidebtn { display: none; }
  .ib2 .ib-thread { height: calc(100dvh - var(--ib-top, 120px) - 12px - var(--ib-tabs, 0px)); max-height: none; }
  /* Terry 23 Nov (phone): the "N not done" pill (#tw-gp, progress.js) sat over the reply box. The chat now ends above the phone's tab bar (--ib-tabs) and,
     while the pill shows, above the pill too (--tw-gp-h is its height, set by progress.js; 28px = its gap to the bar or the edge plus a breathing space),
     so the box is whole and tappable with or without the pill, and the keyboard's smaller dvh keeps the same sums. */
  body.tw-gp-on .ib2 .ib-thread { height: calc(100dvh - var(--ib-top, 120px) - 12px - var(--ib-tabs, 0px) - var(--tw-gp-h, 48px) - 28px); }
  .ib2 .ib-rows { max-height: none; }
  .ib2-grid { grid-template-columns: minmax(0, 1fr); }
}
/* live filters (Terry, 8 Nov 2026, msg 581): a region being refreshed in place dims a touch while TikWhizz answers, with no jump in the layout */
/* a swap in place dims only when it's genuinely slow (Terry msg 1322: no "small very fast refresh"): a read-ahead or quick answer never shows it */
.is-live-busy { opacity: .55; transition: opacity .12s ease .35s; }
/* another page on its way (nav.js): the top bar's thin progress line, the page itself stays as it is until the new one is ready */
html.tw-nav-busy .ds-progress { display: block !important; }
/* No blink (Terry msgs 1465, 1467, 1469, 1471: "you click it, it opens"). ds.css fades every #panel child in from opacity 0, staggered to
   280 ms: on Navy and Dark that showed the page's dark background for a moment on every page load and every swap ("the screen goes black for a
   millisecond"). The page shows at once instead, on a normal load and on a swap alike. The meters' grow stays for a page's first paint only:
   once a page has settled (v3.js sets tw-settled) anything swapped in shows its final state straight away. */
#panel > * { animation: none !important; }
html.tw-settled .ds-meter > span, html.tw-settled .ds-meter > div, html.tw-settled .ds-ribbon > i { animation: none !important; }
/* the pager's Previous / Next at either end: shown, but not a link to the same page */
[data-pager] .go-pager a.is-off { opacity: .4; pointer-events: none; }
/* ---- the Agency Dashboard (All shops; Terry, msgs 550-556 and 560): Cruva's header row (include toggle, assignee and shop pickers, the £ / $ / € switch),
   its tabs, sparklines in the shop table, the Customise popover with drag handles, Target Progress bars and the Top Shops chips. Every theme. */
.ag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-pick { min-height: 34px; padding-inline: 10px; gap: 6px; }
.ag-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(var(--v3-fg-2)); padding: 6px 4px; border-radius: 8px; }
.ag-toggle:hover { color: rgb(var(--v3-fg)); }
.ag-toggle-k { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgb(var(--v3-line-2)); transition: background .15s; flex-shrink: 0; }
.ag-toggle-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.ag-toggle[aria-checked="true"] .ag-toggle-k { background: rgb(var(--v3-primary)); }
.ag-toggle[aria-checked="true"] .ag-toggle-k::after { transform: translateX(14px); }
.ag-seg { display: inline-flex; border: 1px solid rgb(var(--v3-line-2)); border-radius: 9px; padding: 2px; background: rgb(var(--v3-surface)); }
.ag-seg a { padding: 4px 10px; border-radius: 7px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.ag-seg a:hover { color: rgb(var(--v3-fg)); }
.ag-seg a[aria-pressed="true"] { background: rgb(var(--v3-primary) / .14); color: rgb(var(--v3-fg)); font-weight: 600; }
.ag-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-tabs .tabs { border-bottom: 0; }
.ag-tab-soon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: rgb(var(--v3-fg-3)); cursor: help; }
.ag-tab-soon:hover { background: rgb(var(--v3-fg) / .05); }
.ag-spark { width: 72px; height: 26px; flex-shrink: 0; color: rgb(var(--v3-primary)); overflow: visible; }
.ag-cell { display: inline-flex; align-items: center; gap: 10px; }
.ag-fig { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.ag-pct { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; }
.ag-pct-up { color: rgb(var(--v3-pos)); }
.ag-pct-down { color: rgb(var(--v3-neg)); }
.ag-pct-flat, .ag-pct-na { color: rgb(var(--v3-fg-3)); }
.ag-plus { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: rgb(var(--v3-fg-3)); border: 1px dashed rgb(var(--v3-line-2)); }
.ag-plus:hover { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-fg-3)); }
.ag-act { text-align: right; }
.ag-act-h { text-align: right !important; }
.ag-go { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.ag-go:hover { background: rgb(var(--v3-hover)); }
.ag-ext { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 8px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); font-size: 10.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; background: rgb(var(--v3-fg) / .06); font-size: 11.5px; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.ag-chip b { font-weight: 600; color: rgb(var(--v3-fg)); }
.ag-more { font-size: 11.5px; color: rgb(var(--v3-fg-3)); cursor: help; white-space: nowrap; }
.ag-xdetail td { background: rgb(var(--v3-fg) / .03); }
[data-ag-xrow] { cursor: pointer; }
.ag-cust-list { display: flex; flex-direction: column; gap: 1px; max-height: 340px; overflow: auto; }
.ag-cust-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 7px; font-size: 13px; color: rgb(var(--v3-fg)); }
.ag-cust-row:hover { background: rgb(var(--v3-fg) / .05); }
.ag-cust-row.is-locked { color: rgb(var(--v3-fg-3)); }
.ag-cust-row.is-drag { opacity: .5; }
.ag-grip { cursor: grab; color: rgb(var(--v3-fg-3)); display: inline-flex; }
.ag-meter { display: block; height: 8px; border-radius: 999px; overflow: hidden; background: rgb(var(--v3-fg) / .08); }
.ag-meter > span { display: block; height: 100%; border-radius: 999px; }
[data-agency-cards] .fc-label .info-tip { color: rgb(var(--v3-fg-3)); }
@media (max-width: 767px) { .ag-seg { order: 5; } .ag-spark { width: 48px; } }
/* a chart's hover as a page element (v3.js pageTip): never cut off by a small chart's box (Terry, 8 Nov 2026) */
.chart-page-tip { position: fixed; z-index: 90; pointer-events: none; opacity: 0; max-width: 320px; padding: 6px 10px; border-radius: 8px; white-space: pre-line;
  font-size: 12.5px; font-weight: 500; line-height: 1.4; color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line-2));
  box-shadow: 0 6px 20px rgb(0 0 0 / .25); transition: opacity .12s; }
/* CRM Reports' pie chips: the full words, wrapping onto a second line if needed, never cut short */
.crp-pie-body { flex-wrap: wrap; }
.crp-pchips { flex: 1 1 140px; }
.crp-pchip { white-space: normal; max-width: 100%; }
/* Add Products cards (Terry, 8 Nov 2026): Commission, the Shop Ads tick and its % sit in one row like Cruva's, never wrapping under each other */
.ap-rates { flex-wrap: wrap; gap: 8px 14px; }
.ap-adsgrp { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }   /* the Shop Ads tick, its ⓘ and its % stay together; on a narrow screen the group moves down as one */
.ap-rates .ap-pct .input, .ap-pct .input { width: 3.6rem; min-width: 3.6rem; flex: none; padding-left: 8px; padding-right: 6px; }
.ap-rates > * { flex: none; }
.ap-rates .ap-com { gap: 6px; }
/* Coming soon (Terry, 8 Nov 2026, msg 531): a Cruva feature we cannot feed yet stays in place, muted, switched off, with an info bubble saying why */
.soon-chip { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; color: rgb(var(--v3-fg-3)); background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); cursor: help; vertical-align: middle; }
.is-soon { opacity: .6; cursor: help; }
.is-soon:hover { background: transparent; }
.soon-opt { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13px; color: rgb(var(--v3-fg-3)); cursor: help; }
.soon-opt input { opacity: .5; }
.soon-card { padding: 14px 16px; border: 1px dashed rgb(var(--v3-line-2)); border-radius: 12px; color: rgb(var(--v3-fg-3)); font-size: 13px; }
.soon-card-h { display: flex; align-items: center; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.soon-card p { margin-top: 6px; }
th .soon-chip, td .soon-chip { margin-left: 4px; }
/* a column that's Coming soon (Samples' 30d GMV): the chip goes under the heading, inside its own column, so the next heading never covers it */
th[data-soon-col] .soon-chip { display: flex; width: max-content; margin: 2px 0 0 auto; }
/* the Dashboard Videos tab's Coming soon filters wrap onto more lines on a phone instead of piling on top of each other (they were a fixed 32px tall) */
[data-video-soon] { min-height: 32px; }
.cf-soon { display: flex; flex-direction: column; gap: 0; }   /* scrolls with the Filters menu itself, never a second scroll box */
/* a figure worked out from an estimate says so under the number (Terry, 8 Nov 2026: a guess never looks like a fact) */
.est-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-top: 2px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .02em; color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .12); border: 1px solid rgb(var(--v3-warn) / .35); cursor: help; width: fit-content; }
/* the wizard Step 2 results (and any stacked table): numbers on the left under their headings too (Terry s rule) */
.aw-results table.tbl td.num, .aw-results table.tbl th.num, .tbl.stack td.num, .tbl.stack th.num { text-align: left; }
.aw-results table.tbl th.num > *, .aw-results table.tbl td.num > * { justify-content: flex-start; }
.soon-opt input, .is-soon input { pointer-events: none; }   /* a disabled box swallows the hover; the label shows why instead */
/* My affiliates' Filters: Cruva's other 16 filters (Coming soon) fold under one line, so the menu stays short (Terry, 8 Nov 2026) */
.cf-soon-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.cf-soon-more > summary::-webkit-details-marker { display: none; }
.cf-soon-more > summary::after { content: "▾"; margin-left: auto; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.cf-soon-more[open] > summary::after { content: "▴"; }

/* the date range picker: static/shared/rangepick.css (Terry msg 1655: one picker, brand, creator and the client link). The brand side loads it after this file. */
.pop-flip { left: auto !important; right: 0 !important; }   /* a popover that would leave the screen opens leftwards from its button (v3.js edge) */

/* Sample requests' Products menu (Terry msg 742): each product's picture then its name; the SKU menu beside it holds only that product's SKUs.
   The pictures' own box (.fx-thumb) is in feed.css, which Samples loads on a feed shop; these sizes stand without it. */
.sr-psum { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.sr-psum .fx-thumb { flex: none; width: 22px; height: 22px; border-radius: 5px; overflow: hidden; }
.sr-psum > span { min-width: 0; }
.sr-psearch { position: relative; display: flex; align-items: center; margin-bottom: 6px; }
.sr-psearch svg { position: absolute; left: 10px; color: rgb(var(--v3-fg-3)); pointer-events: none; }
.sr-psearch .input { width: 100%; padding-left: 30px; height: 32px; }
.sr-plist { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.sr-prow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 8px; font-size: 13px; color: rgb(var(--v3-fg)); }
.sr-prow:hover, .sr-prow:focus-visible { background: rgb(var(--v3-hover)); }
.sr-prow.on { background: rgb(var(--v3-accent-soft)); font-weight: 600; }
.sr-prow .fx-thumb, .sr-psum .fx-thumb { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); }
.sr-prow .fx-thumb { flex: none; width: 32px; height: 32px; overflow: hidden; border-radius: 7px; }
.sr-prow .fx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-prow > svg { flex: none; width: 32px; color: rgb(var(--v3-fg-3)); }
.sr-prow > span { min-width: 0; }
.sr-prow[hidden] { display: none; }
/* in a filter row (Sample requests) the shared picker's button sits like the other fields: as wide, as tall, its words to the left */
.v8s-f [data-rangepick] > .rp-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; height: 32px; width: 13.5rem; max-width: 100%; }
.v8s-f [data-rangepick] > .rp-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-psum { width: 15rem; }
.sr-pnone, .sr-pnote { padding: 6px 8px 2px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
/* several products / SKUs at once (Terry msg 1938): a tick box on the left of each row, the count and "Deselect all" top right, a few small
   pictures on the closed button when several are picked, and SKU headings by product when no product is picked */
.sr-mphead { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; font-size: 12px; }
.sr-mpn { flex: 1; min-width: 0; color: rgb(var(--v3-fg-3)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-mpbtn { flex: none; font-size: 12px; font-weight: 600; color: rgb(var(--v3-accent)); padding: 3px 6px; border-radius: 6px; }
.sr-mpbtn:hover:not(:disabled), .sr-mpbtn:focus-visible { background: rgb(var(--v3-hover)); }
.sr-mpbtn:disabled { color: rgb(var(--v3-fg-3)); opacity: .55; cursor: default; }
.sr-mpbtn[hidden] { display: none; }
.sr-mprow { cursor: pointer; }
.sr-mprow.on { font-weight: 500; }
.sr-mpbox { flex: none; width: 16px; height: 16px; margin: 0; accent-color: rgb(var(--v3-accent)); cursor: pointer; }
.sr-mpt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sr-mpid { font-size: 11px; color: rgb(var(--v3-fg-3)); font-weight: 400; }
.sr-mpgrp { margin: 6px 8px 2px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: rgb(var(--v3-fg-3)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-mpgrp[hidden] { display: none; }
.sr-mpfoot { display: flex; justify-content: flex-end; padding: 8px 2px 2px; border-top: 1px solid rgb(var(--v3-line)); margin-top: 6px; }
.sr-mpfoot .btn { min-width: 6rem; justify-content: center; }
@media (min-width: 640px) { .sr-mpfoot { display: none; } }   /* a phone's sheet has a Done button; a desktop menu applies as it closes */
.sr-mpics { display: inline-flex; flex: none; }
.sr-mpics .fx-thumb { width: 20px; height: 20px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 2px rgb(var(--v3-surface)); }
.sr-mpics .fx-thumb + .fx-thumb { margin-left: -6px; }
/* the one-row filter bar keeps its buttons narrow: on a laptop the closed button reads "3 products" (the pictures would push the words to "3 …");
   from 1600px wide it has room for the pictures too */
.v8s-one .sr-psum .sr-mpics { display: none; }
@media (min-width: 1600px) { .v8s-one .sr-psum .sr-mpics { display: inline-flex; } .v8s-one .sr-psum.is-multi { width: 11rem; } }
/* Creator community › Campaigns (Terry, 9 Nov 2026, part 4a; Cruva's page in TikWhizz's look): the head row, the four community cards with a
   small area chart each, Contests / Retainers / Applications, the sub-tabs, the filter row, the table (sharing the Automations page's pills),
   the page box, and the seven type cards behind + Create, each in its own colour. */
.cc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.cc-cards { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-card { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-card-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); }
.cc-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgb(var(--v3-accent) / .12); color: rgb(var(--v3-accent-ink)); flex: none; }
.cc-card-v { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: rgb(var(--v3-fg)); font-variant-numeric: tabular-nums; }
.cc-area { width: 100%; height: 56px; display: block; }
.cc-area polygon { fill: rgb(var(--v3-accent) / .14); stroke: none; }
.cc-area polyline { fill: none; stroke: rgb(var(--v3-accent)); stroke-width: 1.75; stroke-linejoin: round; }
.cc-area.is-flat polygon { fill: transparent; }
.cc-area.is-flat polyline { stroke: rgb(var(--v3-line-2)); stroke-dasharray: 3 3; }
.cc-card-x { display: flex; justify-content: space-between; font-size: 11px; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; }
.cc-quiet { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-hub { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; color: rgb(var(--v3-fg-2));
  background: rgb(var(--v3-accent) / .06); border: 1px dashed rgb(var(--v3-accent) / .35); }
.cc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 0; }
.cc-tab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg-2));
  box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); }
.cc-tab:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-hover)); }
.cc-tab.is-on { color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .1); box-shadow: inset 0 0 0 1.5px rgb(var(--v3-accent) / .55); }
.cc-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: rgb(var(--v3-fg) / .08); color: rgb(var(--v3-fg-2)); }
.cc-tab.is-on .cc-n { background: rgb(var(--v3-accent)); color: #fff; }
.cc-subs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px 0; }
.cc-sub { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); }
.cc-sub:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-hover)); }
.cc-sub.is-on { color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface-2)); box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); }
.cc-sub.is-soon { cursor: help; color: rgb(var(--v3-fg-3)); }
.cc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.cc-typesel { width: 12.5rem; max-width: 100%; height: 32px; }
.cc-search { display: inline-flex; align-items: center; gap: 6px; }
.cc-search .input { width: 14rem; max-width: 100%; height: 32px; }
.cc-arch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
table.cc-tbl .cc-nm { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: rgb(var(--v3-fg)); }
@media (min-width: 768px) { table.cm-tbl.cc-tbl th, table.cm-tbl.cc-tbl td { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 1599px) { .cc-slug { display: none; } }   /* a laptop: the link's copy and open buttons stay, its words step aside so every column fits */
@media (min-width: 768px) and (max-width: 1399px) { table.cc-tbl .cc-wide { display: none; } }   /* a smaller laptop: Applied and Views (on the cards and in the CSV) step aside before anything is cut */
.cc-type { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
  color: rgb(var(--cc-c)); background: rgb(var(--cc-c) / .1); box-shadow: inset 0 0 0 1px rgb(var(--cc-c) / .3); }
.cc-url { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.cc-slug { font-size: 12px; color: rgb(var(--v3-fg-2)); font-variant-numeric: tabular-nums; }
.cc-url .is-off { opacity: .4; cursor: help; }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cc-pager { display: inline-flex; align-items: center; gap: 6px; }
.cc-pager a.is-off { opacity: .4; pointer-events: none; }
.cc-pbox { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.cc-pbox .input { width: 3.5rem; height: 30px; text-align: center; padding: 0 4px; }
.cc-apps { display: flex; flex-direction: column; padding: 8px 14px 14px; }
.cc-apps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgb(var(--v3-line)); font-size: 13px; }
.cc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 20px 40px; }
.cc-empty h3 { font-size: 16px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-empty p { max-width: 34rem; font-size: 13px; line-height: 1.5; color: rgb(var(--v3-fg-2)); }
/* the seven types: one colour each, the same on the type cards and the table's type pill */
.cc-tone-teal { --cc-c: 20 184 166; } .cc-tone-amber { --cc-c: 245 158 11; } .cc-tone-blue { --cc-c: 59 130 246; } .cc-tone-violet { --cc-c: 139 92 246; }
.cc-tone-green { --cc-c: 34 197 94; } .cc-tone-pink { --cc-c: 236 72 153; } .cc-tone-rose { --cc-c: 244 63 94; }
.cc-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: rgb(var(--cc-c, var(--v3-accent))); background: rgb(var(--cc-c, var(--v3-accent)) / .14); box-shadow: inset 0 0 0 1px rgb(var(--cc-c, var(--v3-accent)) / .3); }
.cc-types-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-types-h h2 { font-size: 17px; font-weight: 650; }
.cc-tgrid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-tcard { display: flex; }
.cc-tbtn { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; padding: 0 0 14px; text-align: left; border-radius: 14px; overflow: hidden;
  background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line)); cursor: pointer; transition: border-color .15s, transform .15s; }
.cc-tbtn:hover, .cc-tbtn:focus-visible { border-color: rgb(var(--cc-c) / .7); transform: translateY(-1px); }
.cc-tart { position: relative; display: flex; align-items: center; justify-content: center; height: 96px; margin-bottom: 6px;
  background: radial-gradient(120% 90% at 50% 0%, rgb(var(--cc-c) / .22), rgb(var(--cc-c) / .04) 70%); border-bottom: 1px solid rgb(var(--v3-line)); }
.cc-tgo { position: absolute; top: 10px; right: 10px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface) / .8); box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); }
.cc-tname { padding: 0 14px; font-size: 14px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-tdesc { padding: 0 14px; font-size: 12.5px; line-height: 1.45; color: rgb(var(--v3-fg-2)); }
.cc-tex { margin-top: auto; padding: 6px 14px 0; font-size: 12px; line-height: 1.45; color: rgb(var(--v3-fg-2)); }
.cc-tex b { color: rgb(var(--cc-c)); font-weight: 650; }
/* the builder (part 4b): the head, the five steps with their marks, the step's panel and the phone preview beside it */
.cc-bform [hidden] { display: none !important; }   /* a field shown only with a choice, a step not on screen */
/* GMV Max notes on the Dashboard's GMV Max tab, where feed.css isn't loaded (fleet join, 20 Nov 2026): the same note box as Ads › TikTok ads */
.ls-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; border: 1px solid rgb(var(--v3-line)); }
.cc-warn { color: rgb(var(--v3-fg)); background: rgb(var(--v3-warn) / .08); border-color: rgb(var(--v3-warn) / .4); }
.cc-warn > svg { color: rgb(var(--v3-warn)); }
.cc-bhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.cc-bhead h2 { font-size: 16px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-bhead p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cc-tile.cc-tile-sm { width: 36px; height: 36px; border-radius: 10px; }
.cc-saved { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-sbar { position: sticky; top: 52px; z-index: 6; display: flex; align-items: center; gap: 10px; margin: 0 -4px 10px; padding: 8px 4px; background: rgb(var(--v3-bg)); }   /* the steps and Save stay in reach on a long step */
.cc-steps { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.cc-savebox { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.cc-savebox .cc-saved { max-width: 220px; text-align: right; line-height: 1.3; }
@media (max-width: 1279px) { .cc-savebox .cc-saved:not(:empty) { max-width: 120px; } }
.cc-step { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg-2));
  background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line)); cursor: pointer; }
.cc-step:hover { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-line-2)); }
.cc-step.is-on { color: rgb(var(--v3-accent-ink)); border-color: rgb(var(--v3-accent) / .7); background: rgb(var(--v3-accent) / .08); }
.cc-mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; font-size: 11.5px; font-weight: 700; flex: none;
  color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .08); }
.cc-mk.is-ok { color: #fff; background: rgb(var(--v3-pos)); }
/* Terry msg 3777: a step passed with something missing keeps its number, with a small warning dot */
.cc-mk.is-bad { position: relative; }
.cc-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 999px; background: rgb(var(--v3-neg)); box-shadow: 0 0 0 2px rgb(var(--v3-surface)); }
.cc-step.is-on .cc-mk:not(.is-ok) { color: #fff; background: rgb(var(--v3-accent)); }
.cc-bgrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.cc-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.cc-ph { font-size: 15px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-sec { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgb(var(--v3-line)); }
.cc-sec > .btn { align-self: flex-start; }
.cc-sec h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cc-f > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.cc-f > span i { color: rgb(var(--v3-neg)); font-style: normal; }
.cc-f > span small, .cc-sec h4 small { font-weight: 500; color: rgb(var(--v3-fg-3)); }
.cc-f .input { width: 100%; }
.cc-f textarea.input { resize: vertical; min-height: 64px; line-height: 1.45; }
.cc-full { width: 100%; }
.cc-hint { font-size: 12px; line-height: 1.45; color: rgb(var(--v3-fg-3)); }
.cc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.cc-row > .cc-f { flex: 1 1 150px; }
.cc-row.cc-two > * { flex: 1 1 260px; }
.cc-money { display: flex; align-items: center; position: relative; }
.cc-money .cc-cur { position: absolute; left: 10px; font-size: 13px; color: rgb(var(--v3-fg-3)); pointer-events: none; }
.cc-money .input { padding-left: 24px; }
.cc-num { width: 100%; }
.cc-tick { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: rgb(var(--v3-fg)); cursor: pointer; }
.cc-tick input { margin-top: 3px; flex: none; }
.cc-tick b { font-weight: 550; }
.cc-tick small { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-segopt { position: relative; }
.cc-segopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cc-segopt span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2));
  border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface)); }
.cc-segopt input:checked + span { color: rgb(var(--v3-accent-ink)); border-color: rgb(var(--v3-accent) / .7); background: rgb(var(--v3-accent) / .1); }
.cc-segopt input:focus-visible + span { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.cc-chs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cc-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--v3-fg)); cursor: pointer; }
.cc-list { display: flex; flex-direction: column; gap: 8px; }
.cc-li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-li-n { padding-top: 24px; font-size: 12px; font-weight: 650; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.cc-li-f { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cc-li-f > .cc-f { flex: 1 1 110px; }
.cc-li-f > .cc-f.cc-grow { flex: 2 1 180px; }
.cc-li-f > .cc-full { flex-basis: 100%; }
.cc-li > .btn-icon { margin-top: 20px; }
.cc-cnt { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.cc-cnt.is-bad { color: rgb(var(--v3-neg)); font-weight: 600; }
.cc-toks { display: inline-flex; flex-wrap: wrap; gap: 4px; font-weight: 500; }
.cc-tok { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11px; color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .1); border: 1px solid rgb(var(--v3-accent) / .3); cursor: pointer; }
.cc-tok:hover { background: rgb(var(--v3-accent) / .18); }
.cc-offp { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .1); }
.cc-prods { display: flex; flex-direction: column; gap: 8px; }
.cc-psearch { display: flex; align-items: center; gap: 6px; color: rgb(var(--v3-fg-3)); }
.cc-psearch .input { height: 32px; }
.cc-plist { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; }
.cc-prow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 13px; color: rgb(var(--v3-fg)); border-top: 1px solid rgb(var(--v3-line)); cursor: pointer; }
.cc-prow:first-child { border-top: 0; }
.cc-prow:hover { background: rgb(var(--v3-hover)); }
.cc-prow[hidden] { display: none; }
.cc-pthumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); }
/* Terry msg 810 / 3777: Next with something missing says why in place — the step's top line (each a link to its box), the boxes in red with a
   line under each, "2 to fill in" by Next; Save that appears with changes; the best-videos picker */
.cc-why { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: rgb(var(--v3-fg));
  background: rgb(var(--v3-neg) / .09); border: 1px solid rgb(var(--v3-neg) / .35); }
.cc-why p { margin: 0; min-width: 0; }
.cc-why b { font-weight: 650; }
.cc-why-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 999px; flex: none; font-size: 12px; font-weight: 800; color: #fff; background: rgb(var(--v3-neg)); }
.cc-why-go { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: rgb(var(--v3-neg)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cc-why-go:hover { text-decoration-thickness: 2px; }
.cc-why-go:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; border-radius: 3px; }
.cc-ferr { display: flex; align-items: flex-start; gap: 5px; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: rgb(var(--v3-neg)); }
.cc-ferr svg { flex: none; margin-top: 1px; }
.cc-bgrid2 + .cc-ferr, .cc-rule + .cc-ferr, .cc-addbig + .cc-ferr, .cc-rates + .cc-ferr { margin-top: 6px; }
.cc-left { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.cc-left[hidden] { display: none; }
.cc-bform button.is-bad:not(.input), .cc-bform summary.is-bad:not(.input), .cc-bform .cc-drop.is-bad, .cc-bform .cc-box.is-bad { box-shadow: 0 0 0 2px #d92d20; border-radius: 10px; }
.cc-bform select.input.is-bad { border-color: #d92d20; }
.cc-bform .input.is-bad, .cc-bform .input.is-bad:focus { border-color: #d92d20; box-shadow: 0 0 0 3px rgb(217 45 32 / .25); }
.cc-bform .cc-chs.is-bad, .cc-bform .cc-list.is-bad { border-radius: 10px; box-shadow: 0 0 0 2px #d92d20; }
.cc-bestdlg { width: min(640px, calc(100vw - 32px)); }
.cc-best-list { display: flex; flex-direction: column; max-height: min(60vh, 560px); overflow-y: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; }
.cc-best-list > .cc-hint { padding: 14px; }
.cc-brow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; border-top: 1px solid rgb(var(--v3-line)); cursor: pointer; }
.cc-brow:first-child { border-top: 0; }
.cc-brow:hover { background: rgb(var(--v3-hover)); }
.cc-brow.is-in { opacity: .6; cursor: default; }
.cc-bthumb { position: relative; width: 40px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); overflow: hidden; }
.cc-bthumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-bplay { position: absolute; right: 3px; bottom: 3px; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .55); }
.cc-bmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-bmain b { font-weight: 600; color: rgb(var(--v3-fg)); }
.cc-bmain small { color: rgb(var(--v3-fg-3)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-bnums { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; flex: none; }
.cc-bnums b { font-weight: 650; }
.cc-bnums small { color: rgb(var(--v3-fg-3)); }
.cc-bmatch { font-size: 11px; font-weight: 600; color: rgb(var(--v3-accent)); }
.cc-best-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 640px) { .cc-best-foot { flex-direction: column; align-items: stretch; } .cc-best-foot > span { justify-content: space-between; } }
.cc-picon { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.cc-pnone { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-imgrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cc-bingo { display: grid; gap: 8px; }
.cc-bingo.cc-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-bingo.cc-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-cell { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-cell[hidden] { display: none; }
.cc-cell .cc-li-n { padding: 0; }
.cc-cell .input { height: 30px; font-size: 12px; padding: 0 6px; }
.cc-evt { width: 100%; font-size: 13px; border-collapse: collapse; }
.cc-evt th { font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-3)); text-align: center; padding: 4px 6px; }
.cc-evt td { padding: 7px 6px; border-top: 1px solid rgb(var(--v3-line)); text-align: center; color: rgb(var(--v3-fg)); }
.cc-evt td:first-child, .cc-evt th:first-child { text-align: left; }
.cc-pnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid rgb(var(--v3-line)); }
.cc-review { display: flex; flex-direction: column; gap: 12px; }
.cc-review .ls-note { margin-bottom: 0; }
.cc-gaps { border: 1px solid rgb(var(--v3-warn) / .45); border-radius: 12px; background: rgb(var(--v3-warn) / .06); overflow: hidden; }
.cc-gaps h3 { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-gaps h3 svg { color: rgb(var(--v3-warn)); }
.cc-gaps li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; color: rgb(var(--v3-fg)); border-top: 1px solid rgb(var(--v3-warn) / .25); }
.cc-gap-step { flex: none; width: 150px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.cc-left ul { margin-top: 4px; }
.cc-left li { font-size: 12.5px; }
.cc-sum { border: 1px solid rgb(var(--v3-line)); border-radius: 12px; padding: 10px 14px 12px; }
.cc-sum-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cc-sum-h h3 { font-size: 13px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-sum ul { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-sum li { overflow-wrap: anywhere; }
.cc-after { padding: 12px 14px; border-radius: 12px; font-size: 13px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.cc-after b { color: rgb(var(--v3-fg)); }
.cc-after li { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cc-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 8px; }
.cc-phone { border-radius: 30px; padding: 10px; background: rgb(var(--v3-fg) / .9); box-shadow: 0 18px 40px rgb(0 0 0 / .25); }
.cc-ptabs { display: flex; justify-content: center; gap: 4px; padding: 4px 0 8px; }
.cc-ptabs button { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-surface) / .75); }
.cc-ptabs button.is-on { color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface)); }
.cc-pscreen { height: 470px; overflow-y: auto; border-radius: 22px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.cc-pimg { display: grid; place-items: center; height: 150px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); }
.cc-pimg img { width: 100%; height: 100%; object-fit: cover; }
.cc-pbody { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 16px; font-size: 12px; }
.cc-pbody h4 { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.cc-ptype { align-self: flex-start; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--v3-accent-ink)); }
.cc-pdates { display: flex; align-items: center; gap: 4px; color: rgb(var(--v3-fg-2)); }
.cc-pcard { padding: 8px 10px; border-radius: 10px; background: rgb(var(--v3-surface-2)); }
.cc-pcard b { display: block; margin-bottom: 3px; font-size: 11px; color: rgb(var(--v3-fg-2)); }
.cc-pcard li { margin-top: 2px; overflow-wrap: anywhere; }
.cc-pdesc, .cc-pterms { white-space: pre-line; line-height: 1.45; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }
.cc-pjoin { display: grid; place-items: center; height: 38px; margin-top: 4px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #fff; background: rgb(var(--v3-accent)); }
.cc-ptick { display: flex; align-items: center; gap: 8px; }
.cc-pbx { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgb(var(--v3-line-2)); flex: none; }
.cc-pnote { font-size: 11px; color: rgb(var(--v3-fg-3)); }
.cc-pbubble { padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: rgb(var(--v3-surface-2)); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
/* Terry msg 817, Cruva's page 1: the head, underlined steps, a card per part, the small editor, the product menu, the picture drop zone,
   hashtag chips, switches with (i) tips, Step N of 5 at the foot; the Branding card and an iPhone for the preview */
.cc-crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: rgb(var(--v3-fg-3)); margin-bottom: 4px; }
.cc-crumb:hover { color: rgb(var(--v3-fg)); }
.cc-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: rgb(var(--v3-fg)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tsub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-steps { gap: 0 10px; flex-wrap: nowrap; }
.cc-steps > li { flex: 1 1 auto; min-width: 0; }
.cc-step { width: 100%; height: 38px; padding: 0 2px; gap: 8px; border: 0; border-bottom: 2px solid rgb(var(--v3-line-2)); border-radius: 0; background: transparent; font-weight: 550; white-space: nowrap; overflow: hidden; }
.cc-step > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cc-step:hover { border-color: rgb(var(--v3-fg-3)); background: transparent; }
.cc-step.is-on { background: transparent; border-color: rgb(var(--v3-accent)); color: rgb(var(--v3-fg)); font-weight: 650; }
.cc-step:has(.cc-mk.is-ok):not(.is-on) { border-color: rgb(var(--v3-pos) / .55); }
.cc-mk.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .16); }
.cc-panel.cc-cards1 { padding: 0; gap: 14px; }
.cc-box { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cc-bh { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-bh2 { font-size: 14px; font-weight: 650; color: rgb(var(--v3-fg)); margin-top: 2px; }
.cc-bsub { margin-top: -6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-prodbox .cc-bsub { padding-bottom: 12px; border-bottom: 1px solid rgb(var(--v3-line)); }
.cc-stack { display: flex; flex-direction: column; gap: 12px; }
.cc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.cc-typecard { flex-direction: row; align-items: center; gap: 14px; }
.cc-typecard small { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-typecard b { display: block; font-size: 15px; font-weight: 650; color: rgb(var(--v3-fg)); }
.cc-typecard p { font-size: 13px; color: rgb(var(--v3-fg-2)); line-height: 1.45; }
.cc-typecard .cc-tile { width: 40px; height: 40px; flex: none; }
.cc-i { display: inline-grid; place-items: center; color: rgb(var(--v3-fg-3)); cursor: help; border-radius: 999px; font-weight: 400; }
.cc-i:hover, .cc-i:focus-visible { color: rgb(var(--v3-fg)); }
.cc-title > .cc-i, .cc-bh2 > .cc-i, .cc-sechead h3 > .cc-i { margin-left: 6px; vertical-align: middle; }
.cc-swlist { display: flex; flex-direction: column; gap: 10px; }
.cc-swl { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 550; color: rgb(var(--v3-fg)); cursor: pointer; width: fit-content; }
.cc-sw { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; border-radius: 999px; flex: none; cursor: pointer;
  background: rgb(var(--v3-fg) / .18); transition: background .15s; }
.cc-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.cc-sw:checked { background: rgb(var(--v3-accent)); }
.cc-sw:checked::after { transform: translateX(16px); }
.cc-sw:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.cc-sw:disabled { opacity: .55; cursor: default; }
.cc-rte { border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; overflow: hidden; background: rgb(var(--v3-surface)); }
.cc-rte:focus-within { border-color: rgb(var(--v3-accent)); }
.cc-rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-rte-bar button, .cc-rte-soon { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; font-size: 13.5px; color: rgb(var(--v3-fg-2)); }
.cc-rte-bar button:hover { background: rgb(var(--v3-hover)); color: rgb(var(--v3-fg)); }
.cc-rte-bar button.is-on { background: rgb(var(--v3-accent) / .14); color: rgb(var(--v3-accent-ink)); }
.cc-rte-soon { opacity: .45; cursor: help; }
.cc-rte-sel { height: 28px; padding: 0 6px; border-radius: 6px; font-size: 12.5px; color: rgb(var(--v3-fg)); background: transparent; border: 1px solid transparent; }
.cc-rte-sel:hover { border-color: rgb(var(--v3-line-2)); }
.cc-rte-sep { width: 1px; height: 18px; margin: 0 4px; background: rgb(var(--v3-line-2)); }
.cc-rte-ed { min-height: 130px; max-height: 420px; overflow-y: auto; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; color: rgb(var(--v3-fg)); outline: none; }
.cc-rte-ed.is-empty::before { content: attr(data-ph); color: rgb(var(--v3-fg-3)); font-style: italic; pointer-events: none; position: absolute; }
.cc-rte-ed.is-bad { box-shadow: inset 0 0 0 2px #d92d20; }
.cc-rte-ed h1, .cc-pdesc h1 { font-size: 1.35em; font-weight: 700; margin: .3em 0; } .cc-rte-ed h2, .cc-pdesc h2 { font-size: 1.2em; font-weight: 700; margin: .3em 0; } .cc-rte-ed h3, .cc-pdesc h3 { font-size: 1.05em; font-weight: 650; margin: .3em 0; }
.cc-rte-ed p, .cc-pdesc p { margin: 0 0 .4em; } .cc-rte-ed ul, .cc-pdesc ul { list-style: disc; padding-left: 1.4em; } .cc-rte-ed ol, .cc-pdesc ol { list-style: decimal; padding-left: 1.4em; }
.cc-rte-ed a, .cc-pdesc a { color: rgb(var(--v3-accent-ink)); text-decoration: underline; }
.cc-pdd { position: relative; }
.cc-pdd-btn { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: rgb(var(--v3-fg-2)); }
.cc-pdd-btn::-webkit-details-marker { display: none; }
.cc-pdd-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; padding: 8px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.cc-pdd-top { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; }
.cc-pdd-by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-pdd-tab { padding: 3px 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: rgb(var(--v3-fg)); }
.cc-pdd-tab.is-on { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent)); color: #fff; }
.cc-pdd-search { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid rgb(var(--v3-accent) / .6); border-radius: 8px; color: rgb(var(--v3-fg-3)); }
.cc-pdd-search input { flex: 1; min-width: 0; background: transparent; outline: none; font-size: 13px; color: rgb(var(--v3-fg)); }
.cc-pdd-list { max-height: 320px; overflow-y: auto; margin-top: 6px; }
.cc-pdd-list li[hidden] { display: none; }
.cc-pdd-row, .cc-pin-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; font-size: 13px; color: rgb(var(--v3-fg)); }
.cc-pdd-row:hover { background: rgb(var(--v3-hover)); }
.cc-pdd-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cc-pdd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cc-pdd-id { font-size: 12px; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.cc-pdd-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; font-variant-numeric: tabular-nums; }
.cc-pdd-nums b { font-weight: 600; } .cc-pdd-nums small { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.cc-pdd-in { display: none; flex: none; font-size: 11px; font-weight: 650; color: rgb(var(--v3-accent-ink)); }
.cc-pdd-row.is-in { background: rgb(var(--v3-accent) / .08); } .cc-pdd-row.is-in .cc-pdd-in { display: inline; }
.cc-avail { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 650; color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); }
.cc-avail::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.cc-avail.is-off { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.cc-pin { display: flex; flex-direction: column; gap: 4px; }
.cc-pin-row { border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-pin-none { padding: 18px; text-align: center; font-size: 13px; color: rgb(var(--v3-fg-3)); }
.cc-drop { display: grid; place-items: center; min-height: 150px; padding: 16px; border: 1.5px dashed rgb(var(--v3-line-2)); border-radius: 12px; cursor: pointer; text-align: center; color: rgb(var(--v3-fg-3)); }
.cc-drop:hover, .cc-drop.is-over { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .05); }
.cc-drop.is-busy { opacity: .6; pointer-events: none; }
.cc-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.cc-drop-empty b { color: rgb(var(--v3-accent-ink)); font-weight: 600; }
.cc-drop-empty small { font-size: 12px; }
.cc-drop-full { display: none; align-items: center; gap: 12px; }
.cc-drop-full img { width: 180px; height: 120px; border-radius: 10px; object-fit: cover; background: rgb(var(--v3-surface-2)); }
.cc-drop.has-img .cc-drop-empty { display: none; } .cc-drop.has-img .cc-drop-full { display: flex; }
.cc-drop-sm { min-height: 110px; }
.cc-tagrow { display: flex; gap: 8px; } .cc-tagrow .input { flex: 1; min-width: 0; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; } .cc-chips:empty { display: none; }
.cc-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .12); }
.cc-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; } .cc-chip button:hover { background: rgb(var(--v3-accent) / .2); }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 0; }
.cc-progress { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-pbar { width: 130px; height: 4px; border-radius: 999px; background: rgb(var(--v3-fg) / .12); overflow: hidden; }
.cc-pbar > span { display: block; height: 100%; border-radius: inherit; background: rgb(var(--v3-accent)); }
.cc-panel:not(.cc-cards1) > .cc-foot { padding-top: 14px; border-top: 1px solid rgb(var(--v3-line)); }
.cc-brandcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cc-brandcard b { display: block; font-size: 14px; font-weight: 650; } .cc-brandcard small { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.cc-aa { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; font-size: 13px; font-weight: 750; color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .14); }
.cc-colrow { display: flex; gap: 8px; align-items: center; } .cc-colrow input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid rgb(var(--v3-line-2)); background: transparent; } .cc-colrow .input { width: 110px; }
.cc-retype { width: min(720px, calc(100vw - 32px)); } .cc-branddlg { width: min(460px, calc(100vw - 32px)); }
.cc-retype-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cc-retype-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); text-align: left; }
.cc-retype-opt:hover:not(:disabled), .cc-retype-opt.is-pick { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .06); }
.cc-retype-opt:disabled { opacity: .55; cursor: default; }
.cc-retype-opt b { display: block; font-size: 13px; font-weight: 650; } .cc-retype-opt small { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); line-height: 1.4; }
@media (max-width: 639px) { .cc-grid2, .cc-retype-grid { grid-template-columns: minmax(0, 1fr); } .cc-steps > li { flex: none; } .cc-step { width: auto; padding-right: 10px; } }
/* page 2 (msg 817 and each type's shots): underlined schedule tabs, the dates box, the payout timeline, tier and rank cards, requirement
   pills, option cards, point rules, prizes, offers, the boost's content menu and the bingo card with its popover */
.cc-utabs { display: flex; gap: 4px; border-bottom: 1px solid rgb(var(--v3-line)); margin-top: -4px; }
.cc-utab { position: relative; } .cc-utab input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cc-utab span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; font-size: 13.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cc-utab input:checked + span { color: rgb(var(--v3-accent-ink)); border-color: rgb(var(--v3-accent)); }
.cc-utab input:focus-visible + span { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.cc-dategrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 14px; align-items: end; }
.cc-span2 { grid-column: 1 / -1; }
.cc-tzrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; } .cc-tzrow .cc-hint { padding-bottom: 6px; }
.cc-dynrow { display: grid; grid-template-columns: 120px 120px minmax(0, 1fr); gap: 12px; align-items: end; } .cc-dynrow .cc-hint { padding-bottom: 6px; }
.cc-dates-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: rgb(var(--v3-fg)); } .cc-dates-btn::-webkit-details-marker { display: none; }
.cc-dates-btn.is-bad { border-color: #d92d20; box-shadow: 0 0 0 3px rgb(217 45 32 / .25); }
.cc-rp { left: 0; top: calc(100% + 6px); z-index: 30; }
.cc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
.cc-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: start; }
.cc-grid2 > .cc-f, .cc-grid3 > .cc-f, .cc-grid4 > .cc-f { min-width: 0; }
.cc-narrow { max-width: 220px; }
.cc-star { color: rgb(var(--v3-neg)); font-style: normal; }
.cc-bsub2 { font-size: 13px; color: rgb(var(--v3-fg-2)); line-height: 1.5; }
.cc-aa-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); }
.cc-tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 8px 12px; border-radius: 12px; background: rgb(var(--v3-surface-2)); position: relative; }
.cc-tl-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cc-tl-i:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 1px; background: rgb(var(--v3-line-2)); }
.cc-tl-dot { width: 10px; height: 10px; border-radius: 999px; background: rgb(var(--v3-fg-3)); }
.cc-tl-review .cc-tl-dot { background: #f59e0b; } .cc-tl-paid .cc-tl-dot { background: rgb(var(--v3-pos)); }
.cc-tl-i small { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; color: rgb(var(--v3-fg-3)); } .cc-tl-i b { font-size: 14px; font-weight: 650; }
.cc-tl-sel { margin-top: 2px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 12px; color: #b45309; background: rgb(245 158 11 / .12); border: 1px solid rgb(245 158 11 / .45); }
.cc-tierc { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-tcard-h { display: flex; align-items: center; justify-content: space-between; } .cc-tcard-h b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.cc-tcard-s { font-size: 12px; font-weight: 650; color: rgb(var(--v3-fg-2)); }
.cc-x { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: rgb(var(--v3-neg)); } .cc-x:hover { background: rgb(var(--v3-neg) / .1); }
.cc-reqs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.cc-req { display: flex; flex-direction: column; gap: 5px; width: 220px; } .cc-req[hidden] { display: none; }
.cc-req-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgb(var(--v3-fg-2)); } .cc-req-h > span:first-child { flex: 0 1 auto; }
.cc-req-ok { color: rgb(var(--v3-pos)); font-weight: 700; visibility: hidden; } .cc-req.is-ok .cc-req-ok { visibility: visible; }
.cc-req-h button { margin-left: auto; color: rgb(var(--v3-fg-3)); } .cc-req-h button:hover { color: rgb(var(--v3-fg)); }
.cc-reqadd { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 3px; }
.cc-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); border: 1px solid rgb(var(--v3-line-2)); }
.cc-pill:hover { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-fg-3)); } .cc-pill[hidden] { display: none; }
.cc-kindrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding-top: 10px; border-top: 1px solid rgb(var(--v3-line)); }
.cc-kindrow > [hidden] { display: none; }
.cc-medal { font-size: 15px; min-width: 18px; text-align: center; }
.cc-addbig { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 42px; border-radius: 12px; border: 1.5px dashed rgb(var(--v3-line-2)); font-size: 13.5px; font-weight: 600; color: rgb(var(--v3-fg)); }
.cc-addbig:hover { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .05); }
.cc-linkbtn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); padding: 4px 6px; } .cc-linkbtn[hidden] { display: none; }
.cc-rule { display: grid; grid-template-columns: 150px 14px minmax(0, 1fr) auto 30px; gap: 8px; align-items: center; }
.cc-eq { text-align: center; color: rgb(var(--v3-fg-3)); } .cc-unit { font-size: 12.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.cc-bin { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: rgb(var(--v3-fg-3)); } .cc-bin:hover { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .1); }
.cc-inner { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cc-prize { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); }
.cc-ocards { display: grid; gap: 10px; } .cc-ocards.cc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-ocards.cc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-ocard { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); cursor: pointer; }
.cc-ocard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cc-ocard:has(input:checked) { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .06); }
.cc-ocard:has(input:focus-visible) { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.cc-ocard b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; } .cc-ocard small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgb(var(--v3-fg-2)); }
.cc-oic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg-2)); }
.cc-oradio { width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgb(var(--v3-line-2)); flex: none; }
.cc-ocard:has(input:checked) .cc-oradio { border-color: rgb(var(--v3-accent)); box-shadow: inset 0 0 0 3px rgb(var(--v3-surface)); background: rgb(var(--v3-accent)); }
.cc-onote { color: rgb(var(--v3-accent-ink)) !important; font-weight: 550; }
.cc-recom { font-size: 10.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .14); }
.cc-offers { width: 100%; font-size: 13px; border-collapse: collapse; } .cc-offers th { text-align: left; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-3)); padding: 4px 6px; }
.cc-offers td { padding: 4px 6px; } .cc-offers tr[hidden] { display: none; }
.cc-multi-panel { min-width: 260px; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.cc-pct .cc-cur { left: auto; right: 10px; } .cc-pct .input { padding-left: 10px; padding-right: 24px; }
.cc-info { color: rgb(var(--v3-fg)); background: rgb(var(--v3-accent) / .06); border-color: rgb(var(--v3-accent) / .3); margin: 0; }
.cc-rates.is-bad { border-radius: 12px; box-shadow: 0 0 0 2px #d92d20; padding: 6px; }
.cc-bgrid2 { position: relative; display: grid; gap: 10px; } .cc-bgrid2.cc-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-bgrid2.cc-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-bcell[hidden] { display: none; }
.cc-bcell-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 1 / 1; max-height: 170px; padding: 10px; border-radius: 12px;
  border: 1.5px dashed rgb(var(--v3-line-2)); font-size: 13px; line-height: 1.35; text-align: center; color: rgb(var(--v3-fg-3)); }
.cc-bcell.is-set .cc-bcell-btn { color: rgb(var(--v3-fg)); border-style: solid; border-color: rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2)); }
.cc-bcell.is-sel .cc-bcell-btn { border-style: dashed; border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .06); }
.cc-bcell-btn.is-bad { border: 2px solid #d92d20; }
.cc-bpop { position: absolute; z-index: 25; width: min(420px, 100%); padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.cc-bpop[hidden] { display: none; }
.cc-bpop-row { display: flex; flex-direction: column; gap: 6px; } .cc-bpop-h { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.cc-chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip2 { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); border: 1px solid rgb(var(--v3-line-2)); }
.cc-chip2.is-on { color: rgb(var(--v3-accent-ink)); border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .1); }
.cc-chip2:disabled, .cc-chip2.is-soon { opacity: .45; cursor: default; } .cc-chip2[hidden] { display: none; } .cc-chip2.is-soon { display: inline-flex; align-items: center; }
.cc-bsent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); font-size: 14px; }
.cc-bnum { width: 64px; height: 30px; padding: 0 6px; border-radius: 8px; text-align: center; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
@media (max-width: 900px) { .cc-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-ocards.cc-three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .cc-grid3, .cc-grid4, .cc-dategrid, .cc-tzrow, .cc-kindrow, .cc-ocards.cc-two { grid-template-columns: minmax(0, 1fr); } .cc-dynrow { grid-template-columns: 1fr 1fr; } .cc-req { width: 100%; }
  .cc-rule { grid-template-columns: 110px 10px minmax(0, 1fr) 30px; } .cc-rule .cc-unit { display: none; } .cc-bgrid2.cc-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* page 3 (msgs 832-841): section heads, guideline rows, folding cards, the terms' steps and status */
.cc-sechead { padding: 6px 2px 0; } .cc-sechead h3 { font-size: 17px; font-weight: 700; color: rgb(var(--v3-fg)); } .cc-sechead p { font-size: 13px; color: rgb(var(--v3-fg-2)); margin-top: 2px; }
.cc-scan { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgb(var(--v3-surface-2)); font-size: 13px; color: rgb(var(--v3-fg-2)); opacity: .8; }
.cc-scan b { color: rgb(var(--v3-accent-ink)); }
.cc-scanflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; }
.cc-scanflow span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.cc-scanflow i { font-style: normal; color: rgb(var(--v3-fg-3)); }
.cc-gtab { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; }
.cc-gtab th { text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--v3-fg-3)); padding: 0 6px; }
.cc-gtab th:nth-child(3) { text-align: center; } .cc-gtab td { padding: 0 6px; vertical-align: middle; } .cc-gtab td:first-child { width: 110px; } .cc-gtab td:nth-child(3) { width: 110px; } .cc-gtab td:last-child { width: 34px; }
.cc-gkind { font-weight: 650; color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .1); border-color: rgb(var(--v3-pos) / .3); }
.cc-gkind.is-dont { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .1); border-color: rgb(var(--v3-neg) / .3); }
.cc-gcheck { white-space: nowrap; color: rgb(var(--v3-fg-3)); text-align: center; } .cc-gcheck .cc-i { vertical-align: -2px; }
.cc-gcount { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg-2)); }
.cc-fold > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; } .cc-fold > summary::-webkit-details-marker { display: none; }
.cc-fold > summary b { display: block; font-size: 14px; font-weight: 650; color: rgb(var(--v3-fg)); } .cc-fold > summary small { display: block; font-size: 12.5px; color: rgb(var(--v3-fg-3)); }
.cc-fold > summary > svg:last-child { transition: transform .15s; color: rgb(var(--v3-fg-3)); } .cc-fold[open] > summary > svg:last-child { transform: rotate(180deg); }
[data-cc-inspo] { padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); }
.cc-foldcard { padding: 14px 18px; } details.card.cc-foldcard > summary::before { content: none; display: none; }   /* the app's own fold arrow: these cards draw theirs on the right, as Cruva */
@media (max-width: 1499px) { .cc-savebox .cc-saved { display: none; } }   /* the steps keep their words at a laptop width */ .cc-fold-body { padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cc-opt { color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .08); }
.cc-stepn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; } .cc-stepn span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; font-size: 11px; background: rgb(var(--v3-fg) / .08); }
.cc-status { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); }
.cc-status small { font-size: 11px; font-weight: 650; letter-spacing: .05em; color: rgb(var(--v3-fg-3)); } .cc-status p { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgb(var(--v3-fg)); }
.cc-status p svg { margin-top: 2px; color: rgb(var(--v3-fg-3)); flex: none; }
.cc-ocard.is-soon, .cc-swl.is-soon { opacity: .55; cursor: help; }
.cc-prevg-card { padding: 10px 12px; border-top: 1px solid rgb(var(--v3-line)); } .cc-prevg-card:first-child { border-top: 0; }
.cc-prevg-ul { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .cc-prevg-ul .is-do span { color: rgb(var(--v3-pos)); font-weight: 700; } .cc-prevg-ul .is-dont span { color: rgb(var(--v3-neg)); font-weight: 700; }
@media (max-width: 639px) { .cc-scanflow { grid-template-columns: 1fr; } .cc-scanflow i { display: none; } .cc-gtab td:nth-child(3), .cc-gtab th:nth-child(3) { display: none; } }
/* page 4 (msgs 843-850): the channel cards, reminder rows, the amber phone banner, group cards Coming soon */
.cc-cap { display: block; padding: 6px 2px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: rgb(var(--v3-fg-3)); }
.cc-narrow2 { max-width: 320px; } .cc-sel-sm { height: 32px; width: auto; }
.cc-nrem { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); font-size: 13.5px; }
.cc-nrem .cc-num { width: 64px; text-align: center; }
.cc-chcard .cc-bh { font-size: 14.5px; } .cc-chcard small.cc-hint { display: block; }
.cc-npill { flex: none; font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); white-space: nowrap; }
.cc-chcard.is-soon { opacity: .55; }
.cc-amber { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; color: #fde68a; background: rgb(120 53 15 / .55); }
.cc-amber[hidden] { display: none; }
:root[data-theme="light"] .cc-amber { color: #78350f; background: #fef3c7; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]):not([data-theme="navy"]) .cc-amber { color: #78350f; background: #fef3c7; } }
/* page 5 (msgs 951-953): Ready to go, the nine review cards, and the launch pop-up */
.cc-ready { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgb(var(--v3-pos) / .35); background: rgb(var(--v3-pos) / .06); }
.cc-ready b { display: block; font-size: 14.5px; } .cc-ready small { display: block; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cc-ready-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; flex: none; color: rgb(var(--v3-pos)); border: 1.5px solid rgb(var(--v3-pos)); }
.cc-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-rcard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); min-height: 110px; }
.cc-rcard.is-bad { border-color: rgb(var(--v3-warn) / .6); }
.cc-rcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .cc-rcard-h b { font-size: 14px; font-weight: 650; }
.cc-rcard p { font-size: 13px; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }
.cc-redit { font-size: 13px; font-weight: 600; color: rgb(var(--v3-accent-ink)); } .cc-redit:hover { text-decoration: underline; }
.cc-live { width: min(560px, calc(100vw - 32px)); }
.cc-live-t { font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.cc-live .cc-amber { justify-content: flex-start; }
.cc-live-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.cc-live-steps > li { display: flex; gap: 14px; }
.cc-live-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; flex: none; font-weight: 700; color: rgb(var(--v3-accent-ink)); border: 2px solid rgb(var(--v3-accent) / .7); }
.cc-live-steps b { font-size: 15.5px; } .cc-live-steps p { font-size: 13.5px; margin-top: 2px; }
.cc-live-card { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.cc-live-hero { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; } .cc-live-hero b { font-size: 36px; font-weight: 800; color: rgb(var(--v3-accent-ink)); } .cc-live-hero span { color: rgb(var(--v3-fg-2)); }
.cc-live-link { display: flex; gap: 8px; margin-top: 10px; } .cc-live-link .input { flex: 1; min-width: 0; }
.cc-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff; } .cc-qr[hidden] { display: none; }
.cc-qr > svg { width: 200px; height: 200px; }
/* Terry msg 1046: the QR's own buttons, and the table's QR dialog (a draft's shows greyed: "Launch to share") */
.cc-qr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.cc-qr .cc-qr-acts .btn { background: #fff; color: #111827; border-color: #d1d5db; } .cc-qr .cc-qr-acts .btn:hover { background: #f3f4f6; }
.cc-qrd { width: min(340px, calc(100vw - 32px)); }
.cc-qrd-box { position: relative; min-height: 224px; justify-content: center; } .cc-qrd-box > img { width: 200px; height: 200px; image-rendering: pixelated; }
.cc-qrd-box.is-off { background: rgb(var(--v3-surface-2)); border: 1px dashed rgb(var(--v3-line)); }
.cc-qrd-off { color: rgb(var(--v3-fg-3)); font-weight: 600; } .cc-qrd-off[hidden] { display: none; }
.cc-qrd [data-cc-qrd-svg].is-off { opacity: .5; pointer-events: none; }
tr.cc-new td { background: rgb(var(--v3-accent) / .1); transition: background 1.2s; }
@media (max-width: 900px) { .cc-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cc-rgrid { grid-template-columns: minmax(0, 1fr); } }
/* the phone's per-type payout card (page 2) */
.cc-pduo { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 8px 0; }
.cc-pduo .cc-ptop { margin: 0; } .cc-pper { font-size: 12px; color: #374151; text-align: right; } .cc-pright { text-align: right; }
.cc-pvid { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; } .cc-pvic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #e8efff; color: #3e63dd; }
.cc-pways { display: flex; justify-content: space-around; padding: 6px 0; } .cc-pways > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #4b5563; }
.cc-mini { display: grid; grid-template-columns: repeat(3, 8px); gap: 2px; } .cc-mini i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #c7d2fe; } .cc-mini i.on { background: #bfd3fb; border-color: #6b8de8; }
.cc-pbingo { display: grid; gap: 6px; margin-top: 6px; } .cc-pbingo.cc-g3 { grid-template-columns: repeat(3, 1fr); } .cc-pbingo.cc-g4 { grid-template-columns: repeat(4, 1fr); }
.cc-pbingo span { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 4px; border-radius: 8px; font-size: 9.5px; line-height: 1.25; text-align: center; background: #eef2ff; color: #111827; }
.cc-pbingo span.is-empty { background: #d1d5db; color: #4b5563; border: 1.5px dashed #9ca3af; }
.cc-pprize { display: block; width: 72px; height: 72px; margin: 4px auto; border-radius: 10px; object-fit: cover; }
.cc-prank > span { display: inline-flex; align-items: center; gap: 8px; } .cc-prank i { font-style: normal; font-size: 14px; min-width: 18px; text-align: center; }
.cc-pmetric { text-align: center; padding: 8px 0 4px; } .cc-pmetric small { display: block; font-size: 10.5px; color: #6b7280; } .cc-pmetric b { font-size: 15px; }
.cc-ptl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 6px; }
.cc-ptl > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-ptl > span:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 1px; background: #d1d5db; }
.cc-ptl i { width: 11px; height: 11px; border-radius: 999px; border: 2px solid #9ca3af; } .cc-ptl-review i { border-color: #f59e0b; } .cc-ptl-paid i { border-color: #16a34a; }
.cc-ptl small { font-size: 9px; letter-spacing: .05em; color: #6b7280; } .cc-ptl b { font-size: 11.5px; }
.cc-plate { margin-top: 6px; text-align: center; font-size: 10.5px; color: #6b7280; } .cc-plate a, .cc-plate b { color: rgb(var(--cc-brand)); font-weight: 650; }
.cc-pwhite .cc-pjoin { margin-top: 10px; }
/* the phone: an iPhone frame, the brand's band, the white payout card; Join as a sheet over the page; Message as chat cards */
.cc-phone { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cc-ptabs { justify-content: flex-end; padding: 0 0 8px; }
.cc-ptabs button { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cc-ptabs button.is-on { color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .14); }
.cc-iphone { position: relative; border-radius: 44px; padding: 10px; background: #0b0d12; box-shadow: 0 0 0 2px #2b2f3a, 0 22px 50px rgb(0 0 0 / .35); }
.cc-istat { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 30px; border-radius: 34px 34px 0 0; color: #111; font-size: 14px; font-weight: 650; pointer-events: none; }
.cc-istat .cc-ibars { display: inline-flex; align-items: center; gap: 5px; }
.cc-notch { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #0b0d12; }
.cc-pscreen { position: relative; height: 560px; overflow-y: auto; scrollbar-width: none; border-radius: 34px; background: #f4f5f8; color: #111827; padding-top: 40px; }
.cc-pscreen::-webkit-scrollbar { display: none; }
.cc-pscreen [data-cc-pview="page"] { margin-top: -40px; }
.cc-pband { padding: 50px 14px 46px; background: rgb(var(--cc-brand)); color: var(--cc-brand-ink); }
.cc-pbrand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cc-pbrand img, .cc-plogo0 { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; display: grid; place-items: center; background: rgb(0 0 0 / .25); font-weight: 700; }
.cc-pq { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; font-size: 12px; background: rgb(255 255 255 / .2); }
.cc-phero { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cc-ppic { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: none; background: rgb(0 0 0 / .18); }
.cc-ppic img { width: 100%; height: 100%; object-fit: cover; }
.cc-phero h4 { font-size: 22px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.cc-pdate { display: block; margin-top: 4px; font-size: 12px; opacity: .85; }
.cc-pwhite { position: relative; margin: -32px 10px 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .08); font-size: 12px; }
.cc-pw-h { display: flex; align-items: center; justify-content: space-between; color: #4b5563; }
.cc-pwhite .cc-ptype { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid #d1d5db; color: #374151; }
.cc-ptop { margin: 10px 0 4px; } .cc-ptop small { display: block; font-size: 11px; color: #6b7280; } .cc-ptop b { display: block; font-size: 26px; font-weight: 700; color: #111827; }
.cc-ptop-c { text-align: center; }
.cc-ptier { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #eceef2; }
.cc-ptier small { display: block; font-size: 10px; letter-spacing: .05em; color: #6b7280; } .cc-ptier b { font-weight: 650; color: #111827; } .cc-ptier > b { font-size: 14px; }
.cc-phow { margin: 8px 0; padding: 10px; border-radius: 10px; border: 1px solid #e5e7eb; } .cc-phow b { font-size: 11px; } .cc-phow p { margin-top: 4px; line-height: 1.5; color: #374151; }
.cc-prow2 { display: flex; justify-content: space-between; padding-top: 7px; margin-top: 7px; border-top: 1px solid #eceef2; }
.cc-ppay { padding-top: 9px; border-top: 1px solid #eceef2; } .cc-ppay b { font-size: 12px; } .cc-ppay p { margin-top: 3px; line-height: 1.5; color: #4b5563; }
.cc-pscreen .cc-pbody { color: #111827; } .cc-pscreen .cc-pcard { background: #fff; } .cc-pscreen .cc-pcard b { color: #4b5563; }
.cc-pscreen .cc-pdesc { color: #374151; white-space: normal; }
.cc-pscreen .cc-pjoin { background: rgb(var(--cc-brand)); color: var(--cc-brand-ink); border: 0; width: 100%; }
.cc-pscreen .cc-pjoin:disabled { opacity: .45; }
.cc-pdim { position: absolute; inset: 0; background: rgb(var(--cc-brand) / .55); }
.cc-psheet { position: relative; margin: 60px 0 0; min-height: calc(100% - 60px); padding: 16px 16px 20px; border-radius: 20px 20px 0 0; background: #fff; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.cc-psheet h4 { font-size: 17px; font-weight: 600; } .cc-pcap { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: #6b7280; } .cc-psheet .cc-pterms { color: #111827; line-height: 1.5; white-space: pre-line; }
.cc-pdos { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid rgb(var(--cc-brand) / .5); }
.cc-pdos li { display: flex; gap: 8px; line-height: 1.4; } .cc-pdo { color: #16a34a; font-weight: 700; } .cc-pdont { color: #dc2626; font-weight: 700; }
.cc-pread { display: flex; align-items: center; gap: 8px; font-weight: 600; } .cc-pread input { accent-color: rgb(var(--cc-brand)); }
.cc-psheet .cc-pnote { text-align: center; color: #6b7280; } .cc-pnot { text-align: center; font-weight: 600; color: #374151; }
.cc-pmsgs { min-height: 100%; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: #9ca3af; }
.cc-pmh { text-align: center; font-size: 11px; color: rgb(255 255 255 / .85); }
.cc-pchat { padding: 10px; border-radius: 14px; background: #111827; color: #fff; }
.cc-pchat-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; } .cc-pchat-h span { display: inline-flex; align-items: center; gap: 5px; } .cc-pchat-h small { font-weight: 500; color: #9ca3af; text-align: right; }
.cc-pchat-b { margin-top: 7px; padding: 9px 10px; border-radius: 10px; background: #1f2937; font-size: 12.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.cc-pchs { display: flex; gap: 4px; margin-top: 6px; } .cc-pchs span { font-size: 10px; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: #374151; }
@media (max-width: 1179px) { .cc-bgrid { grid-template-columns: minmax(0, 1fr); } .cc-side { position: static; max-width: 340px; } }
@media (max-width: 639px) { .cc-sbar { position: static; } .cc-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cc-savebox { position: fixed; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 31; }   /* above the phone's tab bar */ .cc-savebox .cc-saved { display: none; } .cc-savebox [data-cc-save] { height: 40px; padding: 0 16px; box-shadow: 0 8px 22px rgb(0 0 0 / .35); } .cc-steps > li { flex: none; } .cc-step { white-space: nowrap; }   /* a phone: one row to swipe, not a block over the form */
  .cc-bhead > .min-w-0 { flex: 1 1 calc(100% - 60px); } .cc-bhead [data-cc-save] { margin-left: auto; } .cc-li { grid-template-columns: minmax(0, 1fr) auto; } .cc-li-n { grid-column: 1 / -1; padding: 0; } .cc-gap-step { width: auto; }
  .cc-gaps li { flex-wrap: wrap; } .cc-bingo.cc-g4, .cc-bingo.cc-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-step { padding-right: 10px; } }
@media (max-width: 1023px) { .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .cc-tgrid { grid-template-columns: minmax(0, 1fr); }
  .cc-card-v { font-size: 19px; }
  .cc-search, .cc-search .input, .cc-typesel { width: 100%; }
  table.cc-tbl .cc-nm { max-width: 60vw; }
}

/* ---- Ads › TikTok ads (Terry msgs 1018-1023): Cruva's sub-menu on the left (tabs on a phone), the connection strip, GMV Max's cards and
   campaign table, Spark codes, rules. */
.ta-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.ta-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); }
.ta-side-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid rgb(var(--v3-line)); }
.ta-side-h b { display: block; font-size: 14px; color: rgb(var(--v3-fg)); }
.ta-side-h small { display: block; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.ta-tt { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); flex: none; }
.ta-si { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 550; color: rgb(var(--v3-fg-2)); border: 1px solid transparent; }
.ta-si:hover { background: rgb(var(--v3-hover)); color: rgb(var(--v3-fg)); }
.ta-si.is-on { color: rgb(var(--v3-fg)); background: rgb(var(--v3-accent) / .10); border-color: rgb(var(--v3-accent) / .45); }
.ta-si.is-on svg { color: rgb(var(--v3-accent-ink)); }
.ta-main { display: flex; flex-direction: column; gap: 14px; }
.ta-main > section { display: flex; flex-direction: column; gap: 14px; }
.ta-wrap.is-dash { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }   /* the Dashboard's GMV Max tab: no TikTok ads side menu */
.ta-wrap.is-dash .ta-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }   /* six compact cards on one row, as the Dashboard's */
.ta-mer-good { color: rgb(var(--v3-pos)); } .ta-mer-warn { color: rgb(var(--v3-warn, 200 130 40)); } .ta-mer-bad { color: rgb(var(--v3-neg)); }   /* MER against its target (Terry msg 3746), on the Profit tab */
.ta-target { width: 250px; }
@media (min-width: 1280px) { .ta-wrap.is-dash .ta-cards[data-mer] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* with MER and its target: six or seven don't fit one row (labels wrap, £ figures cut), so 4 a row */
@media (max-width: 1279px) { .ta-wrap.is-dash .ta-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ta-wrap.is-dash .ta-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ta-lg { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.ta-lg-spend { background: rgb(var(--v3-fg-3)); }
.ta-lg-rev { background: #F43758; }
.ta-lg-roi { background: rgb(var(--v3-fg)); height: 2px; width: 12px; border-radius: 1px; }
[data-ta-per] .btn.is-on { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.ta-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.ta-conn-i { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ta-adv { font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.ta-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ta-h h2 { font-size: 18px; font-weight: 700; color: rgb(var(--v3-fg)); display: inline-flex; align-items: center; gap: 6px; }
.ta-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ta-card { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ta-card-h { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); white-space: nowrap; min-width: 0; }
.ta-card-h > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ta-card-vr { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ta-card-v { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: rgb(var(--v3-fg)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ta-chg { font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ta-chg.is-good { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); }
.ta-chg.is-bad { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.ta-chg.is-na { color: rgb(var(--v3-fg-3)); background: rgb(var(--v3-surface-2)); }
table.ta-tbl td { vertical-align: middle; }
.ta-name { min-width: 220px; }
.ta-cn { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ta-cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; font-weight: 400; }
.ta-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgb(var(--v3-accent) / .35); border-radius: 12px; background: rgb(var(--v3-accent) / .07); font-size: 13px; color: rgb(var(--v3-fg)); }
.ta-banner > svg { color: rgb(var(--v3-accent-ink)); }
.ta-form { padding: 14px 16px; }
.ta-fh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; color: rgb(var(--v3-fg)); }
.ta-grid { display: grid; gap: 10px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ta-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 550; color: rgb(var(--v3-fg-2)); }
.ta-fl { display: inline-flex; align-items: center; gap: 4px; }
.ta-ff { display: inline-flex; flex-direction: column; gap: 3px; }
.ta-sfil { align-items: flex-end; }
.ta-thumb { position: relative; display: inline-grid; place-items: center; width: 36px; height: 48px; border-radius: 6px; overflow: hidden; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); }
.ta-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-play { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; }
.ta-thumb.is-none .ta-play { background: transparent; color: rgb(var(--v3-fg-3)); }
.ta-who { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.ta-who:hover, .ta-who:focus-visible { color: rgb(var(--v3-accent-ink)); }
.ta-code { display: inline-flex; align-items: center; gap: 2px; }
.ta-code code { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid rgb(var(--v3-line-2)); background: rgb(var(--v3-surface-2)); white-space: nowrap; }
.ta-auth { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); white-space: nowrap; }
.ta-prod { max-width: 200px; }
table.ta-spark tr.is-arch td { opacity: .6; }
.ta-kinds { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ta-kind { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; cursor: pointer; }
.ta-kind:has(input:checked) { border-color: rgb(var(--v3-accent) / .6); background: rgb(var(--v3-accent) / .07); }
.ta-kind b { display: block; font-size: 13px; color: rgb(var(--v3-fg)); }
.ta-kind small { display: block; font-size: 12px; color: rgb(var(--v3-fg-2)); margin-top: 2px; }
.ta-when { margin-top: 10px; }
.ta-rules { display: flex; flex-direction: column; }
.ta-rules li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.ta-rules li:first-child { border-top: 0; }
.ta-rk { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.ta-rk-boost { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); }
.ta-rk-exclude { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
[data-ta-boosted] .card-h h2, [data-ta-excluded] .card-h h2 { white-space: nowrap; }
.ta-emp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px 44px; color: rgb(var(--v3-fg-2)); font-size: 13px; }
.ta-emp b { color: rgb(var(--v3-fg)); font-size: 14px; }
.ta-emp p { max-width: 420px; }
.ta-others { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; max-width: 640px; }
.ta-others > span { width: 100%; }
.ta-others .btn { height: auto; min-height: 44px; flex-direction: column; gap: 0; padding: 6px 12px; line-height: 1.25; }
.ta-others .btn small { font-size: 11px; color: rgb(var(--v3-fg-2)); font-weight: 400; }
.ta-emp-i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgb(var(--v3-accent) / .12); color: rgb(var(--v3-accent-ink)); }
@media (max-width: 1439px) { table.ta-tbl .ta-wide { display: none; } .ta-cn { max-width: 260px; } }
@media (max-width: 1023px) {
  .ta-wrap { grid-template-columns: minmax(0, 1fr); }
  .ta-side { position: static; flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .ta-side-h { display: none; }
  .ta-si { flex: none; white-space: nowrap; }
}
@media (max-width: 639px) {
  .ta-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-card-h { white-space: normal; }
  .ta-card-v { font-size: 19px; }
  .ta-grid, .ta-kinds { grid-template-columns: minmax(0, 1fr); }
  .ta-banner { flex-wrap: wrap; }
}
/* ---- Creator community › Retainers (Terry msg 1000): status pills, progress bars, the KPI tiles, alerts, a retainer's own page, Analytics */
.rt-pill.rt-green { --au-c: var(--v3-pos); }
.rt-pill.rt-amber { --au-c: var(--v3-warn); }
.rt-pill.rt-red { --au-c: var(--v3-neg); }
.rt-pill.rt-grey { --au-c: var(--v3-fg-2); background: rgb(var(--v3-fg) / .06); }
.rt-pos { color: rgb(var(--v3-pos)); }
.rt-neg { color: rgb(var(--v3-neg)); }
.rt-warn { color: rgb(var(--v3-warn)); }
.rt-head { margin-bottom: 12px; }
.rt-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rt-who .min-w-0 { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-h { font-weight: 600; color: rgb(var(--v3-fg)); }
.rt-h[data-cpn] { cursor: pointer; }
.rt-h[data-cpn]:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-open { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; }
.rt-open:hover .rt-cname { text-decoration: underline; text-underline-offset: 3px; }
.rt-cname { font-weight: 550; color: rgb(var(--v3-fg)); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-per { font-size: 11.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.rt-prog { display: inline-flex; flex-direction: column; gap: 4px; min-width: 7.5rem; font-size: 12.5px; }
.rt-bar { display: block; height: 6px; border-radius: 999px; background: rgb(var(--v3-fg) / .08); overflow: hidden; }
.rt-bar > span { display: block; height: 100%; border-radius: inherit; background: rgb(var(--v3-accent)); }
.rt-bar.is-full > span { background: rgb(var(--v3-pos)); }
.rt-pay { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; }
.rt-ps { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg-2)); }
.rt-ps-paid { background: rgb(var(--v3-pos) / .12); color: rgb(var(--v3-pos)); }
.rt-ps-due { background: rgb(var(--v3-warn) / .14); color: rgb(var(--v3-warn)); }
.rt-ps-overdue { background: rgb(var(--v3-neg) / .14); color: rgb(var(--v3-neg)); }
.rt-tiles { display: grid; gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 12px 14px 0; }
.rt-tiles[data-rt-antiles] { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rt-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-fg) / .02); min-width: 0; }
.rt-tl-l { font-size: 12px; font-weight: 550; color: rgb(var(--v3-fg-2)); display: inline-flex; align-items: center; }
.rt-tile b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: rgb(var(--v3-fg)); }
.rt-tile b.rt-pos { color: rgb(var(--v3-pos)); }
.rt-tile b.rt-neg { color: rgb(var(--v3-neg)); }
.rt-tile b.rt-warn { color: rgb(var(--v3-warn)); }
.rt-sub { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.rt-alerts { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 0; }
.rt-alert { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px; border: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg)); }
.rt-al-bad { background: rgb(var(--v3-neg) / .08); border-color: rgb(var(--v3-neg) / .4); }
.rt-al-bad > svg { color: rgb(var(--v3-neg)); }
.rt-al-warn { background: rgb(var(--v3-warn) / .08); border-color: rgb(var(--v3-warn) / .4); }
.rt-al-warn > svg { color: rgb(var(--v3-warn)); }
.rt-al-info { background: rgb(var(--v3-info) / .07); border-color: rgb(var(--v3-info) / .35); }
.rt-al-info > svg { color: rgb(var(--v3-info)); }
.rt-sel { width: auto; min-width: 12rem; height: 32px; }
table.rt-tbl td { vertical-align: middle; }
/* + Add creator */
.rt-add { margin-bottom: 12px; }
.rt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px 16px 16px; }
.rt-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); min-width: 0; }
.rt-f > span { display: inline-flex; align-items: center; }
.rt-wide { grid-column: 1 / -1; }
.rt-check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
.rt-offer { grid-column: 1 / -1; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rt-form:has([data-rt-custom]:checked) .rt-offer { display: grid; }
.rt-form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* a retainer's own page */
.rt-back { margin-bottom: 10px; }
.rt-dhead { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.rt-dh { display: flex; align-items: center; gap: 10px; }
.rt-dh .rt-h { font-size: 16px; }
.rt-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.rt-renew { color: rgb(var(--v3-accent-ink)); font-weight: 600; }
.rt-dprog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rt-dprog > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); min-width: 0; }
.rt-dl { font-size: 12px; font-weight: 550; color: rgb(var(--v3-fg-2)); display: inline-flex; align-items: center; }
.rt-dv { font-size: 20px; font-weight: 700; color: rgb(var(--v3-fg)); }
.rt-pace { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.rt-read { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgb(var(--v3-fg-3)); margin: 0; }
.rt-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rt-span { grid-column: 1 / -1; }
.rt-tl { list-style: none; margin: 0; padding: 8px 16px 14px; display: flex; flex-direction: column; }
.rt-tl li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0 7px 18px; font-size: 12.5px; color: rgb(var(--v3-fg-3)); }
.rt-tl li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(var(--v3-line-2)); }
.rt-tl li::after { content: ""; position: absolute; left: 3.5px; top: 22px; bottom: -6px; width: 1px; background: rgb(var(--v3-line)); }
.rt-tl li:last-child::after { display: none; }
.rt-tl li.is-done { color: rgb(var(--v3-fg-2)); }
.rt-tl li.is-done::before { background: rgb(var(--v3-accent)); box-shadow: none; }
.rt-tl li.is-video::before { background: rgb(var(--v3-pos)); }
.rt-tl li b { font-weight: 550; color: rgb(var(--v3-fg)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-tl li span { white-space: nowrap; }
.rt-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.rt-acts form { display: contents; }
.rt-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.rt-inline .rt-f { flex: 1 1 8rem; }
.rt-ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 16px 16px; }
.rt-ba > div { display: flex; flex-direction: column; gap: 4px; }
.rt-ba b { font-size: 18px; }
.rt-notes, .rt-hist { list-style: none; margin: 0; padding: 6px 16px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.rt-notes li p { margin: 0; color: rgb(var(--v3-fg)); }
.rt-notes li span { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.rt-hist { max-height: 18rem; overflow-y: auto; }
.rt-hist li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgb(var(--v3-line)); padding-bottom: 6px; }
/* Analytics */
.rt-agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 14px 14px; align-items: start; }
.rt-acard { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; overflow: hidden; min-width: 0; }
.rt-ah { display: flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); border-bottom: 1px solid rgb(var(--v3-line)); }
.rt-worst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.rt-chart { display: block; width: 100%; height: 150px; padding: 10px 14px 0; }
.rt-chart text { font-size: 10px; fill: rgb(var(--v3-fg-3)); }
.rt-b-gmv { fill: rgb(var(--v3-accent)); background: rgb(var(--v3-accent)); }
.rt-b-cost { fill: rgb(var(--v3-fg-3) / .7); background: rgb(var(--v3-fg-3) / .7); }
.rt-legend { display: flex; gap: 14px; padding: 6px 14px 8px; font-size: 11.5px; color: rgb(var(--v3-fg-2)); }
.rt-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rt-cmp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; padding: 14px; align-items: center; }
.rt-cmp b { font-size: 17px; }
@media (max-width: 1279px) { .rt-tiles, .rt-tiles[data-rt-antiles] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .rt-agrid, .rt-dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .rt-tiles, .rt-tiles[data-rt-antiles] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-form, .rt-offer, .rt-dprog, .rt-ba { grid-template-columns: minmax(0, 1fr); }
  .rt-sel { min-width: 0; width: 100%; }
  .rt-cname { max-width: 60vw; }
  .rt-per { white-space: normal; }
}
/* Creator community › Payments (Terry msg 1087): the Pay run */
.pay-head { flex-wrap: wrap; gap: 8px; }
/* phone: Add funds, Auto pay and Export CSV sit on one tidy row (Terry msg 1104); the chip reads "Soon" */
@media (max-width: 767px) {
  .pay-head { flex-wrap: nowrap; gap: 6px; }
  .pay-head > .flex-1 { display: none; }
  .pay-head > .btn { flex: 0 1 auto; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .pay-head .soon-chip { font-size: 0; margin-left: 4px; }
  .pay-head .soon-chip::after { content: "Soon"; font-size: 10px; }
  .pay-head:has([data-pay-dates]) { flex-wrap: wrap; }
  .pay-head > [data-pay-dates] { flex-basis: 100%; }
}
.pay-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.pay-tile { color: inherit; transition: border-color .15s, background .15s; }
a.pay-tile:hover { border-color: rgb(var(--v3-accent) / .55); background: rgb(var(--v3-accent) / .04); }
.rt-ps-held { background: rgb(var(--v3-info) / .13); color: rgb(var(--v3-info)); }
.rt-ps-planned { background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg-2)); }
.pay-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgb(var(--v3-line-2)); font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.pay-bulk.is-on { border-style: solid; border-color: rgb(var(--v3-accent) / .55); background: rgb(var(--v3-accent) / .05); color: rgb(var(--v3-fg)); }
.pay-bulk-n b { color: rgb(var(--v3-fg)); }
table.pay-tbl thead th { white-space: nowrap; }
table.pay-tbl .pay-tk { width: 40px; min-width: 40px; padding-right: 0; }
table.pay-tbl .pay-tk input { width: 16px; height: 16px; accent-color: rgb(var(--v3-accent)); }
.pay-reason { display: inline-block; max-width: 16rem; font-size: 12.5px; color: rgb(var(--v3-fg)); }
.pay-due { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.pay-pause { display: inline-flex; align-self: flex-start; height: 18px; align-items: center; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: rgb(var(--v3-neg) / .14); color: rgb(var(--v3-neg)); }
.pay-up { display: block; margin-top: 3px; }
.pay-ref { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.pay-method-b { font-size: 16px !important; }
tr.pay-grp td { background: rgb(var(--v3-fg) / .035); height: auto !important; padding-top: 8px !important; padding-bottom: 8px !important; }
.pay-grp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.pay-grp-in > b { color: rgb(var(--v3-fg)); }
.pay-soon { padding: 4px 14px 14px; }
.pay-dlg { width: min(520px, calc(100vw - 32px)); }
.pay-what { margin: 6px 0 0; font-size: 13px; font-weight: 550; color: rgb(var(--v3-fg)); }
.pay-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; }
.pay-wide { grid-column: 1 / -1; }
/* Tell them they've been paid (Terry msg 1115): how, the words, the preview, then every message and who it goes to */
.pay-tell-tick { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; cursor: pointer; }
.pay-tell { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.pay-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pay-pick { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; cursor: pointer; font-size: 13px; }
.pay-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pay-pick:has(input:checked) { border-color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .06); box-shadow: 0 0 0 1px rgb(var(--v3-accent)); }
.pay-pick:has(input:focus-visible) { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.pay-pick.is-off { opacity: .5; cursor: not-allowed; }
.pay-pick-i { color: rgb(var(--v3-accent)); }
.pay-pick-n { font-size: 11.5px; color: rgb(var(--v3-fg-2)); }
.pay-miss { margin: 8px 0 0; font-size: 12px; color: rgb(var(--v3-warn)); }
.pay-off { margin-top: 10px; }
.pay-ed { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pay-ed-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.pay-count { font-size: 11px; font-weight: 500; color: rgb(var(--v3-fg-3)); }
.pay-toks { display: flex; flex-wrap: wrap; gap: 4px; }
.pay-tok { font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 6px; border-radius: 6px; border: 1px dashed rgb(var(--v3-line-2)); color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .03); }
.pay-tok:hover { border-color: rgb(var(--v3-accent) / .6); color: rgb(var(--v3-accent)); }
.pay-tpl { font-size: 13px; line-height: 1.45; resize: vertical; }
.pay-prev { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgb(var(--v3-fg) / .035); display: flex; flex-direction: column; gap: 10px; }
.pay-prev-who select { height: 30px; font-size: 12px; padding-top: 0; padding-bottom: 0; }
.pay-prev-l { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); margin-bottom: 4px; }
.pay-bubble { white-space: pre-wrap; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 10px 10px 10px 2px; background: #dcf8c6; color: #111b21; max-width: 92%; overflow-wrap: anywhere; }
.pay-mail { border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-surface)); overflow: hidden; }
.pay-mail-sub { padding: 8px 12px; font-size: 13px; font-weight: 600; border-bottom: 1px solid rgb(var(--v3-line)); overflow-wrap: anywhere; }
.pay-mail-body { white-space: pre-wrap; padding: 10px 12px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.pay-save { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; }
.pay-review { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.pay-rv { border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; padding: 8px 12px; }
.pay-rv-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; }
.pay-rv-to { color: rgb(var(--v3-fg-2)); font-size: 12px; }
.pay-rv-again { font-size: 11px; color: rgb(var(--v3-warn)); }
.pay-rv-sub { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.pay-rv-body { margin-top: 4px; white-space: pre-wrap; font-size: 12.5px; line-height: 1.45; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }
.pay-told { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pay-told .chip { display: inline-flex; align-items: center; gap: 4px; }
.pay-told-waiting { background: rgb(var(--v3-warn) / .13) !important; color: rgb(var(--v3-warn)) !important; }
.pay-told-sent { background: rgb(var(--v3-pos) / .13) !important; color: rgb(var(--v3-pos)) !important; }
.pay-told-failed { background: rgb(var(--v3-neg) / .13) !important; color: rgb(var(--v3-neg)) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pay-bubble { background: #005c4b; color: #e9edef; } }
:root[data-theme="dark"] .pay-bubble { background: #005c4b; color: #e9edef; }
@media (max-width: 767px) { .pay-picks { grid-template-columns: minmax(0, 1fr); } .pay-pick { flex-direction: row; align-items: center; gap: 8px; } .pay-pick-n { margin-left: auto; } }
@media (max-width: 1279px) { .pay-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-fields { grid-template-columns: minmax(0, 1fr); }
  .pay-bulk { margin: 0 10px 10px; }
  .pay-bulk .btn { flex: 1 1 auto; justify-content: center; }
}
/* the shared brand theme (brand_themes, Terry msgs 943-944): the phone's page, cards and fonts follow Branding › Edit */
.cc-pscreen { background: var(--t-bg, #f4f5f8); color: var(--t-text, #111827); font-family: var(--t-bf, inherit); }
.cc-pscreen h4, .cc-ptop b, .cc-psheet h4 { font-family: var(--t-hf, inherit); }
.cc-pwhite, .cc-pscreen .cc-pcard, .cc-psheet { background: var(--t-card, #fff); border: 1px solid var(--t-cb, transparent); }
.cc-pscreen .cc-pbody, .cc-pscreen .cc-pdesc, .cc-psheet .cc-pterms, .cc-ptier b, .cc-ptop b { color: var(--t-text, #111827); }
.cc-pwhite .cc-ptype { background: var(--t-a2, transparent); color: var(--t-a2ink, #374151); border-color: var(--t-cb, #d1d5db); }
/* Branding › Edit as Cruva's: a panel from the left over the form */
.cc-brandsheet { position: fixed; inset: 0 auto 0 0; margin: 0; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); padding: 0; border: 0;
  border-right: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-bg-2, var(--v3-bg))); color: rgb(var(--v3-fg)); display: none; flex-direction: column; }
.cc-brandsheet[open] { display: flex; }
.cc-brandsheet::backdrop { background: transparent; }   /* the phone stays in its true colours beside the panel, as Cruva */
.cc-bs-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgb(var(--v3-line)); }
.cc-bs-h h3 { font-size: 16px; font-weight: 650; }
.cc-bs-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 14px; }
.cc-bs-tpl { display: flex; align-items: flex-end; gap: 12px; }
.cc-aa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--v3-accent) / .14); color: rgb(var(--v3-accent-ink)); font-weight: 700; flex: none; }
.cc-bs-cols { display: flex; flex-direction: column; }
.cc-bs-col { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgb(var(--v3-line) / .7); font-size: 14px; }
.cc-bs-col .cc-colrow { display: inline-flex; align-items: center; gap: 6px; width: 170px; }
.cc-bs-col input[type=color] { width: 30px; height: 30px; padding: 0; border: 1px solid rgb(var(--v3-line)); border-radius: 7px; background: none; flex: none; }
.cc-bs-col input.num { width: 100%; }
.cc-amber { padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: rgb(245 158 11 / .14); color: rgb(217 119 6); border: 1px solid rgb(245 158 11 / .35); }
@media (max-width: 639px) { .cc-bs-col .cc-colrow { width: 150px; } }
.cc-brandsheet [data-cc-tplact][hidden] { display: none; }

/* ---- Creator community › Brand hub (Terry msg 1004): the hub creators see (.bh-page: the public page /h/<slug> and Customise's preview
   share it, in the brand's theme variables), and the brand's Customise and Creators tabs. Explanations live in the ⓘ (msg 994). */
.bh-page { container-type: inline-size; background: var(--t-bg, #f5f8ff); color: var(--t-text, #111827); font-family: var(--t-bf, Inter, system-ui, sans-serif); min-height: 100%; }
.bh-page h1, .bh-page h2 { font-family: var(--t-hf, Poppins, system-ui, sans-serif); }
.bh-hero { position: relative; }
.bh-cover { height: 150px; overflow: hidden; background: var(--t-a2, #eef2ff); } .bh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-band { padding: 18px 18px 22px; background: var(--t-a, #3e88ea); color: var(--t-ona, #fff); display: flex; flex-direction: column; gap: 10px; }
.bh-hero.has-cover .bh-band { padding-top: 14px; }
.bh-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; min-width: 0; }
.bh-brand img, .bh-logo0 { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: rgb(255 255 255 / .9); flex: none; }
.bh-logo0 { display: grid; place-items: center; color: var(--t-a, #3e88ea); font-weight: 800; }
.bh-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.bh-intro { font-size: 14.5px; line-height: 1.5; opacity: .95; } .bh-intro p { margin: 0 0 6px; } .bh-intro ul, .bh-intro ol { margin: 0 0 6px; padding-left: 20px; } .bh-intro a { color: inherit; text-decoration: underline; }
.bh-page a { color: inherit; }   /* the creator pages' own link colour never wins over the hub's */
.bh-page .bh-join { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: var(--t-ona, #fff); color: var(--t-a, #3e88ea); font-weight: 700; text-decoration: none; }
.bh-join.is-in { opacity: .9; }
.bh-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.bh-sec { background: var(--t-card, #fff); border: 1px solid var(--t-cb, #3e88ea); border-radius: 14px; padding: 14px; }
.bh-sec h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.bh-none { margin: 0; font-size: 13.5px; opacity: .7; }
.bh-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bh-prod { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; }
.bh-prod img, .bh-prod0 { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgb(0 0 0 / .05); display: block; }
.bh-prod-n { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bh-prod-p { opacity: .8; } .bh-off { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: rgb(220 38 38 / .12); color: rgb(185 28 28); }
.bh-cams { display: grid; gap: 10px; }
.bh-page .bh-cam { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; background: var(--t-a2, #f5f8ff); color: var(--t-a2ink, #000); text-decoration: none; border: 1px solid var(--t-cb, #3e88ea); }
.bh-cam-t { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; } .bh-cam-h { font-size: 15px; }
.bh-cam-big { font-size: 13px; } .bh-cam-big b { font-size: 20px; font-family: var(--t-hf, inherit); } .bh-cam-d { font-size: 12.5px; opacity: .75; }
.bh-page .bh-cam-go { margin-top: 4px; font-weight: 600; font-size: 13px; color: var(--t-go, var(--t-a, #3e88ea)); }
.bh-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bh-page .bh-res a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--t-a2, #f5f8ff); color: var(--t-a2ink, #000); text-decoration: none; min-width: 0; }
.bh-res a > span { display: flex; flex-direction: column; } .bh-res small { font-size: 12.5px; opacity: .75; } .bh-res .bh-res-k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.bh-res-i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--t-card, #fff); color: var(--t-a, #3e88ea); } .bh-res-i svg { width: 18px; height: 18px; }
.bh-res-img { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: cover; }
.bh-terms summary { cursor: pointer; font-weight: 600; } .bh-terms p { margin: 8px 0 0; font-size: 13.5px; white-space: pre-line; }
.bh-foot { margin: 0; padding: 4px 16px 20px; font-size: 12px; opacity: .6; text-align: center; }
@container (min-width: 720px) {
  .bh-band { padding: 28px 40px 32px; } .bh-title { font-size: 34px; } .bh-cover { height: 220px; }
  .bh-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px 40px; }
  .bh-sec[data-bh-sec="products"], .bh-sec[data-bh-sec="terms"] { grid-column: 1 / -1; }
  .bh-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cw-hub-wrap { max-width: 1100px; margin: 0 auto; } .cw-hub-wrap .bh-page { min-height: 100vh; }
/* a section's pages on the hub (Terry msg 1193): 5 or 10 a page, links only */
.bh-hpager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.bh-hpager-n { opacity: .7; margin-right: auto; } .bh-hpager-of { opacity: .75; }
.bh-page .bh-hpager-b { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--t-a, #3e88ea); color: var(--t-ona, #fff); font-weight: 600; text-decoration: none; }
.bh-page .bh-hpager-b.is-off { background: transparent; color: inherit; opacity: .35; border: 1px solid var(--t-cb, #d1d5db); }
@media (max-width: 420px) { .bh-hpager-n { flex-basis: 100%; } }
/* the brand's page */
.btn.btn-xs { min-height: 24px; height: 24px; padding: 0 7px; font-size: 12px; border-radius: 7px; }
.bh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; }
.bh-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .bh-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.bh-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid rgb(var(--v3-line)); }
.bh-tab { padding: 8px 14px; font-weight: 600; font-size: 14px; color: rgb(var(--v3-fg-3)); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bh-tab.is-on { color: rgb(var(--v3-fg)); border-bottom-color: rgb(var(--v3-accent)); }
.bh-cust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bh-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bh-right { position: sticky; top: 72px; min-width: 0; }
.bh-onoff { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer; } .bh-onoff span { display: flex; flex-direction: column; } .bh-onoff small { color: rgb(var(--v3-fg-3)); font-size: 12px; }
.bh-secs { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.bh-si { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; }
.bh-si.is-sel { background: rgb(var(--v3-accent) / .08); border-color: rgb(var(--v3-accent) / .35); }
.bh-si.is-drag { opacity: .45; } .bh-si.is-over { border-color: rgb(var(--v3-accent)); border-style: dashed; }
.bh-si-l { flex: 1; text-align: left; font-weight: 600; font-size: 14px; min-width: 0; display: flex; align-items: center; gap: 6px; }
.bh-si-fix { font-size: 11.5px; color: rgb(var(--v3-fg-3)); } .bh-si.is-soon .bh-si-l { color: rgb(var(--v3-fg-3)); }
.bh-si-a { display: flex; align-items: center; gap: 2px; }
.bh-grip { display: grid; grid-template-columns: repeat(2, 4px); gap: 3px; padding: 4px 2px; cursor: grab; color: rgb(var(--v3-fg-3)); touch-action: none; user-select: none; }
.bh-grip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; } .bh-grip.is-off { cursor: default; width: 14px; }
.bh-sw { position: relative; display: inline-flex; width: 34px; height: 20px; margin-left: 6px; cursor: pointer; }
.bh-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; } .bh-sw span { width: 100%; height: 100%; border-radius: 999px; background: rgb(var(--v3-line-2)); transition: background .15s; position: relative; }
.bh-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bh-sw input:checked + span { background: rgb(var(--v3-accent)); } .bh-sw input:checked + span::after { transform: translateX(14px); }
.bh-sw input:disabled + span { opacity: .45; } .bh-sw input:focus-visible + span { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.bh-set { display: flex; flex-direction: column; gap: 12px; padding: 14px; } .bh-set h3 { margin: 0; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.bh-set[hidden] { display: none; }
.bh-radio { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; } .bh-radio label { display: flex; align-items: center; gap: 6px; } .bh-radio .is-off, .bh-radio.is-off { color: rgb(var(--v3-fg-3)); }
.bh-pick { display: flex; flex-direction: column; gap: 8px; } .bh-pick[hidden] { display: none; }
.bh-plist { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; padding: 4px; }
.bh-pi { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; min-width: 0; } .bh-pi:hover { background: rgb(var(--v3-surface-2)); }
.bh-pi img, .bh-pi .bh-prod0 { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; } .bh-pi > span { display: flex; flex-direction: column; flex: 1; } .bh-pi small { color: rgb(var(--v3-fg-3)); font-size: 12px; }
.bh-pi[hidden] { display: none; }
/* choose what shows (Terry msg 1193): Show all, the chosen list in order, the searchable list 10 a page, how many a page on the hub */
.bh-all { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; } .bh-all input { width: 16px; height: 16px; }
.bh-chosen { display: flex; flex-direction: column; gap: 6px; } .bh-chosen-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bh-chosen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.bh-ci { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid rgb(var(--v3-line)); border-radius: 9px; background: rgb(var(--v3-surface-2) / .6); font-size: 13px; min-width: 0; }
.bh-ci img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; } .bh-ci-n { flex: 1; min-width: 0; font-weight: 600; } .bh-ci.is-drag { opacity: .45; }
.bh-pfind { display: flex; gap: 6px; } .bh-pfind input { flex: 1; min-width: 0; } .bh-pfind select { width: 160px; flex: none; }
.bh-plist { max-height: none; }
.bh-ppg { display: flex; align-items: center; gap: 4px; } .bh-ppg button:disabled { opacity: .35; }
.bh-pp { max-width: 220px; }
.bh-res-show { display: none; align-items: center; padding: 0 2px; } .bh-res-list.is-pick .bh-res-show { display: inline-flex; } .bh-res-show input { width: 16px; height: 16px; }
.bh-res-list.is-pick .bh-res-row:has(.bh-res-show input:not(:checked)) { opacity: .6; }
.bh-logocol { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(var(--v3-accent) / .35); background: rgb(var(--v3-accent) / .06); font-size: 13px; }
.bh-logocol[hidden], .bh-logocol [hidden] { display: none; } .bh-logocol-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bh-set [data-bh-tplact][hidden] { display: none; }   /* Rename / Delete / Set as default only for a saved template */
.bh-pi > span.chip { flex: none; }
.bh-sw-row { display: inline-flex; gap: 4px; } .bh-sw-row i { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgb(0 0 0 / .12); display: block; }
@media (max-width: 639px) { .bh-pfind { flex-wrap: wrap; } .bh-pfind select { width: 100%; } .bh-pp { max-width: none; } }
.bh-soonline { margin: 0; font-size: 13px; color: rgb(var(--v3-fg-3)); display: flex; align-items: center; gap: 6px; }
.bh-soonbox { display: flex; align-items: center; gap: 10px; color: rgb(var(--v3-fg-3)); font-size: 13px; }
/* Customise › Resources (Terry msg 1241): one slim row each; the fields live in the row, hidden, and open in the resource pop-up */
.bh-res-list { display: flex; flex-direction: column; gap: 6px; }
.bh-res-row { padding: 4px 6px; border: 1px solid rgb(var(--v3-line)); border-radius: 9px; background: rgb(var(--v3-surface-2) / .6); }
.bh-res-row.is-off-page, .bh-res-row.is-new { display: none; }
[data-bh-res-pg][hidden] { display: none; }
.bh-res-sum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bh-res-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-accent)); border: 1px solid rgb(var(--v3-line)); }
.bh-res-ico svg { width: 15px; height: 15px; }
.bh-res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 2px 0; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.bh-res-main b { font-size: 13px; max-width: 100%; } .bh-res-main small { font-size: 11.5px; color: rgb(var(--v3-fg-3)); max-width: 100%; }
.bh-res-main small:empty { display: none; }
.bh-res-main:hover b { text-decoration: underline; }
.bh-res-menu { width: 9rem; } .bh-res-delmi { color: rgb(var(--v3-neg)); }
.bh-res-row [hidden], .bh-res-dlg [hidden] { display: none; }
.bh-res-none { margin: 0; padding: 14px; border: 1px dashed rgb(var(--v3-line-2)); border-radius: 10px; font-size: 13px; color: rgb(var(--v3-fg-3)); text-align: center; }
.bh-res-dlg { width: min(30rem, calc(100vw - 32px)); }
.bh-res-dlg-body > .bh-res-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bh-res-err { margin: 8px 0 0; font-size: 12.5px; color: rgb(var(--v3-neg)); }
.bh-res-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: rgb(var(--v3-warn) / .12); font-size: 13px; }
.bh-pdf { font-size: 13px; font-weight: 600; }
.bh-rte { border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; overflow: hidden; } .bh-rte-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface-2)); }
.bh-rte-box { min-height: 90px; border: 0; border-radius: 0; padding: 8px 10px; overflow-wrap: anywhere; height: auto; } .bh-rte-box:focus { outline: none; } .bh-rte-box ul, .bh-rte-box ol { padding-left: 20px; }
.bh-pv-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bh-seg { display: inline-flex; border: 1px solid rgb(var(--v3-line)); border-radius: 9px; overflow: hidden; } .bh-seg button { padding: 4px 12px; font-size: 12.5px; color: rgb(var(--v3-fg-3)); }
.bh-seg button.is-on { background: rgb(var(--v3-accent) / .12); color: rgb(var(--v3-fg)); font-weight: 600; }
.bh-pv { margin: 0 auto; border: 10px solid #111827; border-radius: 36px; overflow: hidden; background: #111827; }
.bh-pv.is-phone { width: min(360px, 100%); } .bh-pv.is-desktop { width: 100%; border-width: 8px; border-radius: 12px; }
.bh-pv-screen { height: 620px; overflow-y: auto; background: #fff; border-radius: 26px; scrollbar-width: thin; } .bh-pv.is-desktop .bh-pv-screen { border-radius: 4px; height: 560px; max-width: none; }
.bh-pv-screen .bh-page { min-height: 100%; }
.bh-members { display: flex; flex-direction: column; }
.bh-mbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
.bh-mfind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .bh-mfind .input { height: 32px; } .bh-mq { display: flex; align-items: center; gap: 6px; } .bh-mq .input { width: 220px; }
.bh-mcounts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 12px 10px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.bh-sort { white-space: nowrap; } .bh-sort.is-on { color: rgb(var(--v3-fg)); }
.bh-mh { font-weight: 600; cursor: pointer; } .bh-mh:hover { text-decoration: underline; }
.bh-accts { display: flex; flex-wrap: wrap; gap: 4px; } .bh-acct { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.bh-acct.is-ok { background: rgb(16 185 129 / .14); color: rgb(4 120 87); }
.bh-pager { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid rgb(var(--v3-line)); }
.bh-bcast { width: min(520px, calc(100vw - 32px)); } .bh-bcast form { display: flex; flex-direction: column; gap: 10px; }
.bh-chan { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; } .bh-chan-off { color: rgb(var(--v3-fg-3)); }
@media (max-width: 1023px) { .bh-cust { grid-template-columns: minmax(0, 1fr); } .bh-right { position: static; } }
@media (max-width: 639px) { .bh-mq .input { width: 100%; } .bh-mfind { width: 100%; } .bh-pv-screen { height: 540px; } }

/* ---- Creator community › Contracts (Terry msgs 1006, 1010) */
.ct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.ct-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; } .ct-stat span { font-size: 13px; color: rgb(var(--v3-fg-2)); } .ct-stat b { font-size: 24px; }
.ct-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; } .ct-search { display: flex; align-items: center; gap: 6px; flex: 1 1 240px; } .ct-search .input { flex: 1; } .ct-sel { width: auto; }
.ct-tbl td { vertical-align: middle; } .ct-name { font-weight: 600; } .ct-name:hover { text-decoration: underline; }
.ct-sub { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); overflow-wrap: anywhere; }
.ct-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.ct-pill.ct-published { background: rgb(22 163 74 / .14); color: rgb(21 128 61); } .ct-pill.ct-void { background: rgb(220 38 38 / .12); color: rgb(185 28 28); }
.ct-kind { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; border: 1px solid rgb(var(--v3-line)); white-space: nowrap; } .ct-kind.is-terms { border-color: rgb(var(--v3-accent) / .5); color: rgb(var(--v3-accent)); }
.ct-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; border-top: 1px solid rgb(var(--v3-line)); }
.ct-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: rgb(var(--v3-fg-3)); } .ct-empty h3 { margin: 4px 0 0; color: rgb(var(--v3-fg)); font-weight: 600; } .ct-empty p { margin: 0 0 8px; }
.ct-none { padding: 18px 16px; }
.ct-newd { width: min(560px, calc(100vw - 32px)); } .ct-newd[open] { display: flex; flex-direction: column; gap: 12px; }
.ct-head { position: sticky; top: 52px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; }   /* Save and Publish stay in reach on a long document */
.ct-title { font-size: 18px; font-weight: 700; margin: 0; overflow-wrap: anywhere; } .ct-linkrow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.ct-box { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ct-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ct-start .ct-box { margin-bottom: 0; }
.ct-rte-bar { display: flex; flex-wrap: wrap; gap: 2px; } .ct-rte { min-height: 200px; max-height: 520px; overflow: auto; line-height: 1.55; } .ct-rte h2 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; } .ct-rte ul, .ct-rte ol { padding-left: 20px; } .ct-rte ul { list-style: disc; } .ct-rte ol { list-style: decimal; }
.ct-editor { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; align-items: start; }
.ct-side { position: sticky; top: 140px; padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 160px); overflow: auto; }
.ct-tools2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .ct-ftype { justify-content: flex-start; } .ct-ftype.is-on { outline: 2px solid rgb(var(--v3-accent)); }
.ct-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.ct-t-signature { --ct-c: 244 55 88; } .ct-t-name { --ct-c: 59 130 246; } .ct-t-date { --ct-c: 16 185 129; } .ct-t-text { --ct-c: 168 85 247; } .ct-t-checkbox { --ct-c: 245 158 11; } .ct-t-email { --ct-c: 14 165 233; }
.ct-dot { background: rgb(var(--ct-c)); }
.ct-props { border-top: 1px solid rgb(var(--v3-line)); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ct-flist { display: flex; flex-direction: column; gap: 3px; } .ct-fl { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; font-size: 13px; text-align: left; } .ct-fl small { margin-left: auto; color: rgb(var(--v3-fg-3)); } .ct-fl:hover, .ct-fl.is-sel { background: rgb(var(--v3-fg) / .06); }
.ct-pages { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; padding-bottom: 20px; }
.ct-page { position: relative; width: 100%; max-width: 820px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .15); user-select: none; touch-action: pan-x pan-y pinch-zoom; }   /* a finger still scrolls the document; only a box takes the drag */
.ct-page canvas { width: 100%; height: 100%; display: block; } .ct-pno { position: absolute; bottom: -18px; right: 0; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.ct-box2 { position: absolute; border: 2px solid rgb(var(--ct-c)); background: rgb(var(--ct-c) / .14); border-radius: 4px; cursor: move; display: flex; align-items: center; overflow: hidden; }
.ct-box2 span { font-size: 11px; font-weight: 600; color: rgb(var(--ct-c)); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: brightness(.7); }
.ct-box2 { touch-action: none; }
.ct-box2.ct-t-checkbox { gap: 0; padding-left: 3px; } .ct-box2 .ct-sq { flex: none; height: 78%; aspect-ratio: 1; border: 2px solid rgb(var(--ct-c)); border-radius: 3px; background: #fff; }   /* a tick box: its square, then its words (Terry msg 1104) */
.ct-box2.is-sel { box-shadow: 0 0 0 3px rgb(var(--ct-c) / .35); } .ct-rs { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; background: rgb(var(--ct-c)); cursor: nwse-resize; }
.ct-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.ct-phone-wrap { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 6px; }
.ct-phone { width: 300px; margin: 0 auto; border-radius: 30px; padding: 10px; background: rgb(17 24 39); }
.ct-phone > div { background: var(--t-bg, #f5f8ff); color: var(--t-text, #111); }
.ct-ph-band { border-radius: 22px 22px 0 0; min-height: 110px; background: var(--t-accent, #3e88ea) !important; color: var(--t-on, #fff) !important; position: relative; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; }
.ct-ph-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; } .ct-ph-band b { position: relative; }
.ct-ph-body { border-radius: 0 0 22px 22px; padding: 14px; min-height: 360px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ct-ph-body h3 { margin: 0; font-size: 18px; font-weight: 700; } .ct-ph-body p { margin: 0; white-space: pre-line; }
.ct-ph-doc { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--t-card, #fff); }
.ct-ph-btn { display: grid; place-items: center; height: 42px; border-radius: 999px; background: var(--t-accent, #3e88ea); color: var(--t-on, #fff); font-weight: 600; }
.ct-ph-extra { display: grid; place-items: center; height: 36px; border-radius: 999px; border: 1px solid currentColor; font-size: 12.5px; }
.ct-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ct-mlist { max-height: 320px; overflow: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; margin-top: 6px; }
.ct-mrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgb(var(--v3-line)); font-size: 13.5px; } .ct-mrow:last-child { border-bottom: 0; }
.ct-spv { display: flex; flex-direction: column; gap: 4px; } .ct-spv small { color: rgb(var(--v3-fg-3)); } .ct-spv-msg { white-space: pre-wrap; padding: 10px 12px; border-radius: 10px; background: rgb(var(--v3-fg) / .05); font-size: 13.5px; }
.ct-sent { padding: 8px 0; border-top: 1px solid rgb(var(--v3-line)); font-size: 13.5px; }
@media (max-width: 1023px) { .ct-editor, .ct-detail { grid-template-columns: minmax(0, 1fr); } .ct-side, .ct-phone-wrap { position: static; max-height: none; } }
@media (max-width: 639px) { .ct-cards { gap: 6px; } .ct-stat { padding: 10px; } .ct-stat b { font-size: 20px; } .ct-grid2, .ct-start, .ct-send { grid-template-columns: minmax(0, 1fr); } .ct-tbl th:nth-child(2), .ct-tbl td:nth-child(2) { display: none; } }
[data-ct-root] [hidden], .ct-sign [hidden] { display: none !important; }   /* a hidden box stays hidden whatever its own display */
/* Contracts on a phone (Terry msg 1104): a box's words shrink with the page so they fit their box; the editor's head scrolls away rather than
   covering half the document (Save and Publish are back at the top) */
.ct-page { container-type: inline-size; }
.ct-box2 span { font-size: clamp(7px, 1.45cqw, 11px); line-height: 1.1; }
.ct-box2:has(.ct-rs) span { padding-right: 12px; }   /* the words never run under the resize corner */
@media (max-width: 639px) { .ct-head { position: static; } .ct-box2 { border-width: 1px; } .ct-box2 span, .ct-box2:has(.ct-rs) span { padding: 0 8px 0 2px; } .ct-rs { width: 7px; height: 7px; } }
/* Campaign tracking (Terry msg 1112, part 4d): the #1 banner (msg 1125), the podium, ranks and movement. The same classes on the brand's
   tracking page and the boards creators see. The banner flows between gold and the brand's own accents (--tk-a1, --tk-a2); its words sit on
   a dark plate so they read at every frame. CSS only, and still under prefers-reduced-motion. */
.tk-head { padding: 14px 16px; margin-bottom: 14px; }
.tk-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.tk-upd { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.tk-phase { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg-2)); }
.tk-ph-running { background: rgb(var(--v3-pos) / .13); color: rgb(var(--v3-pos)); }
.tk-ph-grace, .tk-ph-review { background: rgb(var(--v3-warn) / .14); color: rgb(var(--v3-warn)); }
.tk-ph-confirmed { background: rgb(var(--v3-info) / .13); color: rgb(var(--v3-info)); }
.tk-live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: tk-blink 1.6s ease-in-out infinite; }
@keyframes tk-blink { 50% { opacity: .25; } }

.tk-royal { --tk-a1: #e11d48; --tk-a2: #7c3aed; position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; margin: 0 0 14px; padding: 16px 18px; color: #fff;
  background: linear-gradient(115deg, #a8740b 0%, #f5c542 18%, var(--tk-a1) 36%, #ffd86b 52%, var(--tk-a2) 70%, #d9a21f 86%, #f5c542 100%);
  background-size: 320% 320%; animation: tk-flow 14s ease-in-out infinite, tk-pulse 3.4s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .65), 0 8px 28px -10px rgba(245, 180, 40, .55); }
@keyframes tk-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes tk-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(245, 197, 66, .6), 0 6px 22px -10px rgba(245, 180, 40, .45); }
  50% { box-shadow: 0 0 0 2px rgba(255, 222, 128, .95), 0 10px 40px -6px rgba(245, 180, 40, .8); } }
.tk-royal-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, .32) 46%, transparent 58%); animation: tk-shine 5s ease-in-out infinite; }
@keyframes tk-shine { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
.tk-royal-in { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-royal-av { display: inline-flex; flex-direction: column; align-items: center; flex: none; }
.tk-royal-plate { display: flex; flex-direction: column; min-width: 0; padding: 8px 14px; border-radius: 12px; background: rgba(18, 12, 4, .68); }
.tk-royal-plate:not(.tk-royal-val) { flex: 1 1 200px; }
.tk-royal-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffe7a3; }
.tk-royal-name { font-size: 22px; line-height: 1.2; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.tk-royal-sub { font-size: 12.5px; color: #f6ecd4; }
.tk-royal-val b { font-size: 22px; font-weight: 800; color: #fff; }
.tk-royal-news { position: relative; display: inline-block; margin: 10px 0 0; padding: 3px 11px; border-radius: 999px; background: rgba(18, 12, 4, .68); color: #fff; font-size: 12px; font-weight: 700; }
.tk-crown { width: 18px; height: 18px; color: #f5b82e; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.tk-crown-lg { width: 30px; height: 30px; color: #ffd54a; margin-bottom: -7px; position: relative; z-index: 1; animation: tk-bob 3.4s ease-in-out infinite; }
.tk-crown-sm { width: 12px; height: 12px; color: #6b4600; filter: none; }
@keyframes tk-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.tk-av { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; width: 32px; height: 32px; border-radius: 50%;
  background: rgb(var(--v3-accent) / .18); color: rgb(var(--v3-fg)); font-weight: 800; font-size: 14px; }
.tk-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk-av-lg { width: 54px; height: 54px; font-size: 20px; }
.tk-av-xl { width: 64px; height: 64px; font-size: 24px; background: #3b2a06; color: #ffe7a3; border: 3px solid #ffd54a; box-shadow: 0 0 0 3px rgba(18, 12, 4, .3), 0 0 18px rgba(255, 213, 74, .8); }

.tk-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding: 16px 14px 4px; }
.tk-pod { flex: 0 1 180px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.tk-pod .tk-av-lg { border: 3px solid transparent; }
.tk-pod-1 .tk-av-lg { width: 64px; height: 64px; border-color: #f5b82e; box-shadow: 0 0 16px rgba(245, 184, 46, .7); animation: tk-glow 3s ease-in-out infinite; }
.tk-pod-2 .tk-av-lg { border-color: #b9c2cf; box-shadow: 0 0 10px rgba(185, 194, 207, .6); }
.tk-pod-3 .tk-av-lg { border-color: #c47a3c; box-shadow: 0 0 10px rgba(196, 122, 60, .55); }
@keyframes tk-glow { 50% { box-shadow: 0 0 26px rgba(245, 184, 46, .95); } }
.tk-pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.tk-pod-val { font-size: 12.5px; font-weight: 700; color: rgb(var(--v3-fg-2)); }
.tk-pod-prize { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.tk-pod-step { display: flex; justify-content: center; align-items: flex-start; width: 100%; margin-top: 6px; padding-top: 8px; border-radius: 12px 12px 4px 4px; }
.tk-pod-1 .tk-pod-step { height: 84px; background: linear-gradient(180deg, #ffe08a, #f5b82e); box-shadow: 0 0 22px rgba(245, 184, 46, .5); }
.tk-pod-2 .tk-pod-step { height: 60px; background: linear-gradient(180deg, #f1f4f8, #b9c2cf); }
.tk-pod-3 .tk-pod-step { height: 44px; background: linear-gradient(180deg, #f3c9a1, #c47a3c); }
.tk-medal { padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: #2a1d05; font-size: 12.5px; font-weight: 800; }

.tk-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tk-tiles[data-tk-six] { grid-template-columns: repeat(6, minmax(0, 1fr)); }   /* a draw's sixth tile: its total entries */
@media (max-width: 1279px) { .tk-tiles[data-tk-six] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-rk { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg)); }
.tk-rk-1 { background: linear-gradient(135deg, #ffe08a, #f5b82e); color: #3a2700; box-shadow: 0 0 10px rgba(245, 184, 46, .5); }
.tk-rk-2 { background: linear-gradient(135deg, #f4f6f9, #b9c2cf); color: #26303d; }
.tk-rk-3 { background: linear-gradient(135deg, #f3c9a1, #c47a3c); color: #3a1d05; }
.tk-rkcell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tk-tbl tr.tk-row-1 td { background: rgba(245, 184, 46, .08); }
.tk-tbl tr.tk-row-2 td { background: rgba(185, 194, 207, .1); }
.tk-tbl tr.tk-row-3 td { background: rgba(196, 122, 60, .07); }
.tk-tbl tr.tk-dq td { opacity: .6; }
.tk-mv { font-size: 10.5px; font-weight: 800; }
.tk-up { color: rgb(var(--v3-pos)); } .tk-down { color: rgb(var(--v3-neg)); } .tk-new { color: rgb(var(--v3-info)); }
.tk-away { font-size: 12.5px; color: rgb(var(--v3-fg-2)); min-width: 140px; }
.tk-top-note { font-weight: 700; color: #b7791f; }
.tk-prog { min-width: 90px; }
.tk-bcell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tk-bingo { display: inline-grid; gap: 2px; }
.tk-bingo.tk-g3 { grid-template-columns: repeat(3, 8px); } .tk-bingo.tk-g4 { grid-template-columns: repeat(4, 8px); }
.tk-bingo i { width: 8px; height: 8px; border-radius: 2px; background: rgb(var(--v3-fg) / .12); }
.tk-bingo i.is-on { background: rgb(var(--v3-pos)); }
.tk-drawn { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgb(var(--v3-accent) / .14); color: rgb(var(--v3-accent)); font-size: 11px; font-weight: 700; }
.tk-win { color: rgb(var(--v3-pos)); }
.tk-final { border-top: 1px solid rgb(var(--v3-line)); }
.tk-final-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.tk-dqbox { width: 15rem; }
.tk-k-words { white-space: nowrap; font-size: clamp(15px, 1.35vw, 20px); }   /* a tile whose value is words ("Not drawn"): one row at 1440 */
/* Video links (Terry msg 4248): a campaign video added by its TikTok link */
.tk-links { padding: 0 0 4px; }
.tk-ladd { padding: 12px 14px; border-bottom: 1px solid rgb(var(--v3-line)); display: flex; flex-direction: column; gap: 8px; }
.tk-ladd-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tk-ladd-who { flex: 0 1 220px; min-width: 160px; } .tk-ladd-url { flex: 1 1 320px; min-width: 0; }
.tk-ladd-go { min-height: 36px; }
.tk-lurl { display: inline-flex; align-items: center; gap: 5px; color: rgb(var(--v3-accent)); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tk-lurl:hover { text-decoration: underline; }
.tk-loe { display: block; font-size: 11.5px; color: rgb(var(--v3-fg-3)); margin-top: 2px; }
.tk-lflag { color: rgb(var(--v3-warn)); font-weight: 700; }
.tk-lst { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgb(var(--v3-neg) / .1); color: rgb(var(--v3-neg)); }
.tk-lst-ok { background: rgb(var(--v3-pos) / .12); color: rgb(var(--v3-pos)); }
.tk-lst-wait { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg-2)); }
.tk-lwhy { display: block; font-size: 11.5px; color: rgb(var(--v3-fg-3)); margin-top: 2px; max-width: 18rem; }
.tk-ltbl .ls-acts { white-space: nowrap; text-align: right; }
.tk-ltbl .ls-acts > form, .tk-ltbl .ls-acts > details { display: inline-block; vertical-align: middle; }
.tk-ltbl td { vertical-align: middle; }
.tk-lok { background: #15803d; border-color: #15803d; color: #fff; }   /* Approve: green, white words in every theme */
.tk-lok:hover { filter: brightness(1.05); }
@media (max-width: 639px) { .tk-ladd-who, .tk-ladd-url { flex: 1 1 100%; } .tk-ladd-go { width: 100%; min-height: 44px; } .tk-lst { white-space: normal; } }
.tk-tiersel { width: auto; height: 28px; padding: 0 6px; font-size: 12px; }
.tk-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px; }
.tk-setform { grid-template-columns: minmax(0, 1fr); align-content: start; }
/* Creators' view (Terry msg 1173): full board or only their own position, and the How to climb tips */
.tk-setcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tk-mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-mode legend { font-size: 12.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); margin-bottom: 4px; display: inline-flex; align-items: center; gap: 4px; }
.tk-mode-opt { padding: 8px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; font-weight: 600; }
.tk-mode-opt.is-on, .tk-mode-opt:has(input:checked) { border-color: rgb(var(--v3-accent) / .6); background: rgb(var(--v3-accent) / .05); }
.tk-tipform { border-top: 1px solid rgb(var(--v3-line)); padding-top: 12px; }
.tk-tiph { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tk-tipgrp { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; padding: 0 10px; }
.tk-tipgrp > summary { cursor: pointer; padding: 9px 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-tipgrp[open] > summary { border-bottom: 1px solid rgb(var(--v3-line)); margin-bottom: 6px; }
.tk-tiprow { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 8px; }
.tk-tiprow + .tk-tiprow { border-top: 1px dashed rgb(var(--v3-line)); }
.tk-tiprow .input { font-size: 13px; }
.tk-tiptext { font-size: 12.5px; color: rgb(var(--v3-fg-2)); padding-left: 26px; }
.tk-log h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.tk-logrow { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-top: 1px solid rgb(var(--v3-line)); font-size: 12.5px; }
a.cc-nm-link { color: inherit; text-decoration: none; } a.cc-nm-link:hover { color: rgb(var(--v3-accent)); text-decoration: underline; }
@media (max-width: 1023px) { .tk-tiles, .tk-tiles[data-tk-six] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tk-settings { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .tk-tiles, .tk-tiles[data-tk-six] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-royal { padding: 12px; } .tk-royal-name, .tk-royal-val b { font-size: 18px; } .tk-royal-plate, .tk-royal-plate:not(.tk-royal-val) { flex: 1 1 100%; } .tk-av-xl { width: 54px; height: 54px; }
  .tk-podium { gap: 6px; padding: 12px 8px 2px; } .tk-pod-1 .tk-av-lg { width: 54px; height: 54px; } .tk-av-lg { width: 44px; height: 44px; }
  .tk-pod-1 .tk-pod-step { height: 64px; } .tk-pod-2 .tk-pod-step { height: 46px; } .tk-pod-3 .tk-pod-step { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-royal, .tk-royal-shine, .tk-crown-lg, .tk-live-dot, .tk-pod-1 .tk-av-lg { animation: none !important; }
  .tk-royal { background-position: 35% 50%; } .tk-royal-shine { display: none; }
}
/* The prize showcase (Terry msg 1253: "1st prize needs to look GRAND"): templates/v3/_prize.html. The hero is gold flowing through the
   brand's two hues (--pz-a1 / --pz-a2), with a shimmer, a glow pulse and sparkles on first sight; its words sit on a dark plate so they read
   at every frame. 2nd and 3rd are silver and bronze cards; the rest a neat list. CSS only, still under prefers-reduced-motion. */
.pz { --pz-a1: #d97706; --pz-a2: #b4235a; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; container-type: inline-size; }
.pz-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(115deg, #8a5a00 0%, #f5c542 16%, var(--pz-a1) 34%, #ffe08a 50%, var(--pz-a2) 68%, #d9a21f 84%, #f5c542 100%);
  background-size: 320% 320%; animation: tk-flow 14s ease-in-out infinite, pz-pulse 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .7), 0 12px 36px -12px rgba(245, 170, 30, .7); }
@keyframes pz-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(245, 197, 66, .65), 0 10px 30px -12px rgba(245, 170, 30, .55); }
  50% { box-shadow: 0 0 0 3px rgba(255, 224, 138, .95), 0 14px 48px -6px rgba(245, 170, 30, .9); } }
.pz-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .38) 46%, transparent 60%); animation: tk-shine 4.6s ease-in-out infinite; }
.pz-in { position: relative; display: flex; align-items: center; gap: 14px; }
.pz-badge { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d6, #f5c542 45%, #b7860b);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 6px 18px -4px rgba(0, 0, 0, .45); animation: tk-bob 3.4s ease-in-out infinite; }
.pz-trophy { width: 36px; height: 36px; color: #6b4300; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
.pz-plate { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; border-radius: 14px; background: rgba(18, 12, 4, .72); }
.pz-kicker { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #ffe7a3; }
.pz-big { font-size: clamp(34px, 12cqi, 60px); line-height: 1.02; font-weight: 900; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 22px rgba(255, 214, 102, .55); }
.pz-unit { font-size: 15px; font-weight: 700; color: #ffe7a3; }
.pz-plus { font-size: 17px; font-weight: 800; color: #fff; }
.pz-note { margin-top: 2px; font-size: 12.5px; color: #f6ecd4; }
.pz-img { flex: none; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 6px 18px -4px rgba(0, 0, 0, .45); }
.pz-meter { position: relative; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(18, 12, 4, .72); }
.pz-meter-h { display: block; font-size: 12.5px; color: #f6ecd4; } .pz-meter-h b { color: #fff; font-size: 15px; }
.pz-meter-bar { display: block; height: 8px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pz-meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe08a, #f5c542); }
.pz-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pz-s { position: absolute; width: 10px; height: 10px; opacity: 0; transform: scale(0) rotate(0deg);
  background: radial-gradient(circle, #fff 0 22%, transparent 24%), conic-gradient(from 0deg, transparent 0 40deg, #fff6c2 45deg, transparent 50deg 130deg, #fff6c2 135deg, transparent 140deg 220deg, #fff6c2 225deg, transparent 230deg 310deg, #fff6c2 315deg, transparent 320deg);
  border-radius: 50%; animation: pz-spark 1.6s ease-out 1 both; }
.pz-s0 { top: 10%; left: 8%; } .pz-s1 { top: 18%; left: 46%; animation-delay: .15s; } .pz-s2 { top: 8%; right: 12%; animation-delay: .3s; }
.pz-s3 { bottom: 14%; left: 22%; animation-delay: .45s; } .pz-s4 { bottom: 10%; right: 26%; animation-delay: .2s; } .pz-s5 { top: 48%; right: 6%; animation-delay: .6s; }
.pz-s6 { top: 60%; left: 4%; animation-delay: .75s; } .pz-s7 { top: 30%; left: 70%; animation-delay: .9s; width: 14px; height: 14px; }
@keyframes pz-spark { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 30% { opacity: 1; transform: scale(1.4) rotate(45deg); } 100% { opacity: 0; transform: scale(.2) rotate(120deg); } }
.pz-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pz-place { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 76px; padding: 12px 14px; border-radius: 14px; color: #1f2329; }
.pz-place small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.pz-place b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 22px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.pz-place img { flex: none; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; object-fit: cover; background: #fff; }
.pz-medal { flex: none; font-size: 28px; line-height: 1; } .pz-p3 .pz-medal { font-size: 24px; }
.pz-p2 { background: linear-gradient(135deg, #f4f6f9, #c9d0d9 55%, #eef1f5); box-shadow: 0 0 0 1px #b5bec9 inset, 0 6px 16px -10px rgba(40, 50, 70, .5); }
.pz-p3 { background: linear-gradient(135deg, #f7dcc2, #d9935a 55%, #f3cfab); box-shadow: 0 0 0 1px #c47f45 inset, 0 6px 16px -10px rgba(110, 60, 20, .5); color: #2b1606; }
.pz-rest { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.pz-rest li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13.5px; }
.pz-rest li + li { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.pz-ladder { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pz-ladder li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 13.5px; }
.pz-ladder li small { display: block; font-size: 12px; opacity: .75; } .pz-ladder li > b { font-size: 16px; font-weight: 800; }
.pz-ladder li.is-top { border-color: #e2b23a; background: linear-gradient(90deg, rgba(245, 197, 66, .22), rgba(245, 197, 66, .06)); }
.pz-extras { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .pz-extras span { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid #e2b23a; background: rgba(245, 197, 66, .14); }
.pz-mini { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 8px; border-radius: 12px; color: #fff;
  background: linear-gradient(115deg, #8a5a00 0%, #f5c542 18%, var(--pz-a1) 38%, #ffe08a 55%, var(--pz-a2) 75%, #f5c542 100%); background-size: 320% 320%;
  animation: tk-flow 14s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(245, 197, 66, .8), 0 6px 18px -10px rgba(245, 170, 30, .8); }
.pz-trophy-sm { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #6b4300; background: radial-gradient(circle at 35% 30%, #fff6d6, #f5c542 50%, #b7860b); }
.pz-mini-plate { min-width: 0; display: flex; flex-direction: column; padding: 3px 9px; border-radius: 9px; background: rgba(18, 12, 4, .72); line-height: 1.15; }
.pz-mini-plate small { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #ffe7a3; }
.pz-mini-plate b { font-size: 19px; font-weight: 900; color: #fff; overflow-wrap: anywhere; } .pz-mini-plate em { font-style: normal; font-size: 12px; font-weight: 700; color: #ffe7a3; }
.pz-mini-plate .pz-mini-plus { color: #fff; }
@container (max-width: 460px) {
  .pz-hero { padding: 14px; } .pz-in { flex-wrap: wrap; gap: 10px; } .pz-badge { width: 48px; height: 48px; } .pz-trophy { width: 28px; height: 28px; }
  .pz-plate { flex: 1 1 100%; order: 2; } .pz-img { width: 64px; height: 64px; margin-left: auto; }
  .pz-places { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pz-hero, .pz-shine, .pz-badge, .pz-mini { animation: none !important; } .pz-hero, .pz-mini { background-position: 35% 50%; }
  .pz-shine, .pz-sparks { display: none; }
}
/* the campaign's join page and the creator's home (creator pages, part 4d): a short board and each campaign's standing */
.cw-pubb { display: flex; flex-direction: column; gap: 8px; }
.cw-pubb .tk-podium { padding: 8px 0 0; }
.cw-pubb .bd-goal { padding: 12px 14px; border-radius: 14px; background: rgb(127 127 127 / .08); border: 1px solid rgb(127 127 127 / .25); display: flex; flex-direction: column; gap: 4px; }
.cw-pubb .bd-goal-h { margin: 0; font-size: 13px; font-weight: 700; opacity: .8; } .cw-pubb .bd-goal-v { font-size: 22px; font-weight: 900; overflow-wrap: anywhere; }
.cw-pubb .bd-goal-2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cw-pubb .bd-goal-2 small, .cw-pubb .bd-after, .cw-pubb .bd-line { font-size: 12.5px; opacity: .8; }
.cw-pubb .bd-line { margin: 0; }
.cw-pubb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cw-pubb-list li { display: flex; align-items: center; gap: 8px; } .cw-pubb-list b { min-width: 24px; } .cw-pubb-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; margin-top: 2px; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #7c2d12; font-size: 13px; }
.cw-stand b { display: inline; } .cw-stand a { font-weight: 700; text-decoration: underline; }
.cw-pz { display: block; width: 100%; margin-top: 4px; }   /* the campaign's prize on the creator's home (msg 1253) */
.bh-cam .pz-mini { align-self: flex-start; margin: 4px 0 2px; }
.cc-rprize { margin: 0 0 14px; } .cc-rprize-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.cc-live-pz { margin-top: 8px; } .cc-live-pz .pz-mini { display: flex; }
.cc-pwhite > .pz { margin: 0 0 12px; }
/* under the prize showcase, the type's own payout rows fold away, closed (msg 1253): the hero already says it */
.cc-pdet { margin: 4px 0 8px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 12px; }
.cc-pdet > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.cc-pdet > summary::-webkit-details-marker { display: none; }
.cc-pdet > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .15s; }
.cc-pdet[open] > summary::after { transform: rotate(-135deg); }
.cc-pdet-in { padding: 0 12px 8px; }

/* the side panel's Creator community card (joined-up check, Terry msgs 1180-1182): one creator, one truth */
.cpn-cm { display: grid; gap: 10px; padding: 10px 14px 12px; }
.cpn-cm-money { display: flex; align-items: stretch; gap: 10px; padding: 8px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; color: inherit; }
.cpn-cm-money:hover { border-color: rgb(var(--v3-accent) / .5); }
.cpn-cm-money > span { display: flex; flex-direction: column; min-width: 0; }
.cpn-cm-money small, .cpn-cm-cap { font-size: 11px; color: rgb(var(--v3-fg-3)); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.cpn-cm-money b { font-size: 16px; }
.cpn-cm-money em, .cpn-cm-row em { font-style: normal; font-size: 11.5px; color: rgb(var(--v3-fg-2)); }
.cpn-cm-go { margin-left: auto; flex-direction: row !important; align-items: center; gap: 2px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.cpn-cm-list { display: grid; gap: 2px; }
.cpn-cm-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: inherit; min-width: 0; }
.cpn-cm-row:hover { background: rgb(var(--v3-fg) / .04); }
.cpn-cm-row b { font-size: 13px; font-weight: 600; }
.cpn-cm-rank { font-size: 12px; font-weight: 700; color: rgb(var(--v3-fg)); white-space: nowrap; }
.cpn-acct { flex-shrink: 0; }
a.cc-hub { text-decoration: none; transition: border-color .15s; } a.cc-hub:hover { border-color: rgb(var(--v3-accent) / .5); color: rgb(var(--v3-fg)); }
.ct-sh[data-cpn] { cursor: pointer; text-decoration: underline; text-decoration-color: rgb(var(--v3-fg) / .25); text-underline-offset: 2px; }
.cpn-cm-more > summary { cursor: pointer; list-style: none; padding: 6px 8px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.cpn-cm-more > summary::-webkit-details-marker { display: none; }
.cpn-cm-more > summary:hover { color: rgb(var(--v3-fg)); }
/* Also promoted with our other brands (Terry msgs 1354, 1510): a total line, then compact brand cards, two a row (one on a phone), no wide gaps */
.cpn-oth, .cpn-oth-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cpn-oth { padding: 10px; }
.cpn-oth-total { color: rgb(var(--v3-fg-2)); }
.cpn-oth-total b { color: rgb(var(--v3-fg)); font-weight: 600; }
.cpn-oth-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); color: inherit; text-decoration: none; }
a.cpn-oth-card { transition: border-color .15s, background .15s; }
a.cpn-oth-card:hover, a.cpn-oth-card:focus-visible { border-color: rgb(var(--v3-accent) / .5); background: rgb(var(--v3-fg) / .02); }
.cpn-oth-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cpn-oth-top .v4-sb { flex-shrink: 0; width: 24px; height: 24px; }
.cpn-oth-top .delta { margin-left: auto; flex-shrink: 0; }
.cpn-oth-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.cpn-oth-figs { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cpn-oth-gmv { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cpn-oth-vids { font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cpn-oth-vids b { color: rgb(var(--v3-fg)); font-weight: 600; }
.cpn-oth-spark { width: 100%; height: 26px; display: block; }
.cpn-oth-when { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.cpn-oth-more { grid-column: 1 / -1; }
.cpn-oth-more > summary { cursor: pointer; list-style: none; padding: 4px 2px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.cpn-oth-more > summary::-webkit-details-marker { display: none; }
.cpn-oth-more > summary:hover { color: rgb(var(--v3-fg)); }
.cpn-oth-more[open] > summary { margin-bottom: 8px; }
/* TikWhizz Creator in the side panel and My affiliates › Creator levels (Terry msg 3812): the level ring, its bar, the medals. Tokens only, so Light,
   Dark and Navy follow; the medals keep their metal colours in every theme (as the creator's own Level and badges page) */
.twc, .xl-tbl { --xl-bronze: 180 113 61; --xl-silver: 142 153 168; --xl-gold: 209 155 12; --xl-diamond: 42 167 216; }
.twc { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 14px; }
.twc-lv { display: flex; align-items: center; gap: 14px; }
.twc-ring, .xl-ring { --twc-pct: 0; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(rgb(var(--v3-accent)) calc(var(--twc-pct) * 1%), rgb(var(--v3-line)) 0); }
.twc-ring b, .xl-ring b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.twc-lvt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.twc-lvh { margin: 0; font-size: 15px; font-weight: 700; color: rgb(var(--v3-fg)); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.twc-of { font-size: 12px; font-weight: 500; color: rgb(var(--v3-fg-3)); }
.twc-rise, .xl-rise { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); white-space: nowrap; }
.twc-bar { height: 8px; border-radius: 999px; background: rgb(var(--v3-line)); overflow: hidden; }
.twc-bar > i { display: block; height: 100%; border-radius: inherit; background: rgb(var(--v3-accent)); }
.twc-sub { margin: 0; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.twc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.twc-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); }
.twc-fact small { font-size: 11px; color: rgb(var(--v3-fg-3)); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twc-fact b { font-size: 14px; color: rgb(var(--v3-fg)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.twc-fact span { font-size: 11.5px; color: rgb(var(--v3-fg-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.twc-k { flex: none; width: 64px; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.twc-badge, .xl-b { --m: var(--xl-bronze); display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; color: rgb(var(--v3-fg));
  background: rgb(var(--m) / .14); border: 1px solid rgb(var(--m) / .5); white-space: nowrap; }
.twc-badge b { font-weight: 600; color: rgb(var(--v3-fg)); }
.is-silver.twc-badge, .is-silver.xl-b { --m: var(--xl-silver); } .is-gold.twc-badge, .is-gold.xl-b { --m: var(--xl-gold); } .is-diamond.twc-badge, .is-diamond.xl-b { --m: var(--xl-diamond); }
.twc-xp, .twc-acc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .05); white-space: nowrap; }
.twc-xp b { color: rgb(var(--v3-fg)); font-weight: 600; }
.twc-acc.is-here { color: rgb(var(--v3-fg)); font-weight: 600; }
.twc-ok { display: inline-flex; color: rgb(var(--v3-pos)); }
@media (max-width: 640px) { .twc-facts { grid-template-columns: minmax(0, 1fr); } }
.xl-ring { width: 34px; height: 34px; } .xl-ring b { width: 26px; height: 26px; font-size: 12.5px; }
.xl-lv { display: inline-flex; align-items: center; gap: 8px; }
.xl-lv small { font-size: 11px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.xl-b { padding: 0 6px; font-size: 11px; }
.xl-bs { display: inline-flex; gap: 3px; flex-wrap: nowrap; }
.xl-app { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: rgb(var(--v3-accent-ink)); background: rgb(var(--v3-accent) / .12); white-space: nowrap; }
.xl-grid { --cols: 4; }
@media (max-width: 640px) { .cpn-oth, .cpn-oth-more-grid { grid-template-columns: minmax(0, 1fr); } }
/* One creator, everywhere (Terry msgs 1240/1251): a click anywhere on a creator's cell opens their side panel; the small ♪ beside the name opens their TikTok */
[data-cpn] { cursor: pointer; }
td[data-cpn], span[data-cpn], div[data-cpn], header[data-cpn], b[data-cpn] { border-radius: 6px; }
td[data-cpn]:hover .cr-nm, [data-cpn]:hover > .cr-nm, [data-cpn]:hover .cp-who .cr-nm, tr[data-cpn]:hover .cr-nm { text-decoration: underline; text-decoration-color: rgb(var(--v3-fg) / .35); text-underline-offset: 3px; }
[data-cpn]:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.cr-nm { color: rgb(var(--v3-fg)); font-weight: inherit; }
a.tt-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 3px; border-radius: 6px; color: rgb(var(--v3-fg-3)); vertical-align: -4px; flex-shrink: 0; transition: color .15s, background .15s; }
a.tt-ico:hover, a.tt-ico:focus-visible { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .07); }
a.tt-ico:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 1px; }
/* the TikTok logo itself (Terry msg 1310): black tile, white note, cyan and red edges */
.tt-logo { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.tt-logo::before { content: ""; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2325F4EE' transform='translate(-0.9 -0.7)' d='M16.6 5.82A4.28 4.28 0 0 1 15.54 3h-3.09v12.4a2.59 2.59 0 0 1-2.59 2.5 2.6 2.6 0 0 1-2.6-2.6 2.6 2.6 0 0 1 3.37-2.48V9.66a5.73 5.73 0 0 0-.77-.05 5.69 5.69 0 0 0-5.69 5.69A5.69 5.69 0 0 0 9.86 21a5.69 5.69 0 0 0 5.68-5.69V9.01a7.35 7.35 0 0 0 4.29 1.37V7.3a4.28 4.28 0 0 1-3.23-1.48Z'/%3E%3Cpath fill='%23FE2C55' transform='translate(0.9 0.7)' d='M16.6 5.82A4.28 4.28 0 0 1 15.54 3h-3.09v12.4a2.59 2.59 0 0 1-2.59 2.5 2.6 2.6 0 0 1-2.6-2.6 2.6 2.6 0 0 1 3.37-2.48V9.66a5.73 5.73 0 0 0-.77-.05 5.69 5.69 0 0 0-5.69 5.69A5.69 5.69 0 0 0 9.86 21a5.69 5.69 0 0 0 5.68-5.69V9.01a7.35 7.35 0 0 0 4.29 1.37V7.3a4.28 4.28 0 0 1-3.23-1.48Z'/%3E%3Cpath fill='%23fff' d='M16.6 5.82A4.28 4.28 0 0 1 15.54 3h-3.09v12.4a2.59 2.59 0 0 1-2.59 2.5 2.6 2.6 0 0 1-2.6-2.6 2.6 2.6 0 0 1 3.37-2.48V9.66a5.73 5.73 0 0 0-.77-.05 5.69 5.69 0 0 0-5.69 5.69A5.69 5.69 0 0 0 9.86 21a5.69 5.69 0 0 0 5.68-5.69V9.01a7.35 7.35 0 0 0 4.29 1.37V7.3a4.28 4.28 0 0 1-3.23-1.48Z'/%3E%3C/svg%3E") center / contain no-repeat; }
a.tt-ico:hover .tt-logo, a.tt-ico:focus-visible .tt-logo { transform: scale(1.08); }
@media (pointer: coarse) { .tt-logo { width: 20px; height: 20px; border-radius: 5px; } .tt-logo::before { width: 14px; height: 14px; } }
@media (pointer: coarse) { a.tt-ico { width: 32px; height: 32px; margin: -6px -4px -6px 0; vertical-align: -10px; } }
.cpn-nothere { display: grid; gap: 12px; justify-items: start; } .cpn-nothere p { margin: 0; max-width: 42ch; }

/* Community › Review at volume (Terry msg 1440): a red dot on the sidebar's Community when a Safety item has waited over an hour */
.nv-alert { width: 7px; height: 7px; border-radius: 999px; background: rgb(var(--v3-neg, 220 38 38)); margin-left: 4px; flex-shrink: 0; box-shadow: 0 0 0 2px rgb(var(--v3-neg, 220 38 38) / .18); }

/* Don't contact again within… (Terry msg 1548): the automation wizard's cooldown and sample rule, under the audience */
.aw-cd { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); display: flex; flex-direction: column; gap: 10px; }
.aw-cd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.aw-cd-days { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aw-chip-radio { position: relative; display: inline-flex; }
.aw-chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.aw-chip-radio span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); font-size: 12.5px; font-weight: 550; color: rgb(var(--v3-fg-2)); }
.aw-chip-radio input:checked + span { background: rgb(var(--v3-accent) / .12); border-color: rgb(var(--v3-accent) / .5); color: rgb(var(--v3-fg)); }
.aw-chip-radio input:focus-visible + span { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 1px; }
.aw-cd-n { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.aw-cd-ch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.aw-cd-ch legend { float: left; margin-right: 6px; }
.aw-cd-line { color: rgb(var(--v3-fg-2)); margin: 0; }
.aw-cd-line b { color: rgb(var(--v3-fg)); }
.aw-cd-sx { padding-top: 10px; border-top: 1px dashed rgb(var(--v3-line)); }
.aw-cd-body { display: flex; flex-direction: column; gap: 10px; }
.aw-cd-body[hidden] { display: none; }
.aw-more { flex-basis: 100%; }
.aw-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 28px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-accent, var(--v3-fg))); }
.aw-more > summary::-webkit-details-marker { display: none; }
.aw-more > summary::after { content: "\203A"; margin-left: 5px; font-size: 15px; line-height: 1; }
.aw-more[open] > summary::after { content: "\2304"; margin-left: 5px; transform: translateY(-3px); }
.aw-more-b { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 2px 6px; padding-left: 12px; border-left: 2px solid rgb(var(--v3-line)); }
.aw-more-sx > .aw-more-b { flex-direction: row; flex-wrap: wrap; align-items: center; }
.aw-cd .aw-f { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
@media (max-width: 640px) { .aw-cd .aw-f { flex-wrap: wrap; } }
/* ---- the sidebar folds and opens smoothly (Terry msgs 1526, 1528). Folded, the rail keeps the TikWhizz mark at the top with the toggle right
   beside it on the same top row (Terry msg 1635; never hidden behind a hover). Moving, only the panel inside the rail changes width, over the page, with its own edge and background;
   the page takes its new width once, at the end (v3.js toggleSidebar). The words fade and slide in beside their icons; nothing else animates.
   Before Alpine starts, html.tw-sb-col (set in <head> from the remembered choice) gives the rail its folded width and hides the words: no jump */
.ds-sidebar:not([class~="w-14"]):not([class~="w-60"]) { width: 15rem; }
html.tw-sb-col .ds-sidebar:not([class~="w-60"]) { width: 76px; }
html.tw-sb-col .ds-sidebar:not([class~="w-60"]) [x-show="notCollapsed"] { display: none; }
/* the toggle's row (Terry msg 1635): folded or open, the mark sits at the left of the top row and the toggle rides the rail's right edge on that
   SAME row, so folding and opening move it left and right only, never down. The folded rail is 76 px so both fit side by side */
/* (the design's row: 52 px tall with 8 px on top, so the mark's centre is 30 px down; a 32 px toggle at top 14 px shares that centre exactly) */
.ds-sidebar[class~="w-14"] { width: 76px; }
.ds-side > .ds-brand { position: relative; flex-direction: row; justify-content: flex-start; align-items: center; padding-left: 12px; padding-right: 12px; }
.ds-side > .ds-brand > a.ds-logo { opacity: 1 !important; }
.ds-side > .ds-brand > button, .ds-sidebar[class~="w-14"] .ds-side > .ds-brand > button { position: absolute; top: 14px; right: 8px; left: auto; width: 32px; height: 32px; margin: 0; opacity: 1; background: transparent; }
.ds-sidebar.sb-anim .ds-side > .ds-brand > button { background: rgb(var(--v3-bg)); }
/* the mark never moves (Terry msg 1660): folded or open, the brand row keeps the same 12 px + 6 px in front of the mark, so the mark sits at 18 px
   in both states and on every frame between them; folded, the link stops at the mark (no right padding) so it never runs under the toggle */
.ds-sidebar[class~="w-14"] .ds-side > .ds-brand { justify-content: flex-start; padding-left: 12px; padding-right: 8px; }
.ds-sidebar[class~="w-14"] .ds-side > .ds-brand > a.ds-logo { justify-content: flex-start; padding-left: 6px; padding-right: 0; width: auto; }
/* the nav icons keep their place too: folded, each item keeps the open 8 px + 10 px in front of its icon (icons at 18 px, under the mark) instead
   of centring in the rail, so folding and opening only add or take away the words beside them */
.ds-sidebar[class~="w-14"] .nv-head, .ds-sidebar[class~="w-14"] .nv-top { justify-content: flex-start; padding-left: 10px; padding-right: 10px; }
.ds-sidebar.sb-anim { position: relative; z-index: 45; border-right-color: transparent; }
.ds-sidebar.sb-anim > .ds-side { overflow: hidden; background: rgb(var(--v3-bg)); box-shadow: inset -1px 0 0 rgb(var(--v3-line)); }
.ds-sidebar.sb-in [x-show="notCollapsed"] { animation: sb-words 190ms cubic-bezier(.2, .8, .2, 1) both; }
.ds-sidebar.sb-out [x-show="notCollapsed"] { opacity: 0; transition: opacity 90ms ease-out; }
@keyframes sb-words { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ds-sidebar.sb-in [x-show="notCollapsed"] { animation: none; } .ds-sidebar.sb-out [x-show="notCollapsed"] { transition: none; } }

/* ---- the Dashboard's dashboards (Terry msgs 1534-1538, Cruva's): the tab row's toolbar (All dashboards, Share, the pen, ⋯), its menu,
   All dashboards and the Share pop-up ---- */
.dt-row { display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid rgb(var(--v3-line)); }
.dt-row .dt-tabs { border-bottom: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dt-row .dt-tabs::-webkit-scrollbar { display: none; }
.dt-plus { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 2px 4px; border-radius: 8px; color: rgb(var(--v3-fg-2)); flex-shrink: 0; }
/* Terry's queued fix: with more tabs than fit (always on a phone) the + for a new dashboard sat past the end of the scrolling row, off screen.
   It now stays pinned at the row's right edge, over the tabs scrolling beneath it. */
.dt-row .dt-tabs .dt-plus { position: sticky; right: 0; z-index: 1; background: rgb(var(--v3-bg)); box-shadow: -12px 0 10px -6px rgb(var(--v3-bg)); }
.dt-plus:hover, .dt-plus:focus-visible { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.dt-unpinned { font-style: italic; }
.dt-tools { display: flex; align-items: center; gap: 2px; padding-bottom: 4px; flex-shrink: 0; }
.dt-ib { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: rgb(var(--v3-fg-2)); }
.dt-ib:hover, .dt-ib:focus-visible, details[open] > .dt-ib { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.dt-ib.is-off { opacity: .45; cursor: default; }
.dt-ib::-webkit-details-marker { display: none; }
@media (pointer: coarse) { .dt-ib, .dt-plus { width: 40px; height: 40px; } }
.dt-menu { min-width: 236px; padding: 6px; margin-top: 4px; display: flex; flex-direction: column; box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.dt-mh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 8px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); }
.dt-def { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: rgb(var(--v3-accent)); }
.dt-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: rgb(var(--v3-fg)); text-align: left; cursor: pointer; }
.dt-mi > svg { color: rgb(var(--v3-fg-2)); flex-shrink: 0; }
.dt-mi > span:first-of-type { flex: 1; }
.dt-mi:hover, .dt-mi:focus-visible { background: rgb(var(--v3-fg) / .06); }
.dt-mi.is-off { color: rgb(var(--v3-fg-3)); cursor: default; }
.dt-mi.is-off > svg { color: rgb(var(--v3-fg-3)); }
.dt-mi.is-off:hover { background: transparent; }
.dt-mi.is-on > svg { color: rgb(var(--v3-accent)); }
.dt-mi.is-bad, .dt-mi.is-bad > svg { color: rgb(var(--v3-neg)); }
.dt-mi.is-bad.is-off, .dt-mi.is-bad.is-off > svg { color: rgb(var(--v3-fg-3)); }
.dt-hint { color: rgb(var(--v3-fg-3)); display: inline-flex; }
.dt-sep { height: 1px; margin: 4px 6px; background: rgb(var(--v3-line)); }
/* All dashboards */
.dt-all { display: flex; flex-direction: column; gap: 14px; }
.dt-all-head { display: flex; align-items: center; gap: 10px; }
.dt-back { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: rgb(var(--v3-fg-2)); flex-shrink: 0; }
.dt-back:hover { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.dt-all-t { font-size: 20px; font-weight: 700; line-height: 1.2; }
.dt-all-sub { font-size: 13px; color: rgb(var(--v3-fg-2)); }
.dt-all-bar { display: flex; gap: 10px; }
.dt-all-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg-3)); }
.dt-all-search:focus-within { border-color: rgb(var(--v3-accent)); box-shadow: 0 0 0 3px rgb(var(--v3-accent) / .15); }
.dt-all-search .input { border: 0; box-shadow: none; background: transparent; padding-left: 0; flex: 1; min-width: 0; }
.dt-all-sort { width: auto; min-width: 170px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { padding: 4px 11px; font-size: 12.5px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface)); }
.dt-chip:hover { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-fg-3)); }
.dt-chip.is-on { background: rgb(var(--v3-accent)); border-color: rgb(var(--v3-accent)); color: #fff; font-weight: 600; }
.dt-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .dt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .dt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .dt-grid { grid-template-columns: minmax(0, 1fr); } .dt-all-bar { flex-direction: column; } .dt-all-sort { width: 100%; } }
.dt-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); min-width: 0; }
.dt-card:hover { border-color: rgb(var(--v3-line-2)); box-shadow: 0 4px 14px rgb(0 0 0 / .06); }
.dt-card.is-archived { opacity: .75; }
.dt-prev { display: grid; gap: 4px; height: 96px; padding: 8px; border-radius: 8px; background: rgb(var(--v3-surface-2)); grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); overflow: hidden; }
.dt-prev > span { border-radius: 4px; background: rgb(var(--v3-fg) / .09); }
.dt-prev-analytics > span:nth-child(5) { grid-column: span 4; }
.dt-prev-analytics > span:nth-child(6) { display: none; }
.dt-prev-products > span, .dt-prev-creators > span, .dt-prev-orders > span { grid-column: span 4; }
.dt-prev-products > span:nth-child(n+4), .dt-prev-creators > span:nth-child(n+4), .dt-prev-orders > span:nth-child(n+4) { display: none; }
.dt-prev-videos > span:nth-child(1), .dt-prev-live > span:nth-child(1) { grid-column: span 4; }
.dt-prev-videos > span:nth-child(2), .dt-prev-videos > span:nth-child(3), .dt-prev-live > span:nth-child(2), .dt-prev-live > span:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.dt-prev-videos > span:nth-child(n+4), .dt-prev-live > span:nth-child(n+4) { display: none; }
.dt-prev-profit > span:nth-child(5) { grid-column: span 2; grid-row: span 2; } .dt-prev-profit > span:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.dt-prev-outreach > span { grid-column: span 4; } .dt-prev-outreach > span:nth-child(n+3) { display: none; }
.dt-card-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.dt-card-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: rgb(var(--v3-fg)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-card-t:hover { text-decoration: underline; }
.dt-pin { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: rgb(var(--v3-fg-3)); }
.dt-pin:hover { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.dt-pin.is-on { color: rgb(var(--v3-accent)); }
.dt-pin.is-on svg { fill: currentColor; }
.dt-card-meta { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.dt-card-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.dt-card-tags:empty { display: none; }
.dt-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg-2)); }
.dt-tag-def { background: rgb(var(--v3-accent) / .12); color: rgb(var(--v3-accent)); }
.dt-none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 12px; color: rgb(var(--v3-fg-3)); font-size: 13px; }
.dt-none[hidden] { display: none; }   /* sweep 14 Nov: "No dashboards match" showed under All dashboards while every card matched (display:flex beat the hidden attribute) */
/* the Share and Rename pop-ups */
.dt-share { width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgb(var(--v3-line)); border-radius: 14px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); box-shadow: 0 24px 60px rgb(0 0 0 / .25); overflow: hidden; }
.dt-share::backdrop { background: rgb(15 23 42 / .5); }
.dt-share[open] { display: flex; flex-direction: column; }
.dt-rename { width: min(420px, calc(100vw - 24px)); }
.dt-sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid rgb(var(--v3-line)); }
.dt-sh-head h2 { font-size: 17px; font-weight: 700; }
.dt-sh-head p { font-size: 13px; color: rgb(var(--v3-fg-2)); margin-top: 4px; }
.dt-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: rgb(var(--v3-fg-2)); flex-shrink: 0; }
.dt-x:hover { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.dt-sh-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.dt-sh-side { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid rgb(var(--v3-line)); overflow-y: auto; }
.dt-sh-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left; font-size: 13.5px; font-weight: 500; color: rgb(var(--v3-fg)); }
.dt-sh-pick:first-child { flex-direction: row; align-items: center; gap: 8px; }
.dt-sh-pick:hover { background: rgb(var(--v3-fg) / .05); }
.dt-sh-pick.is-on { background: rgb(var(--v3-fg) / .08); }
.dt-sh-ln { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-sh-st { font-size: 11.5px; font-weight: 500; color: rgb(var(--v3-fg-2)); }
.dt-st-active { color: rgb(var(--v3-pos)); }
.dt-st-revoked, .dt-st-expired { color: rgb(var(--v3-fg-3)); }
.dt-sh-main { padding: 16px 20px; overflow-y: auto; }
.dt-sh-form { display: flex; flex-direction: column; gap: 14px; }
.dt-sh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 14px; }
.dt-f { display: flex; flex-direction: column; gap: 6px; }
.dt-f-inline { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dt-l { font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); display: inline-flex; align-items: center; gap: 4px; }
.dt-help { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.dt-w-days { width: 8.5rem; }
/* "Let viewers change dates" (Terry msg 1621): the tick sits right by its words; the Edit pane's expiry menu fits "Keep: ends 11 Dec 2026" */
.dt-f-inline.dt-chk { justify-content: flex-start; gap: 8px; cursor: pointer; }
.dt-f-inline.dt-chk input[type=checkbox] { width: 16px; height: 16px; accent-color: rgb(var(--v3-accent)); flex-shrink: 0; }
.dt-w-keep { width: auto; min-width: 8.5rem; max-width: 100%; }
.dt-pw { display: flex; gap: 6px; align-items: center; position: relative; }
.dt-pw .input { flex: 1; min-width: 0; }
.dt-eye { position: absolute; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: rgb(var(--v3-fg-2)); }
.dt-eye:hover { background: rgb(var(--v3-fg) / .07); }
.dt-pw .input[data-share-pw] { padding-right: 40px; }
.dt-sh-list { max-height: 236px; overflow-y: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; padding: 4px; }
.dt-sh-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.dt-sh-row:hover { background: rgb(var(--v3-fg) / .05); }
.dt-sh-row.is-off { color: rgb(var(--v3-fg-3)); cursor: default; }
.dt-sh-box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid rgb(var(--v3-line-2)); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.dt-sh-row input:checked + .dt-sh-box { background: rgb(var(--v3-accent)); border-color: rgb(var(--v3-accent)); color: #fff; }
.dt-sh-row input:focus-visible + .dt-sh-box { box-shadow: 0 0 0 3px rgb(var(--v3-accent) / .3); }
.dt-sh-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid rgb(var(--v3-line)); }
.dt-sh-foot .dt-help { flex: 1; }
.dt-sh-none { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 12px; text-align: center; color: rgb(var(--v3-fg-2)); font-size: 13.5px; }
.dt-sh-h { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dt-sh-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 13px; margin: 14px 0; }
.dt-sh-dl dt { color: rgb(var(--v3-fg-2)); }
.dt-bad { color: rgb(var(--v3-neg)); }
@media (max-width: 719px) {
  .dt-sh-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .dt-sh-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgb(var(--v3-line)); }
  .dt-sh-pick { width: auto; flex-shrink: 0; }
  .dt-sh-grid { grid-template-columns: minmax(0, 1fr); }
  .dt-share { max-height: calc(100dvh - 16px); }
}
/* Download PDF: the browser's print window with just the dashboard */
@media print {
  body[data-dash-print] .ds-sidebar, body[data-dash-print] .ds-top, body[data-dash-print] .dt-tools, body[data-dash-print] [data-dash-report], body[data-dash-print] .dt-plus, body[data-dash-print] [data-dash-tools],
  body[data-dash-print] [data-feed-status], body[data-dash-print] .de-bar, body[data-dash-print] .toast, body[data-dash-print] nav, body[data-dash-print] dialog { display: none !important; }
  body[data-dash-print] .fc { break-inside: avoid; }
}
/* CRM › Sample requests' four tabs (Terry msgs 1485-1497): Cruva's segmented bar above everything, and the Refundable / Analytics / Auto Review tabs */
.st-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px; background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); max-width: 100%; }
.st-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.st-tab:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-hover)); }
.st-tab.active { background: rgb(var(--v3-surface)); color: rgb(var(--v3-accent)); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.st-sub { margin-top: -4px; }
@media (max-width: 640px) { .st-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .st-tab { padding: 0 10px; } }
.st-skurow { min-height: 46px; }
.st-sku-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.st-sku-n { font-weight: 500; }
.st-sku-p { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.st-sku-s { font-size: 11.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.st-sku-s.is-low { color: rgb(var(--v3-warn)); }
.st-sku-s.is-out { color: rgb(var(--v3-neg)); }
.st-campchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 2px; padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 18px; background: rgb(var(--v3-accent-soft)); color: rgb(var(--v3-accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card { overflow: visible; }
.st-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid rgb(var(--v3-line)); }
.st-bar .input { height: 34px; }
.st-bar-r { border-top: 0; padding: 0; justify-content: flex-end; }
.st-bar-end { justify-content: flex-end; align-items: center; }
.st-bar > * { flex: 0 0 auto; }
.st-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-f select { min-width: 150px; max-width: 240px; }
.st-f-q input { width: 180px; }
.st-fl { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: rgb(var(--v3-fg)); }
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.st-pill:hover { background: rgb(var(--v3-hover)); }
.st-pill.on { background: rgb(var(--v3-accent-soft)); color: rgb(var(--v3-accent)); font-weight: 600; }
.st-pill .count { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.st-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.st-chip { font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.st-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; white-space: nowrap; }
.st-sort.on { color: rgb(var(--v3-fg)); }
.st-acts { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.st-acts form { display: inline; }
.st-an-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-h2 { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 650; color: rgb(var(--v3-fg)); margin-bottom: 10px; }
.st-an-h .st-h2 { margin-bottom: 0; }
.st-h3 { font-size: 14px; font-weight: 650; margin: 18px 0 8px; display: flex; align-items: center; gap: 4px; }
.st-tiles .tile { min-height: 150px; }
/* Sample Analytics' day-by-day boxes (Terry): a size bigger, the line taller, and a date bar under it (first, middle and last day) */
.st-tiles .tile.st-tile { min-height: 188px; padding-bottom: 12px; }
.st-tiles .tile.st-tile .valrow { align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.st-tiles .tile.st-tile .valrow > :first-child { min-width: 0; overflow: visible; text-overflow: clip; }
.st-tiles .tile.st-tile .value { font-size: 22px; line-height: 28px; }
.st-tiles .tile.st-tile canvas.st-spark { height: 92px; flex: none; margin-top: 12px; }
.st-dates { display: flex; justify-content: space-between; gap: 6px; padding: 5px 2px 0; margin-top: 2px; border-top: 1px solid rgb(var(--v3-line) / .7); font-size: 11px; line-height: 14px; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; }
.tile.is-soon .value { color: rgb(var(--v3-fg-3)); }
.st-plink { display: inline-flex; align-items: center; gap: 8px; }
.st-plink:hover span { text-decoration: underline; }
.st-safe { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 12px 0; border-radius: 10px; font-size: 13px; background: rgb(var(--v3-pos) / .08); color: rgb(var(--v3-fg)); border: 1px solid rgb(var(--v3-pos) / .25); }
.st-safe svg { color: rgb(var(--v3-pos)); margin-top: 2px; }
.st-safe-top { margin: 0 16px 12px; }
.st-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); margin: 8px 0; }
.st-empty { padding: 48px 16px; }
.st-runs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 16px; border-top: 1px solid rgb(var(--v3-line)); }
.st-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.st-wiz { padding: 0 20px 18px; overflow: visible; }
.st-prog { height: 4px; border-radius: 4px; background: rgb(var(--v3-surface-2)); margin: 16px 0; overflow: hidden; }
.st-prog i { display: block; height: 100%; width: 25%; background: rgb(var(--v3-accent)); border-radius: 4px; transition: width .2s; }
.st-wh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-wh .st-h2 { margin: 0; font-size: 20px; }
.st-step-n { font-size: 12.5px; color: rgb(var(--v3-fg-3)); }
.st-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 0; padding: 0; margin: 0 0 12px; }
.st-fld.st-title { max-width: 480px; }
.st-fld.st-w { max-width: 320px; }
.st-fh { font-size: 12px; color: rgb(var(--v3-fg-3)); line-height: 1.35; }
.st-fld.is-soon .input { opacity: .55; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-grid, .st-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.st-radio, .st-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; min-height: 32px; cursor: pointer; }
.st-radio input, .st-chk input { width: 16px; height: 16px; accent-color: rgb(var(--v3-accent)); }
.st-lims { display: flex; flex-direction: column; gap: 4px; }
.st-lim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-lim-n { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.st-lim-n input, input.st-lim-n { width: 110px; height: 32px; }
.st-days { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.st-sum { display: grid; gap: 8px; max-width: 520px; padding: 12px 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; font-size: 13.5px; }
.st-sum div { display: flex; justify-content: space-between; gap: 12px; }
.st-sum span { color: rgb(var(--v3-fg-2)); }
.st-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; margin-top: 8px; cursor: pointer; position: relative; }
.st-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-sw { position: relative; width: 36px; height: 20px; border-radius: 20px; background: rgb(var(--v3-line-2)); transition: background .15s; flex-shrink: 0; }
.st-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.st-switch input:checked + .st-sw { background: rgb(var(--v3-accent)); }
.st-switch input:checked + .st-sw::after { transform: translateX(16px); }
.st-switch input:focus-visible + .st-sw { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.st-switch.is-soon { opacity: .75; cursor: default; display: flex; }
.st-wf { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(var(--v3-line)); }
.st-msel-menu { width: min(26rem, calc(100vw - 2rem)); }
.st-mrow input { width: 15px; height: 15px; flex-shrink: 0; accent-color: rgb(var(--v3-accent)); }
.st-preview { margin: 12px 0; }
.st-pv-h { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.st-pv-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: rgb(var(--v3-surface-2)); }
.st-pv-n { padding: 10px 12px; border-radius: 8px; background: rgb(var(--v3-surface-2)); font-size: 14px; }
.st-pv-list { display: flex; flex-direction: column; max-height: 360px; overflow: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; }
.st-pv-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid rgb(var(--v3-line)); font-size: 13px; }
.st-pv-list li:last-child { border-bottom: 0; }
.st-pv-who, .st-pv-p { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.st-pv-m { grid-column: 1 / -1; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.st-dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid rgb(var(--v3-line)); border-radius: 14px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.st-dlg::backdrop { background: rgb(0 0 0 / .5); }
.st-dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.st-dh { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.st-dh .st-h2 { margin: 0; font-size: 17px; }
.st-sub { font-size: 13px; color: rgb(var(--v3-fg-2)); margin-top: 2px; }
.st-db { padding: 8px 20px; overflow: auto; }
.st-dlg .st-wf { margin: 0; padding: 12px 20px 16px; }
/* Sample spend card + Set costs pop-up (Terry msgs 4819/4820) */
.st-tiles .tile.st-spend { grid-column: span 2; gap: 4px; }
.st-spend .label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.st-spend .st-spend-btn { margin-left: auto; min-height: 32px; }
.st-spend-l { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.st-spend-l b { color: rgb(var(--v3-fg)); font-weight: 600; }
.st-spend-miss { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgb(var(--v3-warn)); margin-top: 4px; }
.st-linkbtn { background: none; border: 0; padding: 0; color: rgb(var(--v3-accent)); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 24px; }
.sc-dlg { width: min(980px, calc(100vw - 24px)); }
.sc-wrap { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.sc-x { margin: -4px -8px 0 0; min-width: 36px; min-height: 36px; }
.sc-body { padding: 4px 20px 8px; overflow: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
/* the body is the frame and the list the one scroller (Terry 25 Nov: the wheel and trackpad did nothing over the Refund units list: its body had no [data-sc-main],
   so the list never got a height of its own, did not scroll, and its overscroll-behavior: contain kept the wheel from reaching the body that did) */
.sc-body[data-sc-main], .sc-body[data-ru-main] { display: flex; flex-direction: column; overflow: hidden; }
.sc-body[data-sc-main][hidden] { display: none; }
.sc-list { flex: 1 1 auto; min-height: 120px; overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid rgb(var(--v3-line)); }
.sc-dlg.is-pv .sc-foot .btn { display: none; }
.sc-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding-bottom: 10px; }
.sc-shopw { display: flex; flex-direction: column; gap: 4px; }
.sc-q { position: relative; flex: 1 1 220px; min-width: 0; }
.sc-q input { width: 100%; padding-left: 32px; }
.sc-q .sc-q-i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: rgb(var(--v3-fg-3)); pointer-events: none; }
.sc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-up { cursor: pointer; position: relative; }
.sc-up:focus-within { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.sc-in { display: inline-flex; align-items: center; position: relative; }
.sc-in .sc-gbp { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); line-height: 1; color: rgb(var(--v3-fg-3)); font-size: 13px; pointer-events: none; }
.sc-in input { width: 11rem; max-width: 100%; padding-left: 22px; text-align: left; }
.sc-in input[aria-invalid="true"] { border-color: rgb(var(--v3-neg)); box-shadow: 0 0 0 1px rgb(var(--v3-neg)); }
.sc-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgb(var(--v3-line)); font-size: 13px; color: rgb(var(--v3-fg-2)); }
.sc-only { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.sc-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin: 2px 0 6px; border-radius: 10px; background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); font-size: 13px; }
.sc-bulk[hidden] { display: none; }
.sc-head, .sc-row { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) 130px 236px 32px; align-items: center; gap: 10px; }
.sc-head { font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-3)); padding: 4px 0; text-transform: uppercase; letter-spacing: .02em; border-top: 1px solid rgb(var(--v3-line)); }
.sc-head > .sc-price, .sc-head > .sc-cost, .sc-head > .sc-name { font-size: inherit; color: inherit; font-weight: inherit; }
.sc-row { padding: 8px 0; border-top: 1px solid rgb(var(--v3-line)); cursor: pointer; }
.sc-list > .sc-row:first-child { border-top: 0; }
.sc-row:hover { background: rgb(var(--v3-hover)); }
.sc-sku { grid-template-columns: 28px minmax(0, 1fr) 130px 236px 32px; padding-left: 50px; cursor: default; background: rgb(var(--v3-surface-2) / .6); }
.sc-tk { display: flex; align-items: center; justify-content: center; min-height: 32px; }
.sc-pic { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: rgb(var(--v3-surface-2)); display: flex; align-items: center; justify-content: center; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.sc-pic img { width: 36px; height: 36px; object-fit: cover; }
.sc-name { min-width: 0; display: flex; flex-direction: column; }
.sc-name b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--v3-fg)); }
.sc-meta { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.sc-price { font-size: 13px; font-variant-numeric: tabular-nums; color: rgb(var(--v3-fg)); }
.sc-cost { display: flex; flex-direction: column; gap: 2px; }
.sc-rrp { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.sc-ro { font-size: 13.5px; font-weight: 600; } .sc-ro.na, .sc-price .na { font-weight: 400; color: rgb(var(--v3-fg-3)); }
.sc-exp { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: rgb(var(--v3-fg-2)); font-size: 14px; cursor: pointer; transition: transform .15s; }
.sc-exp:hover { background: rgb(var(--v3-hover)); }
.sc-exp[aria-expanded="true"] { transform: rotate(90deg); }
.sc-empty { padding: 28px 8px; text-align: center; color: rgb(var(--v3-fg-2)); font-size: 13.5px; }
.sc-empty.is-err { color: rgb(var(--v3-neg)); }
.sc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 10px 0 4px; }
.sc-pg { min-width: 36px; min-height: 36px; justify-content: center; }
.sc-pg.is-on { background: rgb(var(--v3-accent)); color: rgb(var(--v3-accent-ink)); border-color: rgb(var(--v3-accent)); }
.sc-pg-gap { align-self: center; padding: 0 4px; color: rgb(var(--v3-fg-3)); }
.sc-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgb(var(--v3-line)); }
.sc-status { font-size: 13px; color: rgb(var(--v3-fg-2)); } .sc-status.is-ok { color: rgb(var(--v3-pos)); font-weight: 600; } .sc-status.is-err { color: rgb(var(--v3-neg)); }
.sc-pv-c { font-size: 13.5px; margin: 6px 0 8px; } .sc-pv-e { margin: 0 0 6px; padding-left: 18px; font-size: 13px; color: rgb(var(--v3-neg)); list-style: disc; }
.ru-dlg { width: min(860px, calc(100vw - 24px)); --ru-tk: 28px; }
.ru-dlg.is-ro { --ru-tk: 0px; } .ru-dlg.is-ro .sc-tk { display: none; }
.ru-dlg .sc-head, .ru-dlg .sc-row { grid-template-columns: var(--ru-tk) 40px minmax(0, 1fr) 200px 32px; }
.ru-dlg .sc-sku { grid-template-columns: var(--ru-tk) minmax(0, 1fr) 200px 32px; padding-left: 50px; }
.ru-dlg .ru-bulk .ru-sel { width: auto; min-width: 10rem; } .ru-dlg .ru-bulk .info-tip { margin-left: auto; }
.ru-pager { padding: 8px 0 4px; } .ru-pager[hidden] { display: none !important; } .ru-pager .go-pager a.is-off { opacity: .4; pointer-events: none; }
.ru-dlg .ru-sel, .sc-shopw .ru-sel { width: 100%; min-width: 11rem; }
.ru-dlg .sc-name b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-pv-n { white-space: normal !important; } .sc-pv-a { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; }
@media (max-width: 640px) {
  .st-tiles .tile.st-spend { grid-column: 1 / -1; }
  .sc-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .sc-wrap { max-height: 100dvh; height: 100dvh; }
  .sc-body { padding: 4px 14px 8px; }
  .sc-body[data-sc-main], .sc-body[data-ru-main] { display: block; overflow: auto; overscroll-behavior: contain; }
  .sc-list { overflow: visible; min-height: 0; }
  .sc-bulk { position: sticky; top: 0; z-index: 2; box-shadow: 0 4px 10px rgb(0 0 0 / .12); }
  .sc-row { grid-template-columns: 28px 40px minmax(0, 1fr) 32px; grid-template-areas: "tk pic name exp" "tk pic cost exp"; row-gap: 6px; }
  .sc-row > .sc-tk { grid-area: tk; } .sc-row > .sc-pic { grid-area: pic; } .sc-row > .sc-name { grid-area: name; } .sc-row > .sc-cost { grid-area: cost; } .sc-row > .sc-exp, .sc-row > .sc-exp-0 { grid-area: exp; }
  .sc-row > .sc-price { display: none; }
  .sc-sku { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "tk name" "tk cost"; padding-left: 20px; }
  .sc-sku > .sc-exp-0 { display: none; }
  .ru-dlg { --ru-tk: 44px; }
  .ru-dlg .sc-head { display: flex; align-items: center; gap: 6px; } .ru-dlg .sc-head > :not(.sc-tk):not(.sc-name) { display: none; }
  .ru-dlg .sc-tk { min-width: 44px; min-height: 44px; }
  .ru-dlg .sc-row { grid-template-columns: var(--ru-tk) 40px minmax(0, 1fr) 44px; grid-template-areas: "tk pic name exp" "tk pic cost exp"; }
  .ru-dlg .sc-sku { grid-template-columns: var(--ru-tk) minmax(0, 1fr); grid-template-areas: "tk name" "tk cost"; padding-left: 8px; }
  .ru-dlg .sc-exp { width: 44px; height: 44px; }
  .ru-dlg .ru-sel, .ru-dlg .ru-bulk .btn, .ru-dlg .ru-pager .btn, .ru-dlg .ru-pager .tw-pg-n { min-height: 44px; }
  .ru-dlg .ru-bulk .ru-sel { flex: 1 1 9rem; } .ru-dlg .ru-pager .tw-pg-n { min-width: 44px; }
  .sc-dlg .sc-x { min-width: 44px; min-height: 44px; } .ru-dlg .sc-q .input { min-height: 44px; } .ru-dlg .sc-only { display: flex; align-items: center; min-height: 44px; }
  .ru-dlg .ru-pager .btn-icon { min-width: 44px; } .ru-dlg .ru-pager .tw-pg-menu a { display: flex; align-items: center; min-height: 44px; }
  .sc-name b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sc-in input { width: 11rem; min-height: 44px; }
  .sc-head { display: flex; gap: 10px; border-top: 0; padding: 0; } .sc-head > :not(.sc-tk):not(.sc-name) { display: none; }
  .sc-top { gap: 8px; } .sc-shopw { flex: 1 1 100%; }
  .sc-acts { width: 100%; } .sc-acts > * { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .sc-foot .btn { min-height: 44px; }
}
.st-neg { color: rgb(var(--v3-neg)); }
.st-warn { color: rgb(var(--v3-warn)); }
.st-gap { margin-top: 26px; }
.st-bar label.st-f, .st-bar span.st-f { display: flex; width: auto; }
.st-tbl .ds-prod-n { max-width: 220px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.st-an-r { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.st-bar-end { align-items: flex-end; }
@media (max-width: 640px) { .st-bar, .st-inline, .st-an-r { justify-content: flex-start; } .st-inline, .st-an-r { width: 100%; } .st-inline > *, .st-an-r > * { flex: 1 1 100%; } .st-f select, .st-f-q input { max-width: none; width: 100%; } }
/* the status chips on one row (Terry msgs 1542, 1544): +N opens the rest in place; the pen rearranges them */
.st-rail { flex-wrap: nowrap !important; overflow: visible; min-width: 0; max-width: 100%; align-items: center; }
.st-rail .tab { padding-left: 9px; padding-right: 9px; flex-shrink: 0; }
.st-rail:not(.is-open) .st-chip.st-hid:not(.active), .st-rail:not(.is-open) .st-chip.st-ovf:not(.active) { display: none; }
.st-rail.is-open { flex-wrap: wrap !important; row-gap: 4px; }
.st-div { display: none; }
.st-rail.is-edit .st-div { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-left: 2px dashed rgb(var(--v3-line-2)); font-size: 11px; color: rgb(var(--v3-fg-3)); flex-shrink: 0; }
.st-exp { display: inline-flex; align-items: center; gap: 2px; color: rgb(var(--v3-fg-2)); flex-shrink: 0; }
.st-rail.is-open .st-exp svg { transform: rotate(180deg); }
.st-pen { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 2px; border-radius: 8px; color: rgb(var(--v3-fg-3)); flex-shrink: 0; }
.st-pen:hover, .st-rail.is-edit .st-pen { color: rgb(var(--v3-accent)); background: rgb(var(--v3-hover)); }
.st-edbar { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.st-edhint { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.st-rail.is-edit .st-chip { cursor: grab; outline: 1px dashed rgb(var(--v3-line-2)); outline-offset: -1px; touch-action: none; user-select: none; }
.st-rail.is-edit .st-chip:focus-visible { outline: 2px solid rgb(var(--v3-accent)); }
.st-rail.is-edit .st-chip.is-drag { opacity: .85; cursor: grabbing; box-shadow: 0 6px 16px rgb(0 0 0 / .18); position: relative; z-index: 5; }
.st-rail.is-edit .st-exp { display: none; }
.v5-tb-r1 { min-width: 0; }
@media (max-width: 640px) { .st-rail:not(.is-open):not(.is-edit) { overflow-x: auto; scrollbar-width: none; } .st-rail::-webkit-scrollbar { display: none; } .st-edhint { display: none; } }
.st-edbar[hidden], .st-exp[hidden] { display: none !important; }
.v5-tb .tabs.pills.ds-rail.v8s-rail.st-rail:not(.is-open):not(.is-edit) { flex-wrap: nowrap !important; }
@media (min-width: 641px) { .v5-tb .tabs.pills.ds-rail.v8s-rail.st-rail:not(.is-open):not(.is-edit) { overflow: hidden !important; } }

/* ---- Sample requests round 2 (Terry msgs 1548-1569) ---- */
/* one row of filter buttons, Cruva's order (date first); the labels stay for screen readers */
.v8s-one { flex-wrap: wrap; align-items: center; gap: 8px; }
.v8s-one > .v8s-f { flex: 0 0 auto; width: auto; }
.v8s-one > .v8s-f > .v8s-fl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v8s-one > [data-sr-dates] { order: -1; }
.v8s-one > .v8s-f select.input, .v8s-one .v8s-sum { height: 32px; min-width: 9rem; max-width: 15rem; }
.v8s-one > .v8s-check { height: 32px; }
.v8s-one > .v8s-fpanel { margin-left: auto; }
/* an ⓘ in a hidden label stays visible, beside its control */
.v8s-one > .v8s-f:has(> .v8s-fl .v8s-why) { flex-direction: row; align-items: center; gap: 4px; }
.v8s-one > .v8s-f > .v8s-fl:has(.v8s-why) { position: static; width: auto; height: auto; clip: auto; overflow: visible; order: 2; }
.v8s-one > .v8s-f > .v8s-fl:has(.v8s-why) { font-size: 0; gap: 0; }
.v8s-one > .v8s-f > .v8s-fl:has(.v8s-why) > :not(.v8s-why) { display: none; }
.v8s-one > .v8s-f > .v8s-fl .v8s-why { font-size: 11px; }
/* compact buttons so the whole row fits (Cruva's sizes) */
.v8s-one { gap: 6px; }
.v8s-one [data-rangepick] > .rp-button { width: 7.25rem !important; min-width: 0; }
.v8s-one .sr-psum { width: 8rem; min-width: 0; }
.v8s-one > .v8s-f > select.input { width: 8.5rem; min-width: 0; text-overflow: ellipsis; }
.v8s-one .v8s-sum { width: 7.5rem; min-width: 0; }
.v8s-one .v8s-sum > span, .v8s-one .sr-psum > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v8s-one > .v8s-check { white-space: nowrap; }
.v8s-one > .v8s-export { padding-left: 9px; padding-right: 9px; }
.v8s-one > .v8s-export .v8s-export-l { display: none; }
@media (min-width: 1600px) { .v8s-one > .v8s-export .v8s-export-l { display: inline; } }
/* Terry msg 1842: on a laptop (1280–1439) the row wrapped, putting Expiring soon on a line of its own; the controls tighten instead so it stays one row
   (each keeps its full name as its hover tip and in its menu) */
@media (min-width: 768px) and (max-width: 1439px) {
  .v8s-one { gap: 4px; }
  .v8s-one [data-rangepick] > .rp-button { width: 6.5rem !important; }
  .v8s-one .sr-psum { width: 6.75rem; }
  .v8s-one > .v8s-f > select.input { width: 7.25rem; }
  .v8s-one .v8s-xsoon { display: none; }
  .v8s-one .v8s-sum { width: 6.5rem; }
  .v8s-one > .v8s-check > svg { display: none; }
  .v8s-one > .v8s-fpanel > .v8s-fbtn { padding-left: 9px; padding-right: 9px; }
}
.pr-tag { white-space: nowrap; }
.v8s-shnote { margin: 6px 0 0; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.sh-would { margin: 8px 0 0; font-size: 12px; color: rgb(var(--v3-fg-2)); }
/* the plain-words search: one line until it's wanted */
.v8s-askwrap > summary { list-style: none; display: inline-flex; gap: 6px; margin-bottom: 8px; cursor: pointer; }
.v8s-askwrap > summary::-webkit-details-marker { display: none; }
/* the 🔍 in the Affiliate column */
.sr-hs { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; }
.sr-hs-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: rgb(var(--v3-fg-2)); }
.sr-hs-btn:hover, .sr-hs.is-open .sr-hs-btn { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .07); }
.sr-hs-in { height: 26px; width: 10.5rem; font-size: 12px; padding: 0 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sr-hs-in[hidden] { display: none; }
.sr-mfind { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: rgb(var(--v3-fg-3)); }
.sr-mfind .input { flex: 1; min-width: 0; height: 36px; font-size: 14px; }
@media (min-width: 768px) { .sr-mfind { display: none; } }
/* Terry msg 2182: an empty creator search keeps the table; this row says nobody matched. hsuggest.js: creator suggestions under the search box */
.v8s-noq { padding: 0 !important; }
.v8s-noq-in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; text-align: center; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.v8s-noq-in b { color: rgb(var(--v3-fg)); font-weight: 600; }
.v8s-noq-in .btn { margin-top: 6px; }
.tbl-wrap .v8s-noq-in { position: sticky; left: 0; max-width: min(100%, calc(100vw - 40px)); white-space: normal; }   /* sweep 13 Nov: on a phone the wide table put the no-match message off-screen */
.hsg { position: fixed; inset: auto; margin: 0; padding: 4px; z-index: 60; max-height: 340px; overflow-y: auto; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); box-shadow: 0 12px 32px rgb(0 0 0 / .28); }
.hsg[hidden] { display: none; }
.hsg-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.hsg-row:hover { background: rgb(var(--v3-fg) / .06); }
.hsg-row.is-on { background: rgb(var(--v3-accent) / .16); }
.hsg-row .ds-av { width: 28px; height: 28px; flex: none; }
.hsg-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hsg-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsg-who span { font-size: 12px; color: rgb(var(--v3-fg-3)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .hsg.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 55vh; border-radius: 14px 14px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); } .hsg.is-sheet .hsg-row { padding: 10px 8px; } }
/* Terry msg 2249: the × sits inside the box, at its right end, while there's text */
.sr-hs { position: relative; }
.sr-hs-in { padding-right: 26px; }
.sr-hs-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; color: rgb(var(--v3-fg) / .8); background: rgb(var(--v3-fg) / .09); }
.sr-hs-x[hidden] { display: none; }
.sr-hs-in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }   /* our own × clears it */
.sr-hs-x:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .16); }
/* Terry msg 2802: the open box sat after the column's name and spilled over the next column ("30d GMV" cut off). Open, it now fills its own header
   cell (the cell is sticky, so it holds the box): same height row, no jump, never over a neighbour; the 🔍 sits inside its left end, the × its right */
th > .sr-hs.is-open { position: static; margin: 0; }
th > .sr-hs.is-open > .sr-hs-in { position: absolute; z-index: 2; left: 4px; right: 4px; top: 50%; transform: translateY(-50%); width: auto; height: 28px; padding-left: 30px; padding-right: 30px; }
th > .sr-hs.is-open > .sr-hs-btn { position: absolute; z-index: 3; left: 8px; top: 50%; transform: translateY(-50%); background: none; color: rgb(var(--v3-fg-3)); pointer-events: none; }
th > .sr-hs.is-open > .sr-hs-x { z-index: 3; right: 9px; }
/* every other text search box (v3.js "clear ×"): the same × laid over its right end; the browser's own × is hidden so there's only one */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
input.tw-clr-in { padding-right: 30px; }
.tw-clr { position: absolute; z-index: 2; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: rgb(var(--v3-fg) / .09); color: rgb(var(--v3-fg) / .8); cursor: pointer; }
.tw-clr[hidden] { display: none; }
.tw-clr:hover, .tw-clr:focus-visible { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .16); }
/* the source chip under the product (TAP · Target · Open · Unknown) */
.sr-src { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; cursor: help;
  color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .07); margin-right: 4px; white-space: nowrap; flex-shrink: 0; }
/* 13 Nov sweep: in a narrow product cell "TAP Link" broke over two lines and was cut off, and "First sample" broke beside an agency chip: chips keep
   their words together and the next chip goes to the next line instead */
td .sh-badge { white-space: nowrap; }
.sr-src.is-tap { color: rgb(var(--v3-tap, var(--v3-accent))); background: rgb(var(--v3-tap, var(--v3-accent)) / .13); }
.sr-src.is-tc { color: rgb(var(--v3-tc, var(--v3-info))); background: rgb(var(--v3-tc, var(--v3-info)) / .13); }
.sr-src.is-open { color: rgb(var(--v3-open, var(--v3-pos))); background: rgb(var(--v3-open, var(--v3-pos)) / .13); }
/* "N prior samples" and its pop-over */
button.pr-tag { cursor: pointer; }
button.pr-tag:hover { filter: brightness(1.08); }
.pr-pop { width: min(30rem, calc(100vw - 16px)); max-height: min(28rem, calc(100vh - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; z-index: 95;
  box-shadow: 0 16px 40px rgb(0 0 0 / .28); }
.pr-float { position: fixed; left: 0; top: 0; }
.pr-float.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 80vh; border-radius: 14px 14px 0 0; }
.pr-head { display: flex; align-items: center; gap: 8px; }
.pr-title { font-size: 15px; font-weight: 700; color: rgb(var(--v3-fg)); margin-right: auto; }
.pr-stsel { height: 30px; width: auto; min-width: 8.5rem; font-size: 12.5px; }
.pr-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 9px; color: rgb(var(--v3-fg-3)); }
.pr-search .input { border: 0; box-shadow: none; background: transparent; height: 34px; padding: 0; flex: 1; }
.pr-list { overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid rgb(var(--v3-line)); text-align: left; border-radius: 8px; width: 100%; }
.pr-row:first-child { border-top: 0; }
.pr-row:hover, .pr-row:focus-visible { background: rgb(var(--v3-fg) / .05); }
.pr-row[hidden] { display: none; }
.pr-pic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-3)); }
.pr-pic img { width: 100%; height: 100%; object-fit: cover; }
.pr-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pr-n { font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.pr-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: rgb(var(--v3-fg) / .08); color: rgb(var(--v3-fg-2)); }
.pr-chip.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .14); }
.pr-chip.is-bad { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .14); }
.pr-chip.is-warn { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .14); }
.pr-chip.is-info { color: rgb(var(--v3-info, var(--v3-accent))); background: rgb(var(--v3-info, var(--v3-accent)) / .13); }
.pr-more, .pr-none { margin: 8px 4px 0; font-size: 12px; color: rgb(var(--v3-fg-3)); }
/* Terry msg 2361: when each earlier request ended up where it is ("Expired 3 Nov · 10 days ago · requested 27 Oct") */
.pr-row[role="button"] { cursor: pointer; outline: none; }
.pr-row[role="button"]:focus-visible { box-shadow: 0 0 0 2px rgb(var(--v3-accent) / .5); }
.pr-d { display: inline-flex; align-items: center; gap: 4px; color: rgb(var(--v3-fg-2)); }
.pr-d b { font-weight: 600; color: rgb(var(--v3-fg)); }
.pr-info { display: inline-flex; color: rgb(var(--v3-fg-3)); cursor: help; }
.pr-req { color: rgb(var(--v3-fg-3)); }
.pr-chip.is-muted { color: rgb(var(--v3-fg-3)); background: rgb(var(--v3-fg) / .06); }
/* sort arrows always showing, in every table (Terry msg 1550): ⇕ visible (not only on hover) until it's the sort, then ↑/↓ in full */
th .sort-ico, th svg.opacity-40 { opacity: .6 !important; flex-shrink: 0; }
th a:hover .sort-ico, th a:hover svg.opacity-40 { opacity: .9 !important; }
th .sort-ico.is-on, th[aria-sort] a svg, th a.is-sorted svg, th a.on svg { opacity: 1 !important; color: rgb(var(--v3-accent)); }
/* the standard table foot (Terry msgs 1554, 1556): Total N results · 10 items ⌄ · ‹ 1 2 … N › */
.tw-pager .tw-pg-total { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: rgb(var(--v3-fg)); font-size: 13px; }
.tw-pager .tw-pg-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-weight: 600; font-size: 12px; color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .12); }
.tw-pager .go-pager { display: inline-flex; align-items: center; gap: 4px; }
.tw-pg-size > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tw-pg-size > summary::-webkit-details-marker { display: none; }
.tw-pg-size > .tw-pg-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; gap: 2px; padding: 4px; min-width: 7.5rem; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.tw-pg-menu a { justify-content: start; width: 100%; }
.tw-pg-menu a.is-on { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .07); font-weight: 600; }
.tw-pg-nums { display: inline-flex; align-items: center; gap: 2px; }
.tw-pg-n { min-width: 28px; height: 28px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 7px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); font-variant-numeric: tabular-nums; }
.tw-pg-n:hover { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); }
.tw-pg-n.is-on { background: rgb(var(--v3-fg) / .1); color: rgb(var(--v3-fg)); font-weight: 700; box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); }
.tw-pg-gap { padding: 0 3px; color: rgb(var(--v3-fg-3)); }
@media (max-width: 640px) { .tw-pg-nums .tw-pg-n:not(.is-on), .tw-pg-nums .tw-pg-gap { display: none; } }
/* the table kit used to hide the sort arrow until hover (absolute, opacity 0): now it sits in the header's own row, always showing */
.tbl th a > svg, .\!tbl th a > svg { position: static !important; margin: 0 !important; opacity: .6 !important; width: 12px; height: 12px; }
.tbl th a:hover > svg, .\!tbl th a:hover > svg { opacity: .9 !important; }
.tbl th[aria-sort] a > svg, .tbl th a.on > svg, .tbl th a.is-sorted > svg, .\!tbl th[aria-sort] a > svg { opacity: 1 !important; color: rgb(var(--v3-accent)); }
/* Refundable Samples: the video chip (Terry msg, refund research) and the unnamed note */
.st-vid { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: rgb(var(--v3-fg-3)); background: rgb(var(--v3-fg) / .06); }
.st-vid.is-on { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .13); }
a.st-vid.is-on:hover { filter: brightness(1.1); }
.st-unnamed { margin: 0; padding: 0 16px 10px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.st-cond { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .06); }
.st-cond.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .13); }
.st-cond.is-warn { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .14); }
.st-cond.is-bad { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.st-cond.is-info { color: rgb(var(--v3-info, var(--v3-accent))); background: rgb(var(--v3-info, var(--v3-accent)) / .12); }
.st-rrule > summary { list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.st-rrule > summary::-webkit-details-marker { display: none; }
/* the inbox pane's refundable-samples card (Terry msg 1593) */
.ib2-rf { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid rgb(var(--v3-line)); }
.ib2-rf:first-of-type { border-top: 0; }
.ib2-rf-n { font-size: 12.5px; font-weight: 600; color: rgb(var(--v3-fg)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib2-rf-l { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ib2-rf-m { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.ib2-rf-use { justify-self: start; }
/* Check before it starts (Terry msgs 1573, 1575): a drafted reply or re-invite shows its exact message and who gets it before an owner switches it on */
.au-confirm { background: rgb(var(--v3-accent) / .04); }
.au-cf-list { display: flex; flex-direction: column; gap: 6px; max-height: 22rem; overflow: auto; padding: 0; margin: 0; list-style: none; }
.au-cf-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); font-size: 13px; }
.au-cf-msg { color: rgb(var(--v3-fg-2)); white-space: pre-line; }
.aw-cd-rr { display: flex; flex-direction: column; gap: 4px; padding-left: 2px; }

/* Sample requests › Ready again (Terry msgs 1565, 1575) */
.ra-prod { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 22rem; }
.ra-prod img, .ra-noimg { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; background: rgb(var(--v3-surface-2)); }
.ra-noimg { display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--v3-fg-2)); border: 1px solid rgb(var(--v3-line)); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.ra-now { border-top: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-pos) / .04); }
.ra-now-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; }
.ra-count { display: inline-flex; flex-direction: column; gap: 4px; min-width: 9rem; }
.ra-bar { display: block; height: 6px; border-radius: 999px; background: rgb(var(--v3-line)); overflow: hidden; }
.ra-bar i { display: block; height: 100%; border-radius: inherit; background: rgb(var(--v3-accent)); }

/* See example ⌄ (Terry msg 1588): a drafted message as the creator sees it */
.cd-ex { margin-top: 4px; }
.cd-ex-s { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-accent)); cursor: pointer; list-style: none; }
.cd-ex-s::-webkit-details-marker { display: none; }
.cd-ex[open] .cd-ex-s svg { transform: rotate(180deg); }
.cd-ex-b { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-width: 26rem; }
.cd-ex-chat { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 14px; background: rgb(var(--v3-surface-2)); }
.cd-ex-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.cd-ex-av { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--v3-accent)); color: #fff; font-size: 11px; font-weight: 700; }
.cd-ex-name { font-weight: 600; color: rgb(var(--v3-fg)); }
.cd-ex-tag { color: rgb(var(--v3-fg-3)); margin-left: auto; }
.cd-ex-bub { align-self: flex-start; max-width: 92%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg)); font-size: 13px; line-height: 1.45; white-space: pre-line; }
.cd-ex-card { display: flex; flex-direction: column; gap: 2px; }
.cd-ex-k { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--v3-fg-3)); }
.cd-ex-where { font-size: 12px; color: rgb(var(--v3-fg-2)); margin: 0; }
.ra-acts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 16px 10px; }
.ra-act { display: flex; flex-direction: column; gap: 2px; }
.ra-picked { flex-basis: 100%; }   /* Terry msg 2245: how many are picked, and how many on other pages, above the two buttons */
.aw-cd-f { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
/* Ready again and Refundable Samples: one tidy row of filter buttons that never runs off the card's left edge (Terry msg 1550) */
.st-onerow { justify-content: flex-start; align-items: center; gap: 6px; }
.st-onerow > .st-inline { flex: 1 1 0; min-width: 0; justify-content: flex-start; align-items: center; gap: 6px; }
.st-onerow .st-f select { min-width: 0; width: 9.5rem; max-width: 12rem; text-overflow: ellipsis; }
.st-tbl .v5-prodcell { max-width: 128px; }   /* the Refundable table was a little wider than the page at 1440, so the pinned Actions column covered the Sample date (Terry, samples tidy) */
@media (max-width: 767px) { .st-tbl th.pin, .st-tbl td.pin { position: static; box-shadow: none; } }   /* on a phone the actions column scrolls with the row: pinned it covered the Product column */
.st-onerow .st-f select.st-status { width: 13.5rem; max-width: 15rem; }   /* "In progress (2,345)" and the group counts read in full (Terry, samples tidy) */
.st-onerow .st-f-q input { width: 10rem; }
.st-onerow .st-f.flex { white-space: nowrap; flex-direction: row; align-items: center; }
.st-onerow .st-f select.st-cond-f { width: 14.5rem; max-width: 18rem; } .st-onerow .st-f select.st-hist-f { width: 10.75rem; }   /* "Conditions met · no reply needed (1,234)" reads in full (Terry msg 4831) */
@media (max-width: 640px) { .st-onerow .st-f select, .st-onerow .st-f select.st-status, .st-onerow .st-f select.st-cond-f, .st-onerow .st-f select.st-hist-f, .st-onerow .st-f-q input { width: 100%; max-width: none; }
  .st-onerow { flex-wrap: wrap; } .st-onerow > .st-inline { flex: 1 1 100%; } }   /* on a phone the filters take the card's full width under the dates, so no option is cut */
/* Requests' product cell (round 2 gap): the source and campaign chips sit on their own line under the product name and wrap, so neither is cut to "…" */
.sr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; white-space: normal; max-width: 100%; min-width: 0; }
.sr-chips .sr-src { margin-right: 0; }
.sr-chips .st-campchip { margin-top: 0; min-width: 0; }
/* Ready again in Sample Requests' table (Terry msg 1674): the creator (with the TikTok mark) whole, the product cut with an ellipsis */
[data-st-ready] .v8s-tbl td.primary { white-space: nowrap; }
[data-st-ready] .v8s-tbl th[data-c=creator] { width: 15rem; min-width: 15rem; }
[data-st-ready] .v8s-tbl .ra-prod { display: flex; max-width: 20rem; }
[data-st-ready] .v8s-tbl .ra-prod > .truncate { min-width: 0; flex: 1 1 auto; }
[data-st-ready] .v8s-tbl .st-who { display: flex; max-width: 100%; }
[data-st-ready] .v8s-tbl .st-who .cr-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-st-ready] .v8s-tbl .st-who .tt-ico, [data-st-ready] .v8s-tbl .st-who .cp { flex: none; }

/* Performance Trackers (Terry msgs 1627-1633): staff eyes only */
.pt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pt-exclusive { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: rgb(var(--v3-accent)); background: rgb(var(--v3-accent) / .09); border: 1px solid rgb(var(--v3-accent) / .3); }
.pt-menu { position: absolute; right: 0; z-index: 30; display: flex; flex-direction: column; min-width: 180px; padding: 6px; margin-top: 4px; max-height: 320px; overflow: auto; }
.pt-menu a { padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.pt-menu a:hover, .pt-menu a.is-on { background: rgb(var(--v3-fg) / .06); }
.pt-tabs { margin-bottom: 14px; }
.pt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pt-card { padding: 12px 14px; }
.pt-cl { font-size: 12px; color: rgb(var(--v3-fg-2)); display: flex; align-items: center; }
.pt-cv { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.pt-cm { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pt-note { font-size: 12px; color: rgb(var(--v3-fg-2)); margin: 4px 0 14px; }
.pt-tbl td, .pt-tbl th { white-space: nowrap; }
.pt-tbl .pt-v { display: block; }
.pt-tg { width: 110px; text-align: right; height: 30px; }
.pt-pace { font-weight: 600; }
.pt-pace.is-ok { color: #15803d; }
.pt-pace.is-warn { color: #b45309; }
.pt-pace.is-bad { color: #dc2626; }
.pt-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.pt-src { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 15px; vertical-align: 1px; }
.pt-src-sheet { color: #15803d; background: rgb(21 128 61 / .12); }
.pt-src-import { color: #1d4ed8; background: rgb(29 78 216 / .12); }
.pt-src-est { color: #b45309; background: rgb(180 83 9 / .12); }
.pt-srcsum { font-size: 11px; color: rgb(var(--v3-fg-2)); padding: 1px 6px; border-radius: 999px; background: rgb(var(--v3-fg) / .06); }
.pt-pad { padding: 12px 14px; }
/* Import CSV beside the page (Terry msg 2401): the help drawer's sheet, narrower */
.pt-imp-drawer { width: min(480px, 100vw); }
.pt-imp-body { padding: 18px 6px 24px; }
.pt-imp-t { font-size: 17px; font-weight: 700; padding: 0 44px 0 14px; margin: 0 0 4px; }
.pt-imp-p { font-size: 13px; color: rgb(var(--v3-fg-2)); padding: 0 14px; margin: 0; }
.pt-form { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.pt-csv { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pt-sheets, .pt-presets, .pt-log { list-style: none; margin: 0; padding: 0; }
.pt-sheets li, .pt-presets li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.pt-log li { padding: 6px 14px; font-size: 12px; border-top: 1px solid rgb(var(--v3-line)); }
/* an upload's result and the import history (Terry msg 2408) */
.pt-impbox { align-items: flex-start; margin-bottom: 12px; }
.pt-imp-body .pt-impbox { margin: 10px 14px 0; }
.pt-impbox-b { min-width: 0; font-size: 13px; }
.pt-impbox-s { font-size: 12px; color: rgb(var(--v3-fg-2)); margin-top: 3px; overflow-wrap: anywhere; }
.pt-impbox-a { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pt-hist-t td { vertical-align: top; white-space: normal; }
.pt-hist-t td.pt-hist-r { min-width: 220px; max-width: 420px; overflow-wrap: anywhere; }
.pt-hist-t td.pin { position: static; box-shadow: none; white-space: nowrap; }
.pt-hist-t tr.is-cur td { background: rgb(var(--v3-accent) / .06); }
.pt-hist-f { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 260px; overflow-wrap: anywhere; }
.chip.pt-chip-ok, .chip.pt-chip-bad, .chip.pt-chip-warn { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.chip.pt-chip-ok { background: rgb(var(--v3-pos) / .12); color: rgb(var(--v3-pos)); }
.chip.pt-chip-bad { background: rgb(var(--v3-neg) / .12); color: rgb(var(--v3-neg)); }
.chip.pt-chip-warn { background: rgb(var(--v3-warn) / .14); color: rgb(var(--v3-warn)); }
.pt-diag-l { font-size: 12px; font-weight: 600; padding: 12px 14px 4px; display: flex; align-items: center; gap: 4px; }
.pt-diag-t { font-size: 11px; margin: 0 14px; width: auto; }
.pt-diag-t th, .pt-diag-t td { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.pt-diag-ul { list-style: none; margin: 0; padding: 0 14px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pt-imp-body .pt-imp-p + .pt-imp-p { margin-top: 10px; }
.pt-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.pt-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-height: 32px; }
.pt-def { font-size: 11px; }
.pt-report { display: flex; flex-direction: column; gap: 12px; }
.pt-rep-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--v3-fg-2)); }
.pt-rep-t { font-size: 20px; font-weight: 700; margin: 2px 0; }
.pt-share-cfg { margin: 6px 0 0 28px; padding: 10px 12px; border-radius: 8px; border: 1px dashed rgb(var(--v3-line-2, var(--v3-line))); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
@media (max-width: 1023px) { .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the tracker's own figures on the Month tab (Terry: "Go: add tracker figures"): target pacing and month on month, then the figure blocks */
.pt-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.pt-goal, .pt-mom { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pt-fig-h { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); display: flex; align-items: center; gap: 4px; }
.pt-goal-v { font-size: 22px; font-weight: 700; line-height: 1.15; }
.pt-goal-of { font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); }
.pt-goal-s { font-size: 12px; color: rgb(var(--v3-fg-2)); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pt-goal-none { font-size: 13px; color: rgb(var(--v3-fg-2)); }
.pt-fig-src { font-size: 11px; color: rgb(var(--v3-fg-3, var(--v3-fg-2))); }
.pt-bar { position: relative; height: 8px; border-radius: 999px; background: rgb(var(--v3-fg) / .08); overflow: visible; }
.pt-bar-f { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #16a34a; }
.pt-bar-f.is-bad { background: #dc2626; }
.pt-bar-m { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgb(var(--v3-fg) / .55); }
.pt-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; align-items: start; }
.pt-block { padding: 12px 14px 8px; min-width: 0; }
.pt-block .pt-fig-h { margin-bottom: 4px; }
.pt-fig { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 13px; border-top: 1px solid rgb(var(--v3-line)); }
.pt-fig:first-of-type { border-top: 0; }
.pt-fig-l { color: rgb(var(--v3-fg-2)); display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pt-fig-v { font-weight: 600; white-space: nowrap; }
.pt-fig-i { display: inline-flex; color: rgb(var(--v3-fg-3, var(--v3-fg-2))); cursor: help; }
.pt-fig-tag { font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 999px; background: rgb(var(--v3-fg) / .06); color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.pt-gap { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgb(245 158 11 / .15); color: #b45309; cursor: help; margin-left: 4px; }
.pt-rep-sep td { font-size: 11px; font-weight: 600; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .03); }
[data-pt-days] .card-h { position: relative; }
@media (max-width: 767px) { .pt-duo { grid-template-columns: minmax(0, 1fr); } .pt-blocks { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .pt-top .btn, .pt-top details, .pt-tabs, .tw-pager { display: none !important; }
  .pt-report .card { break-inside: avoid; }
}
/* the roster's own creators: a small CAP chip by the agency (Terry msg 1651) */
.cap-chip { font-size: 10px; line-height: 1; padding: 2px 5px; margin-left: 4px; vertical-align: 1px; color: rgb(var(--v3-accent)); border-color: rgb(var(--v3-accent) / .35); cursor: help; }
/* Content › Videos / LIVEs on a feed shop (Terry msgs 1704, 1706, 1708): dashboard sections, strips, heatmap, hook board, the drawer */
.cv-split { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .cv-split { grid-template-columns: minmax(0, 1fr); } }
.cv-strips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cv-mini-row { display: flex; gap: 10px; overflow-x: auto; padding: 10px 14px 12px; border-top: 1px solid rgb(var(--v3-line)); scrollbar-width: thin; }
.cv-mini { display: flex; gap: 10px; align-items: flex-start; flex: 0 0 min(300px, 85%); min-width: 0; padding: 8px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; }
.cv-mini-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cv-why { font-size: 11.5px; color: rgb(var(--v3-fg-2)); line-height: 1.35; }
.cv-who { cursor: pointer; }
/* the handle, level and TikMarketing badge wrap inside the mini card instead of spilling under the next card (Terry msg 1723: their ⓘ were hidden) */
.cv-mini .cv-who { flex-wrap: wrap; row-gap: 2px; }
.cv-trend-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 14px 14px; border-top: 1px solid rgb(var(--v3-line)); }
.cv-trend-grid.cv-trend-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .cv-trend-grid, .cv-trend-grid.cv-trend-2 { grid-template-columns: minmax(0, 1fr); } }
.cv-trend { min-width: 0; }
.cv-chart-lg { height: 180px; }
.cv-heat-wrap { overflow-x: auto; padding: 10px 14px 14px; }
.cv-heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 11px; }
.cv-heat th { font-weight: 500; color: rgb(var(--v3-fg-3)); text-align: center; padding: 2px 4px; white-space: nowrap; }
.cv-heat th[scope=row] { text-align: left; }
.cv-heat td { height: 30px; min-width: 34px; text-align: center; border-radius: 6px; color: rgb(var(--v3-fg)); background: rgb(var(--v3-accent) / var(--a, 0)); box-shadow: inset 0 0 0 1px rgb(var(--v3-line)); font-variant-numeric: tabular-nums; }
.cl-best { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.cv-hooks { list-style: decimal; margin: 0; padding: 10px 14px 12px 34px; display: flex; flex-direction: column; gap: 10px; }
.cv-hook-t { font-weight: 500; color: rgb(var(--v3-fg)); }
.cv-hook-m { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.cv-hook-ex { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgb(var(--v3-fg-2)); margin-top: 2px; }
.cv-hook-ex a { display: inline-flex; align-items: center; gap: 4px; }
.cv-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.cv-fbar .select { width: auto; max-width: 14rem; }
.cv-f-search { display: inline-flex; align-items: center; gap: 6px; }
.cv-f-search .input { width: 13rem; }
.cv-f-num { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cv-f-num .input { width: 6.5rem; }
.cv-f-chk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; user-select: none; }
.cv-cmpbar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 6px 14px; }
.cv-flags { display: inline-flex; gap: 4px; margin-top: 2px; }
.cv-cmp thead th { vertical-align: top; max-width: 18rem; }
.cv-cmp tbody th { vertical-align: middle; white-space: nowrap; }
.cv-bprod td.primary { max-width: 13rem; }
.cv-bprod .fx-prod { display: flex; min-width: 0; }
.cv-bprod .fx-pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-cmp-ai { min-width: 200px; white-space: normal; }
tr.is-on > td { background: rgb(var(--v3-accent) / .05); }
.cv-drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .32); }
.cv-drawer-x { position: absolute; inset: 0; }
.cv-drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); overflow-y: auto; background: rgb(var(--v3-surface)); border-left: 1px solid rgb(var(--v3-line)); box-shadow: -12px 0 32px rgb(0 0 0 / .18); padding: 0 16px 24px; }
.cv-drawer-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 0; background: rgb(var(--v3-surface)); border-bottom: 1px solid rgb(var(--v3-line)); }
.cv-drawer-top { display: flex; gap: 12px; padding: 14px 0 6px; }
.cv-drawer-title { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-drawer-acts { display: flex; gap: 6px; margin-top: 8px; }
.cv-menu { position: absolute; left: 0; top: calc(100% + 4px); min-width: 240px; z-index: 5; padding: 4px; }
.cv-drawer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 0; }
.cv-ds { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; font-size: 11.5px; color: rgb(var(--v3-fg-2)); }
.cv-ds b { font-size: 15px; color: rgb(var(--v3-fg)); font-weight: 600; font-variant-numeric: tabular-nums; }
.cv-vs { color: rgb(var(--v3-fg-2)); padding: 2px 0 6px; }
.cv-drawer-sec { padding: 12px 0; border-top: 1px solid rgb(var(--v3-line)); display: flex; flex-direction: column; gap: 8px; }
.cv-drawer-sec .cv-trend-grid { padding: 0; border: 0; }
.cv-sec-h { font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); display: flex; align-items: center; gap: 6px; }
.cv-ai { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.cv-ai dt { font-weight: 500; color: rgb(var(--v3-fg-2)); }
.cv-ai dd { margin: 0; color: rgb(var(--v3-fg)); }
@media (max-width: 640px) { .cv-drawer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-ai { grid-template-columns: minmax(0, 1fr); } .cv-f-search .input { width: 100%; } .cv-f-search { flex: 1 1 100%; } }

/* ---- Content from TikWhizz's own feed (Terry msgs 1704-1708): Carousels, Insights, Moderation's overview, the Content library ---- */
.cf-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); }
/* the carousel cell (Terry msg 1775): the first-image box and the title stay side by side on a phone too */
.cf-cell { flex-wrap: nowrap !important; }   /* the phone card layout wraps a primary cell's flex row */
.cf-cell > a { min-width: 0; flex: 1 1 auto; }
.cf-comm { display: inline-flex; align-items: center; gap: .3rem; color: rgb(var(--v3-pos)); }   /* My affiliates' In Community: the tick and the join day on one line (Terry msg 1776) */
.cf-thumb-na { display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--v3-fg-3)); }
.cf-best { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; }
.cf-best-k { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgb(var(--v3-fg)); }
.cf-best-t { flex: 1 1 220px; min-width: 0; }
.ins-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 14px 16px; }
.ins-card { border: 1px solid rgb(var(--v3-line)); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: rgb(var(--v3-surface)); }
.ins-card-h { display: flex; align-items: center; gap: 8px; color: rgb(var(--v3-accent)); }
.ins-card-h h3 { font-size: 14px; font-weight: 600; color: rgb(var(--v3-fg)); margin: 0; }
.ins-card p { font-size: 13px; color: rgb(var(--v3-fg-2)); margin: 0; }
.ins-ex { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.ins-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; align-items: center; }
.ins-ai { padding: 12px 16px; display: grid; gap: 12px; }
.ins-ai-s h3 { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.ins-ai-s ul { margin: 0; padding-left: 18px; font-size: 13px; color: rgb(var(--v3-fg-2)); display: grid; gap: 3px; }
.ins-summary { display: block; width: 100%; padding: 12px 16px; font: inherit; font-size: 13px; line-height: 1.55; color: rgb(var(--v3-fg)); background: transparent; border: 0; resize: vertical; white-space: pre-wrap; }
.mod-pop { position: absolute; right: 0; z-index: 30; margin-top: 4px; width: 320px; max-width: 85vw; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.mod-fix { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgb(var(--v3-line)); padding-top: 8px; }
.mod-fix textarea { font-size: 12px; }
.chip-radio { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgb(var(--v3-line)); border-radius: 999px; font-size: 12px; cursor: pointer; }
.chip-radio:has(input:checked) { border-color: rgb(var(--v3-accent)); color: rgb(var(--v3-accent)); }
.chip-radio input { accent-color: rgb(var(--v3-accent)); }
.lib-grid-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1023px) { .lib-grid-wrap { grid-template-columns: minmax(0, 1fr); } }
.lib-coll-list { display: flex; flex-direction: column; padding: 6px; }
@media (max-width: 1023px) { .lib-coll-list { flex-direction: row; overflow-x: auto; } }
.lib-coll { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.lib-coll span { flex: 1; min-width: 0; }
.lib-coll b { font-weight: 500; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.lib-coll:hover { background: rgb(var(--v3-hover)); }
.lib-coll.is-on { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); font-weight: 600; }
.lib-new { display: flex; gap: 6px; padding: 10px; }
.lib-new .input { min-width: 0; flex: 1; }
.lib-manage { padding: 10px; }
.lib-bar { flex-wrap: wrap; }
.lib-grid { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lib-card { border: 1px solid rgb(var(--v3-line)); border-radius: 12px; display: flex; flex-direction: column; background: rgb(var(--v3-surface)); }
.lib-media { position: relative; display: block; aspect-ratio: 4 / 5; background: rgb(var(--v3-surface-2)); border-radius: 12px 12px 0 0; overflow: hidden; }
.lib-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the post itself (TikTok's player, v3/_feed_thumb.html video_box fill); the Video / Carousel pill lets clicks through to it */
.lib-media-tt .lib-kind { pointer-events: none; }
.lib-na { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgb(var(--v3-fg-3)); }
.lib-kind { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; }
.lib-play { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.lib-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lib-cap { font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-who { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.lib-nums { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.lib-nums b { color: rgb(var(--v3-fg)); font-weight: 600; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lib-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 2px; }
.lib-pop { position: absolute; left: 0; z-index: 30; margin-top: 4px; min-width: 190px; padding: 4px; }
.lib-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
/* speed & seamless audit (Terry msg 1723): the breadcrumb never runs under the top bar's buttons (Samples' "re-reading now" pill): it gives way,
   the shop name first, then the group, the page's own name last, each cut with … */
/* bug sweep B (Terry msg 1723: "HerCreator community", "Her KiOdtreach", "Her Kind Content" with no "/"): the shop's name is its own piece so it
   is cut with … (a bare text node beside the logo was clipped mid-letter and the next piece read straight on); the separators never shrink;
   the page's own name keeps at least a few letters; and the top bar's buttons go compact before the breadcrumb is squeezed (live-view.css). */
.v4-crumbs { overflow: hidden; flex: 1 1 auto; }
.v4-crumb-shop { flex-shrink: 4; min-width: 20px; overflow: hidden; }
.v4-crumb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v4-crumb-grp { flex-shrink: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v4-crumb-here { flex-shrink: 1; min-width: 3.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v4-crumb-sep { flex-shrink: 0; }
@media (max-width: 1599px) { .ds-top .ds-search { width: 150px; } }
@media (max-width: 1439px) { .ds-top .ds-search { width: 32px; padding: 0; justify-content: center; } .ds-top .ds-search > span { display: none; } }
@media (max-width: 1279px) {
  .ds-top .ph-btn { width: 30px; padding: 0; justify-content: center; } .ds-top .ph-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* the age pill's "· re-reading now": on a page it shows from a phone up; in the top bar only on a wide screen (the dot and age say enough) */
.ds-fresh-more { display: none; }
/* a small phone: the feed chip keeps its dot and ↻ but not "75 min ago" (tap the dot for it), so the top bar's shop button keeps its name
   (sweep 14 Nov: at 390 the button was squeezed to one cut letter). */
@media (max-width: 479px) { .fd-ago-t { display: none; } }
@media (min-width: 640px) { .ds-fresh-more { display: inline; } }
/* the freshness pill while a re-read runs (fresh-pill.js, Terry 22 Nov): "Updating…" and its ↻ turning; it keeps its width, nothing moves */
.ds-fresh.is-updating { cursor: progress; }
.ds-fresh.is-updating .ds-fresh-more { display: none; }
.ds-fresh.is-updating::after { animation: ds-fresh-spin .9s linear infinite; }
@keyframes ds-fresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ds-fresh.is-updating::after { animation: none; } }
@media (max-width: 1535px) { .ds-top .ds-fresh-more { display: none; } }
/* a feed shop's chip (Terry msg 1913): the age opens its ⓘ bubble; an owner's ↻ re-reads in place; while it waits, a spinner and "Updating…" */
.fd-fresh { gap: 4px; padding-right: 4px; }
.fd-fresh::after { content: none; display: none; }   /* the shared pill draws a ↻ after itself; here only an owner gets a ↻, and it's a real button */
.fd-fresh:hover { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.fd-fresh-age { display: inline-flex; align-items: center; gap: 8px; cursor: help; border-radius: 999px; }
.fd-fresh-age:focus-visible, .fd-rf:focus-visible { outline: 2px solid rgb(var(--v3-accent, 244 55 88)); outline-offset: 2px; }
.fd-rf { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; color: rgb(var(--v3-fg-2)); cursor: pointer; }
.fd-rf:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-hover)); }
.fd-upd { display: inline-flex; align-items: center; gap: 5px; padding-right: 4px; color: rgb(var(--v3-fg-2)); }
.fd-upd-t { display: none; }
@media (min-width: 640px) { .fd-upd-t { display: inline; } }
.fd-spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgb(var(--v3-fg-3) / .35); border-top-color: rgb(var(--v3-fg-2)); animation: fd-spin .8s linear infinite; }
@keyframes fd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fd-spin { animation: none; } }
/* bug sweep B (Terry msg 1723): the top bar never makes a phone page wider than the phone. Its button group may shrink, the shop
   name gives way first (cut with …); the round buttons and the age pill keep their size. */
@media (max-width: 767px) {
  .ds-top { min-width: 0; max-width: 100%; }
  .ds-top > .ml-auto { flex-shrink: 1; min-width: 0; }
  .ds-top [data-mobile-shop] { flex-shrink: 1; min-width: 0; }
  .ds-top [data-mobile-shop] > img, .ds-top [data-mobile-shop] > svg { flex-shrink: 0; }
  .ds-top .ds-fresh, .ds-top .ph-btn, .ds-top .wn, .ds-top .btn-icon { flex-shrink: 0; }
}
/* …and nothing in a page is wider than the phone: a form field with a set width (style="width: 22rem") never passes its row */
@media (max-width: 639px) { #content input, #content select, #content textarea { max-width: 100%; } #content .ds-toolbar > *, .v4-filters { min-width: 0; max-width: 100%; } }
/* bug sweep B (Terry msg 1723): Samples › In shipment at 1280 squeezed the Product column to 56px (its chip and ⓘ clipped). The Coming soon
   30d GMV column now has its own width (it shared what was left with Product), Tracking and the Detail button are trimmed, and Requested waits
   for 1440 on this tab (samples.html), so Product keeps ~150px at 1280. */
.ds-reqtbl[data-ship] th[data-c=tracking] { width: 136px; }
.ds-reqtbl[data-actw=detail] th[data-c=act] { width: 92px; }
/* bug sweep B: the Refundable table ran 1626px in a 966px card (Followers, paid, received, date and Actions off the edge). The pieces that
   can give way (the handle, the product name and its SKU line, the refund condition) no longer hold the table open: they take what the card
   has left, cut with … (the condition wraps), each with a floor; the headers wrap; Followers waits for 1440 (_st_refundable.html). */
.st-tbl th { white-space: normal; height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }
.st-tbl th .st-sort { white-space: normal; }
.st-tbl th.num .st-sort { justify-content: flex-end; }
.st-tbl.dense :is(td, th):not(:first-child):not(:last-child) { padding-left: 8px; padding-right: 8px; }
.st-tbl .ds-prod-n, .st-tbl .ds-prod-v { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tbl td:has(> .st-cond) { white-space: normal; min-width: 140px; max-width: 220px; }
.st-tbl .st-cond { white-space: nowrap; }
.st-cond-sub { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: rgb(var(--v3-fg-3)); white-space: nowrap; }   /* the table's short chip ('Met 9 Nov') then its tally ('3 of 3 sold') */
.st-tbl td.primary .st-who { display: flex; flex-wrap: wrap; row-gap: 3px; max-width: 100%; }
.st-tbl td.primary .st-who .cr-nm { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tbl .v5-prodcell .ds-prod { min-width: 0; max-width: 200px; }
@media (max-width: 1439px) { .st-tbl .v5-prodcell .ds-prod { max-width: 130px; } }
.st-tbl .st-whoh { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.st-tbl .st-whoh > :not(.cr-nm) { flex: none; }
@media (max-width: 1439px) { .st-tbl .v5-prodcell .ds-prod { max-width: 100px; } .st-tbl td.primary .st-who .cr-nm { max-width: 120px; } .st-tbl td:has(> .st-cond) { min-width: 128px; } }
@media (min-width: 1440px) and (max-width: 1599px) { .st-tbl .v5-prodcell .ds-prod { max-width: 140px; } }
/* bug sweep B: Creator community › Campaigns ran 36–44px past its card at 1280 and 1440 ("Actions" read "Acti"): on a laptop the title
   gives way first (cut with …, the full title is its hover and the leaderboard link) */
@media (min-width: 768px) and (max-width: 1599px) { table.cc-tbl .cc-nm { max-width: 140px; } }
/* bug sweep B: Outreach › Campaigns ran 1163px in a 966px card at 1280 (GMV 30d and Next off the edge): the status, the next step and the
   headings wrap; the campaign name is cut with … */
@media (min-width: 768px) {
  .oc-camptbl th { white-space: normal; height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }
  .oc-camptbl td[data-l=Status], .oc-camptbl td[data-l=Next], .oc-camptbl td[data-l=Type], .oc-camptbl td[data-l=Audience] { white-space: normal; }
  .oc-camptbl td[data-l=Status] .pill { white-space: normal; height: auto; min-height: 20px; line-height: 1.3; }
  .oc-camptbl td[data-l=Next] { min-width: 110px; max-width: 200px; }
  .oc-camptbl td[data-l=Campaign] { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .oc-camptbl :is(td, th):not(:first-child):not(:last-child) { padding-left: 8px; padding-right: 8px; }
}
/* bug sweep B: Ready again's "In a draft: <campaign> (off)" note was cut off by the table's one-line cells: it wraps under the pill */
.ds-reqtbl td.ra-avail { white-space: normal; }
.ds-reqtbl td.ra-avail .ra-drafted { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.ds-reqtbl td.ra-avail > .text-fg-3 { white-space: nowrap; }
/* Sample Requests: a creator with more than one request is one row that opens into a drop-down of their requests (Terry msg 1790, Cruva's row).
   The row opens in place: no fade, nothing above it moves. Phones: the requests stack as cards inside the open row. */
.v8s-tbl tr.v8s-grow { cursor: pointer; }
.v8s-tbl tr.v8s-grow:hover > td { background: rgb(var(--v3-fg) / .025); }
.v8s-tbl tr.v8s-grow.is-open > td { background: rgb(var(--v3-fg) / .035); border-bottom-color: transparent; }
.v8s-tbl tr.v8s-grow:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.v8s-gsum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v8s-gpics { display: inline-flex; flex-shrink: 0; }
.v8s-gpics > .v5-pg { overflow: hidden; }
.v8s-gpics > .v5-pg img { width: 100%; height: 100%; object-fit: cover; }
.v8s-gpics > .v5-pg + .v5-pg { margin-left: -9px; box-shadow: 0 0 0 2px rgb(var(--v3-surface)); }
.v8s-gn { font-size: 12px; line-height: 18px; font-weight: 600; color: rgb(var(--v3-fg)); background: rgb(var(--v3-accent) / .12); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.v8s-gchev { color: rgb(var(--v3-fg-3)); flex-shrink: 0; transition: transform .15s ease; }
.v8s-tbl tr.v8s-grow.is-open .v8s-gchev { transform: rotate(180deg); }
/* Terry msg 1842: the last column is "Requests": the count on a soft chip with its chevron (and a red "N overdue" before it); every creator is a drop-down */
.v8s-greq { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.v8s-gbtn { gap: 4px; height: 26px; padding: 0 8px 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg)); background: rgb(var(--v3-accent) / .1); border-color: transparent; box-shadow: none; }
.v8s-gbtn:hover { background: rgb(var(--v3-accent) / .16); }
.v8s-tbl tr.v8s-grow.is-open .v8s-gbtn { background: rgb(var(--v3-accent) / .18); }
.v8s-gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: rgb(var(--v3-fg)); }
.v8s-gmore { flex-shrink: 0; font-size: 11.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.v8s-avbtn { display: inline-flex; flex-shrink: 0; border-radius: 999px; cursor: pointer; }
.v8s-avbtn:focus-visible, .v8s-panelbtn:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; }
.v8s-panelbtn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 6px; color: rgb(var(--v3-fg-3)); cursor: pointer; flex-shrink: 0; }
.v8s-panelbtn:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .06); }
.v8s-tbl tr.v8s-gsub > td.v8s-gsub-td { padding: 0 12px 12px; background: rgb(var(--v3-fg) / .035); white-space: normal; overflow: visible; }
.v8s-sub { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); overflow-x: auto; }
.v8s-subtbl { width: 100%; border-collapse: collapse; table-layout: auto; }
.v8s-subtbl th { text-align: left; font-size: 11px; line-height: 16px; font-weight: 500; color: rgb(var(--v3-fg-3)); padding: 8px 12px; border-bottom: 1px solid rgb(var(--v3-line)); white-space: nowrap; background: transparent; position: static; }
.v8s-subtbl th.num { text-align: right; }
.v8s-tbl .v8s-subtbl td { padding: 10px 12px; height: auto; border-bottom: 1px solid rgb(var(--v3-line) / .7); vertical-align: middle; white-space: nowrap; overflow: visible; }
.v8s-tbl .v8s-subtbl td.primary { white-space: normal; width: 100%; }
.v8s-subtbl tbody tr:last-child > td { border-bottom: 0; }
.v8s-tbl .v8s-subtbl td.pin { position: static; box-shadow: none; background: transparent; }
.v8s-subtbl .v8s-sc { width: 36px; padding-right: 0; }
.v8s-sprod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v8s-spic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgb(var(--v3-surface-2)); }
.v8s-spic.v5-pg { width: 44px; height: 44px; font-size: 15px; }
.v8s-spic img { width: 100%; height: 100%; object-fit: cover; }
.v8s-stext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v8s-sl1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.v8s-stitle { min-width: 0; max-width: 30rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 600; color: rgb(var(--v3-fg)); }
.v8s-idchip { flex-shrink: 0; height: 16px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 16px; font-weight: 600; color: rgb(var(--v3-fg-2)); box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); cursor: help; }
.v8s-repchip { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: rgb(124 58 237); background: rgb(139 92 246 / .12); box-shadow: inset 0 0 0 1px rgb(139 92 246 / .25); white-space: nowrap; cursor: help; }
html:not([data-theme="light"]) .v8s-repchip { color: rgb(196 181 253); }
.v8s-sl2, .v8s-sl3 { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; font-size: 12px; line-height: 16px; color: rgb(var(--v3-fg-2)); }
.v8s-sl2:empty { display: none; }
.v8s-sl2 > b { font-weight: 600; color: rgb(var(--v3-fg)); }
.v8s-sl3 { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.v8s-sl2 > * + *::before, .v8s-sl3 > * + *::before { content: "·"; margin-right: 6px; color: rgb(var(--v3-fg-3)); font-weight: 400; }
.v8s-left { display: inline-flex; align-items: center; gap: 3px; }
.v8s-left.is-soon { color: rgb(var(--v3-warn)); font-weight: 600; }
.v8s-chan { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Terry msg 1799: each request's status chip (samples.request_status) and the creator row's red "N overdue" */
.v8s-st { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 11px; line-height: 18px; font-weight: 600; white-space: nowrap; cursor: help;
  color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .06); box-shadow: inset 0 0 0 1px rgb(var(--v3-line-2)); }
.v8s-st.is-info { color: rgb(var(--v3-info)); background: rgb(var(--v3-info) / .1); box-shadow: inset 0 0 0 1px rgb(var(--v3-info) / .22); }
.v8s-st.is-soon, .v8s-st.is-warn { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .12); box-shadow: inset 0 0 0 1px rgb(var(--v3-warn) / .25); }
.v8s-st.is-bad { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); box-shadow: inset 0 0 0 1px rgb(var(--v3-neg) / .28); }
.v8s-st.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .12); box-shadow: inset 0 0 0 1px rgb(var(--v3-pos) / .25); }
.v8s-sl3 { row-gap: 4px; }
.v8s-sl3 > .v8s-sl3st { display: inline-flex; }
.v8s-sl3 > .v8s-sl3st::before { content: none; }   /* the chip sets itself apart: no "·" left dangling when it wraps on a phone */
.v8s-gover { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; cursor: help;
  color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); box-shadow: inset 0 0 0 1px rgb(var(--v3-neg) / .28); }
@media (max-width: 767px) {
  .v8s-tbl tr.v8s-grow > td.pin .v8s-greq { display: flex; width: 100%; }
  .v8s-tbl tr.v8s-grow > td.pin .v8s-gbtn { flex: 1 1 auto; justify-content: center; height: 34px; }
  .tbl.stack tr.v8s-grow:hover > td, .tbl.stack tr.v8s-grow.is-open > td { background: transparent; }
  .tbl.stack tbody tr.v8s-grow.is-open { background: rgb(var(--v3-fg) / .035); border-bottom-color: transparent; }
  .tbl.stack tbody tr.v8s-gsub { background: rgb(var(--v3-fg) / .035); }
  .tbl.stack tbody tr.v8s-gsub { display: block; padding: 0 10px 12px; }
  .tbl.stack tbody tr.v8s-gsub[class~="hidden"] { display: none; }
  .tbl.stack tbody tr.v8s-gsub > td.v8s-gsub-td { display: block; padding: 0; background: transparent; }
  .v8s-sub { overflow: visible; }
  .tbl.stack .v8s-subtbl tbody tr { padding: 12px; border-bottom: 1px solid rgb(var(--v3-line) / .7); }
  .tbl.stack .v8s-subtbl tbody tr:last-child { border-bottom: 0; }
  .tbl.stack .v8s-subtbl tbody tr:is([data-for], [data-audit]) { padding-top: 0; }
  .v8s-tbl .v8s-subtbl td { padding: 0; border: 0; white-space: normal; }
  .v8s-stitle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* TikTok ads › Spark Ads ran 1243px in an 890px card at 1440 (Ad spend, ROI and Actions off the edge), 1068px in 730px at 1280: as bug sweep B
   did for Samples, the pieces that can give way do (the handle and the code are cut with …, full on hover; the product wraps to two lines; the
   auth dates wrap), the headings wrap, Views, CTR and ROI wait for 1600, and the GMV Max pick box (it does nothing until the TikTok Ads
   connection) waits for 1440. On a phone both tables stack (class "stack" in tiktok_ads.html). */
@media (min-width: 768px) {
  table.ta-tbl th { white-space: normal; height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }
  table.ta-tbl :is(td, th):not(:first-child):not(:last-child) { padding-left: 8px; padding-right: 8px; }
  table.ta-spark td.primary { max-width: 170px; }
  table.ta-spark .ta-who { min-width: 0; max-width: 100%; }
  table.ta-spark .ta-who .cr-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.ta-spark .ta-code code { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  table.ta-spark td.ta-prod { min-width: 96px; max-width: 170px; white-space: normal; }
  table.ta-spark .ta-prod-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
  table.ta-spark td[data-l="Auth Period"] { white-space: normal; min-width: 84px; }
  table.ta-spark .ta-auth { white-space: normal; border-radius: 10px; line-height: 1.35; }
}
@media (max-width: 1599px) { table.ta-spark .ta-wide { display: none; } }
@media (min-width: 768px) and (max-width: 1439px) { table.ta-spark .ta-pick { display: none; } table.ta-spark td.primary { max-width: 140px; } table.ta-spark .ta-code code { max-width: 92px; } }
/* …on a phone (the stacked row's three columns): the code takes two columns, the product a whole line, in full */
@media (max-width: 767px) {
  table.ta-spark .ta-pick { display: none; }
  table.ta-spark td[data-l="Spark Code"] { grid-column: span 2; min-width: 0; }
  table.ta-spark td[data-l="Spark Code"] .ta-code { min-width: 0; max-width: 100%; }
  table.ta-spark td[data-l="Spark Code"] code { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  table.ta-spark td.ta-prod { grid-column: 1 / -1; max-width: none; }
  table.ta-spark .ta-prod-n { white-space: normal; text-align: left; }
}

/* Terry msgs 1817 / 1819: Approve (left) and Reject (right) on every request waiting for review, a tick per request, and the stored list's one confirm */
.v8s-dec { display: inline-flex; align-items: center; gap: 6px; }
/* Terry msg 2302: a TAP link's request: the partner decides it in Partner Centre, so the row says where instead of offering buttons */
.v8s-taphint { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 170px; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  line-height: 1.25; white-space: normal; text-align: left; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg-2) / .06); border: 1px dashed rgb(var(--v3-fg-2) / .35); cursor: help; }
.v8s-taphint > svg { flex: none; }
.v8s-dec-r { color: rgb(var(--v3-neg)); background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--v3-neg) / .45); }
.v8s-dec-r:hover:not(:disabled) { background: rgb(var(--v3-neg) / .08); }
@media (max-width: 767px) {
  .v8s-dec { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .v8s-dec > .btn { justify-content: center; min-height: 36px; }
}
/* Approve / Reject confirm (Terry msgs 1844 / 1845): as simple as Cruva's: title, one question, Cancel and the action */
.v8s-fdc { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / .45); }
.v8s-fdc[hidden] { display: none; }
.v8s-fdc-card { width: min(28rem, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; background: rgb(var(--v3-surface)); }
.v8s-fdc-t { font-size: 16px; font-weight: 650; color: rgb(var(--v3-fg)); }
.v8s-fdc-q { font-size: 13.5px; line-height: 20px; color: rgb(var(--v3-fg-2)); }
.v8s-fdc-off { font-size: 12.5px; line-height: 18px; color: rgb(var(--v3-warn) / .9); }
.v8s-fdc-off[hidden], .v8s-fdc-which[hidden], .v8s-fdc-reason[hidden] { display: none; }
.v8s-fdc-which > summary { width: fit-content; list-style: none; cursor: pointer; font-size: 12px; color: rgb(var(--v3-fg-3)); text-decoration: underline; text-underline-offset: 2px; }
.v8s-fdc-which > summary::-webkit-details-marker { display: none; }
.v8s-fdc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; max-height: 30vh; overflow: auto; }
.v8s-fdc-li { font-size: 12.5px; line-height: 18px; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }
.v8s-fdc-li b { font-weight: 600; color: rgb(var(--v3-fg)); }
.v8s-fdc-note { display: block; font-size: 11.5px; color: rgb(var(--v3-neg)); }
.v8s-fdc-reason { display: block; margin-top: 2px; }
.v8s-fdc-reason .input { width: 100%; }
.v8s-fdc-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.v8s-fdc-li.is-held .v8s-fdc-note { color: rgb(var(--v3-warn)); }
/* Terry msgs 2281 / 2291: a decision on its way ("Approving…", "Rejecting…", then "✓ Approved"), how a confirm's decisions are going (top centre),
   and the one pop-up when TikTok has answered every one (centred; it closes by itself). A refused one's line under its row is red. */
.v8s-going { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); border: 1px solid rgb(var(--v3-line)); }
.v8s-going.is-ok { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .1); border-color: rgb(var(--v3-pos) / .35); }
.v8s-fdprog { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 85; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  min-height: 44px; padding: 10px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgb(var(--v4-ink-fg));
  background: rgb(var(--v4-ink)); box-shadow: 0 0 0 1px rgb(var(--v4-ink-line)), 0 12px 32px rgb(0 0 0 / .28); }
.v8s-fdprog .fd-spin { border-color: rgb(var(--v4-ink-fg) / .3); border-top-color: rgb(var(--v4-ink-fg)); }
.v8s-fdprog[hidden], .v8s-fddone[hidden] { display: none; }
/* Terry msg 3141: bottom centre, where the tick bar (Approve / Reject…) sits; with the tick bar open too, it rides just above it */
body:has([data-bulkbar]:not([hidden])) .v8s-fdprog { bottom: 84px; }
@media (max-width: 767px) {
  .v8s-fdprog { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 32px); justify-content: center; text-align: center; white-space: normal; }
  body:has([data-bulkbar]:not([hidden])) .v8s-fdprog { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
}
.v8s-fddone { position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%); z-index: 90; width: min(24rem, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 14px 16px 18px; background: rgb(var(--v3-surface)); border: 1px solid rgb(var(--v3-line-2)); box-shadow: 0 18px 48px rgb(0 0 0 / .22); }
.v8s-fddone[data-tone="ok"] { border-color: rgb(var(--v3-pos) / .45); }
.v8s-fddone[data-tone="warn"] { border-color: rgb(var(--v3-warn) / .55); }
.v8s-fddone-i { font-size: 22px; line-height: 26px; }
.v8s-fddone-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v8s-fddone-b b { font-size: 16px; font-weight: 650; color: rgb(var(--v3-fg)); }
.v8s-fddone-b span { font-size: 13px; line-height: 19px; color: rgb(var(--v3-fg-2)); }
.v8s-fddone-b span[hidden] { display: none; }
tr.v8s-fdbad [data-audit-text], tr.v8s-fdbad .text-fg-3 { color: rgb(var(--v3-neg)); }
/* Terry msg 3238: the one pill for a person's own presses, on every page (progress.js); the Samples page's own bar and pop-up give way to it */
.tw-gp { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 86; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  max-width: calc(100vw - 32px); padding: 4px 6px 4px 4px; border-radius: 14px; color: rgb(var(--v4-ink-fg)); background: rgb(var(--v4-ink));
  box-shadow: 0 0 0 1px rgb(var(--v4-ink-line)), 0 12px 32px rgb(0 0 0 / .28); }
.tw-gp[hidden] { display: none; }
.tw-gp-see { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.tw-gp-see[hidden] { display: none; }
.tw-gp-main { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 11px; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: inherit; background: transparent; text-align: left; cursor: default; }
.tw-gp[data-mode="done"] .tw-gp-main { cursor: pointer; }
.tw-gp-spin { border-color: rgb(var(--v4-ink-fg) / .3); border-top-color: rgb(var(--v4-ink-fg)); }
.tw-gp-ok, .tw-gp-x { display: none; }
.tw-gp[data-mode="done"] .tw-gp-spin { display: none; }
/* done: a solid green (all went, or only "not needed") or amber (some refused) fill with white words, the same in light, dark and navy
   (white on #15803d and on #b45309 both clear 4.5:1) */
.tw-gp[data-mode="done"][data-tone="ok"] .tw-gp-ok { display: inline; color: #fff; font-weight: 800; }
.tw-gp[data-mode="done"][data-tone="ok"] { background: #15803d; color: #fff; box-shadow: 0 0 0 2px rgb(134 239 172 / .55), 0 12px 32px rgb(0 0 0 / .32); }
.tw-gp[data-mode="done"][data-tone="warn"] { background: #b45309; color: #fff; box-shadow: 0 0 0 2px rgb(253 230 138 / .6), 0 12px 32px rgb(0 0 0 / .32); }
.tw-gp[data-mode="done"] .tw-gp-main, .tw-gp[data-mode="done"] .tw-gp-x { color: #fff; }
.tw-gp[data-mode="done"] .tw-gp-x { background: rgb(255 255 255 / .18); }
.tw-gp.is-open .tw-gp-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; font-size: 18px; color: inherit; background: rgb(var(--v4-ink-fg) / .1); }
.tw-gp-list { display: none; width: 100%; margin: 2px 6px 6px; padding: 0 0 0 18px; list-style: disc; font-size: 12.5px; line-height: 18px; max-height: 40vh; overflow: auto; }
.tw-gp.is-open .tw-gp-list { display: block; }
.tw-gp-list b { font-weight: 650; }
body:has([data-bulkbar]:not([hidden])) .tw-gp { bottom: 84px; }
@media (max-width: 767px) {
  .tw-gp { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 32px); justify-content: center; }
  .tw-gp-main { justify-content: center; text-align: center; white-space: normal; }
  body:has([data-bulkbar]:not([hidden])) .tw-gp { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
}
/* Terry 23 Nov (computer and phone sweep): while the "N not done" pill shows, nothing pinned to the bottom may sit under it, and the end of any page can scroll up clear of it.
   --tw-gp-h is the pill's height (progress.js). The page's bottom padding grows by the pill (computer: it sits 20px up; phone: 76px up, above the 56px tab bar), the wizard
   and builder bars that stick to the window bottom stand above it, and nothing changes while the pill is not showing. */
body.tw-gp-on #content { padding-bottom: calc(var(--tw-gp-h, 48px) + 36px); }
body.tw-gp-on .aw-foot, body.tw-gp-on .ew-nav { bottom: calc(var(--tw-gp-h, 48px) + 28px); }
body.tw-gp-on .toast { bottom: calc(var(--tw-gp-h, 48px) + 28px); }   /* a message never hides under the pill */
body.tw-gp-on:has(.bulkbar:not([hidden])) .toast { bottom: calc(var(--tw-gp-h, 48px) + 96px); }
body.tw-gp-on:has([data-bulkbar]:not([hidden])) #content { padding-bottom: calc(var(--tw-gp-h, 48px) + 100px); }   /* a selection bar is up too: the pill stands above it */
@media (max-width: 767px) {
  body.tw-gp-on #content { padding-bottom: calc(var(--tw-gp-h, 48px) + 92px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on .aw-foot { bottom: calc(var(--tw-gp-h, 48px) + 84px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on .ew-nav { bottom: calc(var(--tw-gp-h, 48px) + 84px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on:has([data-bulkbar]:not([hidden])) #content { padding-bottom: calc(var(--tw-gp-h, 48px) + 192px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on .toast { bottom: calc(var(--tw-gp-h, 48px) + 84px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on:has(.bulkbar:not([hidden])) .toast { bottom: calc(var(--tw-gp-h, 48px) + 188px + env(safe-area-inset-bottom, 0px)); }
  body.tw-gp-on .cc-savebox { bottom: calc(var(--tw-gp-h, 48px) + 84px + env(safe-area-inset-bottom, 0px)); }
}
/* the Samples page's own bar and pop-up: the global pill says the same thing on every page now */
body:has(#tw-gp) .v8s-fdprog, body:has(#tw-gp) .v8s-fddone { display: none !important; }
/* Approve is green everywhere on Sample requests (Terry, 11 Nov 2026: "Green approve"): Approve filled green with white text, Reject a red
   outline, Cancel plain. Its own token so white text keeps AA contrast on every theme (the meaning green --v3-pos is too light for white text
   in Dark and Navy). No fades: hover only brightens, focus gets a green ring; disabled is a muted green that stays readable. */
:root { --v3-approve: 21 128 77; }
html[data-theme=light] { --v3-approve: 16 122 70; }
.btn.btn-approve { color: #fff; background: rgb(var(--v3-approve)); border-color: rgb(var(--v3-approve)); font-weight: 600; }
.btn.btn-approve svg { color: #fff; }
.btn.btn-approve:hover:not(:disabled) { color: #fff; background: rgb(var(--v3-approve)); filter: brightness(1.12); }
.btn.btn-approve:focus-visible { outline: 2px solid rgb(var(--v3-approve)); outline-offset: 2px; }
.btn.btn-approve:disabled, .v8s-fdc-f .btn.btn-approve:disabled { opacity: 1; color: rgb(255 255 255 / .82); background: rgb(var(--v3-approve) / .5); border-color: transparent; cursor: not-allowed; filter: none; }
/* the table's quiet-button rule (.tbl td.pin .btn-sm:not(.btn-primary) … : transparent) would clear the green in rows: same weight, later sheet */
.tbl td.pin .btn-sm.btn-approve:not(.btn-soft):not(.btn-ghost), .tbl tbody tr:hover td.pin .btn-sm.btn-approve:not(.btn-soft):not(.btn-ghost),
.tbl tr.kfocus td.pin .btn-sm.btn-approve:not(.btn-soft):not(.btn-ghost) { color: #fff; background: rgb(var(--v3-approve)); border-color: rgb(var(--v3-approve)); }
.tbl td.pin .btn-sm.btn-approve:not(.btn-soft):not(.btn-ghost):hover:not(:disabled) { background: rgb(var(--v3-approve)); filter: brightness(1.12); }
.tbl td.pin .btn-sm.btn-approve:not(.btn-soft):not(.btn-ghost):disabled { color: rgb(255 255 255 / .82); background: rgb(var(--v3-approve) / .5); border-color: transparent; filter: none; }
.v8s-fdc-f .btn-danger { color: #fff; background: rgb(var(--v3-neg)); border-color: rgb(var(--v3-neg)); }
.v8s-fdc-f .btn-danger:hover:not(:disabled) { background: rgb(var(--v3-neg) / .88); }
.v8s-fdc-f .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 767px) { .v8s-fdc { align-items: flex-end; padding: 0; } .v8s-fdc-card { width: 100%; border-radius: 14px 14px 0 0; max-height: 70vh; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); } .v8s-fdc-f > .btn { flex: 1; justify-content: center; } }
/* Practice run 13 Nov: a refused try is one small warning icon beside Approve / Reject (its words in the tip; the reason line under the row says
   it in full). The old "Last try: TikTok said no" pill pushed the buttons past the column's edge. */
.ds-lasttry { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 999px; color: var(--bad, #c0262d); background: color-mix(in srgb, var(--bad, #c0262d) 12%, transparent); cursor: help; }
.ds-lasttry:focus-visible { outline: 2px solid var(--bad, #c0262d); outline-offset: 1px; }
/* on a computer the icon takes no width at all: it sits in the gap just left of the Action cell, so Approve, Reject and the row's › all still fit.
   It's placed against the cell (a pinned cell is already positioned; any other cell is made so), never against the buttons' own box. */
@media (min-width: 768px) {
  td:not(.pin):has(> .ds-decide > .ds-lasttry) { position: relative; }
  td:has(> .ds-decide > .ds-lasttry) > .ds-decide > .ds-lasttry { position: absolute; left: -24px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; }
}
/* the confirm's action while it asks the server again: "Checking…" with a small spinner, not a silent greyed button */
.v8s-fdc-f .btn.is-checking { opacity: .8; cursor: progress; gap: 6px; }
.v8s-fdc-f .btn.is-checking::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: fd-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .v8s-fdc-f .btn.is-checking::before { animation: none; } }
/* Terry msg 1817: Approve and Reject show at once on every request waiting for review (they used to appear only on hover), in the row and in a creator's drop-down */
.ds-reqtbl td.pin > .ds-decide { position: static; visibility: visible; opacity: 1; transform: none; translate: none; -webkit-mask-image: none; mask-image: none; padding: 0; background: none; transition: none; gap: 6px; }
/* with Approve and Reject always showing, a creator's drop-down still fits its card on a laptop (1280–1599): long product names take two lines */
@media (min-width: 768px) and (max-width: 1599px) {
  .v8s-stitle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 18rem; }
  .v8s-sl1 { flex-wrap: wrap; row-gap: 2px; }
}
/* the stored list's Action column: Approve, Reject and Detail (no Ignore here) */
#samples-form[data-fdec-on] .ds-reqtbl th[data-c=act] { width: 216px; }
/* All / All approved on a laptop: with the Status column and Approve / Reject showing, a creator row keeps its 'N requests' and drops the pictures */
@media (min-width: 768px) and (max-width: 1439px) { #samples-form[data-fdec-on] .ds-reqtbl[data-merged] .v8s-gpics { display: none; } }
/* Terry msg 1842 (Sample requests: "column names being hidden"): the table is fixed-layout, so a heading is as wide as its column's set width; these
   fit each heading with its sort arrow at every width (1280–1920), never clipped or over its neighbour. By creator's last column is "Requests"
   (the count chip, and a red "N overdue" before it), so it needs far less than Approve / Reject did; the Products column takes the rest. */
.ds-reqtbl.v8s-tbl th[data-c=followers] { width: 96px; }
.ds-reqtbl.v8s-tbl th[data-c=shop_gmv] { width: 104px; }
.ds-reqtbl.v8s-tbl th[data-c=seen] { width: 104px; }
.ds-reqtbl.v8s-tbl th[data-c=commission] { width: 108px; }
.ds-reqtbl.v8s-tbl th[data-c=stock] { width: 72px; }
.ds-reqtbl.v8s-tbl th[data-c=expires] { width: 108px; }
.ds-reqtbl.v8s-tbl th[data-c=fulfilment] { width: 104px; }
@media (min-width: 768px) and (max-width: 1439px) {
  .v8s-gpics > .v5-pg + .v5-pg { display: none; }   /* a laptop keeps one picture, so the product's name and "+N more" fit */
}
.v8s-greq { flex-wrap: wrap; row-gap: 4px; }
.v8s-gname { flex: 0 1 auto; }
@media (min-width: 1440px) { .ds-reqtbl.v8s-tbl[data-grouped] th[data-c=creator] { width: 232px; } }
.ds-reqtbl.v8s-tbl td.num, .v8s-subtbl td.num { font-variant-numeric: tabular-nums; }
.ds-reqtbl.v8s-tbl[data-grouped] td.pin { text-align: right; }
/* By creator: Stock, Ship by and Tracking are each request's own, so they live in the drop-down (In stock, Ship by, Tracking); on the creator row
   they were only dashes that squeezed Products to ~56px (In shipment at 1440) */
.ds-reqtbl.v8s-tbl[data-grouped] :is(th[data-c=stock], th[data-c=shipby], th[data-c=tracking]),
.ds-reqtbl.v8s-tbl[data-grouped] tr.v8s-grow > :is(td[data-l="Stock"], td[data-l="Ship by"], td[data-l="Tracking"]) { display: none; }

/* Terry msg 1854: products and requests are one thing, so By creator has no Products column; the Requests cell shows each distinct product's
   picture (up to 3, overlapped, then "+N"), clear but not overboard, then the red "N overdue" and the "N requests" chip. The Requests column
   takes the width Products had (no set width, so the fixed-layout table gives it the rest). A picture whose link fails is hidden by
   img-fallback.js and the product's initial underneath shows. */
.v8s-rpics { display: inline-flex; align-items: center; flex-shrink: 0; }
.v8s-rpic.v5-pg { position: relative; width: 34px; height: 34px; border-radius: 8px; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.v8s-rpic.v5-pg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: rgb(var(--v3-surface)); }
.v8s-rpic + .v8s-rpic { margin-left: -10px; box-shadow: 0 0 0 2px rgb(var(--v3-surface)); }
.v8s-tbl tr.v8s-grow:hover .v8s-rpic + .v8s-rpic { box-shadow: 0 0 0 2px rgb(var(--v3-surface-2, var(--v3-surface))); }
.v8s-rmore { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-fg) / .07); font-variant-numeric: tabular-nums; }
/* Terry msg 3186: the picture never moves. The Requests cell holds the first-asked product's picture in one fixed-size slot at the cell's start,
   the same spot on every row; "+N" is a small badge on the picture's bottom-right corner (it takes no room), ringed in the row's own colour so it
   reads in light, dark and navy; the overdue chip and the "N requests" button keep their places after the slot. */
.v8s-greq > .v8s-rpics { position: relative; width: 34px; height: 34px; flex: none; }
.v8s-greq > .v8s-rpics > .v8s-rpic + .v8s-rpic { display: none; }
.v8s-greq > .v8s-rpics > .v8s-rmore { position: absolute; right: -7px; bottom: -6px; z-index: 1; min-width: 18px; height: 16px; margin: 0; padding: 0 4px;
  font-size: 10px; font-weight: 700; line-height: 1; color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface));
  box-shadow: 0 0 0 2px rgb(var(--v3-surface)), inset 0 0 0 1px rgb(var(--v3-fg) / .2); pointer-events: none; }
.v8s-tbl tr.v8s-grow:hover .v8s-greq > .v8s-rpics > .v8s-rmore { background: rgb(var(--v3-surface-2, var(--v3-surface)));
  box-shadow: 0 0 0 2px rgb(var(--v3-surface-2, var(--v3-surface))), inset 0 0 0 1px rgb(var(--v3-fg) / .2); }
.ds-reqtbl.v8s-tbl[data-grouped] tr.v8s-grow > td.pin .v8s-greq { display: flex; width: 100%; flex-wrap: nowrap; gap: 8px; }
.ds-reqtbl.v8s-tbl[data-grouped] tr.v8s-grow > td.pin .v8s-rpics { margin-right: auto; }
@media (min-width: 768px) {
  .ds-reqtbl.v8s-tbl[data-grouped] tr.v8s-grow > td.pin { text-align: left; } .ds-reqtbl.v8s-tbl[data-grouped] th[data-c=act] { text-align: left; }
  .v8s-tbl tr.v8s-grow > td.pin .v8s-greq { display: flex; width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
  .v8s-tbl tr.v8s-grow > td.pin .v8s-greq > .v8s-rpics { margin-right: auto; }
}
@media (max-width: 767px) {
  .v8s-tbl tr.v8s-grow > td.pin .v8s-rpics { margin-right: 0; }
  .v8s-rpic.v5-pg { width: 36px; height: 36px; }
  .v8s-greq > .v8s-rpics { width: 36px; height: 36px; }
}

/* ---- Sample requests' Columns button (Terry msgs 1866-1868): pick which columns show and drag them into order; Affiliate and Requests are fixed.
   On a phone the panel is a sheet from the bottom. The table follows the choice: past what fits, it scrolls sideways inside its card with the
   Affiliate column held in place, never the page. A feed shop's creator-wide figures show "…" while TikTok's record is being read. */
.colp { position: relative; flex: none; display: inline-flex; }
.colp-btn { gap: 6px; }
.colp.is-open .colp-btn { background: rgb(var(--v3-accent) / .14); border-color: rgb(var(--v3-accent) / .5); }
.colp-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 288px; display: flex; flex-direction: column; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; background: rgb(var(--v3-raised)); box-shadow: 0 10px 28px rgb(0 0 0 / .22); }
.colp-pop[hidden] { display: none; }
.colp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.colp-title { font-weight: 600; font-size: 14px; }
.colp-count { margin-left: auto; font-size: 12px; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; }
.colp-x { display: none; color: rgb(var(--v3-fg-3)); }
.colp-list { list-style: none; margin: 0; padding: 0 6px; max-height: min(60vh, 420px); overflow-y: auto; }
.colp-list > li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; border-radius: 8px; font-size: 13px; }
.colp-lock { color: rgb(var(--v3-fg-3)); }
.colp-item:not(.is-soon):hover { background: rgb(var(--v3-fg) / .05); }
.colp-item.is-drag { opacity: .55; background: rgb(var(--v3-accent) / .1); }
.colp-item.is-soon { color: rgb(var(--v3-fg-3)); }
.colp-grip { color: rgb(var(--v3-fg-3)); cursor: grab; display: inline-flex; }
.colp-item.is-soon .colp-grip { visibility: hidden; }
.colp-lab { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.colp-lab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colp-item.is-soon .colp-lab { cursor: default; }
.colp-info { color: rgb(var(--v3-fg-3)); display: inline-flex; }
.colp-mv { display: inline-flex; gap: 0; }
.colp-mv button { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; color: rgb(var(--v3-fg-3)); }
.colp-mv button:hover, .colp-mv button:focus-visible { background: rgb(var(--v3-fg) / .08); color: rgb(var(--v3-fg)); }
.colp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; margin-top: 6px; border-top: 1px solid rgb(var(--v3-line)); }
.colp-reset { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.colp-save { font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); }
.colp-reset:hover, .colp-save:hover { color: rgb(var(--v3-accent)); }
@media (max-width: 767px) {
  .colp-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .colp-x { display: inline-flex; }
  .colp-list { max-height: 55vh; }
  .colp-list > li { min-height: 44px; }
  .colp-mv button { width: 32px; height: 32px; }
}
.v8s-mkwait { color: rgb(var(--v3-fg-3)); letter-spacing: .1em; }
.ds-reqtbl.v8s-tbl :is(th, td) { min-width: 0; }
.ds-reqtbl.v8s-tbl th[data-c=gmv] { width: 112px; }
.ds-reqtbl.v8s-tbl th[data-c=live] { width: 136px; }
.ds-reqtbl.v8s-tbl th[data-c=avgviews] { width: 104px; }
.ds-reqtbl.v8s-tbl th[data-c=eng] { width: 124px; }
.ds-reqtbl.v8s-tbl th[data-c=gmvpv] { width: 128px; }
.ds-reqtbl.v8s-tbl th[data-c=gpm] { width: 92px; }
.ds-reqtbl.v8s-tbl th[data-c=posts], .ds-reqtbl.v8s-tbl th[data-c=views] { width: 100px; }
.ds-reqtbl.v8s-tbl th[data-c=shipby] { width: 116px; }
.ds-reqtbl.v8s-tbl th[data-c=src] { width: 96px; }
@media (min-width: 768px) {
  /* many columns on: the table keeps each column's width and scrolls inside its card; Affiliate stays put while it does */
  [data-live-region=sreq-table] > .tbl-wrap { overflow-x: auto; }
  .ds-reqtbl.v8s-tbl[data-cpw] { min-width: var(--cp-min); }
  .ds-reqtbl.v8s-tbl[data-cpw] > thead > tr > th[data-c=creator], .ds-reqtbl.v8s-tbl[data-cpw] > tbody > tr:not(.v8s-gsub) > td.primary { position: sticky; left: var(--cp-selw, 0px); z-index: 2; background: rgb(var(--v3-surface)); }
  .ds-reqtbl.v8s-tbl[data-cpw] > thead > tr > th[data-c=sel], .ds-reqtbl.v8s-tbl[data-cpw] > tbody > tr:not(.v8s-gsub) > td:first-child:not(.primary):has(> input.check) { position: sticky; left: 0; z-index: 2; background: rgb(var(--v3-surface)); }
}

/* Sample requests (Terry): on every tab with these tables the Affiliate column stays in view while the table scrolls sideways (the Requests / Actions
   column on the right already did), and the columns between them wear a faint tint so the two edges stand out. The tint is a gradient laid over
   the cell, so a row's hover colour still shows through; it is tuned per theme (--st-tint). */
html { --st-tint: 17 24 39 / .035; }
html[data-theme=dark] { --st-tint: 255 255 255 / .035; }
html[data-theme=navy] { --st-tint: 190 180 255 / .05; }
@media (min-width: 768px) {
  :is(.ds-reqtbl.v8s-tbl, .st-tbl) > thead > tr > :is(th[data-c=creator], th.sr-affth), :is(.ds-reqtbl.v8s-tbl, .st-tbl) > tbody > tr:not(.v8s-gsub) > td.primary:first-child,
  .ds-reqtbl.v8s-tbl > tbody > tr:not(.v8s-gsub) > td.primary { position: sticky; left: var(--cp-selw, 0px); z-index: 2; background-color: rgb(var(--v3-surface)); box-shadow: 8px 0 12px -10px rgba(0, 0, 0, .35); }
  :is(.ds-reqtbl.v8s-tbl, .st-tbl) > tbody > tr:hover > td.primary { background-color: rgb(var(--v3-surface-2)); }
  .ds-reqtbl.v8s-tbl > thead > tr > th[data-c=sel], .ds-reqtbl.v8s-tbl > tbody > tr:not(.v8s-gsub) > td:first-child:not(.primary):has(> input.check) { position: sticky; left: 0; z-index: 2; background-color: rgb(var(--v3-surface)); }
  :is(.ds-reqtbl.v8s-tbl, .st-tbl) > thead > tr > th:not(.sr-affth):not([data-c=creator]):not([data-c=sel]):not(.pin):not([data-c=act]):not(:last-child),
  :is(.ds-reqtbl.v8s-tbl, .st-tbl) > tbody > tr:not(.v8s-gsub) > td:not(.primary):not(.pin):not([colspan]):not(:last-child):not(:has(> input.check)) { background-image: linear-gradient(rgb(var(--st-tint)), rgb(var(--st-tint))); }
}

/* UI audit (Terry msg 1928): on a phone the Dashboard's tools (All dashboards, Share, the pen, ⋯) squeezed the tabs into ~180px ("Analytics
   Products C…"). Below 640px the tools sit on their own line at the right, and the tabs get the full width under them. */
@media (max-width: 639px) {
  .dt-row { flex-wrap: wrap; row-gap: 0; }
  .dt-row > .dt-tools { order: -1; flex: 1 0 100%; justify-content: flex-end; padding-bottom: 0; }
  .dt-row > .dt-tabs { flex: 1 0 100%; }
}

/* UI audit (Terry msg 1928): the ⋯ menus on Contracts and Ready again (details.ds-menu > .ds-pop of .ds-mi items) had no style at all, so
   opening one dropped a bare list of links into the table cell and pushed the row open. They're drop-down cards now, like every other ⋯ menu. */
details.ds-menu { position: relative; }
details.ds-menu > .ds-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; min-width: 12rem; padding: 4px; text-align: left;
  background: rgb(var(--v3-raised, var(--v3-surface))); border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; box-shadow: 0 10px 28px rgb(0 0 0 / .22); }
.ds-pop .ds-mi, .ds-pop form > .ds-mi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: rgb(var(--v3-fg)); text-align: left; white-space: nowrap; }
.ds-pop .ds-mi:hover, .ds-pop .ds-mi:focus-visible { background: rgb(var(--v3-fg) / .06); }
/* on a phone those menus, and the Performance Trackers month menu, open as the same bottom sheet as the app's other pop-ups (they ran off the
   right edge and under the page at 390px) */
@media (max-width: 767px) {
  details > .ds-pop, details.ds-menu > .ds-pop, details > .pt-menu { position: fixed; left: 0 !important; right: 0 !important; bottom: 0; top: auto; width: auto !important; min-width: 0; max-width: none !important;
    max-height: 82vh; overflow-y: auto; z-index: 46; margin: 0; border-radius: 16px 16px 0 0; border-bottom-width: 0; padding: 22px 8px calc(16px + env(safe-area-inset-bottom)); }
  details[open]:has(> .ds-pop)::after, details[open]:has(> .pt-menu)::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / .45); }
  html[data-theme="light"] details[open]:has(> .ds-pop)::after, html[data-theme="light"] details[open]:has(> .pt-menu)::after { background: rgb(24 24 27 / .2); }
  .ds-pop .ds-mi { min-height: 44px; font-size: 15px; }
}

/* A row's ⋯ menu (or any pop-up) opened from a table cell sits above every other row (Terry msg 1930). Pinned and sticky cells (the Actions
   column, a held Affiliate column) each make their own layer, so a menu inside one painted under the next rows' pinned cells: their ▶ and ⋯
   showed on top of Edit / Duplicate / View details / Archive. The cell holding an open menu is lifted above the rest while it's open. */
:is(td, th):has(details[open]), :is(td, th):has([aria-haspopup][aria-expanded="true"]) { z-index: 45 !important; }
:is(td, th):has(:popover-open) { z-index: 45 !important; }   /* its own rule: a browser without :popover-open drops only this line */

/* Outreach › Automations bulk bar (Terry msgs 2060, 2062): impossible to miss once a row is ticked. Real buttons (icon + word, an outline you can
   see on the ink bar in every theme), never faint text; the page pads for the bar so it never covers the last row or the pager. */
/* The same solid bar for My affiliates' and Email campaigns' tick actions (.bb-solid: they used to sit as a faint strip inside the card) */
:is(.au-bulkbar, .bb-solid) .btn { color: #fff; box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .24); gap: 6px; padding: 0 12px; }
:is(.au-bulkbar, .bb-solid) .btn-primary { background: rgb(var(--v3-primary)); box-shadow: none; }
:is(.au-bulkbar, .bb-solid) .btn:hover:not(:disabled) { background: hsla(0, 0%, 100%, .12); box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .4); }
:is(.au-bulkbar, .bb-solid) .btn-primary:hover:not(:disabled) { background: rgb(var(--v3-primary)); filter: brightness(1.08); }
:is(.au-bulkbar, .bb-solid) .btn:disabled { opacity: .42; cursor: not-allowed; }
.au-bulkbar .btn[data-au-op=clear] { box-shadow: none; padding: 0 8px; }
.au-bulkbar .au-bn, .bb-solid > span:first-of-type { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 0 2px; font-size: 13px; color: #fff; white-space: nowrap; font-weight: 600; }
.bb-solid { border-top: 0; padding: 6px 8px; font-size: 13px; }
.au-bulkbar[aria-busy=true] { opacity: .85; }
html.au-bulk-on [data-au-table], section.card:has(.bb-solid:not([hidden])) { margin-bottom: 84px; }
@media (max-width: 767px) {
  html.au-bulk-on [data-au-table], section.card:has(.bb-solid:not([hidden])) { margin-bottom: 170px; }
  :is(.au-bulkbar, .bb-solid) .btn { flex: 1 1 calc(50% - 3px); height: 40px; justify-content: center; }
  .au-bulkbar .btn { order: 2; }
  .au-bulkbar .btn[data-au-op=clear] { flex: 0 0 auto; order: 1; }   /* the × sits on the count's row, not alone on a line */
  .au-bulkbar .au-bn { flex: 1 1 calc(100% - 60px); order: 0; }
}
/* Terry msg 2064: New Automation sits just left of "Show archived campaigns", one group at the bar's right end; on a phone it's one tidy row */
.au-bar-end { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.au-bar-end .go-switch { margin-left: 0; white-space: nowrap; }
@media (max-width: 639px) { .au-bar-end { margin-left: 0; width: 100%; justify-content: space-between; } }
/* the bulk bar's confirm (Terry msg 2087): the shared aw-leave dialog (solid card, dimmed backdrop); never .card + .au-confirm, whose
   in-page tint (rgb(accent / .04)) made it see-through. On a phone it's a bottom sheet. */
.au-dlg { white-space: pre-line; box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
@media (max-width: 480px) { .au-dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }
/* Sample requests' bulk bar (Terry msg 2219, Cruva's bar): each decision carries its count, "Approve (N)"; a button with nothing to act on is off
   (its tip says why); "Clear selection" is words on a wide screen and just the x on a phone */
.bulkbar .bb-n { font-variant-numeric: tabular-nums; opacity: .85; margin-left: 1px; }
.bulkbar .btn:disabled { opacity: .42; cursor: not-allowed; }
.bulkbar .bb-clear { gap: 6px; }
.bulkbar > .btn { flex-shrink: 0; }
@media (max-width: 767px) { .bulkbar .bb-clear-l { display: none; } }
@media (min-width: 768px) { .bulkbar .btn.bb-clear[data-bulk="clear"], .bulkbar .btn.bb-clear[data-cf-clear] { width: auto; padding: 0 10px; } .bulkbar .bb-clear .bb-clear-x { display: none; } }
/* CRM tables (Terry msg 2245): My affiliates' bar says "8 creators selected · 5 on other pages", the label buttons carry their count */
.cf-bulk .cf-seltext { display: inline-flex; align-items: center; flex-wrap: wrap; white-space: nowrap; }
@media (max-width: 767px) { .cf-bulk .cf-seltext .bb-away:not([hidden]) { display: block; flex-basis: 100%; font-size: 12px; }
  .cf-bulk .cf-seltext { flex: 1 1 calc(100% - 60px); order: 0; white-space: normal; } .cf-bulk > :not(.cf-seltext):not([data-cf-clear]) { order: 2; }
  .cf-bulk .btn[data-cf-clear] { flex: 0 0 40px; order: 1; }   /* the × sits on the count's row, not alone on a line */ }
.bulkbar .bb-away { opacity: .72; white-space: nowrap; }   /* Terry msg 2234: "· 11 on other pages" */
@media (max-width: 767px) { .bulkbar > span[data-sel-text]:first-child { flex-wrap: wrap; height: auto; min-height: 32px; } .bulkbar .bb-away:not([hidden]) { display: block; flex-basis: 100%; font-size: 12px; } }   /* a phone: its own line under the count */
/* Sample requests' History pop-out (Terry msg 2225): Cruva's one form, label over field, Clear · Cancel · Apply, a quiet "save as default" under */
.hq-card { width: min(20rem, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.hq-t { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg)); }
.hq-would { margin: -2px 0 0; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.hq-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: rgb(var(--v3-fg-2)); }
.hq-f .input, .v8s-one .hq-card .hq-f select.input { width: 100%; min-width: 0; max-width: none; }
/* its chip keeps the filter row on one line (Terry msg 1842): "Any history" in the usual width; set, it grows a little for "≤ 0 samples · 30d"
   and Expiring drops its "soon" to make the room; on a laptop the chip's clock goes */
/* Terry msg 4944: History is a plain dropdown like the others; Custom… opens the form under it */
.hq-pick { position: relative; display: inline-flex; }
/* as wide as the choice it shows, so the filter row stays one line at 1440 (a browser without field-sizing: a fixed width, a long label trimmed) */
.v8s-one .hq-pick > select.input[data-hist-pick] { width: 7.5rem; min-width: 0; max-width: 10.5rem; height: 32px; padding: 0 24px 0 8px; text-overflow: ellipsis; }
@supports (field-sizing: content) { .v8s-one .hq-pick > select.input[data-hist-pick] { width: auto; field-sizing: content; } }
.hq-pick > [data-hist-pop] { position: absolute; left: 0; top: 100%; width: 0; height: 0; }
/* a History choice set (it reads longer): Expiring gives up "soon" and its clock, as on a laptop */
.v8s-one:has([data-hist-pick].is-set) .v8s-xsoon, .v8s-one:has([data-hist-pick].is-set) > .v8s-check > svg { display: none; }
@media (min-width: 768px) and (max-width: 1439px) { .v8s-one .hq-pick > select.input[data-hist-pick] { max-width: 7rem; } }   /* a laptop: trimmed like the other filters, full name on hover */
.hq-opt { font-weight: 400; color: rgb(var(--v3-fg-3)); }
.hq-row { display: flex; align-items: center; gap: 8px; }
.hq-row select.input { flex: 1 1 auto; width: auto; min-width: 0; }
.hq-row input.input { flex: 0 0 5rem; width: 5rem; }
.hq-u { font-weight: 400; color: rgb(var(--v3-fg-3)); }
.hq-foot { display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.hq-save { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 12px; color: rgb(var(--v3-fg-3)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hq-save:hover { color: rgb(var(--v3-fg)); }
/* Sample requests: a request's details open in place, over the list (Terry msg 2260: "it just pops out like our creator side panel"). It slides in from
   the right on a desktop and up from the bottom on a phone, as the creator panel does; next/previous swaps it without sliding again; the page under it
   keeps its place and doesn't scroll while it's open; while the next one loads the old one dims, so nothing blinks to white. */
html.pane-lock { overflow: hidden; }
[data-inplace] .pane { animation: pane-in .22s ease-out; }
[data-inplace] .scrim { animation: pane-fade .18s ease-out; }
[data-inplace].pane-still .pane, [data-inplace].pane-still .scrim { animation: none; }
[data-inplace].is-loading .pane-b { opacity: .55; transition: opacity .15s; pointer-events: none; }
[data-pane-shell] .pane-h .btn-icon { font-size: 16px; line-height: 1; }
@keyframes pane-in { from { transform: translateX(28px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes pane-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  [data-inplace] .pane { animation-name: pane-up; }
}
@keyframes pane-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-inplace] .pane, [data-inplace] .scrim { animation: none; } }

/* Settings › Activity log (Terry msg 2331): the filter row, result chips, the detail pane's list and the small "by Name" lines across the app */
.act-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 20px 10px; border-top: 1px solid rgb(var(--v3-line)); background: rgb(var(--v5-tint)); }
.act-filters { display: contents; }
.act-filters .select { max-width: 13rem; }
.act-q { width: 15rem; max-width: 100%; }
.act-row { cursor: pointer; }
.act-row:focus-visible { outline: 2px solid rgb(var(--v3-primary)); outline-offset: -2px; }
.act-what { font-weight: 500; }
.act-target, .act-change { display: block; }
.act-change { font-variant-numeric: tabular-nums; }
.act-who { font-weight: 500; }
.act-who:hover { text-decoration: underline; }
.act-res { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: rgb(var(--v3-line) / .6); color: rgb(var(--v3-fg-2)); }
.act-res.is-done { background: rgb(var(--v3-pos) / .14); color: rgb(var(--v3-pos)); }
.act-res.is-pressed { background: rgb(var(--v3-warn) / .16); color: rgb(var(--v3-warn)); }
.act-res.is-refused, .act-res.is-failed { background: rgb(var(--v3-neg) / .12); color: rgb(var(--v3-neg)); }
.act-dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px 12px; font-size: 13px; margin: 0 0 16px; }
.act-dl dt { color: rgb(var(--v3-fg-3)); }
.act-dl dd { margin: 0; min-width: 0; }
.act-wrap { overflow-wrap: anywhere; }
.act-undo { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; padding: 12px; }
.act-foot .btn-sm { min-width: 2rem; }
.act-per { display: inline-flex; align-items: center; gap: 4px; }
.act-by { display: block; font-size: 11px; line-height: 1.35; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.act-by a { color: rgb(var(--v3-fg-2)); text-decoration: underline; text-decoration-color: rgb(var(--v3-line)); text-underline-offset: 2px; }
.act-by a:hover { color: rgb(var(--v3-fg)); text-decoration-color: currentColor; }
.v8s-by { display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.act-bar .rp-button { background: rgb(var(--v3-surface)); }
@media (max-width: 640px) {
  .act-bar { padding: 8px 12px 10px; }
  .act-filters .select, .act-q { flex: 1 1 45%; max-width: none; }
  .act-dl { grid-template-columns: 6rem 1fr; }
}
/* ---- Staff › Creator accounts (Terry msg 2325, staff_creators.html): the overview strip, the list, a creator's side panel and the audit trail */
.sc-root { display: grid; gap: 14px; }
.sc-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgb(var(--v3-fg-2)); border: 1px solid rgb(var(--v3-line)); background: rgb(var(--v3-surface)); }
.sc-tab.is-on { color: rgb(var(--v3-fg)); border-color: rgb(var(--v3-fg)); }
.sc-staff { margin-left: auto; font-size: 12px; color: rgb(var(--v3-fg-3)); display: inline-flex; align-items: center; }
.sc-over { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .sc-over { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-ov { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); }
.sc-ov:hover { background: rgb(var(--v3-hover)); }
.sc-ov.is-on { border-color: rgb(var(--v3-fg)); box-shadow: inset 0 0 0 1px rgb(var(--v3-fg)); }
.sc-ov-l { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.sc-ov-n { font-size: 20px; font-weight: 700; color: rgb(var(--v3-fg)); }
.sc-ov.is-alert .sc-ov-n { color: rgb(var(--v3-neg)); }
.sc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.sc-bulk-f { display: inline-flex; align-items: center; gap: 6px; } .sc-bulk-f .input { width: 14rem; max-width: 40vw; }   /* the bulk bar's Re-check affiliate with its reason (sweep 13 Nov) */
@media (max-width: 767px) { .sc-bulk-f { display: flex; flex: 1 1 100%; min-width: 0; } .sc-bulk-f .input { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; } .sc-bulk-f .btn { flex: 0 0 auto !important; } }
.sc-search { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 260px; max-width: 360px; }
.sc-search .input { width: 100%; }
.sc-sel { display: inline-flex; align-items: center; gap: 6px; }
.sc-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 240px; }
.sc-who:hover b { text-decoration: underline; }
[data-sc-table] tr[data-sc-row] { cursor: pointer; }   /* the whole row opens the creator (sweep 3) */
.sc-hs { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-mask { font-variant-numeric: tabular-nums; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.sc-test { margin-left: 6px; font-size: 11px; }
.sc-st { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.sc-st-suspended { background: color-mix(in srgb, rgb(var(--v3-neg)) 12%, transparent); color: rgb(var(--v3-neg)); }
.sc-aff { font-size: 12px; font-weight: 600; white-space: nowrap; color: rgb(var(--v3-fg-2)); }
.sc-aff-ok { color: rgb(var(--v3-pos)); }
.sc-aff-no { color: rgb(var(--v3-neg)); }
.sc-aff-checking { color: rgb(var(--v3-warn)); }
.sc-brands { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-iss { display: inline-flex; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.sc-iss-bad { background: color-mix(in srgb, rgb(var(--v3-neg)) 14%, transparent); color: rgb(var(--v3-neg)); }
.sc-iss-warn { background: color-mix(in srgb, rgb(var(--v3-warn)) 16%, transparent); color: rgb(var(--v3-warn)); }
.sc-table tr.is-open td { background: rgb(var(--v3-hover)); }
.sc-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid rgb(var(--v3-line)); flex-wrap: wrap; }
.sc-pager { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sc-pg { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgb(var(--v3-line)); font-size: 13px; }
.sc-pg.is-on { background: rgb(var(--v3-fg)); color: rgb(var(--v3-bg)); border-color: rgb(var(--v3-fg)); }
.sc-link { color: rgb(var(--v3-primary)); font-weight: 600; font-size: 12px; margin-left: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.sc-link:hover { text-decoration: underline; }
/* the side panel: slides over the list from the right; a sheet on a phone */
.sc-scrim { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .32); }
.sc-pane { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(560px, 100vw); overflow-y: auto; background: rgb(var(--v3-surface)); border-left: 1px solid rgb(var(--v3-line)); box-shadow: var(--v3-shadow-pop); display: flex; flex-direction: column; }
@media (max-width: 640px) { .sc-pane { top: 48px; border-left: 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.sc-ph { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgb(var(--v3-surface)); border-bottom: 1px solid rgb(var(--v3-line)); }
.sc-ph h2 { font-size: 16px; font-weight: 700; margin: 0; }
.sc-issues { display: grid; gap: 6px; padding: 12px 16px 0; }
.sc-iss-row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: rgb(var(--v3-surface-2)); }
.sc-iss-row.sc-iss-bad { background: color-mix(in srgb, rgb(var(--v3-neg)) 10%, transparent); }
.sc-iss-row.sc-iss-warn { background: color-mix(in srgb, rgb(var(--v3-warn)) 12%, transparent); }
.sc-iss-row span { color: rgb(var(--v3-fg-2)); }
.sc-sec { padding: 14px 16px; border-bottom: 1px solid rgb(var(--v3-line)); }
.sc-sec h3 { font-size: 13px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; }
.sc-h-danger { margin-top: 14px !important; color: rgb(var(--v3-neg)); }
.sc-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; margin: 0; }
.sc-dl dt { color: rgb(var(--v3-fg-3)); }
.sc-dl dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-ok { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.sc-revealed { font-weight: 600; user-select: all; }
.sc-accts, .sc-brandlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.sc-accts li { display: grid; gap: 1px; }
.sc-acct-h { font-weight: 600; }
.sc-acct-m { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.sc-brandlist li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.sc-act[open] { flex-basis: 100%; }
.sc-act > summary { list-style: none; }
.sc-act > summary::-webkit-details-marker { display: none; }
.sc-act[open] > summary { border-color: rgb(var(--v3-fg)); }
.sc-act-f { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface-2)); }
.sc-act.is-danger .sc-act-f { border-color: color-mix(in srgb, rgb(var(--v3-neg)) 45%, transparent); }
.sc-danger { color: rgb(var(--v3-neg)); }
.sc-why textarea { width: 100%; min-height: 54px; resize: vertical; }
.sc-field { display: grid; gap: 4px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.sc-note { font-size: 12px; color: rgb(var(--v3-fg-3)); margin: 0; }
.sc-err { font-size: 12.5px; color: rgb(var(--v3-neg)); font-weight: 600; margin: 0; }
.sc-act-b { display: flex; justify-content: flex-end; }
/* TikWhizz Creators (Terry msg 3825, twc_admin.html): the overview cards, the pages' lists and the Switches table. Theme tokens only. */
.twc-staff { font-size: 12px; color: rgb(var(--v3-fg-3)); display: inline-flex; align-items: center; }
.twc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.twc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); min-width: 0; }
.twc-stat-l { font-size: 12px; color: rgb(var(--v3-fg-3)); display: inline-flex; align-items: center; }
.twc-stat-n { font-size: 22px; font-weight: 700; color: rgb(var(--v3-fg)); line-height: 1.2; }
.twc-stat-n.twc-none { font-size: 15px; color: rgb(var(--v3-fg-2)); padding: 4px 0; }
.twc-src { font-size: 11.5px; color: rgb(var(--v3-fg-3)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twc-go { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.twc-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); min-width: 0; }
.twc-card:hover { background: rgb(var(--v3-hover)); }
.twc-card-h { display: flex; align-items: center; gap: 2px; }
.twc-card-t { font-size: 14px; font-weight: 700; color: rgb(var(--v3-fg)); }
.twc-card-t:hover { text-decoration: underline; }
.twc-card-l { margin: 0; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.twc-card-a { margin-top: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-primary)); min-height: 24px; }
.twc-tbl td.twc-act { text-align: right; white-space: nowrap; }
.twc-brands { list-style: none; margin: 0; padding: 0; }
.twc-brands li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid rgb(var(--v3-line)); font-size: 13px; }
.twc-brands li:first-child { border-top: 0; }
.twc-body { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--v3-fg-3)); font-size: 12px; }
.twc-pad { padding-bottom: 16px; }
.twc-pad > :not(.card-h) { margin-left: 16px; margin-right: 16px; }
.twc-line { font-size: 13px; color: rgb(var(--v3-fg-2)); margin-top: 0; }
.twc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.twc-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .twc-grid { grid-template-columns: minmax(0, 1fr); } }
.twc-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; padding: 4px 16px 16px; }
.twc-dl dt { color: rgb(var(--v3-fg-3)); }
.twc-dl dd { margin: 0; }
.twc-step { display: inline-flex; margin: 1px 6px 1px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.twc-sw td { vertical-align: top; white-space: normal; padding-top: 18px; padding-bottom: 18px; }
.twc-sw tbody tr + tr td { border-top: 1px solid rgb(var(--v3-line)); }
@media (min-width: 768px) { .twc-sw { table-layout: fixed; width: 100%; } .twc-sw th:nth-child(1) { width: 24%; } .twc-sw th:nth-child(2) { width: 46%; } .twc-sw th:nth-child(3) { width: 30%; } .twc-sw td, .twc-sw th { padding-left: 20px; padding-right: 20px; } }   /* opening Change never moves the columns */
.twc-sw-n b { display: inline; font-size: 14px; }
/* Seller Centre reads (fleet_health.py): one status line on the Switches page; theme tokens only, no fades */
.twc-fleet { margin-bottom: 12px; border-left: 4px solid rgb(var(--v3-line)); }
.twc-fleet-ok { border-left-color: rgb(var(--v3-pos)); }
.twc-fleet-warn { border-left-color: rgb(var(--v3-warn)); }
.twc-fleet-bad { border-left-color: rgb(var(--v3-neg)); }
.twc-fleet-line { margin: 0; padding: 10px 16px 0; font-size: 15px; font-weight: 600; color: rgb(var(--v3-fg)); overflow-wrap: anywhere; }
.twc-fleet-bad .twc-fleet-line { color: rgb(var(--v3-neg)); }
.twc-fleet-dl { padding-top: 12px; padding-bottom: 6px; }
.twc-fleet-dl dd { overflow-wrap: anywhere; }
.twc-fleet-raw { display: block; color: rgb(var(--v3-fg-3)); font-size: 12px; margin-top: 2px; }
.twc-fleet-src { padding: 0 16px 14px; white-space: normal; }
@media (max-width: 520px) { .twc-fleet-dl { grid-template-columns: 1fr; gap: 2px 0; } .twc-fleet-dl dd { margin-bottom: 8px; } }
/* the prerequisites: a neat checklist of real tickboxes (Terry msg 3999) */
.twc-pre { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.twc-pre li { display: block; font-size: 13px; line-height: 1.4; }
.twc-cbf { display: flex; flex-direction: column; gap: 4px; }
.twc-cb { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 24px; }
.twc-cb.is-ro { cursor: default; }
.twc-cbx { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: rgb(var(--v3-pos)); cursor: pointer; }
.twc-cb.is-ro .twc-cbx, .twc-cbx:disabled { cursor: not-allowed; }
.twc-pre li.is-unmet .twc-pre-t { color: rgb(var(--v3-fg)); }
.twc-pre li.is-met .twc-pre-t { color: rgb(var(--v3-fg-2)); }
.twc-pre-t { flex: 1 1 0; min-width: 0; white-space: normal; }
.twc-by { display: block; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.twc-cbf > .twc-by { margin-left: 28px; }
.twc-cbp { margin: 4px 0 0 28px; padding: 12px; display: grid; gap: 8px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface-2)); }
.twc-cbp[hidden] { display: none; }
.twc-cbp .sc-act-b { display: flex; gap: 8px; }
.twc-set .pill { margin-right: 6px; }
.twc-set .sc-act { margin-top: 6px; }
.twc-st-on { background: color-mix(in srgb, rgb(var(--v3-pos)) 16%, transparent); color: rgb(var(--v3-pos)); }
.twc-st-staff { background: color-mix(in srgb, rgb(var(--v3-warn)) 18%, transparent); color: rgb(var(--v3-warn)); }
.twc-st-off, .twc-st-date { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.twc-opts { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.twc-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.twc-opt:has(input:checked) { border-color: rgb(var(--v3-fg)); box-shadow: inset 0 0 0 1px rgb(var(--v3-fg)); }
.twc-opt.is-off { opacity: .5; cursor: not-allowed; }
.twc-why-on { color: rgb(var(--v3-neg)); }
.twc-none { color: rgb(var(--v3-fg-3)); font-size: 12.5px; }
.sc-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.sc-tl li { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding-left: 10px; border-left: 2px solid rgb(var(--v3-line)); }
.sc-tl li.sc-tl-bad { border-left-color: rgb(var(--v3-neg)); }
.sc-tl li.sc-tl-staff { border-left-color: rgb(var(--v3-primary)); }
.sc-tl-w { color: rgb(var(--v3-fg-3)); white-space: nowrap; }
@media (max-width: 480px) { .sc-tl li { grid-template-columns: 1fr; } .sc-dl { grid-template-columns: 96px 1fr; } }
.sc-table td[data-l="Issues"] { white-space: normal; min-width: 170px; max-width: 260px; }
.sc-table td[data-l="Issues"] .sc-iss { white-space: nowrap; }
/* Staff › Creator accounts › Creator promo (Terry msgs 2416-2570): the promos list, the slideshow, one promo's figures and chart, its
   advertiser links, and the form with a picture per slot; and the advertiser's own read-only page (v3/promo_share.html) */
.sc-promo { margin-top: 12px; }
.pm-who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.pm-who img { width: 64px; height: 32px; object-fit: cover; border-radius: 6px; background: #04110b; flex: none; }
.pm-who b { display: block; font-weight: 600; } .pm-who small { display: block; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.pm-st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.pm-st.is-showing { color: rgb(var(--v3-pos)); border-color: rgb(var(--v3-pos) / .4); }
.pm-st.is-waiting, .pm-st.is-scheduled { color: rgb(217 119 6); border-color: rgb(217 119 6 / .45); }
.pm-st.is-nopic { color: rgb(var(--v3-neg)); border-color: rgb(var(--v3-neg) / .4); }
.pm-rule, .pm-vs { padding: 0 16px 14px; }
.pm-back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 13px; }
.pm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 16px 8px; }
.pm-pub .pm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
@media (max-width: 700px) { .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-tile { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; min-width: 0; }
.pm-tile span { font-size: 12px; color: rgb(var(--v3-fg-3)); } .pm-tile b { font-size: 20px; } .pm-tile small { font-size: 11px; color: rgb(var(--v3-fg-3)); }
.pm-chg { justify-self: start; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg-2)); }
.pm-chg.is-up { color: rgb(var(--v3-pos)); } .pm-chg.is-down { color: rgb(var(--v3-neg)); }
.pm-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 4px 16px 16px; }
.pm-pub .pm-charts { padding: 0; }
@media (max-width: 700px) { .pm-charts { grid-template-columns: minmax(0, 1fr); } }
.pm-chart { margin: 0; min-width: 0; } .pm-chart figcaption { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); margin-bottom: 6px; }
.pm-chart svg { display: block; width: 100%; height: 120px; overflow: visible; }
.pm-chart .pm-base { stroke: rgb(var(--v3-line)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pm-chart .pm-mark { fill: rgb(var(--v3-primary)); } .pm-chart .pm-hit { fill: transparent; }
.pm-chart .pm-bar:hover .pm-mark { fill: rgb(var(--v3-primary) / .75); } .pm-chart .pm-bar:hover .pm-hit { fill: rgb(var(--v3-fg) / .05); }
.pm-axis { display: flex; justify-content: space-between; font-size: 11px; color: rgb(var(--v3-fg-3)); margin-top: 4px; }
.pm-slides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 16px 16px; }
@media (max-width: 700px) { .pm-slides { grid-template-columns: minmax(0, 1fr); } }
.pm-slide-box { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; min-width: 0; }
.pm-slide-box h3 { font-size: 13px; font-weight: 600; margin: 0; }
.pm-slide-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; } .pm-secs { width: 140px; }
.pm-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: pmo; }
.pm-order li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid rgb(var(--v3-line)); border-radius: 8px; font-size: 13px; background: rgb(var(--v3-surface)); counter-increment: pmo; }
.pm-order li::before { content: counter(pmo); font-size: 11px; color: rgb(var(--v3-fg-3)); min-width: 12px; }
.pm-order[data-pm-drag] li { cursor: grab; } .pm-order li.is-drag { opacity: .45; } .pm-order li.is-over { border-color: rgb(var(--v3-primary)); box-shadow: 0 0 0 2px rgb(var(--v3-primary) / .2); }
.pm-grip { color: rgb(var(--v3-fg-3)); letter-spacing: -2px; font-size: 12px; }
.pm-share { display: grid; gap: 10px; padding: 0 16px 16px; }
.pm-share-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; } .pm-share-f .sc-field { width: 150px; }
.pm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .pm-links .input { flex: 1 1 260px; min-width: 0; }
.pm-form { margin: 0 16px 16px; }
.sc-promo-f { display: grid; gap: 10px; padding: 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface-2)); }
.sc-promo-f fieldset { border: 0; padding: 0; margin: 0; } .sc-promo-f legend { padding: 0; margin-bottom: 4px; }
.sc-check, .sc-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(var(--v3-fg)); }
.pm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pm-pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; align-items: start; }
@media (max-width: 700px) { .pm-pics, .pm-two { grid-template-columns: minmax(0, 1fr); } }
.pm-pic { display: grid; gap: 6px; min-width: 0; }
.pm-prev { position: relative; display: block; overflow: hidden; border-radius: 10px; border: 1px solid rgb(var(--v3-line)); background: #04110b; }
.pm-prev-side { width: 223px; max-width: 100%; aspect-ratio: 2 / 1; } .pm-prev-home { width: 100%; max-width: 420px; aspect-ratio: 3 / 1; }
.pm-prev img { display: block; width: 100%; height: 100%; object-fit: cover; } .pm-prev.is-full img { object-fit: contain; } .pm-prev img[hidden] { display: none; }   /* sweep 3: an empty preview showed a broken-image box in its corner */
.pm-prev-none { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 12px; color: rgb(255 255 255 / .6); }
.pm-warn { margin: 0; font-size: 12px; color: rgb(217 119 6); }
.sc-promo-f > *, .pm-two > *, .pm-pics > * { min-width: 0; } .sc-promo-f .input { width: 100%; min-width: 0; }
.pm-pub { display: grid; gap: 12px; padding: 16px; }
.pm-pub-range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.pm-pub-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; } .pm-pub-custom .input { width: auto; }
/* CRM › CAP (Terry msg 2337): the roster's status chips, the confirm, the progress line, and a CAP chip that's close to its end date */
.cap-chip.is-soon { color: rgb(217 119 6); border-color: rgb(217 119 6 / .45); }
.cap-st { font-size: 11px; white-space: nowrap; }
.cap-st-ok { color: rgb(var(--v3-pos)); border-color: rgb(var(--v3-pos) / .35); }
.cap-st-warn { color: rgb(217 119 6); border-color: rgb(217 119 6 / .45); }
.cap-st-info { color: rgb(var(--v3-accent)); border-color: rgb(var(--v3-accent) / .35); }
.cap-st-bad { color: rgb(var(--v3-neg)); border-color: rgb(var(--v3-neg) / .35); }
.cap-st-muted { color: rgb(var(--v3-fg-3)); }
.cap-warn { color: rgb(217 119 6); }
/* Partner Centre › Manage partnerships' tabs on CRM › CAP (Terry msg 2406): All · Linked · Not linked · Link requested · Unlink requested · Expiring */
.cap-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; }
.cap-tabs::-webkit-scrollbar { display: none; }
.cap-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.cap-tab:hover { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.cap-tab.is-on { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); font-weight: 600; box-shadow: inset 0 -2px 0 rgb(var(--v3-primary)); }
.cap-tn { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; }
.cap-tab.is-on .cap-tn { color: rgb(var(--v3-fg)); }
@media (max-width: 767px) { .cap-tabs { flex: 1 1 100%; order: -1; } .cap-staff { display: none; } }
/* CRM › CAP's bar and Filters pop-out (Terry msg 2490): tabs, then Staff only + Filters on the same row, right-aligned; the pop-out is the
   site's own (titled sections, chip buttons, Apply / Clear) and a bottom sheet on a phone. Self-contained: the page may not load feed.css. */
.cap-card { overflow: visible; }
.cap-card > .tbl-wrap { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.cap-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.cap-bar-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cap-staff { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); white-space: nowrap; }
.cap-fdrop { position: relative; }
.cap-fdrop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cap-fdrop > summary::-webkit-details-marker { display: none; }
.cap-fdrop > summary.is-set { border-color: rgb(var(--v3-primary) / .6); color: rgb(var(--v3-fg)); }
.cap-fn { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: rgb(var(--v3-primary)); }
.cap-fscrim { display: none; }
.cap-fpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: min(22rem, calc(100vw - 32px)); padding: 0; border: 1px solid rgb(var(--v3-line-2, var(--v3-line))); border-radius: 12px; background: rgb(var(--v3-surface)); box-shadow: 0 12px 32px rgb(0 0 0 / .22); display: flex; flex-direction: column; max-height: min(70vh, 32rem); }
.cap-fhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 16px; font-size: 14px; color: rgb(var(--v3-fg)); }
.cap-fsec { padding: 8px 16px 10px; border-top: 1px solid rgb(var(--v3-line)); overflow-y: auto; }
.cap-fk { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); }
.cap-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-fchip { position: relative; cursor: pointer; }
.cap-fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cap-fchip span { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid rgb(var(--v3-line)); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface)); white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.cap-fchip:hover span { border-color: rgb(var(--v3-fg-3)); color: rgb(var(--v3-fg)); }
.cap-fchip input:checked + span { background: rgb(var(--v3-primary)); border-color: rgb(var(--v3-primary)); color: #fff; }
.cap-fchip input:focus-visible + span { outline: 2px solid rgb(var(--v3-primary) / .6); outline-offset: 2px; }
.cap-ffoot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid rgb(var(--v3-line)); }
@media (max-width: 640px) {
  .cap-bar-r { margin-left: 0; width: 100%; justify-content: flex-end; }
  .cap-fdrop[open] .cap-fscrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgb(0 0 0 / .4); }
  .cap-fpop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 80vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
/* Staff › Creator contacts (Terry msgs 2493, 2500) */
.ct-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .ct-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-decoration: none; color: inherit; min-width: 0; }
.ct-tile.is-on, .ct-tile:hover { border-color: rgb(var(--v3-primary) / .55); }
.ct-k { font-size: 12px; color: rgb(var(--v3-fg-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-v { font-size: 20px; font-weight: 700; color: rgb(var(--v3-fg)); }
[data-ct-root] { grid-template-columns: minmax(0, 1fr); }
[data-ct-root] > * { min-width: 0; }
[data-ct] .cap-tabs { flex: 1 1 auto; }
[data-ct] .cap-bar-r { flex: none; }
.ct-menu { min-width: 12rem; }
.ct-more > summary { list-style: none; }
.ct-more > summary::-webkit-details-marker { display: none; }
/* CAP messages (Terry msg 2488) */
.capm-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.capm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .capm-grid { grid-template-columns: 1fr; } }
.capm-pv { white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 12px 14px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.capm-pv-wa { border-radius: 12px 12px 12px 2px; background: rgb(var(--v3-pos) / .12); }
.capm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.capm-note { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.capm-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed rgb(var(--v3-line)); border-radius: 10px; }
a.fc.fc-link { text-decoration: none; color: inherit; transition: border-color .15s; }
a.fc.fc-link:hover, a.fc.fc-link.is-on { border-color: rgb(var(--v3-primary) / .55); }
.cap-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--v3-fg-3)); }
.cap-dot.is-ok { background: rgb(var(--v3-pos)); }
.cap-dot.is-bad { background: rgb(var(--v3-neg)); }
/* Staff › CAP (Terry msgs 3412, 3420): a reader that's set up but can't read yet is amber, not red; who can be extended or rejoin are tabs after
   Partner Centre's own, set apart by a thin line; each roster row's From chips (Uploaded, Sample request, Partner Centre) */
.cap-dot.is-wait { background: rgb(217 119 6); }
.cap-door-txt { min-width: 15rem; }   /* on a phone, Refresh list drops under the words instead of squeezing them */
.cap-tsep { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: rgb(var(--v3-line)); }
.cap-gmv { white-space: normal; min-width: 7.5rem; max-width: 9rem; }
.cap-gmv .soon-chip { display: table; margin-top: 2px; }
/* Staff › CAP: the page sits in the Staff group, so the bar's Staff only label (its words are in the heading's ⓘ too) only shows when there's
   room, keeping Partner Centre's tabs, Can extend / Can rejoin and Filters on one row */
@media (max-width: 1599px) { [data-cap] .cap-staff { display: none; } }
.cap-tinfo { display: inline-flex; align-items: center; }
.cap-poss-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 14rem; overflow-y: auto; }
.cap-from-in { display: flex; flex-wrap: wrap; gap: 4px; max-width: 10.5rem; }
.cap-src { font-size: 11px; padding: 1px 7px; white-space: nowrap; color: rgb(var(--v3-fg-2)); }
.cap-src-partner { color: rgb(var(--v3-pos)); border-color: rgb(var(--v3-pos) / .35); }
.cap-dlg { width: min(28rem, calc(100vw - 32px)); max-height: min(80vh, 40rem); overflow: auto; padding: 18px 20px; border: 1px solid rgb(var(--v3-line)); color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface)); }
.cap-dlg::backdrop { background: rgb(0 0 0 / .35); }
.cap-dlg-t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cap-will { margin: 10px 0; padding-left: 18px; list-style: disc; font-size: 13px; columns: 2; }
.cap-skip { margin: 8px 0; font-size: 13px; }
.cap-skip summary { cursor: pointer; color: rgb(var(--v3-fg-2)); }
.cap-skip ul { margin-top: 6px; padding-left: 18px; list-style: disc; color: rgb(var(--v3-fg-2)); }
.cap-skip ul { max-height: 180px; overflow: auto; }
/* Import CSV (Terry msg 2379): a file dragged over the CAP page */
[data-cap-root].is-drop { outline: 2px dashed rgb(var(--v3-accent, 254 44 85)); outline-offset: 6px; border-radius: 12px; }
.cap-blocked { margin: 10px 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: rgb(var(--v3-neg) / .08); color: rgb(var(--v3-neg)); }
.cap-dlg-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 480px) { .cap-will { columns: 1; } }

/* A text box in a bulk bar (sweep 13 Nov): v3.css gives every .bulkbar .input the select's chevron as a background, which tiled across a
   plain text box (Staff › Creator accounts' "Why?", My affiliates' "Label or new tag"). Only a real <select> keeps its arrow. */
.bulkbar input.input, .bulkbar textarea.input { background-image: none !important; }

/* An empty-state row inside a table that scrolls sideways on a phone (sweep 13 Nov: CAP's "Nobody on the CAP roster yet" was centred across
   the whole wide table, so on a phone it started off-screen, cut off). It now stays in view at the left, wrapped to the screen. */
.tbl-wrap td > .empty { position: sticky; left: 12px; max-width: calc(100vw - 72px); white-space: normal; }

/* A button marked hidden stays hidden (sweep 13 Nov: Settings › CAP roster showed Download and Clear with nothing uploaded; .btn's own display
   beat the hidden attribute). */
.btn[hidden] { display: none !important; }

/* A finished automation (Terry msg 2435): a quiet green tick where Start would be, not a button */
.go-play.is-done{color:rgb(22 163 74);background:rgba(22,163,74,.12);box-shadow:inset 0 0 0 1px rgba(22,163,74,.35);cursor:default}
.go-play.is-done:hover{background:rgba(22,163,74,.12)}
.ds-mi[disabled]{opacity:.5;cursor:not-allowed}
/* the two most used places (Terry msgs 2492, 2559, Option B): Automations and Sample requests, same rows as the rest, just a little bolder */
.nav-item.nv-prime{font-weight:600}
/* in-place navigation moves focus to the page heading for screen readers (nav.js); the heading is not a control, so no ring is drawn round it (sweep 14 Nov) */
#heading:focus{outline:none}
/* Ready again on a phone (sweep 14 Nov): the product gets its own full row instead of a 100px column, and the two draft buttons wrap inside the card */
@media (max-width: 767px) { [data-st-ready] .v8s-tbl tbody tr { grid-template-columns: 1fr 1fr; } [data-st-ready] .v8s-tbl tbody tr > td:nth-child(3) { grid-column: 1 / -1; }
  .ra-act > span { max-width: 100%; } .ra-act .btn { white-space: normal; height: auto; min-height: 32px; text-align: left; } }
/* the automation wizard's Back / Save / Next bar sits above the phone's tab bar (56px) instead of over it (sweep 14 Nov) */
@media (max-width: 767px) { .aw-foot { bottom: 64px; } }

/* Retry the ones that failed (live pilot, 14 Nov 2026): the list row's third line and the recipient states that didn't go */
table.au-tbl td.au-msg .sub-block.au-fail { color: rgb(var(--v3-neg)); font-weight: 600; }
table.au-tbl td.au-msg .au-fail a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
table.tbl td.au-st-bad { color: rgb(var(--v3-neg)); }
.au-retry { background: rgb(var(--v3-warn) / .06); }
/* the Retry box's groups (Terry msg 4254: clean, 50 at most a page): one row a reason with its count and one plain line, opening to who, paged in place */
.au-rgs { display: flex; flex-direction: column; gap: 6px; }
.au-rg { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); overflow: hidden; }
.au-rg-s { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 10px 12px; min-height: 44px; cursor: pointer; list-style: none; }
.au-rg-s::-webkit-details-marker { display: none; }
.au-rg-s::before { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid rgb(var(--v3-fg-3)); border-bottom: 2px solid rgb(var(--v3-fg-3)); transform: rotate(-45deg); align-self: center; transition: transform .15s ease; }
.au-rg[open] > .au-rg-s::before { transform: rotate(45deg); }
.au-rg-t { font-weight: 600; font-size: 13px; color: rgb(var(--v3-fg)); min-width: 0; overflow-wrap: anywhere; }
.au-rg-n { font-size: 13px; color: rgb(var(--v3-fg)); text-align: right; }
.au-rg-line { grid-column: 2 / -1; font-size: 12px; color: rgb(var(--v3-fg-2)); line-height: 1.4; }
.au-rg[open] > .au-rg-s { border-bottom: 1px solid rgb(var(--v3-line)); }
.au-rg-s:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.au-rg-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.au-rg-list > li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; padding: 6px 12px; min-height: 40px; border-top: 1px solid rgb(var(--v3-line) / .6); font-size: 13px; }
.au-rg-list > li:first-child { border-top: 0; }
.au-rg-list .cp-who { min-width: 0; cursor: pointer; }
.au-rg-list .cr-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-rg-why { font-size: 12px; color: rgb(var(--v3-fg-2)); text-align: left; min-width: 0; overflow-wrap: anywhere; }
[data-au-retry-go] { border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface)); }
.au-rg .tw-pager { border-top: 1px solid rgb(var(--v3-line)); }
.au-rg-list .cr-nm { max-width: 13rem; }
@media (max-width: 767px) { .au-rg-list > li { grid-template-columns: minmax(0, 1fr); padding: 8px 12px; } .au-rg-list .cr-nm { max-width: 15rem; } }

/* Instant on (Jack msg 2739): one slim bar while a newly joined brand's history loads (base.html, feed_dash.loading) */
.fd-load { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 12px; background: rgb(var(--v3-surface)); font-size: 13px; color: rgb(var(--v3-fg-2)); }
.fd-load-t { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.fd-load-quiet { padding: 2px 2px; border: 0; background: none; font-size: 12px; gap: 0; }
.fd-load-quiet .fd-load-t b { color: rgb(var(--v3-fg-2)); font-weight: 500; }
.fd-load-t b { color: rgb(var(--v3-fg)); font-weight: 600; }
.fd-load-bar { display: block; height: 4px; border-radius: 999px; background: rgb(var(--v3-line)); overflow: hidden; }
.fd-load-bar i { display: block; height: 100%; border-radius: inherit; background: rgb(244 55 88); transition: width .6s ease; }

/* Shop data › Data accuracy (Terry msg 2848, accuracy.py) */
.acc-top { display: flex; gap: .5rem; align-items: center; }
.acc-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.acc-ready { display: flex; align-items: center; gap: .5rem; min-width: 0; color: rgb(var(--v3-fg-2)); }
.acc-ready.is-ready { color: rgb(var(--v3-pos)); font-weight: 600; }
.acc-bar { width: 7rem; height: .4rem; border-radius: 999px; background: rgb(var(--v3-surface-2)); overflow: hidden; flex: none; }
.acc-bar i { display: block; height: 100%; background: rgb(var(--v3-pos)); border-radius: inherit; }
.acc-scroll { overflow-x: auto; }
.acc-tbl { width: 100%; }
.acc-tbl td, .acc-tbl th { vertical-align: top; }
.acc-tbl .num { white-space: nowrap; }
.acc-neg { color: rgb(var(--v3-neg)); }
.acc-st { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.acc-st.is-ok { color: rgb(var(--v3-pos)); }
.acc-st.is-bad { color: rgb(var(--v3-neg)); }
.acc-st.is-muted { color: rgb(var(--v3-fg-3)); font-weight: 500; }
.acc-cause { white-space: normal; font-size: .72rem; color: rgb(var(--v3-fg-2)); max-width: 22rem; margin-top: .15rem; line-height: 1.3; }
.acc-hist { white-space: nowrap; }
.acc-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 999px; margin-right: 1px; background: rgb(var(--v3-line)); }
.acc-dot.is-ok { background: rgb(var(--v3-pos)); }
.acc-dot.is-mismatch, .acc-dot.is-missing { background: rgb(var(--v3-neg)); }
.acc-dot.is-settling, .acc-dot.is-not_read { background: rgb(var(--v3-line-2)); }
/* the creator panel's VIP switch (Terry msg 2725): outline when off, solid gold when on */
.cpn-qbtn.vip-tgl { width: auto; padding: 0 8px; font-size: 10px; font-weight: 600; letter-spacing: .02em; border: 1px dashed rgb(var(--v3-line)); color: rgb(var(--v3-fg-2)); background: transparent; }   /* Terry msg 3188: off is a plain dashed button, never gold */
.cpn-qbtn.vip-tgl:hover { border-color: rgb(var(--tw-vip)); }
.cpn-qbtn.vip-tgl.is-on { background: rgb(var(--tw-vip)); color: rgb(var(--tw-vip-ink)); border: 1px solid rgb(var(--tw-vip)); font-weight: 800; }
.cpn-qbtn.vip-tgl[aria-busy=true] { opacity: .6; }
/* Performance Trackers › Sheet (Terry msgs 2595, 2857, 2878): the month in the team's Performance Tracker V3 layout, sticky header and label column */
.pts-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pts-s { padding: 9px 12px; min-width: 0; }
.pts-sl { font-size: 11px; line-height: 1.25; color: rgb(var(--v3-fg-2)); display: flex; align-items: flex-start; min-height: 28px; }
.pts-sv { font-size: 16px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts-s.is-soon .pts-sv { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-3)); padding-top: 4px; }
.pts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.pts-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11px; color: rgb(var(--v3-fg-2)); }
.pts-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.pts-dot.pace-ok { background: rgb(var(--v3-pos) / .35); }
.pts-dot.pace-bad { background: rgb(var(--v3-neg) / .3); }
.pts-dot.est { background: rgb(180 83 9 / .3); }
.pts-pick { width: 320px; padding: 10px; left: 0; right: auto; max-height: 420px; }
.pts-pick-h { font-size: 12px; font-weight: 600; display: flex; align-items: center; padding-bottom: 4px; }
.pts-pick-l { display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.pts-pick-l .pt-tick { min-height: 28px; }
.pts-wrap { padding: 0; overflow: hidden; margin-bottom: 12px; }
.pts-scroll { overflow: auto; max-height: calc(100vh - 220px); }
.pts-t { border-collapse: separate; border-spacing: 0; font-size: 12px; width: max-content; min-width: 100%; }
.pts-t th, .pts-t td { padding: 5px 8px; border-bottom: 1px solid rgb(var(--v3-line)); white-space: nowrap; text-align: right; background: rgb(var(--v3-surface)); }
.pts-t thead th { position: sticky; top: 0; z-index: 3; font-weight: 600; font-size: 11px; color: rgb(var(--v3-fg-2)); background: rgb(var(--v3-surface-2)); }
.pts-t .pts-lab { position: sticky; left: 0; z-index: 2; text-align: left; font-weight: 500; min-width: 210px; max-width: 240px; border-right: 1px solid rgb(var(--v3-line)); }
.pts-t thead .pts-lab { z-index: 4; color: rgb(var(--v3-fg)); }
.pts-t .pts-ab { color: rgb(var(--v3-fg-2)); min-width: 86px; }
.pts-t .pts-ab + .pts-ab { border-right: 1px solid rgb(var(--v3-line)); }
.pts-t .pts-d { min-width: 74px; }
.pts-t .pts-d.is-wk { color: rgb(var(--v3-fg-3)); }
.pts-t .pts-d.is-today { color: rgb(var(--v3-accent)); }
.pts-sec th, .pts-sec td { background: rgb(var(--v3-fg) / .045); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--v3-fg-2)); padding-top: 8px; }
.pts-sec .pts-lab { background: rgb(var(--v3-surface-2)); }
.pts-t td.pace-ok { background: rgb(var(--v3-pos) / .12); }
.pts-t td.pace-bad { background: rgb(var(--v3-neg) / .1); }
.pts-t td.neg { color: rgb(var(--v3-neg)); }
.pts-t td.est { color: #b45309; }
.pts-t tr.is-empty td.pts-c { color: rgb(var(--v3-fg-3)); }
.pts-fl td { padding: 3px 2px; }
.pts-b { text-align: left; }
.pts-bx { display: block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.pts-bx.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pts-bx.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pts-bx.t-hot { background: rgb(var(--v3-accent) / .16); color: rgb(var(--v3-accent)); }
.pts-bx.t-cool { background: rgb(29 78 216 / .12); color: #1d4ed8; }
.pts-bx.t-event { background: rgb(202 138 4 / .16); color: #a16207; }
.pts-bx.t-promo { background: rgb(var(--v3-pos) / .14); color: rgb(var(--v3-pos)); }
.pts-bx.t-ship { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg-2)); }
.pts-bx.t-warn { background: rgb(var(--v3-warn) / .16); color: rgb(var(--v3-warn)); }
.pts-prod { margin-bottom: 12px; }
.pts-prod .pts-pt { max-width: 360px; white-space: normal; }
.pts-prod .pts-pp { white-space: normal; max-width: 420px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.pts-prod .pts-low { color: rgb(var(--v3-warn)); font-weight: 600; }
:root[data-theme="dark"] .pts-bx.t-cool { color: #93c5fd; }
:root[data-theme="dark"] .pts-bx.t-event { color: #facc15; }
:root[data-theme="dark"] .pts-t td.est { color: #fbbf24; }
:root[data-theme="dark"] .pt-src-est { color: #fbbf24; background: rgb(251 191 36 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pts-bx.t-cool { color: #93c5fd; } :root:not([data-theme="light"]) .pts-bx.t-event { color: #facc15; } :root:not([data-theme="light"]) .pts-t td.est { color: #fbbf24; } }
.pts-ss { display: block; font-size: 11px; font-weight: 500; line-height: 1.25; margin-top: 1px; color: rgb(var(--v3-fg-2)); overflow-wrap: anywhere; }   /* its own line under the figure, so it never cuts off ("no weekly limit", 14 Nov) */
.pts-bx { overflow: visible; }
.pts-bt { position: sticky; left: 250px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* Shop data › Campaign calendar (Terry msgs 2861-2886): bars reuse the Sheet's tones (.pts-bx t-hot/cool/event/promo/ship) */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cal-month { display: flex; align-items: center; gap: 4px; }
.cal-mlabel { min-width: 132px; text-align: center; font-size: 15px; }
.cal-views { display: inline-flex; border: 1px solid rgb(var(--v3-line-2)); border-radius: 8px; overflow: hidden; }
.cal-vw { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.cal-vw.is-on { background: rgb(var(--v3-fg) / .07); color: rgb(var(--v3-fg)); font-weight: 600; }
.cal-brand select { min-width: 180px; }
.cal-kinds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cal-kind { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgb(var(--v3-line-2)); color: rgb(var(--v3-fg-2)); }
.cal-kind.is-on.t-hot { background: rgb(var(--v3-accent) / .16); color: rgb(var(--v3-accent)); border-color: transparent; }
.cal-kind.is-on.t-cool { background: rgb(29 78 216 / .12); color: #1d4ed8; border-color: transparent; }
.cal-kind.is-on.t-event { background: rgb(202 138 4 / .16); color: #a16207; border-color: transparent; }
.cal-kind.is-on.t-promo { background: rgb(var(--v3-pos) / .14); color: rgb(var(--v3-pos)); border-color: transparent; }
.cal-kind-clear { font-size: 12px; color: rgb(var(--v3-fg-2)); text-decoration: underline; }
.cal-due ul { margin-top: 6px; display: grid; gap: 4px; font-size: 13px; }
.cal-due b { display: inline-flex; align-items: center; gap: 6px; }
.cal-left { color: rgb(var(--v3-warn)); font-weight: 600; }
.cal-left.is-urgent { color: rgb(var(--v3-neg)); }
.cal-grid-wrap { padding: 0; overflow: hidden; }
.cal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cal-grid thead th { padding: 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--v3-fg-2)); text-align: left; border-bottom: 1px solid rgb(var(--v3-line)); }
.cal-days td { padding: 6px 8px 2px; border-top: 1px solid rgb(var(--v3-line)); vertical-align: top; }
.cal-days td + td, .cal-lane td + td { border-left: 1px solid rgb(var(--v3-line) / .6); }
.cal-days td.is-out .cal-dn { color: rgb(var(--v3-fg-3)); }
.cal-days td.is-today .cal-dn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: rgb(var(--v3-accent)); color: #fff; }
.cal-dn { font-size: 12px; font-weight: 600; }
.cal-lane td { padding: 2px 3px; }
.cal-lane.is-empty td { height: 26px; }
.cal-bx { display: flex; justify-content: flex-start; width: 100%; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.cal-bx .pts-bt { position: static; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-bx:not([data-cal-edit]) { cursor: help; }
.cal-bx:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 1px; }
.cal-tag { display: inline-block; margin-top: 3px; font-size: 10.5px; padding: 1px 7px; cursor: default; }
.cal-list-wrap, .cal-grid-wrap { min-width: 0; max-width: 100%; }
.cal-list-wrap { padding: 0; overflow: hidden; }
.cal-scroll { overflow-x: auto; }
.cal-list td { vertical-align: top; }
.cal-rule { max-width: 260px; white-space: normal; }
.cal-note { margin-top: 3px; max-width: 280px; white-space: normal; }
.cal-check { min-width: 120px; }
.cal-list td:first-child { min-width: 200px; max-width: 320px; white-space: normal; }
.cal-ck + .cal-ck { margin-top: 6px; }
.cal-ckl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.cal-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.cal-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; max-height: 160px; overflow: auto; }
.cal-err { color: rgb(var(--v3-neg)); }
.cal-del { color: rgb(var(--v3-neg)); }
:root[data-theme="dark"] .cal-kind.is-on.t-cool { color: #93c5fd; }
:root[data-theme="dark"] .cal-kind.is-on.t-event { color: #facc15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-kind.is-on.t-cool { color: #93c5fd; } :root:not([data-theme="light"]) .cal-kind.is-on.t-event { color: #facc15; } }

/* My affiliates › My VIPs (Terry msg 2910) */
.vp-nudge { margin-bottom: 12px; padding: 12px 16px; border-left: 3px solid rgb(var(--tw-vip)); }
.vp-nudge-h { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; color: rgb(var(--v3-fg)); }
.vp-nudge-l { display: grid; gap: 6px; }
.vp-nudge-l li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-nudge-l .cp-who, .vp-nudge-l .crc { flex: 0 1 260px; min-width: 0; }
.vp-nudge-why { flex: 1; min-width: 0; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.vp-flt { flex-wrap: nowrap; }
.vp-tbl .sub { display: block; }
.vp-tbl td .sub { font-size: 11px; color: rgb(var(--v3-fg-3)); }
.vp-od { margin-left: 4px; font-size: 10.5px; padding: 0 6px; border-radius: 999px; color: rgb(var(--v3-warn)); border: 1px solid currentColor; background: transparent; }

/* Automations › Results (Terry msgs 2944, 2946, 2947): each automation's journey, the row's one-line summary, the Results tab, the panel's "Came from" */
table.cm-tbl td.cm-name .au-res-line, .au-res-line { display: block; white-space: normal; overflow: visible; text-overflow: clip; font-size: 12px; color: rgb(var(--v3-fg-2)); text-decoration: none; margin-top: 2px; }
.au-res-line:hover { color: rgb(var(--v3-accent-ink)); text-decoration: underline; }
.au-res-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.au-funnel { list-style: none; margin: 0; display: grid; gap: 6px; }
.au-step { display: grid; grid-template-columns: minmax(150px, 210px) 1fr minmax(120px, auto); align-items: center; gap: 10px; font-size: 13px; color: rgb(var(--v3-fg)); }
.au-step-l { display: inline-flex; align-items: center; gap: 4px; color: rgb(var(--v3-fg-2)); }
.au-step-bar { height: 8px; border-radius: 4px; background: rgb(var(--v3-line)); overflow: hidden; }
.au-step-bar > span { display: block; height: 100%; background: rgb(var(--v3-accent)); border-radius: 4px; }
.au-step-n { display: inline-flex; align-items: baseline; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.au-step-n small { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.au-res-money { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.au-res-money span { display: flex; flex-direction: column; }
.au-res-money small { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.au-res-money b { font-size: 18px; color: rgb(var(--v3-fg)); }
.au-stall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.au-stall-list li { display: grid; grid-template-columns: minmax(160px, 220px) 1fr auto; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgb(var(--v3-line)); }
.au-stall-list li:last-child { border-bottom: 0; }
.au-cmp td .sub-block { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.cpn-came { font-size: 12px; color: rgb(var(--v3-fg-2)); margin-top: 4px; }
.cpn-came a { color: rgb(var(--v3-accent-ink)); text-decoration: underline; }
@media (max-width: 640px) {
  .au-step { grid-template-columns: 1fr auto; }
  .au-step-bar { grid-column: 1 / -1; order: 3; }
  .au-stall-list li { grid-template-columns: 1fr auto; }
}

.pm-glow-cols { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.pm-glow-cols label { display: inline-flex; align-items: center; gap: 6px; }
.pm-glow-cols input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid rgb(var(--v3-line)); border-radius: 6px; background: none; cursor: pointer; }

/* A shop selling outside the UK (Terry msg 2970): a small flag on its logo's corner, so 'NF Supplements USA' isn't mistaken for the UK shop whose
   logo it shares. Drawn in CSS (flag emoji show as letters on Windows); it overlaps the logo's bottom-right corner without moving anything. */
.shop-flag { display: inline-block; flex: none; width: 14px; height: 10px; margin-left: calc(-10px - var(--sf-gap, 10px)); margin-right: -4px; align-self: flex-end; position: relative; z-index: 1;
  border-radius: 1.5px; box-shadow: 0 0 0 1.5px rgb(var(--v3-surface)); vertical-align: bottom; }
.shop-flag[data-m="IE"] { background: linear-gradient(90deg, #169b62 0 33.3%, #ffffff 33.3% 66.6%, #ff883e 66.6% 100%); }
.shop-flag[data-m="US"] { background: linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 50% 54% no-repeat,
  repeating-linear-gradient(180deg, #b22234 0 1.43px, #ffffff 1.43px 2.86px); }
.shop-flag[data-m="GB"] { background: #012169 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0,0v30h60v-30z' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }   /* the Union Jack (Terry msg 3002), drawn as an SVG, never an emoji */
.shop-flag[data-m="DE"] { background: linear-gradient(#000000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6% 100%); }
.shop-flag[data-m="FR"] { background: linear-gradient(90deg, #0055a4 0 33.3%, #ffffff 33.3% 66.6%, #ef4135 66.6% 100%); }
.shop-flag[data-m="IT"] { background: linear-gradient(90deg, #009246 0 33.3%, #ffffff 33.3% 66.6%, #ce2b37 66.6% 100%); }
.shop-flag[data-m="ES"] { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.v4-crumb-shop .shop-flag { --sf-gap: 8px; }
.ds-switch .shop-flag { align-self: center; transform: translateY(14px); }   /* the sidebar card: tucked into the 36px logo's corner, not under it (Terry msg 3002) */
.cpn-oth-top .shop-flag { --sf-gap: 8px; }

/* Staff › Copy from Cruva (Terry msgs 3004-3007): each brand's Cruva automations and what copies; theme tokens only (light, dark, navy) */
.cfc-warn { display: flex; gap: .6rem; align-items: flex-start; border-left: 3px solid rgb(var(--v3-warn)); }
.cfc-warn svg { color: rgb(var(--v3-warn)); flex: none; margin-top: .15rem; }
.cfc-head { display: flex; gap: .75rem; align-items: center; justify-content: space-between; cursor: pointer; min-height: 44px; }
.cfc-head-main { flex: 1 1 0; min-width: 0; align-self: stretch; }   /* grows to the right so the empty space folds the box (Terry msg 4488) */
.cfc-head > .btn { flex: none; }
.cfc-body[hidden] { display: none; }
.cfc-tools { display: flex; justify-content: flex-end; margin-bottom: -.5rem; }
.cfc-fold { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -.5rem -.5rem -.5rem 0; border-radius: .5rem; background: transparent; border: 0; color: rgb(var(--v3-fg-2)); cursor: pointer; }
.cfc-fold:hover { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.cfc-fold:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.cfc-fold svg { transition: transform .15s ease; }   /* a turn, never a fade */
.cfc-brand.is-folded .cfc-fold svg { transform: rotate(180deg); }
.cfc-msg:empty { display: none; }
.cfc-msg { color: rgb(var(--v3-fg-2)); }
.cfc-scroll { overflow-x: auto; }
.cfc-tbl { table-layout: fixed; width: 100%; min-width: 980px; }
.cfc-tbl td, .cfc-tbl th { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.cfc-c-tick { width: 2.25rem; } .cfc-c-name { width: 16%; } .cfc-c-who { width: 15%; } .cfc-c-what { width: 22%; } .cfc-c-copy { width: 26%; } .cfc-c-tw { width: 19%; }
.cfc-tick { width: 2rem; }
.cfc-name { display: block; overflow-wrap: anywhere; }
.cfc-what { color: rgb(var(--v3-fg-2)); }
.cfc-st { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.cfc-st.is-copies { color: rgb(var(--v3-pos)); }
.cfc-st.is-needs { color: rgb(var(--v3-warn)); }
.cfc-st.is-cant { color: rgb(var(--v3-fg-3)); }
/* Copy from Cruva part 2: groups rebuilt, competitions mirrored (cruva_groups, cruva_comps) */
.cfc-sec { border-top: 1px solid rgb(var(--v3-line)); padding-top: .5rem; }
.cfc-sec > summary { cursor: pointer; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; list-style: none; }
.cfc-sec > summary::-webkit-details-marker { display: none; }
.cfc-gtbl { table-layout: fixed; width: 100%; }
.cfc-gtbl td, .cfc-gtbl th { vertical-align: top; overflow-wrap: anywhere; }
.cfc-g-name { width: 30%; } .cfc-g-n { width: 6.5rem; } .cfc-g-rule { width: auto; } .cfc-g-st { width: 11rem; }
.cfc-gname { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 22rem; }
.cfc-gact { display: flex; gap: .3rem; margin-top: .3rem; flex-wrap: wrap; }
.cfc-warnline { color: rgb(var(--v3-warn)); }
.cc-mirror { margin-left: .25rem; }
.cm-banner { display: flex; gap: .6rem; align-items: flex-start; border-left: 3px solid rgb(var(--v3-accent)); }
.cm-banner svg { color: rgb(var(--v3-accent)); flex: none; margin-top: .15rem; }
.cm-stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.cm-scroll { overflow-x: auto; }
.cm-tiers li { padding: .15rem 0; }
.cfc-row.is-cant td { color: rgb(var(--v3-fg-3)); }
.cfc-sechead th { background: rgb(var(--v3-surface-2)); text-transform: none; letter-spacing: 0; font-size: .875rem; color: rgb(var(--v3-fg)); padding-top: .45rem; padding-bottom: .45rem; }   /* Terry msg 3613: CRM and Outreach automations, each under its own heading */
.cfc-sectitle { display: inline-flex; align-items: center; gap: .45rem; }
.cfc-secbody + .cfc-secbody .cfc-sechead th { border-top: 1px solid rgb(var(--v3-line)); }
.cfc-needs { margin: .2rem 0 0 1rem; padding: 0; list-style: disc; font-size: .72rem; color: rgb(var(--v3-fg-2)); line-height: 1.3; }
.cfc-why, .cfc-notes { font-size: .72rem; color: rgb(var(--v3-fg-3)); margin-top: .2rem; line-height: 1.3; }
.cfc-notes summary { cursor: pointer; color: rgb(var(--v3-fg-2)); }
.cfc-start { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
.cfc-opts { display: grid; gap: .2rem; margin-top: .4rem; padding-top: .35rem; border-top: 1px dashed rgb(var(--v3-line)); }
.cfc-opt { display: flex; align-items: flex-start; gap: .35rem; font-size: .75rem; line-height: 1.3; color: rgb(var(--v3-fg-2)); }
.cfc-opt input { margin-top: .1rem; flex: none; }
.cfc-lock { display: flex; gap: .3rem; align-items: flex-start; margin-top: .3rem; font-size: .72rem; line-height: 1.3; color: rgb(var(--v3-warn)); }
.cfc-lock svg { flex: none; margin-top: .05rem; }
.cfc-ovr { flex-basis: 100%; color: rgb(var(--v3-warn)); }
.cfc-rowmsg { margin-top: .25rem; color: rgb(var(--v3-fg-2)); line-height: 1.3; }
.cfc-rowmsg:empty { display: none; }
.cfc-pick { width: 100%; max-width: 26rem; font-size: .8rem; padding: .2rem .4rem; border: 1px solid rgb(var(--v3-line)); border-radius: .375rem; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.cfc-gap summary { cursor: pointer; display: flex; gap: .5rem; font-size: .875rem; font-weight: 600; }
.cfc-gap ul { margin: .3rem 0 .5rem 1rem; list-style: disc; }
/* Terry msgs 3622, 3624: the sticky "N selected · Copy these · Clear" bar (cfc-kit.js; the shared .bulkbar dock), plain table headers with each
   count right-aligned beside its own column, "Use this rule" and "CSV" on one line, "What it does" in 2 lines with "more", pages and a quick filter */
body:has([data-cfc-bar]:not([hidden])) .tw-gp { bottom: 84px; }   /* the progress pill sits above the bar, never under it */
[data-cfc-root]:has([data-cfc-bar]:not([hidden])), [data-cfm-root]:has([data-cfc-bar]:not([hidden])) { padding-bottom: 84px; }   /* the bar never covers the last row */
@media (max-width: 767px) {
  body:has([data-cfc-bar]:not([hidden])) .tw-gp { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
  [data-cfc-root]:has([data-cfc-bar]:not([hidden])), [data-cfm-root]:has([data-cfc-bar]:not([hidden])) { padding-bottom: 170px; }
}
.cfc-bar > span:first-of-type { display: inline-flex; align-items: center; gap: 0; padding: 0 8px 0 4px; font-size: 13px; color: #fff; white-space: nowrap; font-weight: 600; }
.cfc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cfc-clamp.is-open { display: block; }
.cfc-more { font-size: .75rem; font-weight: 600; color: rgb(var(--v3-accent-ink)); margin-top: .1rem; }
.cfc-more:hover { text-decoration: underline; }
.cfc-g-name { width: 22%; } .cfc-g-n { width: 10.75rem; } .cfc-g-st { width: 15rem; }
.cfc-tick input, .cfc-sectitle input { flex: none; width: 16px; height: 16px; min-width: 16px; }
.cfc-tbl .cfc-tick { padding-left: 10px; padding-right: 4px; }
.tbl.cfc-gtbl thead th.num, .tbl.cfc-gtbl td.num { text-align: right; padding-right: 1.25rem; font-variant-numeric: tabular-nums; }
.tbl.cfc-gtbl thead th { white-space: nowrap; }
.cfc-gact { flex-wrap: nowrap; white-space: nowrap; }
.cfc-gtbl .cfc-gname { display: block; max-width: 100%; overflow: visible; -webkit-line-clamp: unset; }
.tbl.cfc-gtbl td:nth-child(1), .tbl.cfc-gtbl td:nth-child(3) { padding-right: 16px; white-space: normal; }
.tbl.cfc-gtbl td.cfc-gst, .tbl.cfc-gtbl th:last-child { padding-left: 14px; }
.cfc-gf { flex-wrap: wrap; }
.cfc-gf .go-kind:disabled { opacity: .45; cursor: default; }
.cfc-gf .go-n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 650; background: rgb(var(--v3-fg) / .08); }
.cfc-pager .go-pager a.is-off { opacity: .4; pointer-events: none; }
.cfc-pager[hidden], .cfc-gf[hidden] { display: none !important; }   /* the .flex utility would beat [hidden] */
@media (max-width: 767px) {   /* a phone: count, Copy these and × on one row, above the bottom bar */
  .bb-solid.cfc-bar { flex-wrap: nowrap; }
  .bb-solid.cfc-bar [data-cfc-bar-copy] { flex: 1 1 auto; }
  .bb-solid.cfc-bar [data-cfc-bar-clear] { flex: 0 0 auto; width: 40px; padding: 0; }
}

/* Full sweep, 14 Nov 2026 (Terry msg 3058): text passes WCAG AA (4.5:1) in Light and Dark, as Navy already does (msg 2920).
   Light: the status inks (up, down, warning, info) and muted grey a touch deeper. Dark: muted grey a touch brighter. Both: brand-red text
   on a pink tint uses the accent ink, and white on brand red sits on the deeper primary red. Navy keeps its own (theme-navy.css). */
html[data-theme=light] { --v3-fg-3: 96 96 108; --v3-pos: 13 105 60; --v3-neg: 185 28 40; --v3-warn: 140 80 4; --v3-info: 29 78 216; }
:root { --v3-fg-3: 146 146 158; }
html[data-theme=light] :is(.st-tab.active, .tw-pager .tw-pg-chip, .gc-ord, .pt-exclusive, .ch-badge.is-staff, .ch-tab.is-on, .ar-pill, .ls-learn, .pts-bx.t-hot),
html[data-theme=dark] :is(.tw-pager .tw-pg-chip, .gc-ord, .pt-exclusive, .ch-badge.is-staff, .ch-tab.is-on, .ar-pill, .ls-learn, .chip.tc-chip, .pts-bx.t-hot) { color: rgb(var(--v3-accent-ink)); }
html[data-theme=light] .pts-bx.t-event { color: #854d0e; }
html:is([data-theme=light], [data-theme=dark]) .ib-tag-spark { color: rgb(var(--v3-accent-ink)) !important; }
html:is([data-theme=light], [data-theme=dark]) :is(.pp-tab.on, .cal-days td.is-today .cal-dn) { background: rgb(var(--v3-primary)); border-color: rgb(var(--v3-primary)); }
html[data-theme=light] .pt-src-est { color: #9a3412; }

/* Full sweep, 14 Nov 2026 (Terry msg 3058), phones: every small control gets a finger-sized tap area (about 44px) without changing how it
   looks (an invisible ring round it), and rows of tabs scroll sideways instead of stacking onto two or three rows. */
@media (max-width: 640px) {
  :where(.btn-sm, .btn-xs, .rp-preset, .rp-nav, .wn-al-x, .ls-x, .ph-btn, .ib-chip, .em-size, .cw-seg-b, .cc-sub, .cc-tab,
         .cal-vw, .dash-al-chip, .info-tip, .fd-rf, .seg > a, .v6-seg-sm a, .ls-learn, .tw-pg-n, .crp-seg-b) { position: relative; }
  :is(.btn-sm, .btn-xs, .rp-preset, .rp-nav, .wn-al-x, .ls-x, .ph-btn, .ib-chip, .em-size, .cw-seg-b, .cc-sub, .cc-tab,
      .cal-vw, .dash-al-chip, .seg > a, .v6-seg-sm a, .ls-learn, .tw-pg-n, .crp-seg-b)::after { content: ""; position: absolute; inset: -8px -4px; }
  :is(.info-tip, .fd-rf)::after { content: ""; position: absolute; inset: -13px; }
  .cc-tabs, .cc-subs, .pt-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cc-tabs::-webkit-scrollbar, .cc-subs::-webkit-scrollbar, .pt-tabs::-webkit-scrollbar { display: none; }
  .cc-tabs > *, .cc-subs > *, .pt-tabs > * { flex: none; }
  .crp-cta { white-space: nowrap; }
  .tab.st-chip, .tab.st-exp { min-height: 40px; }
}
/* Full sweep, 14 Nov 2026: the content heat map's strongest cells keep white figures readable in Dark (a deeper red under them). */
html[data-theme=dark] .cv-heat td { background: rgb(196 28 60 / var(--a, 0)); }

/* Phone sweep, 14 Nov 2026 (Terry msg 3090): what the full sweep left. On phones, tab bars are a finger tall (44px; desktop keeps 36px), a table's
   tick boxes and the Trackers' target boxes are big enough to hit, and a creator-inbox row's chips fade at the edge instead of being cut. */
@media (max-width: 640px) {
  .tab { height: 44px; line-height: 24px; }
  :is(td, th) > input[type=checkbox], :is(td, th) > label > input[type=checkbox] { width: 20px; height: 20px; }
  :is(td, th):has(> input[type=checkbox]:only-child) { cursor: pointer; }
  .pt-tg { height: 40px; }
  /* the phone crawl's remaining small controls: the same invisible finger-sized ring the full sweep gave the others */
  input.check { width: 20px; height: 20px; }
  :where(th > a, a[data-per], .pp-tab, .v8s-avbtn, .sr-hs-btn, .ib2-ico, .st-pen, .v8s-seg, .sr-mpbtn, .v8s-panelbtn, .v8s-ico, .crp-more-b,
         .cal-kind, .cal-bx) { position: relative; }
  :is(th > a, a[data-per], .pp-tab, .v8s-avbtn, .sr-hs-btn, .ib2-ico, .st-pen, .v8s-seg, .sr-mpbtn, .v8s-panelbtn, .v8s-ico, .crp-more-b,
      .cal-kind)::after { content: ""; position: absolute; inset: -9px -4px; }
  .cal-bx::after { content: ""; position: absolute; inset: -6px 0; }
  .pp-input { min-height: 36px; }
}
/* the creator inbox row's chip line (Posted · TC · labels) stays one line, and now fades at the right edge instead of cutting a chip in half */
.ib2 .ib-marks { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
/* Phone sweep, 14 Nov 2026: two Light labels just under AA: the Spark / ad code chip (4.49) and a staff account's amber issue chip (4.23) */
html[data-theme=light] .ib-tag-spark { color: #a3122f !important; }
html[data-theme=light] .sc-iss-warn { color: #6b3d00; }
/* Settings › Move from Cruva (Terry msgs 3026, 3090; public edition): reuses Copy from Cruva's table styles (cfc-) */
.cfm-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; list-style: decimal; }
.cfm-key { min-width: 0; flex: 1 1 18rem; max-width: 28rem; }
.cfm-cant { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; list-style: disc; }
.cfm-pics ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.cfm-drop { display: flex; align-items: center; gap: .5rem; justify-content: center; min-height: 64px; padding: .75rem 1rem; border: 1.5px dashed rgb(var(--v3-line));
  border-radius: 10px; color: rgb(var(--v3-fg-2)); cursor: pointer; text-align: center; font-size: .875rem; }
.cfm-drop:hover, .cfm-drop:focus-within { border-color: rgb(var(--v3-accent)); color: rgb(var(--v3-fg)); }

/* Automations list (Terry msg 3103): the name alone with an ⓘ, a Results column whose numbers open who, and left out apart from failed */
table.au-tbl td.cm-name .au-nm-row { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
table.au-tbl td.cm-name .au-nm-tip { flex: none; }
table.au-tbl td.au-msg .au-probs { font-size: 12px; }
table.au-tbl td.au-msg .au-probs a.au-left { color: rgb(var(--v3-fg-2)); text-decoration: underline; text-underline-offset: 2px; }
table.au-tbl td.au-msg .au-probs a.au-fail { color: rgb(var(--v3-neg)); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
table.au-tbl td.au-res { min-width: 9rem; max-width: 12rem; white-space: normal; }
table.au-tbl th.au-res-h { white-space: nowrap; vertical-align: middle; }
.au-res-row { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; }
.au-who > summary { list-style: none; cursor: pointer; }
.au-who > summary::-webkit-details-marker { display: none; }
.au-who-n { color: rgb(var(--v3-fg)); text-decoration: underline dotted; text-underline-offset: 3px; }
.au-who-n:hover { color: rgb(var(--v3-accent-ink)); }
.au-who-pop { width: 17rem; max-height: 18rem; overflow: auto; white-space: normal; }
.au-who-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.au-who-list li { display: flex; flex-direction: column; gap: 1px; }
.au-who-list .cp-who { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Low stock (Terry msg 3178): yellow when TikTok's low-stock line is reached, red when it matters now (stock_alerts.py) */
.stk-low { color: rgb(var(--v3-warn)); font-weight: 600; }
.stk-loud { color: rgb(var(--v3-neg)); font-weight: 700; }
.stk-low, .stk-loud { cursor: help; }
.stk-card { margin-top: 14px; }
.stk-counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding: 0 16px 8px; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.stk-n b { font-size: 15px; margin-right: 3px; }
.stk-n-loud b { color: rgb(var(--v3-neg)); }
.stk-n-low b { color: rgb(var(--v3-warn)); }
.stk-hint { color: rgb(var(--v3-fg-3)); }
.stk-rows { list-style: none; margin: 0; padding: 0 16px 10px; }
.stk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(var(--v3-line)); }
.stk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--v3-fg)); font-size: 13.5px; text-decoration: none; }
.stk-name:hover { text-decoration: underline; }
.stk-fig { font-size: 13px; color: rgb(var(--v3-fg-2)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stk-fig b { color: rgb(var(--v3-fg)); }
.stk-chip { justify-self: end; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.stk-chip-loud { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .14); }
.stk-chip-low { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .16); }
.stk-fig b.stk-loud { color: rgb(var(--v3-neg)); }
.stk-fig b.stk-low { color: rgb(var(--v3-warn)); }
.stk-acts { display: inline-flex; align-items: center; gap: 4px; }
.stk-menu { position: relative; }
.stk-menu > summary { list-style: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: rgb(var(--v3-fg-2)); }
.stk-menu > summary::-webkit-details-marker { display: none; }
.stk-menu > summary:hover, .stk-menu[open] > summary { background: rgb(var(--v3-surface-2)); color: rgb(var(--v3-fg)); }
.stk-pop { position: absolute; right: 0; top: 32px; z-index: 30; width: 340px; max-width: calc(100vw - 32px); padding: 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: rgb(var(--v3-surface)); box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
.stk-set-f { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 13px; }
.stk-f { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; color: rgb(var(--v3-fg-2)); }
.stk-f .input { width: 72px; }
.stk-sc > summary { cursor: pointer; color: rgb(var(--v3-fg-2)); font-size: 12.5px; text-decoration: underline dotted; text-underline-offset: 3px; }
.stk-sc[open] > summary { margin-bottom: 8px; }
.stk-sc .stk-set-hint { margin-top: 6px; }
.stk-set-hint { margin: 0; font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.stk-slim .stk-counts { padding: 12px 16px; align-items: center; }
.stk-slim .stk-acts { margin-left: auto; }
.stk-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stk-ids { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); font-variant-numeric: tabular-nums; }
.stk-id { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.stk-copy { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: rgb(var(--v3-fg-3)); background: none; border: 0; cursor: pointer; }
.stk-copy:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface-2)); }
@media (max-width: 640px) {
  .stk-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .stk-main { grid-column: 1 / -1; }
  .stk-card { position: relative; }
  .stk-menu { position: static; }
  .stk-pop { left: 12px; right: 12px; top: 48px; width: auto; max-width: none; }
  .stk-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .stk-chip-none { display: none; }
}
.wn-k-stock_low.wn-al-bad .wn-al-ic { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.wn-k-stock_low.wn-al-bad { box-shadow: inset 3px 0 0 rgb(var(--v3-neg)); }
.wn-k-stock_low.wn-al-warn { box-shadow: inset 3px 0 0 rgb(var(--v3-warn)); }
/* Terry msg 3396: Dashboard › Creators and CRM › My affiliates (tbl-fit) fit 1440 with the sidebar open. As on Sample requests (msg 3158), a
   column's sort arrows take no room until you point at its heading (the sorted column keeps its arrow); long headings take two lines; cells sit a
   little closer; a commission rate's "ends in …" goes on the line under the rate. */
@media (min-width: 768px) {
  .tbl.tbl-fit > thead th { white-space: normal; line-height: 1.2; }
  .tbl.tbl-fit > thead th > a { position: relative; }
  .tbl.tbl-fit > thead th:not([aria-sort]) > a > svg { position: absolute !important; right: -13px; opacity: 0 !important; transition: opacity .12s; pointer-events: none; }
  .tbl.tbl-fit > thead th.num:not([aria-sort]) > a > svg { right: auto; left: -13px; }
  .tbl.tbl-fit > thead th > a:hover > svg, .tbl.tbl-fit > thead th > a:focus-visible > svg { opacity: .9 !important; }
  .tbl.tbl-fit .crc { --crc-max: 220px; }
  .tbl.tbl-fit.cf-tbl .crc { --crc-max: 256px; }   /* CRM's bigger pictures: the same room for the name */
  .tbl.tbl-fit.dense td, .tbl.tbl-fit.dense th { padding-left: 6px; padding-right: 6px; }
  .tbl.tbl-fit.dense td:first-child, .tbl.tbl-fit.dense th:first-child { padding-left: 12px; }
  .tbl.tbl-fit .rate-l2 { display: block; margin-left: 0; font-size: 11px; line-height: 1.35; }
  .tbl.tbl-fit .cf-cell { gap: 6px; }
  .tbl.tbl-fit .cf-spark { width: 48px !important; }
  .tbl.tbl-fit .cf-val { min-width: 0; }
}
/* CRM › My affiliates (Terry msg 3396): Level, Organic GMV and Ads GMV start behind the Columns button (crm_feed.DEFAULT_HIDDEN), hidden here
   before v3.js runs so nothing jumps; v3.js drops data-cf-dflt once a person has a choice of their own */
.cf-tbl[data-cf-dflt~="level"] :is(td[data-cf-c="level"], th:has(> a[data-sort-col="level"])),
.cf-tbl[data-cf-dflt~="organic"] :is(td[data-cf-c="organic"], th:has(> a[data-sort-col="organic"])),
.cf-tbl[data-cf-dflt~="ads"] :is(td[data-cf-c="ads"], th:has(> a[data-sort-col="ads"])),
.cf-tbl[data-cf-dflt~="xp"] :is(td[data-cf-c="xp"], th:has(> a[data-sort-col="xp"])) { display: none; }
/* Sample requests › All / All approved (Terry msg 3396): the status pill sits first on the creator cell's second line (no Status column), and
   its sort sits in the Affiliate heading */
.crc-l2 > .v8s-stcell { display: inline-flex; align-items: center; }
.v8s-tbl .crc-l2 { column-gap: 4px; }
/* line 2's chips a size smaller on Sample requests, so status, message and history chip share one line under a name */
.v8s-tbl .crc-l2 :is(.chip, .sh-badge, .v8s-st, .pill) { height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; letter-spacing: 0; }
.v8s-tbl .crc-l2 .v8s-st svg { width: 10px; height: 10px; }
@media (min-width: 768px) and (pointer: fine) {
  .v8s-tbl .crc-l2 .v8s-ico { width: 14px; padding: 0; }
  /* never a third line: if a long history chip still doesn't fit, it ends in "…" (its ⓘ / title keeps the words) */
  .v8s-tbl .crc-l2 { flex-wrap: nowrap; overflow: hidden; }
  .v8s-tbl .crc-l2 > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.v8s-tbl .crc-l2 .v8s-icos { margin: 0; }
/* the chat button sits on the name's line, right after the TikTok icon (Terry): same quiet size as the ⓘ beside it; a finger gets 44px (invisible ring) */
.crc-l1 > .v8s-icos { display: inline-flex; align-items: center; flex: none; margin: 0; }
.crc-l1 > .v8s-icos .v8s-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 3px; border-radius: 6px; color: rgb(var(--v3-fg-3)); transition: color .15s, background .15s; }
.crc-l1 > .v8s-icos .v8s-ico:hover, .crc-l1 > .v8s-icos .v8s-ico:focus-visible { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .07); }
.crc-l1 > .v8s-icos .v8s-ico:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 1px; }
@media (pointer: coarse) { .crc-l1 > .v8s-icos .v8s-ico { width: 28px; height: 28px; } .crc-l1 > .v8s-icos .v8s-ico::after { inset: -8px; } }
.sr-stsort { display: inline-flex; align-items: center; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgb(var(--v3-line)); font-weight: inherit; }
.sr-hs.is-open ~ .sr-stsort, th:has(.sr-hs.is-open) .sr-stsort { display: none; }
/* Sample requests (Terry msgs 3160, 3396): the Affiliate column fits the longest username on the page (--aff-w, set in v3.js after each load or
   swap), up to the shared creator cell's cap (--crc-max): a real TikTok name (24 characters at most) shows in full; past the cap it ends in "…",
   whole on hover and in the panel. The name itself opens the creator panel. On a phone a long name wraps. */
@media (min-width: 768px) {
  .v8s-tbl[style*="--aff-w"] th[data-c="creator"] { width: var(--aff-w); min-width: var(--aff-w); }
}
@media (max-width: 767px) {
  .v8s-tbl td[data-l="Creator"] .crc { max-width: none; }
  .v8s-tbl td[data-l="Creator"] .crc-l1 { flex-wrap: wrap; white-space: normal; }
  .v8s-tbl td[data-l="Creator"] .crc-nm { white-space: normal; overflow-wrap: anywhere; }
}
/* Sample requests (Terry msg 3158, "due to space"): the default seven columns fit beside the Affiliate and Requests columns from 1440. A column's
   sort arrows take no room until you point at its heading (the sorted column keeps its arrow), and By creator's Requests column is only as wide
   as one picture, "+N" and the "N requests" button. */
@media (min-width: 768px) {
  .v8s-tbl[data-rows] > thead th > a { position: relative; }
  .tbl.v8s-tbl[data-rows] > thead th > a > svg.sort-ico:not(.is-on) { position: absolute !important; right: -14px; opacity: 0 !important; transition: opacity .12s; pointer-events: none; }
  .tbl.v8s-tbl[data-rows] > thead th.num > a > svg.sort-ico:not(.is-on) { right: auto; left: -14px; }
  .tbl.v8s-tbl[data-rows] > thead th > a:hover > svg.sort-ico, .tbl.v8s-tbl[data-rows] > thead th > a:focus-visible > svg.sort-ico { opacity: .9 !important; }
  #samples-form .ds-reqtbl.v8s-tbl[data-grouped] th[data-c=act] { width: 174px; }
  #samples-form .ds-reqtbl.v8s-tbl[data-grouped] th[data-c=sel] { width: 40px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=gmv] { width: 88px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=live] { width: 104px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=shop_gmv] { width: 96px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=seen] { width: 92px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=followers] { width: 86px; }
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=fulfilment] { width: 100px; }   /* "100%" with its bar, never "10…" (Terry msg 3396 check) */
  #samples-form .ds-reqtbl.v8s-tbl th[data-c=avgviews] { width: 88px; }
}

/* Shop Performance Score (Terry msg 3233, 15 Nov 2026): moved here from feed.css so every shop's Dashboard and Analytics › Score can show it */
.ss { margin-inline: 10px; align-self: center; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0; }
.ss-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11.5px; line-height: 18px; font-weight: 600; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; list-style: none; }
.ss-badge::-webkit-details-marker { display: none; }
.ss-badge:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 1px; }
.ss-badge > b { font-weight: 700; }
.ss-green { color: rgb(var(--v3-pos)); background: rgb(var(--v3-pos) / .14); border-color: rgb(var(--v3-pos) / .35); }
.ss-amber { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .14); border-color: rgb(var(--v3-warn) / .35); }
.ss-red { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .14); border-color: rgb(var(--v3-neg) / .35); }
.ss-old { color: rgb(var(--v3-fg-2)); background: transparent; border-color: rgb(var(--v3-line-2)); }
.ss-none { color: rgb(var(--v3-fg-3)); background: transparent; border-color: rgb(var(--v3-line-2)); font-weight: 500; }
.ss-none:hover, .ss-old:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-hover)); }
.ss-age { font-weight: 500; color: rgb(var(--v3-fg-3)); }
.ss-age.ss-stale { color: rgb(var(--v3-warn)); font-weight: 600; }
.ss-badge .ss-chg { font-size: inherit; }
.ss-panel { left: 0; top: 100%; z-index: 40; margin-top: 6px; display: flex; flex-direction: column; gap: 10px; width: min(23.5rem, calc(100vw - 2rem)); padding: 14px; color: rgb(var(--v3-fg)); }
.ss-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.ss-big { font-size: 26px; line-height: 32px; font-weight: 680; font-variant-numeric: tabular-nums; }
.ss-text-green { color: rgb(var(--v3-pos)); }
.ss-text-amber { color: rgb(var(--v3-warn)); }
.ss-text-red { color: rgb(var(--v3-neg)); }
.ss-text-old { color: rgb(var(--v3-fg-2)); }
.ss-of { color: rgb(var(--v3-fg-3)); }
.ss-peers { margin-left: 6px; color: rgb(var(--v3-fg-2)); }
.ss-rows { display: flex; flex-direction: column; border-top: 1px solid rgb(var(--v3-line)); }
.ss-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgb(var(--v3-line)); }
.ss-rows dt { color: rgb(var(--v3-fg-2)); }
.ss-rows dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ss-rows .ss-na { font-weight: 400; color: rgb(var(--v3-fg-3)); }
.ss-wow-up { color: rgb(var(--v3-pos)); }
.ss-wow-down { color: rgb(var(--v3-neg)); }
.ss-wow-flat { color: rgb(var(--v3-fg-2)); }
.ss-how { font-size: 11.5px; line-height: 16px; color: rgb(var(--v3-fg-3)); }
.ss-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-warning { color: rgb(var(--v3-neg)); font-weight: 500; }
.ss-warning-old { color: rgb(var(--v3-fg-2)); font-weight: 400; }
.ss-src { font-size: 11.5px; line-height: 16px; color: rgb(var(--v3-fg-2)); }
.ss-chg { margin-left: 4px; font-size: 12px; font-weight: 600; }
.ss-part { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid rgb(var(--v3-line)); }
.ss-part-h { display: flex; justify-content: space-between; gap: 10px; }
.ss-part-h dt { color: rgb(var(--v3-fg-2)); }
.ss-part-h dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ss-w { margin-left: 4px; font-size: 11px; font-weight: 500; color: rgb(var(--v3-fg-3)); }
.ss-m { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; line-height: 16px; color: rgb(var(--v3-fg-2)); padding-left: 10px; }
.ss-m b { font-weight: 600; color: rgb(var(--v3-fg)); font-variant-numeric: tabular-nums; }
.ss-m .ss-na, .ss-part-h .ss-na { font-weight: 400; color: rgb(var(--v3-fg-3)); }
.ss-sum { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgb(var(--v3-hover)); font-size: 12px; line-height: 17px; }
.ss-sum span { flex: 1; min-width: 0; }
.ss-hist { width: 100%; font-size: 12px; border-collapse: collapse; }
.ss-hist td, .ss-hist th { padding: 5px 8px; border-bottom: 1px solid rgb(var(--v3-line)); text-align: left; font-variant-numeric: tabular-nums; }
.ss-hist th { font-weight: 600; color: rgb(var(--v3-fg-2)); }
.ss-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
/* A finished automation's ▶ Restart (Terry msg 3259): the play button, a little greener so it reads "done, go again"; its pop-up is the
   shared aw-leave card, a little wider for the who list */
.go-play.is-restart{color:rgb(22 163 74);background:rgb(var(--v3-surface));box-shadow:inset 0 0 0 1px rgba(22,163,74,.5)}
.go-play.is-restart:hover:not([disabled]){background:rgba(22,163,74,.12)}
.go-play.is-restart[disabled]{opacity:.55;cursor:not-allowed}
@media (min-width:640px){.au-rs-dlg{width:min(480px,calc(100vw - 32px))}}
.au-rs-dlg .btn svg{width:.9rem;height:.9rem;margin-right:.3rem}
.au-rs-who p{max-height:9rem;overflow:auto;word-break:break-word}
/* Sample requests (Terry msg 3359): TikMarketing's CAP badge sits on the line under the name, with the request's chips, so the Affiliate column
   (sized to the longest name) never grows for it; VIP stays beside the name */
.ct-agr { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }   /* creator pack B3: the contract's type, dates and key terms for the creator's My agreements */
/* Join the community (creator pack B9): the brand's WhatsApp, Discord or Lark, opened in a new tab */
.tw-comm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 14px; font-weight: 650; text-decoration: none; color: inherit; background: transparent; }
.tw-comm:hover { opacity: .85; } .tw-comm svg { flex: none; }
.bh-page .bh-comm { align-self: flex-start; margin-top: 8px; color: var(--t-ona, #fff); }
.cc-pcomm { display: flex; width: 100%; margin-top: 8px; min-height: 38px; font-size: 13px; color: rgb(var(--v3-accent)); }
/* Staff › CAP: an uploaded Partner Centre CAP file (Terry msg 3540): its From chip, the Not matched row, and the gentle nudge after 7 days */
.cap-src-file { color: rgb(var(--v3-pos)); border-color: rgb(var(--v3-pos) / .35); }
.cap-nouser { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.cap-nudge { color: rgb(var(--v3-fg)); font-weight: 500; }
/* Staff › CAP's queue (Terry msg 3594): Queued invites: N, Cancel all queued, and one line per press with Cancel this batch */
.cap-qc { padding: 10px 12px; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; background: rgb(var(--v3-surface-2)); }
.cap-qc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .cap-qc-all { margin-left: auto; }
.cap-qc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.cap-qc-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-width: 0; }
/* CRM › My affiliates: XP level 1 to 50 and the Rising marker (creator pack E12, creator_progress; staff only) */
.xp-lv { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: rgb(var(--v3-fg)); background: rgb(var(--v3-surface-3)); }
.xp-up { margin-left: 4px; font-size: 11.5px; font-weight: 700; color: rgb(74 222 128); white-space: nowrap; }
html[data-theme=light] .xp-up { color: rgb(21 128 61); }
.xp-who { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: rgb(var(--v3-fg-2)); white-space: nowrap; }
.xp-who .xp-up { margin-left: 1px; font-size: 11px; }

/* Bug and polish sweep (15 Nov): a figure that is missing says why in words (Not read yet, Not found): small and muted, and it wraps in a narrow column instead of being cut off */
.v4-na { font-size: .75rem; line-height: 1.2; white-space: normal; }
td .v4-na { display: inline-block; max-width: 7rem; }
/* Bug and polish sweep, phones (16 Nov): small controls the weekly phone sweep found (copy, play, left out / failed, prior samples, tabs, quick buttons) get the same invisible finger-sized ring */
@media (max-width: 640px) {
  :where(.stk-copy, .go-play, .au-left, .au-fail, .sh-badge, .crc-namebtn, .cf-tab, .cpn-qbtn, .ls-title, .ds-fresh) { position: relative; }
  :is(.stk-copy, .go-play, .au-left, .au-fail, .sh-badge, .crc-namebtn, .cf-tab, .cpn-qbtn, .ls-title, .ds-fresh)::after { content: ""; position: absolute; inset: -8px -4px; }
}
/* CRM › My affiliates › VIP Team (Terry msgs 3722-3730): the cycle's cards, the changes bar, the review table's months and Keep / Drop, the dialogs */
.vp-team { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 16px; border-left: 3px solid rgb(var(--tw-vip)); font-size: 13px; color: rgb(var(--v3-fg)); text-decoration: none; }
.vp-team:hover { border-color: rgb(var(--tw-vip)); background: rgb(var(--v3-surface-2, var(--v3-surface))); }
.vp-team-m { color: rgb(var(--v3-fg-2)); min-width: 0; }
.vp-team-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 500; color: rgb(var(--v3-accent)); white-space: nowrap; }
.vt-dates { white-space: nowrap; }
.vt-of { font-size: 13px; font-weight: 500; color: rgb(var(--v3-fg-3)); }
.vt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 10px 16px; border-left: 3px solid rgb(var(--tw-vip)); }
.vt-bar-t { flex: 1 1 320px; min-width: 0; font-size: 13px; color: rgb(var(--v3-fg)); }
.vt-bar-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vt-off { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12px; font-weight: 500; color: rgb(var(--v3-warn)); }
.vt-off a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vt-dlg-q { font-size: 15.5px; line-height: 22px; font-weight: 600; }
.vt-flt { flex-wrap: nowrap; }
.vt-tbl .sub { display: block; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.vt-tbl .vt-short, .vt-tbl .sub.vt-short { color: rgb(var(--v3-warn)); font-weight: 600; }
.vt-mth { white-space: nowrap; }
.vt-sofar { display: block; font-size: 10.5px; font-weight: 400; color: rgb(var(--v3-fg-3)); }
.vt-st { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.vt-join, .vt-fl { font-size: 10.5px; padding: 0 6px; border-radius: 999px; border: 1px solid currentColor; background: transparent; }
.vt-join { color: rgb(var(--tw-vip)); }
.vt-fl { color: rgb(var(--v3-warn)); }
.vt-tbl tr.vt-drop td { background: rgb(var(--v3-neg) / .05); }
.vt-kdh, .vt-kd-c { white-space: nowrap; }
.vt-kd { display: inline-flex; border: 1px solid rgb(var(--v3-line-2)); border-radius: 8px; overflow: hidden; }
.vt-kd-b { padding: 3px 10px; font-size: 12px; font-weight: 500; color: rgb(var(--v3-fg-2)); background: transparent; border: 0; cursor: pointer; min-height: 28px; }
.vt-kd-b + .vt-kd-b { border-left: 1px solid rgb(var(--v3-line-2)); }
.vt-kd-b.is-on { color: rgb(var(--v3-fg)); background: rgb(var(--v3-pos, 34 160 90) / .14); }
.vt-kd-b.vt-kd-drop.is-on { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.vt-kd-b:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.vt-log { padding: 8px 16px 10px; font-size: 12px; color: rgb(var(--v3-fg-2)); }
.vt-log summary { cursor: pointer; font-weight: 500; color: rgb(var(--v3-fg)); }
.vt-log ul { display: grid; gap: 3px; margin-top: 6px; }
.vt-dlg { width: min(520px, calc(100vw - 32px)); padding: 18px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); }
.vt-dlg::backdrop { background: rgb(0 0 0 / .55); }
.vt-dlg-lists { display: grid; gap: 6px; line-height: 1.45; }
.vt-dlg-blocks { padding: 9px 11px; border-radius: 8px; border: 1px solid rgb(var(--v3-warn) / .55); background: rgb(var(--v3-warn) / .08); display: grid; gap: 4px; }
.vt-dlg-tick { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.vt-dlg-err { color: rgb(var(--v3-neg)); }
.vt-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.vt-set-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .vt-set-2 { grid-template-columns: 1fr; } .vt-bar-b { width: 100%; } }
.vt-dlg [hidden] { display: none !important; }

/* Staff › Ads overview (Lewis's idea, Terry's pack L1): one row per brand, needing-a-look first; each opens to its campaigns */
.adb-top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.adb-sum { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; font-size: .8rem; color: rgb(var(--v3-fg-2)); margin: 0; }
.adb-sum b { color: rgb(var(--v3-fg)); font-weight: 600; }
.adb-sum-look b { color: rgb(var(--v3-neg)); }
.adb-card { overflow: hidden; }
.adb-row { display: grid; grid-template-columns: minmax(10rem, 1.3fr) 5.5rem minmax(9.5rem, 1fr) 6rem 3.5rem 5.75rem 6.25rem minmax(9rem, 1.3fr) 3rem;
  gap: .75rem; align-items: center; padding: .6rem 1rem; font-size: .82rem; }
.adb-row.is-range { grid-template-columns: minmax(11rem, 2fr) 7rem 7rem 4rem 5rem 4rem; }
.adb-head { font-size: .7rem; font-weight: 600; color: rgb(var(--v3-fg-3)); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid rgb(var(--v3-line)); padding-top: .5rem; padding-bottom: .5rem; }
.adb-head .info-tip { text-transform: none; margin-left: .15rem; }
.adb-head > span { white-space: nowrap; display: inline-flex; align-items: center; }
.adb-row .num, .adb-head .num { text-align: right; justify-self: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adb-brand { border-bottom: 1px solid rgb(var(--v3-line)); }
.adb-brand:last-child { border-bottom: 0; }
.adb-brand > summary { list-style: none; cursor: pointer; }
.adb-brand > summary::-webkit-details-marker { display: none; }
.adb-brand[data-adb-flat] > summary { cursor: default; }
.adb-brand > summary:hover { background: rgb(var(--v3-hover)); }
.adb-brand > summary:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: -2px; }
.adb-brand.is-g0 > summary { box-shadow: inset 3px 0 0 rgb(var(--v3-neg)); }
.adb-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.adb-logo { width: 24px; height: 24px; border-radius: 6px; flex: none; object-fit: cover; }
.adb-caret { color: rgb(var(--v3-fg-3)); flex: none; transition: transform .15s; }
.adb-brand[open] .adb-caret { transform: rotate(180deg); }
.adb-miss { grid-column: 2 / -2; display: flex; gap: .4rem; align-items: flex-start; color: rgb(var(--v3-warn)); font-size: .8rem; line-height: 1.35; }
.adb-brand.is-g3 .adb-miss { color: rgb(var(--v3-fg-3)); }
.adb-used { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.adb-bar { width: 3.5rem; height: .4rem; border-radius: 999px; background: rgb(var(--v3-surface-2)); overflow: hidden; flex: none; }
.adb-bar i { display: block; height: 100%; background: rgb(var(--v3-accent)); border-radius: inherit; }
.adb-used.is-cap .adb-bar i { background: rgb(var(--v3-neg)); }
.adb-of { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adb-why { color: rgb(var(--v3-fg-3)); font-size: .75rem; border-bottom: 1px dotted rgb(var(--v3-line-2)); cursor: help; white-space: nowrap; }
.adb-mer { font-weight: 600; cursor: help; }
.adb-mer.is-good { color: rgb(var(--v3-pos)); }
.adb-mer.is-warn { color: rgb(var(--v3-warn)); }
.adb-mer.is-bad { color: rgb(var(--v3-neg)); }
.adb-flags { display: flex; flex-wrap: wrap; gap: .25rem; min-width: 0; }
.adb-flag { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; cursor: help; }
.adb-flag.is-bad { color: rgb(var(--v3-neg)); background: rgb(var(--v3-neg) / .12); }
.adb-flag.is-warn { color: rgb(var(--v3-warn)); background: rgb(var(--v3-warn) / .14); }
.adb-ok { display: inline-flex; align-items: center; gap: .25rem; color: rgb(var(--v3-pos)); font-size: .75rem; font-weight: 500; }
.adb-at { color: rgb(var(--v3-fg-3)); font-size: .75rem; cursor: help; }
.adb-more { padding: .25rem 1rem 1rem; display: grid; gap: .5rem; background: rgb(var(--v3-surface-2) / .4); }
.adb-note { display: flex; gap: .4rem; align-items: flex-start; font-size: .78rem; color: rgb(var(--v3-fg-2)); margin: .25rem 0 0; }
.adb-tbl { width: 100%; }
.adb-tbl tr.is-off td { color: rgb(var(--v3-fg-3)); }
.adb-cn { display: block; max-width: 26rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.adb-sub { display: block; font-size: .7rem; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.adb-sub-bad { color: rgb(var(--v3-neg)); }
.adb-sub-warn { color: rgb(var(--v3-warn)); }
.adb-capped { color: rgb(var(--v3-neg)); font-weight: 600; }
.adb-st { font-size: .75rem; font-weight: 600; }
.adb-st.is-ok { color: rgb(var(--v3-pos)); }
.adb-st.is-warn { color: rgb(var(--v3-warn)); }
.adb-st.is-muted { color: rgb(var(--v3-fg-3)); }
.adb-foot { margin: 0; }
@media (max-width: 1180px) {
  .adb-row { grid-template-columns: minmax(8rem, 1.3fr) 5.5rem minmax(7rem, 1fr) 6rem 3.5rem 5.75rem 6.25rem minmax(8rem, 1.2fr) 3rem; gap: .5rem; padding-left: .75rem; padding-right: .75rem; }
  .adb-of { display: none; }
}
@media (max-width: 760px) {
  .adb-head { display: none; }
  .adb-row, .adb-row.is-range { grid-template-columns: 1fr 1fr; gap: .35rem .75rem; }
  .adb-name { grid-column: 1 / -1; }
  .adb-miss { grid-column: 1 / -1; }
  .adb-l { display: flex; justify-content: space-between; gap: .5rem; text-align: left; justify-self: stretch !important; }
  .adb-l::before { content: attr(data-l); color: rgb(var(--v3-fg-3)); font-size: .72rem; font-weight: 500; }
  .adb-flags, .adb-flags.adb-l { grid-column: 1 / -1; justify-content: flex-start; }
  .adb-flags.adb-l::before { margin-right: auto; }
  .adb-more { padding: .25rem .75rem .75rem; }
}
/* The invite sheet (Terry msg 3785, tc-sheet.js): the exact invite behind a TC rate, opened in place over the page */
.tcs-dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid rgb(var(--v3-line-2)); border-radius: 12px; background: rgb(var(--v3-surface)); color: rgb(var(--v3-fg)); overflow: auto; }
.tcs-dlg::backdrop { background: rgb(0 0 0 / .55); }
.tcs-dlg [hidden] { display: none !important; }
.tcs { display: grid; gap: 14px; padding: 16px 18px 18px; }
.tcs-head { display: flex; align-items: flex-start; gap: 10px; }
.tcs-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; line-height: 22px; font-weight: 600; }
.tcs-name { min-width: 0; overflow-wrap: anywhere; }
.tcs-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.tcs-copy, .tcs-x { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: rgb(var(--v3-fg-3)); cursor: pointer; border-radius: 6px; }
.tcs-copy { width: 24px; height: 24px; }
.tcs-x { width: 32px; height: 32px; margin: -4px -6px 0 0; }
.tcs-copy:hover, .tcs-x:hover { color: rgb(var(--v3-fg)); background: rgb(var(--v3-fg) / .06); }
.tcs-state { padding: 0 7px; border-radius: 999px; border: 1px solid rgb(var(--v3-line-2)); font-size: 11px; font-weight: 500; }
.tcs-state.is-on { color: rgb(var(--v3-pos, 34 160 90)); border-color: rgb(var(--v3-pos, 34 160 90) / .45); }
.tcs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; font-size: 13px; }
.tcs-facts dt { font-size: 11.5px; color: rgb(var(--v3-fg-3)); }
.tcs-facts dd { margin: 0; color: rgb(var(--v3-fg)); }
.tcs-link { margin-left: 4px; font-weight: 500; color: rgb(var(--v3-accent)); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tcs-sec { display: grid; gap: 6px; }
.tcs-sec h3 { font-size: 13px; font-weight: 600; }
.tcs-sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcs-sec-h h3 { flex: 1 1 auto; }
.tcs-search { display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--v3-fg-3)); }
.tcs-search .input { width: 13rem; max-width: 100%; height: 32px; }
.tcs-list { display: grid; border: 1px solid rgb(var(--v3-line)); border-radius: 10px; overflow: hidden; max-height: 300px; overflow-y: auto; }
.tcs-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; }
.tcs-row + .tcs-row { border-top: 1px solid rgb(var(--v3-line)); }
.tcs-row.is-me { background: rgb(var(--tw-vip, 214 158 46) / .14); box-shadow: inset 3px 0 0 rgb(var(--tw-vip, 214 158 46)); }
.tcs-row.is-hit b { text-decoration: underline; text-underline-offset: 2px; }
.tcs-row.is-ticked { background: rgb(var(--v3-neg) / .07); }
.tcs-tick { width: 16px; height: 16px; flex: none; }
.tcs-who { flex: 1 1 auto; min-width: 0; display: grid; }
.tcs-who b { overflow-wrap: anywhere; }
.tcs-nm { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tcs-me { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: rgb(var(--v3-fg)); background: rgb(var(--tw-vip, 214 158 46) / .3); }
.tcs-who .sub, .tcs-figs .sub { font-size: 11px; color: rgb(var(--v3-fg-3)); }
.tcs-figs { display: grid; text-align: right; white-space: nowrap; }
.tcs-pick { display: grid; gap: 6px; }
.tcs-pick-b { width: 100%; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid rgb(var(--v3-line-2)); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.tcs-pick-b:hover { background: rgb(var(--v3-fg) / .04); }
.tcs-pick-m { font-size: 12px; color: rgb(var(--v3-fg-3)); }
.tcs-none, .tcs-empty { font-size: 13px; color: rgb(var(--v3-fg-3)); }
.tcs-log { font-size: 12px; color: rgb(var(--v3-fg-2)); }
.tcs-log summary { cursor: pointer; font-weight: 500; color: rgb(var(--v3-fg)); }
.tcs-log ul { display: grid; gap: 3px; margin-top: 6px; }
.tcs-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; border-top: 1px solid rgb(var(--v3-line)); }
.tcs-off { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: rgb(var(--v3-warn)); }
.tcs-off a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tcs-room { margin-right: auto; font-size: 12px; color: rgb(var(--v3-fg-3)); }
.tcs-chip { cursor: pointer; border: 0; font: inherit; }
.tcs-chip:hover, .tcs-chip:focus-visible { filter: brightness(1.08); outline: 2px solid rgb(var(--v3-accent, var(--v3-fg)) / .5); outline-offset: 1px; }
.tcs-cell { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tcs-cell:hover { color: rgb(var(--v3-accent)); }
@media (max-width: 640px) { .tcs-facts { grid-template-columns: 1fr; } .tcs-search .input { width: 100%; } .tcs-search { flex: 1 1 100%; } }

/* ---- long creator names (sweep 16 Nov 2026): a name never widens its table, its card or its box; it is cut with an ellipsis (the full name stays in the cell's text and the profile pop-up) ---- */
.tbl td .cr-nm:not(.crc-nm) { display: inline-block; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.lib-who { min-width: 0; } .lib-who .cr-nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-card-h { min-width: 0; } .ins-card-h h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-ex a { overflow-wrap: anywhere; }
.cn-pop a.block { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Staff › Ad credits (Lewis's idea L4): the log form, totals and entries */
.acr-flash { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: rgb(var(--v3-pos) / .12); color: rgb(var(--v3-fg)); }
.acr-form, .acr-filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 14px 16px; }
.acr-filters { padding: 10px 16px; align-items: flex-end; }
.acr-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 500; color: rgb(var(--v3-fg-2)); min-width: 150px; }
.acr-f .input { min-width: 150px; }
.acr-f-s { min-width: 110px; } .acr-f-s .input { min-width: 110px; width: 120px; }
.acr-f-w { flex: 1 1 260px; } .acr-f-w .input { width: 100%; }
.acr-f-tick { flex-direction: row; align-items: center; gap: 8px; min-width: 0; align-self: center; margin-top: 18px; min-height: 36px; }
.acr-opt { font-style: normal; font-weight: 400; color: rgb(var(--v3-fg-3)); }
.acr-hint { font-size: 11.5px; font-weight: 400; color: rgb(var(--v3-fg-3)); }
.acr-file { padding-top: 5px; }
.acr-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.acr-err { display: inline-block; margin-top: 2px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgb(220 38 38); color: #fff; }
.acr-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; font-size: 13px; color: rgb(var(--v3-fg-2)); }
.acr-sum b { color: rgb(var(--v3-fg)); }
.acr-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 1100px) { .acr-two { grid-template-columns: minmax(0, 1fr); } }
.acr-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 260px; }
.acr-logo { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.acr-bn { display: inline-block; max-width: 220px; vertical-align: bottom; }
.acr-note { max-width: 280px; font-size: 12.5px; }
.acr-note > span[title] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acr-by { display: block; font-size: 11px; color: rgb(var(--v3-fg-3)); }
.acr-shot { display: inline-flex; align-items: center; gap: 4px; color: rgb(var(--v3-accent)); font-size: 12px; }
.acr-expired { color: rgb(var(--v3-warn)); }
.acr-acts form { display: flex; gap: 4px; justify-content: flex-end; margin: 0; }
.acr-del { color: rgb(var(--v3-neg)); }
.acr-src { margin: 0; padding: 8px 16px; font-size: 11.5px; color: rgb(var(--v3-fg-3)); border-top: 1px solid rgb(var(--v3-line)); }
/* the creator app's staff section (Terry msg 3932): the brand reads "TikWhizz Creators" in the left menu */
.cs-word { font-size: 12px; font-weight: 600; color: rgb(var(--v3-fg-2)); margin-left: 2px; }
.twc-wl { display: block; margin-top: 4px; font-size: 12.5px; }
.twc-tbl.twc-wd td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; } .twc-tbl.twc-wd td[data-l="Wording"] { min-width: 340px; max-width: 520px; } .twc-tbl.twc-wd td[data-l="Goes to"] { min-width: 200px; max-width: 280px; font-size: 12.5px; color: rgb(var(--v3-fg-2)); }
.twc-tbl.twc-wd td[data-l="Message"] { min-width: 220px; max-width: 320px; }
.twc-mail-wrap { padding: 12px 16px 16px; }
.twc-mail { display: block; width: 100%; max-width: 660px; height: 940px; border: 1px solid rgb(var(--v3-line, 200 200 200)); border-radius: 10px; background: #f3f4f6; margin: 8px 0 12px; }
.twc-mail-txt pre { white-space: pre-wrap; font-size: 12px; margin: 8px 0 0; }

/* Overnight sweep 17 Nov: the creator app's staff pages at 390. Finger-sized links and ticks, and a status pill never wraps onto two rows. */
[data-twc-state], .tbl.stack td:not(.pin) .pill[data-twc-state] { white-space: nowrap; }
.sc-tick { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 640px) {
  .sc-tick { min-width: 44px; min-height: 44px; }
  .twc-card-t { display: inline-flex; align-items: center; min-height: 44px; }
  .twc-wl { display: flex; align-items: center; min-height: 44px; }
}

/* Overnight sweep 17 Nov, agency phone pass: the pager sizes, the automations' left-out and failed counts, sort links and the creator avatar button
   get the same invisible finger-sized ring as the other small controls (the look stays as it was). */
@media (max-width: 640px) {
  :where(a[data-per-pick], a.au-left, a.au-fail, a.go-sort, .crc-avbtn, a.ag-plus) { position: relative; }
  :is(a[data-per-pick], a.au-left, a.au-fail, a.go-sort, .crc-avbtn, a.ag-plus)::after { content: ""; position: absolute; inset: -9px -4px; }
}
/* Settings › Cruva switch-off › Cruva by shop (17 Nov 2026): on a phone the switches take the row's full width and wrap, never cut off */
.tbl.stack td.cs-act { grid-column: 1 / -1; width: 100%; justify-content: flex-start; }
.tbl.stack td.cs-act::before { display: none; }
.tbl.stack td.cs-act .btn { white-space: normal; text-align: left; height: auto; min-height: 44px; }

/* Follow-ups 17 Nov: Staff Switches on a phone. Switch, Prerequisites and Setting stack one under another, full width, so a long prerequisite never breaks mid-word. */
@media (max-width: 767px) {
  .tbl.stack.twc-sw tbody tr { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .tbl.stack.twc-sw tbody td { display: block; width: 100%; min-width: 0; text-align: left; padding-top: 6px; padding-bottom: 6px; }
  .tbl.stack.twc-sw tbody td::before { display: block; margin-bottom: 4px; }
  .tbl.stack.twc-sw tbody td.twc-sw-n::before { display: none; }
  .twc-pre-t { overflow-wrap: break-word; word-break: normal; }
}
/* Sample requests (team-ready audit, 17 Nov): a figure not read yet stays on one line in the narrow figure columns, small and grey, never cut */
#samples-form .ds-reqtbl td .v4-na { white-space: nowrap; max-width: none; font-size: 11px; letter-spacing: -.01em; }

/* Team-ready polish (17 Nov): Creator community > Payments, Brand hub and Retainers at phone width: every control you press is 44px or taller
   (the 1440 look is untouched: this is phones only). A tick box sits in a label that is the finger-sized target; the page's buttons, tabs,
   fields, pagers and sort headings take min-height 44px. Scoped to the three pages by an element each always draws. */
@media (max-width: 640px) {
  .pay-tkl { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
  #panel:is(:has(.pay-head), :has(.bh-top), :has(.rt-head), :has(.rt-add), :has(.rt-dhead)) :is(.btn-sm, .btn-xs, .cc-tab, .bh-tab, .bh-seg button, .bh-si-l, .tt-ico, .ds-mi,
      summary.btn, summary.tw-pg-sum, .tw-pg-n, .rt-open, a[data-per], th > a, select.input, input.input, textarea.input) { min-height: 44px; }
  #panel:is(:has(.pay-head), :has(.bh-top), :has(.rt-head), :has(.rt-add), :has(.rt-dhead)) :is(.btn-icon, .btn-xs, .tt-ico, .tw-pg-n) { min-width: 44px; }
  #panel:is(:has(.pay-head), :has(.bh-top), :has(.rt-head), :has(.rt-add), :has(.rt-dhead)) :is(.btn-sm, .btn-xs, .tt-ico, .tw-pg-n, .bh-seg button, .cc-tab) { display: inline-flex; align-items: center; justify-content: center; }
  #panel:has(.bh-top) .bh-seg button { padding-left: 16px; padding-right: 16px; }
  #panel:has(.bh-top) .bh-si-l { display: flex; align-items: center; justify-content: flex-start; text-align: left; }
  #panel:has(.bh-top) .bh-sw { width: 44px; height: 44px; margin-left: 0; align-items: center; justify-content: center; }
  #panel:has(.bh-top) .bh-sw span { flex: none; width: 34px; height: 20px; }
  #panel:has(.bh-top) summary { display: flex; align-items: center; min-height: 44px; }
  #panel:is(:has(.pay-head), :has(.rt-head), :has(.rt-add), :has(.rt-dhead)) .go-sizes > a { display: flex; align-items: center; min-height: 44px; }
  #panel:has(.rt-head, .rt-add, .rt-dhead) :is(.rp-preset, .rp-nav, .rp-day) { min-height: 44px; }
  #panel:has(.rt-head, .rt-add, .rt-dhead) .rp-nav { min-width: 44px; }
}

/* Terry msg 4528: a request's sample order in its details pane, with the same Cancel order as Sample orders (its phone rule is in the last block) */
.sr-socancel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.sr-socancel .btn { min-height: 28px; }
.sr-sowhy { font-variant-numeric: normal; }

/* Automation names open their detail in place (Terry msg 4967): a real link, underlined on hover and keyboard focus */
table.au-tbl td.cm-name a.au-nm-link { color: inherit; text-decoration: none; cursor: pointer; }
table.au-tbl td.cm-name a.au-nm-link:hover, table.au-tbl td.cm-name a.au-nm-link:focus-visible { color: rgb(var(--v3-accent)); text-decoration: underline; text-underline-offset: 3px; }
table.au-tbl td.cm-name a.au-nm-link:focus-visible { outline: 2px solid rgb(var(--v3-accent)); outline-offset: 2px; border-radius: 3px; }

/* An automation's creators table: Why wraps to at most two lines (the full words are in the cell's tooltip) so the table fits the card at 1280 to 1600 */
@media (min-width: 768px) {
  table.au-rows-tbl { width: 100%; }
  table.au-rows-tbl td { white-space: normal; }
  table.au-rows-tbl td.primary { white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
  table.au-rows-tbl td[data-au-state] { min-width: 8rem; max-width: 14rem; }
  table.au-rows-tbl td[data-l="First message"] { white-space: nowrap; }
  table.au-rows-tbl td.au-why { min-width: 12rem; width: 34%; }
}
table.au-rows-tbl td.au-why .au-why-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 767px) { table.au-rows-tbl td.au-why { grid-column: 1 / -1; white-space: normal; max-width: none; } }
@media (max-width: 767px) { table.au-rows-tbl td.au-why:has(.au-why-t:empty) { display: none; } }

/* Phone tap targets, 18 Nov 2026: the shared top bar's icons were 32px (the logo 23px, the help button 30px) and the bell panel's alert buttons 28px. On a phone
   (640px and under) the bar's plain icons (inbox, bell, search) and the shop button are a real 44px; the logo and the round help button keep their look and get a
   44px invisible ring (the bar has no room for more); the panel's buttons are real 44px. Desktop is untouched. Two classes each, so this wins over
   whats-new.css and the utility classes whichever loads last. */
@media (max-width: 640px) {
  .ds-top .wn-btn { width: 44px; height: 44px; }
  .ds-top > .ml-auto { gap: 4px; }   /* the 44px buttons give each other room: this keeps the shop's name whole */
  .ds-top button.btn-icon, .ds-top button.btn.btn-ghost { min-height: 44px; }
  .ds-top button.btn-icon { min-width: 44px; }
  .ds-top > a[aria-label="TikWhizz"], .ds-top .ph-btn { position: relative; }
  .ds-top > a[aria-label="TikWhizz"]::after { content: ""; position: absolute; inset: -6px -11px; }
  .ds-top .ph-btn::after { content: ""; position: absolute; inset: -7px; }
  .wn-panel .wn-al-go, .wn-panel .wn-markall { min-height: 44px; }
  .wn-panel .wn-al-go { min-width: 56px; justify-content: center; }
  .wn-panel .wn-al-x { width: 44px; height: 44px; }
  .wn-panel .wn-all { min-height: 44px; }
  .sr-socancel { display: flex; margin: 6px 0 0; }   /* Terry msg 4528: the details pane's Cancel order, a real 44px */
  .sr-socancel .btn { min-height: 44px; }
}
/* a message just sent from the inbox (Terry, 23 Nov 2026): its real state under the bubble and in the list until the hourly read brings TikTok's copy in */
.ib-sent { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-top: 2px; font-size: 11px; color: rgb(var(--v3-fg-3)); white-space: nowrap; }
.ib-sent b { font-weight: 600; }
.ib-sent-sent { color: rgb(var(--v3-pos)); }
.ib-sent-failed { color: rgb(var(--v3-neg)); white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
.ib-sent-unknown { color: rgb(var(--v3-warn)); white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
.ib-sent-why { color: rgb(var(--v3-fg-2)); font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.ib-sent-retry { color: rgb(var(--v3-primary)); font-weight: 600; text-decoration: underline; padding: 4px 0; }
.ib-prev .ib-sent { display: inline-flex; margin: 0 2px 0 0; vertical-align: -1px; white-space: nowrap; }
.ib-tick-gap { flex: none; width: 14px; }
.ib-thread > .ib2-new.has-sent { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 14px; }
