/* ---------- The feedback page: the same form as the learning games, in the piano's colours ---------- */
.lf-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; padding: 8px 4px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; }
.lf-back svg { width: 20px; height: 20px; }
.lf-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.lf-fb-card { width: 100%; max-width: 560px; align-self: center; display: flex; flex-direction: column; gap: 18px; padding: 18px; }
.lf-fb-head { display: flex; flex-direction: column; gap: 4px; }
.lf-fb-title { margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.25; color: #222; text-wrap: balance; }
.lf-fb-intro { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.45; }

.lf-fb-form { display: flex; flex-direction: column; gap: 14px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-label { font-size: 0.9375rem; font-weight: 600; line-height: 1.2; }
.lf-label small { font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.lf-field input:not(.lf-vh), .lf-field textarea {
  width: 100%; min-width: 0; padding: 11px 12px;
  font: 400 1rem/1.4 inherit; font-family: inherit; color: var(--ink);   /* 16px, so iPads and iPhones don't zoom in */
  background: var(--key); border: 1px solid #ccc; border-radius: 8px;
}
.lf-field textarea { resize: vertical; min-height: 8.5rem; }
.lf-field input:not(.lf-vh):focus-visible, .lf-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }

/* the real file picker is hidden; the "Add photos" button opens it */
.lf-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* photos: up to three thumbnails with a remove button each */
.lf-fb-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lf-fb-thumbs[hidden] { display: none; }
.lf-fb-thumb { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 8px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); }
.lf-fb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lf-fb-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--key); color: var(--ink);
  font-size: 0.875rem; font-weight: 600; line-height: 1; cursor: pointer; }
.lf-fb-add { align-self: flex-start; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; color: var(--ink); background: var(--key);
  border: 1px dashed #aaa; border-radius: 8px; cursor: pointer; }
.lf-fb-add:hover { background: #f0f0f0; }
.lf-fb-add[hidden] { display: none; }
.lf-vh:focus-visible + .lf-fb-add, .lf-fb-remove:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* device and browser side by side when there's room */
.lf-fb-note { margin: 4px 0 -6px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
.lf-fb-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 14px; }

/* hidden from people; only spam robots fill it in */
.lf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lf-fb-status { margin: 0; min-height: 1.4em; line-height: 1.4; }
.lf-fb-status:empty { min-height: 0; }
.lf-fb-status.good { color: var(--good); font-weight: 600; }
.lf-fb-status.bad { color: var(--bad); }
.lf-fb-status.note { color: var(--ink-soft); }

.lf-send { min-height: 48px; padding: 0 24px; font-size: 1rem; font-weight: 600; font-family: inherit;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lf-send:hover:not(:disabled) { filter: brightness(1.1); }
.lf-send:disabled { opacity: 0.45; cursor: default; }
.lf-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
