/* Shared look for the host pages. The console browser is a WebKit drawing on
   a TV at a distance: large type, high contrast, nothing animated while the
   chain runs. Sizes are in rem so one root size scales a whole page: the
   console's landscape viewport is about 1920 px wide and gets the larger one.

   The theme follows the RTM site (website/styles.css): near-black ground, one
   flat coral accent, 1px borders with a 2px accent top edge on cards, small
   mono eyebrows in letter-spaced caps, serif reading text. No gradients, no
   glows, no rounded pills. The console's WebKit is old: no :has(), no flex
   gap, no inset shorthand, no backdrop-filter. */
:root {
  --bg: #111111;
  --panel: #171515;
  --panel-hi: #1c1818;
  --sunk: #0d0d0d;
  --note: #141212;
  --line: #292929;
  --line-strong: #363030;
  --fg: #dededb;
  --bright: #f6f6f3;
  --dim: #93938f;
  --faint: #6f6c6a;
  --detail: #aaa5a5;
  --ok: #74c69d;
  --ok-soft: rgba(116, 198, 157, 0.12);
  --bad: #e76868;
  --bad-soft: rgba(231, 104, 104, 0.12);
  --warn: #d9b26a;
  --warn-soft: rgba(217, 178, 106, 0.12);
  --info: #9ec1e8;
  --info-soft: rgba(158, 193, 232, 0.14);
  --accent: #e76868;
  --accent-2: #c94f4f;
  --kern: #d8a3a3;
  --hex: #d8b9b9;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", Consolas, "Liberation Mono", monospace;
  /* the reference caps its column at 960 px; in rem it scales with the root */
  --width: 60rem;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
@media (min-width: 601px) {
  html {
    font-size: 13px;
  }
}
@media (min-width: 1600px) {
  html {
    font-size: 17px;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg);
}
body {
  color: var(--fg);
  font: 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: underline;
}
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  font-family: inherit;
}

