:root {
  --glass-shell: #181b2c;
  --wireframe: #85b2b7;
  --cool-slab: #27464b;
  --warm-interior: #532412;
  --cool-interior: #8cc3c8;
  --floor: #b25b26;
  --light-core: #d7965e;
  --deepest-shadow: #100e1c;
  --gold: #c8a24a;
  --teal: #4fb3a0;
  --ink: #e8efe9;
  --dim: #8fa79b;
  --line: #22403a;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--deepest-shadow);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(133, 178, 183, 0.13), transparent 38rem),
    linear-gradient(180deg, #121424 0%, var(--deepest-shadow) 38rem, #0a0b12 100%);
  font-family: var(--mono);
}

button,
a {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-200%);
  padding: 0.65rem 0.8rem;
  color: var(--deepest-shadow);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-message {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--gold);
  background: rgba(16, 14, 28, 0.96);
}

.app-shell {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.75rem);
}

.masthead,
.panel-heading,
.rail-heading,
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.masthead {
  align-items: flex-end;
  padding: 0.4rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.masthead-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.mission-control-link {
  flex: 0 0 auto;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(133, 178, 183, 0.42);
  color: var(--wireframe);
  background: rgba(39, 70, 75, 0.16);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.mission-control-link:hover,
.mission-control-link:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 179, 160, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2.15rem, 5vw, 5.4rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.kicker,
.fixture-stamp,
.aggregate,
.rail-count,
.status-chip,
.room-tag,
.geometry-pill,
.mini-pill,
.pager-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 0.35rem;
  color: var(--teal);
}

.aggregate {
  margin: 0;
  color: var(--wireframe);
}

.fixture-stamp {
  flex: 0 0 auto;
  max-width: 18rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(200, 162, 74, 0.7);
  color: var(--gold);
  text-align: right;
}

.honesty-banner {
  margin: 0.85rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gold);
  color: #f1dfad;
  background: rgba(83, 36, 18, 0.34);
  font-size: 0.78rem;
  line-height: 1.55;
}

.live-provenance {
  margin: 0 1rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(154, 231, 242, 0.18);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(14, 31, 38, 0.92), rgba(7, 17, 22, 0.86));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
}

.live-provenance-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.live-provenance-header h2,
.live-provenance-header p {
  margin: 0;
}

.source-receipt-grid,
.coverage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.source-receipt {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.source-receipt.is-stale {
  border-color: rgba(240, 228, 66, 0.55);
}

.source-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.source-receipt p {
  margin: 0.35rem 0 0;
}

.source-age,
.source-hash {
  color: var(--muted);
  font-size: 0.66rem;
}

.coverage-summary {
  margin-top: 0.65rem;
}

.coverage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.68rem;
  border-left: 2px solid var(--cyan);
  background: rgba(92, 206, 224, 0.045);
}

.coverage-item span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.jig-tool-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.jig-tool-list li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jig-tool-list code,
.inventory-table td:last-child {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.68rem;
}

.jig-tool-role {
  color: var(--cyan);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.roster-flag.missing,
.mini-pill.stale {
  color: #fff4a8;
  border-color: rgba(240, 228, 66, 0.6);
}

@media (max-width: 680px) {
  .live-provenance-header {
    align-items: start;
    flex-direction: column;
  }

  .source-receipt-grid,
  .coverage-summary {
    grid-template-columns: 1fr;
  }
}

.main-grid {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.visual-panel {
  grid-column: 2;
}

.roster-rail {
  grid-column: 1;
  grid-row: 1;
}

.visual-panel,
.roster-rail {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(16, 14, 28, 0.78);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.22);
}

.panel-heading,
.rail-heading {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 32rem;
}

.status-chip,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.42rem;
  border: 1px solid color-mix(in srgb, var(--status-color, var(--dim)) 72%, transparent);
  border-radius: 999px;
  color: var(--status-color, var(--dim));
  background: color-mix(in srgb, var(--status-color, var(--dim)) 9%, transparent);
  white-space: nowrap;
}

.mini-pill {
  --status-color: var(--gold);
  letter-spacing: 0.06em;
}

.member-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.stage-wrap {
  position: relative;
}

.stage {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  background: var(--deepest-shadow);
}

.plate-picture,
.plate-picture img,
.overlay,
.room-label-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.plate-picture img {
  object-fit: contain;
}

.overlay {
  z-index: 2;
  pointer-events: none;
}

.zone-outline {
  fill: none;
  stroke: rgba(133, 178, 183, 0.17);
  stroke-width: 5;
  stroke-dasharray: 18 18;
  vector-effect: non-scaling-stroke;
}

.exclusion-point {
  fill: transparent;
  stroke: none;
  pointer-events: none;
}

.room-hit {
  pointer-events: all;
  cursor: pointer;
  fill: rgba(79, 179, 160, 0.015);
  stroke: rgba(133, 178, 183, 0.5);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  transition: fill 140ms ease, stroke 140ms ease, filter 140ms ease;
}

.room-hit:hover,
.room-hit:focus,
.room-hit.is-current,
.room-hit[data-open="true"] {
  fill: rgba(79, 179, 160, 0.2);
  stroke: var(--light-core);
  filter: drop-shadow(0 0 13px rgba(140, 195, 200, 0.9));
  outline: none;
}

.room-label-layer {
  z-index: 3;
  pointer-events: none;
}

