.support-form textarea{min-height:96px}
.support-text{margin-top:.35rem;white-space:pre-wrap;overflow-wrap:anywhere}
.support-status{display:inline-flex;align-items:center;font-size:.85rem;font-weight:700;border-radius:999px;padding:6px 13px;margin-top:10px;background:#eeeff2;color:#51545e}
.support-status.status-new{background:#e8e9ed;color:#3f424b}
.support-status.status-in_progress{background:#e6eefc;color:#24487e}
.support-status.status-needs_info{background:#fbf1dd;color:#7a5a17}
.support-status.status-fixed{background:#e4f2eb;color:#21553f}
.support-status.status-closed{background:#f1e6e9;color:#7c3341}
.badge.warn{background:#fbf1dd;color:#7a5a17}
.support-attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.support-attachments figure{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fafafb;display:flex;flex-direction:column;min-width:0}
.support-attachments img,.support-attachments video{display:block;width:100%;max-height:280px;object-fit:contain;background:#1b1a1f}
.support-attachments figcaption{padding:10px 12px;font-size:.85rem;overflow-wrap:anywhere}
.support-attachments figcaption a{color:var(--red);margin-left:6px;white-space:nowrap}
.support-message{border:1px solid var(--line);border-left:4px solid #b9bcc6;border-radius:9px;padding:14px 16px;margin-bottom:12px;background:#fff}
.support-message header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.9rem}
.support-message.from-author{border-left-color:#24487e;background:#f7f9fd}
.support-message.from-support{border-left-color:#21553f;background:#f6faf8}
.support-message.internal{border-left-color:#a3202b;background:#fdf6f7}
.support-secret{font-family:Consolas,"Courier New",monospace;font-size:1rem;background:#1b1a1f;color:#f4f4f6;border-radius:8px;padding:14px 16px;overflow-wrap:anywhere}
.support-select{display:inline-flex;align-items:center;margin:0 10px 0 0;font-weight:400}
.support-select input{width:19px;height:19px;accent-color:var(--red)}
.danger-zone{border-color:#e6b7bc}
.support-card{margin:12px 0 0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 18px}
.support-card dt{color:var(--muted);font-size:.9rem;font-weight:600}
.support-card dd{margin:0;overflow-wrap:anywhere}
.support-confirm{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;cursor:pointer}
.support-confirm input{width:19px;height:19px;min-width:19px;margin:0;flex:0 0 19px;accent-color:var(--red)}
.support-retention-form{margin-top:12px}
.support-retention-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0}
.support-retention-choice{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:600;font-size:.95rem;min-height:44px;cursor:pointer}
.support-retention-choice>input[type=radio]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:0 0 20px;accent-color:var(--red)}
.support-retention-options input.support-retention-days{width:5.5rem;min-width:0;flex:0 0 auto;margin:0;text-align:center}
.support-retention-options input.support-retention-days:disabled{background:#eef0f3;color:#8a8d96;cursor:not-allowed}
.support-retention-options .button{margin:0}
.support-retention-dirty{color:#7a5a17;font-weight:600}
@media(max-width:520px){
  .support-attachments{grid-template-columns:1fr}
  .support-message header{flex-direction:column;gap:2px}
  .support-card{grid-template-columns:1fr;gap:2px}
  .support-card dd{margin-bottom:8px}
}
.support-form .form-status { margin: 10px 0 0; font-size: .9rem; font-weight: 600; }
.support-form .form-status.is-success { color: #21553f; }
.support-form .form-status.is-error { color: #812833; }
.support-form .form-status.is-pending { color: var(--muted); }

/* Визуальный редактор поддержки: контейнер на каждое поле, стили панели — из общего файла материалов. */
.support-editor{border:1px solid #cfc7bd;border-radius:10px;background:#fffdf9;margin-bottom:.75rem}
.support-editor textarea{display:block;width:100%;box-sizing:border-box;padding:.75rem .9rem;border:0;min-height:8rem;font-family:inherit;font-size:1.02rem;line-height:1.6}
.support-editor .editor-surface{min-height:8rem}
.support-editor .editor-surface .ProseMirror{min-height:8rem}
.support-editor.editor-ready textarea{display:none}
.support-editor.editor-ready .editor-surface{display:block}
.support-editor-actions{display:none;flex-wrap:wrap;gap:.4rem;align-items:center;padding:.4rem}
.support-editor.editor-ready .support-editor-actions{display:flex}
.support-editor-actions input[inputmode="url"]{flex:1 1 12rem;min-width:0}
.support-files{margin-top:.9rem}
.support-files h3{margin:0 0 .35rem;font-size:1rem}
.support-attachment-list{list-style:none;padding:0;margin:.5rem 0}
.support-attachment-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.35rem 0;border-bottom:1px solid var(--line)}
.support-attachment-list a{padding:10px 0}
.support-upload-failed-row,.support-upload-pending-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.3rem 0}
.support-attachment-name{font-weight:600;overflow-wrap:anywhere}
.support-rich{margin-top:.35rem;overflow-wrap:anywhere}
.support-rich img{max-width:100%;height:auto;border-radius:8px}
.support-rich figure{margin:.6rem 0}
.support-rich figcaption{font-size:.85rem;color:var(--muted);margin-top:.25rem}
.support-rich iframe{max-width:100%;width:100%;aspect-ratio:16/9;border:0;border-radius:8px}
.support-rich blockquote{margin:.6rem 0;padding:.2rem .9rem;border-left:3px solid #b58b5a;color:#4a4038}
.support-rich .material-file-missing,.support-rich .material-media-missing{color:#812833}

/* Выбор действия при существующем черновике и подтверждение очистки. */
.support-draft-dialog{border:0;border-radius:14px;padding:20px 22px;max-width:min(540px,92vw);box-shadow:0 22px 60px rgba(25,26,33,.3);color:inherit}
.support-draft-dialog::backdrop{background:rgba(25,26,33,.45)}
.support-draft-dialog h2{margin:0 0 .5rem;font-size:1.15rem}
.support-draft-dialog p{margin:0 0 1rem;overflow-wrap:anywhere}
.support-draft-dialog .button-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:0}

/* Недоступные вложения в разметке: пометка и удаление только из текста. */
.support-unavailable{margin:.4rem .6rem .6rem;padding:.6rem .8rem;border:1px dashed #b06a73;border-radius:8px;background:#fdf6f7}
.support-unavailable p{margin:0 0 .35rem;font-weight:600}
.support-unavailable-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.support-unavailable-list li{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.editor-surface .support-unavailable-node{outline:2px dashed #b06a73;outline-offset:2px;border-radius:6px}
.support-drafts .message{margin:.4rem 0 0}
.support-form .message.is-error{background:#fce9eb;border:1px solid #e6b7bc;color:#812833}
.support-form .message.is-ok{background:#e4f2eb;border:1px solid #a8cdbc;color:#21553f}
.js .support-nojs-action{display:none}
