.design-helper {
  position: fixed;
  top: calc(var(--navbar-offset) + 8px);
  left: 12px;
  z-index: 20010;
}

@media (max-width: 750px) {
  .design-helper {
    display: none;
  }
}

.design-helper-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  margin-top: 10px;
  background: var(--bg-dark) !important;
  border: 3px solid var(--accent-blue);
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  transition: all 0.25s ease;
  box-shadow:
    0 4px 16px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.15);
}

.design-helper-toggle-button:hover {
  transform: scale(1.08);
  box-shadow:
    0 6px 22px rgba(99, 102, 241, 0.48),
    0 0 0 2px rgba(99, 102, 241, 0.2);
}

.design-helper-toggle-button:active {
  transform: scale(0.95);
}

.design-helper-window {
  position: fixed;
  top: calc(var(--navbar-offset) + 62px);
  left: 12px;
  width: 330px;
  max-width: calc(100vw - 24px);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  overflow: hidden;
  display: none;
  user-select: none;
}

body.theme-light .design-helper-window {
  background: rgba(241, 245, 249, 0.74);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.65);
}

.design-helper-window.is-open {
  display: block;
}

.design-helper-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: move;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.theme-light .design-helper-window-header {
  background: rgba(226, 232, 240, 0.82);
}

.design-helper-window-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.design-helper-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.42);
  color: inherit;
  cursor: pointer;
}

body.theme-light .design-helper-close {
  background: rgba(255, 255, 255, 0.7);
}

.design-helper-window-body {
  padding: 12px;
}

.design-helper-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.design-helper-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.design-helper-field select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 13px;
}

body.theme-light .design-helper-field select {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
}
