/* PROXIMA // Operatives: live character compendium */
.op {
  display: grid;
  gap: 10px;
}
.op-muted {
  color: #8d8f96;
  font-size: 12px;
}
.op-me {
  margin: 0;
  font-size: 12px;
  color: #c9ccd3;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bb-live {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font: 700 10px var(--head);
  letter-spacing: 0.14em;
  color: #5fd38a;
}
.bb-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd38a;
  box-shadow: 0 0 8px #5fd38a;
  animation: gxw-blink 1.8s ease-in-out infinite;
}
.op-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.op-list {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 8px;
}
.op-filters {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 6px;
}
.op-cards {
  display: grid;
  gap: 5px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  scrollbar-width: thin;
}
.op-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #ffffff14;
  background: #0c0f14;
  color: inherit;
  cursor: pointer;
}
.op-card:hover {
  border-color: #ffffff30;
}
.op-card.on {
  border-color: var(--accent, #5aa8ff);
  background: color-mix(in srgb, var(--accent, #5aa8ff) 10%, #0c0f14);
}
.op-card .bb-face {
  width: 38px;
  height: 50px;
  object-fit: cover;
}
.op-card-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.op-card-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-card-main small {
  color: #9a9da5;
  font-size: 10px;
}
.op-hp,
.op-bar {
  display: block;
  height: 5px;
  background: #ffffff12;
  margin-top: 3px;
}
.op-hp i,
.op-bar i {
  display: block;
  height: 100%;
}
.op-card-side {
  display: grid;
  justify-items: end;
  gap: 3px;
}
.op-card-side img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.op-card-side em {
  font-size: 9px;
  font-style: normal;
  color: #ffb03b;
}
.op-card-side em.live {
  color: #5fd38a;
}
.op-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.op-empty {
  padding: 40px;
  text-align: center;
  color: #8d8f96;
  border: 1px dashed #ffffff22;
}
.op-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ffffff18;
  border-left: 3px solid var(--rk, #888);
  background: linear-gradient(90deg, color-mix(in srgb, var(--rk, #888) 12%, transparent), transparent 60%),
    #0c0f14;
}
.op-head .bb-face.big {
  width: 72px;
  height: 96px;
  object-fit: cover;
}
.op-head small {
  font: 700 9px var(--head);
  letter-spacing: 0.14em;
  color: #9a9da5;
  text-transform: uppercase;
}
.op-head h2 {
  margin: 2px 0;
  font-size: 22px;
}
.op-head h2 i {
  font-size: 14px;
  color: #aaa;
}
.op-head p {
  margin: 2px 0;
  font-size: 12px;
  color: #c9ccd3;
}
.op-rank {
  display: flex;
  gap: 6px;
  align-items: center;
}
.op-seen {
  font-size: 11px;
  color: #8d8f96;
  align-self: start;
}
.op-vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
}
.op-v,
.op-ab,
.op-box {
  border: 1px solid #ffffff14;
  background: #0c0f14;
  padding: 8px 10px;
}
.op-v span,
.op-ab span,
.op-box h4 {
  font: 700 9px var(--head);
  letter-spacing: 0.12em;
  color: #9a9da5;
  margin: 0 0 4px;
}
.op-v {
  display: grid;
}
.op-v b {
  font-size: 20px;
}
.op-v b small {
  font-size: 11px;
  color: #8d8f96;
}
.op-abs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.op-ab {
  display: grid;
  justify-items: center;
}
.op-ab b {
  font-size: 20px;
}
.op-ab small {
  color: #aaa;
}
.op-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.op-box h4 small {
  font: 400 10px var(--body, inherit);
  letter-spacing: 0;
  color: #8d8f96;
  margin-left: 6px;
}
.op-box p {
  margin: 0;
}
.op-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.op-chip {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 7px;
  font-size: 11px;
  border: 1px solid #ffffff22;
  background: #ffffff08;
}
.op-chip.bad {
  border-color: #e0433a88;
  background: #e0433a1a;
}
.op-chip.pow {
  border-color: #c9a6ff66;
  background: #c9a6ff12;
}
.op-pr {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.op-pr .para b {
  color: #5aa8ff;
}
.op-pr .rene b {
  color: #e0433a;
}
.op-facs {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  font-size: 11px;
}
.op-facs span {
  display: flex;
  justify-content: space-between;
}
.op-facs em {
  font-style: normal;
}
.op-facs em.pos {
  color: #5fd38a;
}
.op-facs em.neg {
  color: #e0433a;
}
.op-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  font-size: 9px;
  text-transform: uppercase;
  color: #9a9da5;
}
.op-stats span {
  display: grid;
}
.op-stats b {
  font-size: 15px;
  color: #eee;
}
.op-recent {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 11px;
}
.op-gm {
  border-color: #e0433a55;
  background: linear-gradient(180deg, #e0433a0f, transparent 70%), #0c0f14;
  display: grid;
  gap: 8px;
}
.op-gm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}
.op-gm-grid label {
  display: grid;
  gap: 3px;
  font: 700 9px var(--head);
  letter-spacing: 0.08em;
  color: #c9ccd3;
}
.op-gm-grid label small {
  font: 400 9px var(--body, inherit);
  color: #8d8f96;
}
.op-gm-grid .wide,
.op-cure {
  grid-column: 1 / -1;
}
.op-cure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.op-cure > span {
  font: 700 9px var(--head);
  letter-spacing: 0.08em;
}
.op-cure label {
  display: flex;
  gap: 4px;
  align-items: center;
  font: 400 11px var(--body, inherit);
}
.op-gm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.op-gm-quick button {
  font-size: 11px;
  padding: 3px 8px;
  background: #0006;
  border: 1px solid #ffffff22;
  color: #ddd;
  cursor: pointer;
}
.op-gm > .btn {
  justify-self: start;
}
.op-queue {
  display: grid;
  gap: 4px;
  font-size: 11px;
}
.op-queue div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.op-queue small {
  color: #8d8f96;
}
@media (max-width: 900px) {
  .op-layout {
    grid-template-columns: 1fr;
  }
  .op-list {
    position: static;
  }
  .op-cards {
    max-height: 260px;
  }
  .op-abs {
    grid-template-columns: repeat(3, 1fr);
  }
  .op-head {
    grid-template-columns: auto 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-live i {
    animation: none;
  }
}
