/* ============================================================
   Gratis Hub — ops feed UI
   Clean header · segmented tabs · dense list rows · quiet chrome
   ============================================================ */

.syndicate-page.gratis-hub,
.gratis-hub {
  --gh-radius: 16px;
  --gh-radius-sm: 11px;
  --gh-line: rgba(var(--ovl), 0.09);
  --gh-fill: rgba(var(--ovl), 0.035);
  --gh-fill-2: rgba(var(--ovl), 0.07);
  --gh-soft: rgba(var(--ovl), 0.045);
  --gh-hot: #f87171;
  --gh-warm: #fbbf24;
  --gh-ok: #6ee7b7;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: calc(28px + var(--safe-bottom, 0px));
  box-sizing: border-box;
}

/* ── Chrome header ─────────────────────────────────────────── */
.gh-chrome {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px 18px 18px;
  border-radius: 20px;
  border: 1px solid var(--gh-line);
  background:
    linear-gradient(165deg, rgba(var(--accent-rgb, var(--green-rgb)), 0.09), transparent 46%),
    var(--gh-fill);
  box-sizing: border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.gh-chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.gh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gh-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.16);
  color: var(--accent, var(--green));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, var(--green-rgb)), 0.22);
  flex: 0 0 auto;
}
.gh-brand-mark i { width: 22px; height: 22px; }
.gh-brand-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  line-height: 1;
}
.gh-brand-title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--tx-0);
  line-height: 1;
}

.gh-chrome-side {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.gh-mode {
  display: grid;
  gap: 4px;
}
.gh-mode > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-3);
  padding-left: 2px;
}
.gh-icon-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.05);
  color: var(--tx-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.gh-icon-btn i { width: 16px; height: 16px; }
.gh-icon-btn:hover {
  background: rgba(var(--ovl), 0.1);
  color: var(--tx-0);
  border-color: rgba(var(--ovl), 0.16);
}

/* Explicit models CTA — text so it cannot hide as a tiny bare icon */
.gh-models-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px !important;
  border-radius: 11px;
  border: 1px solid rgba(var(--accent-rgb, var(--green-rgb)), 0.35);
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.14);
  color: var(--accent, var(--green));
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.gh-models-cta i { width: 15px; height: 15px; }
.gh-models-cta:hover {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.22);
}
.syndicate-page.gratis-hub .gh-abtn.is-models,
.gratis-hub .gh-abtn.is-models {
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.32) !important;
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.12) !important;
}
.syndicate-page.gratis-hub .gh-abtn.is-models > span,
.gratis-hub .gh-abtn.is-models > span,
.syndicate-page.gratis-hub .gh-abtn.is-models i,
.gratis-hub .gh-abtn.is-models i {
  color: var(--accent, var(--green)) !important;
}

.gh-select.is-compact,
.gh-btn.is-compact {
  min-height: 38px;
  font-size: 13px;
  border-radius: 11px;
  padding: 0 14px;
}
.gh-btn.is-compact.is-icon {
  width: 38px;
  padding: 0;
}
.gh-btn.is-compact i { width: 15px; height: 15px; }

/* Primary action grid — even tiles
   High specificity under .gratis-hub so global button styles can't strip it. */
.syndicate-page.gratis-hub .gh-actions,
.gratis-hub .gh-actions {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.syndicate-page.gratis-hub .gh-actions > button,
.gratis-hub .gh-actions > button,
.syndicate-page.gratis-hub button.gh-abtn,
.gratis-hub button.gh-abtn,
.gh-abtn {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid var(--gh-line) !important;
  background: rgba(var(--ovl), 0.055) !important;
  color: var(--tx-1) !important;
  border-radius: 14px !important;
  min-height: 72px !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 10px 6px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, transform .1s, box-shadow .12s;
  min-width: 0;
  box-shadow: none;
  font: inherit;
  text-align: center;
  line-height: 1.15;
}
.syndicate-page.gratis-hub .gh-actions > button i,
.gratis-hub .gh-actions > button i,
.gh-abtn i {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  opacity: 0.92;
  stroke-width: 2.2;
  display: block;
  margin: 0 auto;
  color: inherit;
}
.syndicate-page.gratis-hub .gh-actions > button > span,
.gratis-hub .gh-actions > button > span,
.gh-abtn > span {
  font-size: 12.5px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em;
  color: var(--tx-0) !important;
  line-height: 1.1;
  white-space: nowrap;
  display: block;
}
.syndicate-page.gratis-hub .gh-actions > button > em,
.gratis-hub .gh-actions > button > em,
.gh-abtn > em {
  font-style: normal !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--tx-3) !important;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  display: block;
}
.syndicate-page.gratis-hub .gh-actions > button:hover,
.gratis-hub .gh-actions > button:hover,
.gh-abtn:hover {
  background: rgba(var(--ovl), 0.1) !important;
  border-color: rgba(var(--ovl), 0.18) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: var(--tx-0) !important;
}
.gh-abtn:active,
.gratis-hub .gh-actions > button:active { transform: scale(0.98); }

