/* Step 1 look: one calm light theme. Everything visual lives in this file and in src/views/. */
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #23302a;
  --muted: #5d6a63;
  --line: #e2dccf;
  --green: #1f5c44;
  --green-dark: #17452f;
  --red: #b3262d;
  --red-soft: #fbeceb;
  --gold: #d9a441;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--green); text-underline-offset: 3px; }

/* Every link on a page is its own tap target, at least 44px high. */
main a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
main p:has(> a:only-child) { margin: 4px 0; }
.spaced { margin-top: 22px; }
form + .hint { margin-top: 12px; }
form + form { margin-top: 0; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 3px solid var(--red);
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.motif { width: 30px; height: 30px; flex: none; }
.motif-tree { fill: var(--green); }
.motif-trunk { fill: #7a5234; }
.motif-star { fill: var(--gold); }

.page { max-width: 34rem; margin: 0 auto; padding: 20px 16px 56px; }
.page-wide { max-width: 72rem; }

h1 { margin: 8px 0 12px; font-size: 1.7rem; line-height: 1.2; }
h2 { margin: 0 0 6px; font-size: 1.15rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.08rem; }
.hint, .sub { color: var(--muted); font-size: 0.95rem; }
.sub { margin: 14px 0 4px; }
label + .sub { margin: 0; }

.stack { display: grid; gap: 14px; }

label { display: block; font-weight: 600; margin-top: 6px; }

input[type="text"], input[type="email"], input[type="datetime-local"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #b9b2a3;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input:focus-visible, .button:focus-visible, a:focus-visible, .link-button:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

input:disabled { background: #efebe2; color: var(--muted); }

.code-input { font-size: 1.7rem; letter-spacing: 0.3em; text-align: center; }

.button {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green-dark); }
.button + .button { margin-top: 10px; }
.button-quiet { background: var(--surface); color: var(--green); border: 1.5px solid var(--green); }
.button-quiet:hover { background: #eef4f0; }

.link-button {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.card, .group {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.group { margin: 0; min-width: 0; }
.group legend { padding: 0 6px; font-size: 1.1rem; font-weight: 700; }
.group.is-off .flight-fields { opacity: 0.55; }

.tick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.tick input { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
.flight-fields + .tick { margin-top: 10px; }

.facts { margin: 0 0 14px; padding: 4px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts div { padding: 12px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-size: 1.12rem; font-weight: 650; }
.facts dd::first-letter { text-transform: uppercase; }

.note { padding: 10px 14px; border-left: 4px solid var(--gold); border-radius: 6px; background: #fdf6e3; }
.status { font-weight: 650; color: var(--red); }
.status-done { color: var(--green); }

.error { padding: 10px 14px; border-left: 4px solid var(--red); border-radius: 6px; background: var(--red-soft); color: #7d1a1f; font-weight: 600; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #f1ece1; white-space: nowrap; }
.overview { min-width: 92rem; }
.overview tbody th { position: sticky; left: 0; background: var(--surface); white-space: nowrap; }
.missing { background: var(--red-soft); color: #7d1a1f; font-weight: 600; }
.tally { max-width: 22rem; }
