/* ── The back's "..." card report (card_report.js), the old card's (phaseb.css 2498-2626):
   the trigger, the form, then "Flagged" with "Suspend this line" and "Drop this word". Changed from
   the old: the trigger is the old icon at full muted ink in a 44px target, pointed out once by a
   tip (report_hint.js, owner's pick 2026-11-26, firm); the form and the flagged block open as a
   small panel in the trigger's place, so they read over the card's text; Send and Cancel are
   44px high; the box's text is 16px, so a phone does not zoom in on it. ── */
.dk-report { position: absolute; bottom: 4px; right: 8px; text-align: right; }  /* back only */
/* r66: the back's last line ends above the trigger (4px + 44px + 4px), not under it. */
:where(body:not(.is-trial)) :is(#card, .pl-flight).is-back .dk-modal { padding-bottom: 52px; }
.dk-report__trigger {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--lav-ink-muted);
  transition: color 0.2s ease;
}
.dk-report__trigger:hover { color: var(--lav-ink); }

/* The once-ever tip: a small panel above the trigger, its tail at the dots. */
.dk-report__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(250px, calc(100vw - 80px));
  box-sizing: border-box;
  padding: 12px 14px;
  text-align: left;
  background: var(--lav-panel);
  border: 1px solid var(--lav-hairline);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(74,72,120,0.16);
}
.dk-report__tip::after {
  content: "";
  position: absolute;
  right: 60px;  /* the dots, left of the share arrow */
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--lav-panel);
  border-right: 1px solid var(--lav-hairline);
  border-bottom: 1px solid var(--lav-hairline);
  transform: rotate(45deg);
}
.dk-report__tip-text { margin: 0; font: 500 13.5px/1.45 var(--lav-ui); color: var(--lav-ink); }
.dk-report__tip-ok {
  display: block;
  min-height: 36px;
  margin: 8px 0 0 auto;
  padding: 0 16px;
  font: 600 12.5px var(--lav-ui);
  color: var(--lav-purple);
  background: var(--lav-purple-tint);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.dk-report__tip-ok:hover { background: rgba(74,72,120,0.12); }
#card .dk-report__trigger--nudge { color: var(--lav-purple); }
@media (prefers-reduced-motion: no-preference) {
  .dk-report__tip { animation: dkFade 0.3s ease; }
  #card .dk-report__trigger--nudge { animation: dkReportNudge 1.4s 0.3s 3 ease-in-out; }
}
@keyframes dkReportNudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,72,120,0); }
  50%      { box-shadow: 0 0 0 6px rgba(74,72,120,0.13); }
}

.dk-report__form, .dk-report__confirm {
  position: absolute;
  bottom: 0;
  right: 0;
  box-sizing: border-box;
  padding: 10px;
  background: var(--lav-panel);
  border: 1px solid var(--lav-hairline);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(74,72,120,0.16);
  animation: dkFade 0.25s ease;
}
.dk-report__form { width: min(320px, calc(100vw - 64px)); }
.dk-report__confirm {
  width: max-content;
  max-width: min(260px, calc(100vw - 64px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.dk-report .hidden { display: none; }

.dk-report__input {
  display: block;
  width: 100%;
  font-family: var(--lav-ui);
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 10px;
  border: 1px solid var(--lav-hairline);
  border-radius: 6px;
  background: var(--lav-panel-soft);
  color: var(--lav-ink);
  resize: none;
  box-sizing: border-box;
}
.dk-report__input:focus {
  outline: none;
  border-color: var(--lav-purple-soft);
  box-shadow: 0 0 0 2px rgba(167,139,250,0.15);
}
.dk-report__input::placeholder { color: var(--lav-ink-muted); opacity: 0.6; }

.dk-report__actions { display: flex; gap: 8px; margin-top: 6px; justify-content: center; }
.dk-report__send, .dk-report__cancel {
  min-height: 44px;
  margin: 0;
  font-family: var(--lav-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.dk-report__send { background: var(--lav-ink-muted); color: #fff; }
.dk-report__send:hover:not(:disabled) { opacity: 0.85; }
.dk-report__cancel { background: none; color: var(--lav-ink-muted); }
.dk-report__error {
  margin: 6px 0 0;
  text-align: center;
  font: 400 12.5px/1.4 var(--lav-ui);
  color: #b4566b;
}
.dk-report__error:empty { display: none; }

.dk-report__flagged {
  font-family: var(--lav-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--lav-ink-muted);
}
.dk-report__suspend {
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
  font-family: var(--lav-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--lav-purple);
  background: rgba(74,72,120,0.06);
  border: 1px solid rgba(74,72,120,0.15);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dk-report__suspend:hover { background: rgba(74,72,120,0.12); border-color: rgba(74,72,120,0.25); }
.dk-report__suspend-hint {
  font-family: var(--lav-ui);
  font-size: 11px;
  color: var(--lav-ink-muted);
  margin: 0;
  line-height: 1.4;
  text-align: right;
}
@media (prefers-reduced-motion: reduce) {
  .dk-report__form, .dk-report__confirm { animation: none; }
  .dk-report__suspend { transition: none; }
}
