.holosuite-hacking-window .window-content,
.holosuite-hacking-launcher-window .window-content,
.holosuite-hacking-profile-window .window-content,
.holosuite-hacking-start-dialog .window-content {
  background: var(--hs-surface-bg);
  box-sizing: border-box;
  color: var(--hs-text);
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.holosuite-hacking-window,
.holosuite-hacking-launcher-window,
.holosuite-hacking-profile-window,
.holosuite-hacking-start-dialog {
  background: var(--hs-surface-window) !important;
  border: 1px solid color-mix(in srgb, var(--hs-color-primary) 28%, transparent) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--hs-color-primary) 18%, transparent),
    0 18px 46px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.holosuite-hacking-window .window-header,
.holosuite-hacking-launcher-window .window-header,
.holosuite-hacking-profile-window .window-header,
.holosuite-hacking-start-dialog .window-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px;
  border: 0 !important;
  background:
    linear-gradient(rgba(231, 250, 255, 0.035) 50%, rgba(0, 0, 0, 0.05) 50%) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(2, 13, 24, 0.98), rgba(5, 19, 28, 0.94), rgba(2, 13, 24, 0.98)) !important;
  color: var(--hs-text-primary) !important;
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--hs-color-primary) 48%, transparent),
    inset 0 -10px 20px color-mix(in srgb, var(--hs-color-primary) 8%, transparent);
  font-family: var(--hs-font-ui) !important;
}

:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-window,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-launcher-window,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-profile-window,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-start-dialog,
:where(:root, body)[data-holosuite-device-style="space-police"] .hh-shell {
  --hs-cyan: #fff15a;
  --hs-amber: #fff15a;
  --hs-line: rgba(255, 241, 90, 0.34);
  --hs-line-strong: rgba(255, 241, 90, 0.72);
  --hs-panel: linear-gradient(180deg, rgba(18, 18, 15, 0.98), rgba(2, 2, 2, 0.96));
  --hs-field: #10100c;
  --hs-surface-window: linear-gradient(180deg, rgba(10, 11, 10, 0.98), rgba(2, 2, 2, 0.97));
  --hs-surface-panel: var(--hs-panel);
  --hs-surface-card: linear-gradient(180deg, rgba(30, 28, 18, 0.94), rgba(6, 6, 5, 0.97));
  --hs-surface-control: linear-gradient(180deg, rgba(38, 39, 34, 0.94), rgba(8, 8, 7, 0.98));
  --hs-surface-control-hover: linear-gradient(180deg, rgba(66, 56, 28, 0.96), rgba(15, 13, 8, 0.98));
  --hs-surface-active: linear-gradient(135deg, rgba(255, 241, 90, 0.22), rgba(255, 156, 64, 0.12));
  --hs-border-subtle: var(--hs-line);
  --hs-border-strong: var(--hs-line-strong);
  --hs-color-accent: #ffb13d;
  --hs-color-primary: #fff15a;
  --hs-text-secondary: #c7c1a9;
  --hs-glow-cyan: 0 0 18px rgba(255, 241, 90, 0.3);
  --hs-focus-ring: 0 0 0 2px rgba(255, 177, 61, 0.2);
  --hs-shadow-control:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(255, 177, 61, 0.16);
  --hs-shadow-panel:
    0 20px 46px rgba(0, 0, 0, 0.48),
    inset 0 0 32px rgba(255, 241, 90, 0.08);
}

:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-window .window-header,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-launcher-window .window-header,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-profile-window .window-header,
:where(:root, body)[data-holosuite-device-style="space-police"] .holosuite-hacking-start-dialog .window-header {
  background:
    linear-gradient(rgba(255, 247, 173, 0.028) 50%, rgba(0, 0, 0, 0.05) 50%) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(10, 10, 8, 0.98), rgba(25, 22, 12, 0.94), rgba(10, 10, 8, 0.98)) !important;
}

.holosuite-hacking-window .window-header::before,
.holosuite-hacking-window .window-header::after,
.holosuite-hacking-launcher-window .window-header::before,
.holosuite-hacking-launcher-window .window-header::after,
.holosuite-hacking-profile-window .window-header::before,
.holosuite-hacking-profile-window .window-header::after,
.holosuite-hacking-start-dialog .window-header::before,
.holosuite-hacking-start-dialog .window-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 108px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hs-color-primary));
  opacity: 0.75;
}