.room-tag-wrap {
  position: absolute;
  left: calc(var(--x) / 5504 * 100%);
  top: calc(var(--y) / 3096 * 100%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  pointer-events: none;
}

.room-staff-pips {
  display: flex;
  gap: 0.16rem;
}

.room-staff-pip,
.room-staff-pip-failed {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 38% 18%;
  box-shadow: 0 0 0 1px rgba(238, 243, 239, 0.35);
  background: #10141c;
}

.room-staff-pip-failed,
.staff-portrait-failed {
  display: grid;
  place-items: center;
  color: #f3d27a;
  background: #2a1a12;
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.staff-portrait-failed {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  font-size: 0.55rem;
}

.room-tag {
  position: absolute;
  left: calc(var(--x) / 5504 * 100%);
  top: calc(var(--y) / 3096 * 100%);
  max-width: 15rem;
  padding: 0.18rem 0.32rem;
  overflow: hidden;
  border-left: 2px solid var(--status-color, var(--wireframe));
  color: var(--ink);
  background: rgba(16, 14, 28, 0.84);
  box-shadow: 0 0 0 1px rgba(133, 178, 183, 0.18);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-tag-wrap .room-tag {
  position: static;
  left: auto;
  top: auto;
}

.room-tag[data-unmapped="true"] {
  --status-color: var(--gold);
  color: #f1dfad;
}

.room-tag[data-room="foundation"] {
  max-width: 17rem;
}

.hover-card {
  position: absolute;
  z-index: 5;
  width: min(14rem, calc(100% - 1rem));
  min-height: 4.5rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid var(--status-color, var(--wireframe));
  color: var(--ink);
  background: rgba(16, 14, 28, 0.96);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hover-card h3 {
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.hover-card p {
  margin: 0;
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.4;
}

.hover-card .card-explanation {
  margin-top: 0.45rem;
  padding-top: 0.42rem;
  border-top: 1px solid color-mix(in srgb, var(--status-color) 34%, transparent);
  color: color-mix(in srgb, var(--status-color) 76%, white);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.hover-card[data-room="garage"]::after,
.hover-card[data-room="workshop"]::after {
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--status-color), transparent);
  box-shadow: 0 0 0.65rem color-mix(in srgb, var(--status-color) 45%, transparent);
  content: "";
}

.hover-card[data-room="garage"]::after {
  right: -2.5rem;
}

.hover-card[data-room="workshop"]::after {
  left: -2.5rem;
  transform: rotate(180deg);
}

.card-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--status-color, var(--wireframe));
  font-size: 0.68rem;
}

.geometry-disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.72rem 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(24, 27, 44, 0.88);
}

.geometry-pill {
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(200, 162, 74, 0.46);
  color: #f1dfad;
}

.roster-rail {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}

.rail-count {
  color: var(--gold);
}

.rail-note {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.45;
}

.roster-list {
  max-height: calc(100vh - 12.5rem);
  overflow-y: auto;
  scrollbar-color: var(--line) transparent;
}

.roster-group-title {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  background: rgba(16, 14, 28, 0.98);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster-item {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.48rem 0.7rem;
  border-bottom: 1px solid rgba(34, 64, 58, 0.58);
  font-size: 0.68rem;
}

.roster-glyph {
  color: var(--status-color, var(--dim));
  font-size: 0.9rem;
}

.roster-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-flags {
  display: flex;
  gap: 0.25rem;
}

.roster-flag {
  padding: 0.14rem 0.25rem;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.roster-flag.demo {
  color: var(--gold);
  border-color: rgba(200, 162, 74, 0.5);
}

.drawer-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(4, 5, 10, 0.62);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: min(34rem, 94vw);
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid var(--wireframe);
  background: rgba(16, 14, 28, 0.985);
  box-shadow: -1.25rem 0 4rem rgba(0, 0, 0, 0.5);
}

.drawer-header {
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-subtitle {
  max-width: 34rem;
  margin: 0.35rem 0 0;
  color: var(--dim);
  font-size: 0.74rem;
  line-height: 1.45;
}

.icon-button,
.pager-button,
.staff-nav-button,
.staff-room-tab,
.staff-portrait-button,
.staff-detail-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--glass-shell);
  cursor: pointer;
}

.icon-button {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.45rem;
}

.icon-button:hover,
.icon-button:focus-visible,
.pager-button:hover,
.pager-button:focus-visible,
.staff-nav-button:hover,
.staff-nav-button:focus-visible,
.staff-room-tab:hover,
.staff-room-tab:focus-visible,
.staff-portrait-button:hover,
.staff-portrait-button:focus-visible,
.staff-detail-button:hover,
.staff-detail-button:focus-visible,
.staff-character-stage:focus-visible {
  border-color: var(--teal);
  outline: 2px solid rgba(79, 179, 160, 0.35);
  outline-offset: 2px;
}

.drawer-body {
  height: calc(100dvh - 8rem);
  overflow-y: auto;
  padding: 1rem;
}

.drawer-body > * {
  animation: inspector-content-in 200ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes inspector-content-in {
  from {
    opacity: 0.65;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drawer-section {
  margin-bottom: 1.25rem;
}

.drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.staff-selection {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(1rem, 2.2vw, 2rem);
  border-top: 1px solid rgba(133, 178, 183, 0.48);
  background:
    radial-gradient(circle at 54% 34%, rgba(89, 144, 213, 0.28), transparent 27rem),
    linear-gradient(145deg, rgba(39, 70, 75, 0.74), rgba(24, 27, 44, 0.94) 48%, rgba(83, 36, 18, 0.42));
  box-shadow:
    inset 0 0 0 1px rgba(140, 195, 200, 0.06),
    inset 0 1.5rem 5rem rgba(133, 178, 183, 0.08);
}

.staff-selection::before,
.staff-selection::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.staff-selection::before {
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(133, 178, 183, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 178, 183, 0.055) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.staff-selection::after {
  top: 0;
  right: 2rem;
  width: 7rem;
  height: 0.28rem;
  border-inline: 1px solid rgba(133, 178, 183, 0.48);
  background: rgba(215, 150, 94, 0.72);
  box-shadow: 0 0 1.4rem rgba(215, 150, 94, 0.55);
}

.staff-selection-header,
.staff-room-tabs,
.staff-room-count,
.staff-hero-flags,
.staff-picker {
  display: flex;
  align-items: center;
}

.staff-selection-header {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 1rem;
}

.staff-selection-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
}

.staff-selection-copy {
  max-width: 38rem;
  margin: 0.4rem 0 0;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.5;
}

.staff-room-count {
  flex: 0 0 auto;
  gap: 0.65rem;
  color: var(--gold);
  text-align: right;
}

.staff-room-count strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.staff-room-count span {
  max-width: 5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.staff-room-tabs {
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 1.1rem 0 0.7rem;
  scrollbar-width: none;
}

.staff-room-tabs::-webkit-scrollbar {
  display: none;
}

.staff-room-tab {
  position: relative;
  padding: 0.42rem 0.72rem;
  color: var(--dim);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-room-tab.is-selected {
  border-color: var(--gold);
  color: #fff2bd;
  background: linear-gradient(180deg, rgba(200, 162, 74, 0.2), rgba(83, 36, 18, 0.18));
  box-shadow: inset 0 -2px var(--gold), 0 0.45rem 1.2rem rgba(0, 0, 0, 0.24);
}

.staff-room-tab.is-selected::before {
  margin-right: 0.38rem;
  color: var(--gold);
  content: "◆";
}

.staff-character-stage {
  position: relative;
  z-index: 1;
  min-height: 31rem;
  overflow: clip;
  border: 1px solid rgba(133, 178, 183, 0.42);
  background:
    radial-gradient(ellipse at 50% 112%, rgba(4, 5, 10, 0.92), transparent 53%),
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--status-color) 23%, transparent), transparent 19rem),
    linear-gradient(135deg, rgba(15, 25, 40, 0.74), rgba(16, 14, 28, 0.92));
  box-shadow:
    inset 0 1px rgba(232, 239, 233, 0.09),
    inset 0 0 4rem rgba(133, 178, 183, 0.07),
    0 1.4rem 3rem rgba(0, 0, 0, 0.28);
}

.staff-character-stage::before,
.staff-character-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.staff-stage-texture {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(232, 239, 233, 0.09) 0.45px, transparent 0.75px),
    radial-gradient(rgba(79, 179, 160, 0.06) 0.5px, transparent 0.85px);
  background-position: 0 0, 3px 4px;
  background-size: 6px 6px, 9px 9px;
  mask-image: radial-gradient(ellipse at center, black, transparent 82%);
  pointer-events: none;
}

.staff-stage-texture::before,
.staff-stage-texture::after {
  position: absolute;
  content: "";
}

.staff-stage-texture::before {
  right: 16%;
  bottom: 5.8rem;
  left: 16%;
  height: 9rem;
  transform: perspective(18rem) rotateX(63deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(133, 178, 183, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 178, 183, 0.2) 1px, transparent 1px);
  background-size: 1.5rem 1.2rem;
  mask-image: linear-gradient(to top, black, transparent 92%);
}

.staff-stage-texture::after {
  top: 8%;
  bottom: 20%;
  left: 50%;
  width: min(24rem, 44%);
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--status-color) 18%, transparent), transparent);
  filter: blur(1.2rem);
}

.staff-character-stage::before {
  inset: 1rem;
  border: 1px solid rgba(133, 178, 183, 0.14);
  clip-path: polygon(0 0, 42% 0, 45% 1px, 100% 1px, 100% 100%, 62% 100%, 59% calc(100% - 1px), 0 calc(100% - 1px));
}

.staff-character-stage::after {
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(to top, rgba(10, 11, 18, 0.98), transparent);
}

.staff-name-watermark {
  position: absolute;
  z-index: 0;
  top: 5.2rem;
  left: 50%;
  width: 92%;
  transform: translateX(-50%);
  overflow: hidden;
  color: rgba(232, 239, 233, 0.05);
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 6.8rem);
  letter-spacing: 0.08em;
  line-height: 0.78;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(9rem, 0.78fr) minmax(13rem, 1.25fr) minmax(12rem, 1fr);
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: center;
  min-height: 23rem;
  padding: 2rem clamp(1rem, 3vw, 2.5rem) 0;
  animation: staff-reveal 210ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.staff-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(133, 178, 183, 0.25);
  background: linear-gradient(145deg, rgba(39, 70, 75, 0.26), rgba(16, 14, 28, 0.62));
  box-shadow:
    inset 0 1px rgba(232, 239, 233, 0.05),
    0 0.8rem 1.8rem rgba(0, 0, 0, 0.2);
}

.staff-metric {
  min-width: 0;
  padding: 0.45rem 0.1rem 0.35rem;
  border-top: 1px solid rgba(133, 178, 183, 0.2);
}

.staff-metric-label,
.staff-metric-value {
  margin: 0;
}

.staff-metric-label {
  min-height: 1.2rem;
  color: var(--dim);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.staff-metric-value {
  color: color-mix(in srgb, var(--status-color, var(--light-core)) 58%, var(--ink));
  font-family: var(--serif);
  font-size: 1.3rem;
}

.staff-technical {
  position: relative;
  z-index: 2;
  align-self: center;
}

.staff-technical-label {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.staff-index {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.7rem;
  margin-bottom: 0.8rem;
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  color: var(--deepest-shadow);
  background: color-mix(in srgb, var(--status-color) 72%, var(--ink));
  font-family: var(--serif);
  font-size: 1.6rem;
}

.staff-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 20rem;
}

.staff-figure-halo {
  position: absolute;
  width: min(21rem, 90%);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--status-color) 54%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--status-color) 19%, transparent), transparent 62%),
    conic-gradient(from 20deg, transparent, rgba(133, 178, 183, 0.12), transparent 38%);
  box-shadow:
    inset 0 0 2.5rem color-mix(in srgb, var(--status-color) 10%, transparent),
    0 0 3rem color-mix(in srgb, var(--status-color) 14%, transparent);
}

