/* dashboard-support.css
   Contact Support attachments (screenshots + debug report), the help note
   above the message box, the viewer overlay, and the admin attachment panel.
   Same palette as dashboard.html's :root tokens. No emoji, no icons fonts. */

.sup-help {
  margin: 4px 0 14px; padding: 12px 14px; border-radius: 8px;
  background: var(--slate-100, #f4f4f5); border: 1px solid var(--slate-200, #e4e4e7);
  font-size: 12.5px; line-height: 1.6; color: var(--slate-600, #4a4a52);
}
.sup-help-title { font-weight: 700; color: var(--slate-900, #101012); font-size: 13px; margin-bottom: 4px; }
.sup-help p { margin: 0 0 6px; }
.sup-help p:last-child { margin-bottom: 0; }
.sup-help strong { color: var(--slate-800, #1c1c1f); }

.sup-attach { border: 1px dashed transparent; border-radius: 8px; padding: 2px; transition: border-color .15s, background .15s; }
.sup-attach.drag { border-color: var(--red, #c81e2d); background: #fff5f5; }
.sup-attach-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sup-note { margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 1.5;
  background: var(--amber-bg, #fef2f2); border: 1px solid var(--amber-bd, #fca5a5); color: var(--amber-tx, #991b1b); }

.sup-chip { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--slate-200, #e4e4e7); background: #fff; font-size: 12.5px; }
.sup-chip-name { font-weight: 600; color: var(--slate-900, #101012); }
.sup-chip-meta { color: var(--slate-400, #9a9aa3); font-size: 11.5px; flex: 1; }
.sup-link { background: none; border: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--red, #c81e2d); cursor: pointer; }
.sup-link:hover { text-decoration: underline; }

.sup-shots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sup-shot { position: relative; width: 132px; border: 1px solid var(--slate-200, #e4e4e7); border-radius: 8px;
  overflow: hidden; background: #fff; }
.sup-shot img { display: block; width: 100%; height: 84px; object-fit: cover; background: var(--slate-100, #f4f4f5); cursor: zoom-in; }
.sup-shot-meta { padding: 4px 8px; font-size: 11px; color: var(--slate-600, #4a4a52);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-shot-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(16,16,18,.72); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; padding: 0; }
.sup-shot-x:hover { background: var(--red, #c81e2d); }
.sup-shot.busy { display: flex; align-items: center; justify-content: center; height: 108px;
  font-size: 11.5px; color: var(--slate-400, #9a9aa3); }

/* Viewer overlay (screenshots, debug report text) — never a browser dialog. */
.sup-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(16,16,18,.78);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.sup-overlay img { max-width: 96vw; max-height: 86vh; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.sup-viewer { background: #fff; border-radius: 10px; width: min(860px, 96vw); max-height: 88vh; display: flex;
  flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.sup-viewer-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--slate-200, #e4e4e7);
  font-weight: 700; color: var(--slate-900, #101012); }
.sup-viewer-head span { flex: 1; }
.sup-viewer pre { margin: 0; padding: 12px 16px; overflow: auto; font: 11.5px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: var(--slate-800, #1c1c1f); white-space: pre-wrap; word-break: break-word; }
.sup-caption { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-size: 12px; }

/* Admin: attachments inside a support thread. */
.att-box { margin: 6px 0 12px; padding: 10px 12px; border: 1px solid var(--slate-200, #e4e4e7); border-radius: 8px; background: #fff; }
.att-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-600, #4a4a52); margin-bottom: 8px; }
.att-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.att-thumb { width: 150px; border: 1px solid var(--slate-200, #e4e4e7); border-radius: 6px; overflow: hidden; background: var(--slate-100, #f4f4f5); }
.att-thumb img { display: block; width: 100%; height: 96px; object-fit: cover; cursor: zoom-in; }
.att-thumb div { padding: 3px 7px; font-size: 11px; color: var(--slate-600, #4a4a52); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-log { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: 12.5px; }
