/* PL1-T3-M1; PL2-T3-M1. The runtime's own styles: the v3 shell (D-24), the notifications panel (D-22), the jump
   palette (D-23), the colour mode form (D-36), the live status card and island, the connection banner, and the PL1
   skeleton pages. T1's rh.css owns the tokens and every component (rh-btn, rh-status, rh-meter, rh-dialog, ...);
   this file sets no token and restyles no T1 component (PL1 DEVIATIONS 5 and 8 closed).
   Host isolation (spike §4.7, T-04): every selector starts at .rh, every class is rh- prefixed, so the island
   changes nothing on the v1 Hyper page around it. No style attribute anywhere: v3 runs under a nonce-only style-src. */

body:has(> .rh.rh-app) { margin: 0; }

.rh .rh-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 12px; border-radius: var(--rh-r-sm); background: var(--rh-sheet); color: var(--rh-text); }
.rh .rh-skip:focus { left: 16px; top: 8px; }

/* ---------------------------------------------------------------- D-24 shell */
.rh .rh-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.rh .rh-shell--bare { grid-template-columns: minmax(0, 1fr); }
.rh .rh-shell__side {
  position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; gap: var(--rh-sp-5);
  padding: var(--rh-sp-4) var(--rh-sp-3); border-right: 1px solid var(--rh-line); background: var(--rh-glass);
}
.rh .rh-shell__brand, .rh .rh-shell__top-brand { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px; color: var(--rh-text); font-weight: var(--rh-fw-title); font-size: var(--rh-fs-lg); }
/* PL3-T3-M2 / #3532 (OD-19): the pack's lockup (36 px tall) and mark (27 px). Night shows logo-on-dark, daybreak
   logo-on-light, system follows the OS. CSS only, never script. */
.rh .rh-shell__brand, .rh .rh-shell__top-brand { padding: 4px 10px; }
.rh .rh-brand { display: block; height: 36px; width: auto; flex: none; }
.rh .rh-brand--light, .rh .rh-brand-mark { display: none; }
.rh[data-mode="daybreak"] .rh-brand--dark { display: none; }
.rh[data-mode="daybreak"] .rh-brand--light { display: block; }
@media (prefers-color-scheme: light) {
  .rh[data-mode="system"] .rh-brand--dark { display: none; }
  .rh[data-mode="system"] .rh-brand--light { display: block; }
}
.rh .rh-brand-mark { height: 27px; width: auto; flex: none; }
/* PL4-T3-M2 / #3646 (OD-28): the side column's lockup is centred in the column's inner width with less padding, and
   70 px tall (221 px wide, at least 80% of the inner width). The top bar's lockup and the phone mark are unchanged.
   The column no longer scrolls; its nav, shelf and mode form scroll in rh-shell__side-scroll, so a classic scrollbar
   narrows that box only and the lockup keeps equal gaps. */
.rh .rh-shell__brand { display: flex; justify-content: center; padding: 4px 0; }
.rh .rh-shell__brand .rh-brand { height: 70px; }
.rh .rh-shell__side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--rh-sp-5); }
/* Forced colours: the visible lockup follows the palette, not the mode (contract.md, "the logo follows the palette"). */
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .rh .rh-brand--light { content: url("brand/logo-on-dark.svg"); }
}
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .rh .rh-brand--dark { content: url("brand/logo-on-light.svg"); }
}
.rh .rh-shell__side-foot { margin-top: auto; padding: var(--rh-sp-3) 10px 0; border-top: 1px solid var(--rh-line); }
.rh .rh-shell__body { display: flex; flex-direction: column; min-width: 0; }
/* PL6-T3-M1 / #3846 (U5): the top bar is opaque (--rh-solid, as the #3782 panel), so page art and text never show through
   it when they scroll beneath. It was --rh-glass-strong, 86% (night) or 90% (daybreak) opaque, with no backdrop-filter. */
