:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  --viewer-panel: rgba(9, 18, 34, 0.78);
  --viewer-panel-border: rgba(132, 196, 255, 0.18);
  --viewer-text: #eaf4ff;
  --viewer-muted: #98adc4;
  --viewer-accent: #7fd6ff;
  --viewer-warning: #ffbf69;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(89, 132, 247, 0.16), transparent 30%),
    radial-gradient(circle at 18% 42%, rgba(255, 136, 92, 0.14), transparent 24%),
    linear-gradient(180deg, #03060d 0%, #060c18 100%);
}

body {
  color: var(--viewer-text);
}

input,
button,
textarea,
select {
  font: inherit;
}

.auth-landing {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: start;
  padding: 48px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.auth-landing__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 14, 0.9) 0%, rgba(3, 7, 14, 0.52) 42%, rgba(3, 7, 14, 0.84) 100%),
    linear-gradient(180deg, rgba(2, 6, 10, 0.1), rgba(2, 6, 10, 0.72)),
    url("../assets/backdrop1.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.auth-landing__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 36%, rgba(127, 214, 255, 0.22), transparent 24%),
    radial-gradient(circle at 74% 28%, rgba(255, 116, 88, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.12) 0%, rgba(2, 7, 13, 0.48) 100%);
  mix-blend-mode: screen;
}

.auth-landing__hero {
  max-width: 680px;
  display: grid;
  gap: 18px;
}

.auth-landing__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 214, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-accent);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-landing__hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.auth-landing__hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--viewer-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-landing__notes {
  display: grid;
  gap: 10px;
  color: rgba(234, 244, 255, 0.72);
  font-size: 0.92rem;
}

.auth-card {
  position: relative;
  width: min(100%, 460px);
  margin-top: 6px;
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(8, 14, 24, 0.08), rgba(5, 10, 18, 0.14)),
    radial-gradient(circle at top right, rgba(127, 214, 255, 0.12), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(140%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.06);
}

.auth-card__tabs {
  display: flex;
  gap: 8px;
}

.auth-card__tabs button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 244, 255, 0.66);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.auth-card__tabs button.is-active,
.auth-card__tabs button:hover {
  background: rgba(127, 214, 255, 0.14);
  color: var(--viewer-text);
  transform: translateY(-1px);
}

