.wpsh-wrap {
  max-width: none;
  clear: both;
}

/* Keep third-party notices above ProofShield content. */
#wpbody-content > .notice,
#wpbody-content > .updated,
#wpbody-content > .error,
#wpbody-content > .fs-notice,
#wpbody-content > .notice.notice-success,
#wpbody-content > .notice.notice-warning,
#wpbody-content > .notice.notice-error {
  float: none !important;
  clear: both !important;
  display: block !important;
  max-width: none !important;
  margin-right: 0 !important;
}

.wpsh-stats {
  clear: both;
}

.wpsh-wrap .description {
  color: #50575e;
}

.wpsh-settings {
  max-width: none;
}

.wpsh-settings-header,
.wpsh-settings-toolbar,
.wpsh-settings-panel,
.wpsh-settings > form > .submit {
  max-width: 980px;
  clear: both;
}

.wpsh-settings-header {
  margin-bottom: 14px;
}

.wpsh-settings-header h1 {
  margin-bottom: 6px;
}

.wpsh-settings-header p {
  margin-top: 0;
  color: #50575e;
  font-size: 15px;
}

.wpsh-settings-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.wpsh-settings-panel h2 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  color: #1d2327;
}

.wpsh-settings-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.wpsh-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1d2327;
}

.wpsh-toolbar-field select {
  min-width: 180px;
}

.wpsh-settings-table {
  margin-top: 0;
}

.wpsh-settings-table th {
  width: 280px;
  font-weight: 600;
  color: #1d2327;
}

.wpsh-help-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.wpsh-help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid #c3c4c7;
  color: #1d2327;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  user-select: none;
}

.wpsh-help-tip:focus {
  outline: 2px solid #2271b1;
  outline-offset: 1px;
}

.wpsh-pro-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #0a4b78;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  vertical-align: middle;
}

.wpsh-pro-upgrade-notice {
  border-left-width: 6px;
  padding: 14px 16px;
}

.wpsh-pro-inline-note {
  margin-top: 8px;
}

.wpsh-dependent-row.is-inactive td {
  opacity: 0.6;
}

.wpsh-dependent-row.is-inactive textarea {
  background: #f6f7f7;
}

.wpsh-login-dependent-row.is-inactive td {
  opacity: 0.6;
}

.wpsh-ajax-rest-child-row.is-hidden {
  display: none;
}

.wpsh-settings-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.wpsh-settings-table textarea {
  width: min(100%, 640px);
}

.wpsh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.wpsh-toggle input[type="checkbox"] {
  transform: scale(1.15);
}

.wpsh-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}

.wpsh-inline-field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  font-weight: 500;
}

.wpsh-inline-field input[type="number"] {
  width: 100%;
  max-width: 160px;
}

.wpsh-inline-fields.is-inactive {
  opacity: 0.75;
}

.wpsh-inline-fields.is-inactive input[type="number"] {
  background: #f6f7f7;
}

.wpsh-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  max-width: 720px;
}

.wpsh-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 600;
}

.wpsh-lang-option input[type="radio"] {
  margin: 0;
}

.wpsh-secure-methods {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.wpsh-secure-methods.is-inactive {
  opacity: 0.5;
  filter: grayscale(0.25);
}

.wpsh-secure-method {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}

.wpsh-secure-method__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wpsh-secure-method__label {
  font-weight: 500;
  color: #1d2327;
}

.wpsh-secure-method__description {
  font-size: 12px;
  line-height: 1.35;
  color: #646970;
}

.wpsh-secure-method.is-disabled {
  cursor: not-allowed;
}

.wpsh-mode-cell.is-auto .wpsh-mode-select-wrap select {
  opacity: 0.55;
  cursor: not-allowed;
}

.wpsh-mode-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wpsh-mode-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
  color: #3c434a;
}

.wpsh-mode-badge--relaxed {
  background: #d1e7dd;
  border-color: #9cc3ae;
  color: #0f5132;
}

.wpsh-mode-badge--balanced {
  background: #fff3cd;
  border-color: #e3d097;
  color: #664d03;
}

.wpsh-mode-badge--strict {
  background: #f8d7da;
  border-color: #e0aeb4;
  color: #842029;
}

.wpsh-mode-badge.is-inactive {
  background: #f6f7f7 !important;
  border-color: #dcdcde !important;
  color: #8c8f94 !important;
}

.wpsh-mode-note {
  margin: 8px 0 0;
}

.wpsh-auto-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-width: 760px;
}

.wpsh-auto-stat {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff, #f6f7f7);
}

