.polanger-shield-global-demo-settings__config,
.polanger-shield-global-demo-settings__strict {
  display: none;
}

.polanger-shield-global-demo-settings__config.is-visible,
.polanger-shield-global-demo-settings__strict.is-visible {
  display: block;
}

.polanger-shield-global-demo-settings__config {
  margin-top: 18px;
}

.polanger-shield-global-demo-settings__intro-grid,
.polanger-shield-global-demo-level-grid,
.polanger-shield-global-demo-settings__option-grid {
  display: grid;
  gap: 14px;
}

.polanger-shield-global-demo-settings__intro-grid,
.polanger-shield-global-demo-level-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 0 18px;
}

.polanger-shield-global-demo-mode-card,
.polanger-shield-global-demo-level-option,
.polanger-shield-global-demo-toggle-card,
.polanger-shield-global-demo-summary {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.polanger-shield-global-demo-mode-card {
  padding: 18px;
}

.polanger-shield-global-demo-mode-card.is-strict {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  border-color: #fed7aa;
}

.polanger-shield-global-demo-mode-card__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.polanger-shield-global-demo-mode-card.is-strict .polanger-shield-global-demo-mode-card__eyebrow {
  background: #fff1db;
  color: #c2410c;
}

.polanger-shield-global-demo-mode-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

.polanger-shield-global-demo-mode-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.polanger-shield-global-demo-level-option {
  position: relative;
  display: block;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.polanger-shield-global-demo-level-option:hover,
.polanger-shield-global-demo-level-option:focus-within {
  border-color: rgba(67, 56, 202, 0.35);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.polanger-shield-global-demo-level-option.is-selected {
  border-color: #4338ca;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  box-shadow: 0 16px 34px rgba(67, 56, 202, 0.12);
}

.polanger-shield-global-demo-level-option input[type="radio"] {
  position: absolute;
  top: 18px;
  left: 18px;
}

.polanger-shield-global-demo-level-option__body {
  display: grid;
  gap: 4px;
  padding-left: 28px;
}

.polanger-shield-global-demo-level-option__body strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.polanger-shield-global-demo-level-option__body small {
  color: #475569;
  line-height: 1.65;
}

.polanger-shield-global-demo-settings__option-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 14px 0 20px;
}

.polanger-shield-global-demo-toggle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  align-items: start;
}

.polanger-shield-global-demo-toggle-card input[type="checkbox"] {
  margin-top: 4px;
}

.polanger-shield-global-demo-toggle-card span {
  display: grid;
  gap: 4px;
}

.polanger-shield-global-demo-toggle-card strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.polanger-shield-global-demo-toggle-card small {
  color: #475569;
  line-height: 1.6;
}

.polanger-shield-global-demo-settings__strict {
  margin: 4px 0 20px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

.polanger-shield-global-demo-settings__strict h3 {
  margin: 0 0 8px;
  color: #9a3412;
}

.polanger-shield-global-demo-settings__allowlists {
  display: grid;
  gap: 6px;
}

.polanger-shield-global-demo-settings .code {
  font-family: Consolas, Monaco, monospace;
}

.polanger-shield-global-demo-user-card--locked {
  opacity: 0.9;
}

.polanger-shield-global-demo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  margin: 18px 0 22px;
}

.polanger-shield-global-demo-summary__content {
  min-width: 0;
}

.polanger-shield-global-demo-summary__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.polanger-shield-global-demo-summary__content h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.28;
}

.polanger-shield-global-demo-summary__content p {
  margin: 0;
  max-width: 860px;
  color: #475569;
  line-height: 1.7;
}

.polanger-shield-global-demo-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.polanger-shield-global-demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.polanger-shield-global-demo-pill.is-active {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.polanger-shield-global-demo-pill.is-inactive {
  background: #f8fafc;
  color: #475569;
}

.polanger-shield-global-demo-pill.is-warning {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.polanger-shield-global-demo-summary__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.polanger-shield-global-demo-notice {
  margin: 0 0 18px;
}

.polanger-shield-global-demo-notice.is-collapsed {
  display: flex;
  justify-content: flex-end;
}

.polanger-shield-global-demo-banner-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.polanger-shield-global-demo-banner-toggle:hover,
.polanger-shield-global-demo-banner-toggle:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
  outline: 0;
}

.polanger-shield-global-demo-banner-toggle .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
}

.polanger-shield-global-demo-banner-toggle[hidden],
.polanger-shield-global-demo-banner[hidden] {
  display: none !important;
}

.polanger-shield-global-demo-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.polanger-shield-global-demo-banner__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.polanger-shield-global-demo-banner__icon .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
}

.polanger-shield-global-demo-banner__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.polanger-shield-global-demo-banner__copy strong {
  display: block;
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.polanger-shield-global-demo-banner__copy p {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.6;
}

.polanger-shield-global-demo-banner__dismiss {
  flex: 0 0 auto;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.polanger-shield-global-demo-banner__dismiss:hover,
.polanger-shield-global-demo-banner__dismiss:focus-visible {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.32);
  color: #1e40af;
  outline: 0;
}

.polanger-shield-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: min(340px, calc(100vw - 24px));
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999998;
}

.polanger-shield-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.polanger-shield-toast.is-error {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.polanger-shield-global-demo-control {
  opacity: 0.64 !important;
  filter: saturate(0.72) !important;
  pointer-events: auto !important;
  cursor: not-allowed !important;
}

.polanger-shield-global-demo-control::after {
  content: none !important;
}

@media (max-width: 900px) {
  .polanger-shield-global-demo-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .polanger-shield-global-demo-summary__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 782px) {
  .polanger-shield-global-demo-summary {
    padding: 18px;
  }

  .polanger-shield-global-demo-notice.is-collapsed {
    justify-content: flex-start;
  }

  .polanger-shield-global-demo-banner {
    flex-wrap: wrap;
  }

  .polanger-shield-global-demo-banner__dismiss {
    width: 100%;
    text-align: center;
  }
}