.auth-card h2 {
  margin: 18px 0 16px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.auth-card__form {
  display: grid;
  gap: 12px;
}

.auth-card__form input {
  width: 100%;
  border: 1px solid rgba(127, 214, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  color: var(--viewer-text);
  outline: none;
}

.auth-card__form input:focus {
  border-color: rgba(127, 214, 255, 0.34);
}

.auth-card__form button[type="submit"] {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #ff7458, #ffbf69);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.auth-card__form button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

.auth-card__link {
  justify-self: start;
  border: 0;
  background: transparent;
  color: rgba(234, 244, 255, 0.68);
  padding: 0;
  cursor: pointer;
}

.auth-card__token {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(127, 214, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.auth-card__token-label {
  margin-bottom: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewer-accent);
}

.auth-card__token code {
  display: block;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  word-break: break-all;
}

.auth-card__message {
  margin-top: 14px;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.auth-card__message--info {
  background: rgba(127, 214, 255, 0.1);
  border: 1px solid rgba(127, 214, 255, 0.18);
  color: #d5f2ff;
}

.auth-card__message--error {
  background: rgba(255, 116, 88, 0.12);
  border: 1px solid rgba(255, 116, 88, 0.22);
  color: #ffd7cf;
}

.auth-card__footer {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .auth-landing {
    padding: 28px;
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .auth-landing {
    padding: 18px;
  }

  .auth-card {
    padding: 22px;
  }
}

canvas {
  display: block;
  touch-action: none;
}

.viewer-app,
.viewer-canvas-host {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

.viewer-canvas-host {
  touch-action: none;
}

.viewer-left-sidebar-dock {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(360px, 100vw);
  padding: 0;
}

.viewer-left-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(7, 14, 27, 0.9), rgba(7, 14, 27, 0.78)),
    radial-gradient(circle at top left, rgba(127, 214, 255, 0.08), transparent 34%);
  border-right: 1px solid rgba(132, 196, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.18);
}

.viewer-left-sidebar__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  flex: 0 0 auto;
}

.viewer-left-sidebar__tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  padding: 0.75rem 0.95rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 120ms ease, border-color 120ms ease;
}

.viewer-left-sidebar__tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.viewer-left-sidebar__tab--active {
  background: rgba(116, 196, 255, 0.14);
  border-color: rgba(116, 196, 255, 0.32);
}

.viewer-left-sidebar__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0.9rem;
  overflow: hidden;
}

.viewer-left-sidebar__panel {
  flex: 1 1 auto;
  min-height: 0;
}

.viewer-left-sidebar__panel--player {
  overflow: auto;
  padding-right: 0.2rem;
}

.viewer-left-sidebar__panel--entities {
  height: 100%;
}

.viewer-left-sidebar__panel--entities.entity-browser-panel {
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.viewer-stats-overlay {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(234, 244, 255, 0.92);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.42);
  white-space: pre-wrap;
  letter-spacing: 0.01em;
}

.viewer-stats-overlay-dock {
  position: absolute;
  top: 20px;
  left: calc(min(360px, calc(100vw - 40px)) + 56px);
  max-width: min(420px, calc(100vw - 496px));
}

.viewer-system-label-dock {
  position: absolute;
  top: 22px;
  right: calc(min(380px, calc(100vw - 40px)) + 48px);
  max-width: min(340px, calc(100vw - 500px));
  pointer-events: none;
}

.viewer-system-label {
  color: rgba(238, 246, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.88),
    0 0 18px rgba(0, 0, 0, 0.42);
}

.viewer-system-label__title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.viewer-system-label__subtitle {
  margin-top: 6px;
  color: rgba(203, 219, 235, 0.78);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-stats-overlay--compact {
  font-size: 0.88rem;
  font-weight: 500;
}

.viewer-stats-overlay__line--spacer {
  line-height: 0.65;
}

.panel-summary,
.hud-mono,
.system-body,
.detail-body,
.ship-card p,
.history,
.history-window-body,
.hover-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.collapsible-panel.is-collapsed .game-body,
.collapsible-panel.is-collapsed .network-body,
.collapsible-panel.is-collapsed .performance-body {
  display: none;
}

.collapsible-panel.is-collapsed .panel-summary {
  display: inline-block;
}

.system-title,
.detail-title {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.system-body,
.detail-body {
  margin-top: 12px;
  color: var(--viewer-muted);
  line-height: 1.55;
}

.system-body p,
.detail-body p {
  margin: 0 0 12px;
}

.detail-progress,
.ship-action-progress {
  margin: 0 0 3px;
}

.detail-progress-label,
.ship-action-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--viewer-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.72rem;
  line-height: 1;
}

.detail-progress-track,
.ship-action-progress-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(127, 214, 255, 0.12);
  border: 1px solid rgba(127, 214, 255, 0.14);
}

.detail-progress-fill,
.ship-action-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 214, 255, 0.72), rgba(255, 191, 105, 0.9));
}

