.editor-shell { --editor-purple: #7950cb; --editor-border: #e8e5ed; color: #292733; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.editor-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.editor-kicker { display: block; color: #8c7ba8; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; margin-bottom: 8px; }
.editor-header h1 { font-family: inherit; font-size: clamp(26px, 3.3vw, 38px); font-weight: 650; letter-spacing: -.045em; margin: 0; }
.editor-header__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.editor-header .secondary-button { background: #fff; border-color: var(--editor-border); border-radius: 11px; font-size: 12px; min-height: 38px; }
.editor-language { display: flex; padding: 3px; background: #eeeaf3; border-radius: 10px; margin-right: 6px; }
.editor-language button, .editor-canvas-toolbar button { background: none; border: none; padding: 6px 9px; border-radius: 7px; font-size: 11px; font-weight: 650; }
.editor-language button[aria-pressed=true], .editor-canvas-toolbar button[aria-pressed=true] { background: white; color: var(--editor-purple); box-shadow: 0 2px 7px #3823510c; }
.editor-icon-button { border: 1px solid var(--editor-border); background: white; width: 36px; height: 36px; border-radius: 10px; font-size: 23px; line-height: 1; }
.editor-shell button:disabled { cursor: default; opacity: .35; }
.editor-shell button:focus-visible, .editor-shell input:focus-visible, .editor-shell select:focus-visible { outline: 3px solid #b99ae9; outline-offset: 3px; }
.editor-workspace { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 740px; border: 1px solid var(--editor-border); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 12px 45px #38235107; }
.editor-sidebar { border-right: 1px solid var(--editor-border); min-width: 0; background: #fff; }
.editor-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; padding: 14px 8px 12px; border-bottom: 1px solid var(--editor-border); }
.editor-tabs button { display: grid; justify-items: center; gap: 7px; padding: 10px 0; border: 0; background: none; color: #8b8497; border-radius: 10px; font-size: 9px; }
.editor-tabs button[aria-pressed=true] { color: var(--editor-purple); background: #f4effc; }
.editor-panel { padding: 20px 17px; }
.editor-panel__intro { font-size: 12px; color: #948a9d; line-height: 1.7; margin-bottom: 22px; }
.editor-templates { display: grid; gap: 13px; }
.editor-template { display: grid; grid-template-columns: 1fr auto; text-align: left; background: white; border: 1px solid var(--editor-border); border-radius: 12px; padding: 8px 8px 11px; position: relative; transition: border-color .15s, transform .15s; }
.editor-template:hover { transform: translateY(-2px); }
.editor-template.is-selected { border-color: #9871d6; box-shadow: 0 0 0 2px #f2ebfc; }
.editor-template__image { grid-column: 1/-1; position: relative; overflow: hidden; height: 94px; border-radius: 7px; display: flex; align-items: center; padding: 16px; margin-bottom: 10px; }
.editor-template__image i { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--template-accent); opacity: .15; right: -8px; top: 18px; }
.editor-template__image b { font-family: Georgia, serif; font-size: 34px; font-weight: 400; z-index: 1; }
.editor-template__image > span { height: 4px; width: 35px; border-radius: 3px; background: var(--template-accent); position: absolute; bottom: 20px; right: 20px; }
.editor-template strong { font-size: 12px; margin-left: 3px; }
.editor-template small { grid-column: 1; font-size: 10px; color: #9b92a4; margin: 3px 0 0 3px; }
.editor-template > svg { position: absolute; bottom: 16px; right: 12px; color: var(--editor-purple); }
.editor-color-field { display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--editor-border); font-size: 12px; }
.editor-color-field input { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; }
.editor-color-field code { grid-column: 1; font-size: 10px; color: #9d94a8; margin-top: -8px; }
.editor-panel .field { margin-top: 23px; font-size: 12px; }
.editor-panel .field select { padding: 10px; width: 100%; min-width: 0; border: 1px solid var(--editor-border); border-radius: 9px; background: #faf9fc; color: #51485e; }
.editor-tip { display: flex; gap: 10px; margin-top: 24px; padding: 15px 12px; background: #f5f1fc; color: var(--editor-purple); border-radius: 12px; }
.editor-tip p { font-size: 11px; color: #88739e; margin: 0; }
.editor-upload { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--editor-border); }
.editor-upload > strong { font-size: 13px; }
.editor-upload > img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; margin-top: 12px; }
.editor-upload__empty { display: grid; place-items: center; height: 80px; margin-top: 12px; background: #f8f6fb; color: #b4a2ce; border: 1px dashed #d9cde9; border-radius: 10px; }
.editor-upload p, .editor-panel > small { font-size: 11px; color: #9a91a3; margin: 10px 0; }
.editor-upload .secondary-button { padding: 9px 13px; min-height: 35px; font-size: 11px; }
.editor-upload .text-button { margin-left: 7px; font-size: 10px; color: #a18cab; }
.editor-section-list { display: grid; gap: 8px; }
.editor-section-row { display: flex; align-items: center; gap: 7px; border: 1px solid var(--editor-border); border-radius: 9px; padding: 11px 8px; }
.editor-section-row strong { font-size: 10px; flex: 1; }
.editor-drag { cursor: grab; color: #aaa0b5; }
.editor-section-row > div { display: flex; gap: 1px; }
.editor-section-row button { font-size: 12px; padding: 2px 3px; border: 0; background: none; color: #9686a8; }
.editor-canvas-area { min-width: 0; background: #f1eff4; display: flex; flex-direction: column; }
.editor-canvas-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--editor-border); }
.editor-canvas-toolbar > span { color: #98909f; font-size: 10px; }
.editor-canvas-toolbar > span.is-error { color: #b44747; }
.editor-canvas-toolbar > div { background: #e7e3ec; padding: 3px; border-radius: 9px; flex-shrink: 0; }
.editor-canvas-scroll { padding: 24px; flex: 1; overflow: auto; max-height: 1100px; }
.editor-canvas { width: 100%; min-width: 0; margin: 0 auto; border-radius: 11px; overflow: hidden; box-shadow: 0 10px 40px #30203c12; transition: max-width .2s; }
.editor-canvas.is-mobile { max-width: 375px; }
.editor-local-note { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 15px; font-size: 10px; color: #a39aa9; text-align: center; }
.creator-page { background: var(--page-bg); color: var(--page-ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.65; }
.creator-page * { box-sizing: border-box; }
.creator-page p { color: inherit; opacity: .7; }
.creator-page h1, .creator-page h2 { font-family: var(--page-font); color: var(--page-ink); }
.creator-page__nav { display: flex; align-items: center; padding: 24px 6%; gap: 12px; border-bottom: 1px solid color-mix(in srgb,var(--page-ink) 8%, transparent); }
.creator-page__nav > strong { font-size: 12px; letter-spacing: -.02em; }
.creator-page__logo-slot { position: relative; display: flex; align-items: center; justify-content: center; width: 132px; height: 64px; flex: 0 0 132px; }
.creator-page__logo { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain !important; padding: 5px; }
.creator-page__image-drop { border: 1px dashed color-mix(in srgb,var(--page-accent) 50%,transparent); border-radius: 7px; color: var(--page-accent); background: color-mix(in srgb,var(--page-accent) 5%,var(--page-bg)); cursor: pointer; padding: 0; overflow: hidden; }
.creator-page__image-drop:hover, .creator-page__image-drop.is-dragover { border: 2px dashed var(--page-accent); background: color-mix(in srgb,var(--page-accent) 12%,var(--page-bg)); }
.creator-page__image-drop:focus-visible { outline: 3px solid var(--page-accent); outline-offset: 3px; }
.creator-page__image-drop[aria-busy=true] { opacity: .55; cursor: progress; }
.creator-page__drop-copy { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 10px; line-height: 1.4; }
.creator-page__drop-copy strong { font-size: 11px; font-weight: 550; }
.creator-page__drop-copy small { font-size: 9px; opacity: .8; }
.creator-page__logo-slot .creator-page__drop-copy { gap: 3px; padding: 5px; }
.creator-page__logo-slot .creator-page__drop-copy strong { font-size: 9px; }
.creator-page__logo-slot .creator-page__drop-copy small { font-size: 8px; }
.creator-page__slot-label { position: absolute; bottom: 7px; right: 7px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; background: var(--page-bg); color: var(--page-ink); font: 500 9px/1.3 ui-sans-serif,system-ui,sans-serif; box-shadow: 0 1px 7px #0001; }
.creator-page__logo-slot .creator-page__slot-label { bottom: 0; right: 0; font-size: 7px; padding: 3px 4px; }
.creator-page__banner-slot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 8 / 3; overflow: hidden; border-radius: 0; }
.creator-page__banner-slot.has-image { aspect-ratio: auto; }
.creator-page__banner-slot.creator-page__image-drop { border-radius: 0; border-width: 1px 0; }
.creator-page .creator-page__hero.has-banner { min-height: 280px; padding-block: 36px; }
.creator-page__hero.has-banner .creator-page__hero-copy { width: 100%; max-width: 700px; }
.creator-page__hero.has-banner .creator-page__hero-copy > p:not(:first-child) { max-width: 520px; }
.creator-page__symbol { width: 32px; height: 32px; background: var(--page-accent); color: white; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.creator-page__nav-label { margin-left: auto; font-size: 9px; color: var(--page-accent); }
.creator-page__hero { position: relative; overflow: hidden; padding: 60px 7% 64px; min-height: 410px; display: flex; align-items: center; }
.creator-page__hero-copy { width: 68%; position: relative; z-index: 1; }
.creator-page__hero-copy > p:first-child { color: var(--page-accent); font-size: 9px; font-weight: 650; letter-spacing: .08em; opacity: 1; text-transform: uppercase; margin: 0 0 18px; }
.creator-page__hero h1 { font-size: clamp(30px, 3.3vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; margin: 0 0 22px; overflow-wrap: anywhere; }
.creator-page__hero-copy > p:not(:first-child) { font-size: 11px; max-width: 360px; margin: 0 0 26px; }
.creator-page__cta { display: inline-flex; align-items: center; gap: 14px; background: var(--page-accent); color: white; padding: 12px 17px; border-radius: 7px; font-size: 10px; font-weight: 650; text-decoration: none; }
.creator-page__art { position: absolute; inset: 0 0 0 50%; pointer-events: none; }
.creator-page__art i { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--page-accent); opacity: .12; top: 24%; left: 10%; }
.creator-page__art i:nth-child(2) { border-radius: 45% 55% 40% 60%; transform: rotate(45deg); left: 27%; top: 40%; opacity: .18; }
.creator-page__art i:nth-child(3) { width: 100px; height: 100px; background: transparent; border: 1px solid var(--page-accent); left: 8%; top: 55%; opacity: .3; }
.creator-page__art > span { position: absolute; top: 35%; left: 30%; color: var(--page-accent); font-size: 85px; opacity: .65; }
.creator-page__banner { position: static; display: block; width: 100%; height: auto; object-fit: contain !important; }
.creator-page__section { display: flex; align-items: flex-start; gap: 24px; padding: 40px 7%; border-top: 1px solid color-mix(in srgb,var(--page-ink) 9%, transparent); }
.creator-page__section > div { flex: 1; min-width: 0; }
.creator-page__section h2 { font-size: 24px; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 14px; font-weight: 500; overflow-wrap: anywhere; }
.creator-page__section p { font-size: 11px; max-width: 480px; white-space: pre-wrap; margin: 0; }
.creator-page__section-mark { font-size: 45px; line-height: 1; color: var(--page-accent); margin-top: 4px; }
.creator-page__section--offers { background: color-mix(in srgb,var(--page-accent) 4%,var(--page-bg)); }
.creator-page__offers-note { display: flex; align-items: center; gap: 13px; padding: 22px; margin-top: 24px; border: 1px dashed color-mix(in srgb,var(--page-accent) 25%,transparent); border-radius: 10px; color: var(--page-accent); font-size: 10px; }
.creator-page__footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 7%; border-top: 1px solid color-mix(in srgb,var(--page-ink) 9%, transparent); font-size: 9px; }
.creator-page__footer span { opacity: .5; }
.creator-page [contenteditable] { cursor: text; border-radius: 3px; outline: 1px solid transparent; outline-offset: 5px; transition: outline-color .15s; }
.creator-page [contenteditable]:hover { outline-color: color-mix(in srgb,var(--page-accent) 35%, transparent); }
.creator-page [contenteditable]:focus { outline: 2px solid var(--page-accent); }
.editor-canvas.is-mobile .creator-page__nav { padding: 20px; }
.editor-canvas.is-mobile .creator-page__nav-label { display: none; }
.editor-canvas.is-mobile .creator-page__hero { padding: 45px 25px; min-height: 420px; }
.editor-canvas.is-mobile .creator-page__hero-copy { width: 90%; }
.editor-canvas.is-mobile .creator-page__hero h1 { font-size: 40px; }
.editor-canvas.is-mobile .creator-page__art { opacity: .35; left: 25%; }
.editor-canvas.is-mobile .creator-page__section { padding: 30px 25px; gap: 16px; }
.editor-canvas.is-mobile .creator-page__section h2 { font-size: 24px; }
.editor-canvas.is-mobile .creator-page__section-mark { font-size: 32px; }
.editor-canvas.is-mobile .creator-page__logo-slot { width: 100px; height: 56px; flex-basis: 100px; }
@media (max-width: 1100px) { .editor-workspace { grid-template-columns: 210px minmax(0,1fr); }.editor-canvas-scroll { padding: 15px; }.editor-header { align-items: flex-start; flex-direction: column; }.creator-page__hero-copy { width: 90%; }.creator-page__art { opacity: .5; } }
@media (max-width: 760px) {
  .creator-page__logo-slot { width: 100px; height: 56px; flex-basis: 100px; }
  .creator-page__banner-slot .creator-page__drop-copy { gap: 4px; }
  .creator-page__banner-slot .creator-page__drop-copy small { font-size: 8px; }
  .editor-header { gap: 18px; }.editor-header__actions { width: 100%; }.editor-header__actions .secondary-button { margin-left: auto; font-size: 10px; }
  .editor-workspace { display: flex; flex-direction: column; border-radius: 16px; min-height: 0; }.editor-sidebar { border: 0; border-bottom: 1px solid var(--editor-border); }.editor-tabs { padding: 7px; }.editor-tabs button { display: flex; justify-content: center; padding: 9px 5px; font-size: 10px; gap: 5px; }.editor-tabs button svg { width: 15px; }
  .editor-panel { padding: 15px; max-height: 330px; overflow: auto; }.editor-panel__intro { margin-bottom: 12px; font-size: 11px; }.editor-templates { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.editor-template__image { height: 68px; }.editor-template strong { font-size: 10px; }.editor-template small { font-size: 8px; }.editor-template > svg { bottom: 27px; width: 12px; }
  .editor-canvas-toolbar { padding: 12px; min-height: 50px; }.editor-canvas-toolbar > span { font-size: 9px; max-width: 45%; }.editor-canvas-toolbar button { font-size: 10px; }.editor-canvas-scroll { padding: 14px; max-height: 850px; }.creator-page__nav { padding: 18px; }.creator-page__nav-label { display: none; }.creator-page__hero { padding: 38px 22px; min-height: 400px; }.creator-page__hero h1 { font-size: 38px; }.creator-page__hero-copy { width: 100%; }.creator-page__section { padding: 28px 22px; gap: 15px; }.creator-page__section-mark { font-size: 30px; }.creator-page__footer { flex-direction: column; gap: 6px; }.editor-local-note { font-size: 9px; }
}

.sidebar .brand strong { font-size: 14px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; }

/* The page canvas always reflects the current draft; full preview hides editing controls. */
.editor-preview-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid #3f5c3e; border-radius: 9px; background: #3f5c3e; color: #fff; font: 550 12px/1.4 ui-sans-serif,system-ui,sans-serif; cursor: pointer; }
.editor-preview-button:hover { background: #30492f; }
.editor-live-heading { display: grid; gap: 5px; }
.editor-live-heading > strong { display: flex; align-items: center; gap: 8px; color: #51465a; font-size: 11px; font-weight: 600; }
.editor-live-heading > strong > span { color: #45613d; background: #e3ecd9; font-size: 8px; border-radius: 5px; padding: 1px 6px; }
.editor-live-heading > span { color: #777080; font-size: 9px; }
.editor-live-heading > span.is-error { color: #b44747; }
.editor-canvas-toolbar > .editor-live-heading { background: none; padding: 0; flex-shrink: 1; }
.editor-asset-preview { display: grid; place-items: center; min-height: 100px; margin: 14px 0; padding: 12px; border: 1px dashed #d9d1de; border-radius: 9px; background: #f8f6f9; }
.editor-asset-preview > span { display: grid; justify-items: center; gap: 9px; color: #83778c; text-align: center; font-size: 10px; }
.editor-asset-preview > img { width: 100%; height: 95px; object-fit: contain; }
.editor-asset-preview--logo { min-height: 145px; background-color: #fff; background-image: linear-gradient(45deg,#eeedf0 25%,transparent 25%),linear-gradient(-45deg,#eeedf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eeedf0 75%),linear-gradient(-45deg,transparent 75%,#eeedf0 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.editor-asset-preview--logo > img { height: 120px; }
.editor-upload .editor-upload__formats { font-size: 11px; color: #5f536a; font-weight: 550; margin-top: 8px; }
.editor-page-preview { width: min(1440px,calc(100vw - 40px)); height: calc(100dvh - 40px); max-width: none; max-height: none; padding: 0; border: 1px solid #d9d1dc; border-radius: 13px; background: #eeecef; color: #2c3530; overflow: hidden; }
.editor-page-preview::backdrop { background: #2031298c; backdrop-filter: blur(4px); }
.editor-page-preview__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 23px; min-height: 77px; background: #fcfbf7; border-bottom: 1px solid #dedbdc; }
.editor-page-preview__header > div:first-child { display: grid; gap: 4px; }
.editor-page-preview__header strong { font: 600 14px ui-sans-serif,system-ui,sans-serif; }
.editor-page-preview__header span { font-size: 10px; color: #747269; }
.editor-page-preview__controls { display: flex; align-items: center; gap: 12px; }
.editor-page-preview__scroll { height: calc(100% - 77px); overflow: auto; padding: 25px; }
.editor-page-preview__scroll .editor-canvas { max-width: 1200px; border-radius: 7px; }
.editor-page-preview__scroll .editor-canvas.is-mobile { max-width: 375px; }
.editor-page-preview .creator-page__hero { min-height: 440px; }
.editor-page-preview :is(button,a):focus-visible { outline: 3px solid #a78058; outline-offset: 3px; }
@media(max-width:760px) {
  .editor-header__actions .editor-preview-button { min-height: 36px; font-size: 11px; padding-inline: 11px; }
  .editor-page-preview { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 9px; }
  .editor-page-preview__header { padding: 12px; flex-wrap: wrap; gap: 12px; min-height: 118px; }
  .editor-page-preview__header > div:first-child { width: 100%; }
  .editor-page-preview__controls { width: 100%; justify-content: space-between; gap: 8px; }
  .editor-page-preview__controls .editor-preview-button { font-size: 10px; padding-inline: 10px; }
  .editor-page-preview__scroll { height: calc(100% - 118px); padding: 10px; }
  .editor-live-heading > strong { font-size: 10px; }
  .editor-live-heading > span { font-size: 8px; }
}
