@font-face{font-family:Inter;src:url('/static/fonts/Inter.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'Noto Sans SC';src:url('/static/fonts/NotoSansSC.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--bg:#fff;--paper:#fbfdf9;--ink:#25362d;--muted:#5c6f63;--line:#d5e1d6;--line-strong:#b8cabb;--accent:#367455;--accent-hover:#2c6046;--accent-ink:#fff;--ink-hover:#344d3e;--danger:#b93838;--danger-wash:#faeeee;--wash:#f0f5ef;--radius:18px;--radius-sm:12px;--font:Inter,'Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button,a,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a,button,input,select,textarea,summary{outline-offset:5px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}a,button{touch-action:manipulation}img{display:block;max-width:100%;height:auto}svg.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.shell{width:min(1280px,calc(100% - 96px));margin-inline:auto}.site-header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:23px;font-weight:650;letter-spacing:-1px;white-space:nowrap}.brand-en{font-size:10px;letter-spacing:2px;font-weight:500;margin-left:12px}.brand>span{display:flex;align-items:center}.brand-copy{flex-direction:column;align-items:flex-start!important;gap:1px;line-height:1.35}.brand-title{font-size:17px;letter-spacing:0}.brand-slogan{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px}.site-header nav>a{min-height:44px;display:inline-flex;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:52px;padding:13px 24px;border:1px solid transparent;font-size:15px;font-weight:550;line-height:1.6;border-radius:var(--radius-sm);transition:background .18s,color .18s}.button.small{min-height:44px;padding:10px 16px;font-size:14px;gap:12px}.button.primary{background:var(--accent);color:var(--accent-ink)}.button.primary:hover{background:var(--accent-hover)}.button.dark{background:var(--ink);color:white}.button.dark:hover{background:var(--ink-hover)}.button.outline{border-color:var(--line-strong);background:transparent}.button.outline:hover{background:var(--wash)}.button.full{width:100%}.accent{color:var(--accent)}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:550;line-height:1.5;color:var(--muted)}.accent-rule{display:inline-block;width:20px;height:2px;background:var(--accent);vertical-align:middle;margin-right:10px}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:30px;min-height:640px;padding-block:70px 76px}.hero h1{font-size:clamp(40px,5vw,70px);line-height:1.24;letter-spacing:-3px;font-weight:650;margin-top:26px}.hero-description{font-size:17px;line-height:1.9;color:var(--muted);margin-top:25px}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:32px}.text-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.text-link:hover,.plain-button:hover,.style-link:hover{text-decoration:underline;text-underline-offset:5px}.hero-note{font-size:12px;color:var(--muted);margin-top:24px}.hero-note span{margin:0 9px;color:var(--muted)}.hero-art{position:relative;min-width:0;height:460px}.hero-card{position:absolute;width:245px;box-shadow:0 18px 35px #183e2717;border:1px solid #183e2712;max-width:58%}.hero-card-back{left:2%;top:5%;transform:rotate(-10deg)}.hero-card-front{right:0;top:15%;transform:rotate(8deg)}.art-caption{position:absolute;bottom:0;left:12%;font-size:12px;color:var(--muted);letter-spacing:1px;display:flex;align-items:center;gap:18px}.tiny-cross{font-size:24px;color:var(--accent)}.gallery-section{padding:56px 0 80px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:38px}.section-heading h2{font-size:34px;font-weight:550;letter-spacing:-1.2px;line-height:1.45;margin-top:12px}.section-heading>p{font-size:13px;color:var(--muted);line-height:1.8}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 24px}.gallery-item{min-width:0}.sample-button{display:block;border:0;background:var(--wash);padding:14px;width:100%;overflow:hidden;border-radius:var(--radius-sm)}.sample-button img{width:100%;aspect-ratio:1242/1660;object-fit:cover;box-shadow:0 4px 12px #183e270c;transition:transform .2s}.sample-button:hover img{transform:translateY(-3px)}.sample-meta{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:11px}.sample-meta>div{display:flex;align-items:center;gap:9px}.sample-number{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.sample-meta h3{font-size:14px;font-weight:500}.style-link{display:flex;align-items:center;gap:3px;font-size:11px;min-height:44px;white-space:nowrap}.style-link .icon{width:15px;height:15px}.gallery-more{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:48px}.gallery-more p{font-size:12px;color:var(--muted)}.how-section{border-block:1px solid var(--line);background:var(--wash);padding:68px 0 76px}.steps{padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:56px}.step-number{font-size:13px;color:var(--accent);display:block;margin-bottom:22px}.steps li{border-top:1px solid var(--line);padding-top:20px}.steps h3{font-size:20px;font-weight:550;margin-bottom:12px}.steps p{font-size:14px;color:var(--muted);line-height:1.9;max-width:315px}.privacy-section{display:grid;grid-template-columns:1fr 1.2fr;gap:96px;padding-block:90px}.privacy-section h2{font-size:36px;font-weight:550;line-height:1.5;letter-spacing:-1px;margin-top:20px}.privacy-copy h3{font-size:17px;font-weight:550;margin-bottom:12px}.privacy-copy p{font-size:14px;color:var(--muted);line-height:1.9;margin-bottom:24px}.closing{border-top:1px solid var(--line);padding-block:50px 64px;display:flex;align-items:center;justify-content:space-between;gap:24px}.closing h2{font-size:30px;font-weight:550;letter-spacing:-1px;margin-top:14px}.site-footer{display:flex;align-items:center;gap:28px;border-top:1px solid var(--line);padding-block:26px;color:var(--muted);font-size:12px}.site-footer>a:last-child{margin-left:auto;min-height:44px;display:flex;align-items:center}.footer-brand{font-size:18px;color:var(--ink);gap:0}.footer-brand .brand-en{font-size:9px}.skip-link{position:fixed;z-index:10;left:12px;top:10px;padding:10px;background:var(--paper);transform:translateY(-160%)}.skip-link:focus{transform:none}.image-dialog{border:0;background:var(--bg);border-radius:var(--radius);padding:20px;width:min(1050px,calc(100% - 32px));max-height:92dvh;color:var(--ink)}.image-dialog::backdrop{background:#181813c9}.dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.dialog-bar h2{font-size:18px;font-weight:550}.icon-button{min-width:44px;min-height:44px;background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-sm)}.icon-button:hover{background:var(--wash)}.dialog-images{display:flex;gap:20px;align-items:flex-start;justify-content:center}.dialog-images img{width:calc(50% - 10px);height:auto}.dialog-images img:only-child{width:min(620px,100%)}
/* The creator's desk */
.workspace{padding-block:40px 70px}.workspace-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.workspace-heading h1{font-size:38px;font-weight:550;letter-spacing:-1.5px;line-height:1.4;margin-top:10px}.workspace-heading>p{color:var(--muted);font-size:12px;line-height:1.9}.desk{display:grid;grid-template-columns:minmax(300px,370px) minmax(0,1fr);gap:48px}.input-column{min-width:0}.output-column{border-left:1px solid var(--line);padding-left:48px;min-width:0}.model-config{border-block:1px solid var(--line);margin-bottom:16px}.model-config summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:56px;font-size:14px;font-weight:550;list-style:none}.model-config summary::-webkit-details-marker{display:none}.model-config summary>span:first-child{display:flex;align-items:center;gap:10px}.config-hint{font-size:11px;font-weight:400;color:var(--muted)}.config-hint:after{content:' ＋'}.model-config[open] .config-hint:after{content:' −'}#config-form{padding:8px 0 20px}label{font-size:13px;font-weight:550;display:block;margin-bottom:7px}input,select,textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);min-height:44px;padding:10px 12px;width:100%;background:var(--paper);font-size:14px;line-height:1.6;min-width:0}textarea{resize:vertical;line-height:1.9}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--danger)}#config-form label:not(:first-child){margin-top:14px}.key-field{display:flex;position:relative}.key-field input{padding-right:49px}.key-field button{position:absolute;right:1px;top:1px}.field-help{font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.field-help a{text-decoration:underline;text-underline-offset:3px}.field-error{font-size:12px;line-height:1.7;color:var(--danger);margin-top:5px}.field-error:empty{display:none}.field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:5px}.field-heading label{margin:0}.plain-button{padding:0 4px;min-height:44px;border:0;background:transparent;font-size:12px;color:var(--muted)}.input-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-top:7px}.source-section{margin-bottom:16px}.style-section{margin-bottom:8px}.style-control{display:flex;align-items:center;gap:16px}.style-control>div{flex:1;min-width:0}.style-control img{width:62px;height:83px;object-fit:cover;border:1px solid var(--line)}.style-control select{margin-top:0}.output-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:6px}.output-heading h2{font-size:23px;line-height:1.6;letter-spacing:-.5px;font-weight:500;margin-top:10px}.output-count{font-size:11px;color:var(--muted);white-space:nowrap}.empty-state{min-height:570px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 12px}.empty-art{width:170px;height:150px;fill:var(--bg);stroke:var(--line-strong);stroke-width:1.1;margin-bottom:28px}.empty-art path{stroke:var(--accent);stroke-width:1.6}.empty-state h3{font-size:17px;font-weight:500}.empty-state p{font-size:13px;color:var(--muted);line-height:1.9;margin-top:14px}.empty-footnote{font-size:10px;color:var(--muted);letter-spacing:1px;margin-top:55px}.status{font-size:13px;line-height:1.8;margin-block:16px;white-space:pre-wrap;overflow-wrap:anywhere}.status:empty{display:none}.status[data-kind=error]{color:var(--danger);padding:12px 14px;border-left:2px solid var(--danger);background:var(--danger-wash)}.status[data-kind=loading]{display:flex;gap:12px;align-items:center}.status[data-kind=loading]:before{content:'';display:block;width:16px;height:16px;border:1.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}.editor{margin-top:24px}.edit-card{padding-block:22px 26px;border-top:1px solid var(--line)}.edit-card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.edit-card-heading h3{font-size:12px;font-weight:500;color:var(--muted)}.edit-card label{font-size:11px;margin-top:14px;color:var(--muted)}.edit-card input,.edit-card textarea{background:transparent}.edit-card textarea{min-height:66px;resize:vertical}.point-row{display:flex;gap:8px;align-items:flex-start;margin-top:10px}.point-row textarea{flex:1;min-width:0}.point-row .icon-button{color:var(--muted);border:1px solid var(--line);margin-top:0}.point-label{font-size:10px;display:block;margin-top:14px;color:var(--muted)}.point-row:first-child{margin-top:0}.point-row label{flex:1;margin:0}.point-row textarea{margin-top:4px}.image-editor{border:1px dashed var(--line-strong);border-radius:var(--radius-sm);padding:12px;margin-top:18px}.image-editor.dragging{border-color:var(--accent);background:var(--wash)}.image-editor label{margin:0;min-height:28px}.image-editor input[type=file]{font-size:11px;min-height:44px;border:0;padding:4px 0;background:transparent}.image-editor img{width:100%;max-height:160px;object-fit:contain;margin-block:10px}.image-editor .field-help{margin:0}.render-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;border-block:1px solid var(--line);padding:20px 0;margin:4px 0 30px}.render-actions>span{font-size:11px;color:var(--muted)}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.results-heading h3{font-size:17px;font-weight:500}.results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;margin-top:20px}.result-card{min-width:0}.result-card .sample-button{padding:0;border:1px solid var(--line)}.result-card>a{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.result-card>a:hover{text-decoration:underline}.result-card .sample-button img{box-shadow:none}.result-card p{font-size:11px;color:var(--muted)}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.hero-art{margin-left:35px;margin-right:20px}.hero-card{width:265px}}
@media(max-width:1150px){.shell{width:calc(100% - 64px)}.hero{min-height:570px;gap:16px;padding-block:65px}.hero-art{height:390px}.hero-card{width:220px}.hero h1{font-size:56px}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.desk{grid-template-columns:minmax(280px,320px) minmax(0,1fr);gap:30px}.output-column{padding-left:30px}.privacy-section{gap:48px}.sample-meta h3{font-size:13px}}
@media(max-width:900px){.shell{width:calc(100% - 48px)}.site-header{height:86px}.site-header nav{gap:20px}.hero{padding-block:50px 60px;min-height:500px}.hero h1{font-size:46px;letter-spacing:-2px}.hero-description{font-size:14px}.hero-art{height:330px}.hero-card{width:185px}.hero-note{font-size:10px}.hero-note span{margin:0 4px}.art-caption{font-size:10px;left:3%}.section-heading h2{font-size:29px}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 16px}.sample-button{padding:10px}.sample-meta{align-items:flex-start;flex-wrap:wrap;gap:0}.sample-meta>div{min-height:26px}.sample-meta .style-link{margin-left:auto}.steps{gap:30px}.steps h3{font-size:18px}.privacy-section{gap:40px}.privacy-section h2{font-size:30px}.closing h2{font-size:26px}.desk{grid-template-columns:1fr;gap:32px}.input-column{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.model-config{grid-column:1;margin:0 0 24px}.source-section{grid-column:2;grid-row:1 / 3}.style-section{grid-column:1}.input-column>.button,.input-column>.field-help{grid-column:1/-1}.output-column{padding:30px 0 0;border-left:0;border-top:1px solid var(--line)}.empty-state{min-height:360px}.workspace-heading h1{font-size:34px}}
@media(max-width:600px){.shell{width:calc(100% - 40px)}.site-header{height:76px;gap:12px}.brand{font-size:21px;gap:7px}.brand-en{font-size:8px;margin-left:8px;letter-spacing:1.4px}.site-header nav{gap:12px;font-size:12px}.site-header .nav-help{display:none}.site-header nav .button{font-size:12px;padding:9px 12px;gap:8px}.site-header nav .button .icon{width:16px;height:16px}.hero{grid-template-columns:1fr;padding-block:42px 40px;gap:20px}.hero h1{font-size:47px;line-height:1.24;letter-spacing:-2px;margin-top:20px}.hero-description{font-size:15px;margin-top:20px}.hero-actions{margin-top:26px;gap:24px}.hero-note{font-size:11px;margin-top:20px}.hero-art{height:310px;margin-top:5px;margin-inline:6px}.hero-card{width:190px;max-width:57%}.hero-card-back{left:6%;top:2%}.hero-card-front{right:4%;top:10%}.art-caption{bottom:0;left:13%;font-size:10px}.gallery-section{padding:38px 0 48px}.section-heading{margin-bottom:26px;align-items:flex-start;flex-direction:column;gap:12px}.section-heading h2{font-size:27px;letter-spacing:-1px}.section-heading>p br{display:none}.section-heading>p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1.5px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.sample-button{padding:8px}.sample-meta{margin-top:8px;display:block}.sample-meta>div{gap:6px}.sample-meta h3{font-size:12px}.sample-number{font-size:9px}.sample-meta .style-link{font-size:10px;justify-content:flex-start;min-height:44px}.gallery-more{margin-top:30px}.how-section{padding-block:42px}.steps{grid-template-columns:1fr;gap:24px;margin-bottom:0}.steps li{position:relative;padding-left:46px;padding-top:18px}.step-number{position:absolute;left:0;top:20px}.steps h3{font-size:18px;margin-bottom:8px}.steps p{max-width:none;font-size:13px}.privacy-section{grid-template-columns:1fr;padding-block:44px;gap:28px}.privacy-section h2{font-size:29px;margin-top:14px}.privacy-copy p{font-size:13px;margin-bottom:20px}.privacy-copy h3{font-size:15px}.closing{align-items:flex-start;flex-direction:column;padding-block:36px 44px;gap:24px}.closing h2{font-size:25px;line-height:1.5}.site-footer{flex-wrap:wrap;gap:6px 16px;padding-block:22px}.site-footer>span{font-size:10px}.site-footer>a:last-child{font-size:10px;margin-left:0}.footer-brand{font-size:16px}.workspace{padding-top:30px}.workspace-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:20px}.workspace-heading h1{font-size:31px;margin-top:8px}.workspace-heading>p{font-size:11px}.input-column{display:block}.model-config{margin-bottom:20px}.output-column{padding-top:24px}.output-heading h2{font-size:21px}.source-section textarea{min-height:210px}.input-meta{font-size:9px}.empty-state h3{font-size:15px}.empty-state{min-height:330px}.empty-footnote{margin-top:30px}.results-heading{flex-wrap:wrap;gap:12px}.results-grid{gap:18px 12px}.results-heading h3{font-size:16px}.render-actions{align-items:flex-start;flex-direction:column;gap:10px}.render-actions .button{width:100%}.dialog-images{flex-direction:column}.dialog-images img{width:100%}.image-dialog{padding:14px}.dialog-bar h2{font-size:16px}.image-editor input[type=file]{max-width:100%}.edit-card-heading .plain-button{font-size:11px}.status{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.status[data-kind=loading]:before{border-color:var(--accent)}}
/* Keep the first action close to the content, and form text readable on phones. */
.workspace{padding-top:24px}.workspace-heading{margin-bottom:20px}
input,select,textarea{font-size:16px}.steps p,.privacy-copy p{font-size:16px}.hero-description{font-size:17px}
.privacy-copy p.privacy-highlight{display:block;margin:12px 0 24px;padding:12px 16px;border-left:3px solid var(--accent);background:var(--wash);color:var(--ink);font-weight:600;line-height:1.75}
@media(max-width:600px){.hero-description{font-size:16px}.steps p,.privacy-copy p{font-size:16px}.workspace{padding-top:28px}}
.style-select-bridge{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;white-space:nowrap;border:0;clip:rect(0,0,0,0);clip-path:inset(50%)}
.style-gallery{padding-bottom:20px}
.style-group{min-width:0;border:0;padding:0;margin:0 0 24px}
.style-group legend{display:flex;align-items:center;gap:10px;width:100%;padding:0;margin-bottom:12px;font-size:15px;font-weight:550}
.style-group-dot{width:12px;height:12px;border:1px solid var(--line-strong);border-radius:50%;flex-shrink:0}
.style-group-dot.light{background:var(--paper)}
.style-group-dot.dark{background:var(--ink)}
.style-group-count{margin-left:0;color:var(--muted);font-size:inherit;font-weight:400}
.style-gallery-count{font-size:11px;font-weight:400;color:var(--muted)}
.style-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.style-gallery>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-bottom:14px;padding:8px 2px;border-block:1px solid var(--line);font-size:13px;font-weight:550;cursor:pointer;list-style:none}
.style-gallery>summary::-webkit-details-marker{display:none}
.style-gallery>summary:after{content:'⌄';color:var(--muted)}
.style-gallery[open]>summary:after{content:'⌃'}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.style-option{position:relative;display:flex;min-width:0;min-height:136px;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;padding:10px 7px 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);color:var(--muted);text-align:center;font-size:11px;line-height:1.4;cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.style-option:hover,.style-option.is-selected{border-color:var(--accent);color:var(--ink)}
.style-option.is-selected{box-shadow:none;background:var(--wash)}
.style-option:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.style-option input{position:absolute;top:10px;left:10px;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0}
.style-option img{width:72px;height:94px;object-fit:cover;border:1px solid var(--line);background:var(--bg)}
.style-option span{overflow-wrap:anywhere}
@media(max-width:600px){.style-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}.style-option{min-height:128px;padding:8px 5px}.style-option img{width:68px;height:88px}}