/* ---------- header ---------- */
.bar {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.625rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.logo {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.75rem;
  background: var(--accent);
}
.brand {
  flex: none;
  color: var(--bright);
  font: 700 1.125rem/1.2 var(--sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span {
  margin-left: 0.625rem;
  color: var(--dim);
  font: 400 0.75rem/1.2 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.grow {
  flex: 1;
}
.chip {
  flex: none;
  margin-left: 0.625rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font: 0.8125rem/1.5 var(--mono);
  white-space: nowrap;
}
.chip b {
  color: var(--bright);
  font-weight: 700;
}
.chip.live {
  border-color: var(--ok);
  color: var(--ok);
}
.chip.down {
  border-color: var(--bad);
  color: var(--bad);
}

/* ---------- landing ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 29px 1.25rem 0;
}
.wordmark {
  color: var(--fg);
  font: 700 15px var(--sans);
  letter-spacing: -0.25px;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.site-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-tabs a {
  padding: 6px 12px;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  font: 700 13px/1.2 var(--mono);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.site-tabs a:hover { color: var(--fg); }
.site-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--fg); }
.wordmark:focus-visible, .site-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}
.intro {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.intro::before {
  content: "";
  width: 4px;
  align-self: stretch;
  background: var(--accent);
}
.hero h1 {
  margin: 0;
  color: var(--bright);
  font: 700 30px/1.2 var(--mono);
  letter-spacing: -0.01em;
}
.hero h1 .slash {
  margin: 0 0.1em;
  color: var(--accent);
  font-weight: 400;
}
.hero h1 .section {
  color: var(--dim);
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
}
.card {
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
  background: var(--panel);
}
.eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* the compact strip of facts above the actions */
.facts {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: var(--sunk);
}
.fact {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.625rem 1rem;
  border-left: 1px solid var(--line);
}
.fact:first-child {
  border-left: 0;
}
.fact .k {
  display: block;
  color: var(--dim);
  font: 0.6875rem/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.fact .v {
  display: block;
  color: var(--bright);
  font: 0.9375rem/1.5 var(--mono);
  white-space: nowrap;
}
.pill {
  display: inline-block;
  padding: 0 0.4375rem;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font: 0.875rem/1.5 var(--mono);
  letter-spacing: 0.5px;
}
.pill.ok {
  border-color: var(--ok);
  color: var(--ok);
}
.pill.bad {
  border-color: var(--bad);
  color: var(--bad);
}
.pill.warn {
  border-color: var(--warn);
  color: var(--warn);
}

/* the actions: big flat cards, two side by side, stacked when narrow */
.actions {
  display: flex;
}
.actions .action {
  flex: 1 1 0;
}
.actions .action + .action {
  margin-left: 1rem;
}
.action {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem 0.875rem;
  color: var(--fg);
  font: 1rem/1.5 var(--sans);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
}
.action.wide {
  margin-top: 1rem;
}
.action .title {
  display: block;
  color: var(--bright);
  font: 700 1.625rem/1.2 var(--sans);
  letter-spacing: -0.02em;
}
.action .title:after {
  content: "\2192";
  float: right;
  color: var(--accent);
  font-weight: 400;
}
.action .line {
  display: block;
  margin-top: 0.375rem;
  color: var(--fg);
  font: 1.0625rem/1.45 var(--serif);
}
.action .specs {
  display: block;
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--detail);
  font: 0.8125rem/1.6 var(--mono);
}
.action .specs span {
  display: block;
}
.action .specs i {
  display: inline-block;
  width: 6.5rem;
  color: var(--dim);
  font-style: normal;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.action .avg {
  display: block;
  margin-top: 0.375rem;
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
  letter-spacing: 0.5px;
}
.action .avg[hidden] {
  display: none;
}
.action:hover,
.action:focus {
  border-color: var(--accent);
  background: var(--panel-hi);
}
.action:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* still legible, plainly not pressable */
.action:disabled {
  border-color: var(--line-strong);
  background: var(--panel);
  cursor: default;
}
.action:disabled .title {
  color: var(--dim);
}
.action:disabled .title:after {
  content: "";
}

/* GoldHEN is already active: a direct, square-edged installer stage. */
.jailbroken[hidden],
.actions[hidden],
.load-options[hidden],
.hint[hidden] {
  display: none !important;
}
.jailbroken {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem;
  text-align: center;
}
.jailbroken h2 {
  margin: 0;
  color: var(--bright);
  font: 700 1.875rem/1.2 var(--mono);
  letter-spacing: -0.02em;
}
.jailbroken h2:focus {
  outline: none;
}
.jailbroken-text {
  max-width: 35rem;
  margin: 0.625rem auto 1rem;
  color: var(--fg);
  font: 1.0625rem/1.5 var(--serif);
}
.jailbroken-stage {
  width: 100%;
  max-width: 23rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--line-strong);
  background: var(--sunk);
}
.jailbroken-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
}
.jailbroken-stage figcaption {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--line-strong);
  color: var(--accent);
  font: 700 0.875rem/1.2 var(--mono);
  letter-spacing: 0.2em;
}
.jailbroken-installers {
  display: flex;
  align-items: flex-start;
  text-align: left;
}
.jailbroken-installer {
  flex: 1 1 0;
  min-width: 0;
}
.jailbroken-installer + .jailbroken-installer {
  margin-left: 0.75rem;
}
.jb-install-button {
  display: block;
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font: 700 1rem/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
}
.jb-install-button span {
  display: block;
  margin-top: 0.1875rem;
  font: 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.08em;
}
.jb-install-button:hover {
  border-color: var(--bright);
  background: var(--bright);
}
.jb-install-button:focus {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}
.jb-install-button:disabled {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--dim);
  cursor: default;
}
.jb-install-button[aria-disabled="true"],
.jb-install-button[aria-disabled="true"]:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--dim);
  cursor: default;
}
/* One row per menu under each Load button (sprx-loader.js): a tick box for
   Load, the console's state from the keeper's GET /menus, and the menu's
   own Update / Uninstall. The native box stays focusable for the
   controller; the drawn box follows it. */
.jb-parts {
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: var(--note);
}
/* Line 1: tick box and name, buttons on the right; line 2: the state,
   aligned under the name (the columns are too narrow for one line). */
