.aern-editor-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8990;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(213, 174, 90, 0.72);
  border-radius: 4px;
  background: rgba(10, 11, 12, 0.94);
  color: #ead39b;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  font-family: var(--font-display, "Alumni Sans", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.aern-editor-launch:hover,
.aern-editor-launch:focus-visible {
  border-color: #e2c277;
  background: #17140e;
  color: #fff0c4;
  transform: translateY(-2px);
  outline: none;
}

.aern-editor-launch[hidden],
.aern-editor-drawer[hidden],
.aern-editor-backdrop[hidden],
.aern-visual-editor-toolbar[hidden],
.aern-visual-editor-inspector[hidden],
.aern-editor-alignment-layer[hidden] {
  display: none !important;
}

.aern-visual-editor-installed .aern-editor-launch-legacy {
  display: none !important;
}

.aern-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: transparent;
}

.aern-editor-alignment-layer {
  position: fixed;
  inset: 0;
  z-index: 9988;
  overflow: hidden;
  pointer-events: none;
}

.aern-editor-alignment-line {
  position: absolute;
  display: block;
  background: rgba(234, 211, 155, 0.95);
  box-shadow:
    0 0 0 1px rgba(8, 9, 10, 0.62),
    0 0 16px rgba(213, 174, 90, 0.62);
}

.aern-editor-alignment-line.is-vertical {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
}

.aern-editor-alignment-line.is-horizontal {
  right: 0;
  left: 0;
  height: 1px;
  transform: translateY(-0.5px);
}

.aern-visual-editor-toolbar {
  position: fixed;
  right: auto;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  display: grid;
  width: min(1040px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(213, 174, 90, 0.42);
  border-radius: 5px;
  background: rgba(7, 8, 9, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
}

.aern-visual-editor-inspector-open .aern-visual-editor-toolbar {
  width: min(1040px, calc(100vw - 500px));
}

.aern-visual-editor-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.aern-editor-device-switch {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  background: #0b0c0d;
}

.aern-editor-device-button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #8f8d89;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.aern-editor-device-button:hover,
.aern-editor-device-button:focus-visible,
.aern-editor-device-button.is-active {
  background: rgba(213, 174, 90, 0.15);
  color: #f1d998;
  outline: none;
}

.aern-visual-editor-status {
  min-height: 16px;
  max-width: 100%;
  color: #9b988f;
  font-size: 0.74rem;
  line-height: 1.3;
}

.aern-visual-editor-status.is-error {
  color: #f1a3a3;
}

.aern-visual-editor-inspector {
  position: fixed;
  inset: 12px 12px 92px auto;
  z-index: 9995;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(440px, calc(100vw - 24px));
  border: 1px solid rgba(213, 174, 90, 0.5);
  padding: 0;
  overflow: hidden;
  background: rgba(8, 9, 10, 0.985);
  color: #e8e4db;
  box-shadow: -18px 18px 58px rgba(0, 0, 0, 0.54);
  font-family: var(--font-body, Inter, sans-serif);
}

body[data-aern-editor-dock="left"] .aern-visual-editor-inspector {
  right: auto;
  left: 12px;
  box-shadow: 18px 18px 58px rgba(0, 0, 0, 0.54);
}

.aern-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-editor-popup::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.aern-editor-inspector-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b0c0d;
}

.aern-editor-inspector-tabs button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #8f8d89;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.aern-editor-inspector-tabs button:hover,
.aern-editor-inspector-tabs button:focus-visible,
.aern-editor-inspector-tabs button.is-active {
  border-color: rgba(213, 174, 90, 0.52);
  background: rgba(213, 174, 90, 0.09);
  color: #ead39b;
  outline: none;
}

.aern-visual-editor-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.aern-visual-editor-section h3 {
  margin: 0;
  color: #f7efd9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 500;
}

.aern-editor-section-heading,
.aern-editor-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aern-editor-device-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(213, 174, 90, 0.32);
  border-radius: 3px;
  color: #d6b96f;
  font-size: 0.68rem;
  font-weight: 700;
}

.aern-editor-inherit-hint {
  margin: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(213, 174, 90, 0.58);
  background: rgba(213, 174, 90, 0.06);
}

