#professional-editor[hidden], #image-studio[hidden], #image-page-heading[hidden], #video-studio[hidden] { display: none !important; }
.editor-studio { min-width: 0; padding-bottom: 36px; }
.editor-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 29px 0 20px; }
.editor-page-heading h1 { margin: 10px 0 6px; font: 42px/1 var(--serif); }
.editor-page-heading p:last-child { margin: 0; color: #78837b; font-size: 12px; }
.editor-toolbar { display: flex; min-width: 0; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px; border: 1px solid #e2e8e2; border-radius: 7px; background: #fff; }
.editor-tool-button { display: inline-flex; min-width: 34px; height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #58665d; font-size: 10px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.editor-tool-button:hover:not(:disabled), .editor-tool-button.is-active { border-color: #dbe6dc; background: #f1f6f1; color: #20583b; }
.editor-tool-button:disabled { color: #b1bab3; cursor: not-allowed; }
.editor-tool-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.editor-tool-separator { width: 1px; height: 22px; flex: 0 0 auto; margin: 0 2px; background: #e4e9e4; }
.editor-toolbar-spacer { flex: 1 1 auto; }
.editor-toolbar select, .editor-toolbar input[type="range"] { max-width: 130px; }
.editor-toolbar select, .editor-property-control select, .editor-property-control input[type="number"], .editor-property-control input[type="text"], .editor-property-control textarea, .editor-campaign-control select, .editor-campaign-control input, .editor-campaign-control textarea { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #dfe5df; border-radius: 4px; background: #fff; color: #344239; font: 11px var(--sans); }
.editor-toolbar select { width: auto; height: 32px; }
.editor-toolbar input[type="range"] { width: 86px; accent-color: var(--green); }
.editor-layout { display: grid; min-width: 0; grid-template-columns: minmax(225px, 255px) minmax(0, 1fr) minmax(260px, 290px); align-items: stretch; gap: 12px; }
.editor-side-panel { min-width: 0; overflow: hidden; border: 1px solid #e4e9e4; border-radius: 7px; background: #fff; }
.editor-side-section { padding: 13px; border-bottom: 1px solid #edf0ec; }
.editor-side-section:last-child { border-bottom: 0; }
.editor-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.editor-panel-heading h2, .editor-panel-heading h3 { margin: 0; color: #344239; font-size: 11px; font-weight: 750; }
.editor-panel-heading small { color: #909a92; font-size: 9px; }
.editor-section-toggle { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.editor-templates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.editor-template-card { display: grid; min-width: 0; justify-items: stretch; gap: 6px; padding: 6px; border: 1px solid #e5e9e4; border-radius: 5px; background: #fff; text-align: left; cursor: pointer; }
.editor-template-card:hover, .editor-template-card[aria-pressed="true"] { border-color: #6e9d7a; background: #f5f8f4; }
.editor-template-card strong { overflow: hidden; color: #4e5d53; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.editor-template-card small { color: #919b93; font-size: 8px; }
.editor-template-preview { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #edf0eb; border-radius: 3px; }
.editor-template-card strong { white-space: normal; line-height: 1.4; }
.editor-gallery-note { margin: 8px 0 12px; color: #68766d; font-size: 10px; line-height: 1.6; }
.editor-templates { max-height: 570px; overflow-y: auto; padding: 2px; }
.editor-template-dialog { width: min(680px, calc(100vw - 28px)); max-height: 92vh; padding: 22px; overflow-y: auto; border: 1px solid #cdd8ce; border-radius: 12px; color: #263b30; background: #fffefa; box-shadow: 0 24px 90px #10291f44; }
.editor-template-dialog::backdrop { background: #10291fb3; }
.editor-template-dialog .editor-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.editor-template-dialog h2 { margin: 6px 0; font-size: 23px; }
.editor-template-dialog > p { font-size: 11px; line-height: 1.6; color: #65756a; }
.editor-template-large-stage { display: grid; min-height: 180px; padding: 16px; place-items: center; border-radius: 6px; background: #e9ede6; }
.editor-template-large-stage img { display: block; max-height: 56vh; max-width: 100%; width: auto; height: auto; box-shadow: 0 5px 22px #203b2b1a; }
.editor-template-large-stage img:not([src]) { visibility: hidden; }
#editor-replace-image { margin-bottom: 12px; border-color: #b6cdb9; color: #20583b; }
#editor-replace-image[hidden] { display: none; }
.editor-property-control[hidden] { display: none; }
.editor-insert-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.editor-insert-actions .editor-tool-button { justify-content: flex-start; border-color: #e7ebe6; }
.editor-layers { display: grid; max-height: 290px; gap: 3px; overflow: auto; }
.editor-layer-row { display: grid; min-width: 0; grid-template-columns: 26px minmax(0,1fr) 26px; align-items: center; gap: 4px; min-height: 32px; padding: 3px 4px; border: 1px solid transparent; border-radius: 4px; color: #657168; cursor: pointer; }
.editor-layer-row:hover { background: #f6f8f5; }.editor-layer-row.is-selected { border-color: #d9e6da; background: #eff5ef; color: #28583b; }
.editor-layer-row.is-hidden .editor-layer-name { opacity: .5; text-decoration: line-through; }
.editor-layer-name { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.editor-layer-icon { display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 3px; background: transparent; color: #7f8b82; cursor: pointer; }
.editor-layer-icon:hover { background: #e7eee7; color: var(--green); }
.editor-layer-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.editor-canvas-column { display: grid; min-width: 0; grid-template-rows: auto minmax(440px, 1fr) auto; overflow: hidden; border: 1px solid #e1e6e1; border-radius: 7px; background: #edf0ec; }
.editor-canvas-options { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-bottom: 1px solid #dfe5df; background: #fff; }
.editor-canvas-options label { color: #718078; font-size: 9px; font-weight: 650; }
.editor-canvas-options select { width: min(230px, 55%); height: 30px; padding: 0 7px; border: 1px solid #dfe5df; border-radius: 4px; background: #fff; color: #4a584f; font-size: 10px; }
.editor-canvas-viewport { position: relative; display: grid; min-width: 0; min-height: 440px; max-height: min(75vh, 900px); padding: 24px; place-items: center; overflow: auto; background-color: #edf0ec; background-image: radial-gradient(#d8ded7 .7px, transparent .7px); background-size: 14px 14px; }
.editor-fabric-stage { position: relative; display: grid; width: max-content; max-width: none; flex: 0 0 auto; place-items: start; background: #fffefa; box-shadow: 0 8px 28px #263a2d22; }
.editor-fabric-stage .canvas-container { display: block; }
.editor-safe-margin { position: absolute; z-index: 5; inset: 6%; border: 1px dashed rgba(43,100,69,.42); pointer-events: none; }
.editor-safe-margin::before, .editor-safe-margin::after { position: absolute; content: ''; background: rgba(43,100,69,.18); }
.editor-safe-margin::before { top: 50%; right: 0; left: 0; height: 1px; }.editor-safe-margin::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.editor-safe-margin[hidden] { display: none; }
.story-safe-top, .story-safe-bottom, .editor-story-note { display: none; }
.editor-fabric-stage.is-story { outline: 7px solid #263a32; border-radius: 12px; }
.is-story .editor-safe-margin { inset: 0; border: 0; }
.is-story .editor-safe-margin::before, .is-story .editor-safe-margin::after { display: none; }
.is-story .story-safe-top, .is-story .story-safe-bottom { display: flex; position: absolute; left: 0; right: 0; align-items: center; justify-content: center; background: #183b3026; color: #315c48; font: 9px Arial,sans-serif; pointer-events: none; }
.is-story .story-safe-top { top: 0; height: 14.0625%; border-bottom: 1px dashed #739e83; }
.is-story .story-safe-bottom { bottom: 0; height: 17.1875%; border-top: 1px dashed #739e83; }
.editor-canvas-column:has(.is-story) .editor-story-note { display: block; margin: 0; padding: 8px 10px; background: #fffefa; color: #657168; font-size: 10px; line-height: 1.5; }
.editor-canvas-column:has(.is-story) { grid-template-rows: auto minmax(440px,1fr) auto auto; }
.editor-template-dialog.is-story .editor-template-large-stage img { border: 7px solid #263a32; border-radius: 18px; }
.editor-canvas-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 33px; padding: 0 10px; border-top: 1px solid #dfe5df; background: #fff; color: #8a948d; font-size: 9px; }
.editor-properties-panel { display: grid; align-content: start; gap: 0; }
.editor-no-selection { margin: 0; color: #89938c; font-size: 9px; line-height: 1.5; }
.editor-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.editor-property-control { display: grid; min-width: 0; gap: 5px; margin-bottom: 8px; }
.editor-property-control label, .editor-campaign-control label { color: #657168; font-size: 9px; font-weight: 650; }
.editor-property-control textarea, .editor-campaign-control textarea { min-height: 58px; resize: vertical; line-height: 1.4; }
.editor-property-control input[type="color"] { height: 34px; padding: 3px; cursor: pointer; }
.editor-property-control input[type="range"] { width: 100%; accent-color: var(--green); }
.editor-object-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.editor-object-actions .editor-tool-button { min-width: 30px; padding: 0 6px; border-color: #e5e9e4; font-size: 9px; }
.editor-campaign-control { display: grid; gap: 8px; }
.editor-campaign-actions { display: grid; gap: 6px; margin-top: 10px; }
.editor-campaign-actions .button { min-height: 36px; font-size: 10px; }
.editor-copy-suggestions { display: grid; gap: 5px; margin-top: 8px; }
.editor-copy-suggestion { padding: 7px; border: 1px solid #e9ede8; border-radius: 4px; background: #fafbf9; color: #657168; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.editor-copy-status, .editor-status { min-height: 14px; margin: 6px 0 0; color: #7f8b82; font-size: 9px; line-height: 1.45; }
.editor-copy-status.is-error, .editor-status.is-error { color: var(--red); }
.editor-template-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.editor-format-select { min-width: 0; }
.editor-grid[hidden] { display: none !important; }
@media (max-width: 1180px) {
  .editor-layout { grid-template-columns: minmax(0,1fr) minmax(255px, 290px); }
  .editor-left-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px,.9fr) minmax(220px,1fr); align-items: start; gap: 0 8px; }
  .editor-left-panel .editor-side-section:first-child { grid-row: span 2; }
  .editor-layers { max-height: 170px; }
}
@media (max-width: 760px) {
  .editor-page-heading { align-items: flex-start; flex-direction: column; gap: 6px; padding: 23px 0 16px; }
  .editor-page-heading h1 { font-size: 34px; }
  .editor-toolbar { flex-wrap: wrap; }
  .editor-toolbar-spacer { display: none; }
  .editor-layout { grid-template-columns: minmax(0,1fr); }
  .editor-left-panel { grid-column: auto; grid-template-columns: minmax(0,1fr); }
  .editor-left-panel .editor-side-section:first-child { grid-row: auto; }
  .editor-canvas-column { grid-row: 1; grid-template-rows: auto minmax(340px,1fr) auto; }
  .editor-canvas-viewport { min-height: 340px; max-height: 68vh; padding: 12px; }
  .editor-properties-panel { grid-row: 2; }
  .editor-left-panel { grid-row: 3; }
}
@media (max-width: 430px) {
  .editor-toolbar { gap: 3px; padding: 6px; }
  .editor-tool-button { min-width: 29px; padding: 0 5px; font-size: 9px; }
  .editor-tool-separator { display: none; }
  .editor-template-card strong { font-size: 8px; }
  .editor-canvas-options { flex-wrap: wrap; }
}