.wpsh-auto-stat__label {
  display: block;
  font-size: 12px;
  color: #646970;
  margin-bottom: 4px;
}

.wpsh-auto-stat__value {
  font-size: 21px;
  line-height: 1.1;
  color: #1d2327;
}

.wpsh-auto-stats.is-inactive {
  opacity: 0.52;
  filter: grayscale(0.25);
}

.wpsh-stats {
  max-width: 1160px;
}

.wpsh-range-switch {
  display: inline-flex;
  gap: 8px;
  margin: 6px 0 12px;
}

.wpsh-range-switch__link {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #dcdcde;
  border-radius: 999px;
  background: #fff;
  color: #1d2327;
  text-decoration: none;
  font-weight: 600;
}

.wpsh-range-switch__link.is-active {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.wpsh-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.wpsh-kpi {
  background: #fff;
  border: 1px solid #dcdcde;
  border-left: 4px solid #8c8f94;
  border-radius: 10px;
  padding: 12px 14px;
}

.wpsh-kpi--ok {
  border-left-color: #1a7f37;
}

.wpsh-kpi--blocked {
  border-left-color: #cf222e;
}

.wpsh-kpi h2 {
  margin: 0;
  font-size: 12px;
  color: #50575e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wpsh-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wpsh-admin-brand__logo {
  max-height: 110px;
  max-width: min(620px, 55vw);
  width: auto;
  height: auto;
  display: block;
}

.wpsh-admin-brand h1 {
  margin: 0;
}

/* Some third-party scripts move notices into the header/brand row after load.
   Force those notices onto their own full-width row below logo/title. */
.wpsh-admin-brand > .notice,
.wpsh-admin-brand > .updated,
.wpsh-admin-brand > .error,
.wpsh-admin-brand > .fs-notice,
.wpsh-admin-brand > .e-notice {
  flex: 1 0 100%;
  width: 100%;
  max-width: none !important;
  margin: 12px 0 0 !important;
  float: none !important;
  clear: both !important;
}

.wpsh-kpi__value {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #1d2327;
}

.wpsh-kpi__meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #50575e;
}

.wpsh-chart-card {
  margin: 16px 0 20px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.wpsh-chart-card h2 {
  margin: 0;
}

.wpsh-chart-card .description {
  margin: 4px 0 10px;
}

.wpsh-trend {
  display: grid;
  align-items: end;
  gap: 6px;
  min-height: 210px;
  border-top: 1px solid #f0f0f1;
  padding-top: 14px;
  overflow: hidden;
}

.wpsh-trend__col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.wpsh-trend__bars {
  width: 100%;
  height: 132px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}

.wpsh-trend__bar {
  width: min(16px, calc((100% - 4px) / 2));
  border-radius: 6px 6px 0 0;
  background: #dcdcde;
  display: block;
}

.wpsh-trend__bar--ok {
  background: #1a7f37;
}

.wpsh-trend__bar--blocked {
  background: #cf222e;
}

.wpsh-trend__counts {
  font-size: 11px;
  color: #646970;
  line-height: 1;
  font-weight: 600;
}

.wpsh-trend__label {
  font-size: 10px;
  color: #646970;
  text-align: center;
  line-height: 1;
}

.wpsh-context-table td,
.wpsh-context-table th {
  vertical-align: middle;
}

.wpsh-context-table tfoot th {
  font-weight: 700;
  background: #f6f7f7;
}

.wpsh-pill {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  padding: 6px 8px;
}

.wpsh-pill--ok {
  color: #0f5132;
  background: #d1e7dd;
}

.wpsh-pill--blocked {
  color: #842029;
  background: #f8d7da;
}

.wpsh-world-map {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
  box-shadow: inset 0 0 0 1px rgba(141, 159, 179, 0.12), 0 18px 40px rgba(34, 113, 177, 0.06);
}

.wpsh-ip-table {
  margin-top: 12px;
}

.wpsh-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.wpsh-pagination__btn {
  min-width: 34px;
  height: 30px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  color: #1d2327;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
}

.wpsh-pagination__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.wpsh-pagination__btn.is-active {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.wpsh-pagination__dots {
  color: #646970;
  padding: 0 4px;
}

.wpsh-pagination__meta {
  margin-left: 8px;
  color: #646970;
  font-size: 12px;
}

.wpsh-status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3c434a;
  background: #f0f0f1;
  margin-right: 6px;
}

.wpsh-status-pill--blocked {
  color: #842029;
  background: #f8d7da;
}

.wpsh-status-pill--strict {
  color: #1f3b8b;
  background: #dbeafe;
}