.gh-abtn.is-primary,
.gratis-hub .gh-actions > button.is-primary {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.18) !important;
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.32) !important;
  color: var(--accent, var(--green)) !important;
}
.gh-abtn.is-primary > span,
.gh-abtn.is-primary i,
.gratis-hub .gh-actions > button.is-primary > span,
.gratis-hub .gh-actions > button.is-primary i {
  color: var(--accent, var(--green)) !important;
}

.gh-abtn.is-live,
.gratis-hub .gh-actions > button.is-live {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
  color: #6ee7b7 !important;
}
.gh-abtn.is-live > span,
.gh-abtn.is-live i,
.gratis-hub .gh-actions > button.is-live > span,
.gratis-hub .gh-actions > button.is-live i {
  color: #6ee7b7 !important;
}
.gh-abtn.is-live > em { color: rgba(110, 231, 183, 0.8) !important; }

.gh-abtn.is-on,
.gratis-hub .gh-actions > button.is-on {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.15) !important;
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.32) !important;
}
.gh-abtn.is-on > span,
.gh-abtn.is-on i,
.gratis-hub .gh-actions > button.is-on > span,
.gratis-hub .gh-actions > button.is-on i {
  color: var(--accent, var(--green)) !important;
}

/* Status row: chips left, CTA right */
.gh-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ovl), 0.07);
  background: rgba(var(--shade, 0, 0, 0), 0.16);
}
.gh-status-row.has-cta {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.06);
}
.gh-activate {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1a1200;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
  flex: 0 0 auto;
  white-space: nowrap;
}
.gh-activate i { width: 16px; height: 16px; }
.gh-activate:hover { filter: brightness(1.05); }
.gh-activate:active { transform: scale(0.98); }

/* Stats */
.gh-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.gh-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(var(--shade, 0, 0, 0), 0.22);
  border: 1px solid rgba(var(--ovl), 0.05);
  transition: border-color .12s, background .12s;
}
.gh-stat:hover {
  border-color: rgba(var(--ovl), 0.1);
  background: rgba(var(--ovl), 0.05);
}
.gh-stat b {
  font-size: 18px;
  font-weight: 900;
  color: var(--tx-0);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gh-stat span {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.gh-stat em {
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  color: var(--gh-hot);
  line-height: 1.2;
}
.gh-stat.is-hot b { color: var(--gh-hot); }
.gh-stat.is-money b { color: var(--accent, var(--green)); }

/* legacy */
.gh-hero, .gh-kpi, .gh-kpi-item, .gh-logo, .gh-titles, .gh-kicker, .gh-title,
.gh-chrome-row, .gh-chrome-left, .gh-quick, .gh-qbtn, .gh-chrome-controls { }

/* ── Controls ──────────────────────────────────────────────── */
.gh-btn {
  appearance: none;
  border: 1px solid var(--gh-line);
  background: var(--gh-fill-2);
  color: var(--tx-1);
  border-radius: 11px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s, border-color .14s, color .14s, transform .1s;
  white-space: nowrap;
}
.gh-btn i { width: 15px; height: 15px; flex: 0 0 auto; }
.gh-btn:hover { background: rgba(var(--ovl), 0.1); border-color: rgba(var(--ovl), 0.16); color: var(--tx-0); }
.gh-btn:active { transform: scale(0.98); }
.gh-btn:disabled { opacity: 0.45; pointer-events: none; }
.gh-btn.is-primary {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.18);
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.3);
  color: var(--accent, var(--green));
}
.gh-btn.is-primary:hover {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.24);
}
.gh-btn.is-live {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.gh-btn.is-on {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.14);
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.3);
  color: var(--accent, var(--green));
}
.gh-btn.is-icon {
  width: 36px;
  padding: 0;
}
.gh-btn.is-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}
.gh-btn.is-sm.is-icon {
  width: 32px;
}
.gh-btn.is-sm i { width: 14px; height: 14px; }

.gh-btn-group {
  display: inline-flex;
  align-items: stretch;
  border-radius: 11px;
  border: 1px solid var(--gh-line);
  overflow: hidden;
  background: var(--gh-fill);
}
.gh-btn-group .gh-btn {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-right: 1px solid var(--gh-line);
  min-height: 34px;
}
.gh-btn-group .gh-btn:last-child { border-right: 0; }
.gh-btn-group .gh-btn.is-sm { min-height: 32px; }
.gh-btn-group .gh-btn.is-icon { width: 34px; }
.gh-btn-group .gh-btn.is-sm.is-icon { width: 32px; }

.gh-select {
  appearance: none;
  min-height: 36px;
  padding: 0 30px 0 12px;
  border-radius: 11px;
  border: 1px solid var(--gh-line);
  background: var(--gh-fill)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a7b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--tx-0);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}