.staff-orbit-ring {
  position: absolute;
  z-index: 1;
  width: min(18rem, 84%);
  height: min(7.5rem, 38%);
  border: 1px solid color-mix(in srgb, var(--status-color) 36%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.staff-orbit-ring-one {
  transform: rotate(-17deg);
}

.staff-orbit-ring-two {
  transform: rotate(24deg) scale(0.82);
  border-style: dashed;
  opacity: 0.62;
}

.staff-figure-crest {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(8rem, 15vw, 11.5rem);
  height: clamp(12rem, 21vw, 16rem);
  clip-path: polygon(50% 0, 88% 13%, 100% 68%, 76% 100%, 24% 100%, 0 68%, 12% 13%);
  border: 1px solid var(--status-color);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 27%, color-mix(in srgb, var(--status-color) 55%, var(--ink)) 0 15%, transparent 16%),
    radial-gradient(ellipse at 50% 82%, color-mix(in srgb, var(--status-color) 38%, #101322) 0 38%, transparent 39%),
    linear-gradient(160deg, color-mix(in srgb, var(--status-color) 36%, #1b263d), #10101d 70%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 239, 233, 0.15),
    inset 1.5rem 0 2.2rem rgba(232, 239, 233, 0.035),
    inset -1.5rem 0 2.2rem rgba(4, 5, 10, 0.26),
    0 1.9rem 3.2rem rgba(0, 0, 0, 0.58);
}

.staff-figure-crest::before {
  position: absolute;
  inset: 35% 14% 10%;
  border-top: 1px solid rgba(232, 239, 233, 0.18);
  border-right: 1px solid rgba(232, 239, 233, 0.08);
  border-left: 1px solid rgba(232, 239, 233, 0.08);
  background:
    linear-gradient(70deg, transparent 47%, rgba(232, 239, 233, 0.11) 48% 50%, transparent 51%),
    linear-gradient(-70deg, transparent 47%, rgba(232, 239, 233, 0.09) 48% 50%, transparent 51%);
  content: "";
}

.staff-figure-monogram {
  position: relative;
  z-index: 2;
  padding-top: 2.8rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  text-shadow: 0 0 1.2rem color-mix(in srgb, var(--status-color) 72%, transparent);
}

.staff-figure-sigil {
  position: absolute;
  z-index: 3;
  right: 18%;
  bottom: 16%;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid var(--gold);
  background: rgba(16, 14, 28, 0.72);
  box-shadow: 0 0 0.8rem rgba(200, 162, 74, 0.28);
}

.staff-figure-crest[data-variant="1"] .staff-figure-sigil,
.staff-portrait-button[data-variant="1"] .staff-portrait-sigil {
  transform: rotate(45deg);
}

.staff-figure-crest[data-variant="2"] .staff-figure-sigil,
.staff-portrait-button[data-variant="2"] .staff-portrait-sigil {
  border-radius: 50%;
}

.staff-figure-crest[data-variant="3"] .staff-figure-sigil,
.staff-portrait-button[data-variant="3"] .staff-portrait-sigil {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.staff-figure-crest[data-variant="4"] .staff-figure-sigil,
.staff-portrait-button[data-variant="4"] .staff-portrait-sigil {
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.staff-figure-crest[data-variant="5"] .staff-figure-sigil,
.staff-portrait-button[data-variant="5"] .staff-portrait-sigil {
  transform: rotate(22.5deg);
  border-style: double;
}

.staff-figure-stand {
  position: absolute;
  z-index: 1;
  bottom: 0.5rem;
  width: 78%;
  height: 1rem;
  border: 1px solid rgba(133, 178, 183, 0.34);
  border-radius: 50%;
  background: color-mix(in srgb, var(--status-color) 25%, transparent);
  box-shadow:
    0 0 2.6rem color-mix(in srgb, var(--status-color) 45%, transparent),
    0 1.2rem 2.4rem rgba(0, 0, 0, 0.7);
}

.staff-identity {
  position: relative;
  z-index: 2;
  align-self: center;
}

.staff-identity-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.staff-identity-top .staff-room-label {
  margin: 0;
}

.staff-identity-top .status-chip {
  font-size: 0.54rem;
}

.staff-room-label {
  margin-bottom: 0.4rem;
  color: var(--teal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.staff-hero-name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.3rem);
  hyphens: none;
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: normal;
}

.staff-hero-name.is-compact {
  font-size: clamp(1.55rem, 2.5vw, 3rem);
  line-height: 0.94;
}

.staff-duty-copy {
  max-width: 24rem;
  margin: 1rem 0;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.6;
}

.staff-hero-flags {
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.staff-detail-button {
  min-height: 2.75rem;
  padding: 0.62rem 0.85rem;
  border-color: color-mix(in srgb, var(--status-color) 62%, var(--line));
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.staff-picker {
  position: relative;
  z-index: 4;
  justify-content: center;
  gap: 0.65rem;
  min-height: 7rem;
  margin: 0 clamp(0.7rem, 2vw, 1.5rem);
  padding: 1.35rem 1rem 0.5rem;
  border-top: 1px solid rgba(133, 178, 183, 0.28);
  background: linear-gradient(180deg, rgba(39, 70, 75, 0.18), rgba(10, 11, 18, 0.5));
  box-shadow:
    inset 0 1px rgba(232, 239, 233, 0.04),
    inset 0 1.1rem 2.5rem rgba(133, 178, 183, 0.04);
}

.staff-picker::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(22rem, 58%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--status-color), transparent);
  box-shadow: 0 0 0.9rem color-mix(in srgb, var(--status-color) 36%, transparent);
  content: "";
}

.staff-nav-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.staff-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.staff-portrait-rail {
  display: flex;
  gap: clamp(0.32rem, 1.1vw, 0.7rem);
  align-items: flex-end;
  max-width: calc(100% - 7rem);
  overflow-x: auto;
  padding: 1rem 0.35rem 0.45rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
}

.staff-portrait-button {
  flex: 0 0 clamp(3.35rem, 5.5vw, 4.3rem);
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--dim);
  background: transparent;
  scroll-snap-align: center;
  text-align: center;
  transition: transform 160ms ease, color 160ms ease;
}

.staff-portrait-button.is-selected {
  transform: translateY(-0.7rem) scale(1.08);
  color: var(--ink);
}

.staff-portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.9rem, 4.8vw, 3.75rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid color-mix(in srgb, var(--status-color) 76%, var(--ink));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--status-color) 55%, var(--ink)) 0 18%, transparent 19%),
    linear-gradient(145deg, color-mix(in srgb, var(--status-color) 32%, #25304a), #11111d 70%);
  box-shadow: 0 0 1rem color-mix(in srgb, var(--status-color) 18%, transparent);
}

.staff-portrait-button.is-selected .staff-portrait-frame {
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(200, 162, 74, 0.26),
    inset 0 0 0 2px color-mix(in srgb, var(--status-color) 72%, transparent),
    0 0 1.5rem rgba(200, 162, 74, 0.28);
}

.staff-portrait-button.is-selected .staff-portrait-frame::before {
  position: absolute;
  top: -0.9rem;
  width: 0.48rem;
  height: 0.48rem;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}

.staff-portrait-monogram {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.4vw, 1.15rem);
  font-weight: 700;
}

.staff-portrait-sigil {
  position: absolute;
  right: 14%;
  bottom: 14%;
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid var(--gold);
  background: rgba(16, 14, 28, 0.82);
}

.staff-portrait-status {
  position: absolute;
  z-index: 3;
  top: -0.18rem;
  right: -0.12rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--deepest-shadow);
  border-radius: 50%;
  color: var(--status-color);
  background: #10111c;
  font-size: 0.52rem;
  line-height: 1;
}

.staff-portrait-name {
  display: block;
  margin-top: 0.45rem;
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-selection-status {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 0 1rem 0.85rem;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.staff-selection-loading {
  margin: 0;
  color: var(--dim);
  font-size: 0.7rem;
}

@keyframes staff-reveal {
  from {
    transform: translateY(0.35rem);
    opacity: 0.72;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.full-member-table > .drawer-section-title {
  margin-bottom: 0.35rem;
}

.member-table,
.seed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.67rem;
}

.member-table th,
.member-table td,
.seed-table th,
.seed-table td {
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.member-table th,
.seed-table th {
  color: var(--dim);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jig-grid,
.system-grid,
.bucket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.jig-card,
.system-card,
.bucket-card {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(24, 27, 44, 0.7);
}

.jig-card p,
.system-card p,
.bucket-card p {
  margin-bottom: 0;
  color: var(--dim);
  font-size: 0.66rem;
  line-height: 1.45;
}

.bucket-number {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--status-color, var(--ink));
  font-family: var(--serif);
  font-size: 2.2rem;
}

.proportion-bar {
  display: flex;
  height: 0.8rem;
  margin: 0.7rem 0 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--glass-shell);
}

.proportion-segment {
  width: var(--share);
  min-width: 2px;
  background: var(--status-color);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.pager-button {
  padding: 0.42rem 0.6rem;
  font-size: 0.65rem;
}

.binding-note {
  padding: 0.65rem;
  border-left: 2px solid var(--gold);
  color: #f1dfad;
  background: rgba(83, 36, 18, 0.28);
  font-size: 0.68rem;
  line-height: 1.45;
}

.foundation-explanation {
  margin-bottom: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(201, 95, 51, 0.42);
  border-left: 3px solid #c95f33;
  background:
    linear-gradient(110deg, rgba(83, 36, 18, 0.42), rgba(16, 14, 28, 0.74)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.018) 8px 9px);
  box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.045);
}

.foundation-explanation strong {
  color: #f3bd91;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.foundation-explanation p {
  margin: 0.35rem 0 0;
  color: #c8d3ce;
  font-size: 0.72rem;
  line-height: 1.45;
}

.foundation-explanation .foundation-unmeasured-list {
  color: #f0a16f;
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel,
  .roster-rail {
    grid-column: 1;
  }

  .visual-panel {
    grid-row: 1;
  }

  .roster-rail {
    grid-row: 2;
  }

  .roster-rail {
    position: static;
    max-height: none;
  }

  .roster-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .roster-group {
    min-width: 0;
    border-right: 1px solid var(--line);
  }

  .roster-group-title {
    position: static;
  }
}

@media (max-width: 899px) {
  .app-shell {
    padding: 0.65rem;
  }

  .masthead {
    align-items: flex-start;
  }

  .fixture-stamp {
    max-width: 10rem;
  }

  .panel-heading {
    display: block;
  }

  .status-legend {
    justify-content: flex-start;
    margin-top: 0.65rem;
  }

  .staff-selection {
    padding: 1rem;
  }

  .staff-showcase {
    grid-template-columns: minmax(8rem, 0.72fr) minmax(12rem, 1.1fr) minmax(11rem, 0.92fr);
    gap: 0.8rem;
    padding-inline: 1rem;
  }

  .staff-hero-name {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
  }

  .room-tag {
    max-width: 6.4rem;
    padding: 0.15rem 0.25rem;
    font-size: 0.5rem;
  }

  .drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(76dvh, 46rem);
    border-top: 1px solid var(--wireframe);
    border-left: 0;
    box-shadow: 0 -1.25rem 4rem rgba(0, 0, 0, 0.5);
  }

  .drawer-body {
    height: calc(min(76dvh, 46rem) - 7.5rem);
  }
}

@media (max-width: 599px) {
  .masthead {
    display: block;
  }

  .fixture-stamp {
    display: inline-block;
    max-width: none;
    margin-top: 0.75rem;
    text-align: left;
  }

  .panel-heading {
    padding: 0.7rem;
  }

  .status-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-chip {
    justify-content: center;
    font-size: 0.56rem;
  }

  .staff-selection {
    padding: 0.8rem;
  }

  .staff-selection-header {
    align-items: flex-start;
  }

  .staff-selection-copy {
    max-width: 15rem;
  }

  .staff-room-count {
    display: block;
  }

  .staff-room-count strong,
  .staff-room-count span {
    display: block;
  }

  .staff-room-count strong {
    font-size: 1.8rem;
  }

  .staff-room-count span {
    margin-top: 0.18rem;
    font-size: 0.48rem;
  }

  .staff-room-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .staff-room-tab {
    flex: 0 0 auto;
    min-height: 2.75rem;
  }

  .staff-character-stage {
    min-height: 39rem;
  }

  .staff-name-watermark {
    top: 3rem;
    font-size: 3.2rem;
  }

  .staff-showcase {
    grid-template-areas:
      "figure figure"
      "identity identity"
      "technical technical";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    min-height: 30rem;
    padding: 1rem 1rem 0;
  }

  .staff-technical {
    grid-area: technical;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 0.8rem;
    align-items: center;
  }

  .staff-technical .staff-index,
  .staff-technical .staff-technical-label {
    margin-bottom: 0;
  }

  .staff-technical .staff-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-metric-label {
    min-height: 1.35rem;
    font-size: 0.625rem;
  }

  .staff-figure {
    grid-area: figure;
    min-height: 12rem;
  }

  .staff-figure-halo {
    width: 13rem;
  }

  .staff-figure-crest {
    width: 6.7rem;
    height: 9.5rem;
  }

  .staff-identity {
    grid-area: identity;
    text-align: center;
  }

  .staff-identity-top {
    justify-content: center;
  }

  .staff-hero-name {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .staff-hero-name.is-compact {
    font-size: clamp(1.55rem, 7.5vw, 2.25rem);
  }

  .staff-duty-copy {
    margin-block: 0.7rem;
    margin-inline: auto;
  }

  .staff-hero-flags {
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  .staff-picker {
    gap: 0.35rem;
    padding-inline: 0.45rem;
  }

  .staff-nav-button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .staff-portrait-rail {
    max-width: calc(100% - 5rem);
    padding-inline: calc(50% - 1.7rem);
    scroll-padding-inline: 50%;
  }

  .staff-portrait-name {
    display: none;
  }

  .stage-wrap {
    padding-bottom: 5.4rem;
  }

  .hover-card {
    top: calc(100% + 0.45rem) !important;
    right: 0.45rem !important;
    left: 0.45rem !important;
    width: auto;
  }

  .geometry-disclosure {
    padding: 0.55rem;
  }

  .room-tag {
    display: none;
  }

  .roster-list {
    grid-template-columns: 1fr;
  }

  .jig-grid,
  .system-grid,
  .bucket-grid {
    grid-template-columns: 1fr;
  }

  .member-table,
  .seed-table {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Staff spotlight v2: authored subject first, interface second. */
.staff-selection {
  --room-key: #73cde0;
  --room-rim: #d4aa64;
  --room-wash: #183645;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(1rem, 2.2vw, 2rem);
  border-top: 1px solid color-mix(in srgb, var(--room-key) 46%, transparent);
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--room-wash) 54%, #0c1118), #0a0d14 48%, #100f17),
    #0a0d14;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 5rem color-mix(in srgb, var(--room-wash) 16%, transparent);
}

.staff-selection::before {
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--room-key) 12%, transparent), transparent 24rem),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  opacity: 0.7;
}

.staff-selection::after {
  top: 0;
  right: clamp(1rem, 3vw, 3rem);
  width: clamp(5rem, 11vw, 9rem);
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--room-rim));
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--room-rim) 32%, transparent);
}

