/*
 * Feedback (src/site-feedback-views.js): the form at /feedback, its thank-you, and the admin
 * list. On base.css + app.css; the kind chips are the board's .kinds chips.
 */
.fb { max-width: 720px; }
.fb h1 { margin-bottom: 10px; }
.fb-lede { color: var(--bone-2); font-size: 1.05rem; max-width: 52ch; }
.fb .error { margin-top: 20px; }
.fb-card { display: grid; gap: 24px; margin-top: 28px; }
.fb-kinds { gap: 8px; }
.fb-kinds legend { font-size: 0.86rem; font-weight: 600; color: var(--bone-2); margin-bottom: 10px; padding: 0; }
.fb-kinds label > span { min-height: 44px; display: inline-flex; align-items: center; }
.fb textarea { min-height: 176px; line-height: 1.55; }
.fb-count { justify-self: end; margin: 0 !important; font-variant-numeric: tabular-nums; }
.fb-count.is-near { color: var(--amber-2); }

/* Honeypot: off-screen, out of the tab order, not for people. */
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.fb-shot .label { font-size: 0.86rem; font-weight: 600; color: var(--bone-2); }
.fb-drop {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.fb-drop .hint { margin: 0; }
.fb-drop.is-over { border-color: var(--amber); background: var(--amber-glow); }
.fb-drop.is-busy label.btn { opacity: 0.55; pointer-events: none; }
.fb-drop label.btn { cursor: pointer; }
.fb-drop:focus-within label.btn { outline: 2px solid var(--amber); outline-offset: 3px; }
.fb-drop .hint.is-error { color: #ffd4cc; }
.fb-preview { margin: 0; display: grid; gap: 8px; justify-items: start; }
.fb-preview img { max-height: 260px; width: auto; max-width: 100%; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink); }
.fb-preview figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-preview .linkish { min-height: 44px; }

.fb-context { margin: 0; display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); border: 1px solid var(--line); font-size: 0.86rem; }
.fb-context div { display: flex; gap: 10px; min-width: 0; }
.fb-context dt { color: var(--bone-3); flex: none; min-width: 5.5em; }
.fb-context dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--bone-2); }
.fb-send { gap: 12px 18px; }
.fb-send .btn { min-width: 140px; }
.fb-send .hint { margin: 0; flex: 1 1 260px; }

/* Thank-you: one drawn tick, then the way back. */
.fb-sent .fb-card { justify-items: start; gap: 14px; }
.fb-sent h1 { margin: 6px 0 0; }
.fb-tick { width: 56px; height: 56px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fb-tick circle { stroke: rgba(255, 178, 63, 0.35); }
.fb-tick path { stroke-dasharray: 34; stroke-dashoffset: 0; animation: fb-draw 520ms var(--ease) 120ms both; }
@keyframes fb-draw { from { stroke-dashoffset: 34; } }
@media (prefers-reduced-motion: reduce) { .fb-tick path { animation: none; } }
.fb-after { margin-top: 10px; }

/* Signed out: the public page frame, the app's form pieces inside it. */
.fb-public .narrow { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 0; }

/* ---------------------------------------------------------------- admin --- */
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 22px 0 6px; }
.fb-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-filter a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--bone-2); text-decoration: none; font-size: 0.92rem;
}
.fb-filter a:hover { color: var(--bone); border-color: rgba(238, 231, 216, 0.5); }
.fb-filter a[aria-current='page'] { background: var(--bone); border-color: var(--bone); color: var(--ink); font-weight: 600; }
.fb-filter .n { font-variant-numeric: tabular-nums; font-size: 0.8rem; opacity: 0.75; }
.fb-bar .linkish { min-height: 40px; }
.fb-list { display: grid; gap: 12px; margin-top: 18px; }
.fb-item { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; padding: 18px 20px; }
.fb-item:not(:has(.fb-thumb)) { grid-template-columns: minmax(0, 1fr); }
.fb-item.is-new { border-color: rgba(255, 178, 63, 0.4); }
.fb-body { display: grid; gap: 12px; min-width: 0; align-content: start; }
.fb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 !important; font-size: 0.86rem; color: var(--bone-3); }
.fb-state { display: inline-flex; align-items: center; gap: 6px; color: var(--bone-2); font-weight: 600; }
.is-new .fb-state { color: var(--amber-2); }
.is-new .fb-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.fb-msg { margin: 0 !important; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; font-size: 1rem; line-height: 1.6; color: var(--bone); }
.is-done .fb-msg { color: var(--bone-2); }
.fb-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; font-size: 0.88rem; }
.fb-facts div { min-width: 0; }
.fb-facts dt { color: var(--bone-3); font-size: 0.78rem; font-weight: 600; margin-bottom: 2px; }
.fb-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--bone-2); }
.fb-facts dd strong { color: var(--bone); font-weight: 600; }
.fb-actions { gap: 8px; }
.fb-thumb { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--bone-3); font-size: 0.8rem; }
.fb-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--ink); transition: border-color var(--t) var(--ease); }
.fb-thumb:hover img { border-color: var(--amber); }
.fb-thumb:hover { color: var(--bone); }
@media (max-width: 720px) {
  .fb-item { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .fb-thumb { max-width: 320px; }
}

/* The inbox lines (views.js adminPage). */
.fb-inbox { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.fb-inbox a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); text-decoration: none; color: var(--bone); }
.fb-inbox a:hover { border-color: var(--line-2); background: var(--ink-3); }
.fb-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .fb-inbox a { grid-template-columns: auto minmax(0, 1fr); }
  .fb-inbox .sub { grid-column: 1 / -1; }
}
