@font-face { font-family: "Clash Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/clash-grotesk-400.woff2) format("woff2"); }
@font-face { font-family: "Clash Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/clash-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/video/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/video/bebas-neue-400.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/video/oswald-500.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/video/playfair-display-600.woff2) format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/video/dm-serif-display-400.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/video/caveat-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
:root {
  --bg: #ecebe7;
  --surface: #f3f4ef;
  --field: #e1dfd9;
  --field-1: #38450f;
  --field-1-ink: #ecebe7;
  --on-photo: #f3f3f0;
  --ink: #2a340b;
  --muted: #535e30;
  --line: #d3d1c8;
  --brand: #38450f;
  --brand-fill: #38450f; /* behind --brand-ink text; --brand is for text and lines */
  --brand-ink: #ecebe7;
  --brand-soft: #dcdfca;
  --ok: #0a6b49;
  --warn: #854400;
  --err: #a81e30;
  --err-fill: #a81e30;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(26, 30, 12, .1), 0 12px 32px rgba(26, 30, 12, .12); /* only for things that really float */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font-display: "Clash Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-display);
  font-synthesis: none; /* the two real weights, never a smeared fake bold */
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15170f; --surface: #1e2116; --field: #23261a; --ink: #ecebe7; --muted: #aeb398; --line: #34382a;
    --brand: #c3cf8e; --brand-fill: #c3cf8e; --brand-ink: #15170f; --brand-soft: #2c3020; --ok: #63cf9f; --warn: #e4ac55; --err: #ff8d99; --err-fill: #b3293b; --shadow: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-fill); display: grid; place-items: center; color: var(--brand-ink); }
.logo-mark::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.400' stroke-linejoin='round' d='M16 6.500 27 16v10H5V16Z M12.700 15.700v6.600h6.600v-6.600Z'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.400' stroke-linejoin='round' d='M16 6.500 27 16v10H5V16Z M12.700 15.700v6.600h6.600v-6.600Z'/%3E%3C/svg%3E") center / 100% no-repeat; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-tabs { display: flex; gap: 4px; margin-left: 12px; margin-right: auto; }
.nav-tab { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav-tab:hover { background: var(--brand-soft); color: var(--ink); } }
.nav-tab[aria-current] { background: var(--brand-soft); color: var(--brand); }
.nav-ico { display: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.nav-right { display: flex; gap: 8px; align-items: center; min-width: 0; }
#nav-credits .credits-chip { white-space: nowrap; }
.activity-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, opacity 150ms ease; white-space: nowrap; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.btn:not([disabled]):active, .chip:active, .fu-send:not(:disabled):active, .fu-seg button:active { transform: scale(.97); }
.btn-primary { background: var(--brand-fill); color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: color-mix(in srgb, var(--brand-fill) 86%, var(--bg)); } }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-secondary:hover { border-color: var(--muted); } }
.btn-ghost { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--brand-soft); } }
.btn.is-off { opacity: .45; }
.ledger.costs td { vertical-align: top; }
.cost-cell { text-align: right; white-space: nowrap; font-weight: 600; }
.cost-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: .9rem; }
.btn-danger { background: transparent; color: var(--err); border-color: var(--line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }

/* before/after compare */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; -webkit-user-select: none; user-select: none; background: #14160e; aspect-ratio: 4 / 3; touch-action: pan-y; }
.compare > .after, .compare > .before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare > .before { clip-path: inset(0 50% 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; cursor: ew-resize; outline: none; }
.compare .handle:focus-visible::after { outline: 3px solid var(--brand); outline-offset: 2px; }
.compare .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.compare .handle::after { transition: scale 160ms var(--ease-out); }
.compare:active .handle::after { scale: .94; }
.compare .tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; }
.compare .tag.l { left: 12px; } .compare .tag.r { right: 12px; }
.compare svg.before, .compare svg.after { position: absolute; inset: 0; width: 100%; height: 100%; }

/* forms */
.auth { min-height: calc(100svh - 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: center; padding: 0; }
.auth::after { content: ""; align-self: stretch; justify-self: stretch; background: url(/images/room-neutral.webp) center 62% / cover no-repeat var(--field); }
.auth .card { width: calc(100% - 32px); max-width: 420px; margin: 32px 16px; padding: 32px; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth::after { display: none; } }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-error { color: var(--err); font-size: .9rem; min-height: 1.4em; margin-top: 10px; }

/* app */
.app-main { padding-top: 32px; padding-bottom: 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.project-card { padding: 0; overflow: hidden; text-decoration: none; display: block; transition: border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .project-card:hover { border-color: var(--brand); } }
.project-card .cover { aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-size: 2rem; }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.project-card .meta { padding: 14px 16px; }
.empty { text-align: center; padding: 64px 24px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 2.5rem; }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone-big { display: block; margin: 8px 0 0; padding: 72px 24px; font-weight: 400; }
.dropzone-big .big { font-size: 2.4rem; margin-bottom: 8px; }
.dropzone-big strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.project-drop { border-radius: var(--radius); outline: 2px dashed transparent; outline-offset: 10px; transition: outline-color .15s; }
.project-drop.drag { outline-color: var(--brand); }
.page-actions { display: flex; gap: 8px; align-items: center; }
.upl-status:not(:empty) { margin-bottom: 12px; font-weight: 600; }
.sel-head { margin-top: 8px; }
.section-title.sel-head h2 { display: inline; margin: 0 10px 0 0; }
.results-hint { margin-top: 24px; }
.page-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); text-align: right; }
.danger-link { color: var(--err); }
.app-main:has(.actionbar:not([hidden])) { padding-bottom: 130px; }
.actionbar:not([hidden]) { animation: bar-in 220ms var(--ease-out); }
.actionbar { position: fixed; z-index: 15; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 40px rgba(20, 18, 40, .25); }
.actionbar-count { flex: none; font-size: .9rem; }
.actionbar-tools { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.actionbar-tools .btn { flex: none; }
.photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); border: 2px solid transparent; cursor: pointer; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.photo .check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: grid; place-items: center; color: #fff; font-size: .8rem; }
.photo.selected .check { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.photo .order { position: absolute; top: 8px; right: 8px; background: var(--brand-fill); color: var(--brand-ink); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: .8rem; }
.photo .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.result { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.result .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.result .thumb img { width: 100%; height: 100%; object-fit: cover; }
.result .info { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }
.badge { display: inline-block; font-size: .8125rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.badge.done { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.processing, .badge.queued { background: var(--brand-soft); color: var(--brand); }
.badge.failed { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.badge.demo { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner.spinner-sm { width: 16px; height: 16px; border-width: 2px; flex: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 14px; }
.section-title h2 { font-size: 1.25rem; margin: 0; }
.banner { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); font-size: .9rem; margin-bottom: 16px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 8, 20, .6); display: grid; place-items: center; z-index: 50; padding: 16px; }
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@starting-style { .toast { opacity: 0; translate: 0 -10px; } }
.toast.out { opacity: 0; transition-duration: 140ms; }
@keyframes bar-in { from { opacity: 0; translate: 0 12px; } }
.modal-bg { animation: fade-in 180ms ease-out; }
.modal { animation: modal-in 200ms var(--ease-out); background: var(--surface); border-radius: 12px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal.wide { max-width: 1000px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); text-transform: capitalize; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; touch-action: manipulation; }
.chip.on { background: var(--brand-fill); color: var(--brand-ink); border-color: var(--brand-fill); }

.toast { transition: opacity 220ms var(--ease-out), translate 220ms var(--ease-out); z-index: 60; position: fixed; top: 76px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--shadow); font-size: .95rem; max-width: calc(100vw - 32px); }
.toast.error { background: var(--err-fill); color: #fff; }

/* guest (demo) bar and form bits */
.guestbar { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.guestbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: .9rem; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.project-card { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 70; padding: 10px 16px; border-radius: 10px; background: var(--brand-fill); color: var(--brand-ink); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.modal:focus, #view:focus, #main:focus, .ed:focus, #sent:focus { outline: none; }
.field-error { margin-top: 6px; color: var(--err); font-size: .875rem; font-weight: 500; }
.field-help { margin: 6px 0 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; top: 0; right: 0; bottom: 0; min-width: 64px; padding: 0 12px; border: 0; border-radius: 0 10px 10px 0; background: none; color: var(--brand); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
input[aria-invalid=true] { border-color: var(--err); }
.legal-head { font-size: 1.17rem; margin-top: 1.5em; }
.pricing { margin: 72px 0; scroll-margin-top: 84px; }
.pricing h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -0.03em; }
.pricing .pack { background: var(--surface); }
.pricing .pack strong { font-size: 1.15rem; }
.pricing .pack span:not(.small) { font-size: 1.5rem; font-weight: 700; }
.footer-cols a { min-height: 24px; }
.back-link { display: inline-flex; align-items: center; min-height: 24px; }
.fu-use { min-height: 24px; }
.result.recent { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: var(--ink); }
.result-label { text-transform: capitalize; }
.result .info > span:last-child:not(.result-label) { flex: none; display: inline-flex; align-items: center; }
/* Portrait photos fill the card's shape instead of stretching it. */
.result .thumb, .project-card .cover { position: relative; overflow: hidden; }
button.thumb { display: grid; width: 100%; padding: 0; border: 0; font: inherit; cursor: pointer; }
button.thumb:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.result .thumb img, .result .thumb video, .project-card .cover img, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-link { display: block; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: .9rem; text-decoration: none; }
.fu-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.fu-more summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.fu-more summary .muted { display: block; font-weight: 400; }
.toast a { margin-left: 8px; color: inherit; font-weight: 700; }
.hero-cta.cta-row.center { margin: 0 0 40px; }
label.btn { margin: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.options { display: grid; gap: 8px; margin: 12px 0; }
.options .check-row { margin: 0; }
.options .check-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check-row.disabled { opacity: .5; cursor: not-allowed; }
.credits-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; text-decoration: none; }
.badge.ai { background: var(--brand-soft); color: var(--brand); }
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger td { padding: 8px 0; border-top: 1px solid var(--line); }
.ledger td:last-child { text-align: right; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 2.4rem; letter-spacing: -0.03em; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.pack { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pack:hover { border-color: var(--brand); } }

/* Furnish & Edit */
.fu { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.fu-label { display: block; margin: 18px 0 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.fu-label .muted { font-weight: 400; }
.fu-side > .fu-label:first-child { margin-top: 0; }
.fu-ask { margin-bottom: 20px; padding: 16px 18px; }
.fu-ask:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.fu-ask .fu-label { margin-top: 0; }
.fu-ask textarea { width: 100%; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; resize: none; outline: none; }
.fu-ask-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fu-ask-row .btn { cursor: pointer; margin: 0; }
.fu-send-cost { margin-left: auto; }
.fu-send { flex: 0 0 40px; height: 40px; border: 0; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); font-size: 1.15rem; cursor: pointer; }
.fu-send:disabled { opacity: .55; cursor: not-allowed; }
.fu-send-cost:empty + .fu-send { margin-left: auto; }
.fu-ref { display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px 3px 3px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-soft); }
.fu-ref img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.fu-ref button { border: 0; background: none; color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.fu-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.fu-seg button { flex: 1 1 auto; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: .85rem; text-transform: capitalize; cursor: pointer; }
.fu-seg button.on { background: var(--ink); color: var(--surface); }
.fu-budget-head { display: flex; justify-content: space-between; align-items: baseline; }
.fu-budget-head label { margin: 0; font: inherit; color: inherit; }
.fu-budget-head output { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--ink); }
#fu-budget { width: 100%; margin: 0; accent-color: var(--brand); }
.fu-budget-ends { display: flex; justify-content: space-between; }
.fu-dz { display: block; margin: 0; padding: 56px 24px; }
.fu-dz-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 8px; color: var(--muted); }
.fu-dz.compact { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; padding: 14px; }
.fu-dz.compact .fu-dz-icon { margin: 0; font-size: 1.1rem; }
.vd-select { width: 100%; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.vd-about { margin: 8px 0 0; }
.vd-warn { margin: 8px 0 0; color: var(--warn); }
.vd-frame { border-radius: var(--radius); background: #000; overflow: hidden; display: flex; justify-content: center; }
.vd-frame.vd-tall { background: #111; }
.vd-frame video, .vd-frame .fu-still, .vd-frame .fu-wait { display: block; width: 100%; }
.vd-frame.vd-tall video, .vd-frame.vd-tall .fu-still, .vd-frame.vd-tall .fu-wait { width: auto; height: min(70vh, 640px); }
.fu-card-img video { width: 100%; height: 100%; object-fit: cover; }
.fu-video .cost-note { margin: 16px 0 0; }
.combine { display: grid; gap: 8px; }
.combine .check-row { margin: 0; }
.combine .check-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.combine-more { margin: 0 0 6px 30px; }
.combine-more .fu-label:first-child { margin-top: 2px; }
.combine-radio { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 400; cursor: pointer; }
.combine-radio input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex: none; }
.fu-note { margin: 10px 0 0; }
.fu-restyle-tip { margin: 2px 0 0; color: var(--warn); }
.fu-restyle { margin: 0; padding: 12px; }
.fu-restyle:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.fu-cap { text-transform: capitalize; }
.fu-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fu-card { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.fu-card.on { border-color: var(--brand); }
.fu-card-img { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; }
.fu-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fu-card-img .spinner { width: 22px; height: 22px; margin: 0; }
.fu-card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 6px; padding: 6px 8px; }
.fu-use { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.fu-go { width: 100%; margin-top: 16px; }
.fu-go:disabled { opacity: .55; cursor: not-allowed; }
.fu-still, .fu-wait { position: relative; border-radius: var(--radius); overflow: hidden; }
.fu-still img, .fu-wait img { width: 100%; height: 100%; object-fit: cover; }
.fu-wait img { filter: brightness(.45); }
.fu-wait > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; }
.fu-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fu-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.fu-thumb { position: relative; flex: 0 0 84px; height: 64px; padding: 0; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--ink); cursor: pointer; }
.fu-thumb.on { border-color: var(--brand); }
.fu-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) {
  /* The button that starts the work stays on screen while the page scrolls. */
  .fu-side { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
}
@media (max-width: 900px) {
  /* One column in the order of the job: photo, what to do with it, then past work. */
  .fu-layout, .fu-video { display: flex; flex-direction: column; gap: 16px; }
  .fu-layout .fu, .fu-main { display: contents; }
  .fu-ask { margin-bottom: 0; }
  #fu-stage, #vd-stage { order: 1; }
  #fu-dz, #vd-dz { order: 2; }
  #fu-rooms, #vd-photos { order: 3; }
  .fu-ask { order: 4; }
  .fu-side { order: 5; }
  #fu-designs, #vd-videos { order: 6; }
  #fu-stage:empty, #vd-stage:empty, #fu-rooms:empty, #vd-photos:empty, #fu-designs:empty, #vd-videos:empty { display: none; }
}

/* Photo editor */
.ed-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(10, 8, 20, .65); color: #fff; }
.ed { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); }
.ed-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ed-title { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.ed-body { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; min-height: 0; }
.ed-panel { min-width: 0; padding: 14px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.ed-panel:last-child { border-right: 0; border-left: 1px solid var(--line); }
.ed-stage { position: relative; min-width: 0; min-height: 0; background: #1c1b22; }
.ed-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ed-stage canvas:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.ed-tabs { display: none; }
.ed-top .btn { gap: 0; }
.ed-lbl { margin-left: 4px; }
.ed-lbl::first-letter { text-transform: none; }
#ed-addedlist .btn { text-transform: capitalize; }
body:has(.ed) .toast { top: auto; bottom: 20px; }
.ed-nudge { display: flex; gap: 6px; margin-bottom: 10px; }
.ed-nudge .btn { flex: 1; }
[aria-pressed=true].btn-secondary { border-color: var(--brand); background: var(--brand-soft); }
.ed-panel .btn { white-space: normal; }
.ed-group { font-size: .9rem; margin: 16px 0 8px; }
.ed-upload { display: block; text-align: center; cursor: pointer; }
.ed-panel > .small { margin: 8px 0 0; }
.ed-lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ed-piece { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .75rem; cursor: grab; }
@media (hover: hover) and (pointer: fine) { .ed-piece:hover { border-color: var(--brand); } }
.ed-piece img { width: 100%; height: 56px; object-fit: contain; }
#ed-obj-name { text-transform: capitalize; }
.ed-fill { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; gap: 6px; white-space: nowrap; }
.ed-fill[hidden] { display: none; }
.ed-objlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 230px; overflow-y: auto; padding: 2px; }
.ed-objthumb { display: grid; grid-template-rows: 44px auto; place-items: center; gap: 2px; min-width: 0; padding: 3px; color: #16151d; border: 2px solid var(--line); border-radius: 8px; background: #e9e7e2; cursor: pointer; }
.ed-objthumb.on { border-color: var(--brand); }
.ed-objthumb img { max-width: 100%; max-height: 44px; }
.ed-objthumb span { width: 100%; overflow: hidden; font-size: .75rem; line-height: 1.2; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.ed-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.ed-swatch { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
#ed-colour-pick { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ed-slider { display: block; font-size: .85rem; margin-bottom: 10px; }
.ed-slider input { display: block; width: 100%; accent-color: var(--brand); }
.ed-check { display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 400; }
.ed-check input { width: auto; flex: none; accent-color: var(--brand); }
.ed button:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 900px) {
  /* The photo first, then one full-width panel at a time. */
  .ed-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.15fr) auto minmax(0, 1fr); }
  .ed-stage { grid-row: 1; }
  .ed-tabs { grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface); }
  .ed-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
  .ed-tabs button[aria-pressed=true] { color: var(--brand); border-bottom-color: var(--brand); }
  .ed-panel, .ed-panel:last-child { grid-row: 3; border: 0; }
  .ed[data-panel=add] .ed-panel-edit, .ed[data-panel=edit] .ed-panel-add { display: none; }
  .ed-lib { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ed-title { max-width: none; flex: 1; min-width: 0; }
  .ed-top { flex-wrap: nowrap; padding: 6px 8px; gap: 4px; }
}
@media (max-width: 560px) {
  .ed-lbl, .ed-title { display: none; }
  #ed-close { margin-right: auto; }
}
/* A phone on its side has no height to spare, so the panel sits beside the photo. */
@media (max-height: 500px) and (orientation: landscape) {
  .ed-body { grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); grid-template-rows: auto minmax(0, 1fr); }
  .ed-stage { grid-column: 1; grid-row: 1 / -1; }
  .ed-tabs { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; border-top: 0; background: var(--surface); }
  .ed-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
  .ed-tabs button[aria-pressed=true] { color: var(--brand); border-bottom-color: var(--brand); }
  .ed-panel, .ed-panel:last-child { grid-column: 2; grid-row: 2; border: 0; border-left: 1px solid var(--line); }
  .ed[data-panel=add] .ed-panel-edit, .ed[data-panel=edit] .ed-panel-add { display: none; }
  .ed-top { flex-wrap: nowrap; padding: 4px 8px; }
}

@media (max-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links .hide-sm { display: none; }
  .wrap { padding: 0 16px; }
}

/* Phones and small tablets: the main sections become a tab bar under the thumb. */
@media (max-width: 820px) {
  .nav-tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; gap: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .nav-tab { flex-direction: column; gap: 1px; padding: 4px 2px; border-radius: 10px; font-size: .75rem; }
  .nav-tab[aria-current] { background: none; }
  .nav-ico { display: block; font-size: 1.15rem; line-height: 1; height: 1.25em; }
  .hide-sm { display: none; }
  .wrap.app-main { padding-top: 20px; padding-bottom: 104px; }
  .app-main:has(.actionbar:not([hidden])) { padding-bottom: 170px; }
  .actionbar { bottom: 74px; flex-direction: column; align-items: stretch; gap: 6px; width: calc(100vw - 24px); padding: 10px 12px; }
  .activity-text { display: none; }
  .activity-pill { padding: 5px 8px; }
}

/* Phones: the nav scrolls sideways rather than widening the page. */
@media (max-width: 560px) {
  .nav-links { min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav-links .btn { padding-inline: 8px; font-size: .85rem; white-space: nowrap; }
}

/* Anything tapped with a finger gets room for it. */
@media (pointer: coarse), (max-width: 820px) {
  .ve-swatch { width: 44px; height: 44px; }
  .btn, .chip, .fu-seg button, .fu-use, .back-link, a.credits-chip, .activity-pill, .logo { min-height: 44px; }
  .fu-seg { gap: 8px; }
  .fu-more summary { padding-block: 4px; min-height: 44px; }
  .fu-send { flex-basis: 44px; height: 44px; }
  input:not([type=checkbox], [type=radio], [type=range], [type=color]), select, .ed-slider input { min-height: 44px; }
  .ed-top .btn { min-width: 44px; padding-inline: 10px; }
  .ed-swatch { width: 44px; height: 44px; }
  #ed-colour-pick { width: 44px; height: 44px; }
  .field-help a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-cols a { display: flex; align-items: center; min-height: 44px; margin: 0; }
}

/* Motion is cut for people who ask for less. The spinner stays, because it says work is happening. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

/* Real names can be very long: they wrap inside their card instead of being cut off. */
.project-card .meta, .page-head > *, .result .info, .fu-card-foot, .modal-head h3, .activity-pill { min-width: 0; overflow-wrap: anywhere; }

/* Video editor */
.ve { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ve-main { position: sticky; top: 84px; display: grid; gap: 12px; }
.ve-side { display: grid; gap: 16px; min-width: 0; }
.ve-side h2 { font-size: 1.125rem; margin: 0; }
.ve-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ve-stage-wrap { display: flex; justify-content: center; background: #14160e; border-radius: var(--radius); overflow: hidden; }
.ve-stage { position: relative; width: 100%; overflow: hidden; background: #000; }
.ve-stage[data-ratio="9:16"], .ve-stage[data-ratio="1:1"] { width: auto; height: min(62svh, 620px); }
.ve-layer, .ve-card { position: absolute; inset: 0; width: 100%; height: 100%; }
.ve-layer { overflow: hidden; background: #000; will-change: opacity; }
.ve-media, .ve-back { position: absolute; inset: 0; width: 100%; height: 100%; }
.ve-back { filter: blur(10px) brightness(.82); transform: scale(1.12); }
.ve-card { z-index: 50; pointer-events: none; }
.ve-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #d9dbcf; }
.ve-transport { display: flex; align-items: center; gap: 12px; }
.ve-transport .btn { flex: none; min-width: 72px; }
.ve-transport input { flex: 1; min-width: 0; padding: 0; accent-color: var(--brand); }
.ve-transport output { flex: none; font-variant-numeric: tabular-nums; }
.ve-finished { margin-top: 8px; }
.ve-finished h2 { font-size: 1.25rem; }
.ve-making { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px; border-radius: var(--radius); background: var(--brand-soft); }
.ve-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ve-item { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.ve-item.on { border-color: var(--brand); }
.ve-pick { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 6px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.ve-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ve-thumb { flex: none; width: 64px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--field); }
.ve-thumb img, .ve-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ve-name { display: grid; min-width: 0; line-height: 1.25; }
.ve-name strong { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ve-moves { display: flex; flex: none; padding-right: 4px; }
.ve-moves .btn { padding-inline: 10px; }
.ve-detail { display: grid; gap: 4px; margin-top: 14px; }
.ve-trim { display: grid; gap: 6px; }
.ve-trim label { display: flex; justify-content: space-between; margin: 6px 0 0; font-weight: 500; }
.ve-trim input { padding: 0; accent-color: var(--brand); }
.ve-trim output { font-variant-numeric: tabular-nums; font-weight: 500; }
.ve-remove { justify-self: start; margin-top: 12px; }
label.btn.ve-logo { margin: 0; cursor: pointer; }
.ve-logo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ve-tabs { margin: 12px 0 4px; }
.ve-range { padding: 0; accent-color: var(--brand); }
.ve-side label output { float: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.ve-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ve-swatch { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.ve-swatch.on { outline: 2px solid var(--brand); outline-offset: 2px; }
.ve-swatch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ve-box { position: absolute; z-index: 60; min-width: 0; padding: 0; border: 1px dashed rgba(255, 255, 255, .85); outline: 1px dashed rgba(14, 16, 10, .7); outline-offset: 0; background: none; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.ve-box::before { content: ""; position: absolute; inset: -12px; } /* a bigger target for a thumb */
.ve-box:active { cursor: grabbing; }
.ve-box:focus-visible { border: 2px solid #fff; outline: 2px solid var(--brand); }
.ve-guide { position: absolute; z-index: 55; background: #e3b866; pointer-events: none; }
.ve-guide.v { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.ve-guide.h { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.ve-safe { position: absolute; z-index: 54; top: 12%; bottom: 20%; left: 0; right: 12%; border: 1px dashed #e3b866; pointer-events: none; }
.ve-safe-note { margin: 0; }
.ve-note { margin: 12px 0 0; }
.ve-note:empty { display: none; }
.ve-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ve-source { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.ve-source img, .ve-source video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--field); }
.ve-source span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ve-source:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ve-lib-head { margin: 18px 0 8px; font-family: var(--font-display); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .ve-source:hover img, .ve-source:hover video { opacity: .85; } .ve-pick:hover strong { text-decoration: underline; } }
@media (max-width: 900px) {
  .ve { grid-template-columns: minmax(0, 1fr); }
  .ve-main { position: static; }
  .ve-stage[data-ratio="9:16"], .ve-stage[data-ratio="1:1"] { height: min(52svh, 520px); }
}
.ve-side .fu-seg button { text-transform: none; }

/* Home: each tool shown by what it makes. */
.home-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.02; letter-spacing: -.03em; }
.tasks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.task { position: relative; display: block; min-height: 268px; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--field); color: #f3f3f0; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.task:active { transform: scale(.985); }
.task:focus-visible, .result.recent:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.task-wide { grid-column: span 3; }
.task img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.task::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 10, .86), rgba(14, 16, 10, .58) 34%, rgba(14, 16, 10, 0) 62%); }
.task-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 18px 20px; }
.task-text strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.task-line { font-size: .9375rem; line-height: 1.35; }
.task-price { justify-self: start; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: #f3f3f0; color: #2a340b; font-size: .8125rem; font-weight: 500; }
.result { border: 0; background: none; }
.result .thumb { border-radius: var(--radius); overflow: hidden; }
.result .info { padding: 8px 2px 4px; }
.guestbar .wrap { padding-top: 8px; padding-bottom: 8px; }
.guestbar a { font-weight: 500; }

/* A new project: one clear place to start, and what comes next. */
.start { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; align-items: stretch; }
.start-drop { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--field-1); color: var(--field-1-ink); }
.start-photo { flex: 1 1 200px; min-height: 200px; width: 100%; object-fit: cover; object-position: 50% 62%; }
.start-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 40px); }
.start-drop h2 { margin: 0 0 12px; font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.start-drop p { max-width: 44ch; margin: 0; }
.start-pick { margin-top: 24px; background: var(--on-photo); color: #2a340b; }
.start-limits { margin-top: 14px !important; font-size: .875rem; opacity: .86; }
.start-next { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius); background: var(--surface); }
.start-next h2 { margin: 0 0 16px; font-size: 1.25rem; }
.start-next ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.start-next li { display: flex; align-items: center; gap: 14px; }
.start-next img { flex: none; width: 112px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--field); }
.start-next li > span { display: grid; gap: 1px; min-width: 0; }
.start-next strong { font-weight: 500; }
.project-drop.drag .start-drop { outline: 3px dashed var(--on-photo); outline-offset: -12px; }
@media (hover: hover) and (pointer: fine) { .start-pick:hover { background: #fff; } }
@media (max-width: 900px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .start-photo { display: none; }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task, .task-wide { grid-column: span 1; min-height: 176px; }
  .task:first-child, .task:last-child { grid-column: span 2; min-height: 208px; }
  .task-line { display: none; }
  .task:first-child .task-line, .task:last-child .task-line { display: block; }
  .task-text { padding: 12px 14px; }
  .task-text strong { font-size: 1.125rem; }
}

/* A page for each tool: a real demo first, then the way in. */
.td-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: 8px 0 24px; }
.td-head h1 { margin: 0 0 6px; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.02; letter-spacing: -.03em; }
.td-head p { margin: 0; max-width: 56ch; font-size: 1.125rem; }
.td-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.td-action .task-price { margin: 0; background: var(--brand-soft); color: var(--brand); padding: 4px 12px; }
.td-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-pair.td-tall { max-width: 760px; margin-inline: auto; }
.td-frame { position: relative; aspect-ratio: 800 / 533; overflow: hidden; border-radius: var(--radius); background: var(--field); }
.td-tall .td-frame { aspect-ratio: 3 / 4; }
.td-wide { aspect-ratio: 16 / 9; }
.td-frame img, .td-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.td-wide img { transition: opacity 400ms ease; }
.td-wide img.off { opacity: 0; }
.td-pill { position: absolute; left: 14px; top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--on-photo); color: #2a340b; font-size: 1.0625rem; font-weight: 500; line-height: 1.1; }
.td-toggle { position: absolute; right: 14px; top: 14px; }
.td-compare { max-width: 900px; margin-inline: auto; aspect-ratio: 994 / 742; }
.td-compare > .after, .td-compare > .before { object-fit: cover; height: 100%; }
.td-shot img { width: 100%; height: auto; border-radius: var(--radius); }
.td-how { margin-top: 32px; }
.td-how h2 { font-size: 1.5rem; margin: 0 0 12px; }
.td-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0 0 0 1.25em; }
.td-how li { padding-right: 16px; font-size: 1.0625rem; }
.td-how li::marker { font-family: var(--font-display); font-weight: 500; color: var(--brand); }
.td-how p { margin: 16px 0 0; max-width: 72ch; }
@media (max-width: 700px) {
  .td-pair:not(.td-tall) { grid-template-columns: minmax(0, 1fr); }
  .td-how ol { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .td-action, .td-action .btn { width: 100%; }
  .td-pill { font-size: .9375rem; }
}
.improve-hint { margin: 0 0 4px; font-size: 1.0625rem; }
.improve-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.improve-grid .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.improve-panel h2 { margin: 0 0 14px; font-size: 1.25rem; }
.improve-panel .check-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.improve-panel .check-row strong { font-weight: 500; }
.improve-foot { position: sticky; bottom: -22px; z-index: 1; margin: 0 -22px; padding: 14px 22px 22px; background: var(--surface); }
.improve-panel .cost-note { margin-top: 0; }
.improve-panel .fu-go { margin-top: 12px; }
.improve-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.improve-also .small { width: 100%; }
@media (min-width: 901px) { .improve-panel { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; } }
@media (max-width: 900px) { .improve-grid { grid-template-columns: minmax(0, 1fr); } .improve-grid .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.result-why { padding: 0 2px 6px; color: var(--err); font-size: .875rem; line-height: 1.35; }
.improve-tip { margin: 8px 0; padding: 10px 12px; border-radius: 6px; background: var(--field); font-size: .9375rem; line-height: 1.4; }
.improve-use-ai { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fu-example { aspect-ratio: 800 / 533; margin-bottom: 16px; }
.fu-example > .after, .fu-example > .before { object-fit: cover; height: 100%; }
#vd-stage .td-wide { margin-bottom: 16px; }
