.sp { --sp-muted: #52627a; color: #243650; font: 14px/1.55 "Gordita", "Segoe UI", sans-serif; letter-spacing: 0; }
.sp [hidden] { display: none !important; }
.sp h1, .sp h2, .sp h3, .sp p { margin: 0; }
.sp h1 { color: #10224a; font-size: 28px; line-height: 1.3; }
.sp h2 { color: #10224a; font-size: 18px; line-height: 1.4; }
.sp h3 { color: #10224a; font-size: 15px; }
.sp a { color: #1258b8; text-underline-offset: 3px; }
.sp-intro { padding: 28px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sp-intro p { margin-top: 8px; color: var(--sp-muted); }
.sp-intro-links { display: flex; flex-direction: column; flex-shrink: 0; align-items: flex-end; gap: 7px; font-size: 12px; }
.sp-version { color: #0b6c4d; display: inline-flex; align-items: center; gap: 6px; }
.sp button, .sp input, .sp select, .sp textarea { font: inherit; letter-spacing: 0; }
.sp button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid #c8d5e5; border-radius: 5px; background: #fff; color: #243650; cursor: pointer; line-height: 1.4; }
.sp button:hover:not(:disabled) { border-color: #1258b8; background: #edf4fe; color: #1258b8; }
.sp button:disabled { cursor: not-allowed; opacity: .5; }
.sp :is(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid #1671d0; outline-offset: 3px; }
.sp button.sp-primary { background: #1258b8; border-color: #1258b8; color: #fff; }
.sp button.sp-primary:hover:not(:disabled) { background: #0b438f; color: #fff; }
.sp button.sp-icon { width: 38px; height: 38px; min-width: 38px; padding: 0; font-size: 16px; }
.sp i.bi { flex-shrink: 0; }
.sp input:not([type="checkbox"]):not([type="file"]), .sp select, .sp textarea { width: 100%; min-width: 0; border: 1px solid #bdcbdc; border-radius: 5px; background: #fff; color: #243650; padding: 9px 11px; }
.sp input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; accent-color: #1258b8; cursor: pointer; }
.sp textarea { resize: vertical; min-height: 120px; font-family: Consolas, monospace; font-size: 13px; line-height: 1.6; }
.sp textarea[aria-invalid="true"] { border-color: #b53636; }
.sp-fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.sp-presetbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-block: 1px solid #dce5f1; padding: 15px 0; }
.sp-presetbar-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-label { font-size: 12px; font-weight: 600; color: var(--sp-muted); }
.sp-segments { display: inline-flex; gap: 0; }
.sp-segments button { border-radius: 0; margin-left: -1px; font-size: 13px; padding-inline: 16px; }
.sp-segments button:first-child { border-radius: 5px 0 0 5px; margin-left: 0; }
.sp-segments button:last-child { border-radius: 0 5px 5px 0; }
.sp-segments button[aria-pressed="true"] { background: #eaf2ff; border-color: #1258b8; color: #0b438f; position: relative; z-index: 1; }
.sp-tools { display: flex; gap: 6px; }
.sp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 28px; padding: 24px 0 30px; align-items: start; }
.sp-catalogue, .sp-result { min-width: 0; }
.sp-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sp-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr); gap: 10px; }
.sp-search { position: relative; }
.sp-search > i { position: absolute; left: 11px; top: 10px; pointer-events: none; color: var(--sp-muted); }
.sp .sp-search input[type="search"] { padding-left: 35px; }
.sp-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0; font-size: 12px; }
.sp-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sp button.sp-text { border: 0; background: transparent; color: #1258b8; padding: 4px 0; min-height: 32px; font-size: 12px; }
.sp-count { margin-left: auto; color: var(--sp-muted); font-size: 12px; }
.sp-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; height: 360px; overflow: auto; align-content: start; overscroll-behavior: contain; padding: 2px 5px 2px 2px; border-block: 1px solid #dce5f1; scrollbar-gutter: stable; }
.sp-service { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 60px; border-bottom: 1px solid #edf1f6; cursor: pointer; padding: 9px 7px; }
.sp-service:hover { background: #f3f7fc; }
.sp-service:has(input:checked) { background: #f0f6ff; }
.sp-service-text { flex: 1; min-width: 0; }
.sp-service strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sp-service small { display: block; font-size: 10px; color: var(--sp-muted); margin-top: 3px; overflow-wrap: anywhere; }
.sp-service-count { font: 12px/1 Consolas, monospace; color: var(--sp-muted); }
.sp-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; min-height: 38px; font-size: 12px; color: var(--sp-muted); }
.sp-empty { padding: 26px 12px; color: var(--sp-muted); text-align: center; grid-column: 1 / -1; }
.sp-custom { border-top: 1px solid #dce5f1; margin-top: 20px; padding-top: 15px; }
.sp summary { cursor: pointer; font-weight: 600; color: #10224a; padding: 5px 0; }
.sp-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; }
.sp-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.sp-help { color: var(--sp-muted); font-size: 11px; line-height: 1.6; }
.sp-field .sp-help { margin: 6px 0; }
.sp-custom-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.sp-result { border-left: 1px solid #dce5f1; padding-left: 27px; }
.sp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0 18px; border-bottom: 1px solid #dce5f1; margin-bottom: 16px; }
.sp-stats div { min-width: 0; display: flex; flex-direction: column; }
.sp-stats dt { font-size: 11px; color: var(--sp-muted); overflow-wrap: anywhere; }
.sp-stats dd { order: -1; margin: 0 0 3px; font-size: 26px; line-height: 1.2; font-weight: 600; color: #10224a; font-variant-numeric: tabular-nums; }
.sp-export { display: flex; gap: 8px; margin-bottom: 10px; }
.sp-export .sp-primary { flex: 1; }
.sp-tabs { display: flex; border-bottom: 1px solid #dce5f1; gap: 20px; margin-top: 18px; }
.sp-tabs button { border: 0; border-radius: 0; padding: 8px 0; border-bottom: 2px solid transparent; background: transparent; font-size: 13px; }
.sp-tabs button[aria-selected="true"] { color: #1258b8; border-bottom-color: #1258b8; }
.sp-files { list-style: none; padding: 0; margin: 0; max-height: 288px; overflow: auto; scrollbar-gutter: stable; }
.sp-file { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #edf1f6; padding: 10px 0; }
.sp-file > i { color: #0b6c4d; font-size: 20px; }
.sp-file-info { flex: 1; min-width: 0; }
.sp-file-info strong { display: block; font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.sp-file-info small { color: var(--sp-muted); font-size: 10px; }
.sp-domain-search { margin: 12px 0 8px; }
.sp-domains { list-style: none; margin: 0; padding: 0; max-height: 270px; overflow: auto; scrollbar-gutter: stable; }
.sp-domain { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f6; min-height: 43px; }
.sp-domain code { overflow-wrap: anywhere; font-size: 12px; }
.sp-output-note { margin-top: 12px !important; }
.sp-notice { background: #eff6ff; color: #224e80; border-left: 3px solid #4c8bc9; padding: 10px 12px; margin: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
.sp-notice.is-error { background: #fff3f1; border-color: #b84c3e; color: #852d24; }
.sp-notice.is-warning { background: #fff9e9; border-color: #ba8615; color: #75520a; }
.sp-notice ul { margin: 8px 0 0; padding-left: 18px; }
.sp-conflict { padding: 9px 0; border-top: 1px solid #e9d7ab; margin-top: 9px; }
.sp-conflict button { margin-top: 7px; font-size: 11px; }
.sp-live { font-size: 12px; color: #0b6c4d; min-height: 20px; margin-bottom: 8px !important; overflow-wrap: anywhere; }
.sp-snapshot { border-top: 1px solid #dce5f1; padding-top: 12px; margin-top: 14px; }
.sp-guide { padding: 30px 0 42px; border-top: 1px solid #dce5f1; }
.sp-guide-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-top: 20px; }
.sp-guide p, .sp-guide li { color: var(--sp-muted); font-size: 13px; line-height: 1.8; }
.sp-guide p { margin-top: 8px; }
.sp-guide ol { padding-left: 20px; margin: 14px 0; }
.sp-guide li { padding-left: 4px; margin-bottom: 10px; }
.sp-guide details { padding: 12px 0; border-bottom: 1px solid #dce5f1; }
.sp-source-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sp-loading { padding: 16px; background: #f3f7fc; border-left: 3px solid #1258b8; margin-bottom: 12px; }
.sp-loading button { margin-left: 12px; }
@media (min-width: 1600px) { .sp-services { height: 420px; } }
@media (max-width: 1050px) { .sp-workspace { gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; } .sp-result { padding-left: 19px; } .sp-services { grid-template-columns: 1fr; } .sp-custom-grid { grid-template-columns: 1fr; } .sp-guide-grid { gap: 28px; } }
@media (max-width: 760px) {
  .sp h1 { font-size: 23px; }
  .sp-intro { padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .sp-intro-links { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .sp-presetbar { gap: 10px; }
  .sp-presetbar-main { gap: 8px; }
  .sp-presetbar-main > .sp-label { width: 100%; }
  .sp-segments button { padding-inline: 10px; font-size: 12px; }
  .sp-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 18px; }
  .sp-result { border-left: 0; border-top: 1px solid #dce5f1; padding: 22px 0 0; }
  .sp-filters { grid-template-columns: minmax(0, 1fr); }
  .sp-services { height: 300px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .sp-service { padding-inline: 3px; gap: 6px; }
  .sp-service-count { display: none; }
  .sp-service small { font-size: 9px; }
  .sp-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .sp-stats dd { font-size: 24px; }
  .sp button.sp-icon { width: 40px; height: 40px; min-width: 40px; }
  .sp ~ .kb-footer .kb-footer-grid nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; min-width: 0; }
  .sp ~ .kb-footer .kb-footer-grid nav a { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 380px) { .sp-services { grid-template-columns: 1fr; } .sp-count { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
