[hidden] { display: none !important; }
.card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.auth { display: grid; gap: 9px; width: min(100%, 380px); }
.auth h2, dialog h2 { font-size: 1.15rem; }
input:not([type=checkbox]) { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.feedback { color: var(--accent); font-size: .86rem; padding-block: 6px; }
.feedback:empty, #account-name:empty { display: none; }
.desk.customer-mode { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.desk.customer-mode .thread { display: grid; }
.desk.agent-mode .empty { margin: auto; }
.empty { padding: 18px; font-size: .9rem; color: var(--muted); }
.composer-footer .primary, .history-button { margin-left: auto; }
.message img { display: block; max-width: 100%; max-height: 240px; border-radius: 8px; margin-top: 5px; }
.attachment:not([hidden]) { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.attachment img { max-width: 100px; max-height: 58px; border-radius: 5px; }
button:disabled { cursor: default; opacity: .6; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-row { padding: 12px 0; border-top: 1px solid var(--line); }
.admin-row p { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 4px 8px; color: var(--muted); font-size: .9rem; }
.admin-row button + button { margin-left: 6px; }
@media (max-width: 840px) {
  .desk.customer-mode { grid-template-rows: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-mode .empty, .customer-mode .back { display: none; }
}