.aern-editor-range-field input[type="range"] {
  width: 100%;
  accent-color: #c9a756;
}

.aern-editor-range-value {
  color: #d6b96f;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.aern-editor-layer-tree {
  display: grid;
  gap: 3px;
}

.aern-editor-layer-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 7px 9px 7px calc(9px + var(--aern-layer-depth, 0) * 18px);
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #d8d3c9;
  text-align: left;
  cursor: pointer;
}

.aern-editor-layer-row:hover,
.aern-editor-layer-row:focus-visible,
.aern-editor-layer-row.is-selected {
  border-color: rgba(213, 174, 90, 0.38);
  background: rgba(213, 174, 90, 0.08);
  outline: none;
}

.aern-editor-layer-marker {
  color: #bd9e57;
  text-align: center;
}

.aern-editor-layer-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.aern-editor-layer-copy strong,
.aern-editor-layer-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aern-editor-layer-copy strong {
  font-size: 0.79rem;
}

.aern-editor-layer-copy small {
  color: #777570;
  font-size: 0.68rem;
}

.aern-editor-preview-dialog {
  width: min(96vw, 1540px);
  height: min(92svh, 980px);
  max-width: none;
  max-height: none;
  border: 1px solid rgba(213, 174, 90, 0.5);
  padding: 0;
  overflow: hidden;
  background: #08090a;
  color: #ece7dc;
}

.aern-editor-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(3px);
}

.aern-editor-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.aern-editor-preview-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c0d;
}

.aern-editor-preview-header > div {
  display: grid;
  gap: 2px;
}

.aern-editor-preview-header span {
  color: #85827c;
  font-size: 0.7rem;
}

.aern-editor-preview-stage {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #111315;
  text-align: center;
}

.aern-editor-preview-frame {
  display: inline-block;
  min-width: 320px;
  max-width: 1440px;
  height: calc(92svh - 96px);
  border: 1px solid rgba(213, 174, 90, 0.34);
  background: #050607;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.aern-visual-nav-list,
.aern-visual-sticker-list {
  display: grid;
  gap: 12px;
}

.aern-visual-nav-row,
.aern-visual-sticker-row {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
}

.aern-visual-sticker-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

.aern-visual-sticker-row > img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid rgba(213, 174, 90, 0.26);
  background: rgba(0, 0, 0, 0.26);
}

.aern-visual-sticker-controls {
  display: grid;
  gap: 10px;
}

.site-editor-popup {
  width: min(540px, calc(100vw - 28px));
  border: 1px solid rgba(213, 174, 90, 0.5);
  padding: 0;
  background: transparent;
  color: #ede8dd;
}

.site-editor-popup-shell {
  position: relative;
  padding: 28px;
  background: rgba(8, 9, 10, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.site-editor-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
}

.site-editor-popup h2 {
  margin: 0 34px 12px 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.site-editor-popup p {
  margin: 0;
  color: #c8c2b8;
  line-height: 1.65;
  white-space: pre-line;
}

.aern-editor-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(500px, 100vw);
  border-left: 1px solid rgba(213, 174, 90, 0.48);
  background: rgba(8, 9, 10, 0.985);
  color: #e8e4db;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.54);
  font-family: var(--font-body, Inter, sans-serif);
}

.aern-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 16px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c0d;
}

.aern-editor-header > div {
  display: grid;
  gap: 2px;
}

.aern-editor-eyebrow {
  color: #b99a56;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.aern-editor-title {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 500;
}

.aern-editor-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  overflow-x: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aern-editor-section-nav button,
.aern-editor-view-nav button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #8f8d89;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.aern-editor-section-nav button:hover,
.aern-editor-section-nav button:focus-visible,
.aern-editor-section-nav button.is-active,
.aern-editor-view-nav button:hover,
.aern-editor-view-nav button:focus-visible,
.aern-editor-view-nav button.is-active {
  border-color: rgba(213, 174, 90, 0.5);
  background: rgba(213, 174, 90, 0.09);
  color: #ead39b;
  outline: none;
}

.aern-editor-view-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e0f;
}

.aern-editor-body {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aern-editor-inspector-body {
  scrollbar-gutter: stable;
}

.aern-editor-inspector-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c0d;
}

