/* A larger editing canvas, with the invitation's real mobile viewport retained. */
.editor-layout { grid-template-columns: 260px 320px minmax(0,1fr); }
.editor-header { min-height: 76px; }
.editor-settings { padding: 30px 24px; }
.editor-preview { min-width: 0; }
.preview-toolbar { align-items: center; flex-direction: row; padding: 14px 20px; gap: 12px; }
.preview-toolbar > span { display: inline-flex; gap: 8px; align-items: center; color: #4f6946; font-size: 13px; }
.preview-toolbar > span::before { content: ''; width: 6px; height: 6px; background: #637c53; border-radius: 50%; }
.preview-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preview-device-options { display: inline-flex; border: 1px solid #ccd6c1; border-radius: 5px; padding: 2px; }
.preview-toolbar .preview-tools button { padding: 8px 12px; background: transparent; border: 0; border-radius: 4px; min-height: 40px; }
.preview-toolbar .preview-device-options button.active { background: #d9e4ca; }
.preview-zoom-label { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
.preview-zoom-label select { font: 13px var(--sans); padding: 9px 8px; min-height: 44px; border: 1px solid #ccd6c1; border-radius: 4px; background: #f7f9f1; color: #506641; }
[data-preview-scale] { font-size: 12px; color: #68775e; min-width: 34px; }
.phone-stage { padding: 10px 24px 24px; overflow: hidden; }
.phone-frame { max-height: none; border: 1px solid #bcc9b2; border-radius: 12px; background: #faf9f5; transition: none; box-shadow: 0 18px 40px #53664112; }
.phone-frame iframe { max-width: none; transform-origin: top left; }
.phone-camera { display: none; }
.editor-shell.preview-focused .editor-layout { grid-template-columns: 260px minmax(0,1fr); }
.editor-shell.preview-focused .editor-settings { display: none; }
.editor-shell.preview-focused .editor-preview { grid-column: 2; }
.editor-history { display: flex; align-items: center; gap: 4px; }
.editor-history button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 24px!important; line-height: 1; }
.editor-history button:disabled { opacity: .3; }
.editor-document > span { font-size: 12px; }
.sections-label { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.section-order-hint { margin: 0 8px 16px; color: #69785e; font-size: 12px; line-height: 1.7; }
.section-row { min-height: 54px; padding: 4px 6px 4px 0; gap: 1px; }
.section-drag-handle { flex-shrink: 0; width: 32px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #788a67; cursor: grab; touch-action: none; }
.section-drag-handle svg { width: 18px; height: 22px; }
.section-drag-handle:active { cursor: grabbing; }
.section-select { flex: 1; padding-left: 0; gap: 8px; white-space: normal; }
.section-name { min-width: 0; }
.section-row-tools { gap: 4px; }
.section-order { font-size: 11px; }
.move-tools { flex-direction: column; gap: 0; }
.move-tools button { width: 24px; height: 22px; font-size: 12px!important; }
.section-row.is-dragging { opacity: .32; background: #d4dfc8; border: 1px dashed #7f946d; }
.section-row.is-keyboard-moving { outline: 2px solid #6b825b; background: #e2ead9; }
.section-drag-ghost { position: fixed; z-index: 90; margin: 0; pointer-events: none; background: #f6f8f0; border: 1px solid #93a57e; box-shadow: 0 12px 30px #34463833; opacity: .97; }
.is-sorting, .is-sorting * { cursor: grabbing!important; user-select: none; }
@media (min-width:901px) and (max-width:1200px) {
  .editor-layout { grid-template-columns: 236px 280px minmax(0,1fr); }
  .editor-settings { padding-inline: 20px; }
  .editor-shell.preview-focused .editor-layout { grid-template-columns: 236px minmax(0,1fr); }
  .phone-stage { padding-inline: 16px; }
  .preview-toolbar { padding-inline: 14px; }
}
@media (max-width:900px) {
  [data-preview-focus] { display: none; }
  .editor-layout { grid-template-columns: 236px minmax(0,1fr); }
  .preview-toolbar { flex-direction: row; justify-content: space-between; }
  .phone-stage { padding: 8px 12px 12px; }
}
@media (max-width:760px) {
  .editor-layout { display: block; }
  .editor-header { padding: 10px 12px; gap: 8px; }
  .editor-header-actions { gap: 3px; }
  .editor-history { gap: 0; }
  .editor-history button { width: 30px; }
  .editor-document { flex: 1; }
  .editor-header-actions .btn { padding-inline: 10px; }
  .preview-toolbar { padding: 10px 12px; gap: 6px; }
  .preview-toolbar > span { font-size: 12px; }
  .preview-tools { width: 100%; justify-content: space-between; gap: 6px; }
  .preview-toolbar .preview-tools button { padding-inline: 8px; font-size: 12px; }
  .preview-zoom-label > span, [data-preview-scale] { display: none; }
  .preview-zoom-label select { max-width: 105px; }
  .phone-stage { padding: 4px 8px 8px; }
  .phone-frame { border-radius: 8px; }
  .section-drag-handle { width: 44px; min-height: 48px; }
  .section-row { min-height: 62px; }
  .move-tools { flex-direction: row; gap: 2px; }
  .move-tools button { width: 40px; height: 44px; font-size: 14px!important; }
  .section-order { font-size: 12px; }
}
@media (max-width:360px) {
  .editor-header-actions { width: auto; }
  .editor-document { flex-basis: calc(100% - 52px); }
  .editor-header-actions { margin-left: auto; }
  .editor-sections { padding-inline: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .section-row { transition: none; }
}
.automatic-link { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #dbe2d0; border-radius: 5px; background: #fffef9; margin-top: 10px; }
.automatic-link code { font: 14px/1.8 var(--sans); white-space: normal; overflow-wrap: anywhere; word-break: break-all; color: #465d3c; }
.automatic-link .text-link { align-self: flex-start; min-height: 44px; }
.editor-field > small { display: block; margin-top: 8px; }
.publish-checklist p, .publish-state p { font-size: 14px; overflow-wrap: anywhere; }
.publication-quota { font-size: 14px; padding: 12px; background: #edf2e5; border-radius: 4px; }
.publication-policy-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.publication-policy-form > label { display: grid; gap: 8px; font-size: 14px; }
.publication-policy-form input { width: 130px; font-size: 16px; padding: 10px 14px; border: 1px solid #d9dfcf; border-radius: 4px; background: #fffef9; }
.publication-policy-form > p { flex-basis: 100%; font-size: 13px; margin: 0; }

.studio-closing-preview{height:180px;overflow:hidden;border-radius:8px;background:var(--surface,#f4f3ef);margin:8px 0 12px}
.studio-closing-preview img{display:block;width:100%;height:100%;object-fit:cover}

/* Keep the preview edge clean instead of drawing a frame around the invitation. */
.sample-frame,.demo-phone,.editor-preview .phone-frame{border:0;border-radius:0;box-shadow:none}
.demo-phone{padding:0}
.demo-phone>iframe{border-radius:0}

.admin-short-address{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;margin-top:8px}.admin-short-address>span{font-size:13px;overflow-wrap:anywhere}.admin-short-address>input{flex:1;min-width:120px;margin:0}.admin-short-address+small{display:block;margin-top:8px}