.holosuite-hacking-window .window-header::before,
.holosuite-hacking-launcher-window .window-header::before,
.holosuite-hacking-profile-window .window-header::before,
.holosuite-hacking-start-dialog .window-header::before {
  left: 12px;
}

.holosuite-hacking-window .window-header::after,
.holosuite-hacking-launcher-window .window-header::after,
.holosuite-hacking-profile-window .window-header::after,
.holosuite-hacking-start-dialog .window-header::after {
  right: 12px;
  transform: scaleX(-1);
}

.holosuite-hacking-window .window-title,
.holosuite-hacking-launcher-window .window-title,
.holosuite-hacking-profile-window .window-title,
.holosuite-hacking-start-dialog .window-title {
  min-width: 0;
  overflow: hidden;
  color: var(--hs-text-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px color-mix(in srgb, var(--hs-color-primary) 32%, transparent);
  white-space: nowrap;
}

.hh-shell {
  --hs-app-padding-block: 20px;
  --hs-app-padding-inline: 24px;
  --hs-frame-corner-size: 72px;
  --hs-frame-edge-inset: 0px;
  --hs-frame-side-width: var(--hs-frame-corner-size);
  --hs-frame-header-width: 180px;
  --hs-frame-header-height: 18px;
  --hs-frame-safe-inset: 3px;
  --hs-frame-color: var(--hs-border-strong);
  --hs-frame-glow: color-mix(in srgb, var(--hs-color-primary) 36%, transparent);
  position: relative;
  isolation: isolate;
  min-height: 100%;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    var(--hs-grid-bg),
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--hs-color-primary) 14%, transparent), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(255, 77, 125, 0.08), transparent 28rem),
    var(--hs-bg-deep);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  color: var(--hs-text-primary);
  color-scheme: dark;
  font-family: var(--hs-font-ui);
}

.hh-shell * {
  box-sizing: border-box;
}

.hh-shell .hs-background,
.hh-shell .hs-frame,
.hh-shell .hs-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hh-shell .hs-background {
  z-index: 0;
}

.hh-shell .hs-frame {
  z-index: 2;
}

.hh-shell .hs-frame::after {
  content: "";
  position: absolute;
  right: 55px;
  bottom: calc(var(--hs-frame-safe-inset) + 1px);
  left: 55px;
  height: 1px;
  background: var(--hs-frame-color);
  box-shadow: 0 0 7px var(--hs-frame-glow);
}

.hh-shell .hs-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  height: 100%;
  padding: var(--hs-app-padding-block) var(--hs-app-padding-inline);
}

.hh-shell .hs-effects {
  z-index: 3;
  background:
    linear-gradient(rgba(231, 250, 255, 0.026) 50%, rgba(0, 0, 0, 0.035) 50%) 0 0 / 100% 4px,
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--hs-color-primary) 8%, transparent), transparent);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.hh-shell .hs-frame-piece {
  position: absolute;
  display: block;
  color: var(--hs-frame-color);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  filter: drop-shadow(0 0 7px var(--hs-frame-glow));
  overflow: visible;
}

.hh-shell img.hs-frame-piece {
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.hh-shell .hs-frame-corner {
  width: var(--hs-frame-corner-size);
  height: var(--hs-frame-corner-size);
  object-fit: contain;
}

.hh-shell .hs-frame-corner--top-left {
  top: 0;
  left: 0;
}

.hh-shell .hs-frame-corner--top-right {
  top: 0;
  right: 0;
}

.hh-shell .hs-frame-corner--bottom-left {
  bottom: var(--hs-frame-safe-inset);
  left: 0;
}

.hh-shell .hs-frame-corner--bottom-right {
  right: 0;
  bottom: var(--hs-frame-safe-inset);
}

.hh-shell .hs-frame-edge--left,
.hh-shell .hs-frame-edge--right {
  top: var(--hs-frame-corner-size);
  width: var(--hs-frame-side-width);
  height: calc(100% - (var(--hs-frame-corner-size) * 2));
  object-fit: fill;
}

.hh-shell .hs-frame-edge--left {
  left: var(--hs-frame-edge-inset);
}

.hh-shell .hs-frame-edge--right {
  right: var(--hs-frame-edge-inset);
}

.hh-shell .hs-frame-header {
  top: 9px;
  left: 50%;
  width: min(var(--hs-frame-header-width), calc(100% - (var(--hs-frame-corner-size) * 2)));
  height: var(--hs-frame-header-height);
  transform: translateX(-50%);
  object-fit: contain;
}

.hh-shell .hs-frame img.hs-frame-piece--space-police {
  display: none;
}

:where(:root, body)[data-holosuite-device-style="space-police"] .hh-shell .hs-frame img.hs-frame-piece--default {
  display: none;
}

:where(:root, body)[data-holosuite-device-style="space-police"] .hh-shell .hs-frame img.hs-frame-piece--space-police {
  display: block;
}

.hh-shell :where(input, select, textarea) {
  min-height: 32px;
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius);
  background: var(--hs-field);
  color: var(--hs-text-primary);
  font-family: var(--hs-font-ui);
}