.marquee-box {
  position: absolute;
  border: 1px solid rgba(127, 214, 255, 0.72);
  background: rgba(127, 214, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hover-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.hover-connector-line {
  stroke: rgba(255, 88, 72, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.hover-connector-line[hidden] {
  display: none;
}

.hover-label {
  position: absolute;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(7, 15, 28, 0.88);
  border: 1px solid rgba(255, 88, 72, 0.5);
  color: #fff2ef;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: pre-line;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hover-label[hidden] {
  display: none;
}

.history-window {
  position: absolute;
  right: auto;
  bottom: auto;
  width: min(520px, calc(100vw - 40px));
  height: min(360px, 56vh);
  min-width: 320px;
  min-height: 220px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  background: rgba(6, 12, 24, 0.9);
  border: 1px solid rgba(127, 214, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  resize: both;
}

.history-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(127, 214, 255, 0.12);
  cursor: move;
}

.history-window-title {
  margin: 0;
  color: var(--viewer-accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-window-body {
  overflow: auto;
  padding: 16px;
  color: var(--viewer-text);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  user-select: text;
  cursor: text;
}

.history-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  min-height: 128px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  scrollbar-width: thin;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0), rgba(5, 10, 18, 0.92) 28%);
}

.ship-card {
  border-top: 1px solid rgba(127, 214, 255, 0.14);
  border-right: 1px solid rgba(127, 214, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(6, 12, 22, 0.98));
  padding: 10px 12px 12px;
  min-width: 208px;
  max-width: 208px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--viewer-text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ship-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 214, 255, 0.38);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.ship-card.is-selected {
  border-top-color: rgba(255, 191, 105, 0.82);
  background: linear-gradient(180deg, rgba(31, 33, 20, 0.9), rgba(20, 18, 10, 0.92));
}

.ship-card.is-followed {
  box-shadow: inset 0 0 0 1px rgba(127, 214, 255, 0.34);
}

.ship-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ship-card h3 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.ship-card p {
  margin: 2px 0 0;
  color: var(--viewer-muted);
  line-height: 1.35;
  font-size: 0.72rem;
  white-space: pre-line;
}

.ship-card-header + p {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ship-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ship-card-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(127, 214, 255, 0.12);
  color: var(--viewer-accent);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ship-card-ai {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(127, 214, 255, 0.08);
}

.ship-card-section-title {
  margin: 0;
  color: var(--viewer-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ship-card-history-button,
.history-window-copy,
.history-window-close {
  border: 1px solid rgba(127, 214, 255, 0.22);
  border-radius: 999px;
  background: rgba(127, 214, 255, 0.08);
  color: var(--viewer-text);
  font: inherit;
  cursor: pointer;
}

.ship-card-history-button {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  font-size: 0.78rem;
  line-height: 1;
}

.history-window-copy,
.history-window-close {
  padding: 8px 12px;
}

.faction-card {
  border-top-color: rgba(180, 130, 255, 0.3);
  cursor: default;
}

.faction-card:hover {
  transform: none;
  border-color: rgba(180, 130, 255, 0.5);
}

.station-card {
  border-top-color: rgba(127, 255, 180, 0.22);
}

.station-card:hover {
  border-color: rgba(127, 255, 180, 0.5);
}

.ship-card-split-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.selection-action-button {
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .ops-strip {
    width: 100vw;
  }
}

@media (max-width: 760px) {
  .ops-strip {
    width: 100vw;
    min-height: 120px;
  }
}

/* ── GM Windows ──────────────────────────────────────────────────────────── */

.gm-window {
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 27, 0.92);
  border-color: rgba(132, 196, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(127, 214, 255, 0.06) inset,
    0 32px 72px rgba(0, 0, 0, 0.52);
  color: var(--viewer-text);
  resize: both;
  min-width: 480px;
  min-height: 240px;
  overflow: hidden;
}

.gm-window-titlebar {
  background: rgba(127, 214, 255, 0.04);
  border-bottom: 1px solid rgba(132, 196, 255, 0.12);
}

.gm-window-title-badge {
  background: rgba(127, 214, 255, 0.14);
  color: var(--viewer-accent);
  font-family: "IBM Plex Mono", monospace;
}

.gm-window-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--viewer-text);
  font-family: inherit;
  cursor: pointer;
}

.gm-window-close-btn:hover {
  background: rgba(255, 80, 60, 0.18);
  border-color: rgba(255, 80, 60, 0.3);
}

.gm-toolbar {
  background: rgba(127, 214, 255, 0.03);
  border-bottom: 1px solid rgba(132, 196, 255, 0.1);
}

.gm-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--viewer-muted);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
}

.gm-tab-btn:hover {
  color: var(--viewer-text);
  background: rgba(127, 214, 255, 0.06);
}

.gm-tab-btn--active {
  background: rgba(127, 214, 255, 0.12);
  border-color: rgba(127, 214, 255, 0.22);
  color: var(--viewer-accent);
}

.gm-search-input {
  background: rgba(127, 214, 255, 0.05);
  border-color: rgba(132, 196, 255, 0.18);
  color: var(--viewer-text);
  font-family: "IBM Plex Mono", monospace;
  outline: none;
}

.gm-search-input:focus {
  border-color: rgba(127, 214, 255, 0.4);
  background: rgba(127, 214, 255, 0.08);
}

.gm-search-input::placeholder {
  color: var(--viewer-muted);
}

.gm-row-count {
  color: var(--viewer-muted);
  font-family: "IBM Plex Mono", monospace;
}

.gm-table-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 214, 255, 0.2) transparent;
}