.aern-editor-inspector-footer .aern-editor-primary {
  flex: 0 0 auto;
}

.aern-editor-dirty-badge {
  min-width: 0;
  color: #d7bd7d;
  font-size: 0.72rem;
  line-height: 1.35;
}

.aern-editor-loading,
.aern-editor-empty {
  margin: 0;
  padding: 24px 10px;
  color: #92908b;
  text-align: center;
}

.aern-editor-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.aern-editor-view-header h2 {
  margin: 0;
  color: #f5f1e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
  letter-spacing: 0;
}

.aern-editor-view-header p {
  margin: 5px 0 0;
  color: #8f8d89;
  font-size: 0.78rem;
  line-height: 1.45;
}

.aern-editor-form {
  display: grid;
  gap: 13px;
}

.aern-editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.aern-editor-field-label {
  color: #aaa7a0;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.aern-editor-field-hint {
  color: #777570;
  font-size: 0.72rem;
}

.aern-editor-input,
.aern-editor-file {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  background: #090a0b;
  color: #ece8df;
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.aern-editor-input:focus,
.aern-editor-file:focus {
  border-color: rgba(213, 174, 90, 0.78);
  outline: 2px solid rgba(213, 174, 90, 0.14);
  outline-offset: 0;
}

.aern-editor-input:disabled {
  opacity: 0.5;
}

.aern-editor-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.aern-editor-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.aern-editor-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6c2b9;
  font-size: 0.82rem;
  cursor: pointer;
}

.aern-editor-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #b58d3f;
}

.aern-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.aern-editor-save-actions {
  position: sticky;
  bottom: -18px;
  z-index: 3;
  margin: 4px -18px -18px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.94), #08090a 28%);
}

.aern-editor-primary,
.aern-editor-secondary,
.aern-editor-icon-button {
  min-height: 38px;
  border-radius: 3px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.aern-editor-primary {
  padding: 9px 13px;
  border: 1px solid #c29d50;
  background: #a27d38;
  color: #0b0b0b;
}

.aern-editor-primary:hover,
.aern-editor-primary:focus-visible {
  background: #c19a4c;
  outline: none;
}

.aern-editor-secondary {
  padding: 9px 12px;
  border: 1px solid rgba(213, 174, 90, 0.38);
  background: transparent;
  color: #d8c28f;
}

.aern-editor-secondary:hover,
.aern-editor-secondary:focus-visible {
  border-color: rgba(213, 174, 90, 0.72);
  background: rgba(213, 174, 90, 0.08);
  outline: none;
}

.aern-editor-secondary.is-danger {
  border-color: rgba(224, 101, 101, 0.38);
  color: #d99696;
}

.aern-editor-secondary.is-danger:hover,
.aern-editor-secondary.is-danger:focus-visible {
  border-color: rgba(224, 101, 101, 0.76);
  background: rgba(224, 101, 101, 0.08);
  color: #ffaaaa;
}

.aern-editor-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #c8c5be;
  font-size: 1rem;
}

.aern-editor-icon-button:hover,
.aern-editor-icon-button:focus-visible {
  border-color: rgba(213, 174, 90, 0.62);
  color: #f0d89f;
  outline: none;
}

.aern-editor-icon-button.is-danger:hover,
.aern-editor-icon-button.is-danger:focus-visible {
  border-color: rgba(224, 101, 101, 0.72);
  color: #ff9999;
}

.aern-editor-primary:disabled,
.aern-editor-secondary:disabled,
.aern-editor-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.aern-editor-list {
  display: grid;
  gap: 8px;
}

.aern-editor-list-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.aern-editor-list-thumb,
.aern-editor-list-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(213, 174, 90, 0.28);
  border-radius: 2px;
  background: #070809;
}

.aern-editor-list-thumb {
  object-fit: cover;
}

.aern-editor-list-mark {
  display: grid;
  place-items: center;
  color: #bd9c58;
  font-family: Georgia, "Times New Roman", serif;
}

.aern-editor-list-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aern-editor-list-copy strong,
.aern-editor-list-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aern-editor-list-copy strong {
  color: #e9e5dc;
  font-size: 0.85rem;
}

.aern-editor-list-copy span {
  color: #85837e;
  font-size: 0.72rem;
}