.jb-part {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.5rem 0.625rem 0.5rem 0.875rem;
}
.jb-part + .jb-part {
  border-top: 1px solid var(--line);
}
.jb-pick {
  position: relative;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  color: var(--fg);
  font: 700 0.8125rem/1.2 var(--sans);
  cursor: pointer;
}
.jb-pick input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0;
  opacity: 0;
  cursor: pointer;
}
.jb-pick span::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  margin-right: 0.625rem;
  vertical-align: -0.1875rem;
  border: 1px solid #5c5050;
  background: var(--panel);
}
.jb-pick input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}
.jb-pick input:focus + span::before {
  outline: 2px solid var(--bright);
  outline-offset: 2px;
}
.jb-pick input:disabled + span {
  color: var(--faint);
  cursor: default;
}
.jb-pick input:disabled + span::before {
  border-color: var(--line-strong);
  background: var(--note);
}
/* Optional plugin-entry cleanup toggle under a Load card's menu rows. */
.jb-clear {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--muted);
  font: 700 0.75rem/1.2 var(--sans);
  cursor: pointer;
}
.jb-clear input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 0.9375rem;
  height: 0.9375rem;
  margin: 0 0.5rem 0 0;
  border: 1px solid #5c5050;
  background: var(--panel);
  cursor: pointer;
}
.jb-clear input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}
.jb-clear input:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 2px;
}
.jb-clear input:disabled {
  border-color: var(--line-strong);
  background: var(--note);
  cursor: default;
}
.jb-clear-note {
  margin: 0.75rem 0 0;
  color: var(--dim);
  font: 0.6875rem/1.5 var(--mono);
}
.jb-part-state {
  -webkit-order: 3;
  order: 3;
  -webkit-flex: 0 0 100%;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.25rem 0 0 1.625rem;
  box-sizing: border-box;
  color: var(--dim);
  font: 0.6875rem/1.4 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jb-part-state[data-kind="current"] {
  color: var(--ok);
}
.jb-part-state[data-kind="update"],
.jb-part-state[data-kind="replace"],
.jb-part-state[data-kind="enable"] {
  color: var(--warn);
}
.jb-part-button {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin: 0 0 0 0.5rem;
  padding: 0.375rem 0.6875rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--detail);
  font: 700 0.75rem/1.2 var(--sans);
  cursor: pointer;
  -webkit-appearance: none;
}
.jb-part-update {
  border-color: var(--accent);
  color: var(--bright);
}
.jb-part-button[hidden] {
  display: none;
}
.jb-part-button:hover,
.jb-part-button:focus {
  border-color: var(--accent);
  background: var(--panel-hi);
  color: var(--bright);
}
.jb-part-button:focus {
  outline: 2px solid var(--bright);
  outline-offset: 2px;
}
.jb-part-button:disabled {
  color: var(--dim);
  cursor: default;
}
.jb-progress {
  margin: 0.625rem 0 0;
  padding: 0;
  list-style: none;
}
.jb-progress[hidden] {
  display: none;
}
.jb-progress li {
  margin: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--info);
  background: var(--sunk);
  color: var(--detail);
  font: 0.75rem/1.45 var(--mono);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.jb-progress li + li {
  border-top: 0;
}
.jb-progress li[data-state="ok"] {
  border-left-color: var(--ok);
  color: var(--ok);
}
.jb-progress li[data-state="fail"] {
  border-left-color: var(--bad);
  color: var(--bad);
}
.jb-progress li[data-state="warn"] {
  border-left-color: var(--warn);
  color: var(--warn);
}
.jailbroken-note {
  margin: 1rem 0 0;
  padding: 0.625rem 0.75rem;
  border-left: 2px solid var(--warn);
  background: var(--note);
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
  text-align: left;
}
.jailbroken-bypass {
  margin: 0.875rem 0 0;
  font: 0.8125rem/1.5 var(--mono);
}

@media (max-width: 600px) {
  .jailbroken {
    padding: 1rem;
  }
  .jailbroken h2 {
    font-size: 1.4rem;
  }
  .jailbroken-stage {
    max-width: 18rem;
  }
  .jailbroken-installers {
    display: block;
  }
  .jailbroken-installer + .jailbroken-installer {
    margin: 0.875rem 0 0;
  }
}

