.editor { max-width: 42rem; }
.editor label { display: block; font-weight: 600; margin-bottom: .3rem; }
.editor input:not([type=checkbox]):not([type=hidden]), .editor select, .editor textarea {
  display: block; width: 100%; padding: .5rem; border: 1px solid #adb5bd; border-radius: .375rem;
}
.editor input[type=checkbox] { width: 1.2rem; height: 1.2rem; }
.errorlist { color: #b02a37; padding-left: 1.2rem; }
h1 { margin-bottom: 1.5rem; }
.inbox-tabs { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding-bottom: 1rem; }
.inbox-tabs [aria-current] { font-weight: 700; text-decoration-thickness: .2em; }
.inbox-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: 1rem; background: #f4f6f8; }
.inbox-filters label { display: block; font-size: .9rem; }
.inbox-filters input, .inbox-filters select { max-width: 18rem; padding: .35rem; }
.appeal-feed { list-style: none; padding: 0; }
.appeal-feed li { border-bottom: 1px solid #dee2e6; }
.appeal-feed a { display: grid; gap: .3rem; padding: 1rem; text-decoration: none; color: inherit; }
.appeal-feed a:hover { background: #f4f6f8; }
.appeal-feed time { font-size: .85rem; color: #495057; }
.message-preview { overflow-wrap: anywhere; }
.operator-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 2rem; }
.operator-layout h2 { font-size: 1.35rem; }
.operator-layout h3 { font-size: 1.1rem; margin-top: 1rem; }
.operator-layout aside { padding: 1rem; background: #f4f6f8; }
.operator-layout aside form { margin-bottom: 1rem; }
.conversation-messages { list-style: none; padding: 0; }
.conversation-messages li { padding: 1rem 0; border-bottom: 1px solid #dee2e6; }
.message-text { overflow-wrap: anywhere; }
.attachment-preview { max-width: 100%; max-height: 18rem; }
.reply-editor { margin-top: 1.5rem; }
@media (max-width: 800px) { .operator-layout { grid-template-columns: 1fr; } }
/* ТЗ §7: ожидание ответа дольше рабочего порога. */
.appeal-feed li[data-reply-overdue] { background: #fff3cd; border-left: 4px solid #997404; }