.aern-editor-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.aern-editor-row-edit {
  min-width: 86px;
}

.aern-editor-media-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.aern-editor-media-picker {
  display: grid;
  gap: 9px;
}

.aern-editor-inline-upload {
  display: grid;
  gap: 7px;
}

.aern-editor-media-picker-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 78px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(213, 174, 90, 0.25);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
}

.aern-editor-media-picker-preview img {
  display: block;
  width: 92px;
  height: 62px;
  object-fit: cover;
  background: #050607;
  transform-origin: center;
}

.aern-editor-media-picker-preview figcaption {
  min-width: 0;
  overflow: hidden;
  color: #9a978f;
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.aern-editor-media-picker-preview.is-empty {
  grid-template-columns: 1fr;
  min-height: 54px;
}

.aern-editor-media-library {
  display: grid;
  gap: 14px;
}

.aern-editor-media-field {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

.aern-editor-upload-inline {
  min-width: 0;
}

.aern-editor-file {
  padding: 7px;
  color: #9e9b94;
  font-size: 0.74rem;
}

.aern-editor-file::file-selector-button {
  margin-right: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(213, 174, 90, 0.4);
  border-radius: 2px;
  background: #14120e;
  color: #d9c18b;
  cursor: pointer;
}

.aern-editor-media-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(213, 174, 90, 0.26);
  border-radius: 2px;
  object-fit: cover;
  background: #050607;
}

.aern-editor-media-preview.is-icon {
  width: 72px;
  aspect-ratio: 1;
  object-fit: contain;
}

.aern-editor-crop-preview {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 174, 90, 0.36);
  border-radius: 2px;
  background: #050607;
  isolation: isolate;
}

.aern-editor-shortcut-preview {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(205, 168, 94, 0.24);
  background: rgba(5, 7, 9, 0.84);
  text-align: center;
}

.aern-editor-shortcut-preview .about-social-icon img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.aern-editor-shortcut-preview .about-social-icon-text {
  font-size: 1rem;
  font-weight: 700;
}

.aern-editor-shortcut-preview small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aern-editor-crop-preview.is-world {
  width: min(72%, 250px);
  min-height: 310px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
}

.aern-editor-crop-preview img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.aern-editor-crop-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 3, 4, 0.94) 100%);
  pointer-events: none;
}

.aern-editor-crop-preview figcaption {
  position: absolute;
  inset: auto 14px 13px;
  z-index: 2;
  display: grid;
  gap: 2px;
  color: #f2ead9;
  text-align: center;
}

.aern-editor-crop-preview figcaption strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aern-editor-crop-preview figcaption small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.aern-editor-crop-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #7d7a74;
  font-size: 0.76rem;
  text-align: center;
}

.aern-editor-range-field {
  gap: 8px;
}

.aern-editor-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aern-editor-range-value {
  color: #ddc587;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.aern-editor-range {
  width: 100%;
  margin: 0;
  accent-color: #b58d3f;
  cursor: pointer;
}

.aern-editor-range:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.aern-editor-media-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.aern-editor-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.aern-editor-media-card {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  background: #090a0b;
}

.aern-editor-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.aern-editor-media-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px;
}

.aern-editor-media-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.aern-editor-media-card strong,
.aern-editor-media-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aern-editor-media-delete {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(224, 101, 101, 0.38);
  border-radius: 2px;
  background: transparent;
  color: #d99696;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.aern-editor-media-delete:hover,
.aern-editor-media-delete:focus-visible {
  border-color: rgba(224, 101, 101, 0.76);
  color: #ffaaaa;
  outline: none;
}

.aern-editor-media-card strong {
  color: #d7d3ca;
  font-size: 0.73rem;
}

.aern-editor-media-card span {
  color: #777570;
  font-size: 0.67rem;
}

.aern-editor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c0d;
}

.aern-editor-status {
  min-width: 0;
  margin: 0;
  color: #e69b9b;
  font-size: 0.73rem;
  line-height: 1.35;
}

.aern-editor-status.is-ok {
  color: #97c99c;
}

.aern-editor-status[hidden] {
  display: block;
  visibility: hidden;
}

.aern-editor-admin-link {
  color: #bea15f;
  font-size: 0.75rem;
  text-decoration: none;
}

