/* Robot Detail Page (/r/{id}) — Obsidian Studio Stage, Technical Dossier, Kinematics & Manifest */

.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  min-width: 0;
}

.detail-section {
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Breadcrumb & 4-Robot Fleet Switcher Subbar */
.detail-subbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 15, 0.92);
}

.detail-subbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.detail-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94a3b8;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.detail-back-link:hover {
  color: #38bdf8;
  text-decoration: none;
}

.detail-crumbs .sep {
  color: #475569;
}

.detail-crumb-id {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 5px;
  padding: 2px 8px;
}

.detail-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 21, 28, 0.72);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.detail-switch-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.detail-switch-pill.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
  font-weight: 600;
}

.detail-switch-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Hero Split Stage (12-column: 7-col 3D viewport + 5-col Dossier) */
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: start;
}

.detail-viewport-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-viewport {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 430px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(56, 189, 248, 0.12), transparent 72%),
    #090b0f;
  overflow: hidden;
}

.detail-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.detail-canvas-wrap:active {
  cursor: grabbing;
}

.detail-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.detail-hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(13, 16, 22, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 500;
  color: #cbd5e1;
  max-width: 100%;
}

.detail-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
  flex-shrink: 0;
}

.detail-hud-dot.manual {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
}

.detail-hud-note {
  color: #38bdf8;
  font-weight: 500;
}

.detail-reset-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.detail-reset-pill[hidden] {
  display: none;
}

.detail-reset-pill:hover {
  background: rgba(245, 158, 11, 0.24);
}

.detail-hud-hint {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 6;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(9, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
}

/* Compact 3D Control Dock below Viewport */
.detail-dock {
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.detail-dock .dock-inspector {
  flex-wrap: wrap;
  gap: 8px;
}

.detail-dock .dock-icon-btn {
  width: auto;
  height: 30px;
  padding: 0 10px;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11.5px;
}

/* Right Column: Technical Dossier */
.detail-dossier {
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.detail-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
}

.detail-lic-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f8fafc;
}

.detail-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

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

.detail-kpi-cell {
  padding: 12px 13px;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-kpi-cell dt {
  margin: 0 0 4px;
  font-size: 11px;
  color: #94a3b8;
}

.detail-kpi-cell dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.detail-brief-box {
  padding: 13px 15px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.detail-brief-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.detail-brief-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
}

.detail-brief-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-ext-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-ext-link:hover {
  color: #38bdf8;
  text-decoration: none;
}

/* Section Headers */
.detail-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.detail-sec-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 760px;
}

/* Verified Capabilities Cards */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.cap-card.accent-emerald {
  border-color: rgba(52, 211, 153, 0.25);
}

.cap-card.accent-sky {
  border-color: rgba(56, 189, 248, 0.25);
}

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

.cap-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 5px;
}

.cap-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.cap-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cap-badge.pass {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.cap-badge.info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #38bdf8;
}

.cap-badge.warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.cap-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

.cap-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cap-kpi-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.cap-kpi-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.cap-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cap-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #cbd5e1;
}

.cap-item-pill button,
button.cap-item-pill {
  font-family: inherit;
  cursor: pointer;
}

button.cap-item-pill:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
}

.cap-item-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #34d399;
}

.cap-meta-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94a3b8;
}

.cap-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cap-banner {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(13, 16, 22, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Actuation & Kinematics Inspector */
.joint-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.joint-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.joint-filter-btn {
  padding: 5px 11px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.joint-filter-btn:hover {
  color: #f8fafc;
}

.joint-filter-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: #f8fafc;
  font-weight: 600;
}

.joint-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1016;
}

.joint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.joint-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.joint-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.joint-table tbody tr:last-child td {
  border-bottom: none;
}

.joint-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.joint-table tbody tr.joint-modified td {
  background: rgba(245, 158, 11, 0.07);
}

.joint-name-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 170px;
}

.joint-id-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.joint-sub-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.joint-limb-tag {
  font-size: 10.5px;
  color: #94a3b8;
}

.joint-coupled-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.joint-slider-cell {
  min-width: 240px;
}

.joint-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.joint-slider-row input[type="range"].studio-range {
  flex: 1;
  width: auto;
  min-width: 120px;
}

.joint-angle-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e2e8f0;
  min-width: 108px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.joint-modified .joint-angle-readout {
  color: #fbbf24;
  font-weight: 600;
}

.joint-range-hint {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
}

.joint-table-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
}

/* CAD, Provenance & File Manifest (12-column: 5:7) */
.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
}

.manifest-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.manifest-card {
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}

.manifest-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.manifest-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manifest-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.manifest-dl-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.manifest-dl-row dt {
  color: #94a3b8;
  white-space: nowrap;
}

.manifest-dl-row dd {
  margin: 0;
  color: #e2e8f0;
  text-align: right;
  word-break: break-word;
}

.manifest-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.manifest-commits {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manifest-commit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.manifest-commit-repo {
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-commit-sha {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}

/* Integrity Hashes */
.manifest-mesh-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-size: 12.5px;
  color: #cbd5e1;
}

.manifest-hash-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manifest-hash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.manifest-hash-info {
  min-width: 0;
  flex: 1;
}

.manifest-hash-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.manifest-hash-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-hash {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-copy-hash:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-copy-hash.copied {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

/* File Manifest Explorer */
.manifest-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.manifest-files-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.manifest-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 7px;
  background: rgba(17, 21, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.manifest-file-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.manifest-ext-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.manifest-ext-badge.ext-xml {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.manifest-ext-badge.ext-stl {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.manifest-file-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.manifest-dl-link:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
  text-decoration: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-viewport {
    height: 440px;
    min-height: 360px;
  }

  .cap-grid,
  .manifest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .detail-main {
    padding: 16px 16px 64px;
  }

  .detail-subbar-inner {
    padding: 10px 16px;
  }

  .detail-viewport {
    height: 340px;
    min-height: 300px;
  }

  .detail-dossier {
    padding: 18px;
  }

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

  .cap-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-switch-pill {
    padding: 5px 9px;
    font-size: 11.5px;
  }
}