.gh-select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.42);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, var(--green-rgb)), 0.12);
}

/* ── Tabs ──────────────────────────────────────────────────── */
.gh-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  border-radius: 15px;
  background: rgba(var(--shade, 0, 0, 0), 0.28);
  border: 1px solid rgba(var(--ovl), 0.06);
  scrollbar-width: none;
}
.gh-tabs::-webkit-scrollbar { display: none; }

.gh-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--tx-3);
  border-radius: 11px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .14s, color .14s, box-shadow .14s;
}
.gh-tab i { width: 14px; height: 14px; opacity: 0.85; }
.gh-tab:hover { color: var(--tx-1); background: rgba(var(--ovl), 0.05); }
.gh-tab.is-active {
  color: var(--tx-0);
  background: rgba(var(--ovl), 0.11);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ovl), 0.1),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ── Panel ─────────────────────────────────────────────────── */
.gh-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.gh-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.gh-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.gh-panel-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--tx-0);
}
.gh-panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.gh-count {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}
.gh-count small { color: var(--tx-4); font-weight: 700; }
.gh-count.is-warn { color: #fbbf24; }
.gh-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--ovl), 0.08);
  color: var(--tx-2);
}
.gh-badge.is-live {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
.gh-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx-3);
}

/* ── Workbar: filters + bulk ───────────────────────────────── */
.gh-workbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.03);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gh-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
  width: 100%;
}
.gh-filters .gh-select { width: 100%; min-width: 0; }

.gh-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.gh-search i {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--tx-3);
  pointer-events: none;
}
.gh-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 11px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.04);
  color: var(--tx-0);
  font-size: 14px;
  font-weight: 600;
}
.gh-search input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.42);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, var(--green-rgb)), 0.12);
}
.gh-search input::placeholder { color: var(--tx-4); }

/* ── Feed / list ───────────────────────────────────────────── */
.gh-feed {
  display: grid;
  gap: 14px;
  width: 100%;
}
.gh-list {
  display: grid;
  gap: 10px;
  width: 100%;
}
.gh-list.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.gh-list.is-grid .gh-row.is-tile {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  gap: 8px;
}
.gh-list.is-grid .gh-row-sel { position: absolute; top: 8px; left: 8px; z-index: 2; }
.gh-list.is-grid .gh-row { position: relative; }
.gh-list.is-grid .gh-row-media {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
}
.gh-list.is-grid .gh-row-media img,
.gh-list.is-grid .gh-row-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.gh-list.is-grid .gh-row-ph { width: 100%; height: 140px; }
.gh-list.is-grid .gh-row-title { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-list.is-grid .gh-row-sum { display: none; }
.gh-list.is-grid .gh-row-meta { font-size: 11px; flex-wrap: wrap; }
.gh-list.is-grid .gh-row-actions { flex-wrap: wrap; gap: 4px; }
.gh-list.is-grid .gh-btn span { display: none; }
.gh-list.is-grid .gh-btn { padding: 6px 8px; }
.gh-list.is-grid .gh-why-panel { display: none; }
@media (max-width: 520px) {
  .gh-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gh-list.is-grid .gh-row-media,
  .gh-list.is-grid .gh-row-media img,
  .gh-list.is-grid .gh-row-img,
  .gh-list.is-grid .gh-row-ph { height: 110px; }
}

.gh-city-group { display: grid; gap: 8px; }
.gh-city-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--tx-1);
}
.gh-city-head i { width: 14px; height: 14px; opacity: 0.7; }
.gh-city-head b { font-weight: 850; }
.gh-city-head em {
  color: var(--tx-3);
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gh-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(var(--ovl), 0.14);
  color: var(--tx-2);
  background: rgba(var(--ovl), 0.02);
}
.gh-empty i { width: 28px; height: 28px; opacity: 0.5; }
.gh-empty b { color: var(--tx-0); font-size: 15px; }
.gh-empty p { margin: 0; max-width: 30ch; font-size: 13px; line-height: 1.4; }

/* Health chips */
.gh-health {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.gh-hchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.04);
  color: var(--tx-2);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.gh-hchip b {
  font-weight: 850;
  color: inherit;
  opacity: 0.92;
}
.gh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tx-4);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(var(--ovl), 0.04);
}
.gh-hchip.is-ok {
  color: var(--gh-ok);
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
}
.gh-hchip.is-ok .gh-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.gh-hchip.is-warn {
  color: var(--gh-warm);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}