.aern-editor-admin-link:hover,
.aern-editor-admin-link:focus-visible {
  color: #f0dba8;
  outline: none;
}

.aern-home-editor-active [data-home-section-key] {
  cursor: crosshair;
}

.aern-home-editor-active [data-home-item-id],
.aern-home-editor-active [data-home-news-id] {
  cursor: pointer;
}

.aern-home-editor-active [data-home-section-key]:hover,
.aern-home-editor-active [data-home-item-id]:hover,
.aern-home-editor-active [data-home-news-id]:hover {
  outline: 1px dashed rgba(224, 190, 112, 0.82);
  outline-offset: -3px;
}

.aern-home-editor-active [data-home-editor-selected="true"] {
  outline: 2px solid #e0b75d !important;
  outline-offset: -4px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(213, 174, 90, 0.08);
}

.aern-visual-editor-active [data-home-section-key],
.aern-visual-editor-active [data-home-item-id],
.aern-visual-editor-active [data-home-news-id],
.aern-visual-editor-active .brand,
.aern-visual-editor-active .home-hero-logo-wrap,
.aern-visual-editor-active .footer-brand,
.aern-visual-editor-active .home-hero-title,
.aern-visual-editor-active [data-aern-hero-cta],
.aern-visual-editor-active .home-hero-content,
.aern-visual-editor-active .header-badges,
.aern-visual-editor-active .nav-auth,
.aern-visual-editor-active #navMain {
  cursor: grab;
  outline: 1px dashed rgba(224, 190, 112, 0.42);
  outline-offset: -3px;
}

.aern-visual-editor-active [data-home-section-key]:hover,
.aern-visual-editor-active [data-home-item-id]:hover,
.aern-visual-editor-active [data-home-news-id]:hover,
.aern-visual-editor-active .brand:hover,
.aern-visual-editor-active .home-hero-logo-wrap:hover,
.aern-visual-editor-active .footer-brand:hover,
.aern-visual-editor-active .home-hero-title:hover,
.aern-visual-editor-active [data-aern-hero-cta]:hover,
.aern-visual-editor-active .home-hero-content:hover,
.aern-visual-editor-active .header-badges:hover,
.aern-visual-editor-active .nav-auth:hover,
.aern-visual-editor-active #navMain:hover {
  outline-color: rgba(224, 190, 112, 0.9);
  box-shadow: inset 0 0 0 1px rgba(224, 190, 112, 0.16), inset 0 0 36px rgba(213, 174, 90, 0.07);
}

.aern-visual-editor-active [data-aern-editor-selected="true"] {
  outline: 2px solid #e0b75d !important;
  outline-offset: -4px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.68), inset 0 0 44px rgba(213, 174, 90, 0.11) !important;
}