.staff-selection-header,
.staff-room-tabs {
  position: relative;
  z-index: 8;
}

.staff-selection-title {
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 0.94;
}

.staff-selection-copy {
  max-width: 42rem;
  color: color-mix(in srgb, var(--dim) 88%, white);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
}

.staff-room-count strong {
  color: var(--room-rim);
  text-shadow: 0 0 1.4rem color-mix(in srgb, var(--room-rim) 26%, transparent);
}

.staff-room-tab {
  min-height: 2.4rem;
  border-color: rgba(143, 167, 155, 0.16);
  background: rgba(7, 11, 16, 0.34);
  color: #9fb4ad;
  font-size: 0.64rem;
}

.staff-room-tab.is-selected {
  border-color: color-mix(in srgb, var(--room-rim) 72%, white 12%);
  color: #fff3c9;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--room-rim) 20%, transparent), rgba(7, 11, 16, 0.5));
  box-shadow:
    inset 0 -2px var(--room-rim),
    0 0.6rem 1.5rem rgba(0, 0, 0, 0.18);
}

.staff-room-tab.is-selected::before {
  color: var(--room-rim);
  content: "▰";
}

.staff-character-stage {
  position: relative;
  z-index: 1;
  min-height: 36rem;
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--room-key) 24%, #5e6e72);
  border-radius: 0.35rem;
  background: #080c12;
  box-shadow:
    0 2.4rem 5.5rem rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.staff-character-stage::before {
  z-index: 9;
  inset: 0 0 auto;
  height: 1px;
  border: 0;
  clip-path: none;
  background: linear-gradient(90deg, transparent 4%, color-mix(in srgb, var(--room-key) 55%, white), transparent 72%);
  opacity: 0.85;
}