.rh .rh-shell__top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--rh-sp-2); min-height: 56px;
  padding: 8px var(--rh-sp-5); border-bottom: 1px solid var(--rh-line); background: var(--rh-solid);
}
.rh .rh-shell__top-brand { display: none; }
.rh .rh-shell--bare .rh-shell__top-brand { display: inline-flex; }
.rh .rh-shell__tag { color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 600; border: 1px solid var(--rh-line-2); border-radius: var(--rh-r-pill); padding: 1px 8px; }
.rh .rh-shell__menu-btn { display: none; }
.rh .rh-shell__util { margin-left: auto; display: flex; align-items: center; gap: var(--rh-sp-2); }
.rh .rh-shell__kbd { font: 600 var(--rh-fs-xs)/1.4 var(--rh-font-sans); color: var(--rh-text-2); border: 1px solid var(--rh-line-2); border-radius: 6px; padding: 0 5px; }
.rh .rh-shell__main { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--rh-sp-6) var(--rh-sp-5) var(--rh-sp-7); }
.rh .rh-shell__main:focus { outline: none; }
.rh .rh-shell__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--rh-sp-4); padding: var(--rh-sp-4) var(--rh-sp-5); border-top: 1px solid var(--rh-line); color: var(--rh-text-2); font-size: var(--rh-fs-sm); }
.rh .rh-shell__foot-links { display: flex; flex-wrap: wrap; gap: 4px var(--rh-sp-4); }
.rh .rh-shell__foot-links a { color: var(--rh-text-2); text-decoration: underline; text-underline-offset: 2px; }
.rh .rh-shell__notice { flex-basis: 100%; }
.rh .rh-shell__tabbar { display: none; }

/* nav (S-04 items) */
.rh .rh-nav { display: grid; gap: 2px; }
.rh .rh-nav__title { padding: 10px 10px 4px; color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rh .rh-nav__list { display: grid; gap: 2px; }
.rh .rh-nav__item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: var(--rh-r-sm); color: var(--rh-text-2); font-size: var(--rh-fs-md); }
.rh .rh-nav__item .rh-ic { font-size: 18px; color: var(--rh-text-3); }
.rh .rh-nav__item[aria-current="page"] { background: var(--rh-accent-soft); color: var(--rh-text); font-weight: 600; }
.rh .rh-nav__item[aria-current="page"] .rh-ic { color: var(--rh-accent-text); }
.rh .rh-nav__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rh .rh-nav__count { flex: none; min-width: 22px; padding: 0 7px; border-radius: var(--rh-r-pill); background: var(--rh-well); color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.rh .rh-nav__group { border-top: 1px solid var(--rh-line); padding-top: 2px; margin-top: 2px; }
.rh .rh-nav__summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 10px; border-radius: var(--rh-r-sm); color: var(--rh-text-2); font-size: var(--rh-fs-sm); font-weight: 600; cursor: pointer; list-style: none; }
.rh .rh-nav__summary::-webkit-details-marker { display: none; }
.rh .rh-nav__caret { transition: transform var(--rh-dur-1) var(--rh-ease); }
.rh .rh-nav__group[open] > .rh-nav__summary .rh-nav__caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .rh .rh-nav__item:hover, .rh .rh-nav__summary:hover, .rh .rh-shelf__item:hover { background: var(--rh-glass-soft); color: var(--rh-text); }
}

/* fleet shelf */
.rh .rh-shelf { display: grid; gap: 4px; padding-top: var(--rh-sp-3); border-top: 1px solid var(--rh-line); }
.rh .rh-shelf__title { padding: 0 10px 4px; color: var(--rh-text); font-size: var(--rh-fs-sm); font-weight: 650; }
.rh .rh-shelf__group-title { padding: 6px 10px 2px; color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rh .rh-shelf__list { display: grid; gap: 2px; }
.rh .rh-shelf__list--dgs { margin: 2px 0 2px 19px; padding-left: 6px; border-left: 1px solid var(--rh-line-2); }
.rh .rh-shelf__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "glyph label" "glyph live";
  column-gap: 8px; align-items: center; padding: 6px 10px; border-radius: var(--rh-r-sm); color: var(--rh-text);
}
.rh .rh-shelf__item[aria-current="page"] { background: var(--rh-accent-soft); }
.rh .rh-shelf__glyph { grid-area: glyph; align-self: start; margin-top: 3px; color: var(--rh-text-3); }
.rh .rh-shelf__label { grid-area: label; min-width: 0; overflow-wrap: anywhere; font-size: var(--rh-fs-sm); font-weight: 600; }
.rh .rh-shelf__live { grid-area: live; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--rh-text-2); font-size: var(--rh-fs-xs); }
.rh .rh-shelf__metric { font-variant-numeric: tabular-nums; }
.rh .rh-shelf__empty { padding: 0 10px; color: var(--rh-text-2); font-size: var(--rh-fs-sm); }

