:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #182230;
  background: #f6f7f9;
  font-size: 14px;
  line-height: 1.6;
  --ink: #182230;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #005bff;
  --navy: #132d50;
  --gold: #edc676;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
button, .download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid #dce1e8; border-radius: 8px; background: #fff; color: #344054; font-size: 13px; font-weight: 550; cursor: pointer; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease); }
button:hover, .download:hover { border-color: #b8c5d8; background: #f7f9fc; }
button:active, .download:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #80acff; outline-offset: 4px; }
.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 3px 8px #005bff12; }
.primary:hover { background: #004bd6; border-color: #004bd6; box-shadow: 0 5px 16px #005bff24; }
.primary:disabled { background: var(--blue); border-color: var(--blue); box-shadow: none; }
.text-button { background: transparent; border-color: transparent; }
.app-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; padding: 15px max(28px, calc((100vw - 1280px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: block; width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--navy); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 19px; line-height: 1.4; letter-spacing: -.4px; }
.brand-copy small { margin-top: 2px; color: #667085; font-size: 11px; letter-spacing: .6px; }
.header-caption { color: #98a2b3; font-size: 12px; letter-spacing: 1.4px; }
nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; color: #667085; font-size: 12px; }
body[data-view="workspace"] .header-caption { display: none; }
main { width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 36px 0 48px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .9fr); gap: clamp(32px, 5vw, 78px); align-items: center; min-height: calc(100vh - 194px); }
.intro { position: relative; overflow: hidden; isolation: isolate; min-height: 636px; padding: 32px 38px 25px; border: 1px solid #263f5e; border-radius: 24px; background: radial-gradient(ellipse at 95% 15%, #315275 0, transparent 49%), radial-gradient(ellipse at 0 100%, #243c59 0, transparent 53%), #102743; color: #fff; animation: enter .8s var(--ease) both; }
.intro::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .22; background-image: linear-gradient(#dce7f014 1px, transparent 1px), linear-gradient(90deg, #dce7f014 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(120deg, transparent 20%, #000); pointer-events: none; }
.intro-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.eyebrow { display: block; color: #667085; font-size: 10px; font-weight: 650; letter-spacing: 2px; }
.intro .eyebrow { color: #bdd0e3; font-size: 10px; letter-spacing: 2.1px; }
.studio-edition { padding: 3px 9px; border: 1px solid #acc3dc40; border-radius: 5px; color: #cfdeef; font-size: 10px; letter-spacing: 1px; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { position: relative; z-index: 2; margin: 30px 0 17px; font-size: clamp(38px, 4.1vw, 57px); font-weight: 600; line-height: 1.24; letter-spacing: -2px; }
.intro h1 span { color: var(--gold); }
.intro-description { margin-bottom: 0; color: #b4c5d9; font-size: 14px; line-height: 1.85; }
.visual-stage { position: relative; height: 278px; margin: 9px -14px 6px; }
.stage-orbit { position: absolute; inset: 43px 0 6px; border: 1px solid #b3c9e318; border-radius: 50%; transform: rotate(-13deg); }
.stage-orbit::after { content: ""; position: absolute; inset: 18px -13px; border: 1px solid #b3c9e310; border-radius: 50%; }
.preview-card { position: absolute; display: flex; flex-direction: column; margin: 0; padding: 12px; border: 1px solid #fff9; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 36px #0615244f; transition: transform .5s var(--ease); animation: card-enter 1s var(--ease) both; }
.preview-label { display: flex; justify-content: space-between; align-items: center; color: #716b62; font-size: 8px; letter-spacing: 1px; }
.preview-label span:last-child { font-size: 9px; letter-spacing: 0; }
.preview-image { flex: 1; min-height: 0; overflow: hidden; }
.preview-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-card figcaption { margin-top: 5px; color: #5e5a52; font-size: 10px; letter-spacing: .5px; }
.preview-main { z-index: 3; left: 32%; top: 9px; width: 37%; height: 246px; background: #f4ede0; transform: rotate(-5deg); animation-delay: .12s; }
.preview-main .preview-image img { animation: product-drift 7s 1s ease-in-out infinite; }
.preview-detail { z-index: 2; left: 1%; top: 58px; width: 34%; height: 193px; background: #d9e0e4; transform: rotate(-12deg); animation-delay: .22s; }
.preview-detail .preview-image img { height: 180%; max-width: none; transform: scale(1.42) translate(-9%, -12%); }
.preview-detail figcaption { color: #48555d; }
.preview-scene { z-index: 1; right: 0; top: 24px; width: 33%; height: 208px; background: #e2e9e3; transform: rotate(9deg); animation-delay: .32s; }
.preview-scene .preview-image { background: radial-gradient(ellipse at 65% 5%, #fff9, transparent 70%); }
.preview-scene .preview-image img { transform: scale(.87) translateY(12%); }
.visual-stage:hover .preview-main { transform: translateY(-5px) rotate(-2deg); }
.visual-stage:hover .preview-detail { transform: translate(-5px, 0) rotate(-14deg); }
.visual-stage:hover .preview-scene { transform: translate(6px, -3px) rotate(12deg); }
.image-count { position: absolute; z-index: 4; right: 0; bottom: 5px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #fff3; border-radius: 10px; background: #193956f2; box-shadow: 0 8px 24px #04142233; animation: enter .8s .5s var(--ease) both; }
.count-icon { font-size: 25px; line-height: 1; color: var(--gold); }
.image-count strong, .image-count small { display: block; }
.image-count strong { font-size: 13px; font-weight: 550; letter-spacing: 1px; }
.image-count small { margin-top: 1px; color: #b5c7da; font-size: 9px; }
.showcase-note { position: absolute; top: 2px; left: 12px; color: #839eb8; font-size: 9px; }
.steps { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 19px; border-top: 1px solid #b9cfe32b; color: #d0deeb; font-size: 11px; }
.steps span { display: flex; align-items: center; gap: 8px; }
.steps b { color: var(--gold); font-size: 10px; font-weight: 500; }
.steps i { color: #5c7791; font-style: normal; }
.intro-footnote { margin: 16px 0 0; color: #8fa9c2; font-size: 10px; letter-spacing: .1px; }
/* Decorative details stay inside the login artwork and never capture input. */
.studio-signature { display: flex; align-items: center; gap: 18px; height: 44px; margin-top: 16px; pointer-events: none; }
.signature-line { flex: 1; height: 1px; position: relative; overflow: hidden; background: linear-gradient(90deg, #c6d4e000, #c6d4e04d); }
.signature-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #efcf94, transparent); transform: translateX(-100%); animation: signature-light 7s ease-in-out infinite; }
.signature-palette { display: flex; gap: 6px; }
.signature-palette i { width: 15px; height: 22px; border: 1px solid #ffffff26; border-radius: 4px; background: #f4ede0; transform: rotate(8deg); }
.signature-palette i:nth-child(2) { background: #d9e0e4; transform: rotate(3deg); }
.signature-palette i:nth-child(3) { background: #a7bcaf; transform: rotate(-3deg); }
.signature-palette i:nth-child(4) { background: #d8b879; transform: rotate(-8deg); }
.signature-spark { color: var(--gold); font-size: 29px; animation: signature-glow 6s ease-in-out infinite; }
@keyframes signature-light { 0%, 20% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
@keyframes signature-glow { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.06); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.auth-form { padding: 32px 30px; border: 0; background: transparent; animation: enter .8s .1s var(--ease) both; }
.form-eyebrow { display: block; margin-bottom: 8px; color: #667085; font-size: 12px; letter-spacing: .2px; }
h2 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; line-height: 1.4; margin-bottom: 18px; }
.auth-form h2 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.form-description { font-size: 13px; color: #98a2b3; margin-bottom: 26px; }
.auth-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 9px; background: #ebeff4; }
.auth-modes button { min-height: 36px; border: 0; background: transparent; border-radius: 6px; color: #667085; font-size: 13px; }
.auth-modes button[aria-pressed="true"] { background: #fff; color: #1a3353; box-shadow: 0 1px 4px #10274314; }
label { display: block; margin: 18px 0; color: #344054; font-size: 13px; font-weight: 550; }
input, textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #d5dce5; border-radius: 8px; background: #fff; margin-top: 8px; color: var(--ink); outline: 0; font-size: 14px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #98a2b3; font-size: 12px; opacity: 1; }
input:focus, textarea:focus { border-color: #669bff; box-shadow: 0 0 0 3px #005bff0c; }
input:disabled, textarea:disabled { background: #f9fafb; color: #667085; }
textarea { resize: vertical; min-height: 84px; }
.field-hint { display: block; font-size: 11px; line-height: 1.7; font-weight: 400; color: #98a2b3; margin-top: 6px; }
#account-hint { margin: -12px 0 12px; }
#registration-code { animation: enter .3s var(--ease); }
.auth-submit { position: relative; width: 100%; min-height: 46px; margin-top: 6px; font-size: 14px; border-radius: 8px; background: var(--navy); border-color: var(--navy); box-shadow: 0 4px 10px #132d5015; }
.auth-submit::after { content: "→"; position: absolute; right: 18px; font-weight: 400; color: #d8e2ee; transition: transform .2s; }
.auth-submit:hover { background: #1e426c; border-color: #1e426c; box-shadow: 0 6px 16px #132d5025; }
.auth-submit:hover::after { transform: translateX(3px); }
.auth-submit[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.auth-submit:disabled { background: var(--navy); border-color: var(--navy); cursor: wait; opacity: .7; }
.link { display: block; width: 100%; border: 0; background: transparent; color: #667085; font-size: 12px; font-weight: 400; padding: 13px 0; margin: 10px 0 0; }
.link:hover { background: transparent; color: var(--blue); }
.auth-help { display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.auth-help p { font-size: 11px; color: #98a2b3; line-height: 1.8; margin: 0; }
.help-mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-top: 3px; border: 1px solid #b9c1cc; border-radius: 50%; color: #98a2b3; font-size: 9px; font-family: Georgia, serif; }
.quiet { color: #98a2b3; font-size: 12px; line-height: 1.8; }
.error { color: #b42318; font-size: 12px; font-weight: 400; line-height: 1.65; white-space: pre-wrap; }
.error:empty { display: none; }
#auth-error:not(:empty) { padding: 10px 12px; background: #fef3f2; border: 1px solid #fee4e2; border-radius: 7px; }
.site-footer { display: flex; justify-content: space-between; width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 0 0 22px; color: #98a2b3; font-size: 10px; }
.site-footer span:first-child { letter-spacing: 1.8px; }
#workspace { animation: enter .5s var(--ease) both; }
#workspace[data-mode="detail"] > .page-heading { display: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: 29px; letter-spacing: -.7px; font-weight: 600; margin: 7px 0 9px; line-height: 1.4; }
.membership-summary { color: #667085; font-size: 12px; margin: 0; }
.page-heading > button { min-height: 43px; padding: 10px 20px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.project-card { display: block; position: relative; padding: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; background: #fff; box-shadow: 0 2px 4px #18223003; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; }
.project-card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 10px 24px #1822300a; border-color: #bdcce0; }
.project-card > img { display: block; width: 100%; height: 250px; padding: 16px; object-fit: contain; background: #eff2f5; transition: transform .5s var(--ease); }
.project-card:hover > img { transform: scale(1.035); }
.card-copy { padding: 18px; }
.card-copy strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; color: var(--ink); font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.card-copy p { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #667085; margin: 10px 0 0; }
.card-copy p::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #98a2b3; }
.project-card[data-status="completed"] .card-copy p::before { background: #12b76a; }
.project-card[data-status="generating"] .card-copy p::before, .project-card[data-status="planning"] .card-copy p::before { background: var(--blue); animation: breathe 1.8s ease-in-out infinite; }
.notice { margin: 0 0 20px; padding: 13px 16px; background: #eef4ff; color: #245795; border: 1px solid #d9e6fb; border-radius: 8px; font-size: 13px; animation: enter .3s var(--ease); }
.empty { display: grid; justify-items: center; align-content: center; min-height: 320px; padding: 42px 24px; border: 1px dashed #ccd5e2; border-radius: 14px; text-align: center; grid-column: 1 / -1; background: #fff8; }
.empty::before { content: "+"; display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border: 1px solid #dfe6f0; border-radius: 13px; background: #fff; color: #8095af; font-size: 26px; font-weight: 300; }
.empty h2 { font-size: 19px; margin-bottom: 9px; }
.empty p { color: #98a2b3; font-size: 12px; margin-bottom: 0; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.project-top > button:first-child { background: transparent; border-color: transparent; padding-left: 0; color: #667085; }
.danger { color: #b42318; }
button.danger:hover { border-color: #fecdca; background: #fff6f5; }
.project-heading { margin: 0 0 18px; }
.project-heading h1 { margin-bottom: 8px; font-size: 24px; overflow-wrap: anywhere; }
.project-heading p { color: #667085; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.project-sidebar { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.project-results { min-width: 0; }
.project-sidebar .references { gap: 8px; margin: 10px 0 0; }
.project-sidebar .references img { width: 57px; height: 68px; }
.project-sidebar .prep { padding: 18px 0 0; margin: 20px 0 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.project-sidebar .actions { gap: 8px; }
.project-sidebar .prep .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.project-sidebar .prep .actions button { width: 100%; }
.project-results .shots { margin: 0; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; }
.project-sidebar .prep + .actions { padding-top: 16px; border-top: 1px solid var(--line); }
.project-sidebar .prep + .actions > span { width: 100%; }
.reference-caption { color: #98a2b3; font-size: 11px; margin-bottom: 8px; }
.references { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 24px; }
.references img { display: block; width: 84px; height: 98px; padding: 4px; border: 1px solid #e3e8ef; border-radius: 8px; object-fit: contain; background: #fff; }
.prep { margin: 24px 0 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.prep label { margin: 0 0 18px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions > span { color: #98a2b3; font-size: 12px; margin-right: 4px; }
.prep + .actions button { min-height: 32px; padding: 5px 12px; color: #667085; font-size: 11px; }
.status-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #667085; margin: 20px 0 8px; }
.prep[data-working="true"] .status-line::before { content: ""; flex: 0 0 11px; width: 11px; height: 11px; border: 1.5px solid #dbe5f5; border-top-color: #4978b3; border-radius: 50%; animation: spin .9s linear infinite; }
progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #edf1f7; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #edf1f7; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; transition: width .6s var(--ease); }
progress::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; margin-top: 26px; }
.shot { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .25s, border-color .25s; }
.shot:hover { box-shadow: 0 5px 20px #18223008; border-color: #c5d2e3; }
.shot-image { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #eff2f5; }
.shot-placeholder { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; background: #f3f5f8; color: #98a2b3; font-size: 12px; }
.shot-placeholder::before { content: ""; display: block; width: 26px; height: 32px; border: 1.5px solid #cbd4df; border-radius: 4px; }
.shot[data-state="generating"] .shot-placeholder::before, .shot[data-state="running"] .shot-placeholder::before, .shot[data-state="submitted"] .shot-placeholder::before { width: 26px; height: 26px; border: 2px solid #dbe5f5; border-top-color: #4978b3; border-radius: 50%; animation: spin 1s linear infinite; }
.shot-body { padding: 16px; }
.shot-body h3 { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 550; line-height: 1.7; margin: 0 0 12px; }
.shot-index { color: #98a2b3; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.shot-body .download { min-height: 32px; padding: 5px 12px; font-size: 11px; }
.shot-body .error { margin: 12px 0 0; }
.footer-note { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; }
dialog { max-width: 590px; width: calc(100% - 32px); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 16px; max-height: 90vh; overflow: auto; color: var(--ink); box-shadow: 0 24px 80px #10182833; }
dialog[open] { animation: dialog-enter .25s var(--ease); }
dialog::backdrop { background: #10274370; backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-head h2 { margin: 0; }
.dialog-head button { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.dialog-head .form-eyebrow { font-size: 10px; margin-bottom: 4px; }
.member-detail { padding: 14px 16px; background: #eef4ff; border: 1px solid #dce8ff; border-radius: 8px; color: #254f87; font-size: 13px; }
.upload-field { padding: 16px; border: 1px dashed #cbd5e2; border-radius: 9px; background: #f9fafc; }
input[type="file"] { padding: 0; border: 0; background: transparent; font-size: 12px; }
input[type="file"]::file-selector-button { padding: 7px 12px; margin-right: 10px; border: 1px solid #d4dce7; border-radius: 6px; background: #fff; color: #344054; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-enter { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes product-drift { 50% { translate: 0 -5px; } }
@media (min-width: 1450px) { .auth-form { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1fr); gap: 24px; }
  .intro { padding: 27px 27px 23px; min-height: 606px; }
  .intro h1 { font-size: 44px; }
  .auth-form { padding: 24px 12px; }
  .visual-stage { height: 260px; margin: 14px -9px 8px; }
  .preview-main { height: 229px; }
  .preview-detail { height: 179px; }
  .preview-scene { height: 192px; }
  .preview-card { padding: 9px; }
  .preview-label { font-size: 6px; letter-spacing: .6px; }
  .preview-card figcaption { font-size: 8px; letter-spacing: 0; }
  .steps { font-size: 10px; gap: 6px; }
  .steps span { gap: 5px; }
  .image-count { padding: 10px 12px; }
}
@media (max-width: 800px) {
  .app-header { padding: 13px 20px; min-height: 74px; gap: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 17px; }
  .header-caption { font-size: 10px; letter-spacing: .5px; }
  main { width: calc(100% - 40px); padding: 24px 0 32px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .95fr); gap: 18px; }
  .intro { min-height: 570px; padding: 24px 22px; border-radius: 18px; }
  .intro h1 { font-size: 37px; letter-spacing: -1.5px; }
  .intro-description { font-size: 12px; }
  .intro-top .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .studio-edition { font-size: 8px; }
  .visual-stage { height: 240px; }
  .preview-main { left: 24%; width: 45%; height: 215px; }
  .preview-detail { width: 36%; top: 55px; height: 165px; }
  .preview-scene { width: 37%; height: 175px; }
  .image-count { bottom: -3px; padding: 9px 10px; }
  .image-count strong { font-size: 11px; }
  .image-count small { font-size: 8px; }
  .steps { flex-wrap: wrap; justify-content: flex-start; column-gap: 10px; }
  .steps i { display: none; }
  .intro-footnote { font-size: 9px; }
  .auth-form { padding: 24px 8px; }
  .auth-form h2 { font-size: 26px; }
  .auth-modes { margin-bottom: 20px; }
  .projects { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .project-sidebar .prep .actions { display: flex; }
  .project-sidebar .prep .actions button { width: auto; }
  .project-results .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { gap: 5px; }
  nav button { padding: 7px 10px; min-height: 34px; font-size: 11px; }
  .account-name { display: none; }
  .site-footer { width: calc(100% - 40px); }
}
@media (max-width: 650px) {
  .header-caption { display: none; }
  .app-header { flex-wrap: wrap; }
  main { width: calc(100% - 32px); padding-top: 16px; }
  .auth-layout { display: flex; flex-direction: column; gap: 0; min-height: auto; }
  .intro { order: 2; width: 100%; min-height: 0; padding: 22px 24px 20px; margin-top: 16px; }
  .intro h1 { margin: 22px 0 12px; font-size: 38px; }
  .intro-description { line-height: 1.7; }
  .visual-stage { height: 233px; max-width: 410px; margin: 17px auto 8px; }
  .preview-main { width: 39%; left: 31%; height: 209px; }
  .preview-detail { width: 34%; height: 164px; }
  .preview-scene { width: 33%; height: 179px; }
  .steps { justify-content: space-between; padding-top: 16px; }
  .steps i { display: block; }
  .intro-footnote { margin-top: 12px; }
  .auth-form { order: 1; width: 100%; padding: 20px 14px 18px; }
  .auth-form h2 { font-size: 28px; }
  .auth-help { margin-top: 12px; }
  .site-footer { width: calc(100% - 32px); padding-top: 12px; }
  .page-heading { gap: 14px; padding-bottom: 22px; margin-bottom: 22px; align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .page-heading > button { min-height: 38px; padding: 8px 13px; font-size: 11px; margin-top: 16px; }
  .page-heading .eyebrow { font-size: 8px; }
  .membership-summary { font-size: 10px; }
  .projects { gap: 12px; }
  .project-card > img { height: 180px; padding: 8px; }
  .card-copy { padding: 12px; }
  .card-copy strong { font-size: 12px; }
  .card-copy p { font-size: 9px; }
  .prep { padding: 16px; }
  .actions { gap: 6px; }
  .actions button { font-size: 11px; padding: 8px 11px; }
  .shots { gap: 12px; }
  .shot-body { padding: 12px; }
  .shot-body h3 { font-size: 12px; gap: 6px; }
  .shot-body .download { font-size: 10px; }
  .shot-placeholder { font-size: 10px; }
  dialog { padding: 24px 20px; }
}
@media (max-width: 370px) { .steps { gap: 6px; font-size: 9px; } .steps span { gap: 4px; } .preview-card figcaption { font-size: 7px; } .intro { padding-right: 20px; padding-left: 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .visual-stage:hover .preview-main { transform: rotate(-5deg); }
  .visual-stage:hover .preview-detail { transform: rotate(-12deg); }
  .visual-stage:hover .preview-scene { transform: rotate(9deg); }
}
/* One image per turn shares the studio's brand, spacing and motion. */
.studio-modes{display:flex;gap:6px;margin:0 0 30px;padding:5px;border:1px solid #dae2e9;border-radius:14px;background:#edf2f7;width:fit-content}
.studio-modes button{background:transparent;border:0;border-radius:10px;padding:12px 20px;color:#53657a;font-weight:650}
.studio-modes button[aria-pressed=true]{background:#fff;color:#132d50;box-shadow:0 3px 12px #17335312}
.studio-modes span{font-size:11px;font-weight:400;margin-left:8px;color:#708196}
.single-studio{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;min-height:660px}
.chat-sidebar{border-right:1px solid #dde5ed;padding-right:22px;display:flex;flex-direction:column;gap:18px}
.chat-sidebar-head{display:grid;gap:18px}.chat-sidebar-head button{text-align:left}.chat-sidebar .quiet{margin-top:auto}
.chat-list{display:grid;align-content:start;gap:6px;max-height:600px;overflow:auto}
.chat-list-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:transparent;border:0;color:#53657a;padding:13px 12px;border-radius:10px;min-width:0}
.chat-list-item[aria-pressed=true]{background:#e2ebf5;color:#132d50}
.chat-main{min-width:0;display:flex;flex-direction:column;border:1px solid #dae2e9;border-radius:22px;background:#fff;box-shadow:0 12px 35px #102d5007;overflow:hidden}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 28px;border-bottom:1px solid #e8edf2}
.chat-heading h1{font-size:22px;margin:7px 0 0;word-break:break-word}.chat-heading button{flex-shrink:0}
.chat-messages{height:470px;overflow:auto;padding:26px 28px;scroll-behavior:smooth;overscroll-behavior:contain}
.chat-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#526880}
.chat-empty h2{font-size:30px;color:#183455;letter-spacing:-1px;margin:20px 0 12px}.chat-empty p{max-width:360px;line-height:1.8}
.chat-turn{display:grid;gap:18px;margin-bottom:28px}.chat-user{justify-self:end;max-width:85%;padding:18px 22px;border-radius:18px 18px 4px 18px;background:#edf3fa;color:#183455}
.chat-message-label{display:block;color:#7890a7;font-size:11px;letter-spacing:.04em;margin-bottom:10px}
.chat-user p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.75}
.chat-inline-references{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.chat-inline-references img{width:72px;height:72px;object-fit:cover;border-radius:8px}
.chat-result{justify-self:start;max-width:85%;min-width:180px}.chat-result .download{display:block;width:fit-content;margin-top:12px}
.chat-output{display:block;max-width:100%;max-height:420px;object-fit:contain;object-position:left;border-radius:12px;border:1px solid #e4eaf0}
.chat-state{font-size:14px;color:#526880}.chat-working::before{content:'';display:inline-block;width:7px;height:7px;margin:0 9px 2px 0;border-radius:50%;background:#557fae;animation:chat-pulse 1.6s ease-in-out infinite}
.chat-composer{border-top:1px solid #e4eaf0;padding:20px 26px;background:#fafcfe}.chat-prompt-label{font-size:12px;color:#6a7d94;margin-bottom:8px}
.chat-composer textarea{width:100%;min-height:86px;resize:vertical;max-height:250px;line-height:1.7;border-color:#dde5ee;background:#fff}
.chat-composer-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.chat-attach{display:flex;align-items:center;position:relative;font-size:13px;color:#345477;cursor:pointer;padding:9px 0;margin:0}
.chat-attach span{color:#92a1b2;font-size:11px;margin-left:8px}.chat-attach input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.chat-attach:focus-within{outline:2px solid #597fae;outline-offset:3px;border-radius:4px}
.chat-ratio-label{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;font-size:12px;color:#6a7d94}.chat-ratio-label select{padding:9px 10px;border:1px solid #dae2e9;border-radius:9px;background:#fff;color:#345477;font:inherit;max-width:130px}
.chat-composer .references img{width:64px;height:64px}.chat-composer .references:empty{display:none}.chat-cost{font-size:11px;margin:14px 0 0;line-height:1.7}
@keyframes chat-pulse{50%{opacity:.25;transform:scale(.7)}}
@media(max-width:850px){.single-studio{grid-template-columns:minmax(0,1fr);gap:18px}.chat-sidebar{border:0;padding:0;gap:10px}.chat-sidebar-head{display:flex;align-items:center;justify-content:space-between}.chat-list{display:flex;overflow-x:auto;max-height:none;gap:6px}.chat-list-item{flex:0 0 auto;max-width:180px}.chat-sidebar>.quiet{display:none}.chat-messages{height:440px}.chat-composer-controls{gap:8px}.chat-ratio-label{margin-left:auto}}
@media(max-width:520px){.studio-modes{width:100%;margin-bottom:20px}.studio-modes button{flex:1;padding:11px 8px;font-size:13px}.studio-modes span{display:block;margin:3px 0 0}.chat-heading{padding:18px}.chat-heading h1{font-size:19px}.chat-messages{padding:20px 16px;height:400px}.chat-composer{padding:16px}.chat-user,.chat-result{max-width:95%}.chat-empty h2{font-size:25px}.chat-composer-controls>.primary{width:100%;margin-top:5px}.chat-ratio-label{margin-left:0}.chat-cost{font-size:10px}}
@media(prefers-reduced-motion:reduce){.chat-working::before{animation:none}.chat-messages{scroll-behavior:auto}}

.chat-heading>div{min-width:0}.chat-reuse{margin-top:12px;font-size:12px;color:#536b85}.chat-result .download{display:inline-block;margin-right:12px}

.capture-connection-panel { margin-bottom: 24px; }
.capture-connection-panel p { max-width: 760px; line-height: 1.7; }
.capture-connection-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border, #dde3ec); }
.capture-connection-panel button { margin: 4px 6px 4px 0; }
