:root {
  color-scheme: light;
  --base: #eee6d4;
  --panel: #f8f2e4;
  --line: #cfc1a9;
  --text: #302c25;
  --muted: #655e4e;
  --teal: #486356;
  --amber: #754b34;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: var(--base);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .55; }
button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }

.button {
  background: #f0e7d6;
  border: 1px solid #baaa90;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 650;
}
.button:not(:disabled):hover { background: #e8dcc6; }
.button.primary { background: #466657; color: #fff2d4; border-color: transparent; min-width: 107px; }
.button.primary:not(:disabled):hover { background: #375546; }
.button.compact { min-width: 44px; padding-inline: 9px; }
.button.reset { padding-inline: 12px; }

.player-status {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #977d4e;
  border-radius: 7px;
  background: #302b24ed;
  color: #f7e7be;
  font-size: .82rem;
  pointer-events: none;
}
.viewport[data-mode="player"] canvas { cursor: crosshair; }
.viewport[data-mode="player"] canvas:active { cursor: grabbing; }
.viewport[data-mode="player"] .marker[data-agent="fox"] { pointer-events: none; }
.viewport { position: relative; isolation: isolate; height: 100%; overflow: hidden; }
.viewport canvas, .scene-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.viewport canvas { touch-action: none; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.viewport canvas:focus-visible { outline: 2px solid #e3bc7d; outline-offset: -3px; }
.scene-fallback { object-fit: contain; }
.scene-message {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 12px;
  right: 12px;
  margin: 0;
  padding: 10px 14px;
  width: fit-content;
  max-width: calc(100% - 24px);
  background: #f8f2e4;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}
.markers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.marker {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 0 9px;
  min-height: 34px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #a69771;
  box-shadow: 0 2px 6px #231c16aa;
  background: #fbefce;
  border-radius: 7px;
  font-size: .79rem;
  font-weight: 680;
}
.marker { color: #30291e; }
.marker[aria-pressed="true"], .marker:hover { border-color: var(--agent-accent, var(--teal)); background: #f0dec2; }
.marker[aria-pressed="true"], .marker:hover, .marker:focus-visible { z-index: 1; }
.dot { background: var(--state-ink, var(--muted)); width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.camera-touch { display: none; }
@media (pointer: coarse) {
  .camera-mouse { display: none; }
  .camera-touch { display: inline; }
}

[data-status="working"] { --state-ink: #3c654d; }
[data-status="approval"] { --state-ink: #8e5027; }
[data-status="handoff"] { --state-ink: #3c6078; }
[data-status="idle"] { --state-ink: #635b4b; }
[data-status="done"] { --state-ink: #4f6937; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.avatar-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 14px;
  border: 1px solid #9c8e70;
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 70px #20160faa;
  overflow: auto;
}
.avatar-dialog::backdrop { background: #251b14bc; }
body:has(.avatar-dialog[open]) { overflow: hidden; }
.gallery-header, .gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-header { margin-bottom: 12px; }
.gallery-header h2 { font-size: 1.16rem; }
.avatar-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.avatar-options .button { min-width: 0; padding: 0 5px; }
.avatar-options .button[aria-pressed="true"] {
  color: var(--agent-accent);
  border-color: var(--agent-accent);
  background: #f0dec2;
}
.avatar-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: clamp(220px, 49dvh, 420px);
  background: radial-gradient(ellipse at 50% 48%, #6c7c66, #36493c 76%); color: #f7ead0;
}
.avatar-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.avatar-stage canvas:active { cursor: grabbing; }
.avatar-caption, #avatar-angle { position: absolute; top: 12px; pointer-events: none; }
.avatar-caption { left: 12px; display: grid; gap: 3px; }
.avatar-caption span, #avatar-angle, .gallery-footer > span { color: var(--muted); font-size: .83rem; }
.avatar-caption span, #avatar-angle { color: #f2dfba; }
#avatar-angle { right: 12px; }
.avatar-message { position: absolute; inset: 0; display: grid; place-content: center; padding: 12px; margin: 0; text-align: center; }
.gallery-footer { flex-wrap: wrap; margin-top: 10px; }
#avatar-spin { min-width: 102px; }

.marker { min-height: 32px; }
@media (max-width: 555px) {
  .marker { font-size: .68rem; min-height: 27px; gap: 4px; }
  .marker .dot { width: 5px; height: 5px; }
}

.market-tape {
  display: flex;
  align-items: center;
  gap: 10px 19px;
  padding: 8px 15px;
  background: #202e25;
  color: #f3dfac;
  border-bottom: 1px solid #9b7847;
  font: 600 .78rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tape-title {
  padding-right: 13px;
  border-right: 1px solid #947448;
  color: #e3bc7d;
  white-space: nowrap;
}
.market-quotes { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.market-quote { display: inline-flex; gap: 6px; }
.quote-symbol { color: #e7c384; }
.quote-change { color: #cfceb1; }
.quote-change[data-direction="1"] { color: #9bdbaf; }
.quote-change[data-direction="-1"] { color: #ffac95; }

.avatar-dialog { width: min(890px, calc(100% - 24px)); }
.profile-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.profile-visual, .profile-copy { min-width: 0; }
.profile-copy h3 { margin: 0; color: #2c4436; font: 500 2rem/1 Georgia, serif; }
.profile-copy > p { margin: 8px 0 0; color: var(--muted); line-height: 1.43; }
.profile-fields { display: grid; gap: 8px; margin: 12px 0; }
.profile-fields dt, .note-label { color: #6a5236; font-size: .79rem; font-weight: 730; }
.profile-fields dd { margin: 2px 0 0; font-size: .89rem; line-height: 1.38; }
.profile-note {
  padding: 12px;
  border: 1px solid #d5b789;
  border-radius: 8px;
  background: #f1e6ce;
}
.profile-note h4 { margin: 3px 0 0; color: #384737; font: 600 1.12rem/1.2 Georgia, serif; }
.profile-note p { margin: 7px 0 0; font-size: .91rem; line-height: 1.4; }
.avatar-stage { background: radial-gradient(ellipse at 50% 45%, #567064, #243a32 78%); }
@media (max-width: 650px) {
  .profile-layout { display: flex; flex-direction: column; }
  .profile-visual { order: 1; }
  .avatar-stage { height: 270px; }
}
@media (max-width: 555px) {
  .market-tape { flex-wrap: wrap; padding: 7px 10px; gap: 4px 9px; }
  .tape-title { border-right: 0; padding-right: 0; }
  .market-quotes { gap: 3px 14px; font-size: .72rem; }
}

.viewport { background: #282026; }
.market-tape { background: #282827; }
.market-wire {
  background: transparent;
  border: 0;
  border-right: 1px solid #947448;
  padding-left: 0;
  min-height: 26px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.market-wire:hover { color: #fff0c6; }
.market-wire:focus-visible { outline-color: #e3bc7d; }

.event-dialog {
  max-height: calc(100% - 24px);
  width: min(660px, calc(100% - 24px));
  padding: 0;
  border: 1px solid #9c8e70;
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 24px 70px #20160faa;
  overflow: auto;
}
.event-dialog::backdrop { background: #251b14bc; }
body:has(#event-dialog[open]) { overflow: hidden; }
.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 18px 18px;
  background: #342b28;
  color: #f4dec0;
  border-bottom: 2px solid #a68052;
}
.event-source { margin: 0 0 6px; font: 700 .72rem/1.5 ui-monospace, monospace; letter-spacing: .08em; }
.event-header h2 { font: 500 clamp(1.65rem, 5.5vw, 2.6rem)/1.05 Georgia, serif; }
.event-header .button { color: var(--text); }
.event-body { padding: 16px 18px 19px; font-size: .96rem; line-height: 1.5; }
.event-quote { margin: 0; color: #724833; }
.event-body h3 { font-size: .92rem; margin: 16px 0 5px; }
.event-body ol { margin: 0; padding-left: 19px; }
.event-body li + li { margin-top: 6px; }
@media (min-width: 651px) { .avatar-options { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 555px) { .market-wire { border-right: 0; } }
@media (max-width: 555px) {
  .marker:not([aria-pressed="true"]) {
    min-width: 19px;
    min-height: 19px;
    justify-content: center;
    padding: 3px;
    border-radius: 50%;
  }
  .marker:not([aria-pressed="true"]) .marker-name { display: none; }
}

.avatar-command { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 9px 0 0; font-size: .83rem; }
.avatar-command label { color: #5d503f; font-weight: 700; }
.avatar-command select {
  max-width: 100%;
  padding: 5px 8px;
  color: #302c25;
  background: #fffaee;
  border: 1px solid #bba990;
  border-radius: 4px;
  font: inherit;
}
.avatar-command select:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.agent-report { padding: 7px 9px; margin: 8px 0 0; border-left: 2px solid #9a7647; font-size: .81rem; background: #f4ebda; }
.agent-report p { margin: 4px 0 0; line-height: 1.35; }

#talk-worker { display: inline-flex; align-items: center; margin: 6px 8px 0 0; min-height: 34px; }
#conversation-dialog { position: absolute; inset: auto 12px 12px auto; z-index: 5; margin: 0; width: min(320px, calc(100% - 24px)); max-height: 44%; }
.conversation-dialog .event-header { align-items: center; padding: 8px 10px; }
.conversation-dialog .event-header h2 { font-size: 1.21rem; }
.conversation-dialog .event-source { font-size: .62rem; letter-spacing: 0; }
.conversation-dialog .event-header .button { min-height: 31px; }
.conversation-dialog .event-body { font-size: .83rem; padding: 8px 11px; }
.conversation > p { margin: 0; }
.conversation-answer { background: #eee5d2; border-left: 2px solid #ae8553; padding: 8px 11px; }
#conversation-history h3 { margin: 7px 0 0; }
#conversation-history p { margin: 2px 0 0; }

.line-heading label, .line-heading h3 { margin: 0; font-size: .83rem; font-weight: 700; }
#phone-contact { min-width: 0; max-width: 72%; padding: 3px 4px; background: #fffaef; border: 1px solid #b6a68b; border-radius: 4px; color: var(--text); font: inherit; font-size: .82rem; }
.chat-log { height: 116px; overflow-y: auto; overscroll-behavior: contain; padding: 3px 5px 3px 0; scrollbar-width: thin; }
.chat-entry { margin: 5px 0 8px; font-size: .85rem; line-height: 1.42; overflow-wrap: anywhere; }
.chat-entry time { color: #615b4c; font: .68rem ui-monospace, monospace; margin-right: 6px; }
.chat-entry b, .chat-author { color: #365448; font-weight: 740; }
.chat-author { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.chat-entry.mine b { color: #81442d; }
#phone-compose { display: flex; gap: 6px; margin-top: 5px; }
#phone-message { flex: 1; min-width: 0; border: 1px solid #b8a78b; border-radius: 5px; padding: 7px 8px; background: #fffcf6; color: var(--text); font: inherit; font-size: .86rem; }
#phone-compose .button { min-height: 35px; min-width: 50px; }
#phone-error { margin: 6px 0 0; font-size: .82rem; color: #853d29; }

.lab {
  --hud-ink: #f6e9d1;
  --hud-muted: #d6c7ac;
  --hud-line: #85765a;
  --hud-gold: #e2bf7e;
  --hud-active: #546a4c;
  --hud-paper: #f7ecda;
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr) auto;
  height: 100dvh;
  min-height: 630px;
  background: #211c1d;
  color: var(--hud-ink);
}

.lab :focus-visible { outline: 2px solid var(--hud-gold); outline-offset: 2px; }
.mono { font: 600 .82rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.masthead {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 22px);
  min-height: 48px;
  padding: 5px clamp(12px, 1.7vw, 26px);
  border-bottom: 1px solid #ac8554;
  background: #211c1d;
}

.masthead h1 {
  margin: 0;
  font: 700 clamp(.98rem, 1.4vw, 1.23rem)/1.15 Georgia, serif;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-modes, .office-tools, .camera-controls { display: flex; align-items: center; gap: 4px; }
.view-modes { padding-inline: 12px; border-inline: 1px solid var(--hud-line); }
.office-time { padding-right: 2px; }
.office-tools { gap: 12px; margin-left: auto; }

.masthead .button, .toolbar-menu summary {
  min-width: 34px;
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--hud-ink);
}
.masthead .button:not(:disabled):hover, .toolbar-menu summary:hover { background: #413634; }
.masthead .button[aria-pressed="true"] { background: var(--hud-active); color: #fff4e0; }
.toolbar-menu { position: relative; }
.toolbar-menu summary {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: .81rem;
}
.toolbar-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  width: min(250px, calc(100vw - 22px));
  padding: 5px;
  border: 1px solid var(--hud-line);
  border-radius: 7px;
  background: #292425;
}
.toolbar-popover .button { text-align: left; }
.lighting-control {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--hud-line);
  font-size: .8rem;
}
.lighting-control select { width: 100%; padding: 5px; font: inherit; }

.lighting-time { display: grid; padding: 6px 5px; font-size: .8rem; }
.lighting-time > div { display: flex; align-items: baseline; justify-content: space-between; }
.lighting-time input { width: 100%; margin: 0; height: 28px; accent-color: var(--hud-gold); cursor: pointer; }
.time-scale { color: #cfbeb0; font: 11px ui-monospace, monospace; }

.floor-panel { position: relative; min-height: 0; min-width: 0; }
.floor-tools { position: absolute; z-index: 3; left: 12px; top: 11px; max-width: calc(100% - 24px); }
.market-tape {
  padding: 5px 9px;
  border: 1px solid #756043;
  border-radius: 5px;
  background: #211c1de8;
  gap: 8px;
  font-size: .7rem;
}
.market-quotes { gap: 7px 12px; }
#zoom-in, #zoom-out { font-size: 1.15rem; }

.office-dock {
  display: grid;
  grid-template-rows: 23px auto;
  z-index: 4;
  margin-top: -1px;
  border-top: 2px solid var(--hud-gold);
  border-radius: 16px 16px 0 0;
  background: #1b2921;
}
.dock-toggle {
  display: grid;
  place-items: center;
  width: 82px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.dock-toggle::after {
  content: '';
  display: block;
  width: 43px;
  height: 4px;
  border-radius: 4px;
  background: var(--hud-gold);
}
.dock-toggle:hover::after { background: #ffdf9f; }

.dock-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.82fr);
  height: clamp(282px, calc(34dvh - 23px), 410px);
  padding: 0 clamp(16px, 2.7vw, 42px) 21px;
}
.inspection {
  overflow: auto;
  min-width: 0;
  padding: 3px clamp(14px, 1.8vw, 29px) 2px 0;
  border-right: 1px solid var(--hud-line);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.inspection h2, .agent-copy h3, .departments > summary {
  margin: 0;
  font: 700 1.27rem/1.22 Georgia, serif;
}
.inspection-row {
  display: grid;
  grid-template-columns: clamp(54px, 6.4vw, 96px) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(9px, 1.3vw, 19px);
  margin: 11px 0;
}
.agent-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #8f8466;
  border-radius: 11px;
  background: #404d3e;
  overflow: hidden;
  font: 700 1.7rem Georgia, serif;
}
.agent-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; background: #404d3e; }
.agent-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 4px; font-size: .87rem; }
.agent-meta .state { color: var(--hud-muted); font-size: inherit; }
.agent-meta .state::before { content: '·'; margin-right: 6px; }
.agent-task { margin: 6px 0 0; font-size: .93rem; line-height: 1.4; }
.inspection-actions { display: grid; gap: 7px; }
.office-dock .button {
  min-height: 35px;
  border-color: #b1a180;
  background: transparent;
  color: var(--hud-ink);
}
.office-dock .button:not(:disabled):hover { background: #3b4c3c; }
.office-dock .call-button {
  background: #f4dab0;
  border-color: #f4dab0;
  color: #241d16;
}
.office-dock .call-button:not(:disabled):hover { background: #ffe6be; }
.avatar-command { margin: 0 0 10px; }
.avatar-command label { color: var(--hud-muted); }
.agent-report { margin-bottom: 10px; background: #293b2e; }

.departments { border-top: 1px solid var(--hud-line); }
.departments > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 7px;
  cursor: pointer;
  font-size: 1.12rem;
}
.departments > summary::-webkit-details-marker { display: none; }
.departments > summary::after { content: '›'; }
.departments[open] > summary::after { transform: rotate(90deg); }
.roster { display: grid; padding-bottom: 4px; }
.roster-card, .department-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  text-align: left;
  gap: 3px 6px;
  width: 100%;
  min-height: 35px;
  padding: 5px 9px;
  border: 0;
  border-bottom: 1px solid #655e48;
  background: transparent;
  color: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.department-row::-webkit-details-marker { display: none; }
.department-row span, .roster-card span { color: var(--hud-muted); }
.department-group summary::after { content: '›'; margin-left: auto; }
.department-group[open] summary::after { transform: rotate(90deg); }
.department-member { padding-left: 24px; }
.roster-card:hover, .department-row:hover { background: #394a3b; }
.roster-card:not(.department-member)::after { content: '›'; margin-left: auto; }
.roster-card[aria-pressed="true"], .department-group[data-selected="true"] > summary { background: var(--hud-active); color: #fff6e5; }

.communications {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding-left: clamp(14px, 1.8vw, 29px);
}
.dock-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--hud-line);
}
.dock-tabs button {
  min-height: 44px;
  padding: 6px clamp(10px, 1.32vw, 21px);
  border: 0;
  border-radius: 11px 11px 0 0;
  background: transparent;
  font-size: 1.05rem;
  white-space: nowrap;
}
.dock-tabs button:hover { background: #374538; }
.dock-tabs button[aria-selected="true"] {
  background: var(--hud-active);
  color: #fff5de;
  font-weight: 700;
}
.dock-panel { min-height: 0; padding: 13px 0 1px; overflow: auto; scrollbar-width: thin; }
.phone-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 5px;
  overflow: hidden;
}
.line-heading { display: flex; align-items: center; gap: 9px; }
.line-heading label { color: var(--hud-ink); }
#phone-contact { padding: 5px 7px; background: var(--hud-paper); font-size: .91rem; }
.chat-log { height: 100%; }
.chat-entry { font-size: 1rem; }
.chat-entry time, .activity .mono { color: var(--hud-muted); }
.chat-entry b, .chat-author { color: #c5d6ad; }
.chat-entry.mine b { color: #efc48f; }
#phone-message { min-height: 43px; background: var(--hud-paper); padding-inline: 11px; font-size: .95rem; }
.office-dock #phone-compose .button { background: var(--hud-active); padding-inline: 17px; }
#phone-error { color: #ffbda4; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 9px; padding: 7px 0; font-size: .91rem; line-height: 1.42; }

@media (min-width: 961px) {
  .inspection-actions .button { min-width: 108px; }
  .phone-panel { padding-bottom: 22px; }
  #phone-contact { min-width: 235px; }
}

@media (max-width: 960px) {
  .masthead { flex-wrap: wrap; }
  .office-tools { flex-wrap: wrap; }
  .inspection-row { grid-template-columns: 64px minmax(0, 1fr); }
  .inspection-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}

@media (max-width: 670px) {
  .lab { grid-template-rows: auto auto auto; height: auto; min-height: 100dvh; }
  .masthead { gap: 6px 11px; padding: 7px 11px; }
  .masthead h1 { font-size: 1.04rem; }
  .office-time { order: 1; margin-left: auto; }
  .view-modes { order: 2; padding: 0; border: 0; flex-basis: 100%; }
  .toolbar-popover { left: 0; right: auto; }
  .office-tools { order: 3; justify-content: space-between; width: 100%; gap: 2px; }
  .market-quotes .market-quote:nth-child(n+2) { display: none; }
  .floor-panel { height: clamp(250px, 42dvh, 420px); }
  .dock-content { grid-template-columns: minmax(0, 1fr); height: auto; gap: 12px; padding-bottom: 18px; }
  .inspection { border: 0; padding: 0 0 5px; }
  .roster { max-height: 126px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .inspection-row { grid-template-columns: 59px minmax(0, 1fr) auto; }
  .inspection-actions { grid-column: auto; display: grid; }
  .communications { min-height: 220px; padding: 0; }
  .dock-panel { height: 172px; }
  .dock-tabs { gap: 2px; }
  .dock-tabs button { flex: 1; font-size: .86rem; padding-inline: 5px; }
}