.gh-hchip.is-warn .gh-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.gh-hchip.is-bad {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}
.gh-hchip.is-bad .gh-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: gh-pulse 1.6s ease-in-out infinite;
}
@keyframes gh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Funnel strip */
.gh-funnel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.gh-funnel.is-wide {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin-bottom: 4px;
}
.gh-funnel-step {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.04);
}
.gh-funnel-step b {
  font-size: 18px;
  font-weight: 900;
  color: var(--tx-0);
  font-variant-numeric: tabular-nums;
}
.gh-funnel-step span {
  font-size: 11px;
  font-weight: 750;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
@media (max-width: 520px) {
  .gh-form-row { grid-template-columns: 1fr; }
}

/* Bulk select bar */
.gh-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(var(--ovl), 0.12);
  background: rgba(var(--ovl), 0.02);
  transition: border-color .14s, background .14s;
}
.gh-bulk.is-active {
  border-style: solid;
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.32);
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, var(--green-rgb)), 0.08);
}
.gh-bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--tx-1);
  cursor: pointer;
  user-select: none;
}
.gh-bulk-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, var(--green));
}
.gh-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ── List row card ─────────────────────────────────────────── */
.gh-row {
  display: grid;
  grid-template-columns: 28px 108px minmax(0, 1fr);
  gap: 12px 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--gh-line);
  background: var(--gh-soft);
  transition: border-color .14s, background .14s, box-shadow .14s, transform .12s;
  box-sizing: border-box;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.gh-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
}
.gh-row.score-hot::before { background: var(--gh-hot); }
.gh-row.score-warm::before { background: var(--gh-warm); }
.gh-row.score-cold::before { background: rgba(var(--ovl), 0.18); }
.gh-row.is-free::before { background: #10b981; }

.gh-row:hover {
  border-color: rgba(var(--ovl), 0.15);
  background: rgba(var(--ovl), 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}
.gh-row.is-hot {
  border-color: rgba(248, 113, 113, 0.3);
}
.gh-row.is-selected {
  border-color: rgba(var(--accent-rgb, var(--green-rgb)), 0.4);
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, var(--green-rgb)), 0.1);
}
.gh-row-sel {
  display: grid;
  place-items: start center;
  padding-top: 10px;
  cursor: pointer;
}
.gh-row-sel input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, var(--green));
}

.gh-row-media {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(var(--ovl), 0.08), rgba(var(--ovl), 0.03));
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(var(--ovl), 0.06);
}
.gh-row-media.is-empty {
  display: grid;
  place-items: center;
}
.gh-row-img {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent;
  display: block;
}
.gh-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.gh-row:hover .gh-row-img img {
  transform: scale(1.04);
}
.gh-row-ph { color: var(--tx-4); }
.gh-row-ph i { width: 26px; height: 26px; }

.gh-score-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.gh-score-badge.score-hot {
  background: rgba(239, 68, 68, 0.9);
}
.gh-score-badge.score-warm {
  background: rgba(245, 158, 11, 0.92);
  color: #1a1200;
}
.gh-score-badge.score-cold {
  background: rgba(100, 116, 139, 0.9);
}

.gh-row-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  align-content: center;
  padding-right: 2px;
}
.gh-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.gh-row-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--tx-0);
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 auto;
}
.gh-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.gh-pill {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(var(--ovl), 0.1);
  color: var(--tx-1);
  line-height: 1.2;
}
.gh-pill.is-free {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
.gh-pill.is-paid {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.gh-pill.is-negotiable {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}
.gh-pill.is-score {
  background: rgba(var(--accent-rgb, var(--green-rgb)), 0.18);
  color: var(--accent, var(--green));
  font-variant-numeric: tabular-nums;
}
.gh-pill.is-hot {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.gh-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tx-3);
}
.gh-row-meta i { width: 13px; height: 13px; }
.gh-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gh-plat {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tx-2);
  font-size: 10.5px;
  gap: 4px !important;
}
.gh-plat i {
  width: 12px;
  height: 12px;
  opacity: 0.85;
}
.gh-status {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--ovl), 0.08);
  color: var(--tx-2);
  font-size: 11px;
}
.gh-status.ok,
.gh-status.green { color: #6ee7b7; background: rgba(16,185,129,.14); }
.gh-status.blue { color: #93c5fd; background: rgba(59,130,246,.14); }
.gh-status.yellow,
.gh-status.orange { color: #fcd34d; background: rgba(245,158,11,.14); }
.gh-status.red { color: #fca5a5; background: rgba(239,68,68,.14); }
.gh-status.purple { color: #d8b4fe; background: rgba(168,85,247,.14); }
.gh-status.ghost { color: var(--tx-3); background: rgba(var(--ovl), 0.05); }

.gh-row-sum {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tx-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 72ch;
}

.gh-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

/* ── Inventory blocks ──────────────────────────────────────── */
.gh-inv-block {
  display: grid;
  gap: 8px;
}
.gh-inv-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gh-inv-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  color: var(--tx-1);
}
.gh-inv-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--tx-3);
}

/* ── Legacy section / table (pipeline, runners, etc.) ──────── */
.syndicate-section {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--gh-line);
  background: var(--gh-fill);
  box-sizing: border-box;
}
.syndicate-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.syndicate-section-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--tx-0);
  letter-spacing: -0.02em;
}
.syndicate-section-count {
  color: var(--tx-3);
  font-size: 13px;
  font-weight: 700;
}
.gratis-groups-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx-3);
}

