/* Signed-in sub pages (Start, Options rooms, Rules, Hackend) and the Hackend tone.
   Loaded after site.css on every page. Kept apart from the orb menu CSS in site.css. */

:root {
  /* The second colour, Hackend only (John 2026-11-23): a muted deep magenta on the blue. */
  --hack: hsl(336 46% 27% / 0.94);
  --hack-deep: hsl(336 50% 15% / 0.6);
  --hack-line: hsl(336 62% 70% / 0.6);
  --hack-ink: hsl(336 82% 92%);
  --hack-hot: hsl(336 78% 80%);
}

/* The room look on sub pages: same field as the app rooms, no old top bar. */
body.is-seat {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 42%, #0d5cf0 0%, #0846d8 72%);
  color: #f4f8ff;
  padding-bottom: 0;
}
body.is-seat .nav,
body.is-seat .foot,
body.is-seat .cookie { display: none; }
body.is-seat main.wrap {
  max-width: 56rem;
  padding-top: 5.4rem;
}
body.is-seat main.wrap > p,
body.is-seat main.wrap > h1 { max-width: 44rem; }
body.is-seat .task { border-top-color: hsl(212 72% 74% / 0.35); }

body.is-seat .kicker { margin: 0; color: var(--foam); }
.subtitle {
  margin: -0.6rem 0 1rem;
  color: var(--haze);
  font-size: 0.95rem;
}

/* Start: the table of contents. */
.start h1 { margin: 0.2rem 0 0.4rem; }
.start-toc { margin: 1.2rem 0 1.6rem; }
.start-group { margin: 0 0 1.4rem; }
.start-group h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-weight: 400;
  font-size: 1.2rem;
}
.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.6rem;
}
.start-link {
  display: block;
  height: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: hsl(212 62% 22% / 0.38);
  text-decoration: none;
  color: var(--mist);
}
.start-link strong { display: block; font-weight: 400; font-size: 1.12rem; line-height: 1.3; }
.start-link span { display: block; margin-top: 0.2rem; color: var(--haze); font-size: 0.92rem; line-height: 1.45; }
.start-link:hover, .start-link:focus-visible { border-color: var(--foam); }
.start-link:hover strong, .start-link:focus-visible strong { color: var(--foam); }
.start-group.is-hackend .start-link { background: var(--hack); border-color: var(--hack-line); }
.start-group.is-hackend .start-link span { color: var(--hack-ink); opacity: 0.8; }
.start-group.is-hackend .start-link:hover, .start-group.is-hackend .start-link:focus-visible { border-color: var(--hack-hot); }
.start-group.is-hackend .start-link:hover strong { color: var(--hack-hot); }

.start-chip, .orb-chip {
  flex: none;
  display: inline-block;
  padding: 0.12em 0.55em;
  border: 1px solid var(--hack-line);
  border-radius: 999px;
  background: var(--hack-deep);
  color: var(--hack-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.orb-chip { font-size: 0.82em; }

/* Hackend pill and its group in the orb menu. */
.orb-dock .orb-section.is-hackend > .orb-pill,
.orb-dock .orb-section.is-hackend .orb-fly a {
  background: var(--hack);
  border-color: var(--hack-line);
  color: var(--hack-ink);
}
.orb-dock .orb-section.is-hackend .orb-ico {
  border-color: var(--hack-line);
  background: var(--hack-deep);
  color: var(--hack-hot);
}
.orb-dock .orb-section.is-hackend .orb-chev { color: var(--hack-hot); }
.orb-dock .orb-section.is-hackend > .orb-pill:hover,
.orb-dock .orb-section.is-hackend > .orb-pill:focus-visible,
.orb-dock .orb-section.is-hackend > .orb-pill.is-on,
.orb-dock .orb-section.is-hackend.is-open > .orb-pill,
.orb-dock .orb-section.is-hackend .orb-fly a:hover,
.orb-dock .orb-section.is-hackend .orb-fly a:focus-visible,
.orb-dock .orb-section.is-hackend .orb-fly a.is-on {
  border-color: var(--hack-hot);
  color: var(--hack-hot);
}

/* Rules: what it is, who reads it, where a save goes. */
.explain {
  margin: 0 0 1.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: hsl(212 62% 22% / 0.38);
}
.explain div { padding: 0.6rem 0; }
.explain div + div { border-top: 1px solid hsl(212 72% 74% / 0.3); }
.explain dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam);
}
.explain dd { margin: 0.2rem 0 0; font-size: 0.95rem; line-height: 1.5; }

