.screen { display: none; }
.screen.active { display: flex; }

.h-safe-top { height: env(safe-area-inset-top, 0px); }

.btn-primary {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #fbbf24; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  font-weight: 500;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}
.btn-secondary:hover { background: #334155; }
.btn-secondary:active { transform: scale(0.98); }

.label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #f1f5f9;
}
.input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: border-color 0.15s;
}
.option-card:hover { border-color: #475569; }
.option-card:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.05);
}
.option-card input { accent-color: #f59e0b; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  font-size: 0.875rem;
}
.toggle { width: 1.25rem; height: 1.25rem; accent-color: #f59e0b; }

.onboard-panel { display: none; }
.onboard-panel.active { display: block; }

.card-interactive {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.card-interactive:hover { border-color: #475569; }
.card-interactive:active { transform: scale(0.99); }

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-safe { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 1rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.95);
  border-top: 1px solid #1e293b;
  backdrop-filter: blur(8px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-item.active { color: #fbbf24; }
.nav-item span:first-child { font-size: 1.125rem; }

.scan-pulse { animation: pulse-ring 1.5s ease-in-out infinite; }
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.proc-step.active { opacity: 1; color: #fbbf24; }
.proc-step.done { opacity: 0.6; text-decoration: line-through; }

.plan-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan-card:has(input:checked),
.plan-card.selected {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.05);
}
.plan-card input { accent-color: #f59e0b; }

.report-section {
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  overflow: hidden;
}
.report-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  list-style: none;
}
.report-section summary::-webkit-details-marker { display: none; }
.report-body {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
}