/* REDLINE // BLACKBOOK : additions to the existing NEXSPACE/Dossier badge visuals */
.blackbook-badge-art{width:32px;height:32px;max-width:100%;max-height:100%;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 0 5px #dc43483b)}
.operator-badge-chip .blackbook-badge-art{width:25px;height:25px;display:block}
.operator-badge-mark .blackbook-badge-art,.nxspace-badge-progress-mark .blackbook-badge-art{width:32px;height:32px}
.nxspace-blackbook-section{border-color:#873c4a66!important}
.nxspace-blackbook-section header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.nxspace-blackbook-section header small{font-size:10px;color:#b69d87;letter-spacing:.1em}
.nxspace-blackbook-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px;margin-top:12px}
.nxspace-blackbook-record{border:1px solid #853f4855;border-radius:4px;background:linear-gradient(145deg,#160e18,#101118);padding:11px}
.nxspace-blackbook-record summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}
.nxspace-blackbook-record summary::-webkit-details-marker{display:none}
.nxspace-blackbook-record summary b{font-size:11px;letter-spacing:.08em;color:#f0d4c0}
.nxspace-blackbook-record summary small{display:block;margin-top:2px;color:#d37e85;font-size:9px;letter-spacing:.07em}
.nxspace-blackbook-record dl{display:grid;grid-template-columns:auto 1fr;gap:7px 10px;margin:12px 0 0;font-size:10px}
.nxspace-blackbook-record dt{color:#b19591}.nxspace-blackbook-record dd{margin:0;color:#e7d7c9;text-align:right}
.nxspace-blackbook-proof{margin-top:7px;font-size:10px;color:#d99e95;line-height:1.45}
.nxspace-blackbook-proof b{color:#ebc6a3}
@media(max-width:600px){.nxspace-blackbook-grid{grid-template-columns:1fr}}

/* 3.1.820 // Operators compact badge legibility.
   Previous compact i was 11px tall and BLACKBOOK art used max-height:100%,
   silently shrinking the 25px SVG to 11px. Restrict this fix to the Operators
   directory; the approved NEXSPACE badge rack, Dossier and other chips remain intact. */
#operators-list .operator-row-name .operator-badge-strip.compact{
  display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:6px;
  min-height:32px;max-width:100%;
}
#operators-list .operator-row .operator-badge-chip.compact{
  display:inline-grid;place-items:center;flex:none;
  width:32px;height:32px;min-width:32px;
  box-sizing:border-box;padding:2px;
  border:1px solid color-mix(in srgb,var(--line) 63%,#bba6d0 37%);
  border-radius:5px;
  background:linear-gradient(150deg,rgba(143,119,171,.10),rgba(8,5,16,.80));
  box-shadow:inset 0 0 0 1px rgba(15,9,22,.72);
}
#operators-list .operator-row .operator-badge-chip.compact.redline-distinction{
  border-color:color-mix(in srgb,#b7899d 48%,var(--line));
  background:radial-gradient(circle at 50% 45%,rgba(133,85,117,.18),rgba(8,5,16,.82));
}
#operators-list .operator-row .operator-badge-chip.compact.webmaster-distinction{
  border-color:color-mix(in srgb,#c5a565 48%,var(--line));
}
#operators-list .operator-row .operator-badge-chip.compact i{
  display:grid;place-items:center;flex:none;
  width:28px;height:28px;min-width:28px;min-height:28px;
  font-size:14px;line-height:1;
}
#operators-list .operator-row .operator-badge-chip.compact i .blackbook-badge-art,
#operators-list .operator-row .operator-badge-chip.compact i .source-webmaster-badge{
  display:block;flex:none;width:28px;height:28px;
  max-width:28px;max-height:28px;object-fit:contain;
}
#operators-list .operator-row:hover .operator-badge-chip.compact.redline-distinction,
#operators-list .operator-row:focus-visible .operator-badge-chip.compact.redline-distinction{
  border-color:#c29da7;
}
#operators-list .operator-row.offline .operator-badge-chip.compact{
  /* Existing offline row opacity still communicates presence; don't fade twice. */
  opacity:1;
}

/* NEXUS 3.1.821 // Consistent full-size public badge presentation.
   The Operators directory was fixed in 3.1.820, but the full public badge chips
   reused in the expanded Operations profile and NEXSPACE still inherited the
   original 16px <i> and an 18px WEBMASTER asset. Fix the shared renderer here;
   leave compact directory chips and the original SVG artwork untouched. */
.operator-badge-strip:not(.compact){
  align-items:center;
  row-gap:6px;
}
.operator-badge-chip:not(.compact):is(.redline-distinction,.webmaster-distinction){
  display:inline-flex;
  align-items:center;
  flex:0 1 auto;
  gap:7px;
  min-height:36px;
  max-width:100%;
  padding:3px 8px 3px 4px;
  border-radius:3px;
  background:linear-gradient(125deg,rgba(142,102,146,.13),rgba(12,5,19,.79));
  border-color:color-mix(in srgb,var(--line) 58%,#bd9cae 42%);
  box-sizing:border-box;
}
.operator-badge-chip:not(.compact).webmaster-distinction{
  border-color:color-mix(in srgb,var(--line) 58%,#bb9b53 42%);
}
.operator-badge-chip:not(.compact):is(.redline-distinction,.webmaster-distinction)>i{
  display:grid;
  place-items:center;
  flex:none;
  width:30px;
  height:30px;
  min-width:30px;
  min-height:30px;
  overflow:visible;
  line-height:1;
}
.operator-badge-chip:not(.compact):is(.redline-distinction,.webmaster-distinction)>i>img.blackbook-badge-art,
.operator-badge-chip:not(.compact):is(.redline-distinction,.webmaster-distinction)>i>img.source-webmaster-badge{
  display:block;
  flex:none;
  width:28px;
  height:28px;
  max-width:none;
  max-height:none;
  object-fit:contain;
}
.operator-badge-chip:not(.compact):is(.redline-distinction,.webmaster-distinction)>b{
  display:block;
  font-size:10px!important;
  font-weight:800;
  line-height:1.18!important;
  letter-spacing:.45px;
  overflow-wrap:normal;
}
/* These two views use the same public badge renderer; no separately sized icons. */
.operator-card-head .operator-badge-strip:not(.compact),
.nxspace-banner .operator-badge-strip:not(.compact){
  align-items:center;
  max-width:100%;
}
