/* PROXIMA // Operations hub: generator, map, campaign, table sessions */
.ops-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px;
  border: 1px solid #ffffff14;
  background: #0b0e13;
}
.ops-tab {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid transparent;
  background: none;
  color: #c9ccd3;
  font: 700 11px var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.ops-tab:hover {
  border-color: #ffffff22;
}
.ops-tab.on {
  border-color: var(--accent, #5aa8ff);
  background: color-mix(in srgb, var(--accent, #5aa8ff) 14%, transparent);
  color: #fff;
}
.ops-space {
  flex: 1;
}
.ops-bar ~ .pxe {
  height: calc(100vh - 182px);
}
.ops-bar ~ .sess-remote .pxe {
  height: calc(100vh - 220px);
}

/* table sessions */
.sess-box {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.sess-box input {
  width: 140px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--head);
}
.sess-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd38a;
  box-shadow: 0 0 8px #5fd38a;
  animation: gxw-blink 1.8s ease-in-out infinite;
}
details.sess-box {
  position: relative;
}
details.sess-box summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #5fd38a66;
  background: #5fd38a14;
  list-style: none;
}
details.sess-box summary b {
  letter-spacing: 0.15em;
  font-family: var(--head);
}
.sess-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 300px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffffff22;
  background: #0b0e13;
  box-shadow: 0 10px 30px #000a;
}
.sess-pop p {
  margin: 0;
}
.sess-code {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font: 700 30px var(--head);
  letter-spacing: 0.2em;
  color: #5fd38a;
}
.sess-members {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
}
.sess-members div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.sess-members small {
  grid-column: 1;
  color: #8d8f96;
}
.sess-members button {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.sess-err {
  color: #e0433a;
  font-size: 11px;
}
.sess-banner {
  margin: 0 0 8px;
  padding: 7px 12px;
  border: 1px solid #5fd38a55;
  background: #5fd38a12;
  font-size: 12px;
}
.sess-remote
  [data-enc]:not([data-enc='zoom']):not([data-enc='fit']):not([data-enc='select-cell']):not(
    [data-enc='left-tab']
  ),
.sess-remote .pxe-menu,
.sess-remote .pxe-seg,
.sess-remote .pxe-actions {
  display: none !important;
}
.sess-remote .pxe-scene {
  pointer-events: none;
}
.sess-shared {
  margin: 0 0 14px;
}
.sess-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.sess-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #ffffff18;
  background: #0c0f14;
}
.sess-card.me {
  border-color: #5fd38a88;
}
.sess-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.sess-card > div {
  display: grid;
  gap: 3px;
}
.sess-card small {
  color: #9a9da5;
  font-size: 10px;
}
.sess-bar {
  display: block;
  height: 5px;
  background: #ffffff12;
}
.sess-bar i {
  display: block;
  height: 100%;
}

/* encounter generator */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  align-items: start;
}
.gen-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff18;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent, #5aa8ff) 6%, transparent),
      transparent 40%
    ),
    #0c0f14;
}
.gen-card header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.gen-card h3 {
  margin: 0;
  font: 700 14px var(--head);
  letter-spacing: 0.14em;
  flex: 1;
}
.gen-step {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent, #5aa8ff);
  color: var(--accent, #5aa8ff);
  font: 700 11px var(--head);
}
.gen-tabs {
  display: flex;
  width: 100%;
}
.gen-tabs button {
  flex: 1;
  padding: 6px;
  border: 1px solid #ffffff22;
  background: none;
  color: #aaa;
  font-size: 11px;
  cursor: pointer;
}
.gen-tabs button.on {
  border-color: var(--accent, #5aa8ff);
  background: color-mix(in srgb, var(--accent, #5aa8ff) 15%, transparent);
  color: #fff;
}
.gen-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gen-form label {
  display: grid;
  gap: 3px;
  font: 700 9px var(--head);
  letter-spacing: 0.08em;
  color: #c9ccd3;
}
.gen-seed {
  display: flex;
  gap: 4px;
}
.gen-seed input {
  flex: 1;
  min-width: 0;
}
.gen-fields {
  grid-template-columns: 1fr 1fr;
}
.gen-btn {
  padding: 2px 8px;
  border: 1px solid #ffffff22;
  background: #0006;
  color: #ddd;
  cursor: pointer;
}
.gen-link {
  border: 0;
  background: none;
  color: var(--accent, #5aa8ff);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.gen-muted {
  color: #8d8f96;
  font-size: 11px;
  margin: 0;
}
.gen-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gen-prev-wrap {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.gen-prev-wrap small {
  color: #8d8f96;
  font-size: 10px;
}
.gen-preview {
  display: grid;
  gap: 1px;
  padding: 4px;
  background: #ffffff0a;
  max-width: 100%;
  overflow: hidden;
}
.gen-preview i {
  background: #ffffff10;
}
.gen-preview .gp-cover {
  background: #c9a46a;
}
.gen-preview .gp-t-wall {
  background: #d8dde4;
}
.gen-preview .gp-t-door {
  background: #7fb7ff;
}
.gen-preview .gp-ground {
  background: #ffffff10;
}
.gen-preview .gp-t-water,
.gen-preview .gp-t-ice {
  background: #2f6fa8;
}
.gen-preview .gp-t-brush,
.gen-preview .gp-t-difficult,
.gen-preview .gp-t-rubble {
  background: #4d6b3c;
}
.gen-preview .gp-t-high {
  background: #8a7fb0;
}
.gen-preview .gp-hazard {
  background: #e0433a;
}
.gen-preview .gp-objects,
.gen-preview .gp-structure {
  background: #ffd36b;
}
.gen-preview .gp-t-spawn {
  background: #5fd38a;
}
.gen-preview .gp-u-player,
.gen-preview .gp-u-ally {
  background: #5aa8ff;
  border-radius: 50%;
}
.gen-preview .gp-u-enemy {
  background: #ff5a4f;
  border-radius: 50%;
}
.gen-pick {
  display: grid;
  gap: 6px;
}
.gen-pick-list,
.gen-party {
  display: grid;
  gap: 3px;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: thin;
}
.gen-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid #ffffff10;
  background: #ffffff05;
  font-size: 12px;
}
.gen-row.bad {
  border-color: #e0433a66;
}
.gen-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.gen-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-row small {
  color: #9a9da5;
  font-size: 10px;
}
.gen-party .gen-row {
  grid-template-columns: auto 1fr;
  cursor: pointer;
}
.gen-tag {
  font: 700 9px var(--head);
  color: #ffb03b;
  min-width: 26px;
}
.gen-qty {
  display: flex;
  gap: 3px;
}
.gen-roster h4 {
  margin: 4px 0;
  font: 700 10px var(--head);
  letter-spacing: 0.12em;
}
.gen-roster {
  display: grid;
  gap: 3px;
}
.gen-diff {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #ffffff18;
  --d: #8d8f96;
  border-left: 3px solid var(--d);
}
.gen-diff span {
  font: 700 9px var(--head);
  letter-spacing: 0.12em;
  color: #9a9da5;
}
.gen-diff b {
  color: var(--d);
  font-size: 16px;
}
.gen-diff small {
  grid-column: 1 / -1;
  color: #8d8f96;
  font-size: 10px;
}
.gen-diff.d-easy {
  --d: #5fd38a;
}
.gen-diff.d-medium {
  --d: #ffd36b;
}
.gen-diff.d-hard {
  --d: #ff8a3d;
}
.gen-diff.d-deadly {
  --d: #e0433a;
}
.gen-contacts > summary {
  cursor: pointer;
  font: 700 11px var(--head);
  letter-spacing: 0.12em;
  margin: 10px 0;
}
@media (max-width: 700px) {
  .ops-bar ~ .pxe {
    height: auto;
  }
  .sess-pop {
    position: fixed;
    left: 16px;
    right: 16px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sess-dot {
    animation: none;
  }
}
.gen-form select,
.gen-form input {
  font-size: 13px;
  min-height: 34px;
}

/* Galaxy Masters (GM Database) */
.px-masters {
  margin-top: 12px;
}
.px-master-list {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
.px-master-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #ffffff14;
}
.px-master-row small {
  color: #8d8f96;
}
.px-master-key {
  display: grid;
  gap: 6px;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ffd36b88;
  background: #ffd36b12;
}
.px-master-key code {
  font-size: 15px;
  letter-spacing: 0.04em;
  user-select: all;
  word-break: break-all;
}
.px-master-key .btn {
  justify-self: start;
}
.px-master-new {
  display: flex;
  gap: 6px;
}
.px-master-new input {
  flex: 1;
}
.px-gm-badge.master span {
  color: #7fb7ff;
}