.staff-character-stage::after {
  display: none;
}

.staff-scene {
  position: relative;
  z-index: 1;
  height: 27rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 34%, color-mix(in srgb, var(--room-key) 18%, transparent), transparent 17rem),
    linear-gradient(115deg, color-mix(in srgb, var(--room-wash) 58%, #090d13), #070a0f 76%);
}

.staff-hero-art,
.staff-editorial-backplate,
.staff-scene-atmosphere,
.staff-scene-grade,
.staff-scene-foreground {
  position: absolute;
  inset: 0;
}

.staff-hero-art {
  z-index: 0;
  right: auto;
  width: 51%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  filter: saturate(0.88) contrast(1.04) brightness(0.94);
  mask-image: linear-gradient(90deg, #000 0 82%, transparent 100%);
  animation: staff-art-reveal 260ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.staff-hero-art.staff-vector-art {
  width: 54%;
  overflow: visible;
  object-fit: contain;
  object-position: 38% 50%;
  filter: saturate(0.94) contrast(1.04) drop-shadow(0 1.8rem 2.1rem rgba(0, 0, 0, 0.48));
  mask-image: linear-gradient(90deg, #000 0 84%, transparent 100%);
}

.staff-editorial-backplate {
  z-index: 0;
  inset: -10%;
  background-position: var(--backplate-position, 50% 50%);
  background-repeat: no-repeat;
  background-size: 150%;
  filter: saturate(0.68) contrast(1.08) brightness(0.52);
  transform: scale(1.03);
  animation: staff-art-reveal 260ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.staff-scene-atmosphere {
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 84%, color-mix(in srgb, var(--room-rim) 17%, transparent), transparent 24%),
    radial-gradient(ellipse at 20% 42%, color-mix(in srgb, var(--room-key) 18%, transparent), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.staff-scene-grade {
  z-index: 2;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(7, 10, 15, 0.22) 46%, rgba(7, 10, 15, 0.93) 76%, rgba(7, 10, 15, 0.98)),
    linear-gradient(0deg, rgba(5, 8, 12, 0.8), transparent 38%),
    linear-gradient(180deg, rgba(3, 6, 10, 0.18), transparent 24%);
}

.staff-scene-foreground {
  z-index: 3;
  right: -4%;
  left: auto;
  width: 49%;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 7% 64%);
  border-left: 1px solid color-mix(in srgb, var(--room-key) 24%, transparent);
  background:
    linear-gradient(107deg, rgba(255, 255, 255, 0.025), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--room-wash) 11%, transparent), rgba(6, 10, 15, 0.35));
  box-shadow:
    inset 1px 0 rgba(255, 255, 255, 0.035),
    -1.2rem 0 3.5rem rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(1.5px);
}

.staff-editorial-mark {
  position: absolute;
  z-index: 2;
  top: 2.5rem;
  left: clamp(1.2rem, 4vw, 3.2rem);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: rgba(232, 239, 233, 0.78);
  font-family: var(--serif);
  text-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.7);
}

.staff-editorial-room {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  letter-spacing: -0.055em;
}

.staff-editorial-number {
  color: var(--room-rim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.staff-showcase {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  min-height: 0;
  height: 27rem;
  padding: 0;
  animation: staff-reveal 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  pointer-events: none;
}

.staff-showcase > * {
  pointer-events: auto;
}

.staff-identity {
  position: absolute;
  z-index: 5;
  top: 2.4rem;
  right: clamp(1.25rem, 4vw, 3.5rem);
  width: min(42%, 27rem);
  padding-left: clamp(0.8rem, 1.7vw, 1.3rem);
  text-align: left;
}

.staff-identity::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--room-rim), color-mix(in srgb, var(--room-key) 62%, transparent), transparent);
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--room-rim) 26%, transparent);
  content: "";
}

.staff-visual-mode,
.staff-material-note {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.staff-visual-mode {
  margin: 0 0 0.75rem;
  color: var(--room-rim);
  font-size: 0.62rem;
}

.staff-identity-top {
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.staff-identity-top .staff-room-label {
  color: color-mix(in srgb, var(--room-key) 78%, white);
  font-size: 0.66rem;
}

.staff-identity-top .status-chip {
  border-color: color-mix(in srgb, var(--status-color) 50%, transparent);
  background: rgba(5, 9, 14, 0.62);
  font-size: 0.58rem;
}

.staff-hero-name {
  max-width: 100%;
  margin: 0;
  color: #f1f5f1;
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 0.7rem 2.2rem rgba(0, 0, 0, 0.68);
}

.staff-hero-name.is-compact {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 0.92;
}

.staff-duty-copy {
  max-width: 26rem;
  margin: 1rem 0 0.75rem;
  color: #b4c3be;
  font-family: var(--serif);
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  line-height: 1.45;
}

.staff-material-note {
  margin: 0 0 1rem;
  color: rgba(184, 203, 197, 0.68);
  font-size: 0.56rem;
  line-height: 1.45;
}

.staff-regalia {
  max-width: 27rem;
  margin: 0 0 0.72rem;
  padding: 0.58rem 0.68rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--room-rim) 28%, rgba(255, 255, 255, 0.07));
  border-left: 2px solid var(--room-rim);
  background: linear-gradient(100deg, rgba(6, 10, 15, 0.72), rgba(6, 10, 15, 0.28));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.staff-regalia-kicker,
.staff-regalia-lineage,
.staff-regalia-kit {
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.staff-regalia-kicker {
  color: var(--room-rim);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.staff-regalia-lineage {
  margin-top: 0.2rem;
  color: #e2ebe7;
  font-size: 0.59rem;
  letter-spacing: 0.075em;
  line-height: 1.35;
}

.staff-regalia-kit {
  margin-top: 0.24rem;
  color: #91a8a1;
  font-size: 0.48rem;
  letter-spacing: 0.055em;
  line-height: 1.45;
}

.staff-hero-flags {
  margin-bottom: 1rem;
}

.staff-detail-button {
  min-height: 2.75rem;
  border-color: color-mix(in srgb, var(--room-key) 58%, #546268);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--room-wash) 34%, rgba(8, 13, 18, 0.78)), rgba(5, 9, 14, 0.82));
  box-shadow:
    0 0.9rem 2rem rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.staff-technical {
  position: relative;
  z-index: 5;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  width: 100%;
  padding: 0.72rem clamp(1rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--room-key) 23%, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(120deg, rgba(11, 18, 24, 0.82), rgba(7, 11, 17, 0.64));
  box-shadow:
    0 1.2rem 2.8rem rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(9px);
}

.staff-technical-header {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0;
}

.staff-index {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.2rem 0.45rem;
  clip-path: none;
  border-left: 2px solid var(--room-rim);
  color: var(--room-rim);
  background: rgba(6, 10, 15, 0.5);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.2;
}

.staff-technical-label {
  margin: 0;
  color: color-mix(in srgb, var(--room-key) 72%, white);
  font-size: 0.62rem;
}

.staff-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.staff-metric {
  padding: 0.35rem 0.5rem 0.2rem;
  border-top: 1px solid rgba(143, 167, 155, 0.18);
  border-left: 1px solid rgba(143, 167, 155, 0.12);
}

.staff-metric:first-child {
  border-left: 0;
}

.staff-metric-label {
  min-height: 1.55rem;
  color: #9bb0aa;
  font-size: 0.58rem;
  line-height: 1.3;
}

.staff-metric-value {
  color: #eff5f1;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.staff-picker {
  position: relative;
  z-index: 7;
  overflow: hidden;
  min-height: 7rem;
  margin: 0;
  padding: 1.3rem clamp(0.75rem, 2vw, 1.5rem) 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--room-key) 22%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--room-wash) 19%, #090d13), #070a0f 72%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1.4rem 3rem rgba(0, 0, 0, 0.16);
}

.staff-picker::before {
  width: min(25rem, 52%);
  background: linear-gradient(90deg, transparent, var(--room-rim), transparent);
  box-shadow: 0 0 1rem color-mix(in srgb, var(--room-rim) 26%, transparent);
}

.staff-nav-button {
  border-color: color-mix(in srgb, var(--room-key) 28%, transparent);
  color: color-mix(in srgb, var(--room-key) 78%, white);
  background: rgba(8, 13, 19, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.staff-portrait-rail {
  gap: clamp(0.45rem, 1vw, 0.8rem);
  align-items: flex-end;
}

.staff-portrait-button {
  flex-basis: clamp(3.65rem, 5.8vw, 4.65rem);
  color: #9fb0aa;
}

.staff-portrait-button.is-selected {
  transform: translateY(-0.5rem);
  color: #f0f4f1;
}

.staff-portrait-frame {
  width: clamp(3.15rem, 5vw, 4rem);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--status-color) 54%, #66767a);
  background: #0a0f15;
  box-shadow:
    0 0.8rem 1.5rem rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.staff-portrait-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  object-fit: cover;
  object-position: 38% 24%;
  filter: saturate(0.82) contrast(1.05) brightness(0.88);
}

.staff-portrait-vector {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  filter: saturate(0.9) contrast(1.06) brightness(0.94);
}

.staff-portrait-button[data-visual-mode="architectural"] .staff-portrait-image {
  object-position: var(--backplate-position, 50% 50%);
  filter: saturate(0.62) contrast(1.1) brightness(0.52);
}

.staff-portrait-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #eef3ef;
  background: radial-gradient(circle, transparent, rgba(4, 7, 11, 0.45));
  font-family: var(--serif);
  font-size: 1rem;
  text-shadow: 0 0.4rem 0.8rem #000;
}

.staff-portrait-button.is-selected .staff-portrait-frame {
  border-color: var(--room-rim);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--room-rim) 30%, transparent),
    0 1.1rem 2rem rgba(0, 0, 0, 0.42),
    0 0 1.6rem color-mix(in srgb, var(--room-rim) 17%, transparent);
}

.staff-portrait-button.is-selected .staff-portrait-frame::before {
  top: -0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--room-rim);
  box-shadow: 0 0 0.8rem color-mix(in srgb, var(--room-rim) 48%, transparent);
}