.gm-table {
  font-family: "IBM Plex Mono", monospace;
}

.gm-th {
  background: rgba(7, 14, 27, 0.98);
  color: var(--viewer-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(132, 196, 255, 0.14);
}

.gm-th:hover {
  color: var(--viewer-text);
}

.gm-tr {
  border-bottom: 1px solid transparent;
  transition: background 80ms ease;
}

.gm-tr:nth-child(even) .gm-td {
  background: rgba(127, 214, 255, 0.025);
}

.gm-tr:hover .gm-td {
  background: rgba(127, 214, 255, 0.07);
}

.gm-tr--selected .gm-td {
  background: rgba(255, 191, 105, 0.1) !important;
  border-bottom-color: rgba(255, 191, 105, 0.14);
}

.gm-td {
  color: var(--viewer-muted);
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(132, 196, 255, 0.06);
}

.gm-td:first-child {
  color: var(--viewer-text);
  font-weight: 500;
}

.gm-badge {
  background: rgba(127, 214, 255, 0.1);
  color: var(--viewer-accent);
}

.gm-th--dragging {
  opacity: 0.35;
}

.gm-th--dragover {
  background: rgba(127, 214, 255, 0.14);
  box-shadow: inset 2px 0 0 var(--viewer-accent);
}

.gm-launcher {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gm-launcher-trigger {
  padding: 7px 24px;
  border-radius: 999px;
  background: rgba(127, 214, 255, 0.1);
  border: 1px solid rgba(127, 214, 255, 0.24);
  color: var(--viewer-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
  backdrop-filter: blur(8px);
}

.gm-launcher-trigger:hover,
.gm-launcher-trigger--open {
  background: rgba(127, 214, 255, 0.18);
  border-color: rgba(127, 214, 255, 0.4);
}

.gm-launcher-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  backdrop-filter: blur(12px);
  background: rgba(7, 14, 27, 0.88);
  border: 1px solid rgba(132, 196, 255, 0.18);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gm-launcher-item {
  padding: 6px 16px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--viewer-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
  white-space: nowrap;
}

.gm-launcher-item:hover {
  background: rgba(127, 214, 255, 0.08);
  color: var(--viewer-text);
}

.gm-launcher-item--active {
  background: rgba(127, 214, 255, 0.12);
  border-color: rgba(127, 214, 255, 0.22);
  color: var(--viewer-accent);
}

.gm-orders-trigger {
  cursor: default;
  border-bottom: 1px dashed rgba(127, 214, 255, 0.4);
}

.gm-orders-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  backdrop-filter: blur(12px);
  background: rgba(7, 14, 27, 0.95);
  border: 1px solid rgba(132, 196, 255, 0.22);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--viewer-muted);
  max-width: 560px;
}

.gm-orders-tooltip-table {
  border-collapse: collapse;
  width: 100%;
}

.gm-orders-tooltip-table th {
  color: var(--viewer-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
  padding: 2px 12px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(132, 196, 255, 0.14);
  white-space: nowrap;
}

.gm-orders-tooltip-table td {
  padding: 3px 12px;
  white-space: nowrap;
}

.gm-orders-tooltip-table tr:nth-child(even) td {
  background: rgba(127, 214, 255, 0.03);
}

/* ── GM Telemetry Window ─────────────────────────────────────────────────── */

.gm-telemetry {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--viewer-muted);
}

.gm-telemetry-error {
  background: rgba(255, 80, 60, 0.12);
  border: 1px solid rgba(255, 80, 60, 0.22);
  color: rgba(255, 160, 140, 0.9);
}

.gm-telemetry-section-title {
  color: var(--viewer-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(132, 196, 255, 0.12);
  padding-bottom: 4px;
}

.gm-telemetry-label {
  color: var(--viewer-muted);
  white-space: nowrap;
  opacity: 0.7;
}

.gm-telemetry-value {
  color: var(--viewer-text);
  font-size: 0.72rem;
}

.gm-telemetry-dim {
  color: var(--viewer-muted);
  font-size: 0.65rem;
  opacity: 0.6;
}

.gm-telemetry-bar-track {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(127, 214, 255, 0.08);
  overflow: hidden;
  min-width: 60px;
}

.gm-telemetry-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 600ms ease;
}

.gm-telemetry-bar--low {
  background: rgba(127, 214, 255, 0.6);
}

.gm-telemetry-bar--mid {
  background: rgba(255, 191, 105, 0.7);
}

.gm-telemetry-bar--high {
  background: rgba(255, 80, 60, 0.75);
}

.gm-telemetry-clients-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(127, 214, 255, 0.2);
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.gm-telemetry-clients-dot--active {
  background: rgba(100, 220, 130, 0.8);
  box-shadow: 0 0 4px rgba(100, 220, 130, 0.5);
}

.gm-telemetry-reset-btn {
  background: rgba(255, 80, 60, 0.10);
  border: 1px solid rgba(255, 80, 60, 0.28);
  color: rgba(255, 140, 120, 0.9);
  cursor: pointer;
}

.gm-telemetry-reset-btn:hover:not(:disabled) {
  background: rgba(255, 80, 60, 0.20);
  border-color: rgba(255, 80, 60, 0.50);
}

/* ── GM Settings Window ──────────────────────────────────────────────────── */

.gm-settings {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--viewer-muted);
}

