.editor-page { background: #edf0e9; font: 400 14px/1.7 var(--body); }
.editor-page :is(input,textarea,select,button) { font: inherit; }
.editor-page :is(input,textarea,select) { accent-color: var(--forest); }
.editor-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-header h1 { margin: 0; font: 500 20px/1.5 var(--body); }
.editor-home { font-size: 13px; text-decoration: underline; }
.editor-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #9aa493; border-radius: 8px; padding: 10px 16px; cursor: pointer; text-align: center; line-height: 1.5; }
.editor-button.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.editor-button.primary:hover { background: #2d4433; }
.editor-button.secondary { color: var(--forest); background: #fff; }
.editor-button.secondary:hover { background: #e9eee6; }
.editor-button.text-button { border-color: transparent; color: #914a38; background: transparent; }
.editor-page button:active { transform: translateY(1px); }
.editor-page button:disabled { opacity: .5; cursor: not-allowed; }
.editor-introduction { display: flex; justify-content: space-between; gap: 16px; padding: 12px 32px; background: #f8faf6; border-bottom: 1px solid var(--line); font-size: 12px; }
.editor-introduction p { margin: 0; }
#memory-note { color: #52604d; max-width: 70ch; }
.editor-workspace { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); max-width: 1500px; margin: auto; align-items: start; }
.editor-controls { background: #fff; border-right: 1px solid var(--line); min-width: 0; }
.editor-step-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 24px 16px; border-bottom: 1px solid #e2e7dd; }
.editor-step-nav button { flex: 1 0 auto; font-size: 13px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 6px; color: #53624e; background: transparent; }
.editor-step-nav button[aria-current=step] { color: #fff; background: var(--forest); }
.editor-step-nav button:hover:not([aria-current=step]) { background: #edf1e9; }
.editor-panel { padding: 24px; }
.editor-panel h2 { font: 500 22px/1.5 var(--body); margin: 0 0 24px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 20px; min-width: 0; }
.editor-field label { font-weight: 500; }
.editor-field :is(input:not([type=range]),textarea,select),.guest-form :is(input:not([type=radio]):not([type=checkbox]),textarea) { width: 100%; min-width: 0; padding: 10px 12px; min-height: 44px; border: 1px solid #9fa898; border-radius: 6px; color: #263522; background: #fff; line-height: 1.7; }
.editor-field textarea { resize: vertical; min-height: 110px; }
.editor-field input[type=range] { width: 100%; min-height: 36px; margin: 0; }
.editor-field :is(input,textarea,select):focus-visible { outline: 2px solid #355c3c; outline-offset: 2px; }
.editor-field [aria-invalid=true] { border-color: #a23924; }
.field-help,.editor-account-note { font-size: 13px; color: #56634e; line-height: 1.9; margin: 4px 0 20px; }
.editor-account-note { padding: 16px 24px; border-top: 1px solid var(--line); margin: 0; }
.field-error { color: #923b25; font-size: 13px; }
.editor-error-summary { border: 1px solid #b85c44; border-radius: 6px; background: #fff5f0; padding: 16px; margin-bottom: 24px; }
.editor-error-summary h3 { margin: 0 0 12px; font-size: 15px; }
.editor-error-summary ul { padding-left: 20px; margin: 0; }
.editor-error-summary button { background: transparent; color: #823821; border: 0; text-decoration: underline; padding: 5px 0; text-align: start; }
.editor-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.type-options button { min-height: 54px; border: 1px solid #a5af9e; border-radius: 8px; padding: 10px; color: var(--forest); background: #fff; }
.type-options button[aria-pressed=true] { border: 2px solid var(--forest); background: #eaf0e4; font-weight: 500; }
.color-options { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 24px; }
.color-options button { min-height: 46px; display: flex; align-items: center; gap: 12px; text-align: start; padding: 6px 8px; background: #fff; border: 1px solid transparent; border-radius: 6px; }
.color-options button[aria-pressed=true] { border-color: #52684b; background: #f0f4eb; }
.color-dot { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; }
.color-dot.sage { background: #647762; }.color-dot.rose { background: #9b6477; }.color-dot.gold { background: #b99d64; }.color-dot.clay { background: #a57360; }
.theme-name { font-family: var(--display); font-size: 25px; margin: 0 0 20px; }
.step-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-editor { padding-top: 20px; border-top: 1px solid var(--line); }
.schedule-editor h3 { font-weight: 500; font-size: 17px; }
.schedule-row { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; gap: 10px; align-items: end; margin-bottom: 15px; }
.schedule-row .editor-field { margin: 0; }
.small-button { min-height: 36px; border: 1px solid #a7b19f; color: var(--forest); background: #fff; border-radius: 5px; padding: 5px 9px; font-size: 12px!important; }
.small-button:hover { background: #edf1e8; }
.small-button.danger { color: #91412d; }
.question-editor { border-top: 1px solid var(--line); padding: 22px 0; }
.question-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.question-heading h3 { font-size: 16px; margin: 0; font-weight: 500; }
.question-actions { display: flex; gap: 5px; }
.check-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.check-label input,.guest-choice input { width: 18px; height: 18px; flex-shrink: 0; }
.option-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.option-row .editor-field { margin-bottom: 12px; }
.option-row > button { margin-top: 14px; }
.photo-file { max-width: 100%; font-size: 13px!important; margin-bottom: 12px; }
.photo-file::file-selector-button { padding: 8px; border: 1px solid #9fa898; border-radius: 5px; background: #fff; color: #263522; margin-right: 10px; }
.photo-file + label { display: none; }
.photo-adjust-frame { aspect-ratio: 3/4; width: 100%; max-width: 240px; position: relative; overflow: hidden; margin: 16px auto 28px; background: #e1e8d9; border: 1px solid #a7b39c; }
.photo-adjust-frame > p { padding: 20px; font-size: 14px; text-align: center; margin-top: 50%; }
.photo-adjust-frame img,.card-photo img { position: absolute; max-width: none; object-fit: fill; transform-origin: center; }
.editor-live-preview { padding: 24px clamp(24px,4vw,64px) 50px; min-width: 0; }
.preview-scope { text-align: center; font-size: 12px; color: #52604c; margin: 0 0 20px; }
#live-card { max-width: 560px; margin: auto; }
.created-card { --card-base: #213c2e; --card-text: #f5efe2; color: var(--card-text); background: var(--card-base); overflow: hidden; font-family: var(--display); }
.created-card.card-rose { --card-base: #533344; }.created-card.card-gold { --card-base: #584624; }.created-card.card-clay { --card-base: #52372e; }
.created-cover { position: relative; isolation: isolate; min-height: 680px; padding: 90px 36px 68px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.created-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(0,0,0,.25),var(--card-base)),url('/media/hero-poster.webp') center/cover; opacity: .8; }
.created-cover::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(245,239,226,.4); pointer-events: none; }
.card-invitation { margin: 0 0 32px; max-width: 34ch; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 2; }
.card-people { font: 400 37px/1.7 var(--display); letter-spacing: -.02em; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 16px; max-width: 100%; overflow-wrap: anywhere; }
.card-people > span { max-width: 100%; }.card-join { font: 400 26px/1.2 Georgia,serif; }
.card-event-title { margin: 0 0 26px; font: 400 16px/1.8 var(--body); overflow-wrap: anywhere; }
.card-event-date { margin: 28px 0 18px; font-size: 19px; line-height: 1.9; }
.card-venue { font: 400 23px/1.8 var(--display); margin: 0 0 10px; overflow-wrap: anywhere; }
.card-address { font: 400 14px/1.9 var(--body); margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-map { text-decoration: underline; font: 400 14px/1.8 var(--body); padding: 8px; display: inline-block; }
.card-photo { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; margin-top: 12px; background: #19261d; }
.card-section { padding: 40px 36px; border-top: 1px solid rgba(245,239,226,.25); }
.card-section h3 { font: 400 25px/1.7 var(--display); margin: 0 0 24px; }
.card-schedule { list-style: none; padding: 0; margin: 0; font: 400 14px/1.8 var(--body); }
.card-schedule li { display: grid; grid-template-columns: 60px 1fr; gap: 20px; margin-bottom: 18px; overflow-wrap: anywhere; }
.guest-form { font-family: var(--body); }.form-disclosure { font-size: 13px; line-height: 1.9; margin-bottom: 24px; }
.guest-question { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.guest-question legend { font: 400 14px/1.9 var(--body); margin-bottom: 10px; overflow-wrap: anywhere; }
.guest-choice { display: flex; gap: 10px; align-items: center; margin: 12px 0; font: 400 14px/1.8 var(--body); overflow-wrap: anywhere; }
.music-slot { min-width: 0; }.music-slot iframe { border: 0; width: 100%; aspect-ratio: 16/9; display: block; }
.editor-view-tabs { display: none; }
.full-card-preview { max-width: 760px; margin: auto; padding: 20px 24px 60px; }
.full-card-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.full-card-preview > header p { font-size: 12px; color: #52604c; max-width: 40ch; margin: 0; }
#full-card { max-width: 600px; margin: auto; }
@media(max-width:900px) {
  .editor-header { padding: 14px 20px; gap: 12px; }.editor-header h1 { font-size: 17px; }
  .editor-introduction { flex-direction: column; padding: 12px 20px; gap: 4px; }
  .editor-view-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px; gap: 8px; }
  .editor-view-tabs button { flex: 1; min-height: 42px; background: #fff; color: var(--forest); border: 1px solid #a8b39f; border-radius: 6px; }
  .editor-view-tabs button[aria-pressed=true] { color: #fff; background: var(--forest); border-color: var(--forest); }
  .editor-workspace { display: block; }.editor-controls { border-right: 0; }.editor-live-preview { display: none; padding: 24px 20px; }
  .editor-workspace.preview-mode .editor-controls { display: none; }.editor-workspace.preview-mode .editor-live-preview { display: block; }
  .created-cover { min-height: 620px; }.card-people { font-size: 33px; }
}
@media(max-width:540px) {
  .editor-header { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px; }.editor-header h1 { grid-column: 1; grid-row: 2; }.editor-header > button { grid-column: 2; grid-row: 1 / span 2; max-width: 150px; font-size: 13px; }
  .editor-home { font-size: 12px; }.editor-panel { padding: 24px 20px; }.editor-step-nav { padding: 16px; gap: 5px; }.editor-step-nav button { font-size: 12px; padding-inline: 8px; }
  .editor-field :is(input,textarea,select) { font-size: 16px; }.editor-inline { gap: 12px; }.schedule-row { grid-template-columns: 120px minmax(0,1fr); }.schedule-row > button { grid-column: 2; justify-self: end; }
  .editor-live-preview { padding: 20px 12px; }.created-cover { padding: 65px 26px 50px; }.card-invitation { font-size: 14px; }.card-people { font-size: 30px; }.card-event-title { font-size: 14px; }.card-event-date { font-size: 17px; }.card-section { padding: 30px 24px; }
  .full-card-preview { padding: 16px 12px 40px; }.full-card-preview > header { align-items: start; flex-direction: column; }.full-card-preview > header p { max-width: none; }
}