.syndicate-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gh-line);
  border-radius: 12px;
  background: rgba(var(--ovl), 0.02);
}
.syndicate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.syndicate-table th,
.syndicate-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--ovl), 0.06);
  vertical-align: middle;
}
.syndicate-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-3);
  background: rgba(var(--ovl), 0.03);
  white-space: nowrap;
}
.syndicate-table tbody tr:hover { background: rgba(var(--ovl), 0.03); }
.syndicate-table tr:last-child td { border-bottom: 0; }
.cell-muted { color: var(--tx-3); }
.cell-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}

.syndicate-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(var(--ovl), 0.08);
  color: var(--tx-2);
}
.syndicate-status.status-pending,
.syndicate-status.status-snoozed { background: rgba(245,158,11,.14); color: #fcd34d; }
.syndicate-status.status-sold,
.syndicate-status.status-paid_out,
.syndicate-status.status-active,
.syndicate-status.status-accepted,
.syndicate-status.status-picked { background: rgba(16,185,129,.14); color: #6ee7b7; }
.syndicate-status.status-cancelled,
.syndicate-status.status-declined { background: rgba(239,68,68,.14); color: #fca5a5; }

.syndicate-filters {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.syndicate-metrics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.syndicate-metric {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), 0.035);
  display: grid;
  gap: 4px;
}
.syndicate-metric span {
  font-size: 11px;
  font-weight: 800;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.syndicate-metric b {
  font-size: 18px;
  font-weight: 900;
  color: var(--tx-0);
}

/* TG scout embed */
.gratis-tg-panel { display: grid; gap: 12px; }
.gratis-tg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.gratis-tg-status { display: flex; gap: 10px; align-items: center; }
.gratis-tg-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #64748b;
}
.gratis-tg-status.is-on .gratis-tg-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.gratis-tg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.gratis-tg-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--gh-line);
  background: rgba(var(--ovl), .04);
  display: grid;
  gap: 4px;
}
.gratis-tg-prefs, .gratis-tg-pref-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gratis-tg-pref {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, var(--green-rgb)), .14);
  color: var(--tx-1);
  font-weight: 700;
}
.gratis-tg-pref-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--ovl), .06);
}
.gratis-tg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gratis-tg-mount { min-height: 80px; }
.gratis-inv-block { margin-top: 8px; display: grid; gap: 10px; }

/* Lightbox */
.gratis-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.78);
  padding: 16px;
}
.gratis-lightbox-stage {
  position: relative;
  max-width: min(920px, 100%);
  max-height: min(86vh, 100%);
}
.gratis-lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  display: block;
  object-fit: contain;
  background: #111;
}
.gratis-lightbox-close,
.gratis-lightbox-nav {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gratis-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
}
.gratis-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}
.gratis-lightbox-nav.is-prev { left: 12px; }
.gratis-lightbox-nav.is-next { right: 12px; }
.gratis-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 800;
}

.gh-skel { display: grid; gap: 10px; }
.gh-skel .skeleton-card { min-height: 100px; border-radius: 14px; }

/* Compat: old card classes still used elsewhere */
.gh-grid {
  display: grid;
  gap: 8px;
}
.gh-card { /* map old card shell to row-ish if leftover markup */ }
.gh-top { /* legacy no-op wrapper if any cached markup remains */ }

/* Wide desktop — list can be 2 columns so width is used */
@media (min-width: 1200px) {
  .gh-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gh-city-group .gh-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gh-filters {
    grid-template-columns: minmax(280px, 2.2fr) repeat(3, minmax(140px, 1fr));
  }
  .gh-stat b { font-size: 20px; }
  .gh-stat { padding: 14px 16px; }
}

