/* Layout v2: utility rail / stacked controls / full-height preview. */
.hero{padding-top:26px}.hero h1{font-size:clamp(36px,4vw,54px);margin:7px 0 9px}.hero-subtitle{font-size:13px}.studio{margin-top:25px;text-align:left;scroll-margin-top:95px}.studio-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 2px;font-size:11px}.studio-topline>span:first-child{display:flex;gap:8px;align-items:center;font-weight:600}.studio-topline svg{width:15px;color:var(--purple)}.studio-layout{display:grid;grid-template-columns:86px minmax(0,.85fr) minmax(0,1fr);gap:16px;align-items:stretch}.studio-rail{display:grid;grid-template-rows:1.05fr 1fr;gap:16px;min-width:0}.rail-box,.studio-card{border:1px solid #e2dce9;border-radius:13px;background:white;box-shadow:0 4px 15px #35204603}.rail-box{padding:14px 9px;text-align:center;position:relative}.rail-box .rail-title{font-size:8px;letter-spacing:1.5px;color:#998ba6;margin-bottom:12px;font-weight:600}.preset-rail>div{display:flex;flex-direction:column;gap:5px}.studio-rail .mode{width:100%;display:flex;flex-direction:column;gap:4px;min-height:43px;padding:6px 2px;font-size:9px;border:1px solid transparent}.studio-rail .mode svg{width:16px;height:16px}.studio-rail .mode.active{background:#f0eafa;border-color:#e2d6f6;box-shadow:none}.style-rail{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.style-rail details{width:100%}.style-rail summary{list-style:none;cursor:pointer;display:flex;align-items:center;flex-direction:column;gap:9px;color:var(--purple);font-size:9px}.style-rail summary>svg{width:19px;height:19px;margin:4px 0}.style-rail summary>img{width:52px;height:59px;object-fit:cover;border-radius:7px;border:2px solid #b39cde;object-position:50% 30%}.browse-label{font-size:8px;display:flex;gap:3px;align-items:center;color:#9a8ea5}.browse-label svg{width:10px;height:10px}.style-rail-note{font-size:8px;color:#b0a4b9;line-height:1.8;margin-top:auto;padding-top:12px}.style-popover{position:absolute;z-index:20;left:calc(100% + 10px);top:0;width:312px;padding:18px;background:white;border:1px solid #e2d5f4;box-shadow:0 12px 45px #36214c26;border-radius:12px;text-align:left}.popover-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.popover-heading strong{font-size:12px}.popover-heading>span{font-size:9px;color:#9a8ba5}.style-popover>p{font-size:9px;color:#9b8ba7;margin-top:12px}.style-popover .style img,.style-popover .custom-style>div{height:65px}.style-popover .style>span{font-size:9px}.studio-controls{display:grid;grid-template-rows:206px 197px 115px;gap:16px;min-width:0}.studio-card{min-width:0}.upload-card,.prompt-card{padding:16px 18px}.studio-card-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}.studio-card-heading .studio-card-title{font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px}.studio-card-heading .studio-card-title>span{font-size:9px;color:#a190b3}.studio-card-heading>span{font-size:9px;color:#b0a4b8}.prompt-card{display:flex;flex-direction:column}.prompt-card textarea{flex:1;min-height:82px;resize:none;border:0;background:transparent;padding:2px 0;font-size:12px;line-height:1.9}.prompt-card textarea:focus{outline-offset:4px}.prompt-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.prompt-suggestions button{display:flex;align-items:center;gap:10px;font-size:8px;color:#a394b0;background:#faf7fc;border:1px solid #ece5f2;border-radius:5px;padding:5px 7px}.prompt-suggestions svg{width:10px;height:10px}.parameters-card{padding:14px 17px}.parameter-top{display:flex;align-items:center;gap:18px;margin-bottom:13px}.parameter-top>label{display:flex;gap:12px;white-space:nowrap;font-size:10px;color:#887895}.parameter-top output{color:var(--purple);font-size:10px}.parameter-top input{min-width:0;flex:1;accent-color:var(--purple);height:4px;cursor:pointer}.parameter-actions{display:flex;gap:12px;align-items:center}.output-picker{height:38px;display:flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #e9e0f0;border-radius:6px;color:#a08caf}.output-picker svg{width:14px;height:14px}.output-picker select{border:0;background:transparent;font-size:10px;color:#857091;width:74px;min-width:0}.parameter-actions>.button{flex:1;min-height:38px;padding:9px 12px;font-size:11px;gap:8px}.parameter-actions>.button svg{width:14px;height:14px}.parameter-actions>.button svg:last-child{margin-left:auto}.studio-preview{display:flex;flex-direction:column;overflow:hidden;padding:17px 17px 0;background:#fdfcfe;min-height:0}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px}.preview-heading #preview-title{font-size:12px;font-weight:600}.preview-heading>div>span{font-size:9px;color:#a899b4}.view-switch{display:flex;border:1px solid #e4dcec;background:#f5f1f9;padding:3px;border-radius:7px;gap:3px}.view-switch button{display:grid;place-items:center;width:29px;height:27px;border-radius:4px;color:#a699b4}.view-switch button.active{background:white;color:var(--purple);box-shadow:0 1px 4px #3b234011}.view-switch svg{width:14px;height:14px}.studio-canvas{flex:1;min-height:0;border:1px solid #e8e1ed;background:#f1eee8;border-radius:9px;overflow:hidden;position:relative}.single-preview{position:absolute;inset:0;width:100%;height:100%;padding:0;display:flex;align-items:center;justify-content:center;background:#e6e2d9}.single-preview>img{width:100%;height:100%;object-fit:contain}.canvas-image-label{position:absolute;left:14px;right:14px;bottom:12px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:white;text-shadow:0 1px 5px #0009;background:#21172c75;border-radius:5px;padding:7px 10px}.canvas-image-label svg{width:14px;height:14px}.canvas-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;padding:8px;background:#faf8fd}.canvas-grid .result-card{aspect-ratio:auto;min-height:0}.preview-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:41px;font-size:8px;color:#a99ab4}.preview-footer>span,.preview-footer a{display:flex;align-items:center;gap:5px}.preview-footer svg{width:11px;height:11px}.preview-footer a{color:var(--purple)}.studio-disclaimer{text-align:right;font-size:8px;color:#b1a4ba;margin-top:9px}.workflow-strip{padding-top:18px}.studio-rail .mode:hover,.prompt-suggestions button:hover{background:#f5effb}
@media(max-width:1150px){.studio-layout{grid-template-columns:76px minmax(0,.9fr) minmax(0,1fr);gap:12px}.studio-rail,.studio-controls{gap:12px}.studio-controls{grid-template-rows:210px 197px 119px}.upload-card,.prompt-card{padding:15px}.parameter-top{gap:9px}.parameter-top label{gap:6px;font-size:9px}.parameters-card{padding:15px 13px}.preview-footer>span{font-size:7px}.preview-footer a{font-size:8px}.rail-box{padding-inline:7px}}
@media(max-width:900px){.studio-layout{grid-template-columns:76px minmax(0,1fr)}.studio-preview{grid-column:2;min-height:530px}.studio-rail{grid-row:1;grid-column:1}.studio-controls{grid-column:2}.studio-preview .studio-canvas{min-height:420px}.studio-disclaimer{text-align:center}.preview-footer>span{font-size:9px}.preview-footer a{font-size:9px}}
@media(max-width:650px){.hero{padding-top:26px}.hero h1{font-size:37px}.hero-subtitle{font-size:12px}.studio{margin-top:22px}.studio-topline{font-size:10px;gap:8px}.studio-topline .demo-badge{font-size:7px}.studio-topline>span:first-child{gap:5px}.studio-topline svg{width:12px}.studio-layout{grid-template-columns:1fr;gap:12px}.studio-rail{grid-column:1;grid-row:auto;display:grid;grid-template-columns:1fr 76px;grid-template-rows:auto;gap:8px}.rail-box{padding:10px 8px;border-radius:10px}.rail-box .rail-title{font-size:7px;margin-bottom:7px}.preset-rail>div{flex-direction:row;gap:2px}.studio-rail .mode{font-size:8px;min-height:43px;gap:4px}.studio-rail .mode svg{width:15px;height:15px}.style-rail summary{gap:0}.style-rail summary>svg{display:none}.style-rail summary>img{width:32px;height:29px;border-radius:4px;border-width:1px}.style-rail summary>span{font-size:7px;margin-top:3px}.style-rail .browse-label,.style-rail-note{display:none}.style-popover{left:auto;right:0;top:calc(100% + 8px);width:min(312px,calc(100vw - 32px));padding:15px}.style-popover .style img,.style-popover .custom-style>div{height:60px}.studio-controls{grid-column:1;grid-template-rows:218px 205px 120px;gap:12px}.studio-preview{grid-column:1;min-height:425px;padding:15px 13px 0}.studio-preview .studio-canvas{min-height:310px}.studio-card-heading .studio-card-title{font-size:12px}.upload-card,.prompt-card{padding:15px}.prompt-card textarea{font-size:12px;min-height:85px}.prompt-suggestions button{font-size:8px;gap:5px}.parameters-card{padding:16px 14px}.parameter-top label{font-size:10px;gap:10px}.parameter-actions{gap:10px}.parameter-actions>.button{font-size:11px;min-height:39px}.parameter-actions .output-picker{height:39px}.preview-heading{padding-bottom:12px}.preview-heading #preview-title{font-size:12px}.preview-footer>span{font-size:7px}.preview-footer a{font-size:8px}.studio-disclaimer{font-size:8px;line-height:1.8;padding:0 10px}}

/* Chinese typography keeps the existing compact workspace proportions. */
html[lang="zh-CN"] body{font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}
html[lang="zh-CN"] h1,html[lang="zh-CN"] h2,html[lang="zh-CN"] h3{letter-spacing:0}
html[lang="zh-CN"] em{font-family:inherit;font-style:normal}
html[lang="zh-CN"] .eyebrow{letter-spacing:2px}
html[lang="zh-CN"] .rail-box .rail-title{font-size:10px;letter-spacing:1px}
html[lang="zh-CN"] .studio-rail .mode,html[lang="zh-CN"] .style-rail summary{font-size:11px}
html[lang="zh-CN"] .hero-subtitle{line-height:1.8}
@media(max-width:650px){html[lang="zh-CN"] .hero h1{font-size:30px}html[lang="zh-CN"] .rail-box .rail-title{font-size:9px}html[lang="zh-CN"] .studio-rail .mode{font-size:10px}}
