:root {
  --bg: #0b0f19;
  --surface: #111827;
  --surface-2: #1f2937;
  --border: #273244;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --error: #ef4444;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

input[type="tel"],
textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.photo-drop.has-image {
  border-style: solid;
}

.photo-drop:focus-within,
.photo-drop:hover {
  border-color: var(--accent);
}

.photo-drop-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.photo-drop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-drop.has-image .photo-drop-preview {
  width: 100%;
  height: 100%;
  gap: 0;
}

.photo-drop.has-image .photo-drop-preview svg,
.photo-drop.has-image .photo-drop-preview span {
  display: none;
}

.link-button {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-hover);
}

.submit {
  appearance: none;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status {
  min-height: 1.25em;
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.status[data-state="success"] {
  color: var(--success);
}

.status[data-state="error"] {
  color: var(--error);
}

.status[data-state="info"] {
  color: var(--muted);
}

.location-note {
  margin: -8px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.app-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