.model-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px}.model-picker-heading label{margin:0}.model-picker-heading .button{white-space:nowrap}select:disabled{opacity:1;background:var(--wash);color:var(--muted)}


.output-column{border-left:0;padding-left:0}
.model-config{border-block:0}
.style-gallery>summary{border-block:0}
.style-gallery>summary{min-height:22px;margin:0 0 8px;padding:0 4px;justify-content:flex-end}
.style-option{border:1px solid transparent;border-radius:0;background:transparent}
.style-option:hover{color:var(--accent)}
.style-option.is-selected{box-shadow:none;background:transparent;color:var(--accent)}
.style-option img{border:0}
.field-help:empty{display:none}
@media(max-width:1150px){.output-column{padding-left:0}}
@media(max-width:900px){.output-column{border-top:0}}
.style-option:hover,.style-option.is-selected{border-color:transparent}
.style-group{margin-bottom:16px}
.style-grid{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:2px 4px}
.style-option{min-height:70px;padding:3px 2px 5px;gap:3px;border:1px solid transparent!important;border-radius:0;background:transparent}
.style-option:hover{color:var(--accent)}
.style-option.is-selected{box-shadow:none;background:transparent;color:var(--accent)}
.style-option:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.style-icon{display:block;width:48px;height:48px;flex:none}
.style-option-name{font-size:10px;line-height:1.25}
.style-preview{position:absolute;z-index:30;left:50%;bottom:calc(100% + 8px);width:clamp(150px,20vw,190px);max-width:calc(100vw - 40px);padding:7px;background:var(--paper);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 12px 28px #183e2726;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-50%,5px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
.style-preview img{display:block;width:100%;height:auto;aspect-ratio:1242/1660;object-fit:contain;border:0;background:var(--bg)}
.style-preview>span{display:block;padding-top:5px;color:var(--ink);font-size:11px;line-height:1.4;text-align:center}
@media(any-hover:hover) and (any-pointer:fine){.style-option:hover,.style-option:focus-within{z-index:20}.style-option:hover .style-preview,.style-option:focus-within .style-preview{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:.35s}}
@media not (any-hover:hover){.style-preview{display:none}}
@media(prefers-reduced-motion:reduce){.style-preview{transition:none}}
@media(max-width:600px){.style-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:2px}.style-option{min-height:68px}.style-icon{width:44px;height:44px}}
.style-preview{position:fixed;left:var(--preview-left,16px);top:var(--preview-top,16px);bottom:auto;width:min(190px,calc(100vw - 32px));max-width:none;transform:translateY(5px)}
@media(any-hover:hover) and (any-pointer:fine){.style-option:hover .style-preview,.style-option:focus-within .style-preview{transform:translateY(0)}}
.style-option.is-selected:after{content:'✓';position:absolute;top:0;right:2px;width:13px;height:13px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:9px;line-height:13px;text-align:center}
.header-model-config{position:relative;margin:0;min-width:0}
.header-model-config>summary{min-height:44px;padding:0 10px;gap:14px;white-space:nowrap}
.header-model-config>summary>span:first-child{gap:8px}
.header-model-config #config-form{position:absolute;z-index:40;right:0;top:calc(100% + 8px);width:min(296px,calc(100vw - 32px));padding:12px;background:var(--bg);border:1px solid var(--line);box-shadow:0 10px 24px #183e2718}
.header-model-config #config-form label{font-size:11px;line-height:1.5;margin-bottom:4px}
.header-model-config #config-form label:not(:first-child){margin-top:10px}
.header-model-config #config-form input,.header-model-config #config-form select{min-height:36px;padding:6px 9px;border-radius:6px;font-size:13px;line-height:1.4}
.header-model-config #config-form #model{height:auto;min-height:36px;padding:4px 8px;font-size:12px;line-height:1.3}
.header-model-config #config-form .key-field{display:grid;grid-template-columns:minmax(0,1fr) 34px;border:1px solid var(--line-strong);border-radius:6px;background:var(--paper);overflow:hidden}
.header-model-config #config-form .key-field input{min-height:34px;height:34px;border:0;border-radius:0;background:transparent}
.header-model-config #config-form .key-field input:focus-visible{outline:0}
.header-model-config #config-form .key-field:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.header-model-config #config-form .key-field:has(input[aria-invalid=true]){border-color:var(--danger)}
.header-model-config #config-form .key-field .icon-button{position:static;min-width:0;min-height:34px;width:34px;height:34px;padding:0;border-radius:0;border-left:1px solid var(--line)}
.header-model-config #config-form .key-field .icon-button:focus-visible{outline-offset:-4px}
.header-model-config #config-form .key-field .icon{width:16px;height:16px}
.header-model-config #config-form .field-help,.header-model-config #config-form .field-error{font-size:10px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.header-model-config #config-form .model-picker-heading{margin:10px 0 5px}
.header-model-config #config-form .button.small{min-height:36px;padding:6px 10px;font-size:11px;border-radius:6px}
.header-model-config .config-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.header-model-config .config-actions>span{font-size:10px;color:var(--muted)}
@media(max-width:600px){.header-model-config>summary{padding:0 4px;gap:0}.header-model-config #config-form{right:0}.header-model-config #config-form input,.header-model-config #config-form select{min-height:44px;font-size:16px}.header-model-config #config-form #model,.header-model-config #config-form .button.small{min-height:44px}.header-model-config #config-form .key-field{grid-template-columns:minmax(0,1fr) 44px}.header-model-config #config-form .key-field input{min-height:44px;height:44px}.header-model-config #config-form .key-field .icon-button{min-height:44px;height:44px;width:44px}.header-model-config #config-form .button.small{font-size:12px}}
@media(max-width:600px){.workspace{min-height:calc(100svh - 166px);display:flex;flex-direction:column}.desk{flex:1;display:flex;flex-direction:column}.input-column{display:flex;flex:1;flex-direction:column}.source-section{display:flex;flex:1;flex-direction:column}.source-section textarea{flex:1;min-height:52vh}}

/* Drafts and finished cards share the same stage beneath the style gallery. */
.style-gallery>summary{justify-content:space-between;color:var(--muted);font-size:11px}
.render-actions{justify-content:space-between;border:0;padding:8px 0;margin:0 0 14px;gap:10px}
.render-actions>span{font-size:11px}.card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.card-stage{position:relative;min-width:0}
.card-stage .editor,.card-stage .results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 12px;margin:0}
.card-stage .edit-card{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;aspect-ratio:1242/1660;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.card-stage .edit-card-heading{flex:none;min-height:26px;gap:4px;margin:0}
.card-stage .edit-card-heading h3{font-size:10px;white-space:nowrap}
.card-stage .plain-button{min-height:28px;padding:0 3px;font-size:10px}
.card-copy{position:relative;flex:1;min-height:0;overflow:auto;padding:2px;scrollbar-width:thin}
.card-stage .card-field{margin:0 0 5px!important;color:var(--ink)}
.card-stage .card-field input,.card-stage .card-field textarea{min-height:28px;padding:3px 4px;border:1px solid transparent;border-radius:4px;background:transparent;font-size:12px;font-weight:400;line-height:1.55}
.card-stage .card-field textarea{field-sizing:content;resize:none}
.card-stage .card-field input:hover,.card-stage .card-field textarea:hover{border-color:var(--line)}
.card-stage .card-field input:focus-visible,.card-stage .card-field textarea:focus-visible{outline-offset:0;background:var(--paper)}
.card-stage .card-field .card-title{font-size:16px;line-height:1.4;font-weight:600}
.card-stage .card-field .card-tags{font-size:11px;color:var(--muted)}
.card-stage .point-row{gap:2px;margin:3px 0;align-items:flex-start}
.card-stage .point-row label{flex:1;min-width:0}
.card-stage .point-row textarea{margin:0;min-height:36px}
.card-stage .point-row .icon-button{min-width:24px;min-height:28px;width:24px;padding:0;border:0;margin:0}
.card-stage .point-row .icon{width:14px;height:14px}
.card-stage .image-editor{flex:none;margin:0;padding:0;border:0;border-radius:5px}
.image-summary{position:relative;min-height:28px;list-style:none;cursor:pointer;text-align:center;border:1px dashed var(--line);border-radius:5px}
.image-summary::-webkit-details-marker{display:none}
.image-summary>span{display:block;padding:4px;font-size:10px;line-height:1.5;color:var(--accent)}
.card-stage .image-editor .image-summary img{width:100%;height:74px;object-fit:contain;margin:0}
.image-summary:has(img)>span{position:absolute;right:3px;bottom:3px;padding:1px 4px;border-radius:3px;background:var(--bg)}
.card-stage .image-editor[open]{position:absolute;left:10px;right:10px;bottom:10px;z-index:5;padding:8px;border:1px solid var(--line-strong);background:var(--bg);box-shadow:0 8px 24px #183e271c}
.card-stage .image-editor[open] .image-summary{margin-bottom:8px}
.card-stage .image-editor input[type=file]{max-width:100%;min-height:30px;padding:0;font-size:10px}
.card-stage .image-editor .field-help{font-size:10px;line-height:1.5}
.card-stage .image-editor label{font-size:10px}
.card-stage .result-card{animation:card-reveal .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--card-order)*55ms)}
.card-stage .result-card .sample-button{border:1px solid var(--line);border-radius:8px}
.card-stage .result-card>a{min-height:32px;font-size:11px}
.card-magic{display:none;position:absolute;z-index:10;inset:0;overflow:hidden;pointer-events:none;border-radius:8px}
.is-rendering .card-magic{display:block}
.is-rendering .edit-card{border-color:var(--accent)}
.card-magic:before{content:'';position:absolute;inset:-30%;background:linear-gradient(105deg,transparent 32%,#36745518 42%,#fff4c999 49%,#ffffffdd 50%,#36745522 58%,transparent 68%);animation:card-sweep 2s ease-in-out infinite}
.card-magic>.icon{position:absolute;left:calc(50% - 20px);top:30%;width:40px;height:40px;color:var(--accent);filter:drop-shadow(0 0 8px #fff);animation:card-spark 1.1s ease-in-out infinite}
@keyframes card-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@keyframes card-spark{0%,100%{opacity:.4;transform:scale(.8) rotate(-8deg)}50%{opacity:1;transform:scale(1.15) rotate(8deg)}}
@keyframes card-reveal{from{opacity:0;transform:translateY(8px) scale(.97);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
@media(max-width:1199px){.card-stage .editor,.card-stage .results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.card-stage .editor,.card-stage .results-grid{grid-template-columns:1fr}.render-actions{align-items:stretch}.card-actions{justify-content:flex-end}.render-actions .button{width:auto}.card-stage .plain-button,.card-stage .result-card>a,.image-summary{min-height:44px}.card-stage .point-row .icon-button{min-width:44px;min-height:44px}.card-stage .image-editor .image-summary img{height:100px}.card-stage .card-field input,.card-stage .card-field textarea{font-size:16px}.card-stage .card-field .card-title{font-size:20px}}
@media(prefers-reduced-motion:reduce){.card-magic{display:none!important}.card-stage .result-card{animation:none;filter:none}}

/* The workspace owns its viewport; the landing page keeps its document layout. */
.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:64px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.workbench-page .workspace-brand{flex:none;margin:0}
.workspace-settings{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
.workspace-footer{flex:none;margin-top:auto;padding-top:4px;color:var(--muted);font-size:10px;line-height:1.5;text-align:right}
.workbench-page .source-help{flex:none;font-size:10px;line-height:1.6;margin:0 0 10px}
.workbench-page #content{font-size:12px;line-height:1.8}
.workbench-page .input-meta{justify-content:flex-end}
.workbench-page .field-heading label,.workbench-page #generate,.workbench-page .style-gallery>summary>span,.workbench-page .output-heading h2{font-size:14px;font-weight:650;line-height:1.5;letter-spacing:0;color:var(--ink)}
.workbench-page .input-column,.workbench-page .source-section{display:flex;flex-direction:column}
.workbench-page .source-section{grid-column:auto;grid-row:auto}
.workspace-settings .header-model-config>summary{min-height:32px;font-size:12px}
.workspace-settings #config-form{max-height:calc(100dvh - 110px);overflow:auto}
.workbench-page .output-heading{margin:6px 0}
.workbench-page .output-heading h2{margin:0}
.workbench-page .style-gallery{padding-bottom:6px}
.workbench-page .style-gallery>summary{min-height:22px;margin-bottom:4px;padding-inline:0;justify-content:flex-start;font-size:14px}
.workbench-page .style-groups{padding:0 8px;border:1px solid var(--line-strong);border-radius:var(--radius-sm)}
.workbench-page .style-group{margin-bottom:8px}
.workbench-page .style-group legend{margin-bottom:4px;gap:6px;font-size:11px}
.workbench-page .style-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:2px}
.workbench-page .style-option{min-height:40px;padding:1px 2px 3px;margin:0;justify-content:flex-start;gap:0}
.workbench-page .style-icon{width:24px;height:24px}
.workbench-page .style-option-name{width:100%;font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workbench-page .style-option.is-selected:after{width:10px;height:10px;line-height:10px;font-size:7px;right:0}
.workspace-feedback{display:flex;align-items:center;gap:10px;flex:none}
.workspace-feedback:has(.status:empty):has(#cancel-task[hidden]){display:none}
.workspace-feedback .status{flex:1;min-width:0;max-height:52px;overflow:auto;font-size:11px;line-height:1.5;margin:4px 0}
.workspace-feedback #cancel-task{flex:none;min-height:32px;font-size:10px}
.workbench-page #generate{color:#fff;user-select:all}
@media(min-width:1000px) and (min-height:700px){
  .workbench-page{height:100dvh;overflow:hidden;--sidebar-width:370px}
  .workbench-page .workspace{width:calc(100% - 48px);height:100%;min-height:0;padding:20px 0;display:flex;flex-direction:column}
  .workbench-page .desk{flex:1;min-height:0;grid-template-columns:var(--sidebar-width) minmax(0,1fr);gap:28px}
  .workbench-page .input-column{height:100%;min-height:0}
  .workbench-page .source-section{flex:1;min-height:0;margin:0 0 10px}
  .workbench-page .field-heading{flex:none}
  .workbench-page .field-heading .plain-button{min-height:36px}
  .workbench-page .source-section textarea{flex:1;min-height:0;height:0;resize:none}
  .workbench-page .source-section .input-meta{flex:none;font-size:9px}
  .workbench-page #generate{flex:none;min-height:48px;padding:10px 14px}
  .workbench-page .output-column{height:100%;min-height:0;display:flex;flex-direction:column;padding:0;border:0}
  .workbench-page .style-gallery,.workbench-page .output-heading{flex:none}
  .workbench-page .style-gallery{margin-top:7px}
  .workbench-page .style-groups{display:grid;grid-template-columns:1fr;gap:8px}
  .workbench-page .style-group{margin:0}
  .workbench-page .render-actions{flex:none;min-height:48px;padding:4px 0 0;margin:0;justify-content:flex-end}
  .workbench-page .render-actions>span{display:none}
  .workbench-page .render-actions .button{min-height:48px;padding:10px 14px;font-size:14px;font-weight:650}
  .workbench-page .card-actions{gap:8px}
  .workbench-page .card-stage{flex:1;min-height:0;container-type:size;--card-height:calc((100cqh - 20px - (var(--card-rows,2) - 1) * 12px) / var(--card-rows,2) - 24px)}
  .workbench-page .card-stage .editor,.workbench-page .card-stage .results-grid{height:calc(100% - 20px);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(var(--card-rows,2),minmax(0,1fr));gap:12px;align-items:start}
  .workbench-page .card-stage .edit-card,.workbench-page .card-stage .result-card{width:min(100%,calc(var(--card-height) * 1242 / 1660));justify-self:center}
  .workbench-page .card-stage .edit-card{padding:8px;gap:4px}
  .workbench-page .card-stage .edit-card-heading{min-height:22px}
  .workbench-page .card-stage .edit-card-heading .plain-button{font-size:9px;min-height:22px}
  .workbench-page .card-stage .image-editor .image-summary img{height:clamp(24px,calc(var(--card-height) * .25),74px)}
  .workbench-page #results-section{height:100%;min-height:0}
  .workbench-page .card-stage .result-card>a{min-height:24px;line-height:24px;font-size:10px}
  .workbench-page #results-section>.field-help{height:20px;line-height:20px;font-size:10px;margin:0}
}
@media(min-width:1000px) and (max-width:1150px) and (min-height:700px){.workbench-page{--sidebar-width:320px}}
@media(min-width:1000px) and (max-width:1150px) and (min-height:700px){.workbench-page .style-gallery{margin-top:0;padding-bottom:0}.workbench-page .style-gallery>summary{min-height:18px;margin-bottom:0}.workbench-page .style-groups{gap:0;padding:2px 6px}.workbench-page .style-group legend{margin-bottom:1px}.workbench-page .style-grid{row-gap:0}.workbench-page .style-icon{width:20px;height:20px}}
@media(max-width:999px), (max-height:699px){.workbench-page .workspace{padding-top:20px}.workbench-page .source-section textarea{min-height:45vh}.workbench-page .output-column{margin-top:20px}.workbench-page .input-column{display:flex}}
@media(max-width:600px){.workspace-header{flex-wrap:wrap}.workspace-settings{margin-left:auto}.workspace-footer{max-width:100%}.workbench-page #content{font-size:16px}.workspace-settings .header-model-config>summary{min-height:44px}}
@media(max-width:600px), (pointer:coarse){.workbench-page .style-option{min-height:44px}.workbench-page .style-option-name{white-space:normal;overflow:visible}}
@media(min-width:640px) and (pointer:fine){
  .workbench-page{height:auto;min-height:100dvh;overflow-x:hidden;overflow-y:auto}
  .workbench-page .workspace{display:flex;flex-direction:column;width:calc(100% - clamp(24px,4vw,48px));height:auto;min-height:100dvh;padding:clamp(12px,2vh,20px) 0}
  .workbench-page .desk{flex:1;grid-template-columns:minmax(200px,clamp(200px,31.25vw,370px)) minmax(0,1fr);gap:clamp(12px,2vw,28px);min-height:auto}
  .workbench-page .input-column{display:flex;min-width:0}
  .workbench-page .source-section{flex:1;min-height:240px}
  .workbench-page .source-section textarea{flex:1;min-height:0;height:auto;resize:none}
  .workbench-page #content{font-size:clamp(11px,.9vw,12px)}
  .workbench-page .output-column{display:flex;height:auto;min-height:0;flex-direction:column;margin-top:0;padding:0;border:0}
  .workbench-page .card-stage{flex:1;min-height:clamp(240px,35vh,520px)}
  .workbench-page .card-stage .empty-state{height:100%;min-height:0;padding:clamp(24px,4vw,48px) 20px}
  .workbench-page .card-stage .empty-art{width:clamp(100px,12vw,170px);height:auto;margin-bottom:clamp(16px,3vh,28px)}
  .workbench-page .card-stage .empty-state h3{font-size:clamp(16px,1.2vw,19px)}
  .workbench-page .card-stage .empty-state p{max-width:360px;font-size:clamp(12px,.9vw,13px)}
  .workbench-page .card-stage .empty-footnote{margin-top:clamp(24px,4vh,55px)}
}
@media(min-width:640px) and (max-height:699px) and (pointer:fine){
  .workbench-page .desk{align-items:start}
  .workbench-page .input-column{position:sticky;top:12px;align-self:start;height:calc(100dvh - 110px)}
  .workbench-page .source-section{min-height:0}
}

.use-cases{display:grid;grid-template-columns:minmax(220px,.8fr) 2fr;align-items:center;gap:40px;padding-block:26px;border-block:1px solid var(--line)}
.use-cases-heading .eyebrow{font-size:10px}
.use-cases-heading h2{margin-top:7px;font-size:21px;font-weight:550;letter-spacing:-.5px}
.use-cases-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;list-style:none}
.use-cases-list li{display:flex;align-items:flex-start;gap:10px;padding:4px 12px;border-left:1px solid var(--line)}
.use-cases-list li>span{padding-top:2px;color:var(--accent);font-size:10px;font-variant-numeric:tabular-nums}
.use-cases-list h3{font-size:13px;font-weight:550;line-height:1.5}
.use-cases-list p{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:900px){.use-cases{grid-template-columns:1fr;gap:16px}.use-cases-list li:first-child{border-left:0}}
@media(max-width:600px){.use-cases{gap:14px;padding-block:20px}.use-cases-heading h2{font-size:18px}.use-cases-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 0}.use-cases-list li:nth-child(odd){border-left:0}.use-cases-list li{padding-inline:8px}.use-cases-list p{font-size:10px}}
.hero-card-back{left:4%}.hero-card-front{right:3%}
@media(min-width:601px) and (max-width:1150px){.hero-card-back{left:2%}.hero-card-front{right:0}}
@media(max-width:600px){
  .site-header nav>a[href="#gallery"]{display:none}
  .site-header nav .button{flex:none;white-space:nowrap}
  .workbench-page .workspace{min-height:0}
  .workbench-page .desk,.workbench-page .input-column,.workbench-page .source-section{flex:none}
  .workbench-page .desk{gap:20px}
  .workbench-page .source-section textarea{flex:none;min-height:42vh}
  .workbench-page .output-column{margin-top:0}
  .workbench-page .style-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .workbench-page .style-icon{width:28px;height:28px}
  .workbench-page .style-option{min-height:52px}
}
