/* ============================================================================
   The demo window's pages from 0.14 on: Friends, Shockers, My Avatar Remote,
   Suits (demo-friends.js, demo-shockers.js, demo-avatar.js, demo-suits.js).
   Built against renders
   of the real app at 1100 px (tools/app_shots.py), in its pixel sizes; a
   friend's panel brings its own styles (remote-panel.css). Colours are
   tokens, never a new hex.
   ========================================================================= */

.o-pgscroll { line-height: 1.45; }
.o-pgscroll > * + * { margin-top: 12px; }
.o-pgscroll .o-viewtitle { margin-bottom: 4px; }
.pg-intro { color: var(--muted); font-size: 12px; line-height: 16px; margin: 0; }
.pg-introrow { display: flex; align-items: flex-start; gap: 16px; }
.pg-note { color: var(--muted); font-size: 12px; line-height: 16px; margin: 0; }
.pg-note.ok { color: var(--accent); }
.pg-muted { color: var(--muted); font-size: 12px; }
.pg-mono { font: 11px "Cascadia Mono", Consolas, monospace; color: var(--dim); }
.pg-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pg-row { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.pg-row.tight { flex-wrap: nowrap; gap: 8px; }
.rpanel .pg-row .grow, .rpanel .grow { flex: 1; min-width: 0; }

/* buttons: the app's 30 px, 8 px corners (tokens.css gives every button its own) */
.rpanel .pg-btn, .rpanel .pg-link {
  height: 30px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--txt); font: 13px "Segoe UI", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.rpanel .pg-btn:hover:not(:disabled) { background: var(--hover); border-color: var(--accent); color: var(--accent); }
.rpanel .pg-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.rpanel .pg-btn.primary:hover { background: var(--accent2); border-color: var(--accent2); color: var(--ink); }
.rpanel .pg-btn.icon { width: 34px; padding: 0; }
.rpanel .pg-btn.wide { width: 100%; }
.rpanel .pg-btn.grow { flex: 1; }
.rpanel .pg-btn.ghost { border-color: transparent; color: var(--muted); }
.rpanel .pg-btn.yolo { color: var(--warn); border-color: var(--warn-mid); font-weight: 700; }
.rpanel .pg-btn.yolo:hover { background: var(--warn-tint); color: var(--warn); border-color: var(--warn); }
.rpanel .pg-link { border-color: transparent; color: var(--muted); padding: 0 6px; }
.rpanel .pg-link:hover { color: var(--accent); background: transparent; }
.rpanel .pg-btn.onbar { height: 28px; border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* pills (the app's status chips) and the filled title chip */
.pg-pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; flex: none;
  font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.pg-pill.ok { color: var(--ok); border-color: var(--ok-mid); background: var(--ok-tint); }
.pg-pill.warn { color: var(--warn); border-color: var(--warn-mid); background: var(--warn-tint); }
.pg-pill.err { color: var(--err); border-color: var(--err-mid); }
.pg-pill.run, .pg-pill.info { color: var(--cyan); border-color: var(--cyan-mid); background: var(--cyan-tint); }
.pg-pill.live { color: var(--pink); border-color: var(--pink-mid); background: var(--pink-tint); }
.pg-pill.shock { color: var(--yellow); border-color: var(--yellow-mid); background: var(--yellow-tint); }
.pg-pill.idle { color: var(--dim); border-color: var(--dim); }
.pg-chip {
  white-space: nowrap; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 8px; flex: none;
  background: var(--catbar); color: var(--catbar-text); font-weight: 700; font-size: 14px;
}
.o-in.pg-combo { width: 260px; justify-content: flex-start; }
.o-in.pg-combo.short { width: 130px; }
.o-in.pg-field { flex: 1; min-width: 0; color: var(--txt); }
.o-in.pg-field.short { flex: 0 0 150px; }

/* a category: the bar in its hue, its frame (theme_params / theme_pishock) */
.pg-cat {
  --bar: color-mix(in srgb, var(--hue) 46%, var(--bg));
  border: 1px solid var(--hue-mid); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 10px;
}
.pg-bar {
  display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 2px 6px 2px 16px; border-radius: 8px;
  background: var(--bar); color: var(--txt); font-weight: 700; font-size: 14px;
}
.pg-bar .pg-ic { width: 14px; height: 14px; color: var(--yellow); display: inline-flex; }
.pg-bar .pg-ic svg { width: 14px; height: 14px; }
.pg-bar.solid { background: var(--catbar); color: var(--catbar-text); padding: 4px 14px; }
:root[data-theme="midnight"] .pg-cat { --bar: var(--hue-tint); }

/* Shockers: a card per shocker, Every shocker, the behaviours */
.pg-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pg-scard {
  border: 1px solid var(--hue-mid); border-radius: 8px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px;
}
.pg-shead { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pg-grip { color: var(--yellow); cursor: grab; font-size: 13px; letter-spacing: -1px; }
.pg-grip.light { color: var(--txt); }
.pg-grip.hue { color: var(--hue); }
.pg-sid { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.pg-vrow { display: flex; flex-direction: column; gap: 2px; }
.pg-vhead { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pg-val { color: var(--txt); font-weight: 700; font-size: 13px; }
.rpanel .pg-vrow input.hs { width: 100%; flex: none; }
.pg-tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg-tests .pg-btn { width: 100%; padding: 0; }
.pg-tell { display: flex; flex-direction: column; gap: 4px; }
.pg-param { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pg-scard.every > b { font-size: 13px; }
.pg-bgrid { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pg-bcard {
  width: 530px; max-width: 100%; border: 1px solid var(--hue-mid); border-radius: 8px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.pg-bhead { display: flex; align-items: center; gap: 8px; }
.pg-bhead b { font-size: 13px; }
.pg-segs { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-chips {
  position: relative; flex: 1; min-width: 0; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--well);
}
.pg-chips.over { border-color: var(--yellow); background: var(--yellow-tint); }
.pg-schip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 2px 0 7px; border-radius: 5px;
  border: 1px solid var(--yellow); color: var(--yellow); background: var(--yellow-tint); font-size: 12px;
}
.rpanel .pg-x, .rpanel .pg-plus {
  border: none; background: transparent; padding: 0 4px; height: 20px; color: var(--err); font-size: 13px; cursor: pointer; flex: none;
}
.rpanel .pg-schip .pg-x { color: var(--yellow); }
.rpanel .pg-plus { color: var(--txt); font-size: 15px; }
.rpanel .pg-x:hover, .rpanel .pg-plus:hover { background: transparent; color: var(--accent); }
.pg-menu {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 4px); display: flex; flex-direction: column; gap: 4px;
  padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop-shadow);
}
.rpanel .pg-menu button { height: 28px; padding: 0 14px; border-radius: 7px; font-size: 13px; background: var(--well); }

/* My Avatar Remote */
.pg-avhead { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 16px 14px 26px; }
.pg-avname { display: flex; flex-direction: column; gap: 10px; width: 250px; }
.pg-avid { font-size: 10px; color: var(--dim); white-space: nowrap; }
.pg-avname b { font-size: 19px; }
.pg-avpreset { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pg-avtools { flex-wrap: nowrap; }
.pg-avcols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.pg-avcols.wide { grid-template-columns: minmax(0, 1fr); }
.rpanel .pg-avboard .cat-grid .pcard { width: 210px; }
.rpanel .pg-avboard .cat-head { padding-left: 8px; }
.rpanel .pg-avboard .pc-head { align-items: center; }
.pg-lock { border: none !important; background: transparent !important; padding: 0 6px !important; font-size: 13px; cursor: pointer; }
.pg-more { color: var(--txt); padding: 0 6px; cursor: pointer; letter-spacing: 1px; }
/* the avatar menu's slot circle and its radial picker (the app's param_slots.py) */
.pg-slot {
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 1px solid var(--dim);
  background: transparent; color: var(--dim); font: 700 10px/16px inherit; cursor: pointer;
}
.cat-head .pg-slot:not(.set) { border-color: var(--txt); color: var(--txt); }
.pg-slot.set { border: 1px solid var(--accent); background: var(--tint); color: var(--accent); }
.pg-slotpick {
  position: absolute; z-index: 20; width: 228px; padding: 6px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.pg-slotcap { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); padding: 2px 4px 4px; }
.pg-slotcap b { color: var(--txt); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-wedge { fill: var(--well); stroke: var(--line); cursor: pointer; }
.pg-wedge:hover { fill: var(--hover); }
.pg-wedge.mine { fill: var(--tint); stroke: var(--accent); }
.pg-slotpick text { text-anchor: middle; pointer-events: none; }
.pg-wnum { fill: var(--txt); font-size: 16px; font-weight: 700; }
.pg-wlabel { fill: var(--muted); font-size: 10px; }
.pg-wnum.mine, .pg-wlabel.mine { fill: var(--accent); }
.pg-hub { fill: var(--panel); stroke: var(--line); }
.pg-slotpick text.pg-hubtext { fill: var(--dim); font-size: 11px; pointer-events: auto; cursor: pointer; }
.pg-hubtext.on { fill: var(--accent); font-weight: 700; }
.pg-dock {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.pg-chip.wide { flex: 1; white-space: nowrap; }
.rpanel .pg-filter { width: 100%; height: 32px; font-size: 13px; padding: 4px 10px; }
.pg-ptable { border: 1px solid var(--line); border-radius: 6px; background: var(--well); min-height: 200px; overflow: hidden; }
.pg-prow { display: grid; grid-template-columns: 1fr 48px 74px; gap: 4px; padding: 2px 6px; font: 13px "Cascadia Mono", Consolas, monospace; }
.pg-prow:nth-child(even) { background: color-mix(in srgb, var(--card) 70%, transparent); }
.pg-prow.th { font: 600 10px "Segoe UI", system-ui, sans-serif; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); }

/* Friends: the list, a panel, the log */
.fr-list { gap: 8px; }
.o-in.fr-nick { color: var(--txt); height: 32px; }
.fr-fold { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 6px; }
.fr-micro { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--dim); }
.fr-sect { margin-top: 8px; }
.fr-heads { display: flex; margin-right: 6px; }
.fr-head { width: 46px; display: flex; justify-content: center; cursor: pointer; }
.fr-ic { display: inline-flex; width: 16px; height: 16px; flex: none; }
.fr-ic svg { width: 16px; height: 16px; }
.fr-head .fr-ic svg { color: inherit; }
.fr-head:nth-child(1) { color: var(--pink); }
.fr-head:nth-child(2) { color: var(--yellow); }
.fr-head:nth-child(3) { color: var(--accent); }
.fr-rows { display: flex; flex-direction: column; gap: 1px; }
.fr-row {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; border: 1px solid transparent;
  border-radius: 8px; cursor: pointer;
}
.fr-row:hover { background: var(--hover); }
.fr-row.on { background: color-mix(in srgb, var(--hue) 14%, var(--bg)); border-color: var(--hue); }
.fr-row.on .fr-name { color: var(--hue); font-weight: 700; }
.fr-row > .fr-ic { color: var(--cyan); width: 20px; height: 20px; justify-content: center; }
.fr-av {
  width: 20px; height: 20px; border-radius: 10px; border: 1px solid var(--hue); color: var(--hue); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.fr-row.on .fr-av { background: var(--hue); color: var(--ink); }
.fr-name { color: var(--txt); white-space: nowrap; }
.fr-sub { color: var(--muted); font-size: 11px; }
.fr-meta { font-size: 12px; color: var(--muted); margin-right: 6px; }
.fr-meta.ok { color: var(--accent); }
.fr-boxes { display: flex; width: 138px; justify-content: space-around; flex: none; }
.fr-panelbox { border-color: var(--blue-mid); padding: 14px; }
.fr-panel { display: flex; flex-direction: column; gap: 10px; }
.fp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-head > .fr-ic { color: var(--cyan); width: 20px; height: 20px; }
.fp-name {
  display: inline-flex; align-items: center; height: 26px; min-width: 240px; padding: 0 14px; border-radius: 7px;
  background: color-mix(in srgb, var(--hue) 52%, var(--bg)); color: var(--txt); font-weight: 700; font-size: 13px;
}
.rpanel .pg-btn.fp-control { color: var(--cyan); border-color: var(--cyan-mid); font-weight: 700; }
.fr-chip { padding: 2px 10px; border-radius: 11px; border: 1px solid var(--hue-mid); color: var(--hue); font-size: 12px; }
/* a group's members: the chips in a box a friend's row is dropped on (the app's dropZone) */
.fr-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--dim); border-radius: 8px; }
.fr-drop .fr-chip { background: color-mix(in srgb, var(--hue) 14%, var(--bg)); border-color: var(--hue); cursor: pointer; font: inherit; font-size: 12px; }
.fr-drophint { color: var(--dim); font-size: 12px; padding: 2px 4px; }
.fr-drop.drop, .fr-row.drop { background: var(--tint); border-color: var(--accent); }
.fr-row[draggable="true"] { cursor: grab; }
.fr-logbody {
  font: 12px/1.35 "Cascadia Mono", Consolas, monospace; color: var(--txt); background: var(--well);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; height: 120px; overflow: hidden;
}
.rpanel .fr-panel .friend-section { margin-top: 0; }

/* a shocker switched off on its card: greyed where it is, its switch lit */
.pg-scard.off { border-color: var(--grey-mid); }
.pg-scard.off > :not(.pg-shead), .pg-scard.off .pg-shead > :not(label.sw) { opacity: .35; }
.pg-scard.off > :not(.pg-shead) { pointer-events: none; }
.pg-schip.off { border-color: var(--line); color: var(--dim); background: transparent; }
.rpanel .pg-schip.off .pg-x { color: var(--dim); }

/* 0.16: what may reach a shocker (op_chips: lit on, grey off), its boxed
   Limits (pishock_cards.limits_group) and the Test buttons set apart under a
   line; Arm shocks' question in the switch's place */
.pg-ops { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-ops .pg-muted { margin-right: 2px; }
.rpanel .pg-op {
  height: 22px; padding: 0 5px; border-radius: 5px; font: 11px "Segoe UI", system-ui, sans-serif; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid var(--line);
}
.rpanel .pg-op.on { background: var(--yellow-tint); color: var(--yellow); border-color: var(--yellow); }
.rpanel .pg-op:hover { border-color: var(--yellow); }
.pg-limits { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.pg-lhead { display: flex; align-items: center; gap: 5px; }
.pg-lhead b, .pg-thead b { color: var(--txt); font-weight: 700; font-size: 13px; }
.pg-lic { display: inline-flex; width: 16px; height: 16px; color: var(--muted); }
.pg-lic svg { width: 16px; height: 16px; }
.pg-lhint { color: var(--muted); font-size: 11px; line-height: 15px; margin: 0; }
/* a set's heading inside the Limits box (Your avatar / Friends), while friends
   have separate limits -- QLabel#limitsSub */
.pg-lsub { color: var(--muted); font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.pg-lset { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.pg-lsub[hidden], .pg-lset[hidden] { display: none; }
.pg-limits .pg-vhead { line-height: 17px; }
.rpanel .pg-limits .pg-vrow input.hs { height: 16px; }
.pg-rule { height: 1px; background: var(--line); }
.pg-thead { display: flex; align-items: center; gap: 6px; }
.rpanel .pg-btn:disabled { color: var(--dim); border-color: var(--dim); cursor: default; }
.pg-arm { display: inline-flex; align-items: center; gap: 6px; }
.pg-armask { display: inline-flex; align-items: center; gap: 6px; }
.pg-armask[hidden], .pg-arm label.sw[hidden], .pg-armw[hidden] { display: none; }
.rpanel .pg-armask .pg-btn { height: 28px; }
.rpanel .pg-btn.danger { color: var(--err); border-color: var(--err-mid); background: var(--err-tint); font-weight: 700; }
.pg-armw { color: var(--err); font-weight: 700; min-width: 112px; margin-left: 6px; white-space: nowrap; }
.pg-armw.not { font-weight: 400; }
.rpanel .su-input.pg-pfield { flex: 1; }
.pg-addrow[hidden] { display: none; }
.pg-addrow { gap: 8px; }

/* The Log (log_page.py, log_people.py, theme_log.py): the filters, People
   beside Entries; a person is a well-coloured row, their shocks in yellow */
.lg-filters { gap: 8px; }
.lg-filters .pg-row.tight > span { color: var(--txt); }
.rpanel .lg-select {
  height: 30px; padding: 0 26px 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--txt);
  font: 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--well) linear-gradient(var(--line), var(--line)) no-repeat calc(100% - 22px) 0 / 1px 100%;
}
.lg-selwrap { position: relative; display: inline-flex; flex: none; }
.lg-selwrap::after {
  content: "\25BE"; position: absolute; right: 0; top: 0; bottom: 0; width: 22px; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--txt);
}
.rpanel .lg-select.wide { width: 190px; }
.rpanel .lg-select { width: 112px; }
.rpanel .lg-search { flex: 1; min-width: 0; }
.rpanel .pg-btn.lg-clear { color: var(--err); border-color: var(--err-mid); font-weight: 700; }
.lg-ask { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--err-mid); border-radius: 8px; }
.lg-ask[hidden] { display: none; }
.rpanel .lg-kind {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 2px 9px; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line); font: 12px "Segoe UI", system-ui, sans-serif;
}
.rpanel .lg-kind:hover { background: var(--hover); }
.rpanel .lg-kind.on { background: var(--ok-tint); color: var(--accent); border-color: var(--accent); }
.lg-ic { display: inline-flex; width: 14px; height: 14px; flex: none; color: var(--muted); }
.lg-ic svg { width: 14px; height: 14px; }
.lg-cols { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 14px; align-items: start; }
.lg-card { gap: 8px; padding: 12px 16px 14px; }
.lg-people { display: flex; flex-direction: column; gap: 6px; }
.lg-person { background: var(--well); border: 1px solid var(--well); border-radius: 8px; padding: 6px 8px 8px; }
.lg-person:hover { border-color: var(--line); }
.lg-phead { display: flex; align-items: center; gap: 8px; height: 26px; cursor: pointer; }
.lg-caret { color: var(--muted); font-size: 9px; width: 14px; text-align: center; }
.lg-pname { color: var(--txt); font-weight: 700; }
.lg-shocks { color: var(--yellow); background: var(--yellow-tint); border: 1px solid var(--yellow-mid); border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.lg-ago { color: var(--muted); font-size: 12px; }
.rpanel .lg-only { height: 22px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--accent); background: transparent; color: var(--muted); font: 11px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.rpanel .lg-only:hover { color: var(--accent); }
.lg-last { color: var(--muted); font-size: 12px; padding-left: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-body { padding: 4px 0 2px 22px; font-size: 12px; line-height: 18px; }
.lg-when { color: var(--muted); margin-right: 10px; }
.lg-body .out { color: var(--yellow); font-weight: 700; }
.lg-body .op { color: var(--yellow); }
.lg-body .held { color: var(--dim); }
.lg-table { border: 1px solid var(--line); border-radius: 6px; background: var(--well); overflow: hidden; min-height: 380px; }
.lg-row { display: grid; grid-template-columns: 92px 86px minmax(0, 1fr); align-items: center; height: 30px; font-size: 13px; }
.lg-row:nth-child(even) { background: color-mix(in srgb, var(--card) 70%, transparent); }
.lg-row > span { padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row.th { height: 32px; border-bottom: 1px solid var(--line); background: transparent; }
.lg-row.th > span { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-align: center; border-right: 1px solid var(--line); }
.lg-row.th > span:last-child { border-right: none; }
.lg-c3 { display: flex; align-items: center; gap: 8px; }
.lg-what { overflow: hidden; text-overflow: ellipsis; }
.lg-row.out { color: var(--yellow); font-weight: 700; }
.lg-row.op .lg-c3 { color: var(--yellow); }
.lg-row.held { color: var(--dim); }
/* A corrected entry (log_page.CorrectionDelegate, log_people.history_html):
   what went out and why, muted on a second line under it */
.lg-row.fixed { height: 46px; }
.lg-row.fixed .lg-c3 { align-items: flex-start; }
.lg-row.fixed .lg-ic { margin-top: 3px; }
.lg-what .lg-line, .lg-what .lg-fix { display: block; overflow: hidden; text-overflow: ellipsis; }
.lg-row .lg-fix { color: var(--muted); font-weight: 400; }
.lg-body .lg-fix { color: var(--muted); padding-left: 20px; }
.fr-people { max-height: 220px; overflow-y: auto; }
.fr-people[hidden], .fr-logbody[hidden] { display: none; }

/* Friends, 0.16: a row's second line (their VRChat account), ↻ / Check all,
   In your VRChat instance, a panel's account line (friends_account.py,
   friends_list.py) */
.fr-row { flex-direction: column; align-items: stretch; justify-content: center; height: auto; min-height: 34px; gap: 0; padding: 0 6px; }
.fr-line { display: flex; align-items: center; gap: 8px; height: 32px; }
.fr-vrcline { display: flex; align-items: center; gap: 8px; padding: 0 0 5px 28px; margin-top: -4px; font-size: 12px; }
.fr-vrcline[hidden] { display: none; }
.fr-vname { color: var(--muted); }
.fr-vname.big { color: var(--txt); font-size: 13px; }
.fr-vtag { color: var(--muted); font-size: 12px; }
.fr-vtag.ok { color: var(--accent); }
.fr-vtag.warn { color: var(--warn); }
.rpanel .fr-check {
  width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: var(--txt); font-size: 12px; cursor: pointer; margin-right: 4px; flex: none;
}
.rpanel .fr-check:disabled { color: var(--dim); cursor: default; }
.rpanel .fr-check[hidden] { display: none; }
.rpanel .fr-checkall {
  height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: var(--muted); font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer;
}
.rpanel .fr-checkall:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.rpanel .fr-checkall:disabled { color: var(--dim); cursor: default; }
.rpanel .fr-checkall[hidden] { display: none; }
.fr-inst { display: flex; flex-direction: column; gap: 6px; }
.fr-instline[hidden], .fr-vrcchips[hidden] { display: none; }
.fr-small { font-size: 11px; }
.fr-vrcchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rpanel .fr-vchip, .fr-vchip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 5px; border-radius: 5px; cursor: grab;
  border: 1px solid var(--accent); color: var(--txt); background: transparent; font: 11px "Segoe UI", system-ui, sans-serif;
}
.fr-vchip.linked { border-color: var(--hue); color: var(--hue); background: color-mix(in srgb, var(--hue) 14%, var(--bg)); }
button.fr-vchip { cursor: pointer; }
.fr-account { display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent; border-radius: 8px; }
.fr-account.drop { border-color: var(--accent); background: var(--tint); }
.fr-account label.sw[hidden], .fr-vpick[hidden] { display: none; }
.rpanel .pg-link.muted { color: var(--dim); }
.rpanel .pg-link[hidden] { display: none; }
.fr-vpick { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.rpanel .friend-section[hidden] { display: none; }

/* My Avatar Remote, 0.16: the Height box's own extras, a control dragged back
   to the list (param_remove.py, theme_params paramRemove*) */
.rpanel .pg-avboard .hbox { max-width: 246px; }
.pg-hopts { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 6px; }
.pg-hopts[hidden] { display: none; }
.pg-hopt { width: 72px; flex: none; }
.pg-hopts .row .hs { flex: 1; min-width: 0; }
.pg-hsw { margin-left: 2px; }
.pg-ptable { position: relative; }
.pg-rmdrop {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px 16px;
  background: var(--err-tint); color: var(--err); border: 1px solid var(--err); border-radius: 8px; text-align: center; pointer-events: none;
}
.pg-rmdrop[hidden] { display: none; }
.pg-rmdrop b { font-size: 15px; font-weight: 700; }
.pg-rmstrip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.pg-rmstrip.ask { border-color: var(--err-mid); }
.pg-rmstrip[hidden], .pg-rmstrip .pg-btn[hidden] { display: none; }

/* Add a friend: a header with its own +/- box, the fold hanging from it */
.fr-addcard { display: flex; flex-direction: column; }
.rpanel .fr-addhead {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 12px 0 6px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--txt);
  font: 13px "Segoe UI", system-ui, sans-serif; text-align: left; cursor: pointer;
}
.rpanel .fr-addhead:hover { background: var(--hover); border-color: var(--accent); color: var(--txt); }
.rpanel .fr-addhead.open { border-color: var(--accent); background: var(--tint); border-radius: 8px 8px 0 0; }
.fr-sign {
  width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; background: var(--well); color: var(--accent);
  font-size: 16px; font-weight: 700; line-height: 1;
}
.fr-addhead.open .fr-sign { border-color: var(--accent); }
.fr-addcard .fr-fold { border: 1px solid var(--accent); border-top: none; border-radius: 0 0 8px 8px; padding: 10px 12px 12px; }

/* Suits: her and the cards beside her (body_view.py, suits_cards.py), each
   suit's frame, the zone routes (theme_suits / theme_params) */
.su-page [hidden] { display: none !important; }
.su-page > .pg-intro { margin-top: 11px; }
.su-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.su-stage { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.su-body { flex: 1 1 auto; min-width: 340px; cursor: pointer; }
.su-svg { display: block; user-select: none; }
.su-svg text { font: 700 11px "Segoe UI", system-ui, sans-serif; letter-spacing: 2px; text-anchor: middle; dominant-baseline: central; }
.su-svg .su-cap { fill: var(--muted); }
.su-svg .su-side { fill: var(--dim); }
.su-leaders { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.su-col { width: 250px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.su-pickhint { width: 250px; }
.su-card {
  width: 250px; background: var(--well); border: 1px solid var(--hue-mid); border-radius: 8px;
  padding: 8px 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.su-card > * { align-self: stretch; }
.su-card > .pg-pill, .su-card > label.sw, .su-card > .pg-btn { align-self: flex-start; }
.su-head { display: flex; align-items: flex-start; gap: 6px; }
.su-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--txt); }
.su-tag { color: var(--hue); border: 1px solid var(--hue-mid); border-radius: 8px; padding: 0 6px; font-size: 11px; line-height: 16px; }
.su-hint { color: var(--muted); font-size: 11px; line-height: 15px; margin: 0; }
.su-page .pg-btn:disabled { color: var(--dim); border-color: var(--dim); cursor: default; }
.rpanel.su-page .pg-btn.danger { color: var(--err); border-color: var(--err-mid); font-weight: 700; }
.rpanel.su-page .pg-btn.danger:hover { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); border-color: var(--err); }
/* ValueSlider: its name and number, 2 px, the slider */
.su-page .pg-vhead { line-height: 17px; }
.rpanel.su-page .pg-vrow input.hs { height: 16px; }
.pg-vrow.off .pg-vhead, .pg-vrow.off .pg-val { color: var(--dim); }
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rpanel .su-chip {
  background: transparent; color: var(--txt); border: 1px solid var(--hue-mid); border-radius: 5px;
  padding: 2px 4px; min-height: 24px; font: 11px "Segoe UI", system-ui, sans-serif; white-space: pre; cursor: pointer;
}
.rpanel .su-chip:hover { background: var(--hover); }
.rpanel .su-chip.on { background: var(--hue-tint); color: var(--hue); border-color: var(--hue); }
.su-legend { display: flex; align-items: center; gap: 6px; height: 16px; color: var(--muted); font-size: 12px; }
.su-legend > span:not(.su-swatch) { margin-right: 8px; white-space: nowrap; }
.su-swatch { display: inline-flex; width: 16px; height: 16px; flex: none; }
.su-check { display: flex; flex-direction: column; gap: 4px; }
.su-check .su-hint { line-height: 14px; }
.su-now { margin: 0; color: var(--pink); font-size: 13px; line-height: 17px; }
/* a suit's frame (category_frame): bar, 9 px, the cards, 13 px */
.su-cat { gap: 9px; padding-bottom: 12px; }
.su-cat .pg-bar .pg-ic { color: var(--orange); }
.rpanel.su-page .su-small .pg-btn { height: 31px; }
/* the bar and frame: orange has no bar pair in the app and wears its mid
   tone; purple's pair is mixed from the tokens, as the web remote's are */
:root:not([data-theme="midnight"]) .su-cat.orange { --bar: var(--orange-mid); }
:root:not([data-theme="midnight"]) .su-cat.purple {
  --bar: color-mix(in srgb, var(--purple) 60%, var(--bg)); border-color: color-mix(in srgb, var(--purple) 68%, var(--bg));
}
@supports (color: oklch(from red l c h)) {
  :root:not([data-theme="midnight"]) .su-cat.purple {
    --bar: oklch(from var(--purple) calc(l - 0.26) c h); border-color: oklch(from var(--purple) calc(l - 0.18) calc(c - 0.02) h);
  }
}
/* the cards in columns of the app's CardColumns: 259 px, 10 apart */
.su-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 0 3px 0 2px;
}
.su-grid > :last-child { grid-column: span 2; }
.su-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* OWO's: Link and Strength side by side, Touches right under Link, Tell
   VRChat under Strength -- as the app's columns place them */
.su-grid.owo { grid-template-areas: "link link strength" "touches stuck strength" "tell tell ."; }
/* a suit's anti-stuck: its two times under On, shown while it is on */
.su-stuck { display: flex; flex-direction: column; gap: 6px; }
.su-stuck[hidden] { display: none; }
.su-tellsw { min-width: 118px; }
.su-small {
  background: var(--well); border: 1px solid var(--hue-mid); border-radius: 8px; padding: 10px 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start;
}
.su-small > * { align-self: stretch; }
.su-small > label.sw { align-self: flex-start; }
.su-small-t { font-size: 13px; font-weight: 600; line-height: 16px; }
.su-react { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rpanel .su-input {
  flex: 1; min-width: 0; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--well); color: var(--txt); font: 13px "Segoe UI", system-ui, sans-serif;
}
.su-sect { display: flex; align-items: center; gap: 8px; }
.su-sect .o-sect { flex: 1; }
.su-routes { display: flex; flex-direction: column; gap: 8px; }
.su-route {
  max-width: 820px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.su-route .su-input.zone { flex: 0 0 160px; }
.o-in.combo.su-type { width: 74px; justify-content: flex-start; cursor: pointer; }
.o-in.combo.su-region { width: 150px; justify-content: flex-start; }
.su-gain { width: 190px; flex: none; }
.su-box { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt); }
