/* Owner editing stays guided: a few good choices, real photos and clear controls. */
[data-presentation-editor] { min-width: 0; }
.design-section { margin: 0 0 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.design-section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.design-step-number { display: grid; place-items: center; width: 30px; min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 650; }
.design-section-heading h3 { margin: 1px 0 6px; font: 650 18px/1.35 Inter, 'Segoe UI', Arial, sans-serif; letter-spacing: -.025em; }
.design-section-heading p, .gallery-heading p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.style-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.style-preset { position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 9px 9px 12px; background: var(--paper); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.style-preset:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.style-preset:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
.style-preset input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.style-preset strong { display: block; font-size: 14px; margin: 10px 3px 3px; }
.style-preset small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 3px; font-weight: 400; }
.style-sample { display: block; height: 76px; position: relative; background: #efede5; border-radius: 5px; overflow: hidden; }
.style-sample i { position: absolute; width: 30%; height: 5px; left: 10px; top: 12px; background: #a5aba0; border-radius: 2px; }
.style-sample b { position: absolute; width: 38%; height: 24px; left: 10px; top: 30px; border-block: 8px solid #344439; }
.style-sample em { position: absolute; width: 35%; height: 46px; right: 9px; top: 20px; background: #a5aba0; border-radius: 5px; }
.sample-bold { background: #203029; }
.sample-bold i { background: #a0b69e; }
.sample-bold b { border-color: #f4f3e9; width: 43%; }
.sample-bold em { background: #64806a; border-radius: 1px; }
.sample-minimal { background: #fff; border: 1px solid #e2e5df; }
.sample-minimal i { height: 3px; top: 10px; }
.sample-minimal b { height: 18px; top: 25px; border-block-width: 6px; width: 32%; }
.sample-minimal em { height: 35px; top: 24px; background: #e3e7df; border-radius: 0; }
.hero-photo-preview { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.hero-photo-preview img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; background: var(--soft); }
.hero-photo-preview [hidden] { display: none; }
.hero-photo-preview > div { display: grid; justify-items: center; align-content: center; min-height: 150px; padding: 25px 18px; text-align: center; }
.hero-photo-preview > div > span { font-size: 24px; color: var(--blue); margin-bottom: 5px; }
.hero-photo-preview strong { font-size: 15px; }
.hero-photo-preview p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.photo-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.work-photo-card .back-button { min-height: 44px; }
.photo-upload-button { position: relative; display: inline-flex; min-height: 44px; padding: 10px 15px; justify-content: center; align-items: center; overflow: hidden; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.photo-upload-button:hover { color: var(--blue); background: var(--accent-soft); }
.photo-upload-button:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.photo-upload-button:has(input:disabled) { opacity: .55; cursor: default; }
.photo-upload-button input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: inherit; }
.gallery-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 27px 0 13px; }
.gallery-heading h4 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.gallery-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.work-photo-list { display: grid; gap: 12px; }
.work-photo-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.work-photo-card > img { width: 104px; height: 104px; object-fit: cover; border-radius: 6px; }
.work-photo-card .field { margin-bottom: 6px; font-size: 14px; }
.work-photo-card .field input { margin-top: 6px; min-height: 46px; padding: 10px 12px; border-color: var(--control-border); background: var(--surface); font-size: 16px; }
.work-photo-card .back-button { font-size: 14px; min-width: 44px; min-height: 44px; padding: 9px 4px; }
.gallery-upload { margin-top: 14px; }
.photo-help { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 13px 0 0; }
.photo-status { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.photo-status:empty { display: none; }
.photo-status.error { color: var(--danger); }
.design-sections .field-check { min-height: 44px; margin: 10px 0; padding: 8px 0; font-size: 14px; gap: 11px; cursor: pointer; }
.design-sections .field-check input { width: 19px; height: 19px; min-width: 19px; accent-color: var(--blue); }
.design-advanced { border-top: 1px solid var(--line); margin-bottom: 28px; padding-top: 18px; }
.design-advanced summary { cursor: pointer; min-height: 44px; font-size: 14px; line-height: 1.6; color: var(--ink); padding: 10px 0; }
.design-advanced[open] summary { margin-bottom: 18px; }
.settings-design-preview { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.settings-design-preview summary { cursor: pointer; min-height: 44px; padding: 16px 18px; font-size: 14px; font-weight: 600; }
.settings-design-preview iframe { display: block; width: 100%; height: 620px; border: 0; background: var(--surface); border-block: 1px solid var(--line); }
.settings-design-preview p { font-size: 14px; line-height: 1.6; color: var(--muted); padding: 0 18px; margin: 12px 0; }
/* Keep the first editing pass short; photos and section switches are optional. */
.design-core { padding: 23px 0; margin-bottom: 0; }
.design-core > h3 { margin: 0 0 6px; font-size: 18px; }
.design-hint { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.design-core .field { margin-bottom: 18px; }
.design-core .style-presets { gap: 9px; }
.style-presets legend { display: block; padding: 0 0 10px; font-size: 14px; font-weight: 600; }
.style-preset { display: grid; grid-template-columns: 23px minmax(0, 1fr); align-content: center; gap: 3px 8px; min-height: 70px; padding: 12px 10px; }
.style-preset .style-sample { grid-row: span 2; align-self: center; width: 23px; height: 29px; border-radius: 3px; }
.style-sample :is(i,b,em) { display: none; }
.style-preset strong, .style-preset small { margin: 0; }
.style-preset strong { font-size: 14px; }
.style-preset small { font-size: 12px; }
.design-optional { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; background: var(--paper); }
.design-optional > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; padding: 16px; font-size: 14px; font-weight: 600; list-style: none; }
.design-optional > summary::-webkit-details-marker { display: none; }
.design-optional > summary::after { content: '+'; color: var(--muted); margin-left: auto; font-size: 20px; line-height: 1; font-weight: 400; }
.design-optional[open] > summary::after { content: '−'; }
.design-optional summary small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.optional-summary { font-size: 11px; color: var(--muted); font-weight: 400; }
.design-optional-body { border-top: 1px solid var(--line); padding: 18px 16px; }
.design-optional-body .design-hint { margin-bottom: 16px; }
.design-optional .hero-photo-preview { margin-top: 8px; }
.design-optional .hero-photo-preview[hidden], .photo-empty[hidden] { display: none; }
.photo-empty { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.design-optional .photo-actions { margin-top: 12px; }
.design-optional .gallery-heading { margin-top: 22px; }
.design-optional + .design-advanced { margin-top: 21px; }
@media (max-width: 440px) {
  .style-presets { gap: 7px; }
  .style-preset { padding: 7px 7px 10px; }
  .style-preset small { font-size: 12px; }
  .style-preset { grid-template-columns: 1fr; gap: 2px; padding: 10px 8px; min-height: 66px; }
  .style-preset .style-sample { display: none; }
  .style-sample b { left: 6px; width: 40%; border-block-width: 6px; height: 20px; }
  .style-sample i { left: 6px; }
  .style-sample em { right: 6px; width: 32%; height: 37px; }
  .work-photo-card { grid-template-columns: 76px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .work-photo-card > img { width: 76px; height: 92px; }
  .photo-actions { gap: 10px; }
  .design-section-heading { gap: 10px; }
  .settings-design-preview iframe { height: 540px; }
}

.wizard-pane > [data-launch-availability]{margin:16px 0 28px}
.draft-resume { margin: 0 0 24px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.draft-resume p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.draft-resume .back-button { color: var(--blue); min-height: 44px; padding: 8px 0; margin-top: 4px; text-align: left; }
.business-picker { border: 1px solid var(--line); border-radius: 9px; padding: 0 16px; margin: 24px 0; background: var(--surface); }
.business-picker > summary { min-height: 44px; padding: 16px 0; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.business-picker .trade-choices { margin: 0 0 16px; gap: 9px; }
.business-picker .trade-choice { padding: 15px 13px; }
.business-picker .trade-choice strong { font-size: 14px; }
.business-picker .trade-choice span { font-size: 11px; line-height: 1.5; }
.business-extras { margin: 12px 0 26px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.business-extras > summary { min-height: 44px; padding: 16px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.business-extras > summary span { color: var(--muted); font-size: 11px; margin-left: 7px; font-weight: 400; }
.business-extras-body { padding: 18px 16px 0; border-top: 1px solid var(--line); }
.founding-offer-note { font-size: 14px; font-weight: 600; color: var(--blue); line-height: 1.6; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); margin: 20px 0 10px; }
[data-presentation-editor] :is(button,input,summary):focus-visible,.settings-design-preview > summary:focus-visible,.draft-resume button:focus-visible,.business-picker > summary:focus-visible,.business-extras > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#setup-review dd { white-space: pre-line; }
@media(max-width:600px) {
  .design-section-heading p,.gallery-heading p,.hero-photo-preview p,.photo-help,.photo-status,.design-hint,.photo-empty,.settings-design-preview p,.draft-resume p,.founding-offer-note,.design-sections .field-check { font-size: 16px; line-height: 1.6; }
  .owner-main .settings-form :is(.design-section-heading p,.gallery-heading p,.hero-photo-preview p,.photo-status) { font-size: 16px; line-height: 1.6; }
  .photo-actions { gap: 8px; }
}
@media(max-width:480px) {
  .business-picker { padding: 0 12px; }
  .business-picker .trade-choice { padding: 13px 10px; }
  .business-picker .trade-choice svg { width: 28px; height: 28px; }
}
