/* ── "Report a problem" on the finished screen (problem_report.js), the old widget
   (feedback.css) with its done-screen inks per tier (phaseb.css 2451-2490). Changed from the
   old: the link, Send and Cancel are 44px high. ── */
.fbk {
  --fbk-chip: rgba(255, 255, 255, 0.55);
  --fbk-chip-border: rgba(74, 72, 120, 0.10);
  --fbk-error: #6f2036;
  --fbk-sent: #0f4a30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}
.atmosphere.is-caught-up ~ .dk-shell .fbk {
  --fbk-chip: rgba(255, 255, 255, 0.22);
  --fbk-chip-border: rgba(22, 18, 42, 0.26);
  --fbk-error: #58162a;
  --fbk-sent: #0e3522;
}
.atmosphere.is-night ~ .dk-shell .fbk {
  --fbk-chip: rgba(255, 255, 255, 0.07);
  --fbk-chip-border: rgba(255, 255, 255, 0.15);
  --fbk-error: #e79aab;
  --fbk-sent: #7bc8a3;
}
.fbk.hidden, .fbk .hidden { display: none; }

.fbk__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--fbk-chip-border);
  border-radius: 999px;
  background: var(--fbk-chip);
  color: var(--dkd-ink-muted);
  font: 400 13px/1 var(--font-en);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, color 0.2s ease;
}
.fbk__trigger:hover { transform: translateY(-1px); color: var(--dkd-ink); box-shadow: 0 4px 14px rgba(74, 72, 120, 0.10); }
.fbk__icon { width: 15px; height: 15px; flex: none; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.fbk__trigger:hover .fbk__icon { transform: rotate(-9deg) scale(1.1); }

.fbk__panel, .fbk__done { animation: fbkRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fbkRise {
  from { opacity: 0; transform: translateY(-5px) scale(0.965); }
  to { opacity: 1; transform: none; }
}
.fbk__panel { display: flex; flex-direction: column; gap: 9px; width: min(340px, 100%); }
.fbk__input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid rgba(74, 72, 120, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-en);
  resize: vertical;
}
.fbk__input:focus { outline: none; border-color: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-tint); }
.fbk__input::placeholder { color: var(--ink-faint); }
.fbk__actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.fbk__send, .fbk__cancel {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-en);
  cursor: pointer;
}
.fbk__send { border: none; background: var(--primary); color: #fff; }
.fbk__send:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(74, 72, 120, 0.28); }
.fbk__cancel { border: 1px solid var(--fbk-chip-border); background: transparent; color: var(--dkd-ink-muted); font-weight: 400; }
.fbk__cancel:hover { color: var(--dkd-ink); }
.fbk__error { margin: 0; text-align: center; font: 400 12.5px/1.4 var(--font-en); color: var(--fbk-error); }
.fbk__error:empty { display: none; }

.fbk__done { display: inline-flex; align-items: center; gap: 8px; color: var(--dkd-ink-muted); font: 400 13px/1 var(--font-en); }
.fbk__check { width: 17px; height: 17px; flex: none; color: var(--fbk-sent); }
.fbk__check-path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: fbkDraw 0.5s 0.08s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes fbkDraw { to { stroke-dashoffset: 0; } }

.atmosphere.is-night ~ .dk-shell .fbk__input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(238, 235, 250, 0.95);
}
.atmosphere.is-night ~ .dk-shell .fbk__input::placeholder { color: rgba(215, 210, 235, 0.45); }
.atmosphere.is-night ~ .dk-shell .fbk__send { background: rgba(255, 255, 255, 0.92); color: #3b3960; }

@media (max-height: 500px) { .fbk { margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .fbk__trigger, .fbk__icon { transition: none; }
  .fbk__trigger:hover { transform: none; }
  .fbk__panel, .fbk__done { animation: none; }
  .fbk__check-path { stroke-dashoffset: 0; animation: none; }
}