/* Features: grouped cards. */
.features { margin-top: 1rem; }
.feat-group { margin: 0 0 1.6rem; }
.feat-group h2 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-weight: 400;
  font-size: 1.2rem;
}
.feat-group > .note { margin: 0.1rem 0 0.6rem; font-size: 0.92rem; }
.feat-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--haze);
}
.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.6rem;
}
.feat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: hsl(212 62% 22% / 0.38);
}
.feat:hover { border-color: var(--foam); }
.feat p { margin: 0; color: var(--haze); font-size: 0.9rem; line-height: 1.45; }
.feat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }
.feat-name { margin-right: auto; font-weight: 400; font-size: 1.05rem; color: var(--mist); }
a.feat-name { text-decoration: none; border-bottom: 1px solid hsl(212 72% 74% / 0.45); }
a.feat-name:hover, a.feat-name:focus-visible { color: var(--foam); border-bottom-color: var(--foam); }
.feat-state, .feat-live, .feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
}
.feat-state { color: var(--foam); }
.feat-state.is-desktop { color: var(--haze); border-color: hsl(212 72% 74% / 0.35); }
.feat-live {
  font-family: "IBM Plex Mono", monospace;
  background: var(--abyss);
  color: var(--mist);
}
.feat-where { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.feat-chip { color: var(--mist); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.feat-chip code { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; color: var(--foam); overflow: hidden; text-overflow: ellipsis; }
.feat-chip.is-gap { opacity: 0.42; border-style: dashed; }

@media (max-width: 720px) {
  body.is-seat main.wrap { padding-top: 5.2rem; }
  .start-list, .feat-list { grid-template-columns: 1fr; }
}

/* Dragon Orb (/orb), Video (/video) and System Map (/portanima-system-map).
   Calm rooms: one lede, a few facts, one chart or a grid of cards. Blue only. */
body.is-app .app-room.is-sys { max-width: 56rem; }
.sys-page h2 { margin: 0 0 0.2rem; }
.sys-page h3 { margin: 2.4rem 0 0.7rem; font-weight: 400; font-size: 1.1rem; color: var(--foam); }
.sys-page .lede { margin: 0.8rem 0 0; color: var(--mist); }
.sys-sub { margin: 0; color: var(--haze); font-size: 1rem; }
.sys-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 44rem; }
.sys-facts li { color: var(--haze); line-height: 1.55; }
.sys-facts strong { font-weight: 400; color: var(--mist); }
.sys-chart { margin: 2.4rem 0 0; }
/* The System Map is wide: its chart may leave the text column, never the screen. */
.sys-page.is-wide .sys-chart {
  position: relative;
  left: 50%;
  width: min(94vw, 100rem);
  transform: translateX(-50%);
}
.pa-mermaid, .pa-mermaid-svg {
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: hsl(212 62% 22% / 0.32);
  overflow: auto;
}
pre.pa-mermaid {
  max-height: 22rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--haze);
  white-space: pre;
}
.pa-mermaid-svg svg { display: block; margin: 0 auto; height: auto; }
.sys-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.sys-btn {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
}
.sys-btn:hover, .sys-btn:focus-visible { border-color: var(--foam); color: var(--foam); }
button.sys-btn { background: transparent; font: inherit; font-size: 0.92rem; line-height: inherit; cursor: pointer; }
.sys-page > .note { margin-top: 1.6rem; }

.vid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.7rem;
}
.vid-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: hsl(212 62% 22% / 0.38);
  color: var(--mist);
  text-decoration: none;
}
a.vid-card:hover, a.vid-card:focus-visible { border-color: var(--foam); }
a.vid-card:hover strong, a.vid-card:focus-visible strong { color: var(--foam); }
.vid-card.is-local { background: hsl(212 62% 22% / 0.22); border-color: hsl(212 72% 74% / 0.35); }
.vid-head { display: flex; align-items: center; gap: 0.5rem; }
.vid-head strong { margin-right: auto; font-weight: 400; font-size: 1.12rem; }
.vid-state {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--foam);
}
.vid-state.is-local { color: var(--haze); border-color: hsl(212 72% 74% / 0.35); }
.vid-line { color: var(--haze); font-size: 0.92rem; line-height: 1.45; }
.vid-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin-top: auto; }
.vid-where {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--foam);
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .vid-list { grid-template-columns: 1fr; }
  .pa-mermaid, .pa-mermaid-svg { padding: 0.7rem; }
}