.gm-settings-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 214, 255, 0.2) transparent;
}

.gm-settings-section-title {
  color: var(--viewer-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(132, 196, 255, 0.12);
  padding-bottom: 4px;
}

.gm-settings-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.gm-settings-label {
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 0;
  color: var(--viewer-muted);
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(132, 196, 255, 0.06);
  cursor: default;
}

.gm-settings-field-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(132, 196, 255, 0.06);
}

.gm-settings-input {
  background: rgba(127, 214, 255, 0.05);
  border: 1px solid rgba(132, 196, 255, 0.16);
  border-radius: 4px;
  color: var(--viewer-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  outline: none;
  padding: 3px 8px;
  width: 120px;
  transition: border-color 120ms ease, background 120ms ease;
}

.gm-settings-input:focus {
  border-color: rgba(127, 214, 255, 0.4);
  background: rgba(127, 214, 255, 0.08);
}

.gm-settings-desc {
  color: var(--viewer-muted);
  font-size: 0.62rem;
  opacity: 0.5;
}

.gm-settings-footer {
  border-top: 1px solid rgba(132, 196, 255, 0.1);
  background: rgba(127, 214, 255, 0.02);
}

.gm-settings-error {
  background: rgba(255, 80, 60, 0.12);
  border: 1px solid rgba(255, 80, 60, 0.22);
  color: rgba(255, 160, 140, 0.9);
}

.gm-settings-error-inline {
  color: rgba(255, 140, 120, 0.9);
}

.gm-settings-saved {
  color: rgba(100, 220, 130, 0.85);
}

.gm-settings-save-btn {
  padding: 5px 18px;
  border-radius: 6px;
  background: rgba(127, 214, 255, 0.12);
  border: 1px solid rgba(127, 214, 255, 0.28);
  color: var(--viewer-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.gm-settings-save-btn:hover:not(:disabled) {
  background: rgba(127, 214, 255, 0.2);
  border-color: rgba(127, 214, 255, 0.45);
}

.gm-settings-save-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.entity-browser-panel,
.entity-inspector-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--viewer-panel-border);
  background: var(--viewer-panel);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
  color: var(--viewer-text);
  padding: 1rem;
}

.entity-browser-panel__header,
.entity-inspector-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.entity-browser-panel__header h3,
.entity-inspector-panel__header h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.entity-browser-panel__header p,
.entity-inspector-panel__header p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--viewer-muted);
}

.entity-browser-panel__kicker,
.entity-inspector-panel__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(173, 220, 255, 0.72);
}