.load-options {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--sunk);
}
.load-options legend {
  margin-left: 0.75rem;
  padding: 0 0.4375rem;
  color: var(--accent);
  background: var(--bg);
  font: 0.6875rem/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.load-option {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
  min-width: 0;
  padding: 0.75rem 1rem;
  color: var(--fg);
  cursor: pointer;
}
.load-option + .load-option {
  border-left: 1px solid var(--line);
}
.load-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0.75rem 0 0;
  accent-color: var(--accent);
}
.load-option input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.load-option span {
  display: block;
  min-width: 0;
}
.load-option b,
.load-option small {
  display: block;
}
.load-option b {
  color: var(--bright);
  font: 700 0.8125rem/1.4 var(--mono);
}
.load-option small {
  margin-top: 0.1875rem;
  color: var(--dim);
  font: 0.75rem/1.4 var(--sans);
}
.load-option .menu-meta {
  margin-top: 0.375rem;
  color: var(--detail);
  font: 0.6875rem/1.45 var(--mono);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.load-option .menu-meta[hidden] {
  display: none;
}
.load-options > p {
  flex: 1 0 100%;
  margin: 0;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
}

button.go {
  display: block;
  width: 100%;
  padding: 1.1875rem 1.375rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font: 700 1.3125rem/1.2 var(--sans);
  -webkit-appearance: none;
}
button.go:focus {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}
/* still legible, plainly not pressable */
button.go:disabled {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--dim);
}
.hint {
  margin: 0.875rem 0 0;
  padding: 0.5625rem 1rem;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: var(--note);
  color: var(--dim);
  font-size: 0.9375rem;
}
.hint.warn {
  border-left-color: var(--warn);
  color: var(--warn);
}
.foot {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 0.75rem/1.6 var(--mono);
  letter-spacing: 0.5px;
}
.foot a {
  color: var(--fg);
}
.foot a:hover {
  color: var(--accent);
}
@media (max-width: 900px) {
  .actions,
  .load-options {
    display: block;
  }
  .actions .action + .action {
    margin: 1rem 0 0;
  }
  .load-option + .load-option {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ---------- header band ----------
   Three tilted screenshots behind .site-header and .intro, sized like the RTM
   site's .top-banner (website/styles.css): up to 1100 px wide and 280 px tall
   (210 px up to 760 px), faded out downwards and at the sides, dimmed so the
   header reads over it. Pixel sizes, so the 1600 px root size leaves it alone.
   Each picture box is 16:9 by padding and its image fills it with object-fit:
   cover, so a 1280x720 or 1920x1080 console capture drops in under the same
   file name. Header and main sit above it through z-index, not isolation,
   which the console's WebKit may lack. The frames tilt only above 760 px with
   3D transform support; otherwise they lie flat. */
.site-header,
.hero {
  position: relative;
  z-index: 1;
}
.shot-band {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 1100px;
  height: 280px;
  overflow: hidden;
  pointer-events: none;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
}
.shot-band:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(17, 17, 17, 0) 16%, rgba(17, 17, 17, 0) 84%, var(--bg));
}
.shot-band-row {
  position: absolute;
  top: 18px;
  right: -3%;
  left: -3%;
  display: flex;
  justify-content: center;
  -webkit-perspective: 1100px;
  perspective: 1100px;
}
.shot-band-frame {
  display: block;
  position: relative;
  width: 37%;
  border: 1px solid #363030;
  background: var(--sunk);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.shot-band-frame + .shot-band-frame {
  margin-left: -3%;
}
.shot-band-frame:nth-child(2) {
  z-index: 1;
}
.shot-band-pic {
  display: block;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.shot-band-pic img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-filter: brightness(0.5) saturate(0.65);
  filter: brightness(0.5) saturate(0.65);
}
@media (min-width: 761px) {
  @supports (transform: perspective(1px) rotateY(1deg)) {
    .shot-band-frame:first-child {
      transform: rotateY(22deg);
      transform-origin: 0 50%;
    }
    .shot-band-frame:nth-child(2) {
      transform: rotateX(14deg);
      transform-origin: 50% 100%;
    }
    .shot-band-frame:last-child {
      transform: rotateY(-22deg);
      transform-origin: 100% 50%;
    }
  }
}
@media (max-width: 760px) {
  .shot-band {
    height: 210px;
  }
  .shot-band-row {
    right: -12%;
    left: -12%;
  }
  .shot-band-frame {
    width: 40%;
  }
}
.band-credit {
  margin-left: 1rem;
  text-align: right;
}
@media (max-width: 600px) {
  .foot {
    display: block;
  }
  .band-credit {
    display: block;
    margin: 0.25rem 0 0;
    text-align: left;
  }
}

/* ---------- probe picker ---------- */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}
.modal {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.8);
}
.modal[hidden] {
  display: none;
}
.panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--width);
  max-height: 100%;
}
.panel-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  padding: 0.875rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.panel-head .eyebrow {
  margin-bottom: 0.25rem;
}
.panel-head h2 {
  margin: 0;
  color: var(--bright);
  font: 700 1.5rem/1.2 var(--sans);
  letter-spacing: -0.02em;
}
.close {
  flex: none;
  margin-left: auto;
  padding: 0.5rem 0.875rem;
  border: 1px solid #3b3b3b;
  background: #191919;
  color: var(--dim);
  font: 0.875rem/1.2 var(--mono);
  cursor: pointer;
  -webkit-appearance: none;
}
.close:hover,
.close:focus {
  border-color: var(--accent);
  color: var(--bright);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.plist {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.25rem 1.5rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.group {
  display: flex;
  align-items: center;
  margin: 0.625rem 0 0.125rem;
  color: var(--ok);
  font: 0.75rem/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.group:after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 0.75rem;
  background: var(--line);
}
.group.risk {
  color: var(--bad);
}
.prow {
  display: flex;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 0.3125rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
}
.prow .pn {
  flex: none;
  width: 6.5rem;
  color: var(--bright);
  font: 700 1rem/1.3 var(--mono);
}
.prow .pd {
  flex: 1 1 auto;
  min-width: 0;
  font: 0.9375rem/1.3 var(--serif);
}
.prow .pq {
  flex: none;
  margin-left: 1rem;
  color: var(--dim);
  font: 0.8125rem/1.3 var(--mono);
}
.prow.risk .pn {
  color: var(--bad);
}
.prow.alone .pn {
  color: var(--warn);
}
.prow:hover,
.prow:focus {
  border-left-color: var(--accent);
  background: var(--panel-hi);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.prow:hover .pq,
.prow:focus .pq {
  color: var(--accent);
}

/* ---------- run page ---------- */
.run {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.status {
  display: flex;
  align-items: center;
  padding: 1.375rem 1.625rem 0.5rem;
}
.status .icon {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0 1rem 0 0.3125rem;
  background: var(--info);
}
.status.ok .icon {
  background: var(--ok);
}
.status.fail .icon,
.status.bad .icon {
  background: var(--bad);
}
.status.warn .icon {
  background: var(--warn);
}
#state {
  flex: 1;
  min-width: 0;
  color: var(--bright);
  font: 700 1.625rem/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.status.ok #state {
  color: var(--ok);
}
.status.fail #state,
.status.bad #state {
  color: var(--bad);
}
.status.warn #state {
  color: var(--warn);
}

.steps {
  display: flex;
  flex: none;
  padding: 0.75rem 1.625rem 1rem;
}
.bar + .steps {
  padding-top: 1.25rem;
}
.step {
  flex: 1;
  position: relative;
  min-width: 0;
  padding-top: 2.125rem;
  color: var(--faint);
  font: 0.75rem/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
/* the connector to the previous step: centre to centre, under both circles */
.step:after {
  content: "";
  position: absolute;
  top: 0.8125rem;
  left: -50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--line-strong);
}
.step:first-child:after {
  display: none;
}
.step:before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 1.625rem;
  height: 1.625rem;
  margin-left: -0.8125rem;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: #07130d;
  font: 700 0.875rem/1 var(--sans);
  line-height: calc(1.625rem - 4px);
  text-align: center;
}
.step.on {
  color: var(--info);
}
.step.on:before {
  border-color: var(--info);
}
.step.done {
  color: var(--ok);
}
.step.done:before {
  content: "\2713";
  border-color: var(--ok);
  background: var(--ok);
}
/* the line into a step lights up once the step before it is done */
.step.done:after,
.step.bad:after,
.step.on:after {
  background: var(--ok);
}
.step.bad {
  color: var(--bad);
}
.step.bad:before {
  content: "\2715";
  border-color: var(--bad);
  background: var(--bad);
  color: #1a0609;
}

