:root {
  color-scheme: dark;
}

body.has-peng1-tool-shell {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #05070a 0%, #071014 100%) !important;
  color: #eef8f4;
  padding-top: 72px !important;
}

.peng1-tool-shell {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 10, 0.88);
  border-bottom: 1px solid rgba(214, 255, 239, 0.14);
  box-sizing: border-box;
  color: #eef8f4;
  display: flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

.peng1-tool-brand,
.peng1-tool-nav {
  align-items: center;
  display: flex;
}

.peng1-tool-brand {
  color: #eef8f4;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.peng1-tool-mark {
  display: block;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.peng1-tool-nav {
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.peng1-tool-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #9aa9a6;
  font-size: 0.88rem;
  padding: 9px 12px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.peng1-tool-nav a:hover,
.peng1-tool-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(214, 255, 239, 0.14);
  color: #eef8f4;
}

.peng1-tool-nav .peng1-tool-project {
  color: #43ffb0;
}

/* Remove old sitebuilder/navigation chrome while preserving each tool's actual controls. */
body.has-peng1-tool-shell [id^="wb_header_"],
body.has-peng1-tool-shell [id^="wb_footer_"],
body.has-peng1-tool-shell #wb_footer_c,
body.has-peng1-tool-shell .topbar,
body.has-peng1-tool-shell .nav-bar,
body.has-peng1-tool-shell .top-toolbar {
  display: none !important;
}

body.has-peng1-tool-shell .wb_gallery,
body.has-peng1-tool-shell .wb_gallery + .wb_element {
  display: none !important;
}

body.has-peng1-tool-shell a {
  text-underline-offset: 0.18em;
}

/* Compatibility layer for standalone tools that shipped with bright utility classes. */
body.has-peng1-tool-shell .bg-gray-100 {
  background: transparent !important;
}

body.has-peng1-tool-shell .bg-white {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(17, 24, 31, 0.88) !important;
  border: 1px solid rgba(214, 255, 239, 0.14);
  color: #eef8f4 !important;
}

body.has-peng1-tool-shell .text-gray-800,
body.has-peng1-tool-shell .text-gray-700 {
  color: #eef8f4 !important;
}

body.has-peng1-tool-shell .text-gray-600,
body.has-peng1-tool-shell .text-gray-500,
body.has-peng1-tool-shell .text-gray-400 {
  color: #9aa9a6 !important;
}

body.has-peng1-tool-shell input,
body.has-peng1-tool-shell select,
body.has-peng1-tool-shell textarea {
  background: rgba(5, 7, 10, 0.78);
  border: 1px solid rgba(214, 255, 239, 0.2);
  color: #eef8f4;
}

body.has-peng1-tool-shell input[type="checkbox"],
body.has-peng1-tool-shell input[type="radio"],
body.has-peng1-tool-shell input[type="color"],
body.has-peng1-tool-shell input[type="range"],
body.has-peng1-tool-shell input[type="file"] {
  background: initial;
  border: initial;
}

body.has-peng1-tool-shell button,
body.has-peng1-tool-shell .upload-btn,
body.has-peng1-tool-shell .filter-button,
body.has-peng1-tool-shell .tool-button {
  border-radius: 8px;
}

body.has-peng1-tool-shell .drop-zone,
body.has-peng1-tool-shell #dropZone {
  background: rgba(5, 7, 10, 0.56);
  border-color: rgba(67, 255, 176, 0.35) !important;
}

body.has-peng1-tool-shell .drop-zone:hover,
body.has-peng1-tool-shell .drop-zone.dragover,
body.has-peng1-tool-shell #dropZone:hover,
body.has-peng1-tool-shell #dropZone.dragover {
  background: rgba(67, 255, 176, 0.08) !important;
  border-color: rgba(67, 255, 176, 0.78) !important;
}

@media (max-width: 760px) {
  body.has-peng1-tool-shell {
    padding-top: 104px !important;
  }

  .peng1-tool-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .peng1-tool-nav {
    justify-content: flex-start;
  }
}