/* Portanima Ontology 3D (/portanima-ontology-3d): the 3D view, full width. */
.onto3d-stage {
  position: relative;
  left: 50%;
  width: min(96vw, 112rem);
  height: min(76vh, 54rem);
  min-height: 24rem;
  margin-top: 1.6rem;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.onto3d-stage > .onto3d-wait { margin: 1.2rem; }
.onto-layers { margin-top: 1.8rem; }
.onto-layers dt span { font-weight: 300; opacity: 0.8; }

/* Users (Hackend, /hackend/users): cards instead of a table, so it holds at phone width. */
main.cloud.is-users { max-width: 72rem; }
/* The users table (John 2026-12-02): it scrolls sideways on a phone. */
.users-table-wrap { overflow-x: auto; margin-top: 0.4rem; border: 1px solid hsl(212 72% 74% / 0.45); border-radius: 14px; }
.users-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.users-table th, .users-table td { padding: 0.5rem 0.7rem; text-align: left; vertical-align: middle; border-bottom: 1px solid hsl(212 72% 74% / 0.22); white-space: nowrap; }
.users-table th { font-weight: 500; color: hsl(212 72% 86%); background: hsl(212 62% 22% / 0.55); }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table tbody tr:hover { background: hsl(212 62% 30% / 0.35); }
.users-table td a { color: inherit; text-decoration: underline; text-decoration-color: hsl(212 72% 74% / 0.6); overflow-wrap: anywhere; }
.users-table .users-act { display: flex; gap: 0.4rem; }
.users-table .users-act form { margin: 0; }
.users-table .users-act button { padding: 0.25rem 0.7rem; font-size: 0.85rem; }
.users-filter input[type=search] { min-width: 14rem; }
.users-block { margin-top: 2rem; }
.users-block > h2 { font-weight: 400; font-size: 1.2rem; margin: 0 0 0.6rem; }
.users-card {
  margin: 0.7rem 0;
  padding: 0.8rem 0.95rem;
  background: hsl(212 62% 22% / 0.45);
  border: 1px solid hsl(212 72% 74% / 0.45);
  border-radius: 14px;
}
.users-card > p { margin: 0.2rem 0; }
.users-head strong { font-weight: 500; overflow-wrap: anywhere; }
.users-head span {
  margin-left: 0.4rem;
  padding: 0.05rem 0.55rem;
  border: 1px solid hsl(212 72% 74% / 0.55);
  border-radius: 999px;
  font-size: 0.82rem;
  color: hsl(212 80% 94%);
}
.users-off { font-style: normal; color: hsl(212 72% 80%); text-decoration: underline; }
.users-manage { margin-top: 0.5rem; }
.users-manage > summary { cursor: pointer; color: hsl(212 72% 82%); }
.users-manage[open] > summary { margin-bottom: 0.5rem; }
.users-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.45rem 0; }
.users-inline label { margin-right: 0.2rem; }
.users-inline select {
  padding: 0.4rem 0.7rem;
  background: hsl(212 58% 14%);
  color: inherit;
  border: 1px solid hsl(212 72% 74% / 0.55);
  border-radius: 10px;
}
.users-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.users-actions form { margin: 0; }
.cloud button.users-danger { background: transparent; border-color: hsl(212 80% 88%); }
.users-form { margin-top: 0.6rem; }
.users-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.3rem 0.8rem;
  margin: 0.4rem 0 0.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid hsl(212 72% 74% / 0.45);
  border-radius: 12px;
}
.users-checks legend { padding: 0 0.3rem; }
.users-checks label, .users-lock { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.users-checks code { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; }
.users-all { grid-column: 1 / -1; }
.login .users-checks input, .login .users-lock input { width: auto; margin: 0; }
.users-lock { margin: 0 0 0.9rem; }
.users-link {
  margin: 1rem 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid hsl(212 80% 88%);
  border-radius: 14px;
  background: hsl(212 58% 14% / 0.6);
}
.users-link p { margin: 0.25rem 0; }
.users-done { color: hsl(212 80% 94%); }
.pw-hint { margin: -0.5rem 0 0.8rem; font-size: 0.85rem; }
.agent-locked { margin: 0.6rem 0; font-size: 0.85rem; }

/* Help and Shortcuts (John 2026-11-25). */
.sc-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem; }
.sc-jump a {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  text-decoration: none;
}
.sc-jump a:hover, .sc-jump a:focus-visible { border-color: var(--foam); color: var(--foam); }
.sc-group { margin: 0 0 1.6rem; scroll-margin-top: 5rem; }
.sc-group h2, .help-item h2 { margin: 0 0 0.3rem; font-weight: 400; font-size: 1.2rem; }
.sc-group .note { margin: 0 0 0.6rem; }
.sc-table {
  width: 100%;
  max-width: 44rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: hsl(212 62% 22% / 0.38);
}
.sc-table td { padding: 0.5rem 0.9rem; border-top: 1px solid hsl(212 72% 74% / 0.18); vertical-align: top; }
.sc-table tr:first-child td { border-top: 0; }
.sc-keys { width: 12rem; white-space: nowrap; color: var(--haze); }
.help-item { max-width: 44rem; margin: 0 0 1.2rem; }
.help-item p { margin: 0; color: var(--mist); line-height: 1.55; }

