/* М-105: замечания к темам и раздел «Ошибки» в админке. */
.tp-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tp-heading .tp-title { min-width: 0; flex: 1; }
.er-swipe { touch-action: pan-y; }
.er-open { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; }
.er-open > span:first-child { font-size: 18px; line-height: 1; }
.er-dock { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 8px; padding: 14px 0; border-top: 1px solid var(--hairline-soft); color: var(--steel); font: 500 14px/1.4 var(--font); }
.er-dock .er-open { margin: 0; }
.er-pop { inset: 0; align-items: center; overflow-y: auto; background: rgb(26 26 26 / 32%); pointer-events: auto; }
.er-card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 14px; padding: 22px; background: var(--card); color: var(--ink); box-shadow: 0 18px 60px rgb(26 26 26 / 18%); animation: none; }
.er-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.er-form-head h2 { margin: 0; }
.er-form-head .chip-btn { min-height: 44px; }
.er-where { margin: 0; color: var(--steel); overflow-wrap: anywhere; }
.er-form { display: grid; gap: 16px; }
.er-field { display: grid; gap: 8px; font: 600 14px/1.4 var(--font); }
.er-field textarea { box-sizing: border-box; width: 100%; min-height: 132px; resize: vertical; padding: 12px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-8); background: var(--card); color: var(--ink); font: 400 16px/1.5 var(--font); }
.er-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.er-field textarea[readonly] { opacity: .75; }
.er-message { min-height: 20px; margin: 0; color: var(--error); }

.adm-error { display: grid; gap: 14px; }
.adm-error .adm-topic-head { margin: 0; }
.adm-error-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 16px/1.55 var(--font); color: var(--ink); }
.adm-error-link { justify-self: start; }
.adm-error .fb-actions { margin: 0; }

@media (max-width: 560px) {
  .tp-heading { gap: 8px; }
  .er-head-open { width: 44px; padding: 6px; }
  .er-head-open .er-label { display: none; }
  .er-dock { align-items: stretch; flex-direction: column; gap: 8px; }
  .er-dock-open { width: 100%; }
  .er-card { padding: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .er-pop { animation: er-fade-in 140ms ease-out; }
  .er-card { animation: er-rise-in 180ms ease-out; }
  @keyframes er-fade-in { from { opacity: 0; } }
  @keyframes er-rise-in { from { opacity: 0; transform: translateY(10px); } }
}