.staff-portrait-status {
  top: -0.12rem;
  right: -0.12rem;
  width: 1.05rem;
  height: 1.05rem;
  border-color: #080c12;
  background: #0b1017;
}

.staff-portrait-name {
  margin-top: 0.5rem;
  font-size: 0.64rem;
  line-height: 1.25;
}

.staff-selection-status {
  color: var(--room-rim);
  background: #070a0f;
  font-size: 0.61rem;
}

.staff-selection[data-visual-mode="architectural"] .staff-identity {
  width: min(45%, 29rem);
}

@keyframes staff-art-reveal {
  from {
    transform: scale(1.018);
    opacity: 0.72;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 899px) {
  .staff-selection {
    padding: 1rem;
  }

  .staff-character-stage {
    min-height: 38rem;
  }

  .staff-scene,
  .staff-showcase {
    height: 29rem;
  }

  .staff-showcase {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .staff-identity {
    top: 2.5rem;
    right: 1.25rem;
    width: 44%;
  }

  .staff-technical {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
  }

  .staff-hero-name {
    font-size: clamp(2.2rem, 5.8vw, 3.5rem);
  }

  .staff-hero-name.is-compact {
    font-size: clamp(1.5rem, 3.7vw, 2.45rem);
  }
}

@media (max-width: 599px) {
  .staff-selection {
    padding: 0.8rem;
  }

  .staff-selection-copy {
    max-width: 16rem;
    font-size: 0.68rem;
  }

  .staff-character-stage {
    min-height: 50rem;
  }

  .staff-scene,
  .staff-showcase {
    height: 42rem;
  }

  .staff-hero-art {
    right: 0;
    width: 100%;
    object-position: 39% 24%;
    mask-image: none;
  }

  .staff-hero-art.staff-vector-art {
    right: 0;
    width: 100%;
    object-position: 50% 12%;
    mask-image: linear-gradient(0deg, transparent 0, #000 22%, #000 100%);
  }

  .staff-editorial-backplate {
    inset: -3%;
    background-size: auto 100%;
  }

  .staff-scene-grade {
    background:
      linear-gradient(0deg, rgba(6, 9, 14, 0.98) 0 36%, rgba(6, 9, 14, 0.52) 58%, transparent 78%),
      linear-gradient(90deg, transparent, rgba(6, 9, 14, 0.28));
  }

  .staff-scene-foreground {
    top: auto;
    right: -8%;
    bottom: 0;
    width: 88%;
    height: 47%;
    clip-path: polygon(10% 0, 100% 12%, 100% 100%, 0 100%);
    border-top: 1px solid color-mix(in srgb, var(--room-key) 22%, transparent);
    border-left: 0;
  }

  .staff-editorial-mark {
    top: 2rem;
    left: 1rem;
    display: block;
  }

  .staff-editorial-room {
    display: block;
    max-width: 90%;
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .staff-editorial-number {
    display: block;
    margin-top: 0.5rem;
  }

  .staff-showcase {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .staff-identity,
  .staff-selection[data-visual-mode="architectural"] .staff-identity {
    top: 17.5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    padding-left: 0.9rem;
    text-align: left;
  }

  .staff-identity-top {
    justify-content: flex-start;
  }

  .staff-hero-name {
    font-size: clamp(2.35rem, 12vw, 3.1rem);
  }

  .staff-hero-name.is-compact {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .staff-duty-copy {
    margin: 0.65rem 0 0.45rem;
    font-size: 0.93rem;
  }

  .staff-material-note {
    margin-bottom: 0.65rem;
    font-size: 0.52rem;
  }

  .staff-regalia {
    margin-bottom: 0.48rem;
    padding: 0.42rem 0.5rem;
  }

  .staff-regalia-lineage {
    font-size: 0.54rem;
  }

  .staff-regalia-kit {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.45rem;
  }

  .staff-hero-flags {
    justify-content: flex-start;
    margin-bottom: 0.65rem;
  }

  .staff-technical {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: auto;
    padding: 0.65rem;
  }

  .staff-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .staff-technical .staff-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .staff-metric {
    padding-inline: 0.32rem;
  }

  .staff-metric-label {
    min-height: 2.2rem;
    font-size: 0.52rem;
  }

  .staff-metric-value {
    font-size: 0.9rem;
  }

  .staff-picker {
    min-height: 6.5rem;
    gap: 0.25rem;
    padding-inline: 0.35rem;
  }

  .staff-portrait-rail {
    max-width: calc(100% - 5rem);
    padding-inline: calc(50% - 1.75rem);
  }

  .staff-portrait-button {
    flex-basis: 3.5rem;
  }

  .staff-portrait-frame {
    width: 3.25rem;
  }

  .staff-portrait-name {
    display: none;
  }
}

/* House 39 contextual inspector and entity dossiers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.source-receipt,
.coverage-item,
.roster-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.source-receipt,
button.coverage-item,
button.roster-item {
  appearance: none;
  cursor: pointer;
}

button.roster-item {
  border: 0;
  border-bottom: 1px solid rgba(34, 64, 58, 0.58);
  border-radius: 0;
  background: rgba(12, 17, 25, 0.54);
}

button.source-receipt:hover,
button.source-receipt:focus-visible,
button.coverage-item:hover,
button.coverage-item:focus-visible,
button.roster-item:hover,
button.roster-item:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 68%, white);
  outline: 2px solid rgba(79, 179, 160, 0.28);
  outline-offset: -2px;
  background: rgba(79, 179, 160, 0.09);
}

.entity-link,
.evidence-link,
.composition-skill {
  min-height: 2.2rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(133, 178, 183, 0.28);
  border-radius: 0.35rem;
  color: #dce9e5;
  background: linear-gradient(145deg, rgba(39, 70, 75, 0.34), rgba(8, 12, 18, 0.72));
  cursor: pointer;
  font-size: 0.68rem;
  text-align: left;
}

.entity-link:hover,
.entity-link:focus-visible,
.evidence-link:hover,
.evidence-link:focus-visible,
.composition-skill:hover,
.composition-skill:focus-visible,
.inspector-tab:hover,
.inspector-tab:focus-visible,
.workshop-list-item:hover,
.workshop-list-item:focus-visible,
.workshop-filter input:focus-visible,
.workshop-filter select:focus-visible {
  border-color: var(--teal);
  outline: 2px solid rgba(79, 179, 160, 0.32);
  outline-offset: 2px;
}

.drawer-backdrop {
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.drawer {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(133, 178, 183, 0.46);
  background:
    radial-gradient(circle at 100% 0, rgba(79, 179, 160, 0.11), transparent 22rem),
    linear-gradient(150deg, rgba(18, 26, 37, 0.985), rgba(8, 10, 17, 0.992));
  box-shadow:
    -1.5rem 1.8rem 5rem rgba(0, 0, 0, 0.54),
    inset 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 210ms cubic-bezier(0.2, 0.75, 0.25, 1), height 210ms ease;
}

.drawer.desktop-inspector {
  top: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: clamp(26rem, 38vw, 38rem);
  height: auto;
  max-height: calc(100dvh - 1.5rem);
  border-radius: 0.7rem;
  pointer-events: auto;
}

.drawer-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(133, 178, 183, 0.24);
  background: rgba(10, 14, 21, 0.94);
}

.drawer-identity {
  min-width: 0;
}

.drawer-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.drawer-actions,
.drawer-observation-line,
.inspector-tabs,
.entity-chip-list,
.evidence-links {
  display: flex;
  align-items: center;
}

.drawer-actions {
  flex: 0 0 auto;
  gap: 0.35rem;
}

.drawer-actions .icon-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-color: rgba(133, 178, 183, 0.22);
  border-radius: 50%;
  background: rgba(14, 22, 29, 0.82);
}

.drawer-actions .icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.drawer-observation-line {
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.72rem;
  color: #91a8a1;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.inspector-tabs {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  gap: 0.25rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(133, 178, 183, 0.18);
  background: rgba(8, 12, 18, 0.94);
  overflow-x: auto;
  scrollbar-width: thin;
}

.inspector-tab {
  min-height: 2.25rem;
  padding: 0.4rem 0.72rem;
  border: 1px solid transparent;
  color: #93aaa3;
  background: transparent;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspector-tab.is-selected {
  border-color: rgba(200, 162, 74, 0.48);
  color: #fff1bd;
  background: rgba(200, 162, 74, 0.1);
  box-shadow: inset 0 -2px var(--gold);
}

.drawer-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}

.drawer-handle {
  display: none;
}

.dossier-section {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(133, 178, 183, 0.16);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.025);
}

.dossier-section > h3 {
  margin-bottom: 0.65rem;
  color: #dfeae6;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.dossier-section > .dossier-facts:last-child {
  margin-bottom: 0;
}

.dossier-fact {
  min-width: 0;
  padding: 0.6rem;
  border-top: 1px solid rgba(133, 178, 183, 0.2);
  background: rgba(39, 70, 75, 0.13);
}

.dossier-fact.is-wide {
  grid-column: 1 / -1;
}

.dossier-fact dt {
  margin-bottom: 0.28rem;
  color: #87a099;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dossier-fact dd {
  margin: 0;
  color: #eef3f0;
  font-size: 0.71rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}

.comprehension-note {
  margin: 0.7rem 0 0;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(200, 162, 74, 0.58);
  color: #91a8a1;
  font-size: 0.59rem;
  line-height: 1.5;
}

.dossier-copy,
.dossier-notes,
.empty-state {
  color: #c2d0cb;
  font-size: 0.72rem;
  line-height: 1.55;
}

.dossier-copy.muted,
.empty-state {
  color: #8fa79b;
}

.dossier-source {
  display: block;
  color: #c8d8d2;
  font-size: 0.66rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-dossier-summary {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.member-dossier-summary > .dossier-facts {
  grid-column: 1 / -1;
}

.dossier-portrait {
  width: 7rem;
  height: 8.75rem;
  border: 1px solid rgba(200, 162, 74, 0.42);
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 1.1rem 2.2rem rgba(0, 0, 0, 0.38);
}

.entity-chip-list,
.evidence-links {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.evidence-link {
  flex: 1 1 12rem;
}

.path-disclosure {
  margin-top: 0.7rem;
  border: 1px solid rgba(133, 178, 183, 0.17);
  border-radius: 0.4rem;
  background: rgba(5, 8, 13, 0.56);
}

.path-disclosure summary {
  padding: 0.62rem;
  color: #9fc0b6;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.path-disclosure code {
  display: block;
  padding: 0 0.62rem 0.7rem;
  color: #8fa79b;
  font-size: 0.65rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.path-disclosure-content {
  display: grid;
  gap: 0.55rem;
  padding: 0 0.62rem 0.7rem;
}

.path-disclosure-content code {
  padding: 0;
}

.copy-button {
  justify-self: start;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(133, 178, 183, 0.3);
  border-radius: 0.32rem;
  color: #dce9e5;
  background: rgba(39, 70, 75, 0.24);
  cursor: pointer;
  font: 700 0.58rem var(--mono);
  letter-spacing: 0.07em;
}

.occupant-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.5rem;
}

.occupant-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(133, 178, 183, 0.22);
  border-radius: 0.45rem;
  color: #dce9e5;
  background: rgba(7, 12, 18, 0.7);
  cursor: pointer;
  text-align: left;
}

.occupant-portrait {
  width: 3rem;
  height: 3.75rem;
  border: 1px solid rgba(200, 162, 74, 0.36);
  border-radius: 0.35rem;
  object-fit: cover;
  box-shadow: 0 0.7rem 1.35rem rgba(0, 0, 0, 0.34);
}

.occupant-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.occupant-copy strong,
.occupant-copy span,
.occupant-copy small {
  overflow-wrap: anywhere;
}

.occupant-copy span {
  color: #9eb3ad;
  font-size: 0.59rem;
}

.occupant-copy small {
  color: #e7c974;
  font-size: 0.55rem;
  line-height: 1.35;
}

.evidence-boundary {
  margin: 0.7rem 0;
  padding: 0.55rem 0.62rem;
  border-left: 3px solid var(--teal);
  color: #9fb4ae;
  background: rgba(39, 70, 75, 0.15);
  font: 700 0.58rem/1.5 var(--mono);
  letter-spacing: 0.055em;
}

.provenance-timeline {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.35rem;
  color: #c8d5d1;
  font: 0.65rem/1.45 var(--mono);
}

.reuse-jigs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.composition-unavailable {
  padding: 0.7rem;
  border: 1px dashed rgba(200, 162, 74, 0.38);
  color: #d6bd78;
  background: rgba(83, 36, 18, 0.16);
  font-size: 0.64rem;
}

[data-entity-type].is-current {
  border-color: rgba(200, 162, 74, 0.78) !important;
  outline: 2px solid rgba(200, 162, 74, 0.28);
  outline-offset: 1px;
  box-shadow: inset 3px 0 var(--gold);
}

.declared-composition {
  padding: 0.85rem;
  border: 1px solid rgba(133, 178, 183, 0.2);
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at 50% 0, rgba(79, 179, 160, 0.1), transparent 16rem),
    rgba(5, 9, 14, 0.62);
}

.composition-core {
  display: grid;
  gap: 0.2rem;
  width: min(20rem, 100%);
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(200, 162, 74, 0.54);
  border-left: 3px solid var(--gold);
  background: linear-gradient(120deg, rgba(83, 36, 18, 0.38), rgba(14, 22, 29, 0.82));
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.32);
}

.composition-core-label {
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.composition-core > span:last-child {
  color: #97aaa4;
  font-size: 0.64rem;
  line-height: 1.4;
}

.composition-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.composition-group {
  min-width: 0;
  padding: 0.55rem;
  border-top: 2px solid var(--teal);
  background: rgba(39, 70, 75, 0.16);
}

.composition-group.role-borrow {
  border-top-color: var(--gold);
}

.composition-group h4 {
  margin: 0 0 0.48rem;
  color: #98b0a9;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
}

.composition-list {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.composition-skill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.composition-boundary {
  margin: 0.8rem 0 0;
  padding: 0.58rem;
  border: 1px dashed rgba(200, 162, 74, 0.46);
  color: #e6c879;
  background: rgba(83, 36, 18, 0.2);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.workshop-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.workshop-filter {
  display: grid;
  gap: 0.28rem;
  color: #87a099;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.workshop-filter input,
.workshop-filter select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(133, 178, 183, 0.24);
  border-radius: 0.35rem;
  color: #e7efec;
  background: #0b1118;
  font: 0.67rem var(--mono);
}

.workshop-search {
  grid-column: 1 / -1;
}

.workshop-result-count {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.86fr) minmax(15rem, 1.14fr);
  gap: 0.7rem;
  align-items: start;
}

.workshop-master-list {
  display: grid;
  gap: 0.38rem;
  max-height: 31rem;
  overflow-y: auto;
}

.workshop-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(133, 178, 183, 0.17);
  border-radius: 0.4rem;
  color: #dfe9e5;
  background: rgba(16, 20, 29, 0.76);
  cursor: pointer;
  text-align: left;
}

.workshop-list-item.is-selected {
  border-color: rgba(200, 162, 74, 0.66);
  background: linear-gradient(110deg, rgba(83, 36, 18, 0.38), rgba(16, 20, 29, 0.8));
  box-shadow: inset 3px 0 var(--gold);
}

.workshop-list-item strong,
.workshop-list-item small {
  display: block;
  min-width: 0;
}

.workshop-list-item > span:first-child,
.workshop-list-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workshop-list-item strong {
  white-space: nowrap;
}

.workshop-list-item small {
  margin-top: 0.2rem;
  overflow: hidden;
  color: #8fa39d;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workshop-list-count {
  color: var(--teal);
  font-size: 0.62rem;
}

.workshop-list-flags {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.workshop-list-flags .mini-pill {
  max-width: 5.5rem;
  font-size: 0.48rem;
  white-space: nowrap;
}

.workshop-detail {
  min-width: 0;
}

.workshop-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.workshop-detail-head h3 {
  font-size: 1.65rem;
}

.workshop-outcome {
  margin: 0.3rem 0 0;
  color: #aebfba;
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.4;
}

.reuse-matrix {
  width: 100%;
  border-collapse: collapse;
}

.reuse-matrix th,
.reuse-matrix td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(133, 178, 183, 0.16);
  font-size: 0.65rem;
  text-align: left;
}

.not-found-code {
  margin: 1rem 0;
  color: #f0a16f;
  font-family: var(--serif);
  font-size: 2.8rem;
}

.wall-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.wall-record-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: 0.58rem;
  color: #e9f1ee;
  background:
    linear-gradient(135deg, rgba(83, 36, 18, 0.22), rgba(39, 70, 75, 0.14)),
    rgba(5, 9, 14, 0.76);
  box-shadow: 0 0.85rem 1.8rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: left;
}

.wall-record-card:hover,
.wall-record-card:focus-visible {
  border-color: rgba(200, 162, 74, 0.7);
  background:
    linear-gradient(135deg, rgba(83, 36, 18, 0.32), rgba(39, 70, 75, 0.22)),
    rgba(5, 9, 14, 0.82);
}

.wall-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.wall-record-head strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.wall-record-copy {
  display: grid;
  gap: 0.45rem;
}

.wall-record-question {
  color: #c9d6d2;
  font-size: 0.69rem;
  line-height: 1.5;
}

.wall-record-copy small {
  color: var(--gold);
  font: 700 0.52rem/1.45 var(--mono);
  letter-spacing: 0.07em;
}

.governance-records {
  display: grid;
  gap: 0.48rem;
}

.governance-record {
  min-width: 0;
  border: 1px solid rgba(133, 178, 183, 0.17);
  border-radius: 0.48rem;
  background: rgba(4, 8, 13, 0.58);
  overflow: clip;
}

.governance-record[open] {
  border-color: rgba(133, 178, 183, 0.35);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.2);
}

.governance-record[hidden] {
  display: none;
}

.governance-record-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.65rem 0.72rem;
  cursor: pointer;
  list-style-position: outside;
}

.governance-record-summary::marker {
  color: var(--gold);
}

.governance-record-heading {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.governance-record-heading strong,
.governance-record-heading small {
  overflow-wrap: anywhere;
}

.governance-record-heading strong {
  color: #e7efec;
  font-size: 0.68rem;
}

.governance-record-heading small {
  color: #91a7a0;
  font-size: 0.56rem;
  line-height: 1.4;
}

.governance-record-body {
  padding: 0.82rem;
  border-top: 1px solid rgba(133, 178, 183, 0.14);
  background: rgba(39, 70, 75, 0.07);
}

.governance-record-body > :last-child {
  margin-bottom: 0;
}

.governance-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 10rem;
  padding: 0.3rem 0.44rem;
  border: 1px solid rgba(154, 166, 161, 0.45);
  border-radius: 999px;
  color: #cbd4d1;
  background: rgba(154, 166, 161, 0.09);
  font: 700 0.49rem/1.25 var(--mono);
  letter-spacing: 0.055em;
  text-align: center;
}

.governance-state.state-validated,
.governance-state.state-present,
.governance-state.state-present-and-bound {
  border-color: rgba(79, 179, 160, 0.56);
  color: #9fe0cf;
  background: rgba(79, 179, 160, 0.12);
}

.governance-state.state-configured-unverified,
.governance-state.state-instruction-enforced,
.governance-state.state-present-unbound,
.governance-state.state-degraded {
  border-color: rgba(240, 228, 66, 0.5);
  color: #f3e983;
  background: rgba(240, 228, 66, 0.1);
}

.governance-state.state-best-effort,
.governance-state.state-missing {
  border-color: rgba(213, 94, 0, 0.6);
  color: #efa06b;
  background: rgba(213, 94, 0, 0.11);
}

.governance-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.15rem;
  color: #c5d2ce;
  font-size: 0.67rem;
  line-height: 1.5;
}

.governance-list.compact {
  gap: 0.25rem;
}

.warning-list li::marker {
  color: #e6c879;
}

.governance-prose,
.wall-question {
  margin: 0 0 0.7rem;
  color: #d4dfdb;
  font-size: 0.72rem;
  line-height: 1.62;
  white-space: pre-wrap;
}

.wall-question {
  padding-left: 0.65rem;
  border-left: 3px solid var(--gold);
  color: #f0dc9e;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.measurement-note,
.governance-warning {
  margin: 0.7rem 0 0;
  padding: 0.58rem 0.65rem;
  border-left: 2px solid rgba(133, 178, 183, 0.52);
  color: #95aaa4;
  background: rgba(39, 70, 75, 0.12);
  font: 0.6rem/1.55 var(--mono);
}

.governance-warning {
  border-left-color: #d55e00;
  color: #efb08b;
  background: rgba(213, 94, 0, 0.1);
}

.governance-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
  margin: 0.75rem 0;
}

.governance-filter {
  display: grid;
  gap: 0.28rem;
  color: #87a099;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.governance-filter input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(133, 178, 183, 0.24);
  border-radius: 0.35rem;
  color: #e7efec;
  background: #0b1118;
  font: 0.67rem var(--mono);
}

.governance-result-count {
  margin: 0;
  color: var(--gold);
  font: 700 0.55rem/1.4 var(--mono);
  letter-spacing: 0.06em;
}

.governance-state-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.governance-state-count {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.governance-state-count strong {
  color: #f0e7cf;
  font-size: 0.67rem;
}

.governance-table {
  width: 100%;
  border-collapse: collapse;
}

.governance-table th,
.governance-table td {
  padding: 0.48rem;
  border-bottom: 1px solid rgba(133, 178, 183, 0.15);
  color: #c5d2ce;
  font-size: 0.64rem;
  text-align: left;
}

@media (max-width: 899px) {
  .drawer-backdrop:not([hidden]) {
    display: block;
    pointer-events: auto;
    background: rgba(4, 5, 10, 0.56);
    backdrop-filter: blur(2px);
  }

  .drawer.mobile-inspector {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 62dvh;
    max-height: 94dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -1.4rem 4.5rem rgba(0, 0, 0, 0.58);
  }

  .drawer.mobile-inspector[data-sheet="collapsed"] {
    height: 32dvh;
  }

  .drawer.mobile-inspector[data-sheet="half"] {
    height: 62dvh;
  }

  .drawer.mobile-inspector[data-sheet="full"] {
    height: 94dvh;
  }

  .drawer-handle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 1.35rem;
    padding: 0;
    border: 0;
    background: rgba(8, 12, 18, 0.96);
    cursor: pointer;
  }

  .drawer-handle span {
    width: 3.2rem;
    height: 0.24rem;
    border-radius: 999px;
    background: rgba(133, 178, 183, 0.46);
  }

  .drawer-header {
    padding-top: 0.7rem;
  }

  .composition-groups,
  .workshop-layout {
    grid-template-columns: 1fr;
  }

  .workshop-master-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 15rem;
  }
}

@media (max-width: 599px) {
  .drawer-header {
    gap: 0.55rem;
    padding-inline: 0.75rem;
  }

  .drawer-actions {
    gap: 0.18rem;
  }

  .drawer-actions .icon-button {
    width: 2.1rem;
    height: 2.1rem;
  }

  .drawer-observation-line {
    display: grid;
  }

  .inspector-tabs {
    overflow-x: auto;
    padding-inline: 0.7rem;
  }

  .drawer-body {
    padding: 0.75rem;
  }

  .dossier-facts,
  .workshop-controls,
  .workshop-master-list,
  .member-dossier-summary,
  .wall-record-grid,
  .governance-toolbar {
    grid-template-columns: 1fr;
  }

  .dossier-portrait {
    width: 5.5rem;
    height: 6.875rem;
  }

  .workshop-detail-head {
    display: grid;
  }
}