/* Editable shortcuts. */
.sc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; max-width: 44rem; }
.sc-bar .sc-jump { margin: 1rem 0; }
.sc-reset, .sc-default {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
}
.sc-reset:hover, .sc-default:hover, .sc-reset:focus-visible, .sc-default:focus-visible { border-color: var(--foam); color: var(--foam); outline: none; }
.sc-default[hidden] { display: none; }
.sc-status { min-height: 1.4em; max-width: 44rem; margin: 0 0 1rem; color: var(--haze); }
.sc-status.is-bad { color: #fff; }
.sc-edit {
  border: 1px dashed transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.15rem 0.35rem;
  margin: -0.15rem -0.35rem;
  cursor: pointer;
  text-align: left;
}
.sc-edit:hover, .sc-edit:focus-visible { border-color: var(--line); outline: none; }
.sc-edit.is-rec { border-color: var(--foam); border-style: solid; }
.sc-none { color: var(--haze); font-size: 0.88rem; }
.sc-act { width: 6rem; text-align: right; }
.sc-fixed { color: var(--haze); font-size: 0.8rem; }
.sc-table tr.is-changed .sc-keys kbd { border-color: var(--foam); }

/* Lab (/lab): every tile is an experiment. */
.lab-badge {
  padding: 0.1rem 0.55rem;
  border: 1px dashed var(--foam);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--foam);
}
.lab-state { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; color: var(--haze); }
.lab-card.is-planned { background: hsl(212 62% 22% / 0.16); border-style: dashed; border-color: hsl(212 72% 74% / 0.35); }
.lab-card.is-planned strong { color: var(--haze); }

