/* ------------------------------------------------------------------
   Host console (review/host.html). An operator tool used live on stream, so:
   state is loud (LIVE / PAUSED / OFFLINE, TEST MODE), rows are dense but
   readable, and every touch target is big enough for a phone.
   Everything is prefixed rh- so it can't collide with site.css or the other
   review pages. Colours reuse the site tokens (site.css :root); only the
   status colours below are new.
-------------------------------------------------------------------*/
:root {
  --rh-live: #6fbf7f;
  --rh-live-bg: rgba(111, 191, 127, 0.13);
  --rh-pause: #f0a33a;
  --rh-pause-bg: rgba(240, 163, 58, 0.14);
  --rh-off: #8c7b57;
  --rh-off-bg: rgba(140, 123, 87, 0.12);
  --rh-danger-bg: rgba(226, 96, 74, 0.12);
}

/* site.css never sets [hidden], so any author display rule would un-hide it. */
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, audio:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* A smaller header than the marketing pages: vertical space is precious on a live console. */
header.site .navrow { padding: 10px 28px; }
header.site .site-logo-img { height: 44px; }
.rh-signout {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.rh-signout:hover { border-color: var(--gold-dim); color: var(--gold-hi); }

.rh-shell { padding-top: 22px; padding-bottom: 96px; font-size: 13px; line-height: 1.55; }
.rh-shell h1 { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.rh-shell h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: none;
}
.rh-shell h3 { font-family: var(--font-display); font-size: 15px; color: var(--ink); text-shadow: none; }
.rh-shell p { margin: 0 0 10px; }
.rh-shell small, .rh-muted { color: var(--ink-faint); }
.rh-mono { font-family: var(--font-mono); }
.rh-wrapany { overflow-wrap: anywhere; word-break: break-word; }

.rh-loading, .rh-noaccess {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}
.rh-noaccess { max-width: 520px; margin: 0 auto; }
.rh-noaccess h1 { margin-bottom: 14px; }
.rh-noaccess p { color: var(--ink-dim); }

/* ---------- banners + errors ---------- */
.rh-banners { display: grid; gap: 10px; margin-bottom: 14px; }
.rh-banner {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 12.5px;
}
.rh-banner strong { color: var(--ink); }
.rh-banner.warn { border-color: rgba(240, 163, 58, 0.55); background: var(--rh-pause-bg); color: #f6c982; }
.rh-banner.warn strong { color: #ffd9a0; }
.rh-banner.live-mode { border-color: rgba(226, 96, 74, 0.55); background: var(--rh-danger-bg); color: #f2a591; }
.rh-banner.live-mode strong { color: #ffb9a8; }

/* TEST MODE: deliberately the loudest thing on the page, like hazard tape. */
.rh-test {
  background: repeating-linear-gradient(-45deg, #f4d67c 0 16px, #d4ae3a 16px 32px);
  color: #1a1205;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 6px 24px -10px rgba(244, 214, 124, 0.7);
}
.rh-test strong { font-size: 15px; letter-spacing: 0.2em; margin-right: 6px; color: inherit; }
.rh-test-note { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: 0.02em; text-transform: none; font-weight: 600; }

.rh-errors { display: grid; gap: 8px; margin-bottom: 14px; }
.rh-err {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--rh-danger-bg);
  border: 1px solid rgba(226, 96, 74, 0.5);
  color: #f2a591;
  border-radius: 8px;
  padding: 10px 12px 10px 14px;
  font-size: 12.5px;
}
.rh-err.notice { background: rgba(201, 162, 39, 0.1); border-color: var(--gold-dim); color: var(--ink-dim); }
.rh-err-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rh-err-text strong { color: #ffb9a8; }
.rh-err.notice .rh-err-text strong { color: var(--gold-hi); }
.rh-err-code {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.8;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 0 7px;
}
.rh-err-x {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  min-width: 32px;
  min-height: 32px;
}

/* ---------- top line + freshness ---------- */
.rh-topline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; }
.rh-topline p { margin: 4px 0 0; color: var(--ink-faint); font-size: 12px; }
.rh-fresh { font-size: 11.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.rh-fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rh-live); flex: none; }
.rh-fresh.warn { color: #f6c982; }
.rh-fresh.warn::before { background: var(--rh-pause); }
.rh-fresh.stale { color: #f2a591; }
.rh-fresh.stale::before { background: var(--danger); }

/* ---------- channel tabs (also the "which stream is live" overview) ---------- */
.rh-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rh-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink-dim);
  font-family: var(--font-body);
  cursor: pointer;
  min-height: 56px;
  transition: border-color 0.2s, background 0.2s;
}
.rh-tab:hover { border-color: var(--gold-dim); }
.rh-tab.selected { border-color: var(--gold); background: linear-gradient(150deg, rgba(201, 162, 39, 0.14), var(--surface) 70%); color: var(--ink); }
.rh-tab-text { display: grid; gap: 2px; min-width: 0; }
.rh-tab-name { font-size: 13px; overflow-wrap: anywhere; }
.rh-tab-sub { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rh-off); }
.rh-tab.live .rh-tab-sub { color: var(--rh-live); }
.rh-tab.paused .rh-tab-sub { color: var(--rh-pause); }

.rh-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--rh-off); flex: none; }
.live > .rh-dot, .rh-pill.live .rh-dot { background: var(--rh-live); animation: rh-pulse 1.8s ease-out infinite; }
.paused > .rh-dot, .rh-pill.paused .rh-dot { background: var(--rh-pause); }
@keyframes rh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 191, 127, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(111, 191, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 127, 0); }
}

/* ---------- cards ---------- */
.rh-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.rh-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.rh-card-head h2 { display: flex; align-items: center; gap: 10px; }
.rh-card-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rh-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: normal;
  color: var(--gold-hi);
  background: var(--ground-2);
  border-radius: 20px;
  padding: 2px 10px;
}
.rh-help { color: var(--ink-faint); font-size: 12px; margin: 0 0 14px; }
.rh-empty { color: var(--ink-faint); padding: 14px 2px; font-size: 13px; }
details.rh-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.rh-card > summary::-webkit-details-marker { display: none; }
details.rh-card > summary h2::after { content: "  \25BE"; color: var(--ink-faint); }
details.rh-card[open] > summary { margin-bottom: 14px; }