.entity-browser-panel__context {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--viewer-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.entity-browser-panel__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.entity-browser-panel__tab,
.entity-inspector-panel__action,
.entity-browser-item__focus,
.entity-browser-item__body {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.entity-browser-panel__tab,
.entity-inspector-panel__action,
.entity-browser-item__focus {
  border-radius: 999px;
}

.entity-browser-panel__tab {
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
}

.entity-browser-panel__tab:hover,
.entity-inspector-panel__action:hover,
.entity-browser-item__focus:hover,
.entity-browser-item__body:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.entity-browser-panel__tab--active {
  background: rgba(116, 196, 255, 0.14);
  border-color: rgba(116, 196, 255, 0.32);
}

.entity-browser-panel__search {
  width: 100%;
  margin-top: 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: var(--viewer-text);
  padding: 0.75rem 0.9rem;
  outline: none;
}

.entity-browser-panel__search:focus {
  border-color: rgba(173, 220, 255, 0.4);
}

.entity-browser-panel__empty,
.entity-inspector-empty {
  margin-top: 0.9rem;
  color: var(--viewer-muted);
  font-size: 0.84rem;
}

.entity-browser-panel__sections {
  margin-top: 0.9rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

.entity-browser-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.entity-browser-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(173, 220, 255, 0.64);
}

.entity-browser-table-wrap,
.entity-inspector-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.entity-browser-table,
.entity-inspector-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.entity-browser-table {
  table-layout: fixed;
}

.entity-browser-table__col--entity {
  width: 38%;
}

.entity-browser-table__col--ident {
  width: 18%;
}

.entity-browser-table__col--location {
  width: 22%;
}

.entity-browser-table__col--ai {
  width: 14%;
}

.entity-browser-table__col--hp {
  width: 8%;
}

.entity-browser-table th,
.entity-browser-table td,
.entity-inspector-table th,
.entity-inspector-table td {
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  text-align: left;
  vertical-align: middle;
}

.entity-browser-table th,
.entity-browser-table td {
  padding: 0.42rem 0.5rem;
}

.entity-browser-table thead th,
.entity-inspector-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(7, 12, 18, 0.96);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(173, 220, 255, 0.72);
}

.entity-browser-table tbody tr:last-child td,
.entity-inspector-table tbody tr:last-child td,
.entity-inspector-table tbody tr:last-child th {
  border-bottom: none;
}

.entity-browser-table__sort {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}

.entity-browser-table__row {
  cursor: pointer;
  transition: background 120ms ease;
}

.entity-browser-table__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.entity-browser-table__row--selected {
  background: rgba(116, 196, 255, 0.12);
}

.entity-browser-table__name {
  font-size: 0.78rem;
  font-weight: 600;
}

.entity-browser-table__cell--truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-browser-table__cell--ai {
  overflow: hidden;
}

.entity-browser-table__detail,
.entity-inspector-table__detail {
  color: var(--viewer-muted);
}

.entity-browser-table__action-col,
.entity-inspector-table__action-col,
.entity-inspector-table__numeric {
  text-align: right;
}

.entity-browser-table__numeric {
  text-align: right;
  white-space: nowrap;
}

.entity-browser-table__action,
.entity-inspector-panel__action {
  padding: 0.5rem 0.72rem;
  font-size: 0.72rem;
  align-self: center;
}

.entity-browser-table__action {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  border-radius: 999px;
  transition: background 120ms ease, border-color 120ms ease;
}

.entity-browser-table__action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.entity-browser-table__muted {
  color: var(--viewer-muted);
}

.entity-browser-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.entity-browser-row__toggle {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.66rem;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}

.entity-browser-row__toggle--spacer {
  visibility: hidden;
}

.entity-browser-row__kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.14rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 244, 255, 0.88);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.entity-browser-row__kind--system {
  border-color: rgba(127, 214, 255, 0.24);
  color: rgba(127, 214, 255, 0.96);
}

.entity-browser-row__kind--station {
  border-color: rgba(255, 191, 105, 0.22);
  color: rgba(255, 222, 168, 0.92);
}

.entity-browser-row__kind--fleet {
  border-color: rgba(146, 255, 200, 0.22);
  color: rgba(190, 255, 223, 0.92);
}

.entity-browser-row__kind--ship {
  border-color: rgba(255, 255, 255, 0.14);
}

.entity-browser-row__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-browser-ai {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: 100%;
  overflow: hidden;
}

