:root {
  --bg: #f4f7f9;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #66757f;
  --line: #e2e8ee;
  --brand: #1f9e8f;
  --brand-ink: #14776b;
  --brand-soft: #e6f5f2;
  --accent: #3b6ea5;
  --warn: #b46b00;
  --shadow: 0 1px 3px rgba(31, 41, 51, 0.08), 0 8px 24px rgba(31, 41, 51, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff;
  padding: 28px 0 26px;
}
.site-header .brand { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.2px; }
.site-header .brand span { font-weight: 400; opacity: 0.85; }
.site-header .tagline { margin: 6px 0 0; opacity: 0.92; font-size: 0.95rem; }

main.wrap { padding-top: 26px; padding-bottom: 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
  margin-bottom: 20px;
}

h1 { font-size: 1.35rem; margin: 0 0 6px; }
h2 { font-size: 1.1rem; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }

/* App chooser */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.app-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.app-choice:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.app-choice:active { transform: translateY(1px); }
.app-choice .emoji { font-size: 1.6rem; line-height: 1; }
.app-choice .label { font-weight: 600; }

/* Section blocks */
.section { margin-bottom: 18px; }
.section .about { color: var(--muted); margin: 2px 0 12px; }
.section-title { color: var(--accent); }

.try-list { list-style: none; padding: 0; margin: 0 0 14px; }
.try-list li { margin: 0 0 7px; }
.try-list label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.try-list input[type="checkbox"] { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }

.field { margin-bottom: 12px; }
.field > label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.95rem; }
.field .prompt { font-weight: 600; }
.field .extra-label { font-weight: 500; color: var(--muted); }

textarea, input[type="text"], input[type="date"] {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfe;
  resize: vertical;
}
input[type="date"] { resize: none; }
textarea:focus, input[type="text"]:focus, input[type="date"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { min-height: 68px; }

/* Meta / header card */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.blurb { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; color: var(--brand-ink); margin: 0 0 16px; }

/* Select inputs (quick report dropdowns) */
select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfe;
  cursor: pointer;
}
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* Per-section image uploader */
.upload-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.upload-aside { display: flex; flex-direction: column; gap: 2px; }
.upload-field .file-input {
  font: inherit;
  color: var(--muted);
  flex: none;
  padding: 8px 0;
}
.upload-field .file-input::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 10px;
  cursor: pointer;
}
.upload-field .file-input::file-selector-button:hover { border-color: var(--brand); }
.upload-note { color: var(--warn); font-size: 0.86rem; margin: 0; }
.upload-note:empty { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fcfdfe;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.uploading { color: var(--muted); font-size: 0.78rem; text-align: center; }
.thumb-status { padding: 4px; }
.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  border: none;
  color: #fff;
  background: rgba(20, 30, 40, 0.72);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-remove:hover { background: var(--warn); }

/* whole-app feel checklist */
.feel-list { list-style: none; padding: 0; margin: 6px 0 0; }
.feel-list li { margin: 0 0 7px; }
.feel-list label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.feel-list input[type="checkbox"] { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--warn); }

/* Buttons */
.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }

.submit-card { position: sticky; bottom: 14px; }
.submit-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.form-status { margin-bottom: 10px; font-weight: 600; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: var(--brand-ink); }

@media (max-width: 520px) {
  .submit-row { flex-direction: column-reverse; }
  .submit-row .btn { width: 100%; }
}
