/* Easy add + the top app bar (8 Oct 2026): big targets, plain labels, one decision per row. */

/* ---- app bar: always at the top of the page ------------------------------------------------ */
.stage { min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 10px clamp(16px, 3vw, 36px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.appbar .appbar-search { flex: 1 1 260px; max-width: 520px; min-height: 42px; font-size: 15px; }
.appbar .appbar-spacer { flex: 1; }
.appbar .btn { min-height: 42px; font-size: 15px; }
.appbar .appbar-user { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.ez-add { font-weight: 700; padding-inline: 18px; }
.ez-plus { font-size: 20px; line-height: 1; margin-right: 2px; }
body.face .appbar { background: rgba(6, 11, 24, .72); border-bottom-color: var(--edge, rgba(226, 184, 90, .18)); }
@media (max-width: 900px) {
  .appbar { padding: 8px 12px; gap: 8px; }
  .appbar .appbar-user { display: none; }
  .appbar .appbar-search { flex-basis: 120px; min-width: 0; }
}
@media (max-width: 520px) { .appbar .btn { padding-inline: 12px; } }

/* ---- chooser ------------------------------------------------------------------------------- */
.ez-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ez-tile { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 18px; min-height: 120px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.ez-tile:hover, .ez-tile:focus-visible { border-color: var(--gold); background: var(--gold-soft); outline: none; }
.ez-tile b { font-size: 18px; }
.ez-tile small { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.ez-icon { font-size: 26px; color: var(--gold); line-height: 1; }

/* ---- forms --------------------------------------------------------------------------------- */
.ez-form { display: grid; gap: 14px; }
.ez-field { display: grid; gap: 6px; }
.ez-label { font-weight: 600; font-size: 15px; color: var(--text); }
.ez-hint { color: var(--text-3); font-size: 13px; }
.ez-form .input { min-height: 46px; font-size: 16px; }
.ez-form textarea.input { min-height: 110px; line-height: 1.5; }
.ez-big { font-size: 18px !important; }
.ez-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ez-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ez-choice { display: grid; gap: 2px; text-align: left; min-height: 46px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.ez-choice small { color: var(--text-3); font-size: 12px; }
.ez-choice[aria-checked="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-2); font-weight: 600; box-shadow: 0 0 0 1px var(--gold-line) inset; }
.ez-choice:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ez-date { max-width: 220px; margin-top: 8px; }
.ez-check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 40px; }
.ez-check input { width: 22px; height: 22px; accent-color: var(--gold); }
.ez-err { color: var(--danger); font-weight: 600; min-height: 1px; }
.ez-err:empty { display: none; }
.ez-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.ez-actions .btn { min-height: 46px; min-width: 120px; font-size: 16px; }
.ez-dupe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: 14px; }

/* ---- type-to-find ---------------------------------------------------------------------------- */
.ez-finder { position: relative; }
.ez-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 300px; overflow-y: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.ez-results li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.ez-results li b { font-size: 15px; }
.ez-results li small { color: var(--text-3); font-size: 12.5px; }
.ez-results li.on, .ez-results li:hover { background: var(--gold-soft); }
.ez-results li.ez-none { color: var(--text-2); cursor: default; background: none; }
.ez-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 8px 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gold-line); background: var(--gold-soft); }
.ez-chip-name { font-weight: 600; font-size: 16px; }
body.face .ez-tile, body.face .ez-choice { background: rgba(14, 22, 42, .7); }
body.face .ez-results { background: rgba(11, 18, 36, .97); }

/* ---- notes you can edit ---------------------------------------------------------------------- */
.note-edit-btn { margin-left: 8px; }
.note-editor { display: grid; gap: 8px; margin-top: 6px; }
.note-editor textarea { min-height: 90px; font-size: 15px; }

/* `hidden` must win over the display rules above (found in the 8 Oct check: a stale "Already in" box). */
.ez-form [hidden], .ez-finder [hidden], .ez-dupe[hidden], .ez-chip[hidden], .ez-results[hidden], .note-tools[hidden] { display: none !important; }