@media (min-width: 1600px) {
  .gh-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gh-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px;
  }
  .gh-row-media {
    width: 128px;
    height: 128px;
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gh-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gh-filters {
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  }
  .gh-filters .gh-select:nth-of-type(3) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .gh-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gh-filters {
    grid-template-columns: 1fr 1fr;
  }
  .gh-search { grid-column: 1 / -1; }
  .gh-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .gh-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gh-chrome { padding: 12px; border-radius: 16px; gap: 12px; }
  .gh-brand-title { font-size: 20px; }
  .gh-chrome-side { width: 100%; justify-content: flex-end; }
  .gh-mode { flex: 1 1 auto; }
  .gh-mode .gh-select { width: 100%; }
  .gh-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .gh-abtn {
    min-height: 64px;
    border-radius: 12px;
    padding: 8px 4px;
  }
  .gh-abtn > em { display: none; }
  .gh-status-row {
    flex-direction: column;
    align-items: stretch;
  }
  .gh-activate {
    width: 100%;
    justify-content: center;
  }
  .gh-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .gh-stat { padding: 9px 10px; }
  .gh-stat b { font-size: 15px; }
  .gh-tab span { display: none; }
  .gh-tab { min-width: 40px; padding: 0 10px; justify-content: center; }
  .gh-tab.is-active span { display: inline; }
  .gh-panel-actions .gh-btn span { display: none; }
  .gh-panel-actions .gh-btn:not(.is-icon) {
    width: 36px;
    padding: 0;
  }
  .gh-workbar { padding: 10px; gap: 8px; }
  .gh-filters { grid-template-columns: 1fr; }
  .gh-row {
    grid-template-columns: 22px 80px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .gh-row-media {
    width: 80px;
    height: 80px;
  }
  .gh-bulk-actions .gh-btn span { display: none; }
  .gh-bulk-actions .gh-btn:not(.is-icon) {
    width: 34px;
    padding: 0;
  }
  .gh-row-title { font-size: 13.5px; }
  .gh-row-actions .gh-btn span { display: none; }
  .gh-row-actions .gh-btn:not(.is-icon) {
    width: 34px;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gh-qbtn span { display: none; }
  .gh-qbtn {
    width: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .gh-row {
    grid-template-columns: 22px 72px minmax(0, 1fr);
  }
  .gh-row-media {
    width: 72px;
    height: 72px;
    border-radius: 11px;
  }
}

@media (min-width: 1600px) {
  .gh-row {
    grid-template-columns: 28px 128px minmax(0, 1fr);
  }
}

/* EV / profit (audit boost #1) */
.gh-ev{color:#7ee2a8;font-weight:700;font-size:.92em;white-space:nowrap}
.gh-ev-sub{color:#9a9aa2;font-weight:500;font-size:.8em;white-space:nowrap}
.gh-count.is-ev{color:#7ee2a8;background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.25);border-radius:999px;padding:2px 10px}

.gh-pickup-map{margin:8px 0 16px;padding:12px;border:1px solid var(--border,#2a2a2e);border-radius:12px;background:rgba(0,0,0,.15)}
.gh-pickup-map-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
.gh-pickup-map-canvas{width:100%;height:min(42vh,360px);min-height:240px;border-radius:10px;overflow:hidden;border:1px solid var(--border,#2a2a2e);margin-bottom:12px}
.gh-pickup-pin{width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;cursor:pointer}
.gh-pickup-pin span{transform:rotate(45deg);font-size:10px;font-weight:700;color:#fff;line-height:1}
.gh-pickup-popup{font-size:.9em;line-height:1.35}
.gh-pickup-popup-actions{margin-top:6px}
.gh-pickup-popup-actions a{color:#7dd3fc}

/* Why score + chips */
.gh-why{background:none;border:none;color:#8b8bff;font-size:12px;padding:0 0 0 6px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.gh-why:hover{color:#b4b4ff}
.gh-why-panel{margin:6px 0 8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid var(--border,#2a2a2e)}
.gh-why-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.gh-why-chips:first-child{margin-top:0}
.gh-chip{background:#26262b;border-radius:999px;padding:2px 9px;font-size:11px;color:#bdbdc6}
.gh-chip.is-risk,.gh-why-chips.is-risk .gh-chip{color:#e6a06a;background:rgba(230,160,106,.12)}

/* Tabs overflow menu */
.gh-tabs-more{position:relative;display:inline-flex}
.gh-tabs-more>summary{list-style:none;cursor:pointer}
.gh-tabs-more>summary::-webkit-details-marker{display:none}
.gh-tabs-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:160px;padding:6px;border-radius:12px;background:var(--card,#1a1a1c);border:1px solid var(--border,#2a2a2e);box-shadow:0 10px 30px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:2px}
.gh-tabs-more-menu .gh-tab{width:100%;justify-content:flex-start}

/* Focus + profit deltas + hotkeys */
.gh-row.is-focused{outline:2px solid #3a6df0;outline-offset:2px;box-shadow:0 0 0 4px rgba(58,109,240,.18)}
.gh-hotkeys-hint{font-size:11px;color:#7a7a84;margin-left:6px;white-space:nowrap}
.cell-num.is-pos,.gh-ev-delta.is-pos{color:#7ee2a8}
.cell-num.is-neg,.gh-ev-delta.is-neg{color:#f0a0a0}
.syndicate-metric.is-ev b{color:#7ee2a8}
.syndicate-metric em{display:block;font-style:normal;font-size:.75em;margin-top:2px}

/* ── CSP-safe utilities (replaces residual inline style attrs) ───────────── */
.gh-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gh-pre-wrap {
  white-space: pre-wrap;
  font-family: inherit;
}
.gh-mt-8 { margin-top: 8px; }
.gh-mt-6 { margin-top: 6px; }
.gh-mt-4 { margin-top: 4px; }
.gh-mb-12 { margin-bottom: 12px; }
.gh-hint-sm {
  margin: 6px 0 0;
  font-size: 0.85em;
}
.syndicate-vnc-panel {
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
}
.gh-pickup-pin.is-hot { background: #22c55e; }
.gh-pickup-pin.is-warm { background: #f59e0b; }
.gh-pickup-pin.is-cool { background: #94a3b8; }
.gh-pickup-pin.is-mid { background: #60a5fa; }

/* Gratis AI models modal */
.gh-models-grid { display: grid; gap: 12px; margin-top: 8px; }
.gh-models-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
}
.gh-models-lab b { display: block; font-size: 12.5px; font-weight: 850; color: var(--tx-0); }
.gh-models-lab span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 650; color: rgba(var(--ovl),.42); }
@media (max-width: 640px) {
  .gh-models-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   Gratis polish v2 — light glass (tabs-pill / notes-bar family)
   ============================================================ */
html body[data-view="syndicate"] .gratis-hub,
html body[data-view="userbot"] .gratis-hub,
.syndicate-page.gratis-hub {
  --gh-line: rgba(255, 255, 255, 0.12);
  --gh-fill: color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 38%, transparent);
  gap: 14px !important;
}

/* chrome — light glass card */
html body[data-view="syndicate"] .gh-chrome,
html body[data-view="userbot"] .gh-chrome,
.gratis-hub .gh-chrome {
  padding: 14px 14px 16px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 12%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, color-mix(in srgb, var(--green, #3dd68c) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 40%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.10) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  backdrop-filter: blur(16px) saturate(1.35) !important;
}

/* PC: no duplicate title (sidebar names the page) */
body.is-desktop[data-view="syndicate"] .gh-brand-kicker,
body.is-browser[data-view="syndicate"] .gh-brand-kicker,
body.is-desktop[data-view="syndicate"] .gh-brand-title,
body.is-browser[data-view="syndicate"] .gh-brand-title,
body.tg-platform-tdesktop[data-view="syndicate"] .gh-brand-title,
body.tg-platform-web[data-view="syndicate"] .gh-brand-title,
body.tg-platform-weba[data-view="syndicate"] .gh-brand-title,
body.tg-platform-webk[data-view="syndicate"] .gh-brand-title {
  /* keep title on mobile only */
}
@media (min-width: 900px) {
  body.is-desktop[data-view="syndicate"] .gh-brand-text,
  body.is-browser[data-view="syndicate"] .gh-brand-text,
  body.tg-platform-tdesktop[data-view="syndicate"] .gh-brand-text,
  body.tg-platform-web[data-view="syndicate"] .gh-brand-text {
    display: none !important;
  }
  body.is-desktop[data-view="syndicate"] .gh-brand-mark,
  body.is-browser[data-view="syndicate"] .gh-brand-mark {
    width: 40px !important;
    height: 40px !important;
  }
}

.gratis-hub .gh-brand-mark {
  background: color-mix(in srgb, var(--green, #3dd68c) 18%, transparent) !important;
  color: var(--green, #3dd68c) !important;
  border: 1px solid color-mix(in srgb, var(--green, #3dd68c) 28%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* action chips — compact light glass, not heavy tiles */
.syndicate-page.gratis-hub .gh-actions,
.gratis-hub .gh-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  grid-template-columns: none !important;
}
.syndicate-page.gratis-hub .gh-actions > button,
.gratis-hub .gh-actions > button,
.syndicate-page.gratis-hub button.gh-abtn,
.gratis-hub button.gh-abtn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  grid-template-rows: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 32%, transparent) !important;
  color: var(--tx-0) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  flex: 0 0 auto !important;
}
.syndicate-page.gratis-hub .gh-actions > button i,
.gratis-hub .gh-actions > button i {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: var(--green, #3dd68c) !important;
  opacity: 1 !important;
}
.syndicate-page.gratis-hub .gh-actions > button > span,
.gratis-hub .gh-actions > button > span {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: var(--tx-0) !important;
}
.syndicate-page.gratis-hub .gh-actions > button > em,
.gratis-hub .gh-actions > button > em {
  display: none !important; /* drop sublabels for density */
}
.syndicate-page.gratis-hub .gh-actions > button.is-primary,
.gratis-hub .gh-actions > button.is-primary {
  background: color-mix(in srgb, var(--tg-theme-button-color, var(--green, #3dd68c)) 82%, #1a2228) !important;
  border-color: color-mix(in srgb, var(--green, #3dd68c) 40%, transparent) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px color-mix(in srgb, var(--green, #3dd68c) 22%, transparent) !important;
}
.syndicate-page.gratis-hub .gh-actions > button.is-primary i,
.syndicate-page.gratis-hub .gh-actions > button.is-primary > span,
.gratis-hub .gh-actions > button.is-primary i,
.gratis-hub .gh-actions > button.is-primary > span {
  color: #fff !important;
}
.syndicate-page.gratis-hub .gh-actions > button.is-live,
.gratis-hub .gh-actions > button.is-live {
  background: color-mix(in srgb, #10b981 78%, #0a1f18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #fff !important;
}
.syndicate-page.gratis-hub .gh-actions > button.is-live i,
.syndicate-page.gratis-hub .gh-actions > button.is-live > span {
  color: #fff !important;
}

/* status + stats — light glass */
.gratis-hub .gh-status-row {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 8%, transparent), transparent 55%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 34%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}
.gratis-hub .gh-hchip {
  background: color-mix(in srgb, #fff 6%, transparent) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.gratis-hub .gh-stats {
  gap: 6px !important;
}
.gratis-hub .gh-stat {
  padding: 10px 11px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 9%, transparent), transparent 55%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 36%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* tabs — light glass scroll tray + green active via pill */
html body[data-view="syndicate"] .gh-tabs.tabs-pill,
html body[data-view="userbot"] .gh-tabs.tabs-pill,
.gratis-hub .gh-tabs.tabs-pill {
  display: flex !important;
  grid: none !important;
  grid-auto-flow: unset !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  margin: 0 0 4px !important;
  padding: 4px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 12%, transparent) 0%, transparent 50%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 42%, transparent) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.10) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  scrollbar-width: none !important;
}
.gratis-hub .gh-tabs.tabs-pill::-webkit-scrollbar { display: none !important; }
.gratis-hub .gh-tabs.tabs-pill .gh-tab {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in srgb, var(--tg-theme-hint-color, rgba(var(--ovl), 0.55)) 100%, transparent) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
}
.gratis-hub .gh-tabs.tabs-pill .gh-tab.is-active {
  background: transparent !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
  box-shadow: none !important;
}
.gratis-hub .gh-tabs.tabs-pill .gh-tab i {
  color: inherit !important;
  opacity: 1 !important;
}

/* panels / lists / rows — lift darkness */
.gratis-hub .gh-panel-head h2 {
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}
.gratis-hub .gh-row,
.gratis-hub .gh-panel > .gh-card,
.gratis-hub .gh-feed > * {
  border-color: rgba(255, 255, 255, 0.10) !important;
}
.gratis-hub .gh-btn {
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 8%, transparent), transparent 55%),
    color-mix(in srgb, var(--tg-theme-secondary-bg-color, rgba(var(--shade), 1)) 36%, transparent) !important;
  color: var(--tx-0) !important;
  font-weight: 750 !important;
}
.gratis-hub .gh-btn.is-primary {
  background: color-mix(in srgb, var(--tg-theme-button-color, var(--green, #3dd68c)) 82%, #1a2228) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
.gratis-hub .gh-icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: color-mix(in srgb, #fff 6%, transparent) !important;
  color: var(--tx-1) !important;
}
.gratis-hub .gh-select {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: color-mix(in srgb, #fff 6%, transparent) !important;
  color: var(--tx-0) !important;
  border-radius: 11px !important;
}

@media (max-width: 900px) {
  .syndicate-page.gratis-hub .gh-actions,
  .gratis-hub .gh-actions {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .syndicate-page.gratis-hub .gh-actions > button,
  .gratis-hub .gh-actions > button {
    width: 100% !important;
    padding: 0 6px !important;
  }
  .gratis-hub .gh-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .syndicate-page.gratis-hub .gh-actions,
  .gratis-hub .gh-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .gratis-hub .gh-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .gratis-hub .gh-tabs.tabs-pill .gh-tab span {
    /* keep labels — ops need names */
  }
}

/* ── Slim chrome layout (fewer controls) ───────────────────── */
.gratis-hub .gh-chrome-slim {
  gap: 12px !important;
  padding: 14px 16px 16px !important;
}
.gratis-hub .gh-chrome-slim .gh-brand-title {
  margin: 0 !important;
  font-size: 22px !important;
}
.gratis-hub .gh-chrome-slim .gh-brand-kicker {
  display: none !important;
}
.gratis-hub .gh-actions-core {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: 100% !important;
}
.gratis-hub .gh-actions-core > button.gh-abtn {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
}
.gratis-hub .gh-stats-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.gratis-hub .gh-stats-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.gratis-hub .gh-chrome-side {
  align-items: center !important;
  gap: 6px !important;
}
.gratis-hub .gh-mode > span {
  display: none !important;
}
.gratis-hub .gh-icon-btn.is-on {
  color: var(--accent, #50a8eb) !important;
  background: rgba(var(--accent-rgb, 80, 168, 235), 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 80, 168, 235), 0.28) !important;
}
.gratis-hub .gh-health {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}
.gratis-hub .gh-panel-actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}
@media (max-width: 720px) {
  .gratis-hub .gh-actions-core {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .gratis-hub .gh-actions-core > button.gh-abtn {
    padding: 0 4px !important;
  }
  .gratis-hub .gh-actions-core > button.gh-abtn > span {
    font-size: 11px !important;
  }
  .gratis-hub .gh-stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gratis-hub .gh-brand-text {
    display: none !important;
  }
}
