:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --border: #2a3542;
  --text: #e7eef6;
  --muted: #8b9aab;
  --accent: #3d9a78;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1b2a33 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #9fd4bc; }
.chrome {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 25, .92);
}
.top {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.brand { font-weight: 700; letter-spacing: .02em; }
.tabs { display: flex; gap: .25rem; margin-left: .5rem; flex-wrap: wrap; }
.lang { margin-left: auto; display: flex; gap: .25rem; }
.lang a {
  border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  padding: .25rem .55rem; border-radius: 4px; font-size: .8rem; letter-spacing: .04em;
}
.lang a.on, .lang a:hover { color: var(--text); border-color: var(--accent); }
.tab {
  appearance: none; border: 1px solid transparent; background: transparent;
  color: var(--muted); padding: .35rem .75rem; border-radius: 4px;
  cursor: pointer; font: inherit; font-size: .9rem; text-decoration: none;
}
.tab:hover, .tab.on { color: var(--text); border-color: var(--border); background: #1a222c; }
.hcaptcha-box {
  display: flex; flex-direction: column; gap: .45rem;
  padding: .55rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, .14);
  /* Keep challenge popup unclipped (old collapsed slot used overflow:hidden). */
  overflow: visible;
}
.hcaptcha-box iframe { max-width: 100%; }
.admin-plate {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .28rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.admin-plate .tabs { margin-left: 0; align-items: center; flex: 1; }
.admin-plate .tab { padding: .22rem .6rem; font-size: .85rem; }
.admin-plate .tab.on { background: #243044; border-color: var(--accent); }
.admin-plate .tab .n {
  display: inline-block; min-width: 1.1rem; padding: 0 .28rem;
  margin-left: .2rem; border-radius: 999px; font-size: .72rem; line-height: 1.25;
  background: #1e3a31; color: #8fd4b5; text-align: center;
}
.admin-plate .admin-logout { margin-left: auto; }
.admin-plate .admin-logout button { padding: .22rem .6rem; font-size: .85rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
body.wide .wrap { max-width: min(1760px, 98vw); padding-left: 1rem; padding-right: 1rem; }
body.seller-panel .wrap {
  max-width: min(1480px, 94vw);
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 25, .85);
}
.foot-inner {
  max-width: 1100px; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .82rem; color: var(--muted);
}
body.wide .foot-inner { max-width: min(1760px, 98vw); }
body.seller-panel .foot-inner { max-width: min(1480px, 94vw); }
.seller-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
  align-items: start;
}
.seller-create-form .span-2 { grid-column: 1 / -1; }
.seller-create-form .actions { display: flex; gap: .5rem; }
@media (max-width: 720px) {
  .seller-create-form { grid-template-columns: 1fr; }
  .seller-create-form .span-2 { grid-column: auto; }
}
.foot-inner a { color: #9fd4bc; }
.foot-inner .tox code {
  font-family: var(--mono); font-size: .74rem;
  color: var(--text); overflow-wrap: anywhere; word-break: break-all;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}
/* Login / OTP cards stay compact — not the wide seller/admin shelf. */
.card.auth {
  max-width: 26rem;
  width: 100%;
}
h1, h2 { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 650; }
/* Hidden from clients; HTML + FAQPage JSON-LD stay for GEO/crawlers. */
.geo-faq { display: none; }
.geo-faq details { margin: 0; }
.geo-faq summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 650;
  list-style: none;
}
.geo-faq summary::-webkit-details-marker { display: none; }
.geo-faq summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  color: var(--muted);
}
.geo-faq details[open] > summary { margin-bottom: .35rem; }
.geo-faq details[open] > summary::before { content: "▾"; }
.geo-faq h3 { margin: .85rem 0 .25rem; font-size: .95rem; font-weight: 650; }
.geo-faq p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); font-size: .85rem; }
.note {
  margin: .35rem 0 0;
  padding: .65rem .75rem;
  border-radius: 4px;
  background: #1a242e;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem;
  line-height: 1.4;
}
.stack { display: flex; flex-direction: column; gap: .65rem; }
.card.stack > h2.section-next {
  margin-top: .2rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
input, select, textarea {
  background: #121820; border: 1px solid var(--border); color: var(--text);
  padding: .45rem .55rem; border-radius: 4px; font: inherit;
}
textarea { font-family: var(--mono); font-size: .82rem; resize: vertical; }
fieldset.request-kind {
  border: 1px solid var(--border); border-radius: 4px; padding: .65rem .75rem; margin: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
fieldset.request-kind legend { padding: 0 .3rem; color: var(--muted); font-size: .85rem; }
.inline-check { flex-direction: row; align-items: center; gap: .45rem; color: var(--text); }
.inline-check input { width: auto; }
.provider-picks {
  max-height: 22rem; overflow: auto; border: 1px solid var(--border); border-radius: 4px;
  padding: .55rem .65rem; background: #121820;
}
.provider-pick-group + .provider-pick-group { margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.provider-pick-head {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center;
  margin: 0 0 .35rem;
}
.provider-pick-group .cat-label { margin: 0; font-size: .85rem; }
.provider-pick-head .request-whole-cat { margin: 0; font-size: .82rem; color: var(--muted); }
.provider-pick-group.is-whole-cat .provider-pick-list { opacity: .45; }
.provider-pick-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .25rem .55rem;
}
label.provider-pick { margin: 0; font-size: .88rem; }
button, .btn {
  appearance: none; border: 1px solid var(--border); background: #24303c; color: var(--text);
  padding: .4rem .7rem; border-radius: 4px; cursor: pointer; font: inherit; font-size: .82rem;
  text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: #1e3a31; border-color: #2d5a48; }
button.ghost { background: transparent; }
button.danger, .btn.danger { background: #3a2222; border-color: #5a3030; color: #efb0b0; }
button.danger:hover, .btn.danger:hover { border-color: #efb0b0; }
.user-id-row { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.table.users-table tr.banned-row td { opacity: .85; }
.table.users-table tr.shadow-row td { opacity: .9; }
.badge.shadow { background: #24303c; color: var(--muted); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td {
  text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--border);
  vertical-align: top; overflow-wrap: anywhere; word-break: break-word;
}
.table th { color: var(--muted); font-weight: 560; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.table.arrivals th.day, .table.arrivals td.day,
.table.arrivals th.count, .table.arrivals td.count {
  white-space: nowrap; word-break: normal; overflow-wrap: normal; width: 1%;
}
.badge {
  display: inline-block; padding: .1rem .4rem; border-radius: 4px;
  font-size: .75rem; background: #24303c; margin: 0 .15rem .15rem 0;
}
.badge.ok { background: #1e3a31; color: #8fd4b5; }
.badge.bad { background: #3a2222; color: #efb0b0; }
.badge.cat { background: #1e2a3a; border-color: #2a3a52; color: #9fc1e8; }
.actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.status-switch { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; max-width: 14rem; }
.status-switch button { font-size: .72rem; padding: .15rem .4rem; }
.seller-status { flex-wrap: nowrap; max-width: none; gap: .3rem; }
.seller-status .badge { margin: 0; }
.table.products-table { table-layout: fixed; width: 100%; }
.table.products-table th:nth-child(1) { width: 9%; }
.table.products-table th:nth-child(2) { width: 10%; }
.table.products-table th:nth-child(3) { width: 28%; }
.table.products-table th:nth-child(4) { width: 16%; }
.table.products-table th:nth-child(5) { width: 4.5rem; }
.table.products-table th:nth-child(6) { width: 12%; }
.table.products-table th:nth-child(7) { width: 7.5rem; }
.table.products-table th:nth-child(8) { width: 7rem; }
/* Seller products: Товар | Ключи | Комментарий | Цена | Статус | Когда | Удалить */
.table.seller-products-table th:nth-child(1) { width: 10%; }
.table.seller-products-table th:nth-child(2) { width: 22%; }
.table.seller-products-table th:nth-child(3) { width: 28%; }
.table.seller-products-table th:nth-child(4) { width: 4.5rem; }
.table.seller-products-table th:nth-child(5) { width: 14%; }
.table.seller-products-table th:nth-child(6) { width: 9.5rem; }
.table.seller-products-table th:nth-child(7) { width: 5.5rem; }
.table.seller-supplies-table th:nth-child(1) { width: 16%; }
.table.seller-supplies-table th:nth-child(2) { width: 48%; }
.table.seller-supplies-table th:nth-child(3) { width: 4.5rem; }
.table.seller-supplies-table th:nth-child(4) { width: 6rem; }
.table.seller-supplies-table th:nth-child(5) { width: 9.5rem; }
.table.seller-products-table td.prod-cell,
.table.seller-supplies-table td.prod-cell {
  font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.table.seller-products-table td.row-actions { white-space: nowrap; text-align: right; }
.table.seller-products-table .note-edit { flex-wrap: nowrap; }
.table.products-table td.source-cell {
  min-width: 0; font-size: .82rem; color: var(--muted);
  overflow: hidden; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
.table.products-table td.keys { min-width: 0; }
.table.products-table td.keys .detail-pre {
  max-width: 100%; margin: 0; padding: .35rem .45rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: normal; overflow-wrap: normal;
}
.table.products-table td.note-cell { min-width: 0; vertical-align: middle; }
.note-edit { display: flex; flex-wrap: nowrap; gap: .3rem; align-items: center; width: 100%; }
.note-edit input {
  flex: 1; min-width: 0; width: auto;
  font-size: .8rem; padding: .3rem .4rem;
}
.note-edit button { flex-shrink: 0; font-size: .72rem; padding: .2rem .4rem; }
.flash { padding: .55rem .7rem; border-radius: 4px; margin-bottom: .75rem; background: #24303c; border: 1px solid var(--border); }
.flash.error { border-color: #6a3030; color: #efb0b0; }
.flash.ok { border-color: #2d5a48; color: #8fd4b5; }
.htmx-indicator { display: none; }
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { display: inline; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.filters label { min-width: 160px; }
.row-inline { flex-direction: row; align-items: center; gap: .4rem; }
.feature-flag { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.feature-flag:last-of-type { border-bottom: 0; }
.feature-hint { margin: .15rem 0 0 1.5rem; }
.feature-away-msg { display: block; margin: .45rem 0 0 1.5rem; max-width: 36rem; }
.feature-away-msg textarea { width: 100%; margin-top: .25rem; }
.away-banner {
  padding: .55rem .75rem; border-radius: 4px; margin: 0 0 .75rem;
  background: #2a2830; border: 1px solid #4a4560; color: #d4c9ef;
  font-size: .9rem; line-height: 1.35;
}
.balance-banner {
  padding: .55rem .75rem; border-radius: 4px; margin: 0;
  background: #2a2830; border: 1px solid #4a4560; color: #d4c9ef;
  font-size: .88rem; line-height: 1.35;
}
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.prod {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: .9rem 1rem;
  text-decoration: none; color: var(--text);
  height: 100%;
}
.prod:hover { border-color: #2d5a48; }
.prod-title { font-weight: 600; font-size: .95rem; }
.prod-meta { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.price { font-size: 1.1rem; font-weight: 700; color: #7fd4ae; }
.prod > .price { margin-top: auto; }
.req-box, .key-box {
  white-space: pre-wrap; font-family: var(--mono); font-size: .85rem;
  background: #121820; border: 1px solid var(--border); border-radius: 4px; padding: .7rem .8rem;
}
.key-box { background: #10201a; border-color: #2d5a48; }
.balance { font-size: 1.6rem; font-weight: 700; color: #7fd4ae; }
.shop-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.credit-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.credit-row input[name="amount"] { width: 5.5rem; }
.pager { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cat-block { margin: .85rem 0 0; }
.cat-block summary { cursor: pointer; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.chip {
  border: 1px solid var(--border); background: #121820; color: var(--text);
  border-radius: 999px; padding: .25rem .6rem; font-size: .8rem; text-decoration: none;
}
.chip.on, .chip:hover { border-color: #2d5a48; background: #1e3a31; }
.chip .n { color: #7fd4ae; margin-left: .25rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .65rem;
}
/* Fixed columns so admin + seller cabinets match row density. */
.stats-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .stats-grid.cols-3,
  .stats-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  display: flex; flex-direction: column; gap: .2rem;
  background: #121820; border: 1px solid var(--border); border-radius: 6px;
  padding: .7rem .8rem;
  min-width: 0;
}
.stat.net { border-color: #2d5a48; background: #10201a; }
.day-split { display: flex; flex-wrap: wrap; gap: .3rem; }
.stat-label {
  color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  line-height: 1.25; overflow-wrap: anywhere;
}
.stat-value { font-size: 1.35rem; font-weight: 700; color: #7fd4ae; font-variant-numeric: tabular-nums; }
.stat .muted { font-size: .78rem; line-height: 1.3; }
.stats-sub { margin: 1.25rem 0 .35rem; font-size: 1rem; font-weight: 600; }
.sales-tops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.sales-top .stats-sub { margin-top: 0; }
.sales-top-table { margin-top: .45rem; }
.sales-top-table th:last-child,
.sales-top-table td:last-child { text-align: right; }
.table-wrap {
  margin-top: .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
  background: rgba(0, 0, 0, .10);
}
.table-wrap .table { margin: 0; }
.table-wrap .table th:first-child,
.table-wrap .table td:first-child { padding-left: .65rem; }
.table-wrap .table th:last-child,
.table-wrap .table td:last-child { padding-right: .65rem; }
.table-wrap .table tbody tr:last-child td { border-bottom: none; }
.table.earnings-days-table { margin-top: .5rem; }
.table.earnings-days-table th:last-child,
.table.earnings-days-table td:last-child { text-align: right; }
.table-wrap .table.earnings-days-table { margin-top: 0; }
.supplier-payout-create,
.topup-create,
.seller-manual-sale-create,
.ad-edit {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, .10);
  padding: .55rem .7rem .7rem;
}
.supplier-payout-create > summary,
.topup-create > summary,
.seller-manual-sale-create > summary,
.ad-edit > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.supplier-payout-create > summary::-webkit-details-marker,
.topup-create > summary::-webkit-details-marker,
.seller-manual-sale-create > summary::-webkit-details-marker,
.ad-edit > summary::-webkit-details-marker { color: var(--muted); }
.supplier-payout-create > summary::marker,
.topup-create > summary::marker,
.seller-manual-sale-create > summary::marker,
.ad-edit > summary::marker { color: var(--muted); }
.supplier-payout-create[open] > summary,
.topup-create[open] > summary,
.seller-manual-sale-create[open] > summary,
.ad-edit[open] > summary { margin-bottom: .55rem; }
.supplier-payout-create-summary strong,
.topup-create-summary strong,
.seller-manual-sale-create-summary strong,
.ad-edit-summary strong { font-size: 1.05rem; }
.ad-edit { margin: .75rem 0; }
.ad-edit-form { max-width: 28rem; }
.topup-create { margin: .75rem 0; }
.ad-slots-table .actions {
  white-space: nowrap;
}
.supplier-payouts-table { margin-top: .75rem; }
.supplier-payouts-table .note-edit { width: 100%; max-width: 22rem; display: inline-flex; gap: .35rem; align-items: center; }
.supplier-payouts-table .note-edit input[name="note"] { flex: 1; min-width: 8rem; }
.earnings-days-list {
  margin-top: .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, .10);
}
.earnings-day-cols {
  display: grid;
  grid-template-columns: 7.5rem minmax(4.5rem, .7fr) minmax(6rem, 1fr) minmax(6rem, 1fr) minmax(4rem, .55fr) minmax(6.5rem, 1fr);
  gap: .35rem .75rem;
  align-items: center;
  width: 100%;
}
.earnings-day-head {
  font-size: .75rem; font-weight: 560;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
  padding: .5rem .65rem;
  border-bottom: 1px solid var(--border);
}
.earnings-day {
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.earnings-day:last-child { border-bottom: none; }
.earnings-day > summary {
  cursor: pointer;
  list-style: none;
  padding: .55rem .65rem;
}
.earnings-day > summary::-webkit-details-marker { display: none; }
.earnings-day > summary::marker { content: ""; }
.earnings-day > summary:hover { background: rgba(61, 154, 120, .05); }
.earnings-day[open] > summary {
  border-bottom: 1px solid var(--border);
  background: rgba(61, 154, 120, .06);
}
.earnings-day-summary .ed-sold,
.earnings-day-summary .ed-rep { font-variant-numeric: tabular-nums; }
.earnings-day-summary .ed-net {
  font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
}
.earnings-day-summary .ed-rev,
.earnings-day-summary .ed-ref {
  text-align: right; font-variant-numeric: tabular-nums;
}
.earnings-day-head .ed-rev,
.earnings-day-head .ed-ref,
.earnings-day-head .ed-net { text-align: right; }
.earnings-day-body {
  padding: .55rem .65rem .75rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, .14);
}
.earnings-day-orders { margin: 0; }
.earnings-payout-row {
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--border);
  background: rgba(61, 154, 120, .04);
}
.earnings-payout-row:last-child { border-bottom: none; }
.earnings-payout-row .ed-payout-info {
  grid-column: 2 / 6;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  align-items: baseline;
  min-width: 0;
}
.earnings-payout-row .ed-payout-supplier { font-weight: 600; }
.earnings-payout-row .ed-payout-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}
.earnings-payout-row .ed-payout-amt {
  grid-column: 6;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .earnings-days-list { overflow-x: auto; }
  .earnings-day-cols {
    min-width: 38rem;
    grid-template-columns: 7rem 4.5rem 6rem 6rem 4rem 6.5rem;
  }
}
.chips.stats { flex-direction: column; align-items: stretch; }
.chips.stats .chip {
  border-radius: 6px; display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: baseline;
}
.cat-label { margin: .85rem 0 .35rem; font-weight: 600; }
.cred-group { margin: .35rem 0; }
.cred-group summary { cursor: pointer; }
.notices-table td.actions {
  width: 8.5rem; white-space: nowrap; vertical-align: top;
}
.notices-table td.actions .inline-form { display: inline-block; }
.notice-title { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: baseline; }
.notice-detail { margin-top: .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
tr.notice-unread td { background: rgba(61, 154, 120, .08); }
.request-create > summary {
  cursor: pointer; list-style-position: outside;
  display: flex; flex-direction: column; gap: .25rem;
}
.request-create > summary::-webkit-details-marker { color: var(--muted); }
.request-create[open] > summary { margin-bottom: .35rem; }
.request-create-summary strong { font-size: 1.05rem; }
.request-group {
  margin: .45rem 0; border: 1px solid var(--border); border-radius: 6px; padding: .35rem .65rem .55rem;
}
.request-group summary { cursor: pointer; list-style-position: outside; }
.request-summary {
  display: flex; flex-direction: column; gap: .35rem; padding: .25rem 0;
}
.request-main { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: baseline; }
.request-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: center; justify-content: space-between;
}
.request-meta-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.request-contact { font-size: .9rem; }
.request-delete { flex: 0 0 auto; margin-left: auto; }
.group-body { margin-top: .5rem; }
.price-cell { white-space: nowrap; }
.price-row { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.validate-btn { font-size: .8rem; padding: .15rem .45rem; }
.validate-result { margin-top: .3rem; font-size: .8rem; max-width: 18rem; white-space: normal; }
.validate-result .validate-msg { color: var(--muted); }
.success-toolbar { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.success-dump, .cred-src { display: none; }
.detail-pre, .code {
  margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: .78rem;
  background: #121820; border: 1px solid var(--border); border-radius: 4px; padding: .45rem .55rem;
}
.page-head {
  display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center;
}
.page-head h2 { margin: 0; }
.provider-export-bar .export-bar-label { margin: 0; }
.provider-export-bar .page-head { justify-content: space-between; }
.export-bar-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.category-check-results .validate-msg { color: var(--muted); font-size: .85rem; max-width: 22rem; word-break: break-word; }
.category-check-table tr.check-ok td:first-child { border-left: 3px solid #3d8f6e; }
.category-check-table tr.check-fail td:first-child { border-left: 3px solid #a85a5a; }
.category-check-table .keys { max-width: 28rem; }
.buyer-meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: baseline;
  font-size: .9rem;
}
.buyer-meta .price { font-size: 1rem; }
.buyer-credit { margin-top: .55rem; }
.buyer-credit input[name="amount"] { width: 5.5rem; }
.buyer-credit input[name="note"] { width: 12rem; max-width: 100%; }
.table.buyer-history-table td.note-cell {
  width: 42%; min-width: 18rem; max-width: none;
  white-space: normal; vertical-align: top;
}
.table.buyer-history-table td.note-cell .tx-cell {
  display: block; margin-bottom: .35rem;
  white-space: normal; overflow-wrap: anywhere;
}
.table.buyer-history-table .history-note-edit {
  display: flex; flex-direction: column; align-items: stretch;
  gap: .35rem; width: 100%; max-width: none;
}
.table.buyer-history-table .history-note-edit textarea {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 2.6rem; resize: vertical;
  font: inherit; line-height: 1.4;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.table.buyer-history-table .history-note-edit button { align-self: flex-start; }
.review-buyers-list { display: flex; flex-direction: column; gap: .35rem; }
.review-buyer-cols {
  display: grid;
  grid-template-columns: 3.5rem minmax(10rem, 1.6fr) 5.5rem 5.5rem 11rem 6.5rem;
  gap: .45rem .7rem;
  align-items: center;
}
.review-buyer-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .02em;
  padding: 0 .15rem .2rem;
}
.review-buyer {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, .12);
}
.review-buyer > summary {
  cursor: pointer;
  list-style: none;
  padding: .55rem .65rem;
}
.review-buyer > summary::-webkit-details-marker { display: none; }
.review-buyer > summary::marker { content: ""; }
.review-buyer[open] > summary {
  border-bottom: 1px solid var(--border);
  background: rgba(61, 154, 120, .06);
}
.review-buyer-summary .rb-id,
.review-buyer-summary .rb-cnt { font-variant-numeric: tabular-nums; }
.review-buyer-summary .rb-cnt { text-align: center; }
.review-buyer-summary .rb-ago {
  white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600;
}
.review-buyer-summary .rb-when { white-space: nowrap; }
.review-buyer-summary .rb-go { text-align: right; }
.review-buyer-toggle { pointer-events: none; }
.review-buyer[open] .review-buyer-toggle { border-color: var(--accent, #3d9a78); color: #8fd4b5; }
.review-buyer-body { padding: .55rem .65rem .7rem; overflow-x: auto; }
.review-buyer-orders { margin: 0; table-layout: fixed; width: 100%; }
.review-buyer-orders th:nth-child(1),
.review-buyer-orders td.num {
  width: 3.2rem; white-space: nowrap;
}
.review-buyer-orders th:nth-child(2),
.review-buyer-orders td:nth-child(2) {
  width: 7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-buyer-orders th:nth-child(3),
.review-buyer-orders td.price-cell {
  width: 4.5rem; white-space: nowrap;
}
.review-buyer-orders th:nth-child(4),
.review-buyer-orders td.source-cell {
  width: 12rem; overflow: hidden; white-space: pre-wrap; word-break: break-all;
  overflow-wrap: anywhere; font-size: .78rem; vertical-align: top;
}
.review-buyer-orders th:nth-child(5) {
  width: 12rem; min-width: 8rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.review-buyer-orders td.order-creds {
  width: 12rem; min-width: 8rem;
}
.review-buyer-orders th:nth-child(6),
.review-buyer-orders td.note-cell { width: 9rem; overflow: hidden; vertical-align: top; }
.review-buyer-orders th:nth-child(7),
.review-buyer-orders td.actions {
  width: 11.5rem; vertical-align: top;
}
.review-buyer-orders th:nth-child(8),
.review-buyer-orders td.when {
  width: 10.5rem; white-space: nowrap; vertical-align: top;
}
.review-buyer-orders th:nth-child(9),
.review-buyer-orders td.hide-cell {
  width: 5.5rem; white-space: nowrap; vertical-align: top;
}
.review-buyer-orders td.hide-cell .inline-form { display: block; }
.review-buyer-orders td.hide-cell button {
  width: 100%; font-size: .72rem; padding: .25rem .4rem;
}
.review-buyer-orders td.order-creds,
.review-buyer-orders td.note-cell,
.review-buyer-orders td.source-cell {
  min-width: 0; overflow: hidden;
}
.review-buyer-orders td.order-creds .detail-pre {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  margin: 0; overflow: hidden;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .review-buyer-cols {
    grid-template-columns: 3rem 1fr auto;
    grid-template-areas:
      "id buyer go"
      "cnt ago when";
  }
  .review-buyer-head { display: none; }
  .review-buyer-cols .rb-id { grid-area: id; }
  .review-buyer-cols .rb-buyer { grid-area: buyer; }
  .review-buyer-cols .rb-cnt { grid-area: cnt; }
  .review-buyer-cols .rb-ago { grid-area: ago; }
  .review-buyer-cols .rb-when { grid-area: when; }
  .review-buyer-cols .rb-go { grid-area: go; }
}
a.buyer-link {
  color: #8fd4b5; text-decoration: underline; text-underline-offset: 2px;
}
a.buyer-link:hover {
  color: #c6f0dc;
}
a.buyer-link .mono { border-bottom: none; }
.table.topups-table {
  table-layout: fixed; width: 100%;
}
.table.topups-table th:nth-child(1),
.table.topups-table td.num {
  width: 3.2rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.topups-table th:nth-child(2),
.table.topups-table td.price-cell {
  width: 4.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.topups-table th:nth-child(3),
.table.topups-table td.buyer-cell {
  width: 14rem; min-width: 0; overflow-wrap: anywhere; word-break: break-all;
}
.table.topups-table th:nth-child(4),
.table.topups-table td.tx-cell {
  width: auto; max-width: 0; min-width: 0;
  font-size: .78rem; overflow-wrap: anywhere; word-break: break-all;
}
.table.topups-table th:nth-child(5),
.table.topups-table td.actions {
  width: 7.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch;
}
.table.topups-table td.actions .inline-form { display: block; }
.table.topups-table td.actions button { width: 100%; }
.table.topups-table th:nth-child(6),
.table.topups-table td.when {
  width: 11rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
/* Cabinet topups: amount | tx | status | actions | when */
.table.topups-table.cabinet-topups th:nth-child(1),
.table.topups-table.cabinet-topups td.price-cell {
  width: 4.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.topups-table.cabinet-topups th:nth-child(2),
.table.topups-table.cabinet-topups td.tx-cell {
  width: auto; max-width: 0; min-width: 0;
  font-size: .78rem; overflow-wrap: anywhere; word-break: break-all;
}
.table.topups-table.cabinet-topups th:nth-child(3),
.table.topups-table.cabinet-topups td.status-cell {
  width: 6.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.topups-table.cabinet-topups th:nth-child(4),
.table.topups-table.cabinet-topups td.actions {
  width: 9.5rem; white-space: normal; word-break: normal; overflow-wrap: normal;
  vertical-align: middle;
}
.table.topups-table.cabinet-topups td.actions .inline-form { display: block; }
.table.topups-table.cabinet-topups td.actions button {
  width: 100%; font-size: .72rem; padding: .3rem .45rem; line-height: 1.2;
  white-space: normal;
}
.table.topups-table.cabinet-topups th:nth-child(5),
.table.topups-table.cabinet-topups td.when {
  width: 11rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.orders-table,
.table.user-orders-table,
.table.refund-orders-table {
  table-layout: fixed; width: 100%;
}
.table.orders-table th:nth-child(1),
.table.orders-table td.num {
  width: 3.2rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.orders-table th:nth-child(2),
.table.orders-table td:nth-child(2) {
  width: 7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: normal; overflow-wrap: normal;
}
.table.orders-table th:nth-child(3),
.table.orders-table td.price-cell {
  width: 4.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.orders-table th:nth-child(4),
.table.orders-table td.buyer-cell {
  width: 8.5rem; overflow: hidden; word-break: normal; overflow-wrap: normal; vertical-align: top;
}
.table.orders-table th:nth-child(5) {
  width: 11rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.orders-table td.source-cell {
  width: 11rem; overflow: hidden; white-space: pre-wrap; word-break: break-all;
  overflow-wrap: anywhere; font-size: .78rem; vertical-align: top;
}
.table.orders-table th:nth-child(6) {
  width: 12rem; min-width: 8rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.orders-table td.order-creds {
  width: 12rem; min-width: 8rem; /* keep Ключ readable; clip long tokens inside */
}
.table.orders-table th:nth-child(7),
.table.orders-table td.note-cell { width: 9rem; overflow: hidden; vertical-align: top; }
.table.orders-table th:nth-child(8),
.table.orders-table td.actions {
  width: 11.5rem; vertical-align: top;
  word-break: normal; overflow-wrap: normal;
}
.table.orders-table th:nth-child(9),
.table.orders-table td.when {
  width: 10.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal; vertical-align: top;
}
.table.orders-table td.order-creds,
.table.orders-table td.note-cell,
.table.orders-table td.source-cell {
  min-width: 0; overflow: hidden;
}
.table.orders-table td.order-creds .detail-pre {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  margin: 0; overflow: hidden;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
/* Refund queue: no Source; has Reason + Hide (10 cols). Do not reuse orders-table nth-child map. */
.table.refund-orders-table th:nth-child(1),
.table.refund-orders-table td.num {
  width: 3.2rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.refund-orders-table th:nth-child(2),
.table.refund-orders-table td:nth-child(2) {
  width: 7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: normal; overflow-wrap: normal;
}
.table.refund-orders-table th:nth-child(3),
.table.refund-orders-table td.price-cell {
  width: 4.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.refund-orders-table th:nth-child(4),
.table.refund-orders-table td.buyer-cell {
  width: 8.5rem; overflow: hidden; word-break: normal; overflow-wrap: normal; vertical-align: top;
}
.table.refund-orders-table th:nth-child(5) {
  width: 12rem; min-width: 8rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.refund-orders-table td.order-creds {
  width: 12rem; min-width: 8rem;
}
.table.refund-orders-table th:nth-child(6),
.table.refund-orders-table th:nth-child(7),
.table.refund-orders-table td.note-cell {
  width: 8.5rem; overflow: hidden; vertical-align: top;
}
.table.refund-orders-table th:nth-child(8),
.table.refund-orders-table td.actions {
  width: 11.5rem; vertical-align: top;
  word-break: normal; overflow-wrap: normal;
}
.table.refund-orders-table th:nth-child(9),
.table.refund-orders-table td.when {
  width: 10.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal; vertical-align: top;
}
.table.refund-orders-table th:nth-child(10),
.table.refund-orders-table td.hide-cell {
  width: 5.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal; vertical-align: top;
}
.table.refund-orders-table td.hide-cell .inline-form { display: block; }
.table.refund-orders-table td.hide-cell button {
  width: 100%; font-size: .72rem; padding: .25rem .4rem;
}
.table.refund-orders-table td.order-creds,
.table.refund-orders-table td.note-cell {
  min-width: 0; overflow: hidden;
}
.table.refund-orders-table td.order-creds .detail-pre {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  margin: 0; overflow: hidden;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
.hidden-refunds > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.hidden-refunds > summary::-webkit-details-marker { color: var(--muted); }
.hidden-refunds > summary::marker { color: var(--muted); }
.hidden-refunds[open] > summary { margin-bottom: .55rem; }
.hidden-refunds-summary strong { font-size: 1.05rem; }
.actions-stack {
  display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
}
.actions-stack .inline-form { display: block; }
.actions-stack button {
  width: 100%; font-size: .72rem; padding: .25rem .4rem;
  white-space: normal; word-break: normal; overflow-wrap: break-word;
  text-align: center; line-height: 1.2;
}

.table.user-orders-table th:nth-child(1),
.table.user-orders-table td.num {
  width: 3.2rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table th:nth-child(2),
.table.user-orders-table td:nth-child(2) {
  width: 7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table th:nth-child(3),
.table.user-orders-table td.price-cell {
  width: 4.5rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table th:nth-child(4),
.table.user-orders-table td.source-cell {
  width: 11rem; overflow: hidden; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
  font-size: .78rem; vertical-align: middle;
}
.table.user-orders-table th:nth-child(5) {
  width: 12rem; min-width: 8rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table td.order-creds {
  width: 12rem; min-width: 8rem;
}
.table.user-orders-table th:nth-child(6),
.table.user-orders-table td.note-cell { width: 11rem; overflow: hidden; }
.table.user-orders-table th:nth-child(7),
.table.user-orders-table td.status-cell {
  width: 11rem; white-space: normal; vertical-align: top;
  word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table td.status-cell {
  display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
}
.table.user-orders-table td.status-cell .inline-form { display: block; }
.table.user-orders-table td.status-cell button {
  width: 100%; font-size: .72rem; padding: .25rem .4rem;
  white-space: normal; word-break: normal; overflow-wrap: break-word;
  text-align: center; line-height: 1.2;
}
.page-head #issue-add { margin-left: auto; }
.table.user-orders-table th:nth-child(8),
.table.user-orders-table td.when {
  width: 11rem; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.table.user-orders-table td.order-creds,
.table.user-orders-table td.note-cell,
.table.user-orders-table td.source-cell {
  min-width: 0; vertical-align: middle; overflow: hidden;
}
.table.user-orders-table td.order-creds .detail-pre {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  margin: 0; overflow: hidden;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
.cred-line {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .3rem; width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
}
.cred-line .detail-pre { width: 100%; }
.cred-line .copy-one {
  flex-shrink: 0; font-size: .72rem; padding: .2rem .4rem;
}
.users-scroll { overflow-x: auto; max-width: 100%; }
.table.users-table { table-layout: auto; width: max-content; min-width: 100%; }
.table.users-table th,
.table.users-table td {
  white-space: nowrap; word-break: normal; overflow-wrap: normal; vertical-align: middle;
}
.table.users-table td.user-id .user-id-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
}
.table.users-table td.user-id button { font-size: .72rem; padding: .2rem .4rem; }
.table.users-table td.mono,
.table.users-table td.contact {
  white-space: normal; max-width: 16rem; overflow-wrap: anywhere;
}
.table.users-table td.mono { font-size: .72rem; line-height: 1.35; }
.table.users-table td.num,
.table.users-table td.price-cell { text-align: right; font-variant-numeric: tabular-nums; }
.table.users-table .credit-row { flex-wrap: wrap; }
.table.users-table .credit-row input[name="amount"] { width: 4.6rem; padding: .3rem .35rem; }
.table.users-table .credit-row input[name="note"] { width: 8rem; padding: .3rem .35rem; }
.table.users-table .credit-row button,
.table.users-table td.go .btn { font-size: .75rem; padding: .3rem .45rem; }
.table.cat-table { min-width: 0; }
.table.cat-table col.domain { width: 20%; }
.table.cat-table col.keys { width: 44%; }
.table.cat-table col.when { width: 11.5rem; }
.table.cat-table col.actions-col { width: 10.5rem; }
.table.cat-table td.actions { width: 10.5rem; }
.table.cat-table .actions { flex-direction: column; align-items: stretch; }
.table.cat-table .actions button { width: 100%; }
.table.cat-table .body-row td { padding-bottom: .65rem; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 1.25rem 1rem; overflow: auto; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 10, 14, .72); }
.modal-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: calc(100vh - 3rem); overflow: auto; margin-top: 1rem; }
#replace-picker .modal-panel {
  width: min(1080px, 96vw);
  max-height: calc(100vh - 2rem);
  margin-top: .5rem;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.modal-head h2 { margin: 0; }
.modal-close { font-size: 1.35rem; line-height: 1; padding: .15rem .45rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
#note-prompt .modal-panel { width: min(420px, 100%); margin-top: 12vh; }
#note-prompt .note-prompt-body { margin: 0; white-space: pre-wrap; }
#note-prompt .note-prompt-field { display: flex; flex-direction: column; gap: .35rem; }
#note-prompt .note-prompt-field input { width: 100%; }
.inline-check { flex-direction: row !important; align-items: center; gap: .45rem !important; color: var(--text); }
.replace-picker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; max-height: 28vh; overflow: auto; }
#replace-picker .replace-picker-list { max-height: min(52vh, 28rem); }
.replace-picker-or { margin: .15rem 0 0; text-align: center; }
#replace-picker-creds { min-height: 6.5rem; }
#replace-picker #replace-picker-creds { min-height: 8rem; }
.replace-pick-item {
  border: 1px solid var(--border); border-radius: 4px; padding: .55rem .65rem; cursor: pointer;
  background: #121820;
}
.replace-pick-item:hover, .replace-pick-item.on { border-color: var(--accent); background: #1a2c26; }
.replace-pick-title { font-weight: 560; margin-bottom: .15rem; }
.replace-pick-meta { font-size: .78rem; margin-bottom: .35rem; }
.replace-pick-creds { margin: 0; max-height: 6rem; overflow: auto; font-size: .72rem; }
#replace-picker .replace-pick-creds { max-height: 9rem; }

@media (max-width: 860px) {
  .table { display: block; overflow-x: auto; }
  .table.orders-table,
  .table.user-orders-table,
  .table.refund-orders-table,
  .table.review-buyer-orders,
  .table.products-table,
  .table.topups-table,
  .table.users-table { display: table; overflow-x: visible; }
  .tabs { margin-left: 0; }
}

.prod-note-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .45rem;
  margin: 0;
}
.prod-note-line .prod-note { margin: 0; }
.info-tip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-size: .72rem; font-weight: 700; line-height: 1;
  text-transform: none; letter-spacing: 0;
  cursor: help;
  vertical-align: middle;
}
.info-tip:hover, .info-tip:focus {
  color: var(--text); border-color: var(--accent); outline: none;
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: calc(100% + .45rem);
  transform: translateX(-50%);
  width: min(22rem, 70vw);
  padding: .55rem .7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #121820;
  color: var(--text);
  font-size: .78rem; font-weight: 400; line-height: 1.35;
  text-transform: none; letter-spacing: 0;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
  z-index: 30;
}
.info-tip:hover::after, .info-tip:focus::after {
  opacity: 1; visibility: visible;
}
.table th .info-tip { margin-left: .35rem; }
.ad-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  align-items: stretch;
}
.ad-row-preview { margin: .35rem 0 .85rem; }
.ad-slot {
  min-width: 0;
  aspect-ratio: 468 / 60;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot:not(:empty) {
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--border);
}
.ad-slot-busy { opacity: .55; }
.ad-slot .ad-link {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.ad-empty {
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  padding: .25rem .4rem;
}
.ad-admin-preview {
  width: 100%;
  aspect-ratio: 468 / 60;
  object-fit: fill;
  display: block;
  background: #0b1014;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.ad-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.ad-upload-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, .10);
  padding: .75rem .85rem .85rem;
  gap: .7rem;
}
.ad-upload-card > strong {
  display: block;
  margin: 0;
  line-height: 1.3;
}
.ad-toggle-form {
  margin: 0;
}
.ad-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  margin: 0;
  padding: .5rem .6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.ad-toggle.on {
  border-color: var(--accent, #3d8b6e);
}
.ad-toggle-track {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.ad-toggle.on .ad-toggle-track {
  background: var(--accent, #3d8b6e);
  border-color: var(--accent, #3d8b6e);
}
.ad-toggle-knob {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #e8eee9;
}
@media (max-width: 900px) {
  .ad-upload-grid { grid-template-columns: 1fr; gap: 1.15rem; }
}

/* easyboosty storefront overrides */
.brand { color: var(--text); text-decoration: none; }
.wrap { flex: 1; width: 100%; box-sizing: border-box; }
.badge.cat { border: 1px solid #2a3a52; }
.card.auth { margin: 0 auto; }
body.auth-page .wrap { align-items: center; padding-top: 2.5rem; }
body.auth-page .card.auth { margin: 0; }
/* Chips card + grid live inside #catalog (HTMX swap); match .wrap gap. */
#catalog { display: flex; flex-direction: column; gap: 1rem; }
.price-easy { font-weight: 700; color: #7fd4ae; }
.price-boosty { text-decoration: line-through; color: var(--muted); font-size: .9em; margin-left: .25rem; }
.price-discount { color: #8fd4b5; font-size: .85em; margin-left: .25rem; }
.prose { font-size: .92rem; line-height: 1.55; }
.prose h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.prose p, .prose ol, .prose ul { margin: 0 0 .65rem; }
.prose .highlight, .highlight { color: #7fd4ae; font-weight: 600; }
.article-body { font-size: 1rem; line-height: 1.65; white-space: pre-wrap; }
.emd-bridge .emd-lead { font-size: 1.05rem; line-height: 1.55; margin: 0; }
.emd-bridge .emd-body { white-space: normal; }
.emd-bridge .emd-body h2 { font-size: 1.1rem; margin: 1.25rem 0 .45rem; }
.emd-bridge .emd-body p { margin: 0 0 .75rem; }
.emd-bridge .emd-body ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.emd-bridge .shop-actions { margin: .85rem 0; }
.article-page .shop-actions { margin: .75rem 0 1rem; }
.article-page .article-cta { margin-top: 1.25rem; }
.article-page .btn.primary { font-weight: 600; }
.updates-feed { display: flex; flex-direction: column; gap: 1rem; }
.update-post {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.update-post:first-child { border-top: 0; padding-top: 0; }
.update-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 600; }
.update-when { display: block; margin-bottom: .55rem; font-size: .82rem; }
.update-body a { color: #9fd4bc; }
.btn-spinner {
  display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%;
  animation: shop-spin .7s linear infinite; vertical-align: -0.15em; margin-right: .4rem;
}
@keyframes shop-spin { to { transform: rotate(360deg); } }