/* ---------- hero: live state + controls ---------- */
.rh-hero { border-width: 2px; }
.rh-hero.live { border-color: rgba(111, 191, 127, 0.7); box-shadow: 0 0 40px -18px var(--rh-live); }
.rh-hero.paused { border-color: rgba(240, 163, 58, 0.7); }
.rh-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 22px; margin-bottom: 14px; }
.rh-hero-state { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; min-width: 0; }
.rh-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--rh-off);
  color: var(--rh-off);
  background: var(--rh-off-bg);
  text-shadow: none;
}
.rh-pill.live { color: var(--rh-live); border-color: var(--rh-live); background: var(--rh-live-bg); }
.rh-pill.paused { color: var(--rh-pause); border-color: var(--rh-pause); background: var(--rh-pause-bg); }
.rh-hero-meta { min-width: 0; }
.rh-hero-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.rh-hero-sub { color: var(--ink-dim); font-size: 12px; }
.rh-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rh-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 24px; padding: 14px 0; border-top: 1px solid var(--hairline-lo); border-bottom: 1px solid var(--hairline-lo); margin-bottom: 14px; }
.rh-control { min-width: 0; }
.rh-control .rh-control-note { color: var(--ink-faint); font-size: 11.5px; margin-top: 6px; }
.rh-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rh-inline-form input[type="text"] { flex: 1 1 200px; min-width: 0; }

.rh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rh-stat { border: 1px solid var(--hairline-lo); border-radius: 8px; padding: 10px 14px; background: var(--ground-2); }
.rh-stat .num { font-family: var(--font-display); font-size: 18px; color: var(--gold-hi); }
.rh-stat .label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.rh-stat .tag { color: #1a1205; background: var(--gold-hi); border-radius: 3px; padding: 0 5px; margin-left: 6px; font-size: 9.5px; }

/* ---------- form controls ---------- */
.rh-shell input[type="text"], .rh-shell input[type="email"], .rh-shell input[type="number"], .rh-shell textarea {
  width: 100%;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  min-height: 40px;
}
.rh-shell textarea { resize: vertical; min-height: 96px; }
.rh-shell input:focus, .rh-shell textarea:focus { border-color: var(--gold-dim); }
.rh-shell input:disabled, .rh-shell textarea:disabled { opacity: 0.5; }
.rh-shell .field { margin-bottom: 14px; }
.rh-shell .field label { font-size: 10.5px; }
.rh-field-help { color: var(--ink-faint); font-size: 11px; margin-top: 6px; }
.rh-field-err { color: #f2a591; font-size: 11.5px; margin-top: 6px; }
.rh-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 22px; }
.rh-form-grid .field { margin-bottom: 0; }
.rh-form-grid .wide { grid-column: 1 / -1; }
.rh-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }

.rh-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-dim); cursor: pointer; min-height: 32px; }
.rh-check input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.rh-check-grid { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Same look as site.css .field label, for groups of checkboxes (a .field wrapper would restyle the checkboxes). */
.rh-group { margin-bottom: 14px; }
.rh-group-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.rh-form-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline-lo); }

