.sp3kre {font-family:inherit; color:#182335; max-width:1200px; margin:20px auto; line-height:1.5}
.sp3kre * {box-sizing:border-box}
.sp3kre h2 {font-size:1.6rem; margin:0 0 12px; color:#152238}
.sp3kre h3 {font-size:1.15rem; margin:18px 0 10px; color:#152238}
.sp3kre .sp3kre-top {display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.sp3kre .sp3kre-live {font-size:.85rem; color:#526275}
.sp3kre .sp3kre-twocol {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:18px 0}
.sp3kre .sp3kre-twocol > div {padding:18px; border:1px solid #e0e5ea; border-radius:14px; background:#fff; min-width:0}
.sp3kre table {width:100%; border-collapse:collapse; font-size:0.94rem; margin:10px 0}
.sp3kre th,.sp3kre td {padding:9px 8px; border-bottom:1px solid #e9edf2; text-align:left; vertical-align:middle}
.sp3kre th:last-child,.sp3kre td:last-child {text-align:right}
.sp3kre .sp3kre-small {font-size:.85rem; color:#596778}
.sp3kre .sp3kre-warning {padding:10px 14px; background:#fff7e5; border-left:4px solid #d4a02b; border-radius:5px}
.sp3kre .sp3kre-fields {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:20px 0}
.sp3kre .sp3kre-fields label {display:flex; flex-direction:column; font-weight:600; font-size:.88rem; gap:6px}
.sp3kre input,.sp3kre select {width:100%; padding:10px; border:1px solid #bfcbd8; border-radius:8px; background:#fff; color:#152238; font-size:1rem; min-height:43px}
.sp3kre button[type=submit]:not(.button) {background:#183b72; border:1px solid #183b72; color:#fff; padding:12px 20px; border-radius:9px; cursor:pointer; font-weight:600}
.sp3kre button[disabled] {opacity:.55;cursor:wait}
.sp3kre .sp3kre-message {margin-left:14px;font-size:.95rem}
.sp3kre .sp3kre-success {color:#0a6c3c}.sp3kre .sp3kre-error {color:#b02424}
.sp3kre-admin {max-width:1300px;margin-left:0}
.sp3kre-admin .sp3kre-twocol > div {background:#fff}
.sp3kre-admin form p {display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.sp3kre-admin input[type=date] {width:auto}
.sp3kre-admin input[type=text] {width:220px}
.sp3kre-admin select {width:250px}
.sp3kre-admin table.widefat th:last-child,.sp3kre-admin table.widefat td:last-child {text-align:left}
@media(max-width:850px){.sp3kre .sp3kre-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sp3kre .sp3kre-twocol{grid-template-columns:1fr}}
@media(max-width:450px){.sp3kre .sp3kre-fields{grid-template-columns:1fr}.sp3kre .sp3kre-message{display:block;margin:10px 0}.sp3kre table{font-size:.82rem}.sp3kre th,.sp3kre td{padding:7px 4px}}
.sp3kre input[name="correspondent_call"] {text-transform:uppercase}
.sp3kre .sp3kre-dupe-warning {padding:11px 14px; margin:12px 0 0; border:1px solid #c74735; background:#fff0ed; color:#9e221c; border-radius:8px; font-weight:600}
.sp3kre .sp3kre-dupe-warning[hidden] {display:none}

/* v0.3: wyraźna kontrola powtórek przed przyciskiem Zapisz QSO */
.sp3kre .sp3kre-dupe-warning {display:block; margin:4px 0 14px; padding:13px 16px; font-size:1rem; border-width:2px; max-width:100%;}
.sp3kre .sp3kre-dupe-warning[hidden] {display:none}
.sp3kre .sp3kre-dupe-warning.sp3kre-checking {background:#f1f5fa;color:#3d516c;border-color:#c5d5e8;font-weight:500}
.sp3kre .sp3kre-dupe-warning.sp3kre-info {background:#ecf7ff;color:#164c75;border-color:#91c8ed;font-weight:600}
.sp3kre .sp3kre-dupe-warning.sp3kre-dupe-found {background:#fff0ed;color:#921c16;border-color:#d33326;font-weight:800}
.sp3kre button[type=submit]:disabled {opacity:.58;cursor:not-allowed}

/* v0.6 – wygodne wylogowanie operatora bez szukania panelu WordPress */
.sp3kre .sp3kre-operatorbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sp3kre .sp3kre-operatorbar h2 {margin:0}
.sp3kre a.sp3kre-logout {display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;border:1px solid #183b72;border-radius:9px;color:#183b72;background:#fff;text-decoration:none;font-size:.94rem;font-weight:600;line-height:1.4;white-space:nowrap;transition:background-color .15s,color .15s}
.sp3kre a.sp3kre-logout:hover,.sp3kre a.sp3kre-logout:focus-visible {background:#183b72;color:#fff;text-decoration:none}
.sp3kre a.sp3kre-logout:focus-visible {outline:3px solid #9cc5ff;outline-offset:2px}

/* v0.9: podgląd punktów korespondenta */
.sp3kre .sp3kre-search-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0 12px}
.sp3kre .sp3kre-search-form label{font-size:.9rem;font-weight:650;display:flex;flex-direction:column;gap:7px;flex:1;min-width:220px;max-width:390px}
.sp3kre .sp3kre-search-form input{text-transform:uppercase}
.sp3kre .sp3kre-search-form button{min-height:43px}
.sp3kre .sp3kre-search-status{font-size:.9rem;color:#405873;min-height:1.2em}
.sp3kre .sp3kre-stats{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0}
.sp3kre .sp3kre-stat{border:1px solid #dfe6ef;border-radius:12px;background:#f8fafc;padding:16px 20px;min-width:150px;display:flex;flex-direction:column;gap:2px}
.sp3kre .sp3kre-stat strong{font-size:1.8rem;line-height:1.2;color:#163c73}
.sp3kre .sp3kre-stat span{font-size:.9rem;color:#53657a}
.sp3kre .sp3kre-table-scroll{overflow-x:auto;width:100%}
.sp3kre .sp3kre-table-scroll table{min-width:530px}
.sp3kre .sp3kre-table-scroll th:last-child,.sp3kre .sp3kre-table-scroll td:last-child{text-align:left}
.sp3kre .sp3kre-pagination{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;margin:15px 0}
.sp3kre .sp3kre-pagination button{border:1px solid #183b72;background:#fff;border-radius:8px;padding:8px 14px;color:#183b72;cursor:pointer}
.sp3kre .sp3kre-pagination button:disabled{opacity:.4;cursor:not-allowed}
.sp3kre .sp3kre-correspondent-results[hidden]{display:none}

/* 1.0: status demonstracji i strona startowa jubileuszu */
.sp3kre-admin .sp3kre-admin-demo {background:#fff;border:1px solid #d6e2eb;border-radius:10px;padding:18px 22px;margin:18px 0}
.sp3kre .sp3kre-mode-on {font-weight:700;color:#146538}
.sp3kre .sp3kre-mode-off {font-weight:700;color:#a03424}
.sp3kre .sp3kre-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:24px 0}
.sp3kre .sp3kre-link {display:flex;flex-direction:column;gap:9px;padding:20px;border:1px solid #ced9e4;border-radius:14px;color:#142338;text-decoration:none;background:#fff}
.sp3kre .sp3kre-link span {color:#576980;font-size:.91rem}
.sp3kre .sp3kre-link:hover,.sp3kre .sp3kre-link:focus-visible {border-color:#254d86;box-shadow:0 3px 14px rgba(15,39,77,.09);color:#123e7e;text-decoration:none}

/* 1.1: osobna klasyfikacja i formularz nasłuchowców SWL */
.sp3kre .sp3kre-swl-ranking {border:1px solid #dfe6ef;border-radius:14px;padding:15px 18px;margin:20px 0;background:#fff}
.sp3kre .sp3kre-swl-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.sp3kre .sp3kre-swl-fields label {display:flex;flex-direction:column;gap:7px;font-size:.9rem;font-weight:650;min-width:0}
.sp3kre .sp3kre-swl input[name="listener_call"],.sp3kre .sp3kre-swl input[name="station_call"],.sp3kre .sp3kre-swl input[name="correspondent_call"] {text-transform:uppercase}
.sp3kre .sp3kre-swl [hidden] {display:none!important}
@media(max-width:520px){.sp3kre .sp3kre-swl-fields{grid-template-columns:1fr}}

/* 1.1.2: naprawa selektora dla sekcji .sp3kre.sp3kre-swl; wyrazny czerwony komunikat o powtorce / bledzie zgloszenia SWL.
   Wyzsza specyficznosc niz neutralny .sp3kre-search-status. */
.sp3kre.sp3kre-swl [data-sp3kre-swl-message].sp3kre-error {
  color:#951c1c; background:#fff0ee; border:2px solid #ca3333;
  border-radius:8px; padding:10px 12px; font-weight:700; line-height:1.5;
  margin:8px 0 0;
}
.sp3kre.sp3kre-swl [data-sp3kre-swl-message].sp3kre-success {
  color:#086a38; font-weight:600;
}
