:root {
  color-scheme: light;
  --bg: #eff3f6;
  --panel: #ffffff;
  --ink: #15222d;
  --muted: #6b7884;
  --line: #d5dde3;
  --accent: #00a3b4;
  --accent-dark: #007d8a;
  --warn: #9d5c16;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr auto auto;
  gap: 16px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.brand-mark {
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.top-nav button,
.session-chip,
.language-switcher button {
  min-height: 36px;
  padding: 0 14px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.top-nav button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.session-chip {
  justify-self: end;
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.session-chip.is-authenticated {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.language-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-self: end;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.language-switcher button {
  min-width: 42px;
  padding: 0 9px;
  border-radius: 4px;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.app-view[hidden] {
  display: none !important;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.sidebar,
.detail {
  min-height: calc(100vh - 36px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand h1 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 30px;
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.filters {
  display: grid;
  gap: 12px;
}

.profile-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form label,
.profile-summary {
  display: grid;
  gap: 4px;
}

.profile-summary span {
  color: var(--muted);
  font-size: 13px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.companion-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.companion-panel h2,
.admin-panel h2,
.mobile-session-panel h3 {
  margin: 0;
  font-size: 18px;
}

.companion-actions,
.device-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-token-card,
.session-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.device-token-card code,
.session-card code,
.release-note code {
  overflow-wrap: anywhere;
}

.release-note,
.session-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input[type="search"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.status[data-kind="success"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.status[data-kind="warning"] {
  color: var(--warn);
  font-weight: 700;
}

.status[data-kind="error"] {
  color: var(--danger);
  font-weight: 700;
}

.status[data-kind="loading"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.secondary-link,
.secondary-button {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.route-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.route-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.route-card-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.route-card[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.route-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.pill-adjusted {
  background: var(--bg);
  color: var(--accent-dark);
}

.detail {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: 18px;
}

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

.map-panel {
  min-height: 360px;
  overflow: hidden;
}

.route-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

@media (min-width: 1024px) {
  .detail {
    grid-template-rows: minmax(72vh, 1fr) auto;
  }

  .map-panel,
  .route-map {
    min-height: 72vh;
  }
}

.leaflet-control-attribution img,
.leaflet-control-attribution svg {
  display: none !important;
}

.route-detail {
  min-height: 190px;
  padding: 18px;
}

.route-detail h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.detail-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-heading h2 {
  margin: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.metadata-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.metadata-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
}

.highlight-form select,
.highlight-form input[type="text"],
.highlight-form input[type="file"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.highlights-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.highlights-panel h3 {
  margin: 0;
  font-size: 18px;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.highlight-card.is-merge-source {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.highlight-card.is-merge-target {
  border-color: var(--accent);
}

.highlight-merge-actions {
  display: flex;
  justify-content: flex-end;
}

.evidence-card {
  border-style: dashed;
}

.highlight-card-image {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
}

.highlight-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.highlight-photo-cell {
  display: grid;
  gap: 6px;
  align-content: start;
}

.photo-delete-button,
.photo-transfer-button {
  width: 100%;
}

.highlight-card-media {
  display: grid;
  gap: 6px;
  align-content: start;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.highlight-card-media:focus-visible {
  outline: 3px solid rgba(0, 163, 180, 0.35);
  outline-offset: 3px;
}

.highlight-card-body p,
.highlight-card-body h4 {
  margin: 0;
}

.highlight-card-body {
  display: grid;
  gap: 6px;
}

.mobile-session-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.highlight-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.highlight-card-head h4 {
  font-size: 16px;
}

.highlight-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.highlight-kind,
.highlight-point {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.highlight-popup {
  display: grid;
  gap: 6px;
  max-width: 200px;
}

.highlight-popup img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.popup-photo-button {
  width: 100%;
  min-height: 44px;
}

.media-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(21, 34, 45, 0.72);
}

.media-lightbox {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3001;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(90vw, 1200px);
  max-height: 90vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(21, 34, 45, 0.35);
}

.media-lightbox-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.media-lightbox-header h3,
.media-lightbox-header p {
  margin: 0;
}

.media-lightbox-header p {
  color: var(--muted);
  font-size: 14px;
}

.media-lightbox-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 24px;
  line-height: 1;
}

.media-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
  background: #15222d;
}

.media-lightbox-stage img {
  display: block;
  width: 100%;
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  object-fit: contain;
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.media-lightbox-prev {
  left: 18px;
}

.media-lightbox-next {
  right: 18px;
}

.media-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  padding: 4px 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(21, 34, 45, 0.78);
  color: #ffffff;
  font-size: 13px;
}

.has-media-lightbox {
  overflow: hidden;
}

.metric {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric.compact {
  padding: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.usage-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions a,
.actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.actions .secondary-button,
.actions .secondary-link {
  background: #fff;
  color: var(--accent-dark);
}

.actions .secondary-button:hover,
.actions .secondary-link:hover {
  background: #eff3f6;
}

.edit-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.edit-status[data-kind="warning"] {
  color: var(--warn);
}

.edit-status[data-kind="success"] {
  color: var(--accent-dark);
}

.edit-status[data-kind="error"] {
  color: var(--danger);
}

.checkpoint-marker span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
}

.highlight-marker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
}

.checkpoint-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  margin: 0 0 12px;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.checkpoint-row {
  display: grid;
  grid-template-columns: 28px 54px minmax(140px, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.checkpoint-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.checkpoint-label {
  color: var(--ink);
  font-weight: 700;
}

.checkpoint-coords {
  font-variant-numeric: tabular-nums;
}

.icon-button,
.danger-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.danger-button {
  border-color: var(--danger);
  background: var(--danger);
}

.actions .danger-button {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.actions .danger-button:hover {
  background: #8a1c13;
}

.static-view {
  max-width: 1480px;
  margin: 0 auto;
  padding: 64px 0;
}

.static-copy {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.static-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
}

.static-copy p {
  margin: 0;
  color: var(--muted);
}

.download-panel,
.login-panel,
.about-grid {
  display: grid;
  gap: 14px;
}

.release-panel,
.session-card,
.about-grid div {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.about-grid dt {
  color: var(--ink);
  font-weight: 700;
}

.about-grid dd {
  margin: 0;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.admin-shell {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header h1 {
  margin: 2px 0 0;
  font-size: 30px;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-wrap: anywhere;
}

.admin-section h2 {
  margin: 0;
  font-size: 20px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.admin-route-user {
  display: grid;
  min-width: 0;
}

.admin-action-pane,
.admin-detail-pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-action-pane {
  display: grid;
  gap: 16px;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.admin-action-pane h2,
.admin-detail-header h2 {
  margin: 0;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tab {
  justify-content: start;
  width: 100%;
  padding: 0 12px;
  background: #fff;
  color: var(--accent-dark);
  text-align: left;
}

.admin-tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.admin-detail-pane {
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.admin-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-form,
.admin-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-form label,
.usage-form label,
.admin-form input,
.usage-form input {
  min-width: 0;
  max-width: 100%;
}

.admin-form button,
.usage-form button {
  justify-self: start;
  max-width: 100%;
  padding: 0 13px;
  white-space: normal;
}

.admin-create-form,
.release-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.admin-form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.admin-table,
.device-token-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.usage-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.usage-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.usage-table th,
.usage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.usage-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.usage-table tbody tr:last-child td {
  border-bottom: 0;
}

.usage-table code {
  overflow-wrap: anywhere;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
}

.admin-user-row > *,
.device-token-card > * {
  min-width: 0;
}

.admin-user-summary,
.admin-row-meta,
.admin-row-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-user-summary span,
.admin-row-meta,
.admin-list-item span {
  color: var(--muted);
}

.admin-row-meta {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.admin-row-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
}

.inline-admin-form {
  grid-template-columns: minmax(180px, 360px) auto;
  align-items: end;
}

.device-token-list {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.device-token-card {
  align-content: start;
}

.device-token-card.prominent {
  border-color: var(--accent);
}

.admin-status {
  min-height: 28px;
}

@media (max-width: 860px) {
  .shell {
    padding: 10px;
  }

  .topbar,
  .workspace,
  .detail-grid,
  .about-grid,
  .usage-form-grid,
  .admin-workspace,
  .admin-form-grid,
  .admin-user-row,
  .inline-admin-form {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: start;
  }

  .language-switcher,
  .session-chip {
    justify-self: stretch;
  }

  .language-switcher {
    justify-content: start;
  }

  .static-view {
    padding: 32px 0;
  }

  .static-copy h1 {
    font-size: 32px;
  }

  .admin-action-pane {
    position: static;
  }

  .checkpoint-row {
    grid-template-columns: 28px 54px 1fr;
  }

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

  .highlight-card-image {
    height: 150px;
  }

  .media-lightbox {
    inset: 0;
    left: 0;
    top: 0;
    width: 100vw;
    max-height: none;
    height: 100dvh;
    transform: none;
    border-radius: 0;
  }

  .media-lightbox-header {
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  .media-lightbox-stage {
    padding: 10px;
  }

  .media-lightbox-stage img {
    max-width: 100%;
    max-height: calc(100dvh - 96px);
  }

  .checkpoint-row button {
    grid-column: span 1;
  }

  .sidebar,
  .detail {
    min-height: auto;
  }
}