/* iOS-style switch built on a real checkbox (role="switch"), so keyboard + screen readers work. */
.rh-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 36px; color: var(--ink); font-size: 13px; }
.rh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rh-switch .track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  flex: none;
  transition: background 0.2s, border-color 0.2s;
}
.rh-switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: transform 0.2s, background 0.2s;
}
.rh-switch input:checked + .track { background: var(--rh-live-bg); border-color: var(--rh-live); }
.rh-switch input:checked + .track::after { transform: translateX(20px); background: var(--rh-live); }
.rh-switch input:focus-visible + .track { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.rh-switch input:disabled + .track { opacity: 0.5; }
.rh-switch .state { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ---------- buttons ---------- */
.rh-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 9px 15px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.rh-btn:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold-hi); }
.rh-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rh-btn.working { opacity: 0.6; cursor: progress; pointer-events: none; }
.rh-btn.sm { padding: 6px 11px; font-size: 11px; min-height: 32px; }
.rh-btn.big { font-size: 15px; padding: 14px 26px; min-height: 52px; }
.rh-btn.primary {
  color: var(--ground);
  background: linear-gradient(180deg, #fbe7ab, var(--gold-hi));
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(238, 203, 107, 0.4), 0 8px 22px -10px rgba(201, 162, 39, 0.6);
}
.rh-btn.primary:hover:not(:disabled) { color: var(--ground); box-shadow: 0 0 0 1px rgba(238, 203, 107, 0.6), 0 10px 26px -10px rgba(201, 162, 39, 0.8); }
.rh-btn.live {
  color: #06210d;
  background: linear-gradient(180deg, #a6e0b1, var(--rh-live));
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(111, 191, 127, 0.5), 0 8px 22px -10px rgba(111, 191, 127, 0.7);
}
.rh-btn.live:hover:not(:disabled) { color: #06210d; }
.rh-btn.danger { border-color: rgba(226, 96, 74, 0.55); color: #f2a591; }
.rh-btn.danger:hover:not(:disabled) { background: var(--rh-danger-bg); border-color: var(--danger); color: #ffb9a8; }
.rh-btn.danger-solid { background: var(--danger); border-color: transparent; color: #1a0a06; }
.rh-btn.danger-solid:hover:not(:disabled) { color: #1a0a06; background: #ee735d; }
.rh-btn.linklike { border: none; padding: 4px 6px; min-height: 0; color: var(--gold-hi); text-decoration: underline; }

/* ---------- section tabs ---------- */
.rh-subtabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--hairline); margin-bottom: 20px; }
.rh-subtab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 2px 12px;
  cursor: pointer;
  min-height: 44px;
}
.rh-subtab:hover { color: var(--ink-dim); }
.rh-subtab[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- badges ---------- */
.rh-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  background: var(--ground-2);
  margin-right: 6px;
}
.rh-badge.gold { color: var(--gold-hi); border-color: var(--gold-dim); background: rgba(201, 162, 39, 0.12); }
.rh-badge.free { color: var(--ink-dim); border-color: var(--hairline); }
.rh-badge.ok { color: var(--rh-live); border-color: var(--rh-live); background: var(--rh-live-bg); }
.rh-badge.warn { color: var(--rh-pause); border-color: var(--rh-pause); background: var(--rh-pause-bg); }
.rh-badge.danger { color: #f2a591; border-color: rgba(226, 96, 74, 0.55); background: var(--rh-danger-bg); }
.rh-badge.off { color: var(--ink-faint); }

/* ---------- now playing + player ---------- */
.rh-np-title { font-family: var(--font-display); font-size: 18px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.rh-np-artist { color: var(--ink-dim); font-size: 14px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.rh-np-nextup { color: var(--ink-faint); font-size: 11.5px; margin-top: 8px; overflow-wrap: anywhere; }
.rh-player { margin: 14px 0; padding: 14px; border: 1px solid var(--hairline-lo); border-radius: 8px; background: var(--ground-2); }
.rh-player audio { width: 100%; display: block; height: 44px; color-scheme: dark; }
.rh-player-status { margin-top: 8px; font-size: 11.5px; color: var(--ink-faint); min-height: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rh-player-status.error { color: #f2a591; }
.rh-stems { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rh-seg {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  min-height: 34px;
}
.rh-seg:first-of-type { border-radius: 4px 0 0 4px; }
.rh-seg:nth-of-type(3) { border-radius: 0 4px 4px 0; }
.rh-seg + .rh-seg { margin-left: -1px; }
.rh-seg[aria-pressed="true"] { background: rgba(201, 162, 39, 0.16); color: var(--gold-hi); border-color: var(--gold-dim); }
.rh-seg:disabled { opacity: 0.4; cursor: not-allowed; }
.rh-stem-note { color: var(--ink-faint); font-size: 11px; margin-left: 8px; }
.rh-np-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rh-np-song-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- queue + song rows ---------- */
.rh-list { border: 1px solid var(--hairline-lo); border-radius: 8px; overflow: hidden; background: var(--ground-2); }
.rh-list:empty { display: none; }
.rh-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-lo);
}
.rh-row:last-child { border-bottom: none; }
.rh-row.next { background: rgba(201, 162, 39, 0.07); }
.rh-pos { font-family: var(--font-display); font-size: 18px; color: var(--gold-hi); text-align: center; padding-top: 2px; }
.rh-row-main { min-width: 0; }
.rh-row-title { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; margin-bottom: 4px; }
.rh-row-title .artist { color: var(--ink-dim); }
.rh-row-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-bottom: 4px; }
.rh-row-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-faint); font-size: 11.5px; overflow-wrap: anywhere; }
.rh-row-meta span { overflow-wrap: anywhere; }
.rh-row-notes { margin-top: 6px; color: var(--ink-dim); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--hairline); padding-left: 10px; }
.rh-row-hostnote { margin-top: 6px; color: var(--gold-hi); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--gold-dim); padding-left: 10px; }
.rh-row-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rh-row.recent .rh-pos { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- settings + tiers ---------- */
.rh-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-lo);
}
.rh-tier:last-child { border-bottom: none; }
.rh-tier.inactive { opacity: 0.65; }
.rh-tier-main { min-width: 0; flex: 1 1 260px; }
.rh-tier-name { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.rh-tier-meta { color: var(--ink-dim); font-size: 12px; }
.rh-tier-blurb { color: var(--ink-faint); font-size: 12px; overflow-wrap: anywhere; }
.rh-tier-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- history ---------- */
.rh-hist-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rh-hist-row { padding: 12px 16px; border-bottom: 1px solid var(--hairline-lo); }
.rh-hist-row:last-child { border-bottom: none; }
.rh-hist-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.rh-hist-when { color: var(--ink); font-size: 13px; }
.rh-hist-rev { font-family: var(--font-display); color: var(--gold-hi); font-size: 14px; }
.rh-hist-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--ink-faint); font-size: 11.5px; margin-bottom: 8px; }
.rh-bar-track { height: 7px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.rh-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi)); min-width: 2px; }

