/* Forms: each section is a glass panel; inputs reuse .field-input from app.css. */
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.form-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 24px;
  color: var(--cream); text-decoration: none; transition: box-shadow 0.2s;
}
.form-card:hover { box-shadow: inset 0 0 0 1px rgba(237, 181, 106, 0.45), 0 18px 40px -24px rgba(0, 0, 0, 0.6); }
.form-card-text { display: grid; gap: 4px; }
.form-card-title { font: 400 22px/1.2 var(--serif); }
.form-card-about { color: var(--cream-3); font-size: 14.5px; }
.form-card .icon { color: var(--amber); }

.form-section { gap: 14px; }
.section-sub { margin: -6px 0 2px; color: var(--cream-3); font-size: 15px; }
.form-field { display: grid; gap: 8px; min-width: 0; }
.form-field[hidden] { display: none; }
.field-help, .field-note, .field-status { margin: 0; color: var(--cream-3); font-size: 14px; }
.field-status:empty { display: none; }
.field-note { font-style: italic; }
.field-error { margin: 0; color: #ffb9a4; font-size: 14px; font-weight: 600; }
.field-error[hidden] { display: none; }
.field-area { min-height: 112px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.field-select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-2) 50%), linear-gradient(135deg, var(--cream-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field-select option, .filter-select option { color: #1b1208; }
.field-input[type="date"] { color-scheme: dark; }
.field-group-title { margin: 4px 0 0; font: 600 16px var(--sans); }
.field-sublabel { color: var(--cream-2); font-size: 14px; font-weight: 600; }
.field-wide { width: 100%; min-height: 48px; }
.field-mini { min-height: 44px; padding: 0 18px; white-space: nowrap; }
.text-button { width: fit-content; padding: 6px 2px; border: 0; background: none; cursor: pointer; color: var(--amber); font: 600 15px var(--sans); }
.text-button:disabled { color: var(--cream-3); cursor: default; }
.text-button--danger { color: #ffb9a4; }
.date-field { display: grid; gap: 4px; justify-items: center; }
.date-field .field-input { width: 100%; }

.choice-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(6, 18, 16, 0.5); box-shadow: inset 0 0 0 1px rgba(244, 233, 215, 0.14); }
.choice { position: relative; display: grid; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 44px; padding: 6px 10px; border-radius: 12px; text-align: center; color: var(--cream-2); font-weight: 600; }
.choice input:checked + span { color: #1b1208; background: linear-gradient(180deg, #f8d59e, #dc9f5e); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.picker-button { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
.hunters, .harvest, .seen, .dogs, .location, .photos-field { display: grid; gap: 12px; }
.chip-remove { text-decoration: none; }
.chip-toggle:disabled { opacity: 0.55; cursor: default; }
.species-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.species-tile {
  min-height: 52px; padding: 8px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  color: var(--cream); font: 600 15.5px var(--sans); background: rgba(244, 233, 215, 0.06); box-shadow: inset 0 0 0 1px rgba(244, 233, 215, 0.12);
}
.species-tile[aria-pressed="true"] { color: #1b1208; background: linear-gradient(180deg, #f8d59e, #dc9f5e); box-shadow: none; }
.count-rows { display: grid; gap: 8px; }
.count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 16px; background: rgba(244, 233, 215, 0.05); }
.count-row .field-error { grid-column: 1 / -1; }
.count-name { font-weight: 600; overflow-wrap: anywhere; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper-button { width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer; color: var(--cream); font: 600 20px/1 var(--sans); background: rgba(244, 233, 215, 0.1); }
.stepper-button:hover { background: rgba(244, 233, 215, 0.18); }
.stepper-input { width: 64px; min-height: 40px; padding: 0 8px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper-suffix { color: var(--cream-3); }
.count-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 4px 0; border-top: 1px solid rgba(244, 233, 215, 0.14); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.count-total-value { font: 400 30px/1 var(--serif); }
.mix { display: grid; gap: 8px; }
.mix-total { margin: 4px 0 0; font-weight: 600; }

.dog-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(244, 233, 215, 0.05); box-shadow: inset 0 0 0 1px rgba(244, 233, 215, 0.08); }
.dog-card-head { display: flex; align-items: center; justify-content: space-between; }
.dog-card-title { font-weight: 700; }

.location-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.location-part { display: grid; gap: 6px; min-width: 0; }
.location-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.location-paste, .guest-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.location-paste .field-input, .guest-row .field-input { flex: 1 1 200px; }
.guest-row[hidden], .location-paste [hidden] { display: none; }

.photo-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.photo-edit { display: grid; gap: 6px; }
.photo-edit-frame { position: relative; }
.photo-edit-image { aspect-ratio: 1; border-radius: 14px; }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 18px; background: rgba(0, 0, 0, 0.6); }

.form-actions { gap: 12px; }
.form-submit { width: 100%; min-height: 54px; font-size: 17px; }

/* Picker sheets. */
.picker-sheet { width: min(480px, calc(100% - 24px)); max-height: min(78svh, 680px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.picker-sheet[open] { display: grid; }
.picker-sheet .dialog-title:focus { outline: none; }
.sheet-body { display: grid; gap: 10px; align-content: start; overflow-y: auto; min-height: 0; padding: 2px; }
.sheet-done { width: 100%; }
.check-list { display: grid; gap: 4px; }
.check-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 14px; cursor: pointer;
  text-align: left; color: var(--cream); font: 500 16px var(--sans); background: rgba(244, 233, 215, 0.04);
}
.check-row:hover { background: rgba(244, 233, 215, 0.09); }
.check-row[aria-pressed="true"] .check-mark { color: var(--amber); }
.check-mark { width: 18px; text-align: center; color: var(--cream-3); font-weight: 700; }
.check-text { display: grid; gap: 2px; }
.check-detail { color: var(--cream-3); font-size: 13px; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) {
  .location-pair { grid-template-columns: 1fr; }
  .record-actions { flex-direction: column; }
}
