.sw-page { display:grid; gap:16px; align-content:start; max-width:1500px; margin:0 auto; min-width:0; }
.sw-page h2 { font-size:18px; line-height:1.5; margin:0; }
.sw-page h3 { font-size:15px; line-height:1.5; margin:0; }
.sw-page p { margin:8px 0; overflow-wrap:anywhere; }
.sw-header,.sw-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.sw-tabs,.sw-actions,.sw-ranks { display:flex; gap:8px; flex-wrap:wrap; }
.sw-tabs button[aria-pressed=true] { background:#e8f0fc; color:#164e99; border-color:#7c9fc8; }
.sw-section { padding:20px; min-width:0; }
.sw-section-head { margin-bottom:16px; }
.sw-filter { padding:16px 20px; min-width:0; }
.sw-filter-main { display:grid; grid-template-columns:minmax(180px,1.5fr) repeat(2,minmax(140px,1fr)) auto; align-items:end; gap:12px; }
.sw-filter-buttons { display:flex; gap:8px; }
.sw-page label { display:grid; align-content:start; gap:6px; min-width:0; color:#3f5368; font-size:13px; }
.sw-page .input,.sw-page .select { width:100%; min-width:0; min-height:44px; font:inherit; font-size:14px; }
.sw-page .button { min-height:44px; white-space:normal; line-height:1.4; }
.sw-page .button:focus-visible,.sw-page input:focus-visible,.sw-page select:focus-visible,.sw-page textarea:focus-visible,.sw-page summary:focus-visible { outline:3px solid #286ec3; outline-offset:2px; }
.sw-page textarea { resize:vertical; min-height:96px; }
.sw-page fieldset { min-width:0; margin:0; padding:0; border:0; }
.sw-page fieldset:disabled { opacity:.75; }
.sw-page details { min-width:0; }
.sw-page summary { cursor:pointer; min-height:44px; display:flex; align-items:center; padding:8px 0; color:#314d6c; font-size:13px; overflow-wrap:anywhere; }
.sw-filter details { margin-top:8px; }
.sw-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:16px 0; }
.sw-wide { grid-column:1/-1; min-width:0; }
.sw-page .sw-check { display:flex; align-items:center; gap:8px; min-height:44px; }
.sw-check input { width:20px; height:20px; }
.sw-table-wrap { overflow:auto; max-width:100%; }
.sw-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.sw-table th { color:#526477; background:#f4f7fa; font-weight:600; white-space:nowrap; }
.sw-table th,.sw-table td { padding:12px; border-bottom:1px solid #e1e7ee; vertical-align:top; }
.sw-table td { min-width:110px; max-width:370px; overflow-wrap:anywhere; }
.sw-table strong,.sw-table small { display:block; }
.sw-table strong { font-size:14px; }
.sw-table small { color:#526477; margin-top:5px; line-height:1.6; }
.sw-status { display:inline-block; font-size:12px; color:#355777; background:#edf3f9; padding:3px 8px; border-radius:3px; line-height:1.6; }
.sw-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:20px 0; }
.sw-facts dt { color:#526477; font-size:12px; }
.sw-facts dd { margin:5px 0 0; color:#1d334b; font-size:14px; overflow-wrap:anywhere; white-space:pre-wrap; }
.sw-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 20px; }
.sw-metrics button { text-align:left; background:transparent; border:0; border-bottom:2px solid #d9e4ef; padding:14px 0; color:#233b54; cursor:pointer; }
.sw-metrics button:hover { background:#f3f7fc; }
.sw-metrics span { display:block; font-size:13px; }
.sw-metrics strong { display:block; font-size:28px; margin-top:6px; font-variant-numeric:tabular-nums; }
.sw-metrics strong small { font-size:12px; color:#536a82; margin-left:6px; font-weight:400; }
.sw-pagination { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; padding-top:16px; font-size:13px; color:#526477; }
.sw-pagination span { margin-right:auto; }
.sw-empty { padding:32px 12px; text-align:center; color:#526477; }
.sw-empty h3 { color:#29435f; }
.sw-note { color:#526477; font-size:12px; line-height:1.7; }
.sw-preserve { white-space:pre-wrap; }
.sw-loading { color:#526477; font-size:13px; padding:0 4px; }
.sw-form-error { background:#fff2ef; color:#9a3929; border:1px solid #edcec6; padding:12px 16px; margin:12px 0; overflow-wrap:anywhere; }
.sw-form-error[hidden] { display:none; }
.sw-recovery { border-left:3px solid #ad6c15; background:#fff5df; color:#75511c; padding:12px 16px; font-size:13px; }
.sw-preview { border-left:3px solid #2b65a6; background:#f0f5fc; padding:16px; margin:16px 0; }
.sw-query-state { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-top:12px; font-size:13px; }
.sw-source,.sw-contract { padding:16px 0; border-bottom:1px solid #e1e7ee; }
.sw-source:last-child,.sw-contract:last-child { border-bottom:0; }
.sw-scope { padding:12px 0; }
.sw-scope + .sw-scope { border-top:1px dashed #dbe3ec; }
.sw-page fieldset.sw-scope-editor { margin:16px 0; padding:16px; border:1px solid #dbe3ec; border-radius:4px; }
.sw-scope-editor legend { padding:0 8px; font-size:14px; font-weight:600; color:#29435f; }
.sw-event { border-bottom:1px solid #e1e7ee; padding:6px 0; }
.sw-event summary { font-size:13px; gap:8px; }
.sw-change-list { display:grid; gap:10px; font-size:13px; }
.sw-change-list > div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; }
.sw-change-list dt { color:#526477; }
.sw-change-list dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.sw-page pre { max-height:420px; overflow:auto; padding:12px; background:#f4f7fa; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.sw-evidence-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sw-evidence-grid article { min-width:0; border-bottom:1px solid #e1e7ee; padding-bottom:12px; }
.sw-evidence-grid img { display:block; width:100%; height:190px; object-fit:contain; background:#f4f7fa; }
.sw-evidence-grid small { font-size:12px; color:#526477; }
.sw-evidence-options article { display:grid; grid-template-columns:160px minmax(0,1fr); gap:16px; padding:16px 0; border-bottom:1px solid #e1e7ee; }
.sw-evidence-options img { display:block; width:160px; height:120px; object-fit:contain; background:#f4f7fa; }
.sw-legacy-toolbar { padding:8px 20px; }
.sw-takeover-duplicates { display:flex; align-items:end; flex-wrap:wrap; gap:8px; margin-top:20px; }
.sw-takeover-duplicates label { flex:1 1 240px; }
.sw-takeover-matches { margin:8px 0; padding-left:24px; }
.sw-takeover-matches li + li { margin-top:8px; }
.sw-takeover-matches li > small { display:block; color:#526477; overflow-wrap:anywhere; }
@media(max-width:1100px) { .sw-filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); } .sw-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
  .sw-section,.sw-filter { padding:16px; }
  .sw-header { align-items:flex-start; }
  .sw-form-grid,.sw-filter-main { grid-template-columns:1fr; }
  .sw-page .input,.sw-page .select { font-size:16px; }
  .sw-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
  .sw-evidence-grid { grid-template-columns:1fr; }
  .sw-evidence-options article { grid-template-columns:110px minmax(0,1fr); gap:12px; }
  .sw-evidence-options img { width:110px; height:100px; }
  .sw-change-list > div { grid-template-columns:1fr; gap:4px; }
  .sw-item-table,.sw-item-table tbody { display:block; }
  .sw-item-table thead { display:none; }
  .sw-item-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px 0; gap:12px; border-bottom:1px solid #dbe3ec; }
  .sw-item-table td { display:block; min-width:0; max-width:none; padding:0; border:0; }
  .sw-item-table td:first-child,.sw-item-table td:last-child { grid-column:1/-1; }
  .sw-item-table td[data-label]::before { content:attr(data-label); display:block; color:#64778c; font-size:11px; margin-bottom:5px; }
  .sw-item-table td:first-child::before { display:none; }
  .sw-item-table .sw-item-action .button { width:100%; }
  .sw-legacy-toolbar { padding:8px 12px; }
}
@media(max-width:420px) { .sw-facts { grid-template-columns:1fr; } .sw-header .inline-actions { width:100%; } }