/* Colors (/colors, site/theme.js): the interface colours of this account. */
.tc-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0; }
.tc-preset, #tc-reset {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--mist); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.tc-preset:hover, .tc-preset:focus-visible, #tc-reset:hover, #tc-reset:focus-visible { border-color: var(--foam); color: var(--foam); outline: none; }
.tc-preset[aria-pressed="true"] { border-color: var(--foam); background: var(--card); }
.tc-chips { display: inline-flex; }
.tc-chips i { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1px solid var(--line); margin-left: -0.25rem; }
.tc-chips i:first-child { margin-left: 0; }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; max-width: 60rem; }
@media (max-width: 760px) { .tc-grid { grid-template-columns: minmax(0, 1fr); } }
.tc-row { display: grid; grid-template-columns: minmax(0, 1fr) 3rem 6.2rem; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.tc-row label { display: flex; flex-direction: column; }
.tc-row label span { color: var(--haze); font-size: 0.82rem; }
.tc-row input[type="color"] { width: 3rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.tc-hex { width: 6.2rem; padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--mist); font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.tc-preview { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--pt-bg, transparent); color: var(--pt-text, var(--mist)); }
.tc-preview h2 { margin: 0.2rem 0 0.4rem; font-size: 1.15rem; font-weight: 400; }
.tc-preview .tc-link { color: var(--pt-accent, var(--foam)); }
.tc-preview .tc-link:hover { color: var(--pt-hover, #fff); }
.tc-card { display: flex; flex-direction: column; padding: 0.7rem 0.9rem; margin: 0.6rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--pt-surface, var(--card)); }
.tc-sample { padding: 0.35rem 0.95rem; border: 1px solid var(--pt-accent, var(--foam)); border-radius: 999px; background: transparent; color: var(--pt-accent, var(--foam)); font: inherit; }
.tc-sample:hover, .tc-sample.is-hover { border-color: var(--pt-hover, #fff); color: var(--pt-hover, #fff); }
.tc-checks { max-width: 60rem; margin-top: 1rem; }
.tc-ratios { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--haze); }
.tc-check b { font-family: "IBM Plex Mono", monospace; font-weight: 400; color: var(--mist); }
.tc-check.is-low b, .tc-check.is-low em { color: #ff9a3c; font-style: normal; }
.tc-warn { padding: 0.55rem 0.9rem; border: 1px solid #ff9a3c; border-radius: 12px; color: #ffd9b0; }
.tc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.tc-status { font-size: 0.85rem; color: var(--haze); }

/* Audio Reactive (/audio-reactive, audio-react.js). */
.ar-rows { max-width: 44rem; margin: 1.2rem 0; }
.ar-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ar-row > span { display: flex; flex-direction: column; }
.ar-row > span > span { color: var(--haze); font-size: 0.82rem; }
.ar-range { grid-template-columns: minmax(0, 1fr) minmax(8rem, 14rem) 3.6rem; cursor: default; }
.ar-range input[type="range"] { width: 100%; accent-color: var(--foam); }
.ar-range output { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--mist); text-align: right; }
.ar-switch input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--foam); }
.ar-motion { max-width: 44rem; padding: 0.55rem 0.9rem; border: 1px solid var(--foam); border-radius: 12px; color: var(--mist); }
.ar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.2rem; }
#ar-test, #ar-reset { padding: 0.35rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mist); font: inherit; cursor: pointer; }
#ar-test:hover, #ar-test:focus-visible, #ar-reset:hover, #ar-reset:focus-visible, #ar-test[aria-pressed="true"] { border-color: var(--foam); color: var(--foam); outline: none; }
.ar-meter { display: inline-block; width: 8rem; height: 0.4rem; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ar-meter i { display: block; width: 0; height: 100%; background: var(--foam); }
.ar-status { font-size: 0.85rem; color: var(--haze); }
/* Audio Reactive configurator (task d49573fd4e24): sections, segmented choices, plugboard. */
.ar-sec { max-width: 52rem; margin: 2rem 0 0; }
.ar-sec h2 { font-size: 1.05rem; margin: 0 0 0.2rem; color: var(--mist); }
.ar-sec .ar-rows { margin: 0.4rem 0; }
.ar-choice { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
.ar-row > .ar-seg { display: inline-flex; flex-direction: row; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.ar-seg label { position: relative; cursor: pointer; }
.ar-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ar-seg span { display: inline-block; padding: 0.28rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--haze); font-size: 0.85rem; }
.ar-seg input:checked + span { border-color: var(--foam); color: var(--foam); }
.ar-seg input:focus-visible + span { outline: 1px solid var(--foam); outline-offset: 2px; }
.ar-colour { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
.ar-colour input[type="color"] { width: 3rem; height: 1.8rem; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.ar-try, .ar-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0; }
.ar-presets span { color: var(--haze); font-size: 0.85rem; margin-right: 0.3rem; }
.ar-try button, .ar-presets button, .ar-patches button { padding: 0.3rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mist); font: inherit; font-size: 0.85rem; cursor: pointer; }
.ar-try button:hover, .ar-presets button:hover, .ar-patches button:hover, .ar-try button:focus-visible, .ar-presets button:focus-visible, .ar-patches button:focus-visible { border-color: var(--foam); color: var(--foam); outline: none; }
.ar-hint { color: var(--haze); font-size: 0.88rem; max-width: 46rem; }
.ar-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22%; padding: 1rem 1.1rem 1.4rem; margin: 0.8rem 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card, transparent); touch-action: none; user-select: none; }
.ar-cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.ar-cables path { pointer-events: stroke; fill: none; stroke-linecap: round; opacity: 0.85; cursor: pointer; }
.ar-cable-0 { stroke: var(--foam); } .ar-cable-1 { stroke: var(--mist); } .ar-cable-2 { stroke: var(--pt-accent, var(--foam)); } .ar-cable-3 { stroke: var(--haze); }
.ar-cable.is-neg { stroke-dasharray: 7 5; }
.ar-cable.is-ghost { stroke: var(--foam); stroke-width: 2; stroke-dasharray: 3 4; pointer-events: none; }
.ar-col { display: flex; flex-direction: column; gap: 0.35rem; }
.ar-col-h { margin: 0 0 0.3rem; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); }
.ar-col-to .ar-col-h { text-align: right; }
.ar-jack { display: grid; align-items: center; gap: 0.55rem; padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--mist); font: inherit; text-align: left; cursor: pointer; }
.ar-jack-from { grid-template-columns: minmax(0, 1fr) 3.2rem auto; }
.ar-jack-to { grid-template-columns: auto minmax(0, 1fr) 3.2rem; }
.ar-jack span { display: flex; flex-direction: column; min-width: 0; }
.ar-jack strong { font-size: 0.86rem; font-weight: 500; }
.ar-jack small { color: var(--haze); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-hole { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1px solid var(--haze); background: var(--depth, transparent); box-sizing: border-box; }
.ar-jack.is-plugged .ar-hole { border-color: var(--foam); background: var(--foam); }
.ar-jack.is-picked, .ar-jack:hover, .ar-jack:focus-visible { border-color: var(--foam); outline: none; }
.ar-jack.is-picked .ar-hole { box-shadow: none; border-width: 3px; border-color: var(--foam); }
.ar-led { display: block; height: 0.3rem; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ar-led em { display: block; width: 0; height: 100%; background: var(--foam); }
.ar-patches { list-style: none; padding: 0; margin: 0.4rem 0; max-width: 52rem; }
.ar-patches li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 14rem) 2.8rem auto; align-items: center; gap: 0.7rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.ar-patches li.ar-empty { display: block; color: var(--haze); font-size: 0.85rem; }
.ar-patches input[type="range"] { width: 100%; accent-color: var(--foam); }
.ar-patches output { font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--mist); text-align: right; }
@media (max-width: 640px) { .ar-board { gap: 0 10%; padding: 0.7rem; } .ar-jack small { display: none; } .ar-jack-from, .ar-jack-to { grid-template-columns: minmax(0, 1fr) auto; } .ar-jack-to { grid-template-columns: auto minmax(0, 1fr); } .ar-led { display: none; } .ar-patches li { grid-template-columns: minmax(0, 1fr) 6rem 2.4rem auto; } }