.aern-visual-editor-active .is-aern-editor-dragging {
  cursor: grabbing !important;
  opacity: 0.94;
  animation: none !important;
  transition: none !important;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.aern-editor-layout-applied {
  --aern-editor-hover-x: 0px;
  --aern-editor-hover-y: 0px;
  --aern-editor-hover-scale: 1;
  --aern-editor-hover-rotate: 0deg;
  position: relative;
  z-index: var(--aern-editor-z, auto);
  transform:
    translate3d(var(--aern-editor-x, 0), var(--aern-editor-y, 0), 0)
    translate3d(var(--aern-editor-hover-x), var(--aern-editor-hover-y), 0)
    scale(var(--aern-editor-scale, 1))
    scale(var(--aern-editor-hover-scale))
    rotate(var(--aern-editor-hover-rotate)) !important;
  transform-origin: center center;
}

.aern-editor-section-layout {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: var(--aern-section-height-desktop, 0px);
  justify-content: var(--aern-section-align-desktop, start);
  padding-top: var(--aern-section-padding-top-desktop, 0px);
  padding-bottom: var(--aern-section-padding-bottom-desktop, 0px);
  overflow: var(--aern-section-overflow-desktop, visible);
  z-index: var(--aern-editor-z, auto);
  transform: translate3d(var(--aern-editor-x, 0), var(--aern-editor-y, 0), 0) scale(var(--aern-editor-scale, 1)) !important;
  transform-origin: center top;
}

.aern-editor-section-layout > .container,
.aern-editor-section-layout > .hero-content {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--aern-section-content-width-desktop, 1180px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.aern-visual-editor-active .aern-editor-section-layout {
  min-height: var(--aern-section-preview-height, var(--aern-section-height-desktop, 0px));
  justify-content: var(--aern-section-preview-align, var(--aern-section-align-desktop, start));
  padding-top: var(--aern-section-preview-padding-top, var(--aern-section-padding-top-desktop, 0px));
  padding-bottom: var(--aern-section-preview-padding-bottom, var(--aern-section-padding-bottom-desktop, 0px));
  overflow: var(--aern-section-preview-overflow, var(--aern-section-overflow-desktop, visible));
}

.aern-visual-editor-active .aern-editor-section-layout > .container,
.aern-visual-editor-active .aern-editor-section-layout > .hero-content {
  width: min(calc(100% - 32px), var(--aern-section-preview-content-width, var(--aern-section-content-width-desktop, 1180px)));
}

.aern-editor-section-resize-handle {
  position: absolute;
  right: 50%;
  bottom: 2px;
  z-index: 8995;
  display: inline-flex;
  min-width: 112px;
  height: 27px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(229, 196, 116, 0.78);
  border-radius: 3px;
  background: rgba(8, 9, 10, 0.94);
  color: #ead39b;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  cursor: ns-resize;
  transform: translate(50%, 50%);
  touch-action: none;
  user-select: none;
}

.aern-editor-section-resize-handle:focus-visible {
  outline: 2px solid rgba(229, 196, 116, 0.4);
  outline-offset: 2px;
}

.aern-editor-section-resize-grip {
  width: 28px;
  height: 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.8;
}

.is-aern-editor-resizing {
  cursor: ns-resize !important;
  user-select: none;
}

body.is-aern-editor-resizing {
  cursor: ns-resize;
}

.aern-editor-layout-applied.home-world-card:not([data-aern-hover-effect]):is(:hover, :focus-visible),
.aern-editor-layout-applied.home-world-card[data-aern-hover-effect="lift"]:is(:hover, :focus-visible) {
  --aern-editor-hover-y: -8px;
}

.aern-editor-layout-applied.home-world-card[data-aern-hover-effect="zoom"]:is(:hover, :focus-visible) {
  --aern-editor-hover-scale: 1.035;
}

.aern-editor-layout-applied.home-world-card[data-aern-hover-effect="glow"]:is(:hover, :focus-visible) {
  --aern-editor-hover-y: -2px;
}

.aern-editor-layout-applied.home-world-card[data-aern-hover-effect="tilt"]:is(:hover, :focus-visible) {
  --aern-editor-hover-y: -4px;
  --aern-editor-hover-rotate: -1.2deg;
}

.aern-visual-editor-active .aern-editor-layout-applied.home-world-card.is-aern-editor-dragging {
  --aern-editor-hover-x: 0px !important;
  --aern-editor-hover-y: 0px !important;
  --aern-editor-hover-scale: 1 !important;
  --aern-editor-hover-rotate: 0deg !important;
}

.aern-visual-editor-active.is-aern-editor-dragging {
  cursor: grabbing;
}

.aern-brand-logo-custom {
  transform: scale(var(--aern-brand-logo-scale, 1));
  transform-origin: center center;
}

.aern-editor-sticker-anchor {
  position: relative;
}

.aern-editor-sticker {
  position: absolute;
  left: var(--aern-sticker-x, 50%);
  top: var(--aern-sticker-y, 50%);
  display: block;
  width: 72px;
  height: 72px;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--aern-sticker-rotation, 0deg)) scale(var(--aern-sticker-scale, 1));
  transform-origin: center;
}

.aern-editor-sticker[data-aern-sticker-locked="true"] {
  pointer-events: none;
}

.aern-editor-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}

