/* English homepage and workspace. */
.hero h1{font-size:clamp(42px,5.5vw,72px);letter-spacing:-2.6px;margin:12px 0}
.hero-subtitle{max-width:650px;margin-inline:auto;font-size:15px;line-height:1.75}
.hero>.eyebrow{letter-spacing:1.2px}
.header .desktop-nav{gap:24px;margin-left:24px}
.header .dropdown{width:210px}
.section-heading>p{max-width:370px;font-size:12px;line-height:1.9}
.section-heading h2,.center-heading h2,.faq-heading h2{line-height:1.12;letter-spacing:-1.4px}
.modes-section{scroll-margin-top:100px}
.mode-feature{align-items:stretch}
.mode-feature .comparison{min-height:460px;height:100%;aspect-ratio:auto}
.mode-feature .feature-example-copy{padding:34px 36px;min-width:0}
.mode-feature .feature-example-copy h3{font-size:34px;line-height:1.2;margin:18px 0 15px}
.mode-feature .feature-example-copy .mode-subtitle{font-size:15px;line-height:1.7;color:#5b5266;margin:0 0 15px;max-width:none}
.mode-feature .feature-example-copy .mode-description{font-size:13px;line-height:1.95;color:#81778c;margin:0;max-width:none}
.mode-feature .feature-example-copy .text-link{margin-top:22px}
.mode-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.mode-copy-card{display:flex;flex-direction:column;align-items:flex-start;padding:28px 30px;border:1px solid #e6deed;background:#fff;border-radius:14px;scroll-margin-top:100px}
.mode-copy-card h3{font-size:22px;font-weight:600;letter-spacing:-.5px;margin-bottom:12px}
.mode-copy-card .mode-subtitle{font-size:14px;line-height:1.75;color:#5b5266;margin-bottom:15px}
.mode-photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-self:stretch;margin:0 0 16px}
.mode-photo-pair > div{position:relative;overflow:hidden;border-radius:8px;background:#eee9f2}
.mode-photo-pair img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.mode-photo-label{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:5px;background:#241f2bd9;color:#fff;font-size:10px;font-weight:600}
@media(max-width:650px){.mode-photo-label{position:static;display:block;padding:5px 8px;border-radius:0;background:#f4effb;color:#534267}}
.mode-copy-card .mode-description{font-size:13px;line-height:1.95;color:#81778c}
.examples-section .usecase-title h3{font-size:16px}
.examples-section .usecase>p{font-size:12px;line-height:1.8;max-width:32em}
.steps h3{font-size:19px}.steps p{max-width:280px;margin-inline:auto;font-size:13px;line-height:1.85}
.faq-heading>p:last-child{font-size:13px}
.faq-list summary{font-size:14px;line-height:1.6;gap:15px}
.faq-list summary svg{flex-shrink:0}
.faq-list details>p{font-size:13px;line-height:1.95;max-width:none}
.bottom-cta h2{max-width:720px;margin-inline:auto;font-size:clamp(32px,4vw,49px);line-height:1.2;letter-spacing:-1.3px}
.bottom-cta .positioning-copy{max-width:690px;margin:22px auto 24px;font-size:13px;line-height:1.9}
.footer-main{gap:35px}.footer-main>div>a,.footer-main>div>button{line-height:1.7}
/* Keep the marketing comparison independent of the workspace comparison layers. */
.mode-feature .comparison .compare-original{background:transparent;clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.mode-feature .comparison .compare-divider{left:var(--split)}
.mode-feature .comparison .compare-label{top:16px;bottom:auto;max-width:40%;font-size:10px}
.mode-feature .comparison .before{left:16px;right:auto}
.mode-feature .comparison .after{right:16px;left:auto}
@media(max-width:1100px){.mode-feature .feature-example-copy{padding:28px}.mode-feature .feature-example-copy h3{font-size:29px}.header .desktop-nav{gap:18px;margin-left:5px}}
@media(max-width:900px){.header .desktop-nav{gap:14px;font-size:12px}.mode-feature .comparison{min-height:480px}.mode-feature .feature-example-copy{padding:24px}.mode-copy-card{padding:24px}}
@media(max-width:650px){.hero h1{font-size:44px;letter-spacing:-1.8px}.hero-subtitle{font-size:13px;line-height:1.8;max-width:340px}.header .nav-actions .small{padding-inline:9px}.section-heading>p{font-size:12px}.mode-feature{grid-template-columns:1fr}.mode-feature .comparison{height:auto;min-height:0;aspect-ratio:1/1}.mode-feature .feature-example-copy{padding:25px 22px}.mode-copy-grid{grid-template-columns:1fr;gap:14px;margin-top:14px}.mode-copy-card{padding:23px}.mode-copy-card h3{font-size:22px}.mode-copy-card .mode-description,.mode-feature .feature-example-copy .mode-description{font-size:13px;line-height:1.9}.steps h3{font-size:18px}.faq-list summary{font-size:13px}.bottom-cta h2{font-size:34px}.footer-main{gap:28px}}
/* Readable English controls, compact ideas, and saved result navigation. */
.studio-layout{grid-template-columns:100px minmax(0,.94fr) minmax(0,1fr)}
.studio-controls{grid-template-rows:auto auto;align-content:start}
.studio-rail .mode{font-size:11px;line-height:1.4;white-space:normal}
.studio-rail{min-height:0}.studio-preview{height:auto;min-height:650px}
.reference-upload{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  min-height:116px;
  padding:12px;
  border:1px dashed #cbbce1;
  border-radius:9px;
  background:#faf8fd;
  color:var(--purple);
  cursor:pointer;
}
.reference-upload:hover:not(:disabled){background:#f4effb;border-color:var(--purple)}
.reference-upload:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.reference-upload-copy{display:flex;flex-direction:column;align-items:center;gap:5px;line-height:1.5}
.reference-upload-copy svg{width:27px;height:27px}
.reference-upload.has-reference .reference-upload-copy svg{display:none}
.reference-upload-label{font-size:13px;font-weight:600}
.reference-upload-copy small{font-size:11px;color:#71647e}
.reference-upload-preview{width:72px;height:72px;border-radius:6px;object-fit:contain}
.reference-upload-preview[hidden]{display:none}
.inline-style-card .style-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.inline-style-card .style img,.inline-style-card .custom-style>div{height:45px}
.inline-style-card .style>span{font-size:10px;min-height:24px;line-height:1.3;white-space:normal}
.prompt-suggestions button{font-size:12px;padding:4px 12px;min-height:30px;gap:6px}
.prompt-card textarea{min-height:120px}.parameters-card{min-height:100px}
.parameter-top>label{white-space:normal}.studio-preview .preview-heading{flex-wrap:wrap;gap:10px}
.preview-heading #preview-title{font-size:12px}.studio-disclaimer{font-size:10px;text-align:left}
#quota-status{font-size:12px;color:var(--purple);line-height:1.6;margin:10px 0 18px}
.studio-controls button:disabled{cursor:not-allowed}
.preset-rail .history-toggle{
  flex-shrink:0;
  margin-top:auto;
  border-top:1px solid #eee7f3;
  border-radius:8px;
}
.history-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.studio-preview{scroll-margin-top:90px}
.history-actions{display:flex;flex-wrap:wrap;gap:6px 12px}
.history-actions button,.history-card a,.history-card > button:not(.history-result){
  color:var(--purple-dark);
  font-size:12px;
  min-height:32px;
  padding:5px 0;
}
.history-actions button:disabled{opacity:.55;cursor:wait}
.history-panel{
  position:absolute;
  inset:0;
  overflow:auto;
  background:#faf8fd;
  padding:12px;
  overscroll-behavior:contain;
}
#history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:10px}
#history-list > p{
  grid-column:1 / -1;
  margin:0;
  padding:24px 12px;
  color:#695d74;
  font-size:13px;
  line-height:1.5;
  text-align:center;
}
.history-card{
  min-width:0;
  padding:8px;
  border:1px solid #ece4f4;
  border-radius:8px;
  background:#fff;
}
.history-result{
  display:block;
  width:100%;
  padding:0;
  margin-bottom:8px;
  border-radius:5px;
  overflow:hidden;
  background:#f4effa;
}
.history-result img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.history-result:hover img{opacity:.9}
.history-card strong{display:block;font-size:12px}
.history-card p{margin:4px 0;color:#695d74;font-size:11px;line-height:1.45}
.history-card a{display:inline-flex;align-items:center}
.studio-preview:has(.history-panel:not([hidden])){padding-bottom:14px}
@media(max-width:650px){
  .studio-rail .preset-rail{
    display:grid;
    grid-template-columns:minmax(0,1fr) 62px;
    align-items:center;
    gap:0 6px;
  }
  .preset-rail .rail-title{grid-column:1 / -1}
  .studio-rail .preset-rail > div[role="group"]{
    display:flex;
    flex-direction:row;
  }
  .preset-rail .history-toggle{margin:0;border-top:0;border-left:1px solid #eee7f3}
  .history-panel{padding:8px}
  #history-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
.mode-copy-card .text-link{display:inline-flex;margin-top:auto;padding-top:16px;font-size:12px}
.clothes-guide{max-width:850px}.clothes-guide h2{font-size:32px}.clothes-guide p{font-size:15px;line-height:1.9;margin:18px 0}
@media(max-width:1100px){.studio-layout{grid-template-columns:90px minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:900px){.studio-layout{grid-template-columns:90px minmax(0,1fr)}.studio-preview{height:560px;min-height:560px}}
@media(max-width:650px){.studio-layout{grid-template-columns:1fr}.studio-rail{display:flex}.preset-rail>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.studio-rail .mode{font-size:9px!important;min-height:68px;padding:5px 3px}.studio-controls{grid-template-rows:auto auto 135px auto}.inline-style-card .style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-style-card .style img,.inline-style-card .custom-style>div{height:55px}.studio-preview{height:460px;min-height:460px}.studio-preview .studio-canvas{min-height:280px}.preview-footer>span{font-size:8px}.suggestions-header{font-size:9px}.parameter-top>label{font-size:10px}.output-picker select{width:68px}}
.inline-style-card .style-grid.text-choice-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.text-choice-grid .style{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:6px 5px;
}
.inline-style-card .text-choice-grid .style>span{
  min-height:0;
  padding:0;
  font-size:12px;
  line-height:1.3;
}
.text-choice-grid .style.active{background:#f3edfc;color:#593da3}
.text-choice-grid .style b{display:none}
.edit-options{margin-top:14px}
.edit-options-heading{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding-bottom:6px;
  color:var(--ink);
  font-size:12px;
  font-weight:600;
}
#edit-options-status{color:#797080;font-size:11px;font-weight:400}
.edit-options-body{display:grid;gap:12px;padding:4px 0 6px}
.edit-prompt textarea{
  display:block;
  width:100%;
  min-height:96px;
  padding:8px 10px;
  resize:vertical;
  border:1px solid #dfd6ec;
  border-radius:8px;
  background:#fff;
  font:inherit;
  font-size:12px;
  line-height:1.6;
}
.edit-options-body .style-details{margin-top:0;padding-top:0;border:0}
.inline-style-card .parameter-actions{margin-top:8px}
.inline-style-card .parameter-actions>.button{justify-content:center;min-height:43px;font-size:13px}
@media(max-width:650px){
  .studio-controls{grid-template-rows:auto auto}
  .inline-style-card .text-choice-grid .style>span{font-size:11px}
}
.preview-footer button:disabled{opacity:.45;cursor:not-allowed}
.enhance-examples{height:104px}
.enhance-examples .preview-filmstrip{gap:8px;align-items:stretch}
.enhance-examples .filmstrip-item{width:calc((100% - 24px)/4);flex:1;min-width:0;height:82px;background:transparent}
.enhance-examples .filmstrip-item img{height:48px;object-fit:cover;border-radius:5px}
.enhance-examples .filmstrip-item span{display:block;padding:4px 2px;font-size:9px;line-height:1.3;color:#746583}
/* Match the square sample artwork instead of stretching with the controls. */
.studio-layout .studio-preview{align-self:start;height:auto;min-height:0}
.studio-preview .studio-canvas{flex:none;width:100%;height:auto;min-height:0;aspect-ratio:1 / 1}
.studio-preview .single-preview>img,
.studio-preview .split-preview img,
.studio-preview .canvas-grid .result-card img{object-fit:cover;object-position:50% 50%}
.studio-preview .result-card>.result-idea{position:absolute;inset:auto 9px 9px;padding:6px 8px;border-radius:6px;background:#241f2b99;backdrop-filter:blur(8px);font-size:11px;line-height:1.4;color:white;display:block}
.studio-preview .result-card.has-idea .grid-actions{bottom:40px}
.studio-preview .result-card.has-idea.selected{outline:3px solid #9365df;outline-offset:-3px}
.sample-image-button{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.sample-image-button:focus-visible{outline:3px solid #9365df;outline-offset:-3px}
.result-card>.result-number,.result-card>.result-idea{pointer-events:none}

.account-controls{display:flex;align-items:center;flex-shrink:0}
.account-controls[hidden],.account-controls [hidden]{display:none}
.google-signin img{display:block;width:180px;height:40px;object-fit:contain}
.account-signout{
  min-height:36px;
  padding:6px 10px;
  border:1px solid #ded3eb;
  border-radius:8px;
  background:#fff;
  color:var(--purple-dark);
  font-size:12px;
  font-weight:600;
}
.account-signout:hover{background:#f4effb}
.header .nav-actions{gap:10px}
@media(max-width:1020px){
  .header .desktop-nav{display:none}
  .header .menu-toggle{display:grid}
}
@media(max-width:650px){
  .google-signin img{width:132px;height:auto}
  .header .nav-actions>.small{display:none}
  .header .nav-actions{gap:5px}
}
