/* Tester notes (D-095): the floating «Замечание» button, its dialog and the admin list.
   Uses the cabinet tokens only (cabinet.css :root / [data-theme]). Linked from base.html. */

/* ---------------------------------------------------------------- floating button */
.tn-fab {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 24; /* under the drawer backdrop (25) and the sidebar (30) */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow);
  font-weight: 600;
  cursor: pointer;
}
.tn-fab:hover, .tn-fab:focus-visible { background: var(--accent-hover); color: var(--accent-contrast); }
.tn-fab .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .tn-fab { padding: 0.7rem; border-radius: 50%; }
  .tn-fab-label { display: none; }
}
@media print { .tn-fab { display: none; } }

/* ---------------------------------------------------------------- dialog */
.tn-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.tn-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.tn-form { display: grid; gap: var(--space-3); }
.tn-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tn-dialog-title { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xl); margin: 0; }
.tn-dialog-title .icon { color: var(--accent); }
.tn-form textarea { max-width: none; min-height: 7rem; }
.tn-form .field { gap: var(--space-1); }
.tn-actions { display: flex; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------- admin list */
.tn-table td { min-width: 0; }
.tn-meta { font-size: var(--fs-sm); line-height: 1.5; }
.tn-author { font-weight: 600; }
.tn-url, .tn-env, .tn-ua { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.tn-text { max-width: 32rem; }
.tn-short { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tn-details summary { cursor: pointer; overflow-wrap: anywhere; }
.tn-full { margin: var(--space-2) 0 0; max-height: 24rem; }
.tn-comment { margin-top: var(--space-2); }
.tn-shot-img { display: block; max-width: 11rem; max-height: 8rem; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.tn-status-form { margin-top: var(--space-2); max-width: 16rem; gap: var(--space-2); }
.tn-status-form textarea { min-height: 3rem; max-width: none; }