.entity-browser-ai__token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  max-width: 100%;
  padding: 0.13rem 0.28rem;
  border-radius: 999px;
  background: rgba(127, 214, 255, 0.08);
  border: 1px solid rgba(127, 214, 255, 0.14);
  color: rgba(206, 233, 255, 0.84);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-inspector-panel__actions {
  display: flex;
  gap: 0.45rem;
}

.entity-inspector-panel {
  overflow: auto;
}

.entity-inspector-section {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.entity-inspector-section h4 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(173, 220, 255, 0.7);
}

.entity-inspector-table--kv th {
  width: 38%;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(173, 220, 255, 0.68);
}

.entity-inspector-table--kv td {
  font-size: 0.84rem;
  font-weight: 600;
}

.entity-inspector-table__row--subtask {
  background: rgba(255, 255, 255, 0.02);
}

.entity-inspector-table__subtask {
  padding-left: 1.45rem;
}

.entity-inspector-table__subtask::before {
  content: "↳ ";
  color: rgba(173, 220, 255, 0.58);
}

.entity-inspector-panel__fallback {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--viewer-muted);
}

.entity-inspector-panel__fallback p {
  margin: 0 0 0.7rem;
}

.entity-inspector-form {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.entity-inspector-inline-form,
.entity-inspector-actions-row,
.entity-inspector-order-actions {
  display: flex;
  gap: 0.6rem;
  align-items: end;
}

.entity-inspector-order-actions {
  align-items: center;
}

.entity-inspector-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.entity-inspector-field--grow {
  flex: 1 1 auto;
}

.entity-inspector-field span {
  font-size: 0.72rem;
  color: var(--viewer-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entity-inspector-field select,
.entity-inspector-field input {
  min-width: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: var(--viewer-text);
  padding: 0.72rem 0.85rem;
  outline: none;
}

.entity-inspector-field select:focus,
.entity-inspector-field input:focus {
  border-color: rgba(173, 220, 255, 0.4);
}

.entity-inspector-note {
  margin-top: 0.9rem;
  color: var(--viewer-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.entity-inspector-message {
  margin-top: 0.8rem;
  border-radius: 0.9rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.78rem;
}

.entity-inspector-message--ok {
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.1);
  color: #d5fff1;
}

.entity-inspector-message--error {
  border: 1px solid rgba(255, 116, 88, 0.22);
  background: rgba(255, 116, 88, 0.1);
  color: #ffd8cf;
}

.entity-inspector-order-remove {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  transition: background 120ms ease, border-color 120ms ease;
}

.entity-inspector-order-remove:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.entity-inspector-divider {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(173, 220, 255, 0.22);
}

.entity-inspector-divider span {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(173, 220, 255, 0.72);
}

.viewer-order-context-menu {
  position: fixed;
  z-index: 80;
  width: min(260px, calc(100vw - 24px));
  border: 1px solid var(--viewer-panel-border);
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(18px);
  border-radius: 1.15rem;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
  color: var(--viewer-text);
  padding: 0.9rem;
}

.viewer-order-context-menu__header h4 {
  margin: 0.2rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.viewer-order-context-menu__header p {
  margin: 0.25rem 0 0;
  color: var(--viewer-muted);
  font-size: 0.75rem;
}

.viewer-order-context-menu__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 220, 255, 0.72);
}

.viewer-order-context-menu__actions {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.viewer-order-context-menu__action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--viewer-text);
  border-radius: 0.95rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease;
}

.viewer-order-context-menu__action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.viewer-order-context-menu__action span {
  font-size: 0.82rem;
  font-weight: 600;
}

.viewer-order-context-menu__action strong {
  color: var(--viewer-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.viewer-order-context-menu__empty {
  margin-top: 0.8rem;
  color: var(--viewer-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .viewer-left-sidebar-dock {
    width: min(360px, 100vw);
  }

  .viewer-left-sidebar {
    padding: 14px;
  }

  .viewer-stats-overlay-dock {
    top: 96px;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .viewer-system-label-dock {
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .viewer-system-label__title {
    font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem);
  }

  .entity-inspector-inline-form,
  .entity-inspector-actions-row,
  .entity-inspector-order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .entity-browser-table,
  .entity-inspector-table {
    min-width: 640px;
  }
}
