.vscc[hidden],
.vscc-reopen[hidden],
.vscc-switches[hidden],
.vscc-actions [hidden] {
  display: none !important;
}

.vscc {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.42);
  box-sizing: border-box;
  color: #111;
  font-family: inherit; font-weight: 400; font-size: 18px; line-height: 1.5;
}

.vscc *,
.vscc *::before,
.vscc *::after {
  box-sizing: border-box;
}

.vscc-panel {
  width: min(660px, calc(100vw - 32px));
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #f6f6f2;
  border: 1.5px solid #111;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 28px 22px 22px;
}

.vscc-panel > strong {
  display: block;
  margin: 0 0 14px;
  color: #111;
  font-family: inherit;
  font-size: clamp(1.8rem, 1.35rem + 1.2vw, 2.35rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.vscc p {
  margin: 0 0 14px;
}

.vscc a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.vscc a:hover,
.vscc a:focus-visible {
  text-decoration-thickness: 2px;
}

.vscc-switches {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.vscc-switches label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  cursor: pointer;
}

.vscc-switches input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111;
}

.vscc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.vscc button {
  appearance: none;
  border: 1.5px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  padding: 12px 18px;
  min-height: 52px;
  font-family: inherit; font-weight: 500; font-size: 1.05rem; line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}

#vscc-accept {
  background: #111;
  color: #fff;
}

#vscc-accept:hover,
#vscc-accept:focus-visible {
  background: #2b2b2b;
  border-color: #2b2b2b;
}

#vscc-reject:hover,
#vscc-reject:focus-visible,
#vscc-customize:hover,
#vscc-customize:focus-visible,
#vscc-save:hover,
#vscc-save:focus-visible {
  background: #111;
  color: #fff;
}

.vscc button:hover {
  transform: translateY(-1px);
}

.vscc button:focus-visible,
.vscc a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.vscc-reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483645;
  border: 1.5px solid #111;
  border-radius: 0;
  background: #f6f6f2;
  color: #111;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-family: inherit; font-weight: 500; font-size: .95rem; line-height: 1.2;
}

@media (max-width: 680px) {
  .vscc {
    padding: 14px;
    place-items: end stretch;
  }

  .vscc-panel {
    width: 100%;
    max-height: 86vh;
    padding: 20px 16px 16px;
  }

  .vscc-panel > strong {
    font-size: 1.65rem;
  }

  .vscc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vscc button {
    width: 100%;
  }

  .vscc-reopen {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vscc button {
    transition: none;
  }
}
.vscc .vscc-preview-note{font-size:.85em;opacity:.72;border-top:1px solid #ccc;padding-top:10px;margin-top:12px;}

.vscc-audit{margin:16px 0;padding:14px;border:1px solid #222;background:#fff;color:#111;font:14px/1.5 system-ui,sans-serif}.vscc-audit>strong{display:block;font-size:16px;margin-bottom:6px}.vscc-audit p{margin:6px 0}.vscc-audit pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;font:12px/1.4 monospace;background:#eee;padding:10px}.vscc-audit button{min-height:0!important;padding:7px 10px!important;font:14px/1.3 system-ui,sans-serif!important}.vscc-audit .vscc-audit-note{font-size:12px;color:#555}

.vscc-sandbox{margin:15px 0 10px;padding:12px;border:1px solid #aaa}.vscc-sandbox>strong{display:block;margin-bottom:6px}.vscc-sandbox pre{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:260px;line-height:1.4}.vscc-sandbox button{font-size:14px;min-height:38px;padding:8px 12px}

.vscc-readonly{margin:15px 0 10px;padding:12px;border:1px solid #aaa}.vscc-readonly>strong{display:block;margin-bottom:6px}.vscc-readonly pre{max-height:300px}.vscc-readonly button{font-size:14px;min-height:38px;padding:8px 12px}

.vscc-live-error:not([hidden]){margin:12px 0;color:#8c1515;font-weight:600;border-left:3px solid #8c1515;padding:8px 12px;background:#fff1ee}

.vscc-fallback-notice{position:fixed;z-index:2147483645;bottom:16px;left:16px;right:16px;max-width:760px;margin:auto;background:#f6f6f2;color:#111;border:1.5px solid #111;padding:16px 20px;font:16px/1.45 inherit;box-shadow:0 6px 28px #0002}.vscc-fallback-notice strong{display:block;margin-bottom:4px}.vscc-fallback-notice a{color:inherit;text-decoration:underline}