#out {
  flex: none;
  padding: 0 1.625rem;
}
.notice {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--bad);
  background: var(--note);
  color: #f3c4c4;
  font-size: 1.125rem;
  font-weight: 700;
}
.vendor-console {
  display: none;
}

/* ---------- log ---------- */
.log {
  flex: 1;
  min-height: 0;
  margin: 0 1.625rem 1.375rem;
  padding: 0.5rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--sunk);
  font: 0.9375rem/1.55 var(--mono);
}
.log:empty:before {
  content: attr(data-empty);
  display: block;
  padding: 3rem 1.5rem;
  color: var(--dim);
  font: 1.0625rem/1.5 var(--serif);
  text-align: center;
}
.sep {
  display: flex;
  align-items: center;
  margin: 0.75rem 0 0.25rem;
  padding: 0 1.125rem;
  color: var(--dim);
  font: 0.75rem/1.4 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.sep:after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 0.75rem;
  background: var(--line);
}
.sep:first-child {
  margin-top: 0.25rem;
}
.row {
  display: flex;
  align-items: baseline;
  margin: 0 0.5rem;
  padding: 0.125rem 0.625rem 0.125rem 0.5rem;
  border-left: 2px solid transparent;
}
/* "+999.999" */
.row .t {
  flex: none;
  width: calc(8ch + 0.75rem);
  padding-right: 0.75rem;
  color: var(--faint);
  font-size: 0.8125rem;
  text-align: right;
  white-space: nowrap;
}
/* wide enough for the longest tag, HX1400-LIBKERNEL-ALIGN */
.row .tag {
  flex: none;
  width: calc(22ch + 0.75rem);
  padding-right: 0.75rem;
  overflow: hidden;
  color: var(--dim);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .d {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.row .hex {
  color: var(--hex);
}
.row .mark {
  color: var(--bright);
  font-weight: 700;
}
.lv-ok {
  border-left-color: var(--ok);
}
.lv-ok .tag {
  color: var(--ok);
}
.lv-bad {
  border-left-color: var(--bad);
  background: var(--bad-soft);
  color: #f3c4c4;
}
.lv-bad .tag {
  color: var(--bad);
}
.lv-warn {
  border-left-color: var(--warn);
}
.lv-warn .tag {
  color: var(--warn);
}
.lv-info .tag {
  color: var(--info);
}
.lv-kern .tag {
  color: var(--kern);
}
.lv-dim {
  color: var(--dim);
}
.lv-win {
  border-left-color: var(--ok);
  background: var(--ok-soft);
  color: var(--bright);
  font-weight: 700;
}
.lv-win .tag {
  color: var(--ok);
}

/* ---------- receipt viewer ---------- */
.runs {
  flex: none;
  max-width: 27.5rem;
  margin-left: 0.625rem;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--sunk);
  color: var(--fg);
  font: 0.8125rem/1.5 var(--mono);
}

/* ---------- jailbreak success toast ----------
   Page-level replacement for reading GoldHEN's own console notifications:
   Miku, one short line, disappears after the payload start. */
.toast {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ok);
  background: var(--sunk);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
  -webkit-transform: translateY(1rem);
  transform: translateY(1rem);
  opacity: 0;
  transition: opacity 180ms, transform 180ms;
}
.toast.in { opacity: 1; -webkit-transform: none; transform: none; }
.toast img { width: 4.5rem; height: auto; display: block; }
.toast-text { margin: 0; color: var(--bright); font: 700 0.9375rem/1.35 var(--sans); }
.toast-text small { display: block; margin-top: 0.15rem; color: var(--dim); font: 400 0.75rem/1.4 var(--sans); }
@media (max-width: 600px) {
  .toast { right: 0.5rem; bottom: 0.5rem; left: 0.5rem; max-width: none; }
  .toast img { width: 3.5rem; }
}