/* ---------------------------------------------------------------- D-22 notifications
   PL5-T3-M1 / #3782 (OD-38): the panel is opaque (--rh-solid, not the translucent --rh-sheet), so page text never
   shows through it. */
.rh .rh-notify { position: relative; }
.rh .rh-notify__badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rh-accent); color: var(--rh-on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.rh .rh-notify__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px);
  overflow-y: auto; padding: var(--rh-sp-3); border: 1px solid var(--rh-line-2); border-radius: var(--rh-r-lg); background: var(--rh-solid); box-shadow: var(--rh-shadow-pop);
}
.rh .rh-notify__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; }
.rh .rh-notify__title { color: var(--rh-text); font-size: var(--rh-fs-md); font-weight: 650; }
.rh .rh-notify__list { display: grid; gap: 2px; }
.rh .rh-notify__entry { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--rh-r-sm); color: var(--rh-text); }
@media (hover: hover) and (pointer: fine) { .rh .rh-notify__entry--link:hover { background: var(--rh-glass-soft); } }
.rh .rh-notify__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.rh .rh-notify__label { font-size: var(--rh-fs-sm); font-weight: 650; }
.rh .rh-notify__resource, .rh .rh-notify__meta { color: var(--rh-text-2); font-size: var(--rh-fs-xs); }
.rh .rh-notify__sentence { font-size: var(--rh-fs-sm); overflow-wrap: anywhere; }
.rh .rh-notify__meta { display: flex; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; }
.rh .rh-notify__empty { padding: 8px 4px; color: var(--rh-text-2); font-size: var(--rh-fs-sm); }