.nav-main > button[data-aern-editor-nav-custom] {
  position: relative;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-main > button[data-aern-editor-nav-custom]:hover,
.nav-main > button[data-aern-editor-nav-custom]:focus-visible {
  color: #fff;
  outline: none;
}

@media (min-width: 1180px) {
  .aern-visual-editor-active.aern-visual-editor-inspector-open > main,
  .aern-visual-editor-active.aern-visual-editor-inspector-open > .site-footer,
  .aern-visual-editor-active.aern-visual-editor-inspector-open > footer {
    transition: margin 180ms ease;
  }

  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="right"] > main,
  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="right"] > .site-footer,
  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="right"] > footer {
    margin-right: 464px;
  }

  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="left"] > main,
  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="left"] > .site-footer,
  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="left"] > footer {
    margin-left: 464px;
  }

  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="right"] > .site-header {
    right: 464px;
    width: auto;
  }

  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="left"] > .site-header {
    left: 464px;
    width: auto;
  }

  .aern-visual-editor-active.aern-visual-editor-inspector-open[data-aern-editor-dock="left"] .aern-visual-editor-toolbar {
    left: 476px;
  }
}

@media (max-width: 1024px) {
  .aern-editor-section-layout {
    min-height: var(--aern-section-height-tablet, var(--aern-section-height-desktop, 0px));
    justify-content: var(--aern-section-align-tablet, var(--aern-section-align-desktop, start));
    padding-top: var(--aern-section-padding-top-tablet, var(--aern-section-padding-top-desktop, 0px));
    padding-bottom: var(--aern-section-padding-bottom-tablet, var(--aern-section-padding-bottom-desktop, 0px));
    overflow: var(--aern-section-overflow-tablet, var(--aern-section-overflow-desktop, visible));
  }

  .aern-editor-section-layout > .container,
  .aern-editor-section-layout > .hero-content {
    width: min(calc(100% - 32px), var(--aern-section-content-width-tablet, var(--aern-section-content-width-desktop, 1180px)));
  }
}

@media (max-width: 760px) {
  .aern-visual-editor-inspector {
    inset: auto 8px 124px;
    width: auto;
    max-height: min(72svh, 680px);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.58);
  }

  .aern-visual-editor-toolbar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    padding: 8px;
  }

  .aern-visual-editor-inspector-open .aern-visual-editor-toolbar {
    width: auto;
  }

  .aern-visual-editor-tools {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .aern-visual-editor-tools::-webkit-scrollbar {
    display: none;
  }

  .aern-visual-editor-tools > * {
    flex: 0 0 auto;
  }

  .aern-visual-editor-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .aern-editor-inspector-tabs {
    overflow-x: auto;
    grid-auto-columns: minmax(86px, 1fr);
  }
}

@media (max-width: 640px) {
  .aern-editor-section-layout {
    min-height: var(--aern-section-height-mobile, var(--aern-section-height-tablet, 0px));
    justify-content: var(--aern-section-align-mobile, var(--aern-section-align-tablet, start));
    padding-top: var(--aern-section-padding-top-mobile, var(--aern-section-padding-top-tablet, 0px));
    padding-bottom: var(--aern-section-padding-bottom-mobile, var(--aern-section-padding-bottom-tablet, 0px));
    overflow: var(--aern-section-overflow-mobile, var(--aern-section-overflow-tablet, visible));
  }

  .aern-editor-section-layout > .container,
  .aern-editor-section-layout > .hero-content {
    width: min(calc(100% - 24px), var(--aern-section-content-width-mobile, var(--aern-section-content-width-tablet, 1180px)));
  }

  .aern-editor-launch {
    right: 12px;
    bottom: 12px;
  }

  .aern-visual-editor-toolbar {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .aern-editor-drawer {
    width: 100%;
    border-left: 0;
  }

  .aern-editor-backdrop {
    display: none;
  }

  .aern-editor-body {
    padding: 14px;
  }

  .aern-editor-list-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .aern-editor-list-thumb,
  .aern-editor-list-mark {
    width: 46px;
    height: 46px;
  }

  .aern-editor-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .aern-editor-media-fields {
    grid-template-columns: 1fr;
  }

  .aern-visual-sticker-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aern-editor-launch {
    transition: none;
  }

  .aern-editor-layout-applied.home-world-card {
    --aern-editor-hover-x: 0px !important;
    --aern-editor-hover-y: 0px !important;
    --aern-editor-hover-scale: 1 !important;
    --aern-editor-hover-rotate: 0deg !important;
  }
}
