/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --doit-navy: #15324d;
  --doit-blue: #235f95;
  --doit-sky: #dcebf7;
  --doit-mist: #f5f8fb;
  --doit-ink: #102538;
  --panel: #fff;
  --panel-2: #eef4f9;
  --line: #d7e1ea;
  --text: #142638;
  --muted: #64768a;
  --accent: #235f95;
  --accent-2: #74b7df;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  color: var(--text);
  background: #f4f7fa;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.workspace-shell {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.workspace-banner {
  border-bottom: 1px solid var(--line);
  z-index: 20;
  background: #fffffff5;
  grid-template-columns: 150px minmax(220px, .65fr) minmax(420px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  display: grid;
  box-shadow: 0 10px 34px #15324d14;
}

.workspace-brand {
  align-items: center;
  min-width: 0;
  display: flex;
}

.workspace-brand img {
  flex: none;
  width: 150px;
  height: auto;
}

.workspace-context {
  align-content: center;
  gap: 1px;
  min-width: 0;
  display: grid;
}

.workspace-context p {
  color: var(--doit-blue);
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
}

.workspace-context strong {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 21px;
  line-height: 1.15;
  overflow: hidden;
}

.workspace-context small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  display: block;
  overflow: hidden;
}

.area-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: stretch;
  gap: 10px;
  min-width: 0;
  display: grid;
}

.area-tab {
  border: 1px solid var(--line);
  min-height: 54px;
  color: var(--doit-navy);
  background: #f7fafc;
  border-radius: 8px;
  align-content: center;
  gap: 3px;
  padding: 9px 14px;
  display: grid;
  box-shadow: 0 1px 1px #15324d0a;
}

.area-tab.active {
  border-color: #a8c5dd;
  border-left: 5px solid var(--doit-blue);
  background: #eef5fb;
  box-shadow: inset 0 0 0 1px #235f9514;
}

.area-tab span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.area-tab small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .workspace-banner {
    grid-template-columns: 150px minmax(160px, 1fr);
  }

  .area-tabs {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .workspace-banner {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .workspace-brand img {
    width: 128px;
  }

  .workspace-context {
    display: none;
  }

  .area-tabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .area-tab {
    padding: 8px;
  }

  .area-tab small {
    display: none;
  }
}

.workspace-content {
  min-height: 0;
  overflow: hidden;
}

.home-dashboard {
  place-items: center;
  min-height: 100%;
  padding: 40px;
  display: grid;
}

.home-card {
  text-align: center;
  justify-items: center;
  gap: 22px;
  width: min(860px, 100%);
  display: grid;
}

.home-logo {
  width: min(320px, 78vw);
  height: auto;
}

.home-copy {
  justify-items: center;
  gap: 8px;
  display: grid;
}

.home-copy h1 {
  color: var(--doit-navy);
  font-size: 34px;
  line-height: 1.12;
}

.home-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.dashboard-actions {
  grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(190px, .8fr));
  gap: 16px;
  width: min(920px, 100%);
  margin-top: 6px;
  display: grid;
}

.dashboard-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  box-shadow: 0 1px 1px #15324d0a;
}

.dashboard-button.primary {
  background: var(--doit-navy);
  color: #fff;
  border-color: #0000;
  min-width: 260px;
  min-height: 84px;
  font-size: 20px;
}

.dashboard-button.secondary {
  color: var(--doit-navy);
  background: #fff;
}

.app-page {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 18px 24px 24px;
  display: grid;
  overflow: hidden;
}

.workbench-page {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
}

.spatial-lab-page {
  grid-template-rows: auto minmax(0, 1fr);
}

.page-alerts {
  gap: 8px;
  min-height: 0;
  display: grid;
}

.page-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 0 18px;
  display: flex;
}

.page-header h1 {
  color: var(--doit-navy);
  font-size: 28px;
  line-height: 1.15;
}

.area-control-strip {
  justify-content: end;
  align-items: center;
  gap: 18px;
  min-height: 0;
  display: flex;
}

.area-control-strip h1 {
  color: var(--doit-navy);
  font-size: 24px;
  line-height: 1.15;
}

.eyebrow {
  color: var(--doit-blue);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.action-link {
  border: 1px solid var(--line);
  min-height: 38px;
  color: var(--doit-navy);
  background: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  box-shadow: 0 1px 1px #15324d0a;
}

.workbench-header-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  display: flex;
}

.primary-action, .danger-action {
  cursor: pointer;
  min-height: 38px;
  font: inherit;
  border: 1px solid #0000;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
}

.primary-action {
  background: var(--doit-navy);
  color: #fff;
}

.secondary-action {
  background: var(--doit-blue);
}

.signoff-action {
  background: #0f766e;
}

.danger-action {
  color: #fff;
  background: #b42318;
}

.primary-action:disabled, .danger-action:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.success-banner {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #16a34a47;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.success-banner a {
  text-decoration: underline;
}

.page-brand {
  align-items: center;
  gap: 18px;
  min-width: 0;
  display: flex;
}

.page-brand img {
  width: 168px;
  height: auto;
}

.page-brand h1 {
  color: var(--doit-navy);
  font-size: 26px;
  line-height: 1.15;
}

.dashboard-shell {
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  min-height: 100vh;
  padding: 22px;
  box-shadow: 8px 0 30px #15324d0f;
}

.brand {
  gap: 14px;
  margin-bottom: 28px;
  display: grid;
}

.brand-logo {
  width: min(245px, 100%);
  height: auto;
  display: block;
}

.brand h1, .topbar h2, .empty-state h3 {
  color: var(--doit-navy);
}

.brand h1 {
  font-size: 17px;
  line-height: 1.2;
}

.brand p, .empty-state p {
  color: var(--muted);
}

.brand p {
  margin-top: 4px;
  font-size: 13px;
}

.nav-list {
  gap: 8px;
  display: grid;
}

.nav-list a {
  border: 1px solid #b9cde0;
  border-left: 4px solid var(--doit-blue);
  color: var(--doit-navy);
  background: #f5f9fc;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
}

.workspace {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  display: grid;
  overflow: hidden;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  display: flex;
}

.topbar h2 {
  font-size: 25px;
  line-height: 1.2;
}

.empty-state {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  align-content: center;
  gap: 8px;
  max-width: 760px;
  min-height: 320px;
  padding: 34px;
  display: grid;
  box-shadow: 0 18px 45px #15324d0f;
}

