#http-diagnostics-dialog .modal-surface { width: min(1120px, 100%); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; }
#operations-history-dialog .modal-surface { width: min(1120px, 100%); }
#operations-history-dialog .settings-journal { margin-top: 0; }
#operations-history-dialog .section-heading { padding-right: 56px; }
.diagnostic-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin: 18px 0 10px; }
#http-diagnostics-dialog button { min-height: 44px; min-width: 44px; }
.diagnostic-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-right: 56px; flex-wrap: wrap; }
.diagnostic-heading h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
#http-diagnostics-status { margin-bottom: 12px; }
#http-diagnostics-error { margin-bottom: 10px; }
#http-diagnostics-list { min-height: 0; }
#http-diagnostics-list table { table-layout: fixed; }
#http-diagnostics-list th, #http-diagnostics-list td { padding: 6px 8px; vertical-align: middle; }
#http-diagnostics-list th:nth-child(1) { width: 17%; }
#http-diagnostics-list th:nth-child(2) { width: 39%; }
#http-diagnostics-list th:nth-child(3), #http-diagnostics-list th:nth-child(5) { width: 8%; }
#http-diagnostics-list th:nth-child(4) { width: 14%; }
#http-diagnostics-list .order-cell { max-width: none; gap: 2px; font-size: 11px; }
#http-diagnostics-list .order-cell small { font-size: 9px; line-height: 1.35; }
#http-diagnostics-detail { border-top: 1px solid var(--ui-border, #dce2ea); margin-top: 20px; padding-top: 18px; }
#http-diagnostics-detail .detail-heading { padding-right: 64px; flex-wrap: wrap; gap: 6px; }
#http-diagnostics-detail .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.diagnostic-capture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.diagnostic-capture { padding: 12px; background: var(--ui-surface, #fff); border: 1px solid var(--ui-border, #dce2ea); border-radius: 8px; }
.diagnostic-capture h4 { margin: 0 0 8px; }
.diagnostic-capture dl { display: grid; gap: 8px; margin: 0; }
.diagnostic-capture .detail-field dt { margin-bottom: 3px; }
@media (max-width: 1180px) {
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td { padding: 4px; gap: 2px; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(1) { grid-column: 1 / span 2; grid-row: 2; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(3) { grid-column: 3; grid-row: 2; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(4) { grid-column: 2; grid-row: 3; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(5) { grid-column: 1; grid-row: 3; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:nth-child(6) { grid-column: 3; grid-row: 3; align-self: center; }
  html[data-theme] #http-diagnostics-list table.responsive-table tbody td:is(:nth-child(2), :nth-child(6))::before { display: none; }
}
@media (max-width: 640px) {
  .diagnostic-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .diagnostic-filter-form button { grid-column: 1 / -1; }
  .diagnostic-heading { flex-wrap: wrap; padding-right: 56px; }
  #http-diagnostics-detail .detail-grid, .diagnostic-capture-grid { grid-template-columns: minmax(0, 1fr); }
  #http-diagnostics-dialog .diagnostic-filter-form :is(input, select) { font-size: 16px; min-height: 44px; }
  #http-diagnostics-dialog .modal-surface { padding: 20px 12px; }
}