/* ---------- hosts + bans ---------- */
.rh-host { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--hairline-lo); }
.rh-host:last-child { border-bottom: none; }
.rh-host-who { min-width: 0; flex: 1 1 240px; overflow-wrap: anywhere; color: var(--ink); }
.rh-host-who small { display: block; color: var(--ink-faint); }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-hi);
  border-radius: 20px;
  padding: 2px 4px 2px 12px;
  font-size: 11px;
}
.rh-chip.static { padding-right: 12px; }
.rh-chip button { background: transparent; border: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; min-width: 28px; min-height: 28px; border-radius: 50%; }
.rh-chip button:hover { background: var(--rh-danger-bg); color: #ffb9a8; }

/* ---------- modal + toasts ---------- */
.rh-modal-back {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 6, 4, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.rh-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  line-height: 1.55;
}
.rh-modal.wide { max-width: 560px; }
.rh-modal h3 { margin-bottom: 14px; }
.rh-modal-body p { color: var(--ink-dim); margin: 0 0 10px; }
.rh-modal-body strong { color: var(--ink); }
.rh-modal-body .field { margin-bottom: 14px; }
.rh-modal-body .field label { font-size: 10.5px; }
.rh-modal-body input[type="text"], .rh-modal-body input[type="number"], .rh-modal-body textarea {
  width: 100%;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  min-height: 40px;
}
.rh-modal-body textarea { resize: vertical; min-height: 110px; }
.rh-modal-body input:focus, .rh-modal-body textarea:focus { border-color: var(--gold-dim); }
.rh-modal-warn { border: 1px solid rgba(240, 163, 58, 0.55); background: var(--rh-pause-bg); color: #f6c982; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 12.5px; }
.rh-modal-error { margin-top: 12px; border: 1px solid rgba(226, 96, 74, 0.5); background: var(--rh-danger-bg); color: #f2a591; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; overflow-wrap: anywhere; }
.rh-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.rh-counter { text-align: right; color: var(--ink-faint); font-size: 11px; margin-top: 4px; }

.rh-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 350; display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.rh-toast {
  pointer-events: auto;
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12.5px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
  overflow-wrap: anywhere;
}
.rh-toast.ok { border-color: var(--rh-live); }
.rh-toast.err { border-color: var(--danger); color: #f2a591; }

/* ---------- needs attention (payment mismatches, disputes, late payments) ---------- */
/* Red, bordered and glowing like the other "something is wrong" states, and placed above everything else. */
.rh-attention {
  border: 2px solid var(--danger);
  background: linear-gradient(160deg, var(--rh-danger-bg), var(--surface) 70%);
  box-shadow: 0 0 34px -14px var(--danger);
}
.rh-attention .rh-card-head h2 { color: #ffb9a8; }
.rh-attention .rh-count { color: #1a0a06; background: var(--danger); font-weight: 700; }
.rh-attention .rh-list { border-color: rgba(226, 96, 74, 0.45); }
.rh-row.att .rh-pos { color: var(--danger); font-size: 22px; font-weight: 700; }
.rh-att-help { color: var(--ink-dim); font-size: 12px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.rh-att-note {
  margin-top: 6px;
  color: #f2a591;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-left: 2px solid var(--danger);
  padding-left: 10px;
}
.rh-att-note strong { color: #ffb9a8; }

/* ---------- payouts: the "Set up your payouts" card + the green "connected" strip ---------- */
/* Lives above the channel tabs, so it shows on every channel and every section. It is deliberately big, gold and glowing: a partner
   who hasn't connected Stripe yet must not be able to miss it. */
.rh-pay { display: grid; gap: 12px; margin-bottom: 18px; }
#rh-pay-arrival:empty { display: none; }

.rh-pay-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.rh-pay-note strong { color: var(--ink); }
.rh-pay-note.info { border-color: var(--gold-dim); background: rgba(201, 162, 39, 0.1); }
.rh-pay-note.warn { border-color: rgba(240, 163, 58, 0.55); background: var(--rh-pause-bg); color: #f6c982; }
.rh-pay-note.warn strong { color: #ffd9a0; }
.rh-pay-note.err { border-color: rgba(226, 96, 74, 0.55); background: var(--rh-danger-bg); color: #f2a591; }
.rh-pay-note.err strong { color: #ffb9a8; }
.rh-pay-card .rh-pay-note { margin: 0 0 16px; }

.rh-spin {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  border-top-color: var(--gold-hi);
  animation: rh-spin 0.9s linear infinite;
}
@keyframes rh-spin { to { transform: rotate(360deg); } }

.rh-pay-card {
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 26px 30px 22px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(238, 203, 107, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(201, 162, 39, 0.1), var(--surface) 72%);
  box-shadow: 0 0 0 1px rgba(238, 203, 107, 0.2), 0 0 46px -14px rgba(238, 203, 107, 0.6);
}
.rh-pay-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--rh-pause);
  color: #1a1205;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rh-shell h2.rh-pay-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
.rh-shell .rh-pay-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

.rh-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rh-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
  min-width: 0;
}
.rh-step-num {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fbe7ab, var(--gold-hi));
  color: var(--ground);
  font-family: var(--font-display);
  font-size: 17px;
}
.rh-step.done { border-color: rgba(111, 191, 127, 0.55); }
.rh-step.done .rh-step-num { background: var(--rh-live); color: #06210d; }
.rh-step-body { min-width: 0; }
.rh-step-title { color: var(--ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.rh-step-detail { margin-top: 5px; color: var(--ink-dim); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }

.rh-need {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 163, 58, 0.55);
  border-radius: 10px;
  background: var(--rh-pause-bg);
  color: #f6c982;
  font-size: 13px;
}
.rh-need-title { color: #ffd9a0; margin-bottom: 6px; }
.rh-need ul { margin: 0; padding-left: 22px; }
.rh-need li { margin: 3px 0; overflow-wrap: anywhere; }

.rh-pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-btn.huge { font-size: 17px; letter-spacing: 0.04em; padding: 18px 38px; min-height: 64px; border-radius: 8px; text-align: center; }
.rh-pay-card .rh-btn.primary { animation: rh-glow 2.6s ease-in-out infinite; }
.rh-pay-card .rh-btn.primary.working { animation: none; }
@keyframes rh-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(238, 203, 107, 0.4), 0 8px 22px -10px rgba(201, 162, 39, 0.6); }
  50% { box-shadow: 0 0 0 1px rgba(238, 203, 107, 0.8), 0 10px 34px -6px rgba(238, 203, 107, 0.95); }
}
.rh-pay-msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; overflow-wrap: anywhere; }
.rh-pay-msg.err { border: 1px solid rgba(226, 96, 74, 0.5); background: var(--rh-danger-bg); color: #f2a591; }
.rh-pay-msg.info { border: 1px solid var(--gold-dim); background: rgba(201, 162, 39, 0.1); color: var(--ink-dim); }
.rh-pay-msg a { color: var(--gold-hi); text-decoration: underline; }
.rh-shell .rh-pay-reassure { margin: 16px 0 0; color: var(--ink-dim); font-size: 12.5px; line-height: 1.6; }
.rh-shell .rh-pay-test {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, rgba(244, 214, 124, 0.2) 0 12px, rgba(212, 174, 58, 0.14) 12px 24px);
  border: 1px solid var(--gold-dim);
  color: var(--gold-hi);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rh-pay-mini { margin-top: 12px; color: var(--ink-faint); font-size: 12px; }

.rh-pay-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
  border: 1px solid var(--rh-live);
  border-radius: 10px;
  background: var(--rh-live-bg);
}
.rh-pay-strip.just { border-width: 2px; box-shadow: 0 0 34px -12px var(--rh-live); }
.rh-pay-strip-main { flex: 1 1 280px; min-width: 0; }
.rh-pay-strip-title { color: var(--rh-live); font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; }
.rh-pay-strip-sub { margin-top: 3px; color: var(--ink-dim); font-size: 12px; overflow-wrap: anywhere; }
.rh-pay-strip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-pay-strip .rh-pay-msg { flex-basis: 100%; margin-top: 0; }
.tag.rh-tag-test {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--gold-hi);
  color: #1a1205;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
/* "My payouts" tab while set-up is still to do */
.rh-subtab.flag { color: var(--rh-pause); }

/* ---------- payouts: owner tab (how it works, split editor, partner list) and payee tab ---------- */
.rh-how { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; counter-reset: how; }
.rh-how li { position: relative; padding-left: 46px; min-height: 32px; color: var(--ink-dim); counter-increment: how; line-height: 1.55; }
.rh-how li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: -3px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-hi);
  font-family: var(--font-display);
  font-size: 13px;
}
.rh-how strong { color: var(--ink); }

.rh-split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-lo);
}
.rh-split-row:last-child { border-bottom: none; }
.rh-split-main { flex: 1 1 260px; min-width: 0; }
.rh-split-name { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; cursor: pointer; }
.rh-split-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-faint); font-size: 12px; }
.rh-split-meta .rh-badge { margin-right: 0; }
.rh-split-pending { color: var(--rh-pause); }
.rh-split-hint { flex-basis: 100%; color: var(--ink-faint); font-size: 11.5px; }
.rh-split-pct { display: flex; align-items: center; gap: 8px; }
.rh-shell input.rh-split-input[type="text"] { width: 96px; min-height: 50px; text-align: right; font-family: var(--font-display); font-size: 20px; }
.rh-shell input.rh-split-input.bad { border-color: var(--danger); background: var(--rh-danger-bg); }
.rh-split-unit { color: var(--gold-hi); font-family: var(--font-display); font-size: 20px; }
.rh-split-total { margin: 16px 0 8px; color: var(--ink-dim); font-size: 14px; overflow-wrap: anywhere; }
.rh-split-total strong { color: var(--gold-hi); font-size: 17px; }
.rh-split-bar { display: flex; height: 12px; overflow: hidden; border: 1px solid var(--hairline-lo); border-radius: 6px; background: var(--ground-2); }
.rh-split-bar .keep { background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi)); transition: width 0.25s; }
.rh-split-bar .give { background: linear-gradient(90deg, #4d9a5e, var(--rh-live)); transition: width 0.25s; }
.rh-split-bar:empty { display: none; }

.rh-owner-sum { margin: 0 0 4px; }
.rh-sum-line { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--ink-dim); font-size: 12.5px; }
.rh-sum-line strong { color: var(--gold-hi); }
.rh-pay-result { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; overflow-wrap: anywhere; }
.rh-pay-result ul { margin: 6px 0 0; padding-left: 20px; }
.rh-pay-result.ok { border: 1px solid var(--rh-live); background: var(--rh-live-bg); color: var(--ink); }
.rh-pay-result.info { border: 1px solid var(--gold-dim); background: rgba(201, 162, 39, 0.1); color: var(--ink-dim); }
.rh-pay-result.err { border: 1px solid rgba(226, 96, 74, 0.5); background: var(--rh-danger-bg); color: #f2a591; }

.rh-partner-side { display: grid; gap: 6px; justify-items: end; min-width: 0; }
.rh-partner-side .rh-badge { margin-right: 0; }
.rh-partner-nums { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; color: var(--ink-faint); font-size: 12px; }
.rh-partner-nums strong { color: var(--ink); }

.rh-me-share { margin: 0 0 14px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.rh-me-share strong { color: var(--gold-hi); }
.rh-me-share .rh-muted { margin-top: 4px; font-size: 12px; }
.rh-me-note { margin-top: 12px; }
.rh-stat .sub { margin-top: 5px; color: var(--ink-faint); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.rh-stat-share { border-color: var(--gold-dim); background: rgba(201, 162, 39, 0.09); }
.rh-row.payout { grid-template-columns: 46px minmax(0, 1fr) auto; align-items: start; }
.rh-pay-amt { padding-top: 2px; color: var(--gold-hi); font-family: var(--font-display); font-size: 15px; white-space: nowrap; }
.rh-row.payout.pending .rh-pay-amt { color: var(--ink-faint); }
.rh-row.payout.reversed .rh-pay-amt { color: #f2a591; text-decoration: line-through; }
.rh-row.payout.failed .rh-pay-amt, .rh-row.payout.cancelled .rh-pay-amt { color: var(--ink-faint); }

.rh-modal-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink-dim); }
.rh-modal-list li { margin: 5px 0; overflow-wrap: anywhere; }
.rh-modal-list strong { color: var(--ink); }

/* Hosts tab: one row per channel, the tick box and the "% of payments" this person gets on it */
.rh-pick-grid { display: grid; gap: 8px; }
.rh-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 8px 12px;
  border: 1px solid var(--hairline-lo);
  border-radius: 8px;
  background: var(--ground-2);
}
.rh-pick-pct { display: flex; align-items: center; gap: 8px; }
.rh-shell .rh-pick-pct input[type="number"] { width: 84px; min-height: 38px; text-align: right; }
.rh-pick-unit { color: var(--ink-faint); font-size: 11.5px; }

/* ---------- payouts, fix pass: calm / blocked cards, the payout-only page, the owner's problem list, failed payouts ---------- */
/* "calm" card (needs_action wait / unknown): there is NOTHING for the person to do, so it must not look like the gold "Action needed" card:
   a neutral border, no glow, and a button that doesn't pulse. */
.rh-pay-card.calm {
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), var(--surface) 72%);
  box-shadow: none;
}
.rh-pay-card.calm .rh-pay-kicker { background: transparent; border: 1px solid var(--hairline); color: var(--ink-dim); }
.rh-pay-card.calm .rh-btn.primary { animation: none; box-shadow: none; }
/* "blocked" card (needs_action blocked): Stripe has put a hold on the account. Red like the other "something is wrong" states, but steady
   (no pulsing) - the person can only sort it out with Stripe. */
.rh-pay-card.blocked {
  border-color: var(--danger);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(226, 96, 74, 0.16), transparent 55%),
    linear-gradient(160deg, var(--rh-danger-bg), var(--surface) 72%);
  box-shadow: 0 0 0 1px rgba(226, 96, 74, 0.25), 0 0 40px -16px var(--danger);
}
.rh-pay-card.blocked .rh-pay-kicker { background: var(--danger); color: #1a0a06; }
.rh-pay-card.blocked .rh-btn.primary { animation: none; }
/* the step that is happening right now: a dark circle with a spinning ring (the gold-on-gold ring was hard to see) */
.rh-step.now { border-color: var(--gold-dim); }
.rh-step.now .rh-step-num { background: rgba(0, 0, 0, 0.4); border: 2px solid var(--gold-dim); }
.rh-step.now .rh-spin { width: 22px; height: 22px; border-width: 3px; }
.rh-pay-msg .rh-spin { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.rh-pay-msg .rh-btn.sm { margin-left: 2px; }
.rh-pay-msg .rh-btn.linklike { padding: 2px 4px; }

/* the "My payouts" tab: red dot for the owner when a payout needs them */
.rh-subtab.flag.danger { color: var(--danger); }

/* payout-only page (a removed host who is still owed money) */
#rh-only .rh-only-note { margin-bottom: 18px; }
#rh-only .rh-only-note h2 { margin-bottom: 8px; }

/* the owner's "Needs your attention" list of failed payouts (inherits the red .rh-attention look) */
.rh-problems { margin-bottom: 18px; }
.rh-problems .rh-row.att.problem.reversal_retry .rh-pos { color: var(--rh-pause); }
.rh-problems .rh-att-note { margin-top: 4px; }
.rh-sum-bad, .rh-sum-bad strong { color: #f2a591; }
.rh-sum-bad strong { color: #ffb9a8; }
.rh-host.rh-partner.has-failed { border-left: 3px solid var(--danger); }
.rh-partner-nums .bad, .rh-partner-nums .bad strong { color: #f2a591; }

/* a payee's "Failed" tile, and the reason under a payout line */
.rh-stat.bad { border-color: rgba(226, 96, 74, 0.55); background: var(--rh-danger-bg); }
.rh-stat.bad .num { color: #f2a591; }
.rh-pay-reason {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--hairline);
  color: var(--ink-dim);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.rh-row.payout.failed .rh-pay-reason { border-left-color: var(--danger); color: #f2a591; }
.rh-row.payout.pending .rh-pay-reason, .rh-row.payout.sent .rh-pay-reason { border-left-color: var(--rh-pause); color: #f6c982; }
.rh-row.payout.failed .rh-pos { color: var(--danger); font-weight: 700; }

/* round 2: the owner's per-row "Mark as settled" button, the waiting-by-channel line under a partner, and the fixed PAYOUT line in the note window */
.rh-problems .rh-row-actions { margin-top: 8px; }
/* round 3: a take-back the site is still retrying by itself has no "Mark as settled" button, only this calm line */
.rh-problem-calm {
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 7px 10px;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.rh-partner-by { color: var(--ink-faint); font-size: 11.5px; text-align: right; overflow-wrap: anywhere; }
.rh-note-pinned {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 96, 74, 0.55);
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--rh-danger-bg);
}
.rh-note-pinned-label { color: #ffb9a8; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.rh-note-pinned-text { color: #f2a591; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }

@media (prefers-reduced-motion: reduce) {
  .rh-pay-card .rh-btn.primary, .rh-spin { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .rh-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  header.site .navrow { padding: 8px 16px; }
  header.site .site-logo-img { height: 36px; }
}
@media (max-width: 640px) {
  .rh-shell.wrap { padding-left: 16px; padding-right: 16px; }
  .rh-card { padding: 14px 14px; }
  .rh-pill { font-size: 17px; padding: 8px 18px; }
  .rh-hero-actions { width: 100%; }
  .rh-hero-actions .rh-btn { flex: 1 1 auto; }
  .rh-row { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; padding: 12px 12px; }
  .rh-pos { font-size: 15px; }
  .rh-controls { grid-template-columns: 1fr; }
  .rh-modal { padding: 20px 16px 16px; }
  .rh-modal-actions .rh-btn { flex: 1 1 auto; }
  .rh-tabs { grid-template-columns: 1fr; }
  .rh-pay-card { padding: 20px 16px 18px; border-radius: 12px; }
  .rh-shell h2.rh-pay-title { font-size: 20px; }
  .rh-shell .rh-pay-lead { font-size: 14px; }
  .rh-step { padding: 12px; gap: 12px; }
  .rh-pay-actions .rh-btn { width: 100%; }
  .rh-btn.huge { font-size: 15px; padding: 16px 18px; min-height: 60px; }
  .rh-pay-strip-actions, .rh-pay-strip-actions .rh-btn { width: 100%; }
  .rh-row.payout { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .rh-split-pct { width: 100%; justify-content: flex-start; }
  .rh-partner-side { justify-items: start; }
  .rh-partner-nums { justify-content: flex-start; }
  .rh-partner-by { text-align: left; }
  .rh-problems .rh-row-actions .rh-btn { flex: 1 1 auto; }
}


/* ==================================================================
   STUDIO layout (Live / Money / Settings). Calm on purpose: one accent
   colour (gold), thin lines instead of coloured strips, no pulsing, big
   readable type on Live. Everything is prefixed rh- like the rest.
=================================================================== */

/* ---------- top bar: areas, privacy switch, bell ---------- */
.rh-topbar { margin-bottom: 12px; }
.rh-topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid var(--hairline); }
.rh-areas { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.rh-area {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px 11px;
  min-height: 46px;
  cursor: pointer;
}
.rh-area:hover { color: var(--ink-dim); }
.rh-area[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.rh-area.flag { color: var(--rh-pause); }
.rh-area.danger { color: var(--danger); }
.rh-topbar-right { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; }
.rh-topbar-right .rh-fresh { font-size: 11px; margin-right: 6px; }
.rh-iconbtn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
}
.rh-iconbtn svg { width: 22px; height: 22px; }
.rh-iconbtn:hover { color: var(--gold-hi); border-color: var(--hairline); }
.rh-iconbtn.on { color: var(--gold-hi); border-color: var(--gold-dim); background: rgba(201, 162, 39, 0.1); }
.rh-iconbtn.has { color: var(--gold-hi); }
#rh-privacy .eye-shut { display: none; }
#rh-privacy.on .eye-open { display: none; }
#rh-privacy.on .eye-shut { display: inline; }
.rh-bell-n {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #1a1205;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
/* the thin yellow TEST strip: only while Stripe is in test mode */
.rh-teststrip {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(244, 214, 124, 0.45);
  background: rgba(244, 214, 124, 0.12);
  color: var(--gold-hi);
  font-size: 11.5px;
}
.rh-teststrip strong { margin-right: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- the bell panel ---------- */
.rh-bellpanel {
  position: fixed;
  z-index: 200;
  top: 76px;
  right: 16px;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px 12px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}
.rh-bellpanel:focus { outline: none; }
.rh-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rh-bell-empty { color: var(--ink-faint); padding: 8px 0 10px; font-size: 13px; }
.rh-bell-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--hairline-lo); }
.rh-bell-item strong { color: var(--ink); font-size: 13px; }
.rh-bell-item-text { color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.rh-bell-sub { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.rh-bell-what { margin-bottom: 8px; }
.rh-bell-what summary { cursor: pointer; color: var(--ink-faint); font-size: 11.5px; }
.rh-bell-what .rh-help { margin-top: 8px; }
/* inside the bell the payment problems are plain rows, not a glowing red card */
.rh-bellpanel .rh-attention { border: none; background: none; box-shadow: none; padding: 0; }
.rh-bellpanel .rh-attention .rh-count { color: #1a1205; background: var(--gold); }
.rh-bellpanel .rh-list { border-color: var(--hairline); }
.rh-bellpanel .rh-row.att .rh-pos { color: var(--gold-hi); }

/* the old "something is wrong" card (Money > Needs your attention): a thin line, no glow */
.rh-attention { border-width: 1px; box-shadow: none; }

/* ---------- channel pills ---------- */
.rh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rh-tab { flex: 1 1 150px; min-height: 44px; padding: 8px 14px; border-radius: 8px; gap: 10px; }
.rh-tab-sub { font-size: 9.5px; }
.rh-tab .rh-dot { width: 9px; height: 9px; }
.live > .rh-dot, .rh-pill.live .rh-dot { animation: none; }

/* ---------- Live ---------- */
.rh-livehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 4px 0 4px; }
.rh-lh-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.rh-livehead .rh-pill { font-size: 11px; padding: 5px 13px; gap: 8px; letter-spacing: 0.16em; border-width: 1px; }
.rh-livehead .rh-pill .rh-dot { width: 8px; height: 8px; }
.rh-lh-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.rh-lh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-btn.quiet { color: var(--ink-faint); }
.rh-btn.on { border-color: var(--rh-pause); color: var(--rh-pause); }
.rh-liveline { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-faint); font-size: 12px; margin-bottom: 8px; }
.rh-money-line { color: var(--ink-dim); }
.rh-pausebox { margin-bottom: 8px; font-size: 12px; color: var(--ink-faint); }
.rh-pausebox summary { cursor: pointer; }
.rh-conflict { color: var(--rh-pause); font-size: 12px; margin-bottom: 8px; }
.rh-payhint { color: var(--rh-pause); font-size: 12px; margin-bottom: 8px; }

.rh-stage { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 22px 24px 20px; margin: 14px 0 18px; }
.rh-np-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rh-np-meta { min-width: 0; }
.rh-stage .rh-np-title { font-size: 28px; line-height: 1.2; }
.rh-stage .rh-np-artist { font-size: 17px; margin: 4px 0 10px; }
.rh-nextrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 14px 0 4px; }
.rh-nextbtn { min-width: 220px; letter-spacing: 0.14em; }
.rh-nextrow .rh-np-nextup { flex: 1 1 220px; margin-top: 0; font-size: 13px; }
.rh-stage .rh-empty { padding: 4px 2px 0; font-size: 15px; }
.rh-stage .rh-player { margin: 14px 0 0; }
#rh-np-player { margin-top: 6px; }

/* a song row on Live: position, artist - title, small badges, one "..." button */
.rh-row.q { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: 10px 14px; }
.rh-row.q .rh-row-actions { grid-column: 3; margin-top: 0; }
.rh-row.q .rh-row-title { margin-bottom: 3px; font-size: 15px; }
.rh-row.q .rh-row-line { margin-bottom: 0; }
.rh-ago { color: var(--ink-faint); font-size: 11.5px; margin-left: 2px; white-space: nowrap; }
.rh-free-note { font-size: 11.5px; }
.rh-badge.link { color: var(--ink-dim); border-color: var(--hairline); background: transparent; }
.rh-more {
  width: 40px;
  height: 40px;
  padding: 0 0 7px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
}
.rh-more:hover, .rh-more[aria-expanded="true"] { border-color: var(--gold-dim); color: var(--gold-hi); }

/* the one menu per song */
.rh-menu-back { position: fixed; inset: 0; z-index: 240; background: transparent; }
.rh-menu {
  position: fixed;
  z-index: 250;
  min-width: 250px;
  max-width: min(400px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.75);
  font-size: 12.5px;
}
.rh-menu-head { color: var(--ink); padding: 6px 8px; overflow-wrap: anywhere; border-bottom: 1px solid var(--hairline-lo); margin-bottom: 6px; }
.rh-menu-details { padding: 2px 8px 8px; color: var(--ink-dim); font-size: 12px; border-bottom: 1px solid var(--hairline-lo); margin-bottom: 6px; }
.rh-menu-line { display: flex; gap: 10px; padding: 2px 0; }
.rh-menu-line .k { color: var(--ink-faint); min-width: 54px; flex: none; }
.rh-menu-line .v { overflow-wrap: anywhere; min-width: 0; }
.rh-menu-details .rh-row-notes, .rh-menu-details .rh-row-hostnote { margin-top: 6px; font-size: 12px; }
.rh-menu-priv { padding: 4px 8px 8px; color: var(--ink-faint); font-size: 11.5px; border-bottom: 1px solid var(--hairline-lo); margin-bottom: 6px; }
.rh-menu-items { display: grid; gap: 2px; }
.rh-menu-item {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 11px 10px;
  min-height: 42px;
  cursor: pointer;
}
.rh-menu-item:hover, .rh-menu-item:focus-visible { background: rgba(201, 162, 39, 0.12); color: var(--gold-hi); outline: none; }
.rh-menu-item.danger { color: #f2a591; }
.rh-menu-item.danger:hover, .rh-menu-item.danger:focus-visible { background: var(--rh-danger-bg); color: #ffb9a8; }
.rh-menu.sheet { left: 0; right: 0; bottom: 0; top: auto; max-width: none; border-radius: 14px 14px 0 0; max-height: 82vh; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

/* player: uploaded file or the official embed of a link */
.rh-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.rh-embed.soundcloud iframe { aspect-ratio: auto; height: 166px; }
.rh-embed.bandcamp iframe { aspect-ratio: auto; height: 120px; }
.rh-embed.spotify iframe { aspect-ratio: auto; height: 152px; }
.rh-embed:empty { display: none; }
.rh-link-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rh-mixer-note { color: var(--ink-faint); font-size: 11.5px; margin-top: 8px; overflow-wrap: anywhere; }
.rh-mixer-note:empty { display: none; }
.rh-mixer-box { margin-top: 12px; }
.rh-mixer-box:empty { display: none; }

/* ---------- Settings pages ---------- */
.rh-subtabs { gap: 2px 18px; }
.rh-fxline { color: var(--ink-dim); font-size: 12px; padding: 0 0 12px; }
.rh-fx-now { font-family: var(--font-display); color: var(--gold-hi); font-size: 15px; margin-bottom: 4px; }
.rh-fx-detail { font-size: 12px; margin-bottom: 4px; }
.rh-fx-readout { color: var(--ink-dim); font-size: 12px; min-height: 18px; margin: -6px 0 14px; }
.rh-fx-form input { max-width: 200px; }
.rh-shell select {
  width: 100%;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  min-height: 40px;
}
.rh-shell select:focus { border-color: var(--gold-dim); }
.rh-copyrow { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-copyrow input { flex: 1 1 260px; min-width: 0; font-size: 12px; }
.rh-keybox { font-family: ui-monospace, Consolas, "Courier New", monospace !important; font-size: 12.5px !important; }
.rh-copyrow-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rh-ovl-mixer { margin-top: 24px; }
.rh-stripe-note:empty { display: none; }
.rh-worker .rh-tier-actions { align-self: center; }
.rh-money-line, .rh-liveline span { overflow-wrap: anywhere; }

/* ---------- phone width ---------- */
@media (max-width: 640px) {
  .rh-topbar-in { gap: 0 8px; }
  .rh-area { padding: 10px 10px 11px; font-size: 12px; letter-spacing: 0.1em; }
  .rh-bellpanel { top: 8px; right: 8px; left: 8px; width: auto; max-height: calc(100vh - 16px); }
  .rh-stage { padding: 16px 14px 14px; }
  .rh-stage .rh-np-title { font-size: 22px; }
  .rh-stage .rh-np-artist { font-size: 15px; }
  .rh-nextbtn { width: 100%; min-width: 0; }
  .rh-lh-actions { width: 100%; }
  .rh-lh-actions .rh-btn { flex: 1 1 auto; }
  .rh-tabs { display: flex; }
  .rh-row.q { grid-template-columns: 28px minmax(0, 1fr) 40px; gap: 6px 8px; padding: 10px 10px; }
  .rh-menu-back { background: rgba(8, 6, 4, 0.55); }
  .rh-copyrow .rh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-area, .rh-iconbtn { transition: none; }
}

/* ---- song links card (owner settings) ---- */
.rh-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rh-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink); font-size: 13px; cursor: pointer; }
.rh-radio input { accent-color: var(--gold-hi); }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.rh-chips.presets { margin-top: 8px; }
.rh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 11px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--ink); font-size: 12px; background: rgba(255, 255, 255, 0.03); }
.rh-chip-x { appearance: none; border: 0; background: transparent; color: var(--ink-faint); font-size: 16px; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.rh-chip-x:hover:not(:disabled) { color: #f2a591; background: var(--rh-danger-bg); }
.rh-chip-x:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.rh-chip-x:disabled { opacity: 0.5; cursor: default; }
.rh-chip-form { display: flex; gap: 8px; margin-top: 10px; max-width: 460px; }
.rh-chip-form input { flex: 1; min-width: 0; }

/* ---- export and send (under the mixer) ---- */
.rh-sendbox { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 8px; background: rgba(255, 255, 255, 0.025); display: grid; gap: 10px; }
.rh-sendbox[hidden] { display: none; }
.rh-sendbox-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rh-sendbox-head strong { font-size: 13px; letter-spacing: 0.04em; color: var(--ink); }
.rh-send-label { font-size: 12px; color: var(--ink-dim); }
.rh-sendbox textarea { width: 100%; resize: vertical; min-height: 64px; font: inherit; font-size: 13px; color: var(--ink); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--hairline); border-radius: 6px; padding: 8px 10px; box-sizing: border-box; }
.rh-sendbox textarea:focus-visible, .rh-sendbox select:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.rh-send-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 12.5px; color: var(--ink-dim); }
.rh-send-opts[hidden], .rh-send-actions button[hidden] { display: none; }
.rh-send-opts select { font: inherit; font-size: 12.5px; color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--hairline); border-radius: 5px; padding: 4px 6px; margin-left: 6px; }
.rh-send-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.rh-send-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-send-status { min-height: 18px; font-size: 12.5px; color: var(--ink-dim); }
.rh-send-status.ok { color: var(--rh-live); }
.rh-send-status.error { color: #f2a591; }
.rh-send-hist-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
.rh-send-hist-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 12.5px; color: var(--ink-dim); padding: 6px 0; border-top: 1px solid var(--hairline-lo); }
