:root {
  --editor-cream: #f6e9cf;
  --editor-orange: #f2ab02;
  --editor-green: #123f32;
  --editor-blue: #0600e9;
  --editor-line: rgba(246, 233, 207, .18);
  --editor-muted: rgba(246, 233, 207, .62);
  --editor-panel: #0d3027;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--editor-cream);
  background: var(--editor-green);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--editor-green); }
body { min-height: 100vh; }
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--editor-line);
}
.editor-kicker,
.editor-label,
.editor-section-heading h2,
.editor-selected-breakpoint,
.editor-preview-toolbar,
.editor-save-state,
.editor-topbar-actions a {
  margin: 0;
  color: var(--editor-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.editor-topbar h1 {
  margin: 4px 0 0;
  color: var(--editor-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: .95;
}
.editor-topbar-actions { display: flex; align-items: center; gap: 18px; }
.editor-topbar-actions a { color: var(--editor-cream); text-decoration: none; }
.editor-topbar-actions a:hover { color: var(--editor-orange); }

.editor-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  min-height: calc(100vh - 82px);
}
.editor-sidebar {
  min-height: calc(100vh - 82px);
  background: var(--editor-panel);
  border-right: 1px solid var(--editor-line);
}
.editor-section { padding: 20px; border-bottom: 1px solid var(--editor-line); }
.editor-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-section-heading h2 { color: var(--editor-cream); }
.editor-help { margin: 10px 0 0; color: var(--editor-muted); font-size: 12px; line-height: 1.45; }
.editor-select,
.editor-field-grid input {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 10px;
  color: var(--editor-cream);
  background: rgba(246, 233, 207, .06);
  border: 1px solid var(--editor-line);
  border-radius: 0;
  outline: none;
}
.editor-select:focus,
.editor-field-grid input:focus { border-color: var(--editor-orange); }
.editor-select option { color: var(--editor-green); }

.editor-asset-list { display: grid; gap: 5px; }
.editor-asset-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--editor-muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
}
.editor-asset-button:hover,
.editor-asset-button.is-selected { color: var(--editor-cream); border-color: rgba(242, 171, 2, .7); background: rgba(242, 171, 2, .08); }
.editor-asset-button span:last-child { color: var(--editor-muted); font-size: 10px; }
.editor-selection-tools { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--editor-line); }
.editor-selection-count { margin: 0 0 10px; color: var(--editor-orange); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.editor-align-grid { display: grid; gap: 6px; margin-top: 8px; }
.editor-align-grid .editor-button { min-height: 32px; padding: 6px 8px; font-size: 9px; line-height: 1.25; text-align: left; text-transform: none; }
.editor-groups { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--editor-line); }
.editor-group-list { display: grid; gap: 5px; margin-top: 8px; }
.editor-group-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; color: var(--editor-muted); font-size: 10px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 0; cursor: pointer; }
.editor-group-button:hover, .editor-group-button.is-selected { color: var(--editor-cream); border-color: rgba(242, 171, 2, .7); background: rgba(242, 171, 2, .08); }
.editor-group-button small { color: var(--editor-muted); font-size: 9px; }

.editor-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-field-grid label { color: var(--editor-muted); font-size: 11px; }
.editor-field-grid input { display: block; margin-top: 5px; }
.editor-selected-breakpoint { color: var(--editor-orange); font-size: 9px; }

.editor-button,
.editor-text-button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--editor-cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(246, 233, 207, .34);
  border-radius: 0;
  cursor: pointer;
}
.editor-button:hover,
.editor-button:focus-visible { color: var(--editor-green); background: var(--editor-orange); border-color: var(--editor-orange); }
.editor-button--primary { width: 100%; color: var(--editor-green); background: var(--editor-orange); border-color: var(--editor-orange); }
.editor-button--primary:hover,
.editor-button--primary:focus-visible { color: var(--editor-cream); background: transparent; }
.editor-button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.editor-text-button { min-height: auto; padding: 0; color: var(--editor-muted); font-size: 10px; border: 0; }
.editor-text-button:hover, .editor-text-button:focus-visible { color: var(--editor-orange); background: transparent; }
.editor-reset { margin-top: 14px; }

.editor-preview-column { min-width: 0; background: var(--editor-blue); }
.editor-preview-toolbar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; color: rgba(246, 233, 207, .75); border-bottom: 1px solid rgba(246, 233, 207, .2); }
.editor-preview-scroll { min-height: calc(100vh - 145px); overflow: auto; padding: clamp(18px, 4vw, 50px); background: var(--editor-blue); }
.editor-canvas { position: relative; width: var(--frame-width, 1440px); height: var(--frame-height, 900px); margin: 0 auto; background: var(--editor-orange); box-shadow: 0 22px 60px rgba(0, 0, 0, .26); }
.editor-canvas iframe { display: block; width: 100%; height: 100%; border: 0; }
.editor-status { margin: 0; padding: 10px 20px; color: rgba(246, 233, 207, .65); font-size: 11px; border-top: 1px solid rgba(246, 233, 207, .2); }

@media (max-width: 760px) {
  .editor-topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .editor-topbar-actions { width: 100%; justify-content: space-between; }
  .editor-layout { display: block; }
  .editor-sidebar { min-height: auto; border-right: 0; }
  .editor-preview-column { min-height: 620px; }
  .editor-preview-scroll { min-height: 520px; }
}
