.site-reports-toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #ddd; background: #f5f6f7; color: #16191c; font: 14px Arial, sans-serif; }
.site-reports-toolbar > button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; color: #16191c; border: 1px solid #aeb4b8; border-radius: 8px; cursor: pointer; }
.site-tools > .site-reports-toolbar { flex: 0 0 auto; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: 14px Arial, sans-serif; }
.site-tools > .site-reports-toolbar > button { min-height: 42px; border-color: rgb(255 255 255 / 16%); border-radius: 999px; color: #fff; background: rgb(24 28 57 / 92%); box-shadow: 0 12px 34px rgb(0 0 0 / 24%); font-weight: 700; white-space: nowrap; }
.site-tools > .site-reports-toolbar > button:hover,
.site-tools > .site-reports-toolbar > button:focus-visible { color: var(--editq-brand-on, #181c39); background: var(--editq-brand, #b3fc6a); outline: 3px solid rgb(92 109 255 / 35%); outline-offset: 2px; }
.site-tools > .site-reports-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.reports-dialog { width: min(920px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px; box-sizing: border-box; border: 1px solid var(--color-hairline, #d9dce5); border-radius: 14px; background: var(--color-surface, white); color: var(--color-ink, #171a2f); font: 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 70px rgb(12 17 47 / 22%); }
.reports-dialog::backdrop { background: rgb(8 12 34 / 48%); }
.reports-dialog.reports-drawer { position: fixed; inset: var(--published-header-height, 78px) 0 0 auto; width: min(540px, 100vw); max-width: 100vw; height: calc(100dvh - var(--published-header-height, 78px)); max-height: calc(100dvh - var(--published-header-height, 78px)); margin: 0; padding: 0; border: 0; border-left: 1px solid #e2e5ef; border-radius: 0; background: #fff; box-shadow: -16px 0 46px rgb(15 22 59 / 14%); overflow: hidden; z-index: 2147483000; }
.reports-dialog * { box-sizing: border-box; min-width: 0; }
.reports-dialog > header, .reports-toolbar, .reports-list-heading, .reports-detail-toolbar, .reports-detail-title, .reports-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reports-drawer-header { position: relative; z-index: 3; min-height: 65px; padding: 25px 24px 0; color: #171b37; background: #fff; }
.reports-drawer-header h2 { color: inherit; font-size: 24px; letter-spacing: -.35px; }
.reports-drawer .reports-body { height: calc(100dvh - var(--published-header-height, 78px) - 65px); padding: 0 24px 32px; overflow-y: auto; scrollbar-gutter: stable; }
.reports-drawer > .reports-message { position: absolute; z-index: 4; top: 68px; right: 24px; left: 24px; min-height: 0; margin: 0; background: #fff; }
.reports-toolbar { flex-wrap: wrap; margin: 16px 0; }
.reports-list-heading { margin-bottom: 14px; }
.reports-context { margin: 8px 0 16px; color: var(--color-ink-muted, #5e6479); }
.reports-restriction { padding: 10px 12px; border: 1px solid #e8c36a; border-radius: 8px; background: #fff8df; color: #664d03; }
.reports-dialog h2 { font-size: 22px; margin: 0; overflow-wrap: anywhere; }
.reports-dialog h3 { font-size: 21px; margin: 12px 0; overflow-wrap: anywhere; }
.reports-dialog h4 { font-size: 15px; margin: 12px 0; }
.reports-dialog button { border: 1px solid #cfd3df; border-radius: 9px; min-height: 38px; padding: 8px 13px; font: inherit; font-weight: 600; background: #14172a; color: white; cursor: pointer; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.reports-dialog button:hover { filter: brightness(1.08); }
.reports-dialog button:focus-visible, .reports-dialog input:focus-visible, .reports-dialog select:focus-visible, .reports-dialog textarea:focus-visible { outline: 3px solid rgb(86 105 255 / 30%); outline-offset: 2px; border-color: #5669ff; }
.reports-dialog button:disabled { opacity: .55; cursor: default; }
.reports-dialog .reports-primary { border-color: #4f5dff; background: linear-gradient(135deg, #5669ff, #4b45f4); color: white; box-shadow: 0 8px 20px rgb(78 83 240 / 22%); }
.reports-dialog .reports-secondary { background: transparent; color: inherit; box-shadow: none; }
.reports-drawer-header .reports-secondary { border-color: rgb(255 255 255 / 28%); color: white; }
.reports-dialog .reports-icon-button { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; font-size: 23px; }
.reports-dialog label { display: grid; gap: 7px; margin: 14px 0; font-weight: 700; }
.reports-dialog .reports-check { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-weight: 500; }
.reports-dialog .reports-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; }
.reports-dialog input, .reports-dialog select, .reports-dialog textarea { width: 100%; border: 1px solid #cfd3df; border-radius: 9px; padding: 11px 12px; font: inherit; line-height: 1.4; background: #fff; color: inherit; }
.reports-dialog textarea { resize: vertical; }
.reports-dialog section { border-top: 1px solid #e1e4ec; margin-top: 22px; padding-top: 10px; }
.reports-dialog .reports-lead { color: #62687d; line-height: 1.5; }
.reports-source-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0 24px; padding: 16px; border: 1px solid #e5e7ef; border-radius: 10px; background: #f6f7fa; }
.reports-source-copy { display: grid; gap: 4px; }
.reports-source-main { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 6px; }
.reports-source-main > div { display: grid; gap: 3px; }
.reports-source-icon { display: grid; width: 30px; height: 34px; place-items: center; border-radius: 7px; color: #28325a; background: #fff; }
.reports-source-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reports-source-icon img { width: 18px; height: 18px; object-fit: contain; }
.reports-source-card span { font-weight: 700; }
.reports-source-card small, .reports-dialog small { color: #687086; overflow-wrap: anywhere; }
.reports-source-link { flex: 0 0 auto; border: 1px solid #cdd2df; border-radius: 8px; padding: 8px 10px; color: #303852 !important; background: #fff; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.reports-source-link:hover, .reports-source-link:focus-visible { border-color: var(--editq-brand, #5869fc); color: var(--editq-brand, #5869fc) !important; outline: none; }
.reports-filter-tabs { display: flex; gap: 5px; margin: 12px 0 18px; padding: 4px; border-radius: 10px; background: #eef0f7; overflow-x: auto; }
.reports-filter-tabs button { flex: 1 0 auto; min-height: 34px; padding: 6px 9px; border: 0; color: #53596d; background: transparent; box-shadow: none; }
.reports-filter-tabs button.is-active { color: #20264e; background: #fff; box-shadow: 0 2px 8px rgb(17 23 54 / 10%); }
.reports-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; width: 100%; margin-bottom: 8px; padding: 14px; text-align: left; border: 1px solid #e1e4ec !important; border-radius: 11px !important; color: inherit !important; background: #fff !important; box-shadow: 0 3px 12px rgb(17 23 54 / 5%); }
.reports-row:hover { border-color: #b8c0ff !important; transform: translateY(-1px); }
.reports-row.has-unread { border-left: 4px solid #5669ff !important; }
.reports-row-main strong, .reports-row-main small { display: block; }
.reports-row-main small { margin-top: 5px; font-weight: 400; }
.reports-row-date { grid-column: 1 / -1; font-weight: 400; }
.reports-unread { position: absolute; right: 12px; bottom: 10px; color: #3e49d6; font-size: 12px; font-weight: 700; }
.reports-status { display: inline-flex; align-items: center; gap: 6px; align-self: start; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eceef4; color: #4f556a; }
.reports-status-received { background: #e9efff; color: #2949a3; }
.reports-status-analyzing, .reports-status-waiting_reporter { background: #fff2d5; color: #7a5100; }
.reports-status-response_available { background: #def7e9; color: #096c43; }
.reports-status-resolved { background: #e0f5eb; color: #086440; }
.reports-status-closed_no_change { background: #eceef3; color: #50566a; }
.reports-detail-toolbar { margin-bottom: 14px; }
.reports-detail-title { align-items: flex-start; }
.reports-detail-title h3 { margin: 4px 0; }
.reports-detail-status { margin: 0 0 10px; }
.reports-status-help { margin: 5px 0 16px; color: #62687d; }
.reports-conversation { border-top: 0 !important; }
.reports-timeline { display: grid; gap: 22px; }
.reports-message-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 10px; padding: 0 !important; border: 0 !important; }
.reports-dialog .reports-message-card { margin: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.reports-avatar { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--editq-brand, #5869fc); font-size: 12px; font-weight: 800; }
.reports-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reports-message-card.is-reporter .reports-avatar { background: #5869fc; }
.reports-message-card.is-quality .reports-avatar { background: #31405a; }
.reports-message-content > header { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.reports-message-content > header span { color: #62687d; font-size: 12px; }
.reports-message-content > header time { color: #777e92; font-size: 12px; white-space: nowrap; }
.reports-message-card .reports-text { margin: 0; padding: 13px 15px; border-radius: 4px 12px 12px 12px; background: #f0f2f6; }
.reports-message-card.is-reporter .reports-text { background: #eef0ff; }
.reports-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.reports-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.reports-attachments button { min-height: 32px; padding: 5px 9px; border-color: #d8dce8; color: #313750; background: #fff; box-shadow: none; }
.reports-compose-actions { align-items: flex-end; flex-wrap: wrap; }
.reports-file-button { display: inline-flex !important; flex-direction: row; align-items: center; gap: 6px !important; margin: 0 !important; padding: 8px 10px; border: 1px solid #d5d9e4; border-radius: 8px; cursor: pointer; }
.reports-file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reports-drawer[data-view="detail"] .reports-body { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.reports-drawer[data-view="detail"] .reports-conversation { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; margin-top: 0; padding-top: 0; overflow: hidden; }
.reports-drawer[data-view="detail"] .reports-conversation > h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reports-drawer[data-view="detail"] .reports-timeline { flex: 1 1 auto; min-height: 0; grid-auto-rows: max-content; align-content: start; padding: 2px 2px 24px 0; overflow-y: auto; scrollbar-gutter: stable; }
.reports-drawer[data-view="detail"] [data-followup] { position: relative; z-index: 2; flex: 0 0 auto; margin: 0 -24px; border-top: 1px solid #e1e4ec; padding: 16px 24px 20px; background: #fff; box-shadow: 0 -10px 24px rgb(21 28 62 / 4%); }
.reports-drawer[data-view="detail"] [data-followup] > label { margin: 0 0 10px; font-size: 0; }
.reports-drawer[data-view="detail"] [data-followup] textarea { min-height: 78px; padding-right: 52px; font-size: 14px; }
.reports-drawer[data-view="detail"] .reports-compose-actions { min-height: 42px; align-items: center; justify-content: flex-end; }
.reports-drawer[data-view="detail"] .reports-file-button { position: absolute; top: 27px; right: 30px; display: grid !important; width: 34px; height: 34px; place-items: center; margin: 0 !important; border: 0; padding: 0; color: #69718b; background: transparent; font-size: 18px; }
.reports-drawer[data-view="detail"] .reports-file-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reports-reply-visibility { margin: 0 auto 0 0; color: #777e92; font-size: 11px; line-height: 1.4; }
.reports-drawer[data-view="detail"] .reports-primary { border-color: #5869fc; color: #fff; background: linear-gradient(135deg, #5869fc, #4b45f4); }
.reports-drawer-header .reports-secondary { border-color: #d9dde7; color: #252a40; background: #fff; }
.reports-drawer-header .reports-icon-button img { width: 18px; height: 18px; object-fit: contain; }
.reports-qualification { margin-top: 30px !important; }
.reports-answers { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 8px 16px; }
.reports-answers dt { font-weight: 700; overflow-wrap: anywhere; }
.reports-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reports-message { min-height: 18px; color: #a02626; font-weight: 700; }
.reports-pagination { display: flex; justify-content: center; margin-top: 16px; }
.reports-confirmation { display: grid; justify-items: center; gap: 10px; padding: 48px 12px; text-align: center; }
.reports-confirmation-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #1b9663; font-size: 28px; }
.reports-confirmation > strong { padding: 8px 14px; border-radius: 999px; color: #313a93; background: #eceeff; font-size: 18px; }
.reports-confirmation > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.reports-empty { padding: 28px; text-align: center; color: #687086; }

@media (max-width: 760px) {
  .site-tools > .site-reports-toolbar { gap: 5px; }
  .site-tools > .site-reports-toolbar > button { justify-content: center; width: 36px; min-height: 36px; padding: 0; }
  .site-tools > .site-reports-toolbar > button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-tools > .editq-domain-logo + .site-reports-toolbar { position: absolute; top: 10px; right: 12px; }
  .reports-dialog.reports-drawer { width: 100vw; }
  .reports-drawer-header, .reports-drawer .reports-body { padding-left: 16px; padding-right: 16px; }
  .reports-row { grid-template-columns: minmax(0, 1fr); }
  .reports-status { justify-self: start; }
  .reports-message-content > header { grid-template-columns: 1fr auto; }
  .reports-message-content > header span { grid-column: 1 / -1; }
  .reports-compose-actions { align-items: stretch; }
}
@media (max-width: 480px) {
  .reports-dialog:not(.reports-drawer) { padding: 14px; }
  .reports-answers { grid-template-columns: minmax(0, 1fr); }
  .reports-answers dd { margin-bottom: 8px; }
  .reports-dialog h2 { font-size: 20px; }
  .reports-filter-tabs button { font-size: 12px; }
}
