* { box-sizing: border-box; }
body { font-family: system-ui, Arial, sans-serif; background:#0b1220; color:#e8eefc; margin:0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px; }
.top { display:flex; justify-content:space-between; align-items:center; gap: 10px; }
h1 { margin: 8px 0 16px; font-size: 22px; }
.card { background:#121b2f; border:1px solid #203154; border-radius: 14px; padding: 14px; margin: 12px 0; }
.grid { display:grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

.row { display:flex; gap: 8px; align-items:center; flex-wrap: wrap; }
.col { display:flex; flex-direction:column; gap: 8px; }
input, select, textarea { width: 100%; padding: 10px; border-radius: 10px; border:1px solid #2a3e69; background:#0b1326; color:#e8eefc; }
textarea { min-height: 80px; resize: vertical; }
button { padding: 10px 12px; border-radius: 10px; border: 1px solid #2a3e69; background:#1b2a4a; color:#e8eefc; cursor:pointer; }
button:hover { filter: brightness(1.1); }
.hidden { display:none; }
.muted { color:#a9b7d8; font-size: 13px; }
.err { color:#ff9aa2; margin-top: 8px; }

.task { padding: 10px; border:1px solid #22365f; border-radius: 12px; margin: 10px 0; background:#0b1326; }
.task .meta { display:flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color:#a9b7d8; }
.badge { padding: 2px 8px; border: 1px solid #2a3e69; border-radius: 999px; font-size: 12px; }
hr { border: none; border-top: 1px solid #203154; margin: 12px 0; }

/* =============================================
   📸 PHOTO PICKER — Camera + Gallery + Preview
   ============================================= */

.photo-picker {
  background: #0d1729;
  border: 1px dashed #2a3e69;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Two buttons side by side */
.photo-btns {
  display: flex;
  gap: 8px;
}

.photo-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid #2a3e69;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

/* Camera button — blue tint */
.photo-btn.cam-btn {
  background: #0f2044;
  color: #7eb8f7;
  border-color: #1e4a8a;
}
.photo-btn.cam-btn:hover {
  background: #1a3a6a;
  border-color: #3b82f6;
  color: #bfdbfe;
}

/* Gallery button — purple tint */
.photo-btn.gal-btn {
  background: #160e2e;
  color: #c4b5fd;
  border-color: #4c1d95;
}
.photo-btn.gal-btn:hover {
  background: #2e1d5a;
  border-color: #7c3aed;
  color: #e9d5ff;
}

/* Mobile: bigger tap targets */
@media (max-width: 600px) {
  .photo-btn {
    padding: 14px 8px;
    font-size: 13px;
  }
}

/* Preview area */
.photo-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}

.photo-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #2a3e69;
  background: #080f1e;
}

@media (max-width: 600px) {
  .photo-preview-img {
    max-height: 200px;
  }
}

.photo-clear-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #7f1d1d;
  background: #1f0a0a;
  color: #fca5a5;
  font-size: 12px;
  cursor: pointer;
}
.photo-clear-btn:hover {
  background: #3b0f0f;
  color: #fecaca;
}