/* ---------------------------------------------------------------- D-23 jump palette */
.rh .rh-jump { display: grid; gap: var(--rh-sp-3); }
.rh .rh-jump__list { display: grid; gap: 2px; }
.rh .rh-jump__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "glyph label kind" "glyph detail kind";
  column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--rh-r-sm); color: var(--rh-text);
}
.rh .rh-jump__item:focus-visible { background: var(--rh-glass-soft); }
@media (hover: hover) and (pointer: fine) { .rh .rh-jump__item:hover { background: var(--rh-glass-soft); } }
.rh .rh-jump__glyph { grid-area: glyph; color: var(--rh-text-3); font-size: 18px; }
.rh .rh-jump__label { grid-area: label; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rh .rh-jump__kind { grid-area: kind; color: var(--rh-text-2); font-size: var(--rh-fs-xs); text-align: right; }
.rh .rh-jump__detail { grid-area: detail; color: var(--rh-text-2); font-size: var(--rh-fs-xs); }
.rh .rh-jump__hint { color: var(--rh-text-2); font-size: var(--rh-fs-sm); }

/* ---------------------------------------------------------------- D-36 colour mode, the Menu sheet */
.rh .rh-mode { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.rh .rh-sheet { display: grid; gap: var(--rh-sp-4); }
.rh .rh-sheet .rh-shelf { padding-top: var(--rh-sp-2); }

/* ---------------------------------------------------------------- PL3-T3-M1 D-37 feedback, A-08 triage, early access */
.rh .rh-feedback { display: grid; gap: var(--rh-sp-4); }
.rh .rh-feedback__attached summary { color: var(--rh-text-2); font-size: var(--rh-fs-sm); cursor: pointer; }
.rh .rh-feedback__status { margin: 0; color: var(--rh-danger); font-size: var(--rh-fs-sm); font-weight: 600; }
.rh .rh-feedback__status:empty { display: none; }
.rh button.rh-nav__item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.rh .rh-feedback-admin { display: grid; gap: var(--rh-sp-4); }
.rh .rh-feedback-admin__counts { display: grid; gap: var(--rh-sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rh .rh-feedback-admin__filters { display: grid; gap: var(--rh-sp-3); align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rh .rh-feedback-admin__filter-actions { display: flex; flex-wrap: wrap; gap: var(--rh-sp-2); }
.rh .rh-feedback-admin__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rh-text); }
.rh .rh-feedback-admin__errors { display: grid; gap: var(--rh-sp-3); margin: 0; padding-left: 20px; }
.rh .rh-feedback-admin__error { margin: 0; overflow-wrap: anywhere; color: var(--rh-text); font-size: var(--rh-fs-sm); }
.rh .rh-feedback-admin__stack { margin: 4px 0 0; max-height: 240px; overflow: auto; padding: 8px; border-radius: var(--rh-r-sm); background: var(--rh-well); color: var(--rh-text-2); font-size: var(--rh-fs-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
.rh .rh-early-access__grant { margin: 16px 0 24px; max-width: 520px; }

/* PL5-T3-M1 (U2): the Return to v1 dialog's form; (U4) the switch report. */
.rh .rh-leave { display: grid; gap: var(--rh-sp-4); }
.rh .rh-switches { display: grid; gap: var(--rh-sp-4); }
.rh .rh-switches__counts { display: grid; gap: var(--rh-sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rh .rh-switches__defs { margin: 0; padding-left: 20px; color: var(--rh-text-2); font-size: var(--rh-fs-sm); }

/* ---------------------------------------------------------------- PL3-T3-M2 D-21 Emergency (parity rows 22, 309-311) */
.rh .rh-shell__emergency-btn { white-space: nowrap; }
.rh .rh-shell__emergency-reason { color: var(--rh-text-2); font-size: var(--rh-fs-xs); white-space: nowrap; }
.rh .rh-nav__item--danger, .rh .rh-nav__item--danger .rh-ic { color: var(--rh-danger); }
/* #3546 item 4: the label and v1's reason stack only in the Emergency sheet item. */
.rh .rh-nav__item[data-rh-emergency-entry] .rh-nav__label { display: grid; }
/* #3546 item 5: shell.js sets hidden on the account-menu Emergency item at 640 px and below; T1's menu item is display: flex. */
.rh .rh-menu__item[hidden] { display: none; }
/* Ruling 1 on #3546 item 8: the account-menu Emergency item is where 641-700 px shows v1's reason. T1's item is nowrap in a
   320 px panel, so the Upsell reason ran past the panel and the viewport; here it wraps under the label (17 px icon + 10 px gap). */
.rh .rh-menu__item[data-rh-emergency-entry] { flex-wrap: wrap; row-gap: 2px; min-width: 0; padding-block: 6px; white-space: normal; }
.rh .rh-menu__item[data-rh-emergency-entry] .rh-menu__meta { flex-basis: 100%; margin-left: 27px; min-width: 0; overflow-wrap: anywhere; }
.rh .rh-nav__reason { color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 400; }
.rh .rh-emergency { display: grid; gap: var(--rh-sp-3); }
.rh .rh-emergency p { margin: 0; }
.rh .rh-emergency__form { display: grid; gap: var(--rh-sp-3); }
.rh .rh-emergency__form[hidden] { display: none; }
.rh .rh-emergency__reply:empty, .rh .rh-emergency__error:empty, .rh .rh-emergency__status:empty { display: none; }
.rh .rh-emergency__status-body { display: grid; gap: var(--rh-sp-2); padding: 10px 12px; border-radius: var(--rh-r-sm); background: var(--rh-well); }
.rh .rh-emergency__status-body:empty { display: none; }
.rh .rh-emergency__error { color: var(--rh-danger); font-weight: 600; }
.rh .rh-emergency__links { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- tablet: 1240 px and below (the page container)
   #3546 item 8 (measured): at 820 px the top bar is 548 px wide; Emergency (120 px) plus "Jump to", "Beta feedback", the
   notifications and the account menu needed 552 px of the 451 left, so the account menu sat past the edge even for Live,
   and an Upsell reason added 282 px more (the full-label bar with a reason needs a 1,203 px page). Here "Jump to" and
   "Beta feedback" become icon buttons (their names stay for assistive technology), the "v3 preview" tag goes (as on the
   phone), and the reason wraps beside the button. At 700 px and below there is no room beside it: the state stays in the
   entry's accessible name and the dialog says the reason. The phone rules below still win at 640 px. */
@container rh-page (max-width: 1240px) {
  .rh .rh-shell__jump-label, .rh .rh-shell__feedback-btn .rh-btn__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .rh .rh-shell__kbd, .rh .rh-shell__tag { display: none; }
  .rh .rh-shell__jump-btn, .rh .rh-shell__feedback-btn { width: var(--rh-control-h); padding: 0; justify-content: center; }
  .rh .rh-shell__emergency-reason { white-space: normal; max-width: 16ch; line-height: 1.25; }
}
@container rh-page (max-width: 700px) {
  .rh .rh-shell__emergency-reason { display: none; }
}

/* ---------------------------------------------------------------- phone: 640 px and below (the page container) */
@container rh-page (max-width: 640px) {
  .rh .rh-shell { grid-template-columns: minmax(0, 1fr); }
  .rh .rh-shell__side { display: none; }
  .rh .rh-shell__top { padding: 6px 12px; }
  .rh .rh-shell__menu-btn, .rh .rh-shell__top-brand { display: inline-flex; }
  .rh .rh-shell__top-brand { padding: 4px; }
  .rh .rh-shell__jump-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .rh .rh-shell__tag, .rh .rh-shell__kbd, .rh .rh-shell__feedback-btn, .rh .rh-shell__emergency-btn, .rh .rh-shell__emergency-reason { display: none; }
  /* #3532: the lockup does not fit the phone top bar; the mark stands alone. (0,4,0) beats the mode swap (0,3,0). */
  .rh .rh-shell__top .rh-shell__top-brand .rh-brand { display: none; }
  .rh .rh-shell__top .rh-shell__top-brand .rh-brand-mark { display: block; }
  .rh .rh-shell__jump-btn { width: var(--rh-control-h); padding: 0; }
  .rh .rh-shell__main { padding: var(--rh-sp-4) var(--rh-sp-3) calc(96px + env(safe-area-inset-bottom)); }
  .rh .rh-shell__foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* PL6-T3-M1 / #3846 (Discovery ruling 2026-10-08): the tab bar is opaque too (was --rh-sheet, 94% / 96% opaque). */
  .rh .rh-shell__tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--rh-line); background: var(--rh-solid);
  }
  .rh .rh-notify__panel { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; }
}
/* PL6-T3-M1 / #4242. Freshchat's launcher (#fc_frame: the SDK appends it to <body> and writes "bottom: 15px; right: 15px"
   inline) covered the 390 px tab bar's Storage and More items and, at 1440 px, the footer's Contact Us link (deployed dev,
   2026-10-09). The footer keeps its last 104 px clear of the 70 px launcher at every width. While the tab bar shows, the
   launcher and the open conversation panel (.fc-open) sit 12 px above it (owner report, 2026-10-08: closed and open).
   The open panel covers the page by design, so the footer's 104 px protects the closed launcher only. The query is 20 px
   wider than the 640 px container breakpoint: the container excludes a classic scrollbar and a media query does not, and
   a launcher lifted where no tab bar shows costs nothing. !important beats the SDK's inline style.
   #4513: Freshchat's full-screen chat (a mobile user agent's .fc-mobile-view, .fc-widget-fullscreen, .expanded-modal;
   each with .h-open-container, widget.css: bottom 0 !important, height 100%) is never lifted. Lifted, it moved 69 px up and
   its close control left the screen (WebKit iPhone 13, deployed dev). Freshchat's own classes, no user-agent test. */
.rh:has([data-rh-chat-config]) .rh-shell__foot { padding-right: max(var(--rh-sp-5), 104px); }
@media (max-width: 660px) {
  body:has(> .rh.rh-app .rh-shell__tabbar) #fc_frame:not(.fc-mobile-view.h-open-container):not(.fc-widget-fullscreen.h-open-container):not(.h-open-container.expanded-modal) { bottom: calc(57px + env(safe-area-inset-bottom) + 12px) !important; }
}
@media (max-width: 660px) { body:has(> .rh.rh-app .rh-shell__tabbar) { --rh-chat-launcher-bottom: calc(57px + env(safe-area-inset-bottom) + 12px); } } /* PL6.5-T1-M1 U8 (#4634), T1's named line: the lift above, named for rh.css's toast region */
.rh .rh-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rh .rh-tabbar__item { display: grid; justify-items: center; align-content: center; gap: 2px; width: 100%; min-height: 56px; padding: 6px 2px; color: var(--rh-text-2); font-size: 11px; font-weight: 600; }
.rh .rh-tabbar__item .rh-ic { font-size: 20px; }
.rh .rh-tabbar__item[aria-current="page"] { color: var(--rh-accent-text); }

/* ---------------------------------------------------------------- live status card (T1 P-07 / P-08 inside) */
.rh .rh-live { display: grid; gap: 6px; margin: 8px 0 0; }
.rh .rh-live__heading { color: var(--rh-text-2); font-size: var(--rh-fs-sm); font-weight: 600; }
.rh .rh-live__status { font-size: var(--rh-fs-lg); font-weight: 600; }
.rh .rh-live__detail, .rh .rh-live__players, .rh .rh-live__note { color: var(--rh-text-2); font-size: var(--rh-fs-sm); }
.rh .rh-meters { display: grid; gap: 10px; margin-top: 6px; }
.rh .rh-live__actions { margin-top: 8px; }

/* The connection banner. The server renders it hidden with role="status"; live.js shows it while the socket is down. */
.rh .rh-conn {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 32px);
  padding: 8px 14px; border-radius: var(--rh-r-sm); background: var(--rh-sheet); color: var(--rh-text); border: 1px solid var(--rh-warning);
  font-size: var(--rh-fs-sm); font-weight: 600; box-shadow: var(--rh-shadow-pop);
}
.rh .rh-conn[hidden] { display: none; }

/* The island inside the v1 Hyper page: T1's RhRoot in island mode. */
.rh.rh-island--live { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--rh-line); border-radius: var(--rh-r-lg); background: var(--rh-solid); }
.rh .rh-island__tag { color: var(--rh-text-2); font-size: var(--rh-fs-xs); font-weight: 600; }

/* ---------------------------------------------------------------- PL1 skeleton pages (home, /v3/flag) */
.rh .rh-content__title { color: var(--rh-text); font-size: var(--rh-fs-3xl); font-weight: var(--rh-fw-title); letter-spacing: -.02em; margin: 0 0 4px; }
.rh .rh-content__lead, .rh .rh-content__foot, .rh .rh-content__empty { color: var(--rh-text-2); margin: 0 0 16px; }
.rh .rh-cards { display: grid; gap: 16px; margin: 16px 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rh .rh-card__link { display: inline-block; margin-top: 12px; color: var(--rh-accent-text); text-decoration: underline; text-underline-offset: 2px; font-size: var(--rh-fs-sm); }
.rh .rh-content__foot a { color: var(--rh-accent-text); text-decoration: underline; }
.rh .rh-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.rh .rh-facts dt { color: var(--rh-text-2); }
.rh .rh-facts dd { color: var(--rh-text); }
.rh .rh-form { display: grid; gap: 12px; justify-items: start; }
.rh .rh-fieldset { display: grid; gap: 4px; border: 1px solid var(--rh-line-2); border-radius: var(--rh-r-sm); padding: 12px 16px; }
.rh .rh-fieldset legend { color: var(--rh-text); padding: 0 4px; }
.rh .rh-radio { display: block; color: var(--rh-text); }
.rh .rh-note { color: var(--rh-success); }
