.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark-surface);
  border-top: 1px solid var(--border-subtle);
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.sheet-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-detail-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.detail-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.diagnostic-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diagnostic-box h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diagnostic-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (min-width: 901px) {
  .bottom-sheet {
    max-width: 650px;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, 100%);
    border-radius: 20px 20px 0 0;
  }

  .bottom-sheet.open {
    transform: translate(-50%, 0);
  }
}