.hh-shell :where(input:focus, select:focus, textarea:focus) {
  border-color: var(--hs-border-strong);
  box-shadow: var(--hs-focus-ring), inset 0 0 12px rgba(105, 232, 255, 0.08);
  outline: none;
}

.hh-shell :where(select, select option) {
  background: var(--hs-field);
  color: var(--hs-text-primary);
}

.hh-shell :where(button) {
  min-height: 32px;
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius);
  background: var(--hs-surface-control);
  color: var(--hs-text-primary);
  box-shadow: var(--hs-shadow-control);
  cursor: pointer;
  font-family: var(--hs-font-ui);
}

.hh-shell :where(button:hover, button:focus-visible) {
  border-color: var(--hs-border-strong);
  background: var(--hs-surface-control-hover);
  box-shadow: var(--hs-glow-cyan), var(--hs-shadow-control);
  outline: none;
}

.hh-shell .hh-result-close {
  justify-self: center;
  min-width: 132px;
  margin-top: 8px;
  padding: 8px 18px;
  border-color: color-mix(in srgb, currentColor 58%, transparent);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hh-kicker {
  color: var(--hs-color-primary) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.holosuite-hacking-launcher {
  grid-template-rows: none !important;
  grid-auto-rows: max-content;
  overflow-y: auto;
  align-content: start;
  gap: 10px;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 16px 18px 18px;
  background: transparent;
  font-family: var(--hs-font-ui);
}

.holosuite-hacking-launcher-header p {
  margin: 0 0 4px;
  color: var(--hs-cyan);
  font-size: 11px;
  text-transform: uppercase;
}

.holosuite-hacking-launcher-header h2 {
  margin: 0;
  color: var(--hs-text);
  font-size: 28px;
  text-shadow: var(--hs-glow-cyan);
}

.holosuite-hacking-launcher-header span {
  display: block;
  margin-top: 4px;
  color: var(--hs-text-secondary);
  font-size: 13px;
}

.holosuite-hacking-launcher [hidden] {
  display: none !important;
}

.hh-launcher-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hh-launcher-mode-row button { flex: 0 0 auto; width: auto; padding: 6px 12px; color: var(--hs-cyan); border: 1px solid var(--hs-cyan); }
.holosuite-hacking-launcher .hh-full-setup { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hh-quick-setup p { margin: 2px 0 14px; color: var(--hs-text-secondary); font-size: 13px; line-height: 1.5; }
.hh-quick-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hh-quick-results button { min-height: 42px; height: auto; padding: 8px; white-space: normal; color: var(--hs-text); border: 1px solid var(--hs-border); border-radius: 6px; background: var(--hs-field); }
.hh-quick-results [data-quick-outcome="success"] { grid-column: 1 / -1; border-color: #51cf91; }
.hh-quick-results [data-quick-outcome="critical_success"], .hh-quick-results [data-quick-outcome="strong_success"] { border-color: #4cb9ce; }
.hh-quick-results [data-quick-outcome="failure_but_playable"] { border-color: #d49d50; }
.hh-quick-results [data-quick-outcome="critical_failure"] { border-color: #dc647e; }
.hh-quick-results button:hover { box-shadow: var(--hs-glow-cyan); }
.hh-quick-results button[aria-pressed="true"] { background: var(--hs-active-bg); box-shadow: inset 0 0 0 2px var(--hs-cyan); }
.hh-quick-configuration-actions { margin-top: 16px; }

.holosuite-hacking-launcher [data-label-help] {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  text-decoration-color: var(--hs-border);
}

.holosuite-hacking-launcher .form-group {
  display: grid;
  grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--hs-field) 42%, transparent);
}

.hh-shell .holosuite-hacking-launcher .form-group > label {
  color: var(--hs-text-secondary) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.holosuite-hacking-launcher .hh-skill-warning {
  display: inline-block;
  margin-left: 5px;
  color: var(--hs-warning, #ffc857);
  cursor: help;
}

.holosuite-hacking-launcher .hh-skill-warning:focus-visible,
.holosuite-hacking-launcher [data-label-help]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.holosuite-hacking-launcher input,
.holosuite-hacking-launcher select {
  width: 100%;
  border: 1px solid rgba(105, 232, 255, 0.24);
  background: var(--hs-field);
  color: var(--hs-text);
}

.holosuite-hacking-launcher select option {
  background: var(--hs-bg-deep, #061116);
  color: var(--hs-text, #e7faff);
}

.holosuite-hacking-launcher select {
  color-scheme: dark;
}

.holosuite-hacking-launcher-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--hs-line);
  padding-top: 10px;
}

.holosuite-hacking-launcher-actions button {
  border: 1px solid rgba(98, 255, 182, 0.5);
  background: var(--hs-active-bg);
  color: var(--hs-text);
  padding: 8px 12px;
  box-shadow: var(--hs-glow-green);
}

.holosuite-hacking-start-dialog .dialog-content {
  background: var(--hs-surface-bg);
  box-sizing: border-box;
  color: var(--hs-text);
  height: 100%;
  padding: 0;
}

.holosuite-hacking-start-dialog .dialog-buttons {
  margin: 0;
  padding: 12px;
  background: var(--hs-bg-deep);
  border-top: 1px solid var(--hs-line);
}

.holosuite-hacking-start-dialog .dialog-button {
  border: 1px solid rgba(98, 255, 182, 0.5);
  background: var(--hs-active-bg);
  color: var(--hs-text);
  box-shadow: var(--hs-glow-green);
}

.holosuite-hacking-start-prompt {
  box-sizing: border-box;
  min-height: 100%;
  color: var(--hs-text);
  padding: 22px;
  background:
    var(--hs-grid-bg),
    radial-gradient(circle at 72% 32%, rgba(255, 77, 125, 0.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(98, 255, 182, 0.14), transparent 32%),
    var(--hs-bg-deep);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
}

.holosuite-hacking-start-prompt p {
  margin: 0 0 6px;
  color: var(--hs-cyan);
  font-size: 11px;
  text-transform: uppercase;
}

.holosuite-hacking-start-prompt h2 {
  margin: 0 0 14px;
  color: var(--hs-text);
  font-size: 30px;
  text-shadow: var(--hs-glow-cyan);
}

.holosuite-hacking-start-prompt div {
  display: inline-flex;
  border: 1px solid rgba(255, 209, 102, 0.38);
  background: rgba(255, 209, 102, 0.08);
  color: var(--hs-amber);
  padding: 7px 9px;
  font-size: 13px;
}

.holosuite-hacking-profile-window .window-content {
  background: var(--hs-surface-bg) !important;
  color: var(--hs-text) !important;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.holosuite-profile-config {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    var(--hs-grid-bg),
    radial-gradient(circle at 78% 18%, rgba(255, 77, 125, 0.12), transparent 30%),
    var(--hs-bg-deep);
  background-size: 24px 24px;
  color: var(--hs-text);
  color-scheme: dark;
  font-family: var(--hs-font-ui);
}

.holosuite-profile-config :where(h2, h3, h4, p, span, label, strong) {
  color: inherit;
}

.holosuite-profile-config :where(button) {
  border-color: var(--hs-border-subtle) !important;
  background: var(--hs-surface-control) !important;
  color: var(--hs-text-primary) !important;
}

.holosuite-profile-config :where(button:hover, button:focus-visible) {
  border-color: var(--hs-border-strong) !important;
  background: var(--hs-surface-control-hover) !important;
  color: var(--hs-text-primary) !important;
  outline: none;
}

.holosuite-profile-config :where(input, select, textarea) {
  border-color: var(--hs-border-subtle) !important;
  background: var(--hs-field) !important;
  color: var(--hs-text-primary) !important;
}

.holosuite-profile-config :where(input:focus, select:focus, textarea:focus) {
  border-color: var(--hs-border-strong) !important;
  box-shadow: var(--hs-focus-ring), inset 0 0 12px rgba(105, 232, 255, 0.08);
  outline: none;
}

.holosuite-profile-config-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--hs-line);
}

.holosuite-profile-config-header p {
  margin: 0 0 4px;
  color: var(--hs-cyan);
  font-size: 11px;
  text-transform: uppercase;
}

.holosuite-profile-config-header h2 {
  margin: 0;
  color: var(--hs-text);
  font-size: 28px;
  text-shadow: var(--hs-glow-cyan);
}

.holosuite-profile-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-color: var(--hs-color-primary) transparent;
}

.holosuite-profile-tabs button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 6px;
  color: var(--hs-text-secondary) !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.holosuite-profile-tabs button.is-active {
  border-color: var(--hs-border-strong) !important;
  background: var(--hs-surface-active) !important;
  color: var(--hs-color-primary) !important;
  box-shadow: var(--hs-glow-cyan), inset 0 -2px 0 var(--hs-color-primary) !important;
}

.holosuite-profile-config-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 20px;
  scrollbar-gutter: stable;
}

.holosuite-profile-section {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid rgba(105, 232, 255, 0.2);
  background: rgba(4, 18, 27, 0.72);
  overflow: hidden;
  padding: 0;
}

.holosuite-profile-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.holosuite-profile-section-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.holosuite-profile-section-heading strong {
  color: var(--hs-text);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.holosuite-profile-section-heading small {
  color: var(--hs-muted);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.holosuite-profile-section-header > i {
  color: var(--hs-color-primary);
  font-size: 12px;
  transition: transform 140ms ease;
}

.holosuite-profile-section.is-open > .holosuite-profile-section-header {
  border-bottom: 1px solid rgba(105, 232, 255, 0.15);
  background: color-mix(in srgb, var(--hs-color-primary) 7%, transparent) !important;
}

.holosuite-profile-section.is-open > .holosuite-profile-section-header > i {
  transform: rotate(180deg);
}

.holosuite-profile-section-content {
  display: none;
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 12px;
}

.holosuite-profile-section.is-open > .holosuite-profile-section-content {
  display: block;
}

.holosuite-profile-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.holosuite-profile-section-actions button {
  flex: 0 0 auto;
  width: auto;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--hs-amber) !important;
  font-size: 11px;
  text-transform: uppercase;
}

.holosuite-profile-fieldset {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid rgba(105, 232, 255, 0.15);
  padding-top: 10px;
}

.holosuite-profile-fieldset:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.holosuite-profile-fieldset[data-profile-panel] {
  display: none;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.holosuite-profile-config[data-active-profile-tab="general"] [data-profile-panel="general"],
.holosuite-profile-config[data-active-profile-tab="node-intrusion"] [data-profile-panel="node-intrusion"],
.holosuite-profile-config[data-active-profile-tab="signal-alignment"] [data-profile-panel="signal-alignment"],
.holosuite-profile-config[data-active-profile-tab="packet-switchboard"] [data-profile-panel="packet-switchboard"],
.holosuite-profile-config[data-active-profile-tab="prism-lock"] [data-profile-panel="prism-lock"] {
  display: grid !important;
}

.holosuite-profile-fieldset h4 {
  margin: 0;
  color: var(--hs-cyan);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.holosuite-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.holosuite-profile-grid label {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 96px;
  gap: 8px;
  align-items: center;
}

.holosuite-profile-grid span,
.holosuite-profile-toggles span {
  color: var(--hs-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.holosuite-profile-grid input {
  width: 100%;
  border: 1px solid rgba(105, 232, 255, 0.24);
  background: var(--hs-field);
  color: var(--hs-text);
  text-align: right;
}

.holosuite-profile-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.holosuite-profile-limits span {
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.07);
  color: var(--hs-muted);
  padding: 5px 7px;
  font-size: 11px;
  text-transform: uppercase;
}

.holosuite-profile-limits strong {
  color: var(--hs-amber);
  font-size: 12px;
}

.holosuite-profile-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 0;
  border-top: 1px solid rgba(105, 232, 255, 0.15);
  padding-top: 10px;
}

.holosuite-profile-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.holosuite-profile-config-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  min-height: 68px;
  border-top: 1px solid var(--hs-line);
  padding: 14px 18px 18px;
  background: rgba(3, 11, 18, 0.9);
}

.holosuite-profile-config-actions button {
  border: 1px solid rgba(98, 255, 182, 0.5);
  background: var(--hs-active-bg);
  color: var(--hs-text);
  padding: 8px 12px;
  box-shadow: var(--hs-glow-green);
}

.holosuite-profile-config-actions button[data-action="reset-profiles"] {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.08);
  color: var(--hs-amber);
  box-shadow: none;
}

@media (max-width: 760px) {
  .holosuite-profile-grid {
    grid-template-columns: 1fr;
  }

  .holosuite-profile-grid label {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
}

.hh-profile-shell .holosuite-profile-config {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: var(--hs-app-padding-block) var(--hs-app-padding-inline);
  background: transparent;
}

.hh-profile-shell .holosuite-profile-config-header {
  padding: 0 4px 12px;
}

.hh-profile-shell .holosuite-profile-config-body {
  min-height: 0;
  padding: 2px 4px 8px;
  scrollbar-color: var(--hs-color-primary) transparent;
}

.hh-profile-shell .holosuite-profile-section {
  border-color: var(--hs-border-subtle);
  border-radius: 6px;
  background: color-mix(in srgb, var(--hs-field) 62%, transparent);
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--hs-color-primary) 46%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 6%, transparent);
}

.hh-profile-shell .holosuite-profile-fieldset {
  border-top-color: color-mix(in srgb, var(--hs-border-subtle) 58%, transparent);
}

.hh-profile-shell .holosuite-profile-grid label {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--hs-field) 44%, transparent);
}

.hh-profile-shell .holosuite-profile-toggles label {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--hs-field) 42%, transparent);
}

.hh-profile-shell .holosuite-profile-config-actions {
  min-height: 0;
  padding: 12px 4px 0;
  background: transparent;
}

@media (max-width: 760px) {
  .hh-shell {
    --hs-app-padding-block: 16px;
    --hs-app-padding-inline: 16px;
    --hs-frame-corner-size: 54px;
  }

  .holosuite-hacking-launcher .form-group {
    grid-template-columns: 1fr;
  }
}
.hh-sheet-waiting {
  position: fixed; z-index: 10000; bottom: 90px; left: 20px;
  width: min(340px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 14px; display: grid; gap: 10px; border: 1px solid #356479; border-radius: 8px;
  background: #101d28; color: #d9f2fa; box-shadow: 0 6px 24px #0008;
  font: 14px/1.45 var(--font-primary, sans-serif);
}
.hh-sheet-waiting p { margin: 0; }
.hh-sheet-waiting .hh-sheet-hint, .hh-sheet-waiting details { font-size: 12px; color: #b0c7d0; }
.hh-sheet-waiting summary { cursor: pointer; }
.hh-sheet-waiting details p { margin: 8px 0; }
.hh-sheet-waiting-actions { display: flex; gap: 8px; }
.hh-sheet-waiting label { display: grid; gap: 4px; }
.hh-sheet-waiting input, .hh-sheet-waiting button, .hh-chat-roll-actions button {
  width: 100%; min-height: 30px; height: auto; white-space: normal;
  background: #07151f; color: #d9f2fa; border: 1px solid #356479; border-radius: 4px; padding: 5px 8px;
}
.hh-chat-roll-actions { display: grid; gap: 5px; margin-top: 10px; }
.hh-chat-roll-actions button { border-color: #69e8ff; font-weight: 600; }
.hh-sheet-waiting button:hover, .hh-chat-roll-actions button:hover { background: #183544; }

.hh-live-view-badge {
  position: absolute;
  z-index: 20;
  top: 10px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(78, 226, 255, 0.72);
  border-radius: 3px;
  background: rgba(3, 14, 24, 0.92);
  color: #7eeaff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(52, 210, 255, 0.18);
}

.hh-shell.is-read-only [data-action="start"],
.hh-shell.is-read-only [data-action="abort"] {
  display: none !important;
}

.hh-shell.is-read-only [data-node-id],
.hh-shell.is-read-only [data-channel-slider],
.hh-shell.is-read-only [data-junction-id],
.hh-shell.is-read-only [data-action="rotate-ring"],
.hh-shell.is-read-only [data-action="toggle-ring"] {
  pointer-events: none !important;
  cursor: default !important;
}
