* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  line-height: 1.5;
}

.screen { display: none; padding: 20px; }
.screen.active { display: block; }

#loading {
  text-align: center;
  padding-top: 100px;
}

.spinner {
  width: 40px; height: 40px;
  border: 4px solid #333;
  border-top-color: #00d4aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

h1, h2 { margin-bottom: 20px; text-align: center; }

form { max-width: 400px; margin: 0 auto; }

input, button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

input {
  background: #2a2a4e;
  color: #fff;
  border: 1px solid #444;
}

input:focus { outline: 2px solid #00d4aa; }

button {
  background: #00d4aa;
  color: #1a1a2e;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  color: #ff6b6b;
  text-align: center;
  margin: 10px 0;
  min-height: 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

header h2 { flex: 1; margin: 0; font-size: 1.2rem; }
header button { width: auto; padding: 8px 16px; font-size: 14px; }

#user-info {
  font-size: 14px;
  color: #888;
}

#checklists-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-card {
  background: #2a2a4e;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.checklist-card:hover { transform: scale(1.02); }
.checklist-card h3 { margin-bottom: 4px; }
.checklist-card p { color: #888; font-size: 14px; }

.question-card {
  background: #2a2a4e;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.question-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.question-card .required { color: #ff6b6b; }

.question-card select,
.question-card input[type="text"],
.question-card input[type="number"] {
  background: #1a1a3e;
  border: 1px solid #444;
}

.question-card .photo-upload {
  margin-top: 10px;
}

.question-card .photo-preview {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 8px;
  display: none;
}

.question-card .photo-preview.show { display: block; }

.success-icon {
  font-size: 60px;
  text-align: center;
  margin: 40px 0 20px;
}

#success-screen { text-align: center; }
#success-screen button { max-width: 300px; margin: 20px auto; }

/* Адаптив для мобильных */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .screen { padding: 16px; }
}