/* Feature flags (/hackend/users/features, Jamji 2026-12-01). Blue only. */
.ff-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.02rem 0.5rem;
  border: 1px solid hsl(212 72% 74% / 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(212 80% 92%);
  white-space: nowrap;
}
.ff-badge.is-new { background: hsl(205 90% 60% / 0.28); border-color: hsl(200 95% 78%); color: hsl(200 100% 96%); }
.ff-badge.is-on { background: hsl(212 80% 60% / 0.3); }
.ff-badge.is-off { opacity: 0.7; }
.ff-count { font-size: 0.85rem; opacity: 0.8; margin-left: 0.3rem; }
.ff-kind > summary { cursor: pointer; list-style: none; }
.ff-kind > summary h2 { display: inline; font-weight: 400; font-size: 1.2rem; }
.ff-list { list-style: none; margin: 0.4rem 0; padding: 0; }
.ff-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid hsl(212 72% 74% / 0.18);
}
.ff-list li > span:first-child { flex: 1 1 14rem; overflow-wrap: anywhere; }
.ff-list code, .ff-servers { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; opacity: 0.85; }
.ff-seat li.is-off > span:first-child { opacity: 0.65; }
.ff-list select {
  margin-left: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: hsl(212 58% 14%);
  color: inherit;
  border: 1px solid hsl(212 72% 74% / 0.55);
  border-radius: 10px;
}
.ff-servers {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: hsl(212 58% 14%);
  color: inherit;
  border: 1px solid hsl(212 72% 74% / 0.55);
  border-radius: 10px;
}
.ff-save { position: sticky; bottom: 0.6rem; }
.ff-audit code { flex-basis: 100%; }

/* Person page: the navigation tree with one switch per row. */
.ff-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; margin: 0.6rem 0 0.9rem; }
.ff-tree fieldset { margin: 0; padding: 0.5rem 0.8rem 0.7rem; border: 1px solid hsl(212 72% 74% / 0.45); border-radius: 14px; }
.ff-tree legend { padding: 0 0.3rem; }
.ff-tree label { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; }
.ff-tree label.is-sub { padding-left: 1.5rem; }
.ff-tree input { width: auto; margin: 0; }
.ff-tree small { opacity: 0.7; }
