html:not(.editor-mode) .landing-editor {
  display: none !important;
}

html.editor-mode {
  scroll-padding-top: 96px;
}

html.editor-mode body {
  background: #0b0d12;
}

html.editor-mode .landing {
  padding-right: min(34vw, 420px);
}

html.editor-mode [data-editor-id] {
  cursor: pointer;
}

html.editor-mode [data-editor-id]:hover {
  outline: 1px dashed rgba(255, 190, 89, 0.5);
  outline-offset: 4px;
}

html.editor-mode [data-editor-id].is-editor-selected {
  outline: 2px solid rgba(255, 190, 89, 0.92);
  outline-offset: 6px;
  box-shadow: 0 0 0 6px rgba(255, 190, 89, 0.08);
}

.landing-editor {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 500;
  width: min(34vw, 420px);
  min-width: 320px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 36%),
    rgba(11, 13, 18, 0.98);
  color: #ece8df;
  font-family: "Public Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.landing-editor__header,
.landing-editor__footer {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-editor__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.landing-editor__eyebrow {
  color: rgba(255, 190, 89, 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-editor__title {
  margin-top: 8px;
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.08;
}

.landing-editor__hint {
  margin-top: 10px;
  color: rgba(236, 232, 223, 0.66);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-editor__toolbar {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-editor__select,
.landing-editor__textarea,
.landing-editor__input,
.landing-editor__align {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ece8df;
  font: inherit;
}

.landing-editor__select,
.landing-editor__align,
.landing-editor__input {
  min-height: 42px;
  padding: 10px 12px;
}

.landing-editor__textarea {
  min-height: 164px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.landing-editor__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.landing-editor__group {
  display: grid;
  gap: 12px;
}

.landing-editor__label {
  color: rgba(236, 232, 223, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.landing-editor__subhint {
  color: rgba(236, 232, 223, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.landing-editor__slider-row {
  display: grid;
  gap: 8px;
}

.landing-editor__slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(236, 232, 223, 0.84);
  font-size: 0.88rem;
}

.landing-editor__value {
  color: rgba(255, 190, 89, 0.94);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.landing-editor__slider {
  width: 100%;
}

.landing-editor__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-editor__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ece8df;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.landing-editor__button:hover,
.landing-editor__button:focus-visible {
  background: rgba(255, 190, 89, 0.14);
  border-color: rgba(255, 190, 89, 0.3);
  color: #fff6e7;
}

.landing-editor__button--primary {
  background: rgba(255, 190, 89, 0.16);
  border-color: rgba(255, 190, 89, 0.34);
}

.landing-editor__status {
  color: rgba(236, 232, 223, 0.64);
  font-size: 0.84rem;
  line-height: 1.45;
}

.landing-editor__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 232, 223, 0.82);
  font-size: 0.82rem;
  line-height: 1.3;
}

.landing-editor__chip strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  html.editor-mode .landing {
    padding-right: 0;
    padding-bottom: 420px;
  }

  .landing-editor {
    top: auto;
    bottom: 0;
    width: 100%;
    min-width: 0;
    height: min(54vh, 520px);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.28);
  }
}