.empty-state .eyebrow {
  color: var(--doit-blue);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.empty-state h3 {
  font-size: 22px;
  line-height: 1.2;
}

.empty-state p {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.55;
}

.session-dashboard {
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.session-dashboard.list-mode, .session-dashboard.viewer-mode {
  grid-template-columns: minmax(0, 1fr);
}

.session-list-page, .session-detail, .map-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.panel-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  display: flex;
}

.panel-heading h2 {
  color: var(--doit-navy);
  font-size: 18px;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  display: block;
}

.panel-heading p {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}

.panel-actions {
  white-space: nowrap;
  justify-content: end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.workflow-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  display: grid;
}

.workflow-tile {
  border: 1px solid var(--line);
  min-height: 116px;
  color: var(--text);
  background: #fff;
  border-left: 4px solid #b9cde0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px #15324d0d;
}

.workflow-tile.active {
  border-left-color: var(--doit-blue);
  background: #f5f9fc;
}

.workflow-tile-select {
  width: 100%;
  min-height: 116px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  gap: 8px;
  padding: 16px 118px 16px 16px;
  display: grid;
}

.workflow-tile:not(.active) .workflow-tile-select {
  padding-right: 16px;
}

.workflow-tile span {
  color: var(--doit-navy);
  font-size: 16px;
  font-weight: 900;
}

.workflow-tile small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.workflow-tile em {
  background: var(--doit-sky);
  width: max-content;
  color: var(--doit-navy);
  text-transform: uppercase;
  border-radius: 999px;
  align-self: end;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.workflow-tile-refresh {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--doit-navy);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  position: absolute;
  top: 14px;
  right: 14px;
  box-shadow: 0 1px 1px #15324d0a;
}

.workflow-tile-refresh:hover, .workflow-tile-refresh:focus-visible {
  border-color: #a8c5dd;
  outline: none;
}

.workbench-grid {
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.7fr) minmax(260px, .72fr);
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.training-workbench-grid {
  grid-template-columns: minmax(300px, .92fr) minmax(320px, .95fr) minmax(300px, .92fr) minmax(260px, .76fr);
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.mesh-workbench-grid {
  grid-template-columns: minmax(240px, .68fr) minmax(240px, .68fr) minmax(420px, 1.35fr) minmax(280px, .82fr);
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.mesh-workbench-grid > .workbench-panel:not(.workbench-list-panel) {
  grid-template-rows: auto auto minmax(0, 1fr);
  display: grid;
}

.workbench-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 18px 45px #15324d0f;
}

.workbench-list-panel, .workbench-main-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.workbench-main-scroll {
  align-content: start;
  min-height: 0;
  display: grid;
  overflow: auto;
}

.workbench-placeholder {
  min-height: 0;
  color: var(--muted);
  text-align: center;
  place-content: center;
  gap: 8px;
  padding: 34px;
  display: grid;
}

.workbench-placeholder strong {
  color: var(--doit-navy);
  font-size: 24px;
}

.workbench-placeholder span {
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.5;
}

.workbench-video-list {
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: auto;
}

.workbench-video-row {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: #f8fbfd;
  border-left: 4px solid #b9cde0;
  border-radius: 6px;
  gap: 5px;
  padding: 12px;
  display: grid;
}

.spatial-candidate-row {
  grid-template-columns: 88px minmax(0, 1fr);
}

.spatial-candidate-row .spatial-view-button {
  grid-column: 2;
}

.workbench-video-row.selected {
  border-left-color: var(--doit-blue);
  background: #eef4f9;
}

.spatial-thumbnail-button {
  cursor: pointer;
  background: #07121e;
  border: 1px solid #d7e2eb;
  border-radius: 6px;
  grid-row: span 2;
  width: 88px;
  height: 58px;
  padding: 0;
  overflow: hidden;
}

.spatial-thumbnail-button img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.spatial-candidate-main {
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  gap: 5px;
  padding: 0;
  display: grid;
}

.unified-scan-row .static-scan-preview, .unified-scan-row .static-scan-copy {
  cursor: default;
}

.spatial-view-button {
  border: 1px solid var(--line);
  width: max-content;
  color: var(--doit-navy);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.spatial-view-button:disabled, .spatial-membership-thumb:disabled, .spatial-membership-main:disabled, .scan-role-buttons button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.workbench-video-title {
  min-width: 0;
  color: var(--doit-navy);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.workbench-video-meta {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.workbench-video-source {
  background: var(--doit-sky);
  width: max-content;
  color: var(--doit-navy);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.workbench-video-stage {
  align-content: start;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.workbench-video-stage .custom-video-player {
  background: #0b1724;
  border-radius: 6px;
  width: 100%;
  height: clamp(360px, 48vh, 580px);
  display: block;
}

.workbench-video-stage video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.active-run-card {
  border-top: 1px solid var(--line);
  grid-template-columns: max-content minmax(180px, 1fr) minmax(160px, .8fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  display: grid;
}

.active-run-card strong {
  color: var(--doit-navy);
  font-size: 22px;
}

.active-run-card span {
  color: var(--muted);
  font-size: 13px;
}

.queue-progress {
  background: #e5edf4;
  border-radius: 999px;
  height: 8px;
  display: block;
  overflow: hidden;
}

.queue-progress span {
  border-radius: inherit;
  background: var(--doit-blue);
  height: 100%;
  display: block;
}

.review-results {
  border-top: 1px solid var(--line);
  gap: 14px;
  padding: 16px;
  display: grid;
}

.compact-review-results {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.review-complete-summary {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  display: grid;
}

.review-complete-summary div {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  padding: 10px 12px;
}

.review-complete-summary strong {
  color: var(--doit-navy);
  font-size: 20px;
  line-height: 1.1;
  display: block;
}

.review-complete-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.review-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-toolbar button {
  border: 1px solid var(--line);
  min-height: 32px;
  color: var(--doit-navy);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.workbench-modal-backdrop {
  z-index: 60;
  background: #09121c9e;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.workbench-review-modal {
  background: #fff;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(1680px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 18px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 24px 60px #09121c52;
}

.modal-review-toolbar {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  grid-template-columns: repeat(2, minmax(92px, max-content)) repeat(3, max-content) minmax(0, 1fr);
  align-items: center;
  padding: 10px;
  display: grid;
}

.modal-review-toolbar div {
  border-right: 1px solid var(--line);
  min-width: 92px;
  padding-right: 12px;
}

.modal-review-toolbar strong {
  color: var(--doit-navy);
  font-size: 18px;
  line-height: 1;
  display: block;
}

.modal-review-toolbar .primary-action {
  background: var(--doit-navy);
  color: #fff;
  border-color: #0000;
}

.modal-review-layout {
  grid-template-columns: minmax(680px, 1fr) minmax(340px, 430px);
  gap: 14px;
  min-height: 0;
  display: grid;
}

.modal-evidence-panel {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 8px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.modal-evidence-image {
  aspect-ratio: 3 / 4;
  background: #0b1724;
  place-self: center;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.modal-evidence-image img {
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.annotation-canvas-wrap {
  -webkit-user-select: none;
  user-select: none;
  place-items: center;
  min-height: 0;
  display: grid;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.annotation-canvas-wrap.draw-mode {
  cursor: crosshair;
}

.modal-evidence-image .annotation-image {
  object-fit: contain;
  pointer-events: none;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  position: static;
}

.annotation-svg {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.annotation-box {
  pointer-events: auto;
  cursor: pointer;
}

.annotation-rect {
  fill: #38bdf814;
  stroke: #38bdf8;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.annotation-box.is-active .annotation-rect {
  fill: #facc151f;
  stroke: #facc15;
  stroke-width: 3px;
}

.annotation-box.is-correct .annotation-rect {
  stroke: #22c55e;
}

.annotation-box.is-false-positive .annotation-rect {
  fill: #ef444414;
  stroke: #ef4444;
  stroke-dasharray: 6 4;
}

.annotation-box.is-wrong-class .annotation-rect {
  fill: #fb923c1a;
  stroke: #fb923c;
}

.annotation-box.is-edited .annotation-rect {
  fill: #60a5fa1f;
  stroke: #60a5fa;
}

.annotation-box.is-selected .annotation-rect {
  stroke-width: 3px;
}

.annotation-box.is-active.is-correct .annotation-rect {
  stroke: #facc15;
}

.annotation-box.is-added {
  pointer-events: none;
}

.annotation-box.is-added .annotation-rect {
  fill: #a855f71f;
  stroke: #a855f7;
  stroke-dasharray: 4 2;
}

.annotation-rect.drawing {
  fill: #f472b629;
  stroke: #f472b6;
  stroke-dasharray: 8 4;
  vector-effect: non-scaling-stroke;
}

.annotation-label {
  fill: #f8fafc;
  paint-order: stroke;
  stroke: #0f172adb;
  stroke-width: 3px;
  font: 700 12px / 1 Inter, system-ui, sans-serif;
}

.modal-evidence-image span {
  color: #fff;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}

.modal-evidence-meta {
  border-top: 1px solid var(--line);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  display: flex;
}

.modal-evidence-meta div {
  gap: 3px;
  display: grid;
}

.modal-evidence-meta span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.modal-evidence-meta strong {
  color: var(--doit-navy);
  font-size: 18px;
}

.modal-evidence-meta small {
  color: var(--muted);
  font-size: 13px;
}

.annotation-controls {
  border-top: 1px solid var(--line);
  background: #fff;
  gap: 10px;
  padding: 12px 14px 14px;
  display: grid;
}

.annotation-control-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.annotation-control-label {
  min-width: 118px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.verdict-buttons, .draw-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.verdict-buttons .primary-action, .verdict-buttons .action-link, .draw-controls .primary-action, .draw-controls .action-link, .added-box-row .danger-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.warning-action {
  color: #fff;
  background: #b45309;
}

.annotation-input {
  border: 1px solid var(--line);
  min-width: min(240px, 100%);
  min-height: 34px;
  color: var(--doit-navy);
  font: inherit;
  background: #f8fbfd;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.annotation-input.small {
  min-width: 160px;
}

.draw-label-input {
  flex: 0 220px;
}

.added-boxes-list {
  gap: 8px;
  padding-left: 128px;
  display: grid;
}

.added-box-row {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.modal-detection-list {
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding-right: 4px;
  display: grid;
  overflow: auto;
}

.modal-detection-row {
  border: 1px solid var(--line);
  width: 100%;
  min-height: 72px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  grid-template-columns: 96px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: grid;
}

.modal-detection-row.active {
  border-color: var(--doit-blue);
  box-shadow: inset 4px 0 0 var(--doit-blue);
}

.modal-detection-row.selected {
  background: #eef4f9;
}

.modal-detection-thumb {
  background: #0b1724;
  border-radius: 5px;
  place-items: center;
  width: 96px;
  height: 54px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.modal-detection-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.modal-thumb-box {
  pointer-events: none;
  background: #facc1514;
  border: 2px solid #facc15;
  min-width: 4px;
  min-height: 4px;
  position: absolute;
}

.modal-detection-thumb em {
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.modal-detection-copy {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.modal-detection-copy strong {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.modal-detection-copy small {
  color: var(--muted);
  font-size: 12px;
}

.modal-detection-index {
  min-width: 30px;
  min-height: 26px;
  color: var(--doit-navy);
  background: #e5edf4;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
}

.workbench-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  display: grid;
}

.workbench-form label {
  gap: 6px;
  display: grid;
}

.workbench-form span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.workbench-form input, .workbench-form select {
  border: 1px solid var(--line);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
}

.result-summary {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  display: grid;
  overflow: auto;
}

.result-summary div {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  padding: 12px;
}

.result-summary strong {
  color: var(--doit-navy);
  font-size: 18px;
  display: block;
}

.result-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.alignment-result-details {
  border-top: 1px solid var(--line);
  gap: 12px;
  min-height: 0;
  padding: 16px;
  display: grid;
  overflow: auto;
}

.alignment-result-details .result-summary {
  border-top: 0;
  padding: 0;
}

.alignment-matrix {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  display: flex;
  overflow-x: auto;
}

.alignment-matrix-heading {
  color: var(--muted);
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}

.alignment-matrix-heading strong {
  color: var(--doit-navy);
}

.alignment-matrix-grid {
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 4px;
  min-width: 340px;
  display: grid;
}

.alignment-matrix-grid code {
  color: var(--doit-navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 11px;
}

.alignment-matrix-empty {
  color: var(--muted);
  font-size: 12px;
}

.workbench-run-list {
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: auto;
}

.training-workbench-grid > .workbench-panel, .mesh-workbench-grid > .workbench-panel {
  min-height: 0;
  overflow: hidden;
}

.training-workbench-grid > .workbench-list-panel, .mesh-workbench-grid > .workbench-list-panel {
  display: grid;
}

.workbench-run-row {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 4px;
  padding: 12px;
  display: grid;
}

.workbench-run-row.selected {
  border-color: var(--doit-blue);
  background: #eef4f9;
}

.workbench-run-row button {
  min-width: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  gap: 4px;
  display: grid;
}

.workbench-run-row > button:last-child {
  border: 1px solid var(--line);
  color: var(--doit-navy);
  background: #fff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.workbench-run-row > button:last-child:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.spatial-run-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
}

.spatial-run-row > button:first-child {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.spatial-run-row .run-delete-button {
  color: #9f1d15;
  background: #fff5f5;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
  align-self: start;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.spatial-run-row .run-delete-button:hover {
  background: #fee4e2;
  border-color: #d92d20;
}

.dataset-package-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.dataset-package-row > a {
  align-self: center;
}

.create-app-model-panel {
  flex-direction: column;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.create-app-model-panel > .workbench-form {
  flex: none;
}

.create-app-model-panel > .result-summary {
  flex: 0 auto;
  max-height: 180px;
}

.available-models-embedded {
  border-top: 1px solid var(--line);
  flex: 220px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.available-models-embedded > div {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  display: grid;
}

.embedded-panel-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
  display: flex;
}

.embedded-panel-heading h3 {
  color: var(--doit-navy);
  font-size: 15px;
  line-height: 1.2;
}

.embedded-panel-heading p {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
}

.available-models-embedded .workbench-run-list {
  padding: 12px 16px 16px;
}

.available-models-embedded .mobile-model-row {
  grid-template-columns: minmax(0, 1fr);
}

.available-models-embedded .model-threshold-control {
  max-width: 160px;
}

.workbench-run-row strong {
  color: var(--doit-navy);
  font-size: 13px;
}

.workbench-run-row span, .workbench-run-row small {
  color: var(--muted);
  font-size: 12px;
}

.mobile-model-row {
  grid-template-columns: minmax(0, 1fr) 112px max-content;
  align-items: start;
  gap: 10px;
}

.mobile-model-summary {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.mobile-model-summary strong, .mobile-model-summary span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mobile-model-meta, .mobile-model-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.model-spatial-areas {
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.model-spatial-areas span, .model-spatial-areas.empty {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f8fafc;
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.model-spatial-areas.empty {
  width: fit-content;
}

.model-threshold-control {
  gap: 4px;
  display: grid;
}

.model-threshold-control span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.model-threshold-control input, .model-threshold-control select {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--doit-navy);
  background: #fff;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 900;
}

.workbench-detector-select {
  min-width: 230px;
}

.mobile-model-actions button {
  border: 1px solid var(--line);
  color: var(--doit-navy);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-model-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.model-class-controls {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-width: 0;
  display: grid;
}

.model-class-controls small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.model-class-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  display: grid;
}

.model-class-row.disabled {
  background: #f4f7fa;
}

.model-class-toggle {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.model-class-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.model-class-toggle input:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.model-class-toggle span {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.model-class-row.disabled .model-class-toggle span {
  color: var(--muted);
}

.model-class-color {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  width: 42px;
  height: 30px;
  padding: 2px;
}

.status-pill {
  width: max-content;
  color: var(--doit-navy);
  text-transform: uppercase;
  background: #e5edf4;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.status-pill.running, .status-pill.canceling {
  color: #92400e;
  background: #fef3c7;
}

.status-pill.completed, .status-pill.activated {
  color: #166534;
  background: #dcfce7;
}

.status-pill.failed, .status-pill.canceled {
  color: #991b1b;
  background: #fee2e2;
}

.side-section-header {
  border-top: 1px solid var(--line);
}

.room-browser, .room-workspace {
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.room-browser {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  box-shadow: 0 18px 45px #15324d0f;
}

.room-browser-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 18px;
  display: flex;
}

.room-browser-header h2, .room-workspace-header h2 {
  color: var(--doit-navy);
  margin: 0;
}

.room-browser-header p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
}

.room-create-control {
  grid-template-columns: max-content minmax(220px, 320px) max-content;
  gap: 8px;
  display: grid;
}

.room-create-control input, .room-title-editor input {
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.room-create-control button, .scan-role-buttons button {
  border: 1px solid var(--line);
  min-height: 38px;
  color: var(--doit-navy);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.room-create-control button:disabled, .scan-role-buttons button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.room-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  display: grid;
  overflow: auto;
}

.room-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--doit-blue);
  min-height: 142px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: #f8fbfd;
  border-radius: 8px;
  gap: 8px;
  padding: 16px;
  display: grid;
}

.room-card strong {
  overflow-wrap: anywhere;
  color: var(--doit-navy);
  font-size: 18px;
  font-weight: 900;
}

.room-card span, .room-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.room-card-muted {
  cursor: default;
  background: #fff;
  border-left-color: #b9cde0;
}

.room-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
}

.room-workspace {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0;
}

.room-workspace-header {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: end;
  gap: 14px;
  padding: 14px;
  display: grid;
  box-shadow: 0 18px 45px #15324d0f;
}

.room-title-editor {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.room-title-editor input {
  width: min(520px, 100%);
  color: var(--doit-navy);
  font-size: 18px;
  font-weight: 900;
}

.room-title-editor span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.room-header-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  display: flex;
}

.room-metrics-strip {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  display: grid;
}

.room-metric-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
}

.room-metric-tile strong {
  color: var(--doit-navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  display: block;
}

.room-metric-tile span {
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
  display: block;
}

.workspace-tabs {
  border-bottom: 2px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  display: flex;
}

.workspace-tab {
  height: 44px;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: .01em;
  background: none;
  border: none;
  border-bottom: 3px solid #0000;
  border-radius: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: -2px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  transition: color .12s, border-color .12s;
  display: inline-flex;
}

.workspace-tab:hover {
  color: var(--doit-navy);
}

.workspace-tab.active {
  color: var(--doit-navy);
  border-bottom-color: var(--accent);
}

.workspace-tab-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
}

.workspace-tab-content {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.sessions-tab-panel, .room-configuration-panel {
  flex: 1;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.room-detector-list {
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: auto;
}

.room-detector-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: grid;
}

.room-detector-row div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.room-detector-row strong, .room-detector-row span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.room-detector-row strong {
  color: var(--doit-navy);
  font-size: 14px;
  font-weight: 900;
}

.room-detector-row span, .room-detector-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.room-model-modal {
  width: min(760px, 100vw - 28px);
}

.room-model-group-list {
  gap: 12px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: auto;
}

.room-model-group {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.room-model-group header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.room-model-group header div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.room-model-group strong {
  color: var(--doit-navy);
  font-size: 14px;
  font-weight: 900;
}

.room-model-group span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.room-model-version-list {
  gap: 7px;
  display: grid;
}

.room-model-version-row {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  display: grid;
}

.room-model-version-row.paired {
  background: #eef7f8;
  border-color: #0e749061;
}

.room-model-version-row span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.room-model-version-row em, .room-model-version-row small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.alignment-tab-grid {
  flex: 1;
  grid-template-columns: minmax(280px, .9fr) minmax(260px, 1.1fr);
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: hidden;
}

.alignment-controls-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.alignment-controls-panel .primary-action {
  width: calc(100% - 28px);
  margin: 12px 14px 0;
}

.alignment-go-sessions {
  margin: 8px 14px 0;
}

.alignment-tab-right {
  grid-template-rows: minmax(0, 1fr) minmax(200px, .7fr);
  gap: 14px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.room-workspace-grid {
  grid-template-rows: minmax(200px, .95fr) minmax(180px, .72fr);
  grid-template-columns: minmax(300px, 1.15fr) minmax(280px, .95fr) minmax(220px, .72fr);
  gap: 14px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.room-scan-panel, .room-alignment-panel, .room-path-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.room-scan-panel {
  grid-area: 1 / 1 / 3 / 2;
}

.room-alignment-panel {
  grid-area: 1 / 2 / 2 / 3;
}

.room-path-panel {
  grid-area: 2 / 2 / 3 / 3;
}

.room-workspace-grid > .workbench-list-panel {
  grid-area: 1 / 3 / 3 / 4;
  min-height: 0;
}

.room-path-comparison {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: hidden;
}

.room-path-launcher {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  display: grid;
}

.room-path-launcher div {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  align-content: center;
  gap: 5px;
  min-height: 0;
  padding: 14px;
  display: grid;
}

.room-path-launcher strong {
  color: var(--doit-navy);
  font-size: 16px;
}

.room-path-launcher span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.room-path-modal-backdrop {
  z-index: 95;
  background: #07121eb8;
  place-items: center;
  padding: 28px;
  display: grid;
  position: fixed;
  inset: 0;
}

.room-path-modal {
  background: var(--panel);
  border: 1px solid #d7e2eb4d;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1540px, 100%);
  height: min(920px, 100vh - 56px);
  min-height: 0;
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 80px #07121e57;
}

.room-path-modal-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  display: flex;
}

.room-path-modal-header h2 {
  color: var(--doit-navy);
  font-size: 22px;
  line-height: 1.15;
}

.room-path-modal-header span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.room-path-modal .room-path-comparison {
  padding: 18px;
}

.room-path-comparison svg {
  background: #0c1524;
  border: 1px solid #0d263b24;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.room-path-grid-bg {
  fill: #0c1524;
}

.room-path-grid-line {
  stroke: #b2cde01f;
  stroke-width: 1px;
}

.room-path-floor {
  fill: #14b8a629;
  stroke: #cfe8f5c7;
  stroke-width: 2.2px;
}

.room-session-path {
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px #00000061);
}

.room-session-start {
  fill: #fff;
  stroke: #0d263bb8;
  stroke-width: 2px;
}

.room-session-end {
  stroke: #fff;
  stroke-width: 2px;
}

.room-path-legend {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-height: 0;
  display: grid;
}

.room-path-legend-item {
  border: 1px solid var(--line);
  color: var(--doit-navy);
  background: #f8fbfd;
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  text-decoration: none;
  display: grid;
}

.room-path-legend-item.disabled {
  opacity: .56;
}

.room-path-legend-item label {
  cursor: pointer;
  grid-template-columns: auto 10px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: grid;
}

.room-path-legend-item input {
  width: 15px;
  height: 15px;
  accent-color: var(--doit-blue);
  margin: 0;
}

.room-path-legend-item label span {
  border-radius: 999px;
  width: 10px;
  height: 28px;
}

.room-path-legend-item strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.room-path-legend-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.room-path-legend-item a {
  color: var(--doit-blue);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.unified-scan-list, .available-scan-list {
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  display: grid;
  overflow: auto;
}

.room-scan-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  display: flex;
}

.unified-scan-row {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-left: 4px solid #b9cde0;
  border-radius: 7px;
  grid-template-columns: 88px minmax(0, 1fr) minmax(170px, max-content) 88px max-content;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: grid;
}

.unified-scan-row.reference {
  border-left-color: var(--doit-blue);
}

.unified-scan-row.query {
  box-shadow: inset 0 0 0 2px #f59e0b42;
}

.unified-scan-row.master {
  background: linear-gradient(90deg, #14b8a614, #f8fbfd 40%);
  border-color: #14b8a673;
}

.scan-role-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.scan-role-buttons button {
  min-height: 34px;
  padding: 0 9px;
}

.scan-role-buttons button.selected {
  border-color: var(--doit-navy);
  background: var(--doit-navy);
  color: #fff;
}

.scan-role-buttons button.selected.master {
  background: #0f766e;
  border-color: #0f766e;
}

.master-mesh-pill {
  color: #0f766e;
  vertical-align: middle;
  background: #14b8a61f;
  border: 1px solid #14b8a647;
  border-radius: 999px;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
}

.room-mesh-intent {
  padding-bottom: 0;
}

.spatial-modal-backdrop {
  z-index: 70;
  background: #09121c9e;
  place-items: center;
  padding: 32px;
  display: grid;
  position: fixed;
  inset: 0;
}

.available-scans-modal {
  background: #fff;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  min-height: 0;
  max-height: min(720px, 100vh - 64px);
  display: grid;
  overflow: hidden;
  box-shadow: 0 30px 80px #06132059;
}

.available-scans-modal-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 18px 20px;
  display: flex;
}

.available-scans-modal-header h2 {
  color: var(--doit-navy);
  margin: 0;
  font-size: 24px;
}

.available-scans-modal-header span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.spatial-id-manager {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  min-height: 280px;
  max-height: 34vh;
  display: grid;
  overflow: hidden;
  box-shadow: 0 18px 45px #15324d0f;
}

.spatial-id-sidebar {
  border-right: 1px solid var(--line);
  background: #f8fbfd;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  display: grid;
}

.compact-heading {
  border: 0;
  padding: 0 0 10px;
}

.spatial-id-list {
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding-right: 2px;
  display: grid;
  overflow: auto;
}

.spatial-id-card, .spatial-scope-empty, .spatial-create-control {
  border: 1px solid var(--line);
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: #fff;
  border-radius: 7px;
  align-content: center;
  gap: 5px;
  padding: 10px 12px;
  display: grid;
}

.spatial-id-card {
  cursor: pointer;
}

.spatial-id-card.selected {
  border-color: var(--doit-blue);
  box-shadow: inset 3px 0 0 var(--doit-blue);
  background: #eef4f9;
}

.spatial-id-card strong, .spatial-id-editor strong, .spatial-membership-heading strong {
  color: var(--doit-navy);
  font-size: 14px;
  font-weight: 900;
}

.spatial-id-card span, .spatial-scope-empty, .spatial-id-editor span, .spatial-membership-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spatial-create-control {
  grid-template-columns: minmax(0, 1fr) max-content;
  margin-top: 10px;
}

.spatial-create-control input, .spatial-id-editor input {
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.spatial-create-control input {
  min-height: 34px;
}

.spatial-create-control button {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--doit-navy);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.spatial-create-control button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.spatial-id-detail {
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 14px;
  display: grid;
}

.spatial-id-editor {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding-bottom: 12px;
  display: flex;
}

.spatial-id-editor > div:first-child {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.spatial-id-editor input {
  width: min(420px, 100%);
  min-height: 38px;
}

.spatial-id-editor-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  display: flex;
}

.spatial-membership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  padding-top: 12px;
  display: grid;
}

.spatial-membership-panel {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 7px;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.spatial-membership-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.spatial-membership-list {
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  display: grid;
  overflow: auto;
}

.spatial-membership-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  grid-template-columns: 72px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: grid;
}

.spatial-membership-thumb {
  cursor: pointer;
  background: #07121e;
  border: 1px solid #d7e2eb;
  border-radius: 6px;
  width: 72px;
  height: 48px;
  padding: 0;
  overflow: hidden;
}

.spatial-membership-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.spatial-membership-main {
  min-width: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  gap: 4px;
  padding: 0;
  display: grid;
}

.spatial-membership-main strong, .spatial-membership-main span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.spatial-membership-main strong {
  color: var(--doit-navy);
  font-size: 13px;
  font-weight: 900;
}

.spatial-membership-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-action {
  min-height: 32px;
  padding: 0 10px;
}

.spatial-id-empty-detail {
  min-height: 0;
  color: var(--muted);
  text-align: center;
  place-content: center;
  gap: 8px;
  display: grid;
}

.spatial-id-empty-detail strong {
  color: var(--doit-navy);
  font-size: 18px;
}

.spatial-id-empty-detail span {
  max-width: 56ch;
  font-size: 13px;
  line-height: 1.5;
}

.mesh-intent {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  display: grid;
}

.mesh-intent div {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  padding: 14px;
}

.mesh-intent strong {
  color: var(--doit-navy);
  font-size: 14px;
  display: block;
}

.mesh-intent span {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
  display: block;
}

.mesh-modal-backdrop {
  z-index: 90;
  background: #07121eb8;
  place-items: center;
  padding: 28px;
  display: grid;
  position: fixed;
  inset: 0;
}

.mesh-modal {
  background: var(--panel);
  border: 1px solid #d7e2eb4d;
  border-radius: 8px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1320px, 100%);
  height: min(860px, 100vh - 56px);
  min-height: 0;
  display: grid;
  overflow: hidden;
  box-shadow: 0 28px 80px #07121e57;
}

.mesh-modal-header, .mesh-modal-footer {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
}

.mesh-modal-header h2 {
  color: var(--doit-navy);
  font-size: 21px;
  line-height: 1.2;
}

.mesh-modal-header span, .mesh-modal-footer {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mesh-modal-actions {
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.mesh-mode-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}

.mesh-mode-toggle button {
  border: 0;
  border-right: 1px solid var(--line);
  min-height: 36px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  background: none;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.mesh-mode-toggle button:last-child {
  border-right: 0;
}

.mesh-mode-toggle button.active {
  background: var(--doit-navy);
  color: #fff;
}

.mesh-viewer-controls {
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  padding: 10px 18px;
}

.mesh-viewer-controls label {
  color: var(--muted);
  grid-template-columns: max-content minmax(180px, 1fr) 48px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.mesh-viewer-controls input[type="range"] {
  width: 100%;
  accent-color: var(--doit-blue);
}

.mesh-viewer-controls strong {
  color: var(--doit-navy);
  text-align: right;
}

.mesh-modal-stage {
  background-color: #07121e;
  background-image: linear-gradient(#ffffff09 1px, #0000 1px), linear-gradient(90deg, #ffffff09 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 34px 34px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.mesh-slice-floorplan-popup {
  z-index: 3;
  background: #fffffff5;
  border: 1px solid #d7e2eb57;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(320px, 100% - 36px);
  max-height: min(340px, 100% - 36px);
  display: grid;
  position: absolute;
  bottom: 18px;
  right: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px #07121e47;
}

.mesh-slice-floorplan-header, .mesh-slice-floorplan-footer {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.mesh-slice-floorplan-header {
  border-bottom: 1px solid var(--line);
}

.mesh-slice-floorplan-header strong {
  color: var(--doit-navy);
  font-size: 13px;
  line-height: 1.25;
  display: block;
}

.mesh-slice-floorplan-header .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

.mesh-slice-floorplan-stage {
  background: #f4f8fb;
  place-items: center;
  min-height: 220px;
  padding: 8px;
  display: grid;
}

.mesh-slice-floorplan-stage svg {
  width: 100%;
  height: auto;
}

.mesh-slice-floorplan-grid {
  stroke: #0c2c4a14;
  stroke-width: 1px;
}

.mesh-slice-floorplan-fill {
  fill: #2f8f702e;
}

.mesh-slice-floorplan-detail {
  fill: none;
  stroke: #1c48706b;
  stroke-width: .75px;
  vector-effect: non-scaling-stroke;
}

.mesh-slice-floorplan-stroke {
  fill: none;
  stroke: #2f8f70;
  stroke-width: 2px;
}

.mesh-slice-floorplan-empty {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.mesh-slice-floorplan-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
}

.mesh-slice-floorplan-actions {
  border-top: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
}

.mesh-slice-floorplan-actions .primary-action {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.mesh-modal-actions > button.active {
  color: var(--doit-navy);
  background: #2f8f701f;
  border-radius: 6px;
}

.mesh-viewer-canvas {
  cursor: grab;
  width: 100%;
  height: 100%;
  display: block;
}

.mesh-viewer-canvas:active {
  cursor: grabbing;
}

.mesh-viewer-overlay {
  color: #fff;
  text-align: center;
  background: #07121e9e;
  place-content: center;
  gap: 8px;
  display: grid;
  position: absolute;
  inset: 0;
}

.mesh-viewer-overlay strong {
  font-size: 22px;
}

.mesh-viewer-overlay span {
  color: #d7e2eb;
  font-size: 13px;
}

.mesh-modal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  flex-wrap: wrap;
}

.qr-modal-backdrop {
  z-index: 80;
  background: #09121c9e;
  place-items: center;
  padding: 32px;
  display: grid;
  position: fixed;
  inset: 0;
}

.qr-modal {
  background: #fff;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(840px, 100%);
  max-height: min(760px, 100vh - 64px);
  display: grid;
  overflow: hidden;
  box-shadow: 0 30px 80px #06132059;
}

.qr-modal-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 18px 20px;
  display: flex;
}

.qr-modal-header h2 {
  color: var(--doit-navy);
  margin: 0;
  font-size: 24px;
}

.qr-modal-header span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.qr-modal-body {
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 20px;
  display: grid;
}

.qr-code-frame {
  border: 1px solid var(--line);
  min-height: 360px;
  color: var(--muted);
  background: #f8fbfd;
  border-radius: 8px;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}

.qr-code-frame img {
  background: #fff;
  border: 1px solid #d7e2eb;
  border-radius: 6px;
  width: min(360px, 100%);
  height: auto;
  display: block;
}

.qr-safe-panel {
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  display: grid;
}

.qr-sync-id {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 7px;
  gap: 4px;
  padding: 12px;
  display: grid;
}

.qr-sync-id span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.qr-sync-id strong {
  overflow-wrap: anywhere;
  color: var(--doit-navy);
  font-size: 14px;
  font-weight: 900;
}

.qr-status-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 14px;
}

.qr-status-card h3 {
  color: var(--doit-navy);
  margin: 2px 0 6px;
  font-size: 18px;
}

.qr-status-card p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.qr-status-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.qr-status-item {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 7px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.qr-status-item strong, .qr-status-item span {
  display: block;
}

.qr-status-item strong {
  color: var(--doit-navy);
  font-size: 14px;
  font-weight: 900;
}

.qr-status-item div > span {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
}

.qr-status-icon {
  width: 34px;
  height: 34px;
  color: var(--doit-navy);
  text-align: center;
  background: #e4eef6;
  border-radius: 999px;
  place-items: center;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  display: grid;
}

.qr-status-item.active .qr-status-icon {
  border: 3px solid #d7e7f3;
  border-top-color: var(--doit-blue);
  background: none;
  animation: .85s linear infinite qr-status-spin;
}

.qr-status-item.complete {
  background: #f2fbf6;
  border-color: #b8dfc9;
}

.qr-status-item.complete .qr-status-icon {
  color: #fff;
  background: #1b8c4c;
}

.qr-status-item.failed {
  background: #fff5f5;
  border-color: #f0b5b5;
}

.qr-status-item.failed .qr-status-icon {
  color: #fff;
  background: #b42318;
}

.qr-status-error {
  color: #8a1f17;
  background: #fff5f5;
  border: 1px solid #f0b5b5;
  border-radius: 7px;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

@keyframes qr-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.session-list-hero h2, .map-header h3 {
  color: var(--doit-navy);
  margin: 0;
}

.session-list-hero h2 {
  font-size: 24px;
}

.session-list-hero p, .map-header span, .empty-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.small-button {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--doit-ink);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
}

.primary-small-button {
  border-color: var(--doit-navy);
  background: var(--doit-navy);
  color: #fff;
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.session-list-page {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 18px;
  display: grid;
  overflow: hidden;
}

.session-list-hero {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: start;
  gap: 22px;
  min-width: 0;
  padding-bottom: 16px;
  display: flex;
}

.session-list-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  display: flex;
}

.session-video-list {
  align-content: start;
  gap: 8px;
  min-height: 0;
  display: grid;
  overflow: auto;
}

.session-video-card {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 8px;
  grid-template-columns: 176px minmax(0, 1fr) minmax(150px, auto);
  align-items: stretch;
  gap: 14px;
  padding: 10px;
  display: grid;
}

.session-video-card:hover, .session-video-card:focus-visible {
  background: #f8fbfd;
  border-color: #9fbad1;
  outline: none;
}

.session-video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #74b7df2e, #14b8a624), #0b1724;
  border-radius: 8px;
  place-items: center;
  min-height: 96px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.session-video-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.session-video-thumb:before {
  content: "";
  background-color: #0000;
  background-image: linear-gradient(to right, #ffffff14 1px, #0000 1px), linear-gradient(#ffffff14 1px, #0000 1px);
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
  background-size: 26px 26px;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  position: absolute;
  inset: 0;
}

.session-video-thumb.has-image:before {
  background: linear-gradient(#0000 42%, #09121c57 100%);
}

.play-mark {
  filter: drop-shadow(0 8px 18px #00000040);
  z-index: 1;
  border-top: 15px solid #0000;
  border-bottom: 15px solid #0000;
  border-left: 24px solid #fff;
  width: 0;
  height: 0;
}

.session-video-thumb.has-image .play-mark {
  display: none;
}

.session-video-thumb em {
  z-index: 1;
  color: #fff;
  background: #09121cd1;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.thumbnail-fallback {
  z-index: 1;
  color: #ffffffd6;
  font-size: 12px;
  font-weight: 800;
}

.session-video-copy {
  align-content: center;
  gap: 5px;
  min-width: 0;
  display: grid;
}

.session-video-copy strong {
  min-width: 0;
  color: var(--doit-navy);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.25;
}

.session-video-copy span, .session-video-copy small, .session-video-meta em {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-style: normal;
}

.session-video-meta {
  align-content: center;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  display: grid;
}

.session-video-meta em {
  border: 1px solid var(--line);
  max-width: 100%;
  color: var(--doit-navy);
  overflow-wrap: anywhere;
  background: #f8fbfd;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 800;
}

.session-video-meta em.room-location-pill {
  color: #0f766e;
  background: #14b8a61f;
  border-color: #14b8a64d;
}

.error-banner {
  color: #b42318;
  background: #fce8e6;
  border: 1px solid #f3b8b3;
  border-radius: 8px;
  margin: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.session-detail {
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  display: grid;
  overflow: hidden;
}

.session-hero {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px 16px;
  display: grid;
}

.session-hero h2 {
  color: var(--doit-navy);
  margin: 0;
  font-size: 22px;
}

.session-hero p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.session-hero-title {
  min-width: 0;
}

.session-hero-title h2, .session-hero-title p {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.session-hero-aside {
  justify-content: end;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.session-hero-actions {
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.metadata-strip {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  display: grid;
}

.metadata-strip div {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 6px;
  padding: 9px 10px;
}

.metadata-strip dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.metadata-strip dd {
  color: var(--doit-navy);
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.session-hero .session-hero-metadata {
  grid-template-columns: repeat(3, max-content);
  width: max-content;
}

.session-hero .session-hero-metadata div {
  min-width: 112px;
  padding: 8px 10px;
}

.metadata-link-button {
  color: var(--doit-blue);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 900;
}

.video-sync-grid {
  --session-media-height: 100%;
  grid-template-columns: minmax(520px, 1.15fr) minmax(420px, .85fr);
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.video-panel {
  min-width: 0;
  height: var(--session-media-height);
  border: 1px solid var(--line);
  background: #0b1724;
  border-radius: 8px;
  place-items: center;
  min-height: 0;
  display: grid;
  position: relative;
  overflow: hidden;
}

.video-panel video {
  object-fit: contain;
  background: #0b1724;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.video-panel .custom-video-player {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.custom-video-player {
  background: #0b1724;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.custom-video-player video {
  cursor: pointer;
  object-fit: contain;
  background: #0b1724;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: block;
}

.video-loading-state {
  z-index: 1;
  color: #ffffffdb;
  letter-spacing: 0;
  text-transform: uppercase;
  background: radial-gradient(circle, #142b409e, #08131fe0), #0b1724;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  position: absolute;
  inset: 0;
}

.video-controls {
  z-index: 2;
  background: #08131fdb;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  grid-template-columns: max-content minmax(160px, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: grid;
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  box-shadow: 0 14px 36px #0206175c;
}

.video-control-button {
  color: #fff;
  cursor: pointer;
  min-width: 34px;
  min-height: 34px;
  font: inherit;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  place-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-grid;
}

.video-control-button.icon {
  width: 38px;
  padding: 0;
}

.video-control-button.primary {
  color: var(--doit-navy);
  background: #fff;
  border-color: #bfdbfe52;
}

.video-control-button:disabled {
  cursor: default;
  opacity: .42;
}

.video-control-button svg {
  color: currentColor;
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.video-scrubber {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: grid;
}

.video-scrubber span {
  color: #ffffffc7;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 900;
}

.video-scrubber input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--doit-blue);
  cursor: pointer;
}

.map-panel {
  min-width: 0;
  height: var(--session-media-height);
  border: 1px solid var(--line);
  background: #0b1724;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  display: grid;
  overflow: hidden;
}

.map-panel.empty-map {
  color: #ffffffc7;
  text-align: center;
  place-items: center;
}

.map-header {
  color: #fff;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.map-header h3 {
  color: #fff;
}

.map-header span {
  color: #ffffffb8;
}

.map-panel svg {
  background-color: #111827;
  background-image: linear-gradient(to right, #ffffff14 1px, #0000 1px), linear-gradient(#ffffff14 1px, #0000 1px), none;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 32px 32px;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.floor-fill {
  fill: #14b8a629;
}

.floor-stroke {
  fill: none;
  stroke: #f0fdfad1;
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.path-full {
  fill: none;
  stroke: #94a3b88c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.path-elapsed {
  fill: none;
  stroke: #74b7df;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.detection-dot {
  opacity: 1;
}

.detection-dot.clickable {
  cursor: pointer;
  outline: none;
}

.detection-hit-area {
  fill: #0000;
  stroke: #0000;
}

.detection-ring {
  fill: #fbbf245c;
  stroke: #fbbf24;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 8px #fbbf2461);
}

.detection-core {
  fill: #fbbf24;
  stroke: #111827;
  stroke-width: 2px;
}

.detection-dot.upcoming {
  opacity: .78;
}

.detection-dot.active .detection-ring {
  fill: #b423185c;
  stroke: #b42318;
  filter: drop-shadow(0 0 10px #b4231870);
}

.detection-dot.active .detection-core {
  fill: #b42318;
}

.detection-dot.selected .detection-ring, .detection-dot:focus-visible .detection-ring {
  fill: #74b7df47;
  stroke: #74b7df;
  stroke-width: 4px;
}

.detection-dot.selected .detection-core, .detection-dot:focus-visible .detection-core {
  fill: #fff;
  stroke: #74b7df;
  stroke-width: 2.5px;
}

.start-marker {
  fill: #22c55e;
  stroke: #052e16;
  stroke-width: 2px;
}

.end-marker {
  fill: #b42318;
  stroke: #450a0a;
  stroke-width: 2px;
}

.current-marker {
  fill: #f59e0b;
  stroke: #fff7ed;
  stroke-width: 2.5px;
}

.frame-modal-backdrop {
  z-index: 50;
  background: #09121c9e;
  place-items: center;
  padding: 32px;
  display: grid;
  position: fixed;
  inset: 0;
}

.frame-modal {
  background: #fff;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(1180px, 100vw - 64px);
  max-height: calc(100vh - 64px);
  padding: 18px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 24px 60px #09121c52;
}

.session-room-modal-backdrop {
  z-index: 55;
  background: #09121c9e;
  place-items: center;
  padding: 28px;
  display: grid;
  position: fixed;
  inset: 0;
}

.session-room-modal {
  background: #fff;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  gap: 16px;
  width: min(880px, 100%);
  max-height: min(720px, 100vh - 56px);
  padding: 18px;
  display: grid;
  overflow: auto;
  box-shadow: 0 24px 60px #09121c52;
}

.session-room-source {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 8px;
  gap: 3px;
  padding: 12px;
  display: grid;
}

.session-room-source span, .session-room-source small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.session-room-source span {
  text-transform: uppercase;
}

.session-room-source strong {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  overflow: hidden;
}

.session-room-modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.session-room-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-content: start;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.session-room-option h4 {
  color: var(--doit-navy);
  margin: 0;
  font-size: 16px;
}

.session-room-option p, .session-room-option small {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.session-room-option select, .session-room-option input {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  min-height: 38px;
  color: var(--doit-navy);
  font: inherit;
  background: #f8fbfd;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.session-room-modal-message {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
}

.signoff-modal {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(1460px, 100vw - 36px);
  max-height: calc(100vh - 36px);
  padding: 16px;
  overflow: hidden;
}

.signoff-summary {
  border: 1px solid var(--line);
  background: #f8fbfd;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr) minmax(180px, .7fr);
  gap: 8px;
  padding: 10px;
  display: grid;
}

.signoff-summary div {
  background: #fff;
  border: 1px solid #d9e6f1;
  border-radius: 6px;
  min-width: 0;
  padding: 9px 10px;
}

.signoff-summary span, .signoff-field span, .signoff-section-heading p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signoff-summary strong {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 900;
  display: block;
  overflow: hidden;
}

.signoff-body {
  grid-template-columns: minmax(640px, 1fr) minmax(360px, 390px);
  gap: 12px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.signoff-section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 13px;
  display: grid;
  overflow: auto;
}

.signoff-section-heading h4 {
  color: var(--doit-navy);
  font-size: 16px;
}

.signoff-section-heading p {
  margin-top: 3px;
}

.signoff-choice-list {
  gap: 9px;
  display: grid;
}

.signoff-choice-list.compact {
  gap: 8px;
}

.signoff-choice {
  background: #f8fbfd;
  border: 1px solid #d9e6f1;
  border-radius: 8px;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  display: grid;
}

.signoff-choice.compact {
  padding: 8px;
}

.signoff-choice legend {
  color: var(--doit-navy);
  padding: 0 3px;
  font-size: 12px;
  font-weight: 900;
}

.signoff-choice-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  display: grid;
}

.signoff-choice-options label, .signoff-attestation {
  min-width: 0;
  color: var(--doit-navy);
  cursor: pointer;
  background: #fff;
  border: 1px solid #d4e2ee;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
}

.signoff-choice.compact .signoff-choice-options {
  grid-template-columns: 1fr;
}

.signoff-choice.compact .signoff-choice-options label {
  padding: 7px 8px;
}

.signoff-choice-options input, .signoff-attestation input {
  accent-color: var(--doit-blue);
}

.signoff-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.signoff-body .signoff-section:last-child .signoff-field-grid {
  grid-template-columns: 1fr;
}

.signoff-field {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.signoff-field input, .signoff-field select, .signoff-field textarea {
  width: 100%;
  min-width: 0;
  color: var(--doit-navy);
  font: inherit;
  background: #fff;
  border: 1px solid #cbdbea;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 800;
}

.signoff-field textarea {
  resize: vertical;
}

.signoff-attestation {
  align-items: start;
}

.signoff-signed-state {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  gap: 3px;
  padding: 10px 12px;
  display: grid;
}

.signoff-signed-state span {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.signoff-signed-state strong {
  color: #14532d;
  font-size: 14px;
  font-weight: 900;
}

.signoff-signed-state small {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.detection-signoff-section {
  min-height: 0;
}

.signoff-detection-list {
  align-content: start;
  gap: 9px;
  min-height: 0;
  display: grid;
}

.signoff-detection-card {
  background: #f8fbfd;
  border: 1px solid #d9e6f1;
  border-radius: 8px;
  grid-template-rows: auto auto;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  display: grid;
}

.signoff-detection-preview {
  color: #fff;
  cursor: zoom-in;
  background: #0b1724;
  border: 0;
  border-radius: 6px;
  place-items: center;
  width: 140px;
  height: 90px;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  overflow: hidden;
}

.signoff-detection-preview:disabled {
  cursor: default;
}

.signoff-detection-preview:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2d75b259;
}

.signoff-detection-preview img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.signoff-detection-copy {
  align-content: center;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.signoff-detection-copy strong {
  color: var(--doit-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.signoff-detection-copy span, .signoff-empty-detections {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signoff-detection-options {
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  display: grid;
}

.signoff-detection-options label {
  min-width: 0;
  color: var(--doit-navy);
  cursor: pointer;
  background: #fff;
  border: 1px solid #d4e2ee;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
}

.signoff-detection-options input {
  accent-color: var(--doit-blue);
}

.signoff-empty-detections {
  background: #f8fbfd;
  border: 1px dashed #cbdbea;
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.signoff-footer {
  background: #f8fbfd;
  border: 1px solid #cbdbea;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.signoff-footer span, .signoff-message {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signoff-message {
  margin: 0;
}

.signature-modal-backdrop {
  z-index: 94;
  background: #09121cad;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.signature-modal {
  background: #fff;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  gap: 14px;
  width: min(460px, 100vw - 48px);
  padding: 16px;
  display: grid;
  box-shadow: 0 28px 70px #09121c5c;
}

.signature-modal header, .signature-modal footer {
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  display: flex;
}

.signature-modal header div {
  gap: 2px;
  display: grid;
}

.signature-modal header span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.signature-modal h4 {
  color: var(--doit-navy);
  font-size: 20px;
}

.signature-modal p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.signature-modal footer {
  justify-content: end;
  align-items: center;
}

.signoff-image-lightbox {
  z-index: 90;
  background: #09121cb8;
  place-items: center;
  padding: 34px;
  display: grid;
  position: fixed;
  inset: 0;
}

.signoff-image-dialog {
  background: #fff;
  border: 1px solid #ffffff2e;
  border-radius: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1180px, 100vw - 68px);
  max-height: calc(100vh - 68px);
  padding: 14px;
  display: grid;
  box-shadow: 0 28px 70px #09121c5c;
}

.signoff-image-dialog header {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  display: flex;
}

.signoff-image-dialog header div {
  gap: 3px;
  display: grid;
}

.signoff-image-dialog header span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.signoff-image-dialog header strong {
  color: var(--doit-navy);
  font-size: 18px;
  font-weight: 900;
}

.signoff-image-dialog header small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signoff-image-stage {
  background: #0b1724;
  border-radius: 8px;
  place-items: center;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.signoff-image-stage img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 180px);
  display: block;
}

.frame-modal-header {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  display: flex;
}

.frame-modal-header span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.frame-modal-header h3 {
  color: var(--doit-navy);
  margin: 3px 0 0;
  font-size: 22px;
}

.modal-close-button {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--doit-ink);
  cursor: pointer;
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.frame-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: minmax(320px, .6fr) minmax(220px, .4fr);
  align-items: stretch;
  display: grid;
  overflow: hidden;
}

.frame-card.selected {
  background: #f8fbfd;
}

.frame-evidence-card {
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.frame-evidence-card .frame-image-shell {
  aspect-ratio: auto;
  min-height: clamp(260px, 100vh - 240px, 620px);
}

.frame-evidence-card .frame-image-shell img, .frame-evidence-card .frame-image-shell video {
  object-fit: contain;
}

.frame-evidence-card .frame-card-body {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
  align-content: center;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
}

.frame-image-shell {
  aspect-ratio: 16 / 10;
  background: #0b1724;
  width: 100%;
}

.frame-image-shell img, .frame-image-shell video, .frame-placeholder {
  object-fit: cover;
  background: #0b1724;
  width: 100%;
  height: 100%;
  display: block;
}

.frame-placeholder {
  color: #fff;
  place-items: center;
  font-size: 13px;
  display: grid;
}

.frame-card-body {
  align-content: center;
  gap: 3px;
  padding: 16px;
  display: grid;
}

.frame-card strong {
  color: var(--doit-navy);
}

.frame-card span, .frame-card small {
  color: var(--muted);
  font-size: 13px;
}

.empty-state.inline {
  max-width: none;
  min-height: 260px;
}

@media (max-width: 1180px) {
  .workbench-grid {
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
    align-content: start;
    overflow: auto;
  }

  .training-workbench-grid, .mesh-workbench-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    align-content: start;
    overflow: auto;
  }

  .room-workspace-grid {
    grid-template-rows: minmax(250px, .9fr) minmax(230px, .72fr);
    grid-template-columns: minmax(420px, 1fr) minmax(320px, .84fr);
  }

  .room-workspace-grid > .workbench-list-panel {
    grid-area: 1 / 2 / 3 / 3;
  }

  .room-alignment-panel {
    grid-area: 2 / 1 / 3 / 2;
  }

  .room-scan-panel {
    grid-area: 1 / 1 / 2 / 2;
  }

  .room-path-panel {
    grid-area: 2 / 2 / 3 / 3;
  }

  .unified-scan-row {
    grid-template-columns: 88px minmax(0, 1fr) minmax(150px, max-content);
  }

  .unified-scan-row .spatial-view-button, .unified-scan-row .compact-action {
    grid-column: auto;
  }

  .spatial-id-manager {
    grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
    max-height: 40vh;
  }

  .training-workbench-grid .workbench-list-panel, .mesh-workbench-grid .workbench-panel:last-child {
    grid-column: 1 / -1;
  }

  .workbench-grid .workbench-list-panel:last-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .video-sync-grid {
    --session-media-height: 420px;
    grid-template-columns: 1fr;
  }

  .metadata-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-hero {
    grid-template-columns: 1fr;
  }

  .session-hero-aside {
    justify-content: space-between;
  }

  .session-hero-metadata {
    grid-template-columns: repeat(3, minmax(100px, max-content));
    width: auto;
  }

  .modal-review-layout {
    grid-template-columns: minmax(420px, 1fr) minmax(280px, 340px);
  }

  .signoff-body {
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 360px);
    overflow: auto;
  }
}

@media (max-width: 820px) {
  .home-dashboard, .app-page {
    padding: 18px;
  }

  .page-header, .page-brand {
    display: grid;
  }

  .dashboard-actions, .workflow-strip, .workbench-grid, .training-workbench-grid, .mesh-workbench-grid, .room-workspace-header, .room-workspace-grid, .room-metrics-strip, .room-detector-row, .room-model-version-row, .spatial-id-manager, .spatial-membership-grid, .active-run-card, .mesh-intent {
    grid-template-columns: 1fr;
  }

  .room-browser-header, .room-workspace-header {
    align-items: stretch;
  }

  .room-create-control {
    grid-template-columns: 1fr;
  }

  .room-scan-panel, .room-alignment-panel, .room-path-panel, .room-workspace-grid > .workbench-list-panel {
    grid-area: auto;
  }

  .workspace-tabs {
    padding: 0 10px;
    overflow-x: auto;
  }

  .workspace-tab {
    white-space: nowrap;
  }

  .unified-scan-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .unified-scan-row .scan-role-buttons, .unified-scan-row .spatial-view-button, .unified-scan-row .compact-action {
    grid-column: 1 / -1;
  }

  .spatial-id-manager {
    max-height: none;
  }

  .spatial-id-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workbench-header-actions, .review-toolbar {
    justify-content: start;
  }

  .dashboard-button.primary {
    min-width: 0;
  }

  .workbench-form {
    grid-template-columns: 1fr;
  }

  .workbench-list-panel, .workbench-main-panel {
    min-height: 320px;
  }

  .page-brand img {
    width: min(220px, 100%);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }

  .workspace {
    padding: 22px;
  }

  .session-dashboard {
    grid-template-columns: 1fr;
  }

  .video-sync-grid {
    --session-media-height: 360px;
  }

  .session-list-hero, .map-header {
    display: grid;
  }

  .session-hero-aside {
    justify-content: stretch;
    display: grid;
  }

  .session-hero-metadata, .session-hero-actions {
    width: 100%;
  }

  .session-hero-metadata {
    grid-template-columns: 1fr;
  }

  .session-hero-actions {
    white-space: normal;
    grid-template-columns: 1fr;
    display: grid;
  }

  .session-list-actions {
    justify-content: start;
  }

  .session-video-card {
    grid-template-columns: 1fr;
  }

  .session-video-meta {
    grid-template-columns: repeat(2, max-content);
    justify-items: start;
  }

  .metadata-strip, .frame-card, .frame-evidence-card .frame-card-body {
    grid-template-columns: 1fr;
  }

  .frame-modal-backdrop, .workbench-modal-backdrop {
    padding: 18px;
  }

  .workbench-review-modal {
    max-height: calc(100vh - 36px);
  }

  .frame-modal-header {
    display: grid;
  }

  .modal-review-toolbar, .modal-review-layout {
    grid-template-columns: 1fr;
  }

  .modal-review-toolbar div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }

  .modal-detection-list {
    max-height: 280px;
  }

  .signoff-modal {
    width: min(100%, 100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .signoff-summary, .signoff-body, .signoff-choice-options, .signoff-detection-card, .signoff-detection-options, .signoff-field-grid {
    grid-template-columns: 1fr;
  }

  .signoff-body {
    overflow: auto;
  }

  .signoff-detection-options {
    grid-column: auto;
  }

  .signoff-detection-preview {
    width: 100%;
    height: 150px;
  }

  .signoff-footer {
    display: grid;
  }

  .signoff-image-lightbox {
    padding: 18px;
  }

  .signoff-image-dialog {
    width: min(100%, 100vw - 36px);
    max-height: calc(100vh - 36px);
  }
}

.panel-tabs {
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  display: flex;
}

.panel-tab {
  height: 36px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  border-radius: 0;
  align-items: center;
  margin-bottom: -1px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  transition: color .12s, border-color .12s;
  display: inline-flex;
}

.panel-tab:hover {
  color: var(--doit-navy);
}

.panel-tab.active {
  color: var(--doit-navy);
  border-bottom-color: var(--accent);
}

.room-path-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scan-inspector {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.scan-inspector-selector {
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
}

.scan-inspector-selector-label {
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 12px;
  font-weight: 700;
}

.scan-inspector-selector select {
  border: 1px solid var(--line);
  height: 32px;
  color: var(--text);
  background: #fff;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
}

.scan-inspector-body {
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.scan-inspector-viewport {
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.scan-inspector-viewport svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scan-inspector-overlay-msg {
  color: var(--muted);
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 24px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  position: absolute;
  inset: 0;
}

.scan-inspector-floor {
  fill: #235f9514;
  stroke: var(--doit-blue);
  stroke-width: 1.5px;
  stroke-linejoin: round;
}

.scan-inspector-floor.refined {
  stroke: #10b981;
  fill: #10b98112;
}

.scan-inspector-path {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.scan-inspector-path-start {
  fill: #22c55e;
  stroke: #fff;
  stroke-width: 1.5px;
}

.scan-inspector-path-end {
  fill: #f59e0b;
  stroke: #fff;
  stroke-width: 1.5px;
}

.scan-inspector-detection-ring {
  fill: none;
  stroke: #ef4444;
  stroke-width: 1.5px;
  opacity: .7;
}

.scan-inspector-detection-dot {
  fill: #ef4444;
  opacity: .9;
}

.scan-inspector-tools {
  background: var(--panel);
  flex-direction: column;
  gap: 0;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.scan-inspector-section {
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  display: flex;
}

.scan-inspector-section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 800;
}

.scan-inspector-stats {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  display: grid;
}

.scan-inspector-stats > div {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  display: flex;
}

.scan-inspector-stats strong {
  color: var(--doit-navy);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
}

.scan-inspector-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.scan-inspector-session-link {
  align-self: flex-start;
  min-height: 30px;
  font-size: 12px;
}

.scan-inspector-toggle {
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  display: flex;
}

.scan-inspector-toggle input[type="checkbox"] {
  accent-color: var(--accent);
}

.scan-inspector-action {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.scan-inspector-save-btn {
  border: 1px solid var(--accent);
  height: 32px;
  color: var(--accent);
  cursor: pointer;
  background: #3b82f612;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  transition: background .12s;
  display: inline-flex;
}

.scan-inspector-save-btn:hover {
  background: #3b82f624;
}

.scan-inspector-refine-row {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.scan-inspector-refine-row label {
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.scan-inspector-detail-val {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
}

.scan-inspector-refine-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.scan-inspector-working {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.scan-inspector-tool-hint {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.scan-inspector-banner {
  margin: 0;
  font-size: 12px;
}

.scan-inspector-room-scan-note {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
}

.scan-inspector-run-badge {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2563eb;
  background: #3b82f61f;
  border-radius: 10px;
  flex-shrink: 0;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.scan-inspector-overlay-error {
  color: #ef4444;
}

@media (max-width: 1180px) {
  .scan-inspector-body {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .alignment-tab-grid {
    grid-template-columns: minmax(240px, .9fr) minmax(220px, 1.1fr);
  }
}

@media (max-width: 820px) {
  .scan-inspector-body {
    grid-template-rows: minmax(220px, 1fr) auto;
    grid-template-columns: 1fr;
  }

  .scan-inspector-viewport {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .scan-inspector-tools {
    overflow-y: visible;
  }

  .alignment-tab-grid {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .alignment-tab-right {
    grid-template-rows: auto auto;
  }

  .workspace-tab {
    padding: 0 12px;
    font-size: 13px;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/