/* Content designs share Velvet's warm canvas, restrained rules and olive actions. */
.vf-dialog { padding: 0; margin: auto; width: min(1180px, calc(100vw - 48px)); max-width: none; height: min(850px, calc(100dvh - 48px)); max-height: none; border: 1px solid var(--seam, #ddd5c8); border-radius: 14px; color: var(--charcoal, #2c2620); background: var(--vellum, #faf7f2); box-shadow: 0 24px 100px #2c262044; font-family: 'DM Sans', sans-serif; }
.vf-dialog::backdrop { background: #2c26208c; backdrop-filter: blur(3px); }
.vf-shell { height: 100%; display: flex; flex-direction: column; }
.vf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 28px 18px; border-bottom: 1px solid var(--seam, #ddd5c8); flex-shrink: 0; }
.vf-eyebrow { color: var(--olive, #4a5240); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; margin-bottom: 5px; }
.vf-head h2 { font: 400 32px/1.1 'Cormorant Garamond', Georgia, serif; margin: 0 0 7px; }
.vf-muted { color: #71675f; font-size: 12px; line-height: 1.5; }
.vf-dialog button, .vf-dialog input, .vf-dialog textarea, .vf-dialog select { font: inherit; }
.vf-dialog button { cursor: pointer; }
.vf-dialog button:disabled { cursor: default; opacity: .45; }
.vf-dialog :focus-visible, .vf-format-actions :focus-visible { outline: 2px solid var(--olive, #4a5240); outline-offset: 3px; }
.vf-icon { border: 1px solid var(--seam, #ddd5c8); background: transparent; width: 36px; height: 36px; border-radius: 50%; color: inherit; flex-shrink: 0; }
.vf-head > .vf-icon { font-size: 26px; line-height: 1; }
.vf-message { font-size: 12px; line-height: 1.5; padding: 10px 28px; color: var(--olive, #4a5240); background: #4a524008; flex-shrink: 0; }
.vf-message:empty { display: none; }
.vf-error { color: #8b2e2e; background: #8b2e2e09; }
.vf-workspace { display: grid; grid-template-columns: minmax(320px, 46%) minmax(0, 1fr); overflow: auto; min-height: 0; flex: 1; }
.vf-workspace[hidden], .vf-dialog [hidden] { display: none !important; }
.vf-edit-panel { padding: 22px 28px 28px; border-right: 1px solid var(--seam, #ddd5c8); overflow-y: auto; }
.vf-design-tools { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 16px; }
.vf-design-tools .vf-field { flex: 1; max-width: 170px; margin: 0; }
.vf-slides-tools { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vf-button { border: 1px solid var(--seam, #ddd5c8); background: transparent; color: inherit; border-radius: 5px; padding: 10px 14px; font-size: 12px !important; line-height: 1.25; font-weight: 500 !important; }
.vf-button:hover:not(:disabled) { background: #4a524009; border-color: #a4a594; }
.vf-primary { background: var(--olive, #4a5240); border-color: var(--olive, #4a5240); color: #faf7f2; }
.vf-primary:hover:not(:disabled) { background: #3b4232; color: #fff; }
.vf-small { padding: 8px 10px; }
.vf-strip { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 16px; scrollbar-width: thin; }
.vf-slide-tab { flex: 0 0 95px; display: flex; flex-direction: column; gap: 8px; text-align: left; border: 1px solid var(--seam, #ddd5c8); border-radius: 5px; background: #ede8df70; color: #71675f; padding: 10px; min-height: 79px; }
.vf-slide-tab span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.vf-slide-number { font: 400 22px/1 Georgia, serif; }
.vf-slide-tab.is-selected { color: var(--olive, #4a5240); border-color: var(--olive, #4a5240); background: #4a52400b; box-shadow: inset 0 0 0 1px var(--olive, #4a5240); }
.vf-fields-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vf-fields-heading h3, .vf-preview-heading h3 { font: 400 23px/1.2 'Cormorant Garamond', Georgia, serif; margin: 0; }
.vf-order { display: flex; gap: 7px; align-items: center; }
.vf-order .vf-icon { width: 31px; height: 31px; }
.vf-field { display: flex; flex-wrap: wrap; font-size: 12px; font-weight: 500; margin-bottom: 17px; gap: 7px; }
.vf-field-hint { margin-left: auto; font-size: 10px; font-weight: 400; color: #71675f; }
.vf-field input, .vf-field textarea, .vf-field select { width: 100%; min-width: 0; padding: 10px; border-radius: 4px; border: 1px solid var(--seam, #ddd5c8); background: #fffdf9; color: inherit; font-size: 13px; line-height: 1.5; }
.vf-field textarea { resize: vertical; min-height: 100px; }
.vf-field-label { font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.vf-photo-help { font-size: 11px; }
.vf-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(67px, 1fr)); gap: 7px; max-height: 188px; overflow-y: auto; margin: 10px 0 16px; padding: 2px; }
.vf-photo-choice { aspect-ratio: 1; padding: 3px; border: 1px solid var(--seam, #ddd5c8); border-radius: 4px; background: transparent; overflow: hidden; }
.vf-photo-choice img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.vf-photo-choice.is-selected { border: 2px solid var(--olive, #4a5240); padding: 2px; }
.vf-no-photo { font-size: 11px !important; color: #71675f; }
.vf-text-button { font-size: 11px !important; background: transparent; border: 0; border-bottom: 1px solid #a89e94; color: #71675f; padding: 2px 0; margin-top: 6px; }
.vf-preview-panel { padding: 24px 30px 28px; background: #ede8df60; overflow-y: auto; }
.vf-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.vf-preview-heading .vf-muted { margin-top: 4px; font-size: 11px; }
.vf-preview { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vf-preview-empty { width: min(100%, 335px); aspect-ratio: 4 / 5; border: 1px solid #ddd5c8; background: #faf7f2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; color: #71675f; }
.vf-preview-empty.is-story { aspect-ratio: 9 / 16; width: min(100%, 270px); }
.vf-preview-mark { font: italic 66px/1 Georgia, serif; color: #aaa18d; margin-bottom: 30px; }
.vf-preview-empty p { font: 400 24px/1.2 'Cormorant Garamond', Georgia, serif; margin-bottom: 12px; color: #4a5240; }
.vf-preview-empty > span:last-child { font-size: 11px; line-height: 1.6; }
.vf-preview-figure { width: min(100%, 350px); margin: 0; }
.vf-preview-figure img { width: 100%; display: block; box-shadow: 0 6px 24px #2c262015; }
.vf-preview-figure figcaption { text-align: center; font-size: 10px; color: #71675f; margin-top: 8px; }
.vf-export-note { max-width: 350px; margin: 20px auto 0; text-align: center; font-size: 11px; color: #71675f; line-height: 1.65; }
.vf-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 16px; border-top: 1px solid var(--seam, #ddd5c8); background: var(--vellum, #faf7f2); flex-shrink: 0; }
.vf-footer .vf-muted { font-size: 11px; }
.vf-footer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.vf-load-error { padding: 25px; }
.vf-format-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-top: 1px solid var(--seam, #ddd5c8); }
.vf-format-actions button { border: 1px solid var(--seam, #ddd5c8); padding: 7px 9px; border-radius: 4px; background: transparent; color: var(--olive, #4a5240); font: 500 11px 'DM Sans', sans-serif; cursor: pointer; }
.vf-format-note { font-size: 10px; color: #71675f; line-height: 1.5; width: 100%; }
.vf-format-badge { display: inline-block; color: #4a5240; background: #4a52400d; padding: 3px 6px; border-radius: 3px; font-size: 10px; margin-top: 4px; }
@media (max-width: 760px) {
  .vf-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .vf-head { padding: 17px 18px 14px; }
  .vf-head h2 { font-size: 28px; }
  .vf-message { padding: 9px 18px; }
  .vf-workspace { display: block; }
  .vf-edit-panel, .vf-preview-panel { padding: 20px 18px; overflow: visible; }
  .vf-edit-panel { border-right: 0; border-bottom: 1px solid var(--seam, #ddd5c8); }
  .vf-footer { flex-direction: column; align-items: stretch; padding: 11px 14px max(14px, env(safe-area-inset-bottom)); gap: 8px; }
  .vf-footer-actions { display: grid; grid-template-columns: auto 1fr 1fr; }
  .vf-footer-actions .vf-button { padding: 10px 8px; }
  .vf-footer .vf-muted { text-align: center; }
  .vf-field input, .vf-field textarea, .vf-field select { font-size: 16px; }
  .vf-preview-heading { align-items: flex-start; }
  .vf-order .vf-icon { width: 36px; height: 36px; }
}
