:root { color-scheme: light; --ink: #202821; --muted: #59645e; --line: #d4dbd6; --soft: #f4f6f4; --green: #305b4d; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; font-size: 16px; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #287eaa; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 650; }
h2 { font-size: 20px; line-height: 1.3; }
input, textarea, select { min-width: 0; width: 100%; border: 1px solid #b8c4bc; background: #fff; border-radius: 6px; padding: 11px 12px; color: var(--ink); min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
small, .muted { font-size: 13px; line-height: 1.5; color: var(--muted); }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.optional { color: var(--muted); font-weight: 400; }
.bar { background: #202520; color: #fff; border-bottom: 1px solid #384439; }
.bar .wrap { max-width: 1300px; margin: auto; padding: 12px 32px; display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.header-name { font-size: 14px; margin-left: 14px; }
.bar .bar-cta { margin-left: auto; }
.header-contact { display: grid; place-items: center; color: #fff; border: 1px solid #798279; border-radius: 6px; width: 44px; height: 44px; }
.bar .nav-menu summary { border-radius: 6px; background: transparent; box-shadow: none; letter-spacing: 0; font-weight: 650; }
.bar .nav-panel { left: 0; right: auto; border-radius: 8px; }
.page { max-width: 1300px; margin: auto; padding: 28px 32px 36px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.title-row .muted { margin-top: 8px; }
.draft-tools { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.project-layout { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 48px; align-items: start; }
.brief-form { min-width: 0; }
.chosen-look { padding: 0 0 20px; }
.chosen-look-heading { display: flex; align-items: center; gap: 12px; }
.chosen-look-heading>div { flex: 1; min-width: 0; }
.chosen-look-heading h2 { font-size: 16px; overflow-wrap: anywhere; margin-top: 3px; }
.chosen-look-heading img { width: 80px; height: 64px; object-fit: cover; border-radius: 4px; }
.chosen-look-heading .icon-button { flex-shrink: 0; }
.chosen-look>p { margin-top: 10px; }
.chosen-look summary { font-size: 13px; font-weight: 600; padding: 10px 0; cursor: pointer; color: var(--green); }
.chosen-look dl { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.5; }
.chosen-look dt { color: var(--muted); }
.chosen-look dd { margin: 0; overflow-wrap: anywhere; }
.form-section { padding: 20px 0; border-top: 1px solid var(--line); }
.chosen-look[hidden]+.form-section { padding-top: 0; border-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.question-title { font-size: 16px; line-height: 1.5; }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-option { display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: left; font-size: 14px; font-weight: 550; line-height: 1.3; }
.service-option svg { color: #69776c; }
.service-option[aria-pressed=true] { background: #edf4ef; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); color: #244d3e; }
.service-option[aria-pressed=true] svg { color: var(--green); }
.more-projects { margin-top: 12px; }
.more-projects summary, .preferences summary { font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; min-height: 32px; padding: 6px 0; }
.more-projects[open] summary { margin-bottom: 7px; }
.custom-field { margin-top: 14px; }
.dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.look-description { font-size: 14px; line-height: 1.5; margin-top: 8px; }
#look-section { scroll-margin-top: calc(var(--site-header-height, 72px) + 16px); }
#look-section .chosen-look { padding: 16px 0 0; }
.finish-examples { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 8px; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); text-align: left; font-size: 14px; font-weight: 600; }
.finish-examples img { width: 76px; height: 64px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.finish-examples span { flex: 1; }
.finish-examples svg { margin-right: 4px; }
body.finish-open { overflow: hidden; }
.finish-dialog { width: min(620px, calc(100% - 24px)); height: min(900px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; overflow: hidden; }
.finish-dialog[open] { display: flex; flex-direction: column; }
.finish-dialog::backdrop { background: #17211ccc; }
.finish-dialog .dialog-head { flex: 0 0 auto; }
.finish-dialog .dialog-head h2 { font-size: 18px; }
.finish-dialog .icon-button { flex-shrink: 0; }
.stamp-picker { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stamp-picker p:not(:empty) { padding: 12px 16px; margin: 0; font-size: 14px; }
.stamp-picker iframe { border: 0; width: 100%; flex: 1; min-height: 0; }
.broom-example { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.broom-example img { display: block; width: 100%; height: min(62dvh, 650px); object-fit: contain; background: var(--soft); }
.broom-example figcaption { padding-top: 12px; }
.broom-example p { margin-top: 6px; }
.preferences { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.preferences label { margin-top: 12px; }
.preferences .muted { margin-top: 12px; }
.notes-field { margin-top: 16px; }
.primary { background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: 6px; min-height: 50px; padding: 12px 16px; font-size: 15px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 12px; line-height: 1.35; }
.primary:hover { background: #224637; }
.secondary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.text-button { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--green); font-size: 13px; min-height: 32px; padding: 4px; }
.form-actions { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.form-actions .primary { width: 100%; }
.form-actions .muted { text-align: center; margin-top: 10px; }
.form-actions>.text-button { display: block; margin: 8px auto 0; }
.form-actions.has-preview { display: flex; flex-direction: column; gap: 8px; }
.form-actions.has-preview .review-design { order: -2; }
.form-actions.has-preview .status { order: -1; margin: 0; }
.photo-workspace>.review-design { width: 100%; margin: 0 0 18px; }
.photo-workspace { scroll-margin-top: calc(var(--site-header-height, 72px) + 20px); }
.generation-progress { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 12px; border-block: 1px solid var(--line); }
.generation-progress>div { flex: 1; min-width: 0; }
.generation-progress strong { font-size: 14px; }
.generation-progress p { margin-top: 4px; font-size: 12px; }
.generation-progress>svg { color: var(--green); }
.generation-elapsed { min-width: 4ch; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.ai-consent { margin-top: 20px; font-size: 12px; line-height: 1.5; }
.ai-consent .check { align-items: start; }
.ai-consent .check input { margin-top: 2px; }
.ai-consent>a { display: inline-block; margin: 5px 0 0 26px; }
.preview-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.preview-toggle { display: inline-flex; background: var(--soft); padding: 3px; border-radius: 6px; }
.preview-toggle button { border: 0; background: transparent; border-radius: 4px; padding: 10px 16px; font-size: 13px; font-weight: 600; min-height: 40px; }
.preview-toggle button[aria-pressed=true] { background: #fff; box-shadow: 0 1px 4px #20382822; }
#preview-disclaimer { margin-bottom: 16px; }
.revision-section { padding: 16px 0; margin-bottom: 16px; border-block: 1px solid var(--line); }
.revision-section>p { margin-top: 8px; }
.revision-section form { display: grid; gap: 14px; margin-top: 12px; }
.revision-section .check { align-items: start; }
.revision-section .check input { margin-top: 2px; }
.revision-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.revision-actions .primary { flex: 1; }
.privacy-notice { max-width: 780px; }
.privacy-notice h1, .privacy-notice h2 { margin: 28px 0 16px; }
.privacy-notice p { margin: 16px 0; line-height: 1.65; }
.status { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.status:empty { display: none; }
.status.error { color: #a12e24; }
.photo-workspace { position: sticky; top: calc(var(--site-header-height) + 24px); min-width: 0; }
.photo-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo-heading h2 { font-size: 16px; }
.photo-label { font-size: 12px; padding: 5px 8px; background: var(--soft); color: var(--muted); border-radius: 4px; }
.project-image { position: relative; width: 100%; aspect-ratio: 4/3; background: #eef1ee; overflow: hidden; border-radius: 8px; }
/* Keep the image inside the frame instead of letting its intrinsic grid size overflow. */
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
.project-image:not(.has-photo) img { object-position: 50% 40%; }
.project-image.has-photo { background: #e9eeeb; aspect-ratio: var(--photo-aspect, 4/3); max-height: min(52svh, 480px); }
.project-image.has-photo img { object-fit: contain; }
.photo-caption { padding: 12px 0; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.photo-caption strong { font-size: 14px; }
.photo-caption p { margin-top: 4px; }
.photo-actions { display: flex; gap: 8px; align-items: center; }
.upload-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.upload-bar .secondary { flex-shrink: 0; }
.photo-footnote { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.selected-brief { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }
.selected-brief strong { font-size: 15px; }
.selected-brief span { color: var(--muted); overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.review-dialog, .reset-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 8px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #13291e33; }
.review-dialog::backdrop, .reset-dialog::backdrop { background: #17211ccc; }
.dialog-head { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-head .muted { margin-top: 4px; }
.dialog-body { padding: 20px 22px; }
.review-summary { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
.review-summary dt { color: var(--muted); }
.review-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#contact-form { display: grid; gap: 16px; padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--line); }
#contact-form .check { align-items: start; }
#contact-form .check input { margin-top: 2px; }
.honeypot { position: absolute; left: -10000px; }
.reset-dialog .dialog-body { display: grid; gap: 16px; }
.reset-actions { display: flex; justify-content: flex-end; gap: 8px; }
.file-input { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); }
.noscript { padding: 20px; line-height: 1.6; background: var(--soft); }
@media(min-width:900px) {
  .bar .nav-menu { margin-right: auto; }
  .bar .bar-cta { flex: 1; }
  .header-name { margin-left: auto; }
  .brief-form { grid-column: 1; grid-row: 1; }
  .photo-workspace { grid-column: 2; grid-row: 1; }
}
@media(max-width:899px) {
  .page { padding: 22px 24px 28px; }
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 600px; margin: auto; }
  .photo-workspace { position: static; grid-row: 1; }
  .brief-form { grid-row: 2; }
  .photo-heading { margin-bottom: 8px; }
  .project-image { aspect-ratio: 16/10; }
  .photo-caption { padding: 8px 0; }
  .photo-caption p { display: none; }
  .upload-bar { padding-top: 12px; }
  .photo-footnote { margin-top: 8px; }
  .selected-brief { display: none; }
  .title-row { max-width: 600px; margin: 0 auto 20px; }
  .draft-tools>span { display: none; }
  .bar .wrap { padding: 10px 24px; }
  .header-name { display: none; }
  .title-row h1 { font-size: 28px; }
  .title-row .muted { font-size: 13px; }
  .form-actions { position: sticky; bottom: 0; z-index: 4; background: #fff; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 14px #ffffffdd; }
  .form-actions .muted { font-size: 12px; margin-top: 6px; }
  .footer { max-width: 600px; margin: 24px auto 0; }
  .bar .nav-menu { position: absolute; top: 50%; left: 60px; transform: translateY(-50%); }
  .bar .nav-panel { position: absolute; top: calc(100% + 20px); left: -60px; right: auto; width: min(330px, calc(100vw - 40px)); transform: none; }
  .review-summary { grid-template-columns: 112px minmax(0, 1fr); }
}
@media(max-width:440px) {
  .bar .wrap { padding: 10px 16px; }
  .page { padding: 20px 16px 16px; }
  .service-option { font-size: 13px; padding: 10px; gap: 8px; }
  .photo-label { font-size: 11px; }
  .upload-bar { align-items: start; }
  .upload-bar small { font-size: 11px; max-width: 145px; }
  .upload-bar .secondary { font-size: 13px; padding: 10px; }
  .dialog-head { padding: 14px 16px; }
  .dialog-body { padding: 16px; }
  .title-row h1 { font-size: 26px; }
  .title-row { gap: 8px; }
  .footer { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:no-preference) {
  .generation-progress>svg { animation: preview-spin 1.2s linear infinite; }
  @keyframes preview-spin { to { transform: rotate(360deg); } }
  button { transition: background .15s, border-color .15s; }
  dialog[open] { animation: appear .15s ease-out; }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
