@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#08090b;--paper:#151719;--raised:#202326;--line:#2b2e31;--ink:#f1f3f5;--muted:#969da5;--accent:#65e8d0;--accent-hover:#8ff3e0;--soft:#153630;--error:#ff9995;--font:'Be Vietnam Pro',system-ui,sans-serif;--sidebar:184px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:13px/1.6 var(--font)}button,input,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;transition:background .18s,color .18s,border-color .18s}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.skip-link{position:fixed;top:-80px;left:20px;padding:12px;background:var(--accent);color:#071410;z-index:100}.skip-link:focus{top:12px}
.topbar{position:fixed;inset:0 0 auto;height:66px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#0e1012;border-bottom:1px solid #202225;z-index:30}.brand{display:flex;align-items:center;gap:8px;font-size:25px;letter-spacing:-1.2px;font-weight:700;line-height:1}.brand-mark{display:grid;place-items:center;width:28px;height:28px;border:1px solid #5d6869;border-radius:50%;color:var(--accent)}.brand-mark svg{width:20px;height:20px}.brand-period{color:var(--accent);margin-left:-6px}.breadcrumb{font-size:11px;color:var(--muted);margin-right:auto;margin-left:35px;display:flex;gap:15px}.breadcrumb strong{color:#d9dee3;font-weight:400}.breadcrumb>span{color:#454b52}.topbar-right{display:flex;gap:24px;align-items:center}.demo-badge,.header-help{display:flex;align-items:center;gap:8px;min-height:44px;background:none;border:0;font-size:11px;color:var(--muted)}.header-help{color:var(--ink)}.header-help svg{width:16px}.demo-badge:hover,.header-help:hover{color:var(--accent)}.status-dot{display:inline-block;width:5px;height:5px;background:var(--accent);border-radius:50%;flex-shrink:0}.sidebar{position:fixed;inset:66px auto 0 0;width:var(--sidebar);padding:25px 12px 16px;display:flex;flex-direction:column;z-index:20;background:#0b0d0f;border-right:1px solid #191c1f}.workspace-switch{display:none}.nav-label{display:block;font-size:8px;letter-spacing:1px;color:#8b929b;padding:0 12px;margin-bottom:15px}.nav-item{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:11px 12px;border:0;border-radius:8px;background:transparent;font-size:11px;text-align:left;white-space:nowrap;margin:4px 0;color:#b9bfc6}.nav-item:hover{background:#1a1d20;color:var(--ink)}.nav-item.active{background:#222629;color:var(--ink)}.nav-item.active>svg{color:var(--accent)}.nav-item svg{width:17px;height:17px}.new-tag{font-size:7px;line-height:1.5;padding:2px 4px;border:1px solid #396052;border-radius:3px;color:var(--accent);margin-left:auto}.nav-external{display:none}.library-label{border-top:1px solid var(--line);padding-top:24px;margin-top:25px}.count{margin-left:auto;color:var(--muted);font-size:10px}.sidebar-bottom{margin-top:auto}.tip-card{display:none}.sidebar-footer{border-top:1px solid var(--line);display:flex;gap:7px;align-items:center;padding:18px 8px 0;margin-top:10px;font-size:8px;color:var(--muted)}.sidebar-footer>span:last-child{margin-left:auto}
.app-body{margin-left:var(--sidebar);padding-top:66px}main{position:relative;min-height:calc(100vh - 66px);padding:24px 28px 290px;max-width:1720px;margin:auto}.workspace-tabs{position:absolute;right:28px;top:22px;display:flex;gap:3px;border:1px solid #24272b;background:#15181a;border-radius:24px;padding:3px;z-index:5}.workspace-tabs button{display:flex;align-items:center;gap:7px;border:0;background:none;padding:7px 14px;border-radius:20px;min-height:36px;color:#aab0b7;font-size:11px}.workspace-tabs button:hover,.view-templates #workspace-explore{background:#292d31;color:#fff}.workspace-tabs svg{width:15px;height:15px}.workspace-tabs span{font-size:9px;color:var(--muted)}.page-heading{margin:0;text-align:center;padding:clamp(100px,23vh,260px) 0 0}.page-heading>div{max-width:700px;margin:auto}.eyebrow{color:var(--muted);font-size:10px;letter-spacing:2.2px;font-weight:500;margin:0 0 15px}.page-heading h1{font-size:clamp(26px,2.55vw,38px);line-height:1.45;letter-spacing:-1.2px;font-weight:500;margin:0 0 12px}.page-heading p:last-of-type{font-size:12px;color:var(--muted);margin:0}.mobile-break{display:none}.starter-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:30px}.starter-actions button{display:flex;gap:8px;align-items:center;background:#111416;color:#afb7be;border:1px solid #292d31;border-radius:22px;font-size:11px;min-height:42px;padding:8px 15px}.starter-actions button:hover{color:var(--accent);border-color:#46645c}.starter-actions svg{width:15px;height:15px}.page-heading>button{position:absolute;top:26px;left:28px}.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;padding:10px 16px;border-radius:8px;font-size:11px;white-space:nowrap;font-weight:500}.button svg{width:16px;height:16px}.secondary{background:#16191c;color:#c4cbd1;border-color:#30353a}.secondary:hover{background:#252a2e;border-color:#55616b}.primary{background:var(--accent);color:#08231b}.primary:hover{background:var(--accent-hover)}.main-footer{display:none}
.studio-layout{display:contents}.composer{position:fixed;bottom:24px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);width:min(1050px,calc(100vw - var(--sidebar) - 80px));padding:17px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#181a1d;border:1px solid #3a3e43;border-radius:15px;box-shadow:0 10px 40px #0004;z-index:15}.composer-heading{display:none}.form-section{padding:0;border:0;margin:0;min-width:0}.reference-section{order:1;flex:0 0 94px;align-self:flex-start}.reference-section>.label-row{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.upload-zone{width:94px;min-height:91px;position:relative;display:grid;place-items:center;border:1px dashed #5a626a;border-radius:9px;background:#25292c;cursor:pointer}.upload-zone:hover,.upload-zone.dragging{background:#2b3532;border-color:var(--accent)}.upload-zone:focus-within{outline:2px solid var(--accent);outline-offset:3px}.upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}#upload-empty{text-align:center;padding:12px 3px}.upload-icon{display:block;color:#b7c4c3;line-height:1;margin-bottom:6px}.upload-icon svg{width:22px;height:22px}#upload-empty strong{font-size:10px;font-weight:400}#upload-help{display:none}#upload-filled{width:92px;height:89px;padding:4px}#reference-thumb{width:100%;height:100%;object-fit:contain;border-radius:6px}#upload-filled>div{display:none}#remove-reference{min-height:28px;font-size:9px;padding:0;margin-top:3px}.prompt-section{order:2;flex:1 1 calc(100% - 110px);align-self:stretch;position:relative;padding-bottom:7px}.prompt-section .label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}.prompt-section label{font-size:11px;color:#c4cbd1;font-weight:400}.step-number{display:none}.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font-size:10px;padding:6px 0;min-height:32px;color:#a8b6bb}.text-button:hover{color:var(--accent)}.text-button svg{width:14px;height:14px}.prompt-box{border:0;border-radius:6px}.prompt-box:focus-within{box-shadow:0 0 0 1px #536660}.prompt-box textarea{display:block;width:100%;height:68px;min-height:68px;max-height:180px;resize:vertical;background:transparent;color:#eef0f2;border:0;padding:7px 9px 17px;font-size:12px;line-height:1.75}.prompt-box textarea:focus-visible{outline:none}.prompt-box textarea::placeholder{color:#959da6}.prompt-bottom{position:absolute;bottom:5px;right:8px;font-size:9px;color:#9aa2aa;pointer-events:none}.prompt-bottom>span:first-child{display:none}.prompt-section>.field-hint{display:none}.field-error{margin:5px 0;color:var(--error);font-size:10px}.field-error:empty{display:none}.reference-section .field-error{width:160px}.engine-tag{order:3;display:flex;align-items:center;gap:7px;min-height:38px;border:1px solid #393e43;border-radius:22px;padding:6px 12px;font-size:11px;color:#d9dee2}.engine-tag svg{width:16px;height:16px}.engine-tag>span{font-size:7px;letter-spacing:.5px;color:var(--accent);border-left:1px solid #41474d;padding-left:7px}.control-menu{position:relative;order:4}.control-menu summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 12px;border:1px solid #3b4147;background:#1b1f22;border-radius:22px;font-size:11px;cursor:pointer;color:#cdd3d8}.control-menu summary::-webkit-details-marker{display:none}.control-menu summary:hover,.control-menu[open] summary{background:#2b3236;border-color:#5b6e67}.control-menu summary svg{width:15px;height:15px}.chevron{font-size:14px;margin-left:6px;color:#99a3a8}.control-menu>fieldset{position:absolute;bottom:calc(100% + 14px);left:0;width:310px;background:#23272b;border:1px solid #454d54;box-shadow:0 6px 24px #0008;border-radius:12px;padding:18px;margin:0;z-index:25}.control-menu legend{float:left;width:100%;font-size:12px;margin-bottom:16px;font-weight:500;padding:0}.style-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;clear:both}.style-option{position:relative;cursor:pointer;text-align:center;font-size:10px;color:#c7cdd2}.style-option input,.ratio-options input{position:absolute;opacity:0;width:1px;height:1px}.style-sample{height:55px;display:grid;place-items:center;border:3px solid #282c30;outline:1px solid #555c62;border-radius:7px;margin-bottom:8px;overflow:hidden}.style-option input:checked+.style-sample{outline:2px solid var(--accent)}.style-option input:focus-visible+.style-sample{outline:3px solid var(--accent);outline-offset:3px}.style-option input:checked~span:last-child{color:var(--accent)}.style-sample span{position:relative;width:17px;height:28px;border-radius:3px;background:#f0e6c9;box-shadow:7px 8px 8px #0003}.style-sample span:before{content:'';position:absolute;width:9px;height:6px;left:4px;top:-5px;background:#635947;border-radius:2px}.style-sample span:after{content:'';position:absolute;inset:9px 3px 6px;background:#fff9}.natural{background:linear-gradient(130deg,#dbdec1 45%,#c7cfaa 46%,#ebead9 70%)}.minimal{background:linear-gradient(145deg,#f8f7f3 50%,#e4e3de 51%)}.bold{background:linear-gradient(145deg,#e5a685 45%,#cd7658 46%)}.luxury{background:linear-gradient(130deg,#484938,#252e25)}.format-field{min-width:0}.ratio-options{display:flex;gap:8px;clear:both}.ratio-options label{position:relative;flex:1;cursor:pointer}.ratio-options label>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:64px;border:1px solid #59616a;border-radius:6px;font-size:10px}.ratio-options input:checked+span{border-color:var(--accent);background:#253e38;color:var(--accent)}.ratio-options input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.ratio-icon{width:14px;height:14px;display:block;border:1px solid currentColor;border-radius:2px}.ratio-icon.portrait{width:12px;height:16px}.ratio-icon.story{width:10px;height:18px}.ratio-icon.landscape{width:18px;height:10px}.field-hint{font-size:10px;color:var(--muted);margin:12px 0 0}.generate-area{order:6;margin-left:auto;display:flex;align-items:center;gap:14px}.generate-area>p{display:none}.generate-button{border-radius:22px;min-height:40px;padding:9px 18px;font-size:11px;gap:10px}.generate-button svg:first-child{display:none}.generate-button svg:last-child{width:16px;height:16px}.composer:after{content:'Bố cục xem thử · Chưa kết nối dịch vụ tạo ảnh AI';position:absolute;top:calc(100% + 7px);left:0;right:0;text-align:center;color:#969da5;font-size:9px;pointer-events:none}
.preview-panel{display:none}.has-result .page-heading{padding:0}.has-result .page-heading>div{display:none}.has-result .preview-panel{display:block;width:min(760px,100%);margin:65px auto 0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;height:38px}.preview-toolbar>div{display:flex;gap:8px;align-items:center;font-size:11px;color:#b6bec6}.preview-toolbar strong{font-weight:400}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--muted);border-radius:8px}.icon-button:hover{background:#242b2d;color:var(--accent)}.icon-button svg{width:17px;height:17px}.preview-stage{position:relative;display:grid;place-items:center;border-radius:10px;background:#0e1113;padding:12px;border:1px solid #242a2f}.preview-image-wrap{position:relative;width:100%;display:flex;justify-content:center}.preview-image-wrap>img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 600px);object-fit:contain;border-radius:4px}.image-label{position:absolute;top:9px;left:9px;display:flex;align-items:center;gap:6px;padding:5px 8px;background:#101619d9;border:1px solid #4d5b5a;border-radius:4px;font-size:8px;letter-spacing:.5px;color:#dce6e3}.image-label svg{width:12px;height:12px}.preview-caption{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 0 8px}.tiny-label{color:var(--muted);font-size:9px;letter-spacing:1px}.preview-caption h3{font-size:15px;font-weight:500;margin:3px 0}.preview-dimensions{font-size:10px;color:var(--muted)}.preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.preview-bottom p{font-size:10px;color:var(--muted);margin:0}#result-actions{display:flex;gap:8px}#result-actions .button{min-height:36px;font-size:10px;padding:7px 13px}.generation-status{font-size:10px;color:var(--muted);margin:8px 0 0}.generation-status:empty{display:none}.preview-loader{position:fixed;inset:66px 0 265px var(--sidebar);background:#0b0e11ee;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:12;font-size:12px}.is-rendering .preview-panel{display:block}.spinner{width:28px;height:28px;border:2px solid #35413c;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.inspiration{display:none}.view-templates .inspiration{display:block;padding-top:86px;max-width:1100px;margin:auto}.view-templates .page-heading>div,.view-templates .preview-panel{display:none}.view-templates .page-heading{padding:0}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px;gap:20px}.section-heading h2{font-size:24px;letter-spacing:-.7px;font-weight:500;margin:0}.section-heading .eyebrow{font-size:9px;margin-bottom:8px}.section-heading>span{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.section-heading>span svg{width:14px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-card{position:relative;text-align:left;padding:0;background:#15191c;border:1px solid #30373c;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.template-card:hover{border-color:#649286;background:#202b28}.template-art{width:100%;height:clamp(140px,22vh,250px);overflow:hidden;display:block}.template-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.template-card:hover img{transform:scale(1.04)}.template-art.cool img{filter:saturate(.45)}.template-art.dark img{filter:brightness(.55) saturate(.6)}.template-card>span:nth-child(2){padding:17px}.template-card small{font-size:8px;letter-spacing:1.5px;color:var(--muted);display:block}.template-card strong{display:block;font-size:15px;font-weight:500;margin:5px 0}.template-description{font-size:11px;color:var(--muted)}.template-card>svg{position:absolute;right:17px;bottom:20px;width:17px;color:var(--muted)}
#library-view .page-heading{padding:70px 0 36px;text-align:left}#library-view .page-heading>div{margin:0;max-width:100%}#library-view h1{font-size:30px}.view-library main{padding-bottom:50px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-content:start}.library-empty{grid-column:1/-1;text-align:center;padding:100px 20px;color:var(--muted);border:1px dashed #394149;border-radius:12px}.library-empty svg{width:36px;height:36px}.library-empty h2{font-size:23px;font-weight:500;color:var(--ink)}.library-empty p{font-size:12px}.saved-card{background:#171b1e;border:1px solid #30373d;border-radius:12px;overflow:hidden}.saved-card>img{display:block;width:100%;height:240px;object-fit:contain;background:#111517}.saved-card-content{padding:17px}.saved-card h3{font-size:14px;font-weight:500;margin:0 0 5px}.saved-card p{font-size:12px;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.saved-actions{display:flex;gap:10px;margin-top:16px}
dialog{width:calc(100% - 32px);max-width:550px;max-height:90vh;overflow:auto;background:#1c2225;color:var(--ink);border:1px solid #45504f;border-radius:15px;padding:26px}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header .eyebrow{margin:0;font-size:9px}dialog h2{font-size:26px;font-weight:500;letter-spacing:-.8px;margin:14px 0 24px}.guide-list{padding-left:24px}.guide-list li{padding-left:6px;margin-bottom:20px}.guide-list strong{font-weight:500}.guide-list p{font-size:12px;color:#afb9bf;margin-top:7px}.notice{padding:15px;background:#243a33;border:1px solid #3e5a4e;border-radius:8px;font-size:11px;color:#c8dbd1;margin:20px 0}#image-dialog{max-width:900px;padding:12px;background:#12181a}#image-dialog .close-dialog{position:absolute;top:18px;right:18px;background:#1d272be8}#full-image{display:block;width:100%;max-height:80vh;object-fit:contain}.toast{position:fixed;bottom:270px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);max-width:calc(100vw - 32px);padding:13px 19px;border:1px solid #5d8e7f;border-radius:9px;background:#24443b;color:#ecfff8;box-shadow:0 8px 24px #0005;font-size:12px;z-index:60}
@media(min-width:1600px){.composer{bottom:32px}.page-heading{padding-top:27vh}.preview-image-wrap>img{max-height:calc(100vh - 608px)}}
@media(max-width:1150px){:root{--sidebar:164px}.sidebar{padding-left:8px;padding-right:8px}.nav-item{font-size:10px;gap:8px;padding:10px}.new-tag{display:none}.breadcrumb{display:none}.composer{width:calc(100vw - var(--sidebar) - 48px)}.composer .engine-tag>span{display:none}.generate-button{padding:9px 13px}.engine-tag,.control-menu summary{font-size:10px;padding:6px 10px}.composer{gap:10px}.section-heading>span{display:none}}
@media(max-width:900px){:root{--sidebar:72px}.sidebar{padding:22px 10px}.nav-label,.new-tag,.count,.sidebar-footer,.sidebar-bottom{display:none}.nav-item{font-size:0;padding:11px;justify-content:center}.nav-item svg{width:21px;height:21px}.library-label{display:block;border-top:1px solid #333;padding:0;margin:22px 0;font-size:0}.topbar{padding:0 20px}.composer{width:calc(100vw - var(--sidebar) - 40px)}.page-heading h1{font-size:29px}.control-menu>fieldset{width:280px}.template-card strong{font-size:12px}.template-card>svg{display:none}.template-description{font-size:10px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar:0px}.topbar{height:60px;padding:0 17px}.brand{font-size:23px}.header-help{font-size:0;gap:0;width:44px;justify-content:center}.header-help svg{width:19px}.topbar-right{gap:10px}.demo-badge{font-size:9px}.sidebar{position:fixed;inset:60px 0 auto;width:100%;height:60px;padding:6px 16px;border-right:0;border-bottom:1px solid #242b2e;display:block;z-index:22}.sidebar nav{display:flex;justify-content:space-between;gap:10px}.nav-item{width:auto;flex:1;min-height:44px;margin:0;font-size:0;padding:8px}.nav-item svg{width:20px;height:20px}.nav-label,.library-label{display:none}.app-body{margin:0;padding-top:120px}main{min-height:calc(100vh - 120px);padding:20px 16px 38px}.page-heading{padding:100px 8px 45px}.page-heading h1{font-size:27px;letter-spacing:-.8px;max-width:320px;margin:0 auto 15px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.page-heading p:last-of-type{font-size:11px;max-width:310px;margin:auto}.page-heading>button{top:23px;left:16px;width:42px;font-size:0;padding:0}.page-heading>button>span{font-size:22px}.workspace-tabs{top:22px;right:16px}.workspace-tabs button{font-size:10px;padding:6px 11px;min-height:36px}.workspace-tabs svg{width:14px}.starter-actions{gap:8px;margin-top:24px}.starter-actions button{font-size:10px;padding:8px 11px;min-height:44px}.studio-layout{display:flex;flex-direction:column;gap:22px}.composer{position:relative;left:auto;bottom:auto;transform:none;width:100%;padding:13px;border-radius:12px;gap:10px;order:2;margin-bottom:16px;z-index:10}.reference-section{flex-basis:68px}.upload-zone{width:68px;min-height:80px}.upload-icon svg{width:20px;height:20px}#upload-empty strong{font-size:9px}#upload-filled{width:66px;height:78px}.prompt-section{flex-basis:calc(100% - 78px)}.prompt-section .label-row{margin:0;min-height:30px}.prompt-section label{font-size:10px}.prompt-section .text-button{font-size:0;min-width:32px;min-height:32px}.prompt-section .text-button svg{width:17px;height:17px}.prompt-box textarea{font-size:16px;height:115px;min-height:115px;padding:6px 2px 20px}.prompt-bottom{font-size:9px}.engine-tag{display:none}.control-menu summary{min-height:44px;font-size:10px;padding:7px 10px;gap:6px}.control-menu summary svg{width:14px}.chevron{margin:0}.generate-area{margin-left:auto}.generate-button{min-height:44px;font-size:10px;padding:8px 12px;gap:6px}.generate-button svg:last-child{display:none}.control-menu>fieldset{bottom:calc(100% + 12px);width:270px;padding:16px;left:0}.ratio-menu>fieldset{left:-105px}.has-result .page-heading{padding:0}.has-result .preview-panel{order:1;margin:68px 0 0;width:100%}.preview-image-wrap>img{max-height:390px}.preview-caption h3{font-size:15px}.preview-bottom{align-items:start}.preview-bottom p{max-width:50%;font-size:10px}#result-actions{gap:6px}#result-actions .button{padding:8px 10px;min-height:40px}.generation-status{line-height:1.7}.preview-loader{inset:120px 0 0}.toast{left:50%;bottom:28px;width:max-content;max-width:calc(100vw - 32px)}.view-templates .inspiration{padding-top:0;margin-bottom:24px;order:1}.view-templates #studio-view{display:flex;flex-direction:column}.view-templates .studio-layout{order:3}.view-templates .inspiration{order:2;margin-top:78px}.view-templates .page-heading{order:0}.template-grid{grid-template-columns:1fr;gap:12px}.template-card{flex-direction:row;align-items:center}.template-art{width:100px;height:108px;flex-shrink:0}.template-card>span:nth-child(2){padding:15px}.template-card strong{font-size:14px}.template-description{font-size:10px}.section-heading h2{font-size:22px}.library-grid{gap:14px}.saved-card>img{height:160px}.saved-card-content{padding:12px}.saved-actions{flex-wrap:wrap;gap:6px}.saved-actions .button{font-size:10px;padding:8px 10px}#library-view .page-heading{padding-top:68px;padding-bottom:28px}.library-empty{padding:65px 15px}.library-empty h2{font-size:20px}}
@media(max-width:380px){.topbar{padding:0 12px}.topbar-right{gap:3px}.brand{font-size:21px}.brand-mark{width:25px;height:25px}main{padding-left:12px;padding-right:12px}.composer{padding:11px;gap:8px}.control-menu summary{padding:7px 8px;font-size:9px;gap:4px}.control-menu summary svg{width:12px}.generate-button{font-size:9px;padding:8px 10px}.page-heading h1{font-size:25px}.starter-actions button{font-size:9px}.library-grid{grid-template-columns:1fr}.ratio-menu>fieldset{left:-92px}}
@media(min-width:761px) and (max-height:720px){main{padding-bottom:40px}.page-heading{padding-top:100px;padding-bottom:55px}.composer{position:relative;left:auto;transform:none;bottom:auto;width:min(1050px,100%);margin:30px auto}.studio-layout{display:flex;flex-direction:column}.composer{order:2}.has-result .preview-panel{order:1}.preview-image-wrap>img{max-height:300px}.view-templates #studio-view{display:flex;flex-direction:column}.view-templates .inspiration{order:1}.view-templates .studio-layout{order:2}.preview-loader{inset:66px 0 0 var(--sidebar)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Seller landing page: introduces the studio before entering the editing workspace. */
body.landing-mode{--bg:#08090b}.landing-mode .sidebar{display:none}.landing-mode .app-body{margin-left:0}.landing-mode .topbar{padding:0 clamp(22px,5vw,76px)}.landing-mode .breadcrumb{display:none}.landing-nav{display:flex;align-items:center;gap:29px;margin:0 auto}.landing-nav a,.landing-nav button{padding:10px 0;min-height:44px;display:flex;align-items:center;border:0;background:none;color:#adb4bc;font-size:11px}.landing-nav a:hover,.landing-nav button:hover{color:var(--accent)}.landing-mode .topbar-right{gap:16px}.header-start{min-height:38px;padding:8px 15px;border-radius:22px;font-size:10px}.header-start svg{width:14px}.landing-mode main{max-width:1550px;padding:66px clamp(25px,5.5vw,84px) 0}.landing-hero{position:relative;overflow:clip;min-height:min(680px,calc(100vh - 145px));display:grid;grid-template-columns:1fr .88fr;align-items:center;gap:clamp(48px,8vw,125px);padding:48px 5% 48px 7%;border-bottom:1px solid #25292c}.hero-copy{position:relative;z-index:2}.hero-copy .eyebrow{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:1.8px;margin-bottom:23px}.hero-live{width:6px;height:6px;background:var(--accent);border-radius:50%;display:inline-block;flex:none}.hero-copy h1{font-size:clamp(54px,7.4vw,104px);line-height:1.01;letter-spacing:-.075em;font-weight:500;margin:0 0 22px}.hero-description{max-width:415px;font-size:14px;line-height:1.9;color:#a5adb5;margin:0}.hero-actions{display:flex;gap:11px;align-items:center;margin-top:30px}.hero-actions .button{min-height:48px;border-radius:25px;padding:12px 20px;font-size:11px}.hero-cta{gap:17px}.hero-cta svg{width:16px}.hero-footnote{display:flex;align-items:center;gap:8px;color:#969da5;font-size:10px;margin:23px 0 0}.hero-footnote svg{width:14px;height:14px;color:var(--accent)}.hero-art{position:relative;width:100%;max-width:510px;justify-self:center;padding:16px 22px 27px 0}.hero-art-image{position:relative;overflow:hidden;aspect-ratio:1/1.06;background:#202323;border-radius:5px}.hero-art-image:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 75%,#090b09a6)}.hero-art-image>img{width:100%;height:100%;object-fit:cover;display:block}.hero-photo-label{position:absolute;z-index:1;left:16px;top:16px;display:flex;align-items:center;gap:8px;padding:8px 11px;background:#0d1110e8;border:1px solid #ffffff24;border-radius:3px;color:#e4e9e6;font-size:8px;letter-spacing:1px}.hero-photo-label .hero-live{width:5px;height:5px}.hero-card{position:absolute;z-index:2;bottom:2px;right:-9px;left:20px;min-height:76px;display:flex;align-items:center;gap:13px;padding:12px 17px;background:#171b1d;border:1px solid #353b3d;border-radius:8px;box-shadow:0 16px 40px #0007}.hero-card-icon{width:37px;height:37px;display:grid;place-items:center;border:1px solid #38695c;border-radius:8px;background:#19352e;color:var(--accent)}.hero-card-icon svg{width:19px}.hero-card>div{display:flex;flex-direction:column;gap:3px}.hero-card>div strong{font-size:11px;font-weight:500}.hero-card>div span{font-size:9px;color:var(--muted)}.hero-card-arrow{margin-left:auto;color:var(--accent);width:17px}.hero-orbit{position:absolute;z-index:-1;border:1px solid #22332f;border-radius:50%;pointer-events:none}.orbit-one{width:140px;height:140px;right:-46px;top:10px}.orbit-two{width:72px;height:72px;left:-30px;bottom:70px}.landing-divider{display:flex;justify-content:space-between;gap:15px;padding:19px 7% 20px;color:#969da5;font-size:9px;letter-spacing:1.5px}.landing-features{display:grid;grid-template-columns:repeat(3,1fr);padding:34px 7% 75px}.landing-feature{position:relative;padding:16px 28px 18px 0;border-right:1px solid #292d30}.landing-feature+.landing-feature{padding-left:29px}.landing-feature:last-child{border:0}.feature-index{font-size:9px;letter-spacing:1.2px;color:#a0a9aa}.feature-icon{width:34px;height:34px;display:grid;place-items:center;color:var(--accent);background:#142621;border:1px solid #263c34;border-radius:8px;margin-top:25px}.feature-icon svg{width:17px;height:17px}.landing-feature h2{font-size:15px;font-weight:500;letter-spacing:-.3px;margin:14px 0 5px}.landing-feature p{font-size:11px;color:#aab2b8;max-width:290px;line-height:1.8;margin:0}.landing-showcase{display:grid;grid-template-columns:.62fr 1.5fr;gap:58px;align-items:center;border-top:1px solid #25292c;border-bottom:1px solid #25292c;padding:66px 2%}.showcase-copy .eyebrow{font-size:8px;letter-spacing:1.5px}.showcase-copy h2,.how-heading h2{font-size:clamp(26px,3.3vw,42px);font-weight:500;line-height:1.3;letter-spacing:-1.3px;margin:14px 0}.showcase-copy>p:not(.eyebrow){max-width:280px;color:#aab2b8;font-size:11px;line-height:1.9}.showcase-copy>a,.landing-footer>a:last-child{display:inline-flex;align-items:center;gap:10px;color:var(--accent);font-size:11px;margin-top:17px}.showcase-copy>a svg,.landing-footer>a:last-child svg{width:14px}.showcase-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.showcase-card{min-width:0;border:1px solid #303538;background:#14181a;border-radius:7px;overflow:hidden}.showcase-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.showcase-minimal{filter:saturate(.4) brightness(1.06)}.showcase-luxury{filter:brightness(.57) saturate(.7)}.showcase-card>span{display:flex;flex-direction:column;padding:11px}.showcase-card small{font-size:8px;letter-spacing:1px;color:#a0aaa9}.showcase-card strong{font-weight:400;font-size:11px;margin-top:4px}.landing-how{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center;padding:80px 8%}.how-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.how-heading h2{font-size:clamp(29px,4vw,48px)}.how-heading>.button{margin-top:12px;border-radius:22px}.how-steps{display:flex;flex-direction:column}.how-steps article{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:18px 0;border-bottom:1px solid #272c2e}.how-steps article:last-child{border-bottom:0}.how-steps article>span{font-size:10px;color:var(--accent);padding-top:2px}.how-steps strong{font-size:12px;font-weight:500}.how-steps p{font-size:11px;color:#aab2b8;margin:5px 0 0;line-height:1.8}.landing-footer{min-height:76px;border-top:1px solid #25292c;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 4%}.landing-footer .brand{font-size:20px}.landing-footer .brand-mark{width:25px;height:25px}.landing-footer>span{font-size:10px;color:#a0a9af}.landing-footer>a:last-child{margin:0}
@media(max-width:900px){.landing-mode .topbar{padding:0 24px}.landing-nav{gap:18px}.landing-hero{padding-left:2%;padding-right:0;gap:32px;grid-template-columns:1fr .86fr;min-height:570px}.hero-copy h1{font-size:clamp(52px,8.2vw,74px)}.hero-description{font-size:12px}.hero-art{padding-right:14px}.hero-card{left:7px;right:-7px;min-height:68px}.landing-features{padding-left:2%;padding-right:2%}.landing-feature{padding-right:17px}.landing-feature+.landing-feature{padding-left:17px}.landing-showcase{grid-template-columns:.7fr 1.3fr;gap:24px}.landing-how{padding-left:3%;padding-right:3%;gap:35px}}
@media(max-width:760px){.landing-mode .topbar{height:60px;padding:0 16px}.landing-mode .sidebar{display:none}.landing-mode .app-body{margin:0;padding-top:60px}.landing-mode .topbar-right{gap:5px}.landing-mode .demo-badge{display:none}.landing-nav{display:none}.landing-mode main{padding:0 19px 0}.header-start{min-height:36px;padding:7px 12px}.landing-hero{min-height:0;grid-template-columns:1fr;gap:31px;padding:71px 0 40px}.hero-copy .eyebrow{font-size:8px;margin-bottom:17px}.hero-copy h1{font-size:clamp(58px,14vw,82px);margin-bottom:16px}.hero-description{font-size:12px;max-width:390px}.hero-actions{margin-top:22px;gap:8px;flex-wrap:wrap}.hero-actions .button{min-height:46px;padding:11px 14px;font-size:10px}.hero-footnote{font-size:10px;line-height:1.7;margin-top:17px}.hero-art{max-width:460px;padding:0 19px 21px 0}.hero-art-image{aspect-ratio:1/1}.hero-card{min-height:64px;left:10px;right:4px;bottom:0;padding:9px 12px}.landing-divider{padding:16px 2%;font-size:8px;letter-spacing:.8px}.landing-divider>span:last-child{display:none}.landing-features{grid-template-columns:1fr;padding:14px 2% 40px}.landing-feature,.landing-feature+.landing-feature{padding:18px 0;border-right:0;border-bottom:1px solid #282d30}.landing-feature:last-child{border-bottom:0}.feature-icon{margin-top:13px}.landing-feature h2{margin-top:10px}.landing-feature p{font-size:12px}.landing-showcase{grid-template-columns:1fr;gap:23px;padding:43px 2%}.showcase-copy h2{font-size:31px}.showcase-cards{gap:8px}.showcase-card>span{padding:8px}.showcase-card small{font-size:7px;letter-spacing:.6px}.showcase-card strong{font-size:10px;line-height:1.6}.landing-how{grid-template-columns:1fr;gap:25px;padding:47px 3%}.how-heading h2{font-size:34px}.how-steps article{padding:14px 0}.landing-footer{flex-wrap:wrap;padding:18px 2%;gap:8px}.landing-footer>span{width:100%;order:3}.landing-footer .brand{font-size:19px}.landing-footer>a:last-child{font-size:10px}}
@media(max-width:380px){.landing-mode main{padding-left:14px;padding-right:14px}.hero-copy h1{font-size:56px}.hero-actions .button{padding:10px 11px}.hero-footnote{font-size:9px}.showcase-cards{gap:5px}.showcase-card strong{font-size:9px}}
@media(max-width:760px){.showcase-cards{grid-template-columns:1fr;gap:9px}.showcase-card{display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center}.showcase-card img{width:94px;height:94px;aspect-ratio:1}.showcase-card>span{padding:12px}.showcase-card small{font-size:8px}.showcase-card strong{font-size:11px}}
/* Monthly plans */
.pricing-section{border-top:1px solid #25292c;padding:74px 4% 68px;scroll-margin-top:86px}.pricing-heading{text-align:center;margin:0 auto 31px}.pricing-heading h2{font-size:clamp(25px,3vw,38px);letter-spacing:-1.1px;font-weight:500;margin:0 0 9px}.pricing-heading>p:not(.eyebrow){font-size:11px;color:#aab2b8;margin:0}.billing-period{margin:16px auto 0;display:inline-flex;align-items:center;gap:7px;font-size:9px;color:#c4cbc9}.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-width:1010px;margin:auto;align-items:stretch}.pricing-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:23px 21px 20px;border:1px solid #30373c;border-radius:10px;background:#121517}.pricing-card.recommended{border-color:#58a993;background:#141b1b}.plan-index{display:block;font-size:8px;letter-spacing:1.3px;color:#a1a9ad;min-height:21px}.pricing-card h3{font-size:19px;letter-spacing:-.5px;font-weight:500;margin:8px 0 2px}.plan-copy{font-size:10px;color:#a6afb5;min-height:33px;margin:2px 0 17px}.plan-price{font-size:31px;letter-spacing:-1.2px;font-weight:500;line-height:1.2}.plan-price>small{font-size:13px;letter-spacing:0;margin-left:3px}.plan-price sup{font-size:9px;font-weight:400;color:#a1a9af;vertical-align:baseline;margin-left:4px}.plan-credits{display:flex;align-items:baseline;gap:9px;padding:13px 0;margin:13px 0 15px;border-top:1px solid #303639;border-bottom:1px solid #303639}.plan-credits strong{font-size:25px;font-weight:500;color:#f1f3f5}.plan-credits span{font-size:10px;color:#b1b8bc}.pricing-cta{width:100%;min-height:43px;justify-content:space-between}.pricing-cta svg{width:15px}.plan-features{display:flex;flex-direction:column;gap:12px;list-style:none;padding:20px 0 0;margin:0}.plan-features li{display:flex;align-items:center;gap:8px;font-size:10px;color:#c2c9cd}.plan-features svg{width:14px;height:14px;color:var(--accent)}.pricing-note{text-align:center;font-size:10px;color:#aab2b8;margin:20px 0 0}.checkout-detail{font-size:13px;color:#c6cece;line-height:1.8}.checkout-detail strong{color:#fff;font-weight:600}.output-options{min-width:210px}.output-options legend{float:none;margin:0 0 12px}.output-options>label:not(.optimizer-toggle){display:block;font-size:10px;color:#b8c0c5;margin-bottom:5px}.output-options select{width:100%;min-height:40px;background:#171c1f;color:#f2f4f5;border:1px solid #454d54;border-radius:6px;padding:8px;font-size:11px}.optimizer-toggle{display:flex;align-items:center;gap:8px;font-size:10px;color:#c3cbd0;margin-top:13px;cursor:pointer}.optimizer-toggle input{width:15px;height:15px;accent-color:#65e8d0}.output-gallery{display:flex;gap:10px;overflow:auto;padding:13px 0 4px}.output-thumb{position:relative;flex:none;width:75px;height:75px;border:2px solid transparent;padding:0;background:#15191c;border-radius:7px;overflow:hidden}.output-thumb[aria-pressed="true"]{border-color:var(--accent)}.output-thumb img{width:100%;height:100%;object-fit:cover;display:block}.output-thumb>span{position:absolute;left:4px;bottom:4px;background:#080a0ce8;border-radius:3px;padding:2px 4px;font-size:8px}.has-result .output-gallery{width:min(760px,100%);margin:0 auto}.has-result .generation-status{max-width:760px;margin-left:auto;margin-right:auto}.landing-examples{scroll-margin-top:80px}.landing-how{scroll-margin-top:80px}
@media(max-width:900px){.landing-nav{gap:14px}.landing-mode .topbar-right{gap:9px}.pricing-card{padding:19px 15px}.pricing-section{padding-left:2%;padding-right:2%}.plan-price{font-size:26px}}
@media(max-width:760px){.pricing-section{padding:48px 2% 42px;scroll-margin-top:72px}.pricing-heading{margin-bottom:20px}.pricing-heading h2{font-size:26px}.pricing-grid{grid-template-columns:1fr;gap:12px}.pricing-card{padding:20px}.plan-copy{min-height:0}.plan-price{font-size:31px}.plan-features{display:grid;grid-template-columns:1fr;gap:10px}.pricing-note{font-size:10px;line-height:1.8}.output-menu summary{font-size:9px}.output-options{width:230px!important;left:auto!important;right:0!important}.output-thumb{width:68px;height:68px}}
/* AI product examples */
.hero-art-image>img{object-fit:contain;padding:3%;background:#202323}
.showcase-card img{aspect-ratio:1.25/1;object-fit:contain;padding:4%;background:#171b1d}
.showcase-card>span{padding:8px 10px}
.showcase-cards{height:fit-content;align-content:start;grid-auto-rows:max-content}
.showcase-card{height:fit-content;align-self:start}
.showcase-card img{height:clamp(120px,14vw,160px);aspect-ratio:auto}
@media(max-width:760px){.showcase-card img{height:auto;aspect-ratio:1}}
.showcase-copy .showcase-note{font-size:9px;color:#77827f;margin-top:12px;font-style:normal}
@media(max-width:760px){.showcase-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.showcase-card{display:block}.showcase-card img{width:100%;height:auto;aspect-ratio:1}.showcase-card>span{padding:9px}.showcase-card small{font-size:7px}.showcase-card strong{font-size:10px;line-height:1.5}}

/* Colorful storefront; workspace retains its own theme. */
.landing-mode{--accent:#c4b5fd;--accent-hover:#ddd6fe;--muted:#b7b0c9;background:#100e1b;color:#f6f3ff}
.landing-mode .topbar{background:#151222;border-bottom-color:#322a46}
.landing-page{background:radial-gradient(ellipse at 85% 8%,#67378e38,transparent 35%),radial-gradient(ellipse at 5% 40%,#214a6830,transparent 30%)}
.landing-mode .primary{background:linear-gradient(110deg,#c4b5fd,#f9a8d4);color:#251137;border:1px solid #e4caff;box-shadow:0 5px 24px #aa75ef26}
.landing-mode .primary:hover{background:#e2cdff;box-shadow:0 6px 28px #aa75ef45}

/* Landing actions and account experience */
.landing-mode #landing-view .primary,.landing-mode .topbar .header-start,.account-dialog .auth-submit,.account-dialog .account-upgrade{background:linear-gradient(112deg,#2563eb 0%,#0e7490 100%);border:1px solid #4c95ee;color:#fff;box-shadow:0 7px 22px #1769d53b}
.landing-mode #landing-view .primary:hover,.landing-mode .topbar .header-start:hover,.account-dialog .auth-submit:hover,.account-dialog .account-upgrade:hover{background:linear-gradient(112deg,#1d4ed8 0%,#0c6a83 100%);box-shadow:0 9px 26px #1769d558;transform:translateY(-1px)}
.account-trigger{min-height:38px;padding:7px 12px;border-radius:9px;font-size:10px;gap:7px}
.account-trigger svg{width:16px;height:16px}
.account-dialog{width:min(920px,calc(100vw - 32px));max-width:920px;padding:0;overflow:hidden;border:1px solid #48415f;border-radius:20px;background:#151321;box-shadow:0 32px 100px #0009}
.account-dialog::backdrop{background:#070611d9;backdrop-filter:blur(9px)}
.account-dialog>.dialog-header{position:absolute;z-index:2;inset:17px 19px auto 24px;pointer-events:none}
.account-dialog>.dialog-header>*{pointer-events:auto}
.account-dialog>.dialog-header .eyebrow{color:#aaa4c1;font-size:8px;letter-spacing:1.25px}
.account-dialog .icon-button{width:36px;height:36px;border:1px solid #ffffff1c;border-radius:50%;background:#100f1bb8;color:#fff}
.account-dialog-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(300px,.96fr);min-height:610px}
.auth-panel{padding:64px clamp(26px,5vw,56px) 33px;background:#fbfaff;color:#242136}
.auth-brand{width:max-content;color:#252236;font-size:23px;margin-bottom:37px}
.auth-brand .brand-mark{background:linear-gradient(135deg,#2563eb,#0e7490);border:0;box-shadow:0 5px 14px #1769d533}
.auth-brand .brand-period{color:#1682bf}
.auth-kicker{display:block;color:#747187;font-size:9px;font-weight:700;letter-spacing:1.25px;margin:0 0 8px}
.auth-panel h2,.account-preview h2{margin:0;color:#211f32;font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650}
.auth-intro{margin:9px 0 22px;color:#777587;font-size:12px;line-height:1.7}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:18px;border:1px solid #e7e5f0;border-radius:10px;background:#f2f1f7}
.auth-tabs button{min-height:38px;border:0;border-radius:7px;background:transparent;color:#777587;font-size:11px;font-weight:600}
.auth-tabs button.active{background:#fff;color:#29263e;box-shadow:0 2px 8px #25213a12}
.auth-field{display:block;margin:0 0 14px;color:#403d51;font-size:10px;font-weight:600}
.auth-field>input,.password-wrap input{display:block;width:100%;height:45px;margin-top:7px;padding:0 13px;border:1px solid #dedce8;border-radius:8px;background:#fff;color:#282538;font-size:12px;outline:none;transition:border-color .18s,box-shadow .18s}
.auth-field>input:focus,.password-wrap input:focus{border-color:#4384db;box-shadow:0 0 0 3px #2f80df20}
.auth-field input::placeholder{color:#aaa8b5}
.password-wrap{position:relative;display:block}
.password-wrap input{padding-right:56px}
.password-toggle{position:absolute;right:5px;top:12px;min-width:43px;min-height:32px;border:0;border-radius:6px;background:transparent;color:#386da9;font-size:10px;font-weight:600}
.auth-form-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-1px 0 17px}
.remember-field{display:flex;align-items:center;gap:7px;color:#777587;font-size:10px}
.remember-field input{width:15px;height:15px;margin:0;accent-color:#2563eb}
.auth-link{padding:0;border:0;background:transparent;color:#2664b2;font-size:10px;font-weight:600;text-decoration:none;cursor:pointer}
.auth-link:hover{text-decoration:underline}
.auth-submit{width:100%;min-height:45px;justify-content:space-between;border-radius:9px;font-size:11px}
.auth-status{min-height:34px;margin:11px 0 0;color:#777587;font-size:9px;line-height:1.6}
.auth-divider{display:flex;align-items:center;gap:10px;margin:11px 0;color:#9a98a5;font-size:8px;letter-spacing:.85px}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#e9e7ef}
.auth-security{display:flex;align-items:center;gap:7px;margin:0;color:#858393;font-size:9px;line-height:1.6}
.auth-security svg{width:15px;height:15px;color:#468568}
.account-preview-link{margin-top:19px;font-size:9px}
.account-aside{position:relative;isolation:isolate;overflow:hidden;padding:93px clamp(25px,4vw,45px) 35px;background:radial-gradient(ellipse at 85% 15%,#3475d84a,transparent 42%),linear-gradient(145deg,#211b38,#121725 78%);color:#f8f7ff}
.account-aside::before{position:absolute;z-index:-1;inset:0;content:"";opacity:.2;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:35px 35px;mask-image:linear-gradient(to bottom right,#000,transparent 78%)}
.account-aside-kicker{display:flex;align-items:center;gap:8px;color:#c4c2d4;font-size:8px;letter-spacing:1.05px}
.account-aside .status-dot{width:6px;height:6px;background:#58d6b0;box-shadow:0 0 12px #58d6b099}
.account-aside h3{margin:25px 0 10px;font-size:clamp(30px,4vw,43px);line-height:1.1;font-weight:550;letter-spacing:-1.8px}
.account-aside>p:not(.auth-preview-note){max-width:300px;margin:0;color:#c0bed0;font-size:11px;line-height:1.8}
.aside-mini-card{display:flex;align-items:center;gap:11px;margin:28px 0 23px;padding:14px;border:1px solid #ffffff23;border-radius:11px;background:#ffffff0d;backdrop-filter:blur(12px)}
.mini-credit-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:linear-gradient(135deg,#277fe7,#36b5c7);color:#fff}
.mini-credit-icon svg{width:17px;height:17px}
.aside-mini-card>span:nth-child(2){display:grid;gap:4px}
.aside-mini-card small{color:#b8b7ca;font-size:7px;letter-spacing:.65px}
.aside-mini-card strong{font-size:12px;font-weight:600}
.mini-arrow{margin-left:auto;color:#b9d7ff;font-size:18px}
.auth-benefits{display:grid;gap:13px;margin:0;padding:0;list-style:none}
.auth-benefits li{display:flex;align-items:center;gap:11px;color:#d9d7e4;font-size:10px}
.auth-benefits li span{color:#81aee6;font-size:8px;letter-spacing:.7px}
.auth-preview-note{margin:28px 0 0;padding-top:14px;border-top:1px solid #ffffff1e;color:#aaa8bb;font-size:9px;line-height:1.8}
.account-preview{grid-column:1/-1;min-height:610px;padding:67px clamp(24px,7vw,76px) 38px;background:#fbfaff;color:#252336}
.account-back{margin:0 0 25px}
.account-profile-head{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.account-profile-avatar{display:grid;width:53px;height:53px;place-items:center;border-radius:16px;background:linear-gradient(140deg,#dcecff,#d6f2f2);color:#2364b1;font-size:20px;font-weight:700}
.account-profile-head h2{font-size:24px}
.account-profile-head p{margin:4px 0 0;color:#858394;font-size:10px}
.guest-pill{display:inline-block;margin-left:6px;padding:3px 6px;border-radius:4px;background:#eef0f5;color:#767488;font-size:7px;letter-spacing:.5px}
.profile-state-dot{width:9px;height:9px;margin-left:auto;border-radius:50%;background:#a8a6b5;box-shadow:0 0 0 4px #a8a6b51d}
.usage-card{padding:20px 22px;border:1px solid #e5e4ed;border-radius:13px;background:#fff;box-shadow:0 9px 28px #25213a0a}
.usage-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.usage-label,.usage-details article>span{color:#888697;font-size:8px;font-weight:700;letter-spacing:.8px}
.usage-card-heading h3{margin:5px 0 0;color:#343146;font-size:13px;font-weight:650}
.usage-plan-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#eff4fc;color:#477cc0}
.usage-plan-icon svg{width:16px;height:16px}
.usage-balance{display:flex;align-items:baseline;gap:8px;margin-top:20px}
.usage-balance strong{color:#252337;font-size:38px;font-weight:650;letter-spacing:-1.5px}
.usage-balance>span{color:#575568;font-size:11px}
.usage-balance small{margin-left:auto;color:#9a98a7;font-size:8px}
.usage-meter{height:7px;overflow:hidden;margin-top:14px;border-radius:9px;background:#eeedf3}
.usage-meter span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0e9bb5)}
.usage-meta{display:flex;justify-content:space-between;gap:12px;margin-top:9px;color:#888697;font-size:9px}
.usage-meta strong{color:#555366;font-weight:600}
.usage-details{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:12px}
.usage-details article{display:grid;gap:7px;padding:15px;border:1px solid #e8e7ef;border-radius:10px;background:#fff}
.usage-details article strong{font-size:11px;color:#414054}
.usage-details article small{color:#888697;font-size:8px;line-height:1.6}
.account-notice{display:flex;gap:10px;margin:15px 0;padding:12px 13px;border:1px solid #d7e6fa;border-radius:9px;background:#f0f6ff;color:#49617e}
.account-notice>span{display:grid;width:17px;height:17px;flex:none;place-items:center;border:1px solid #8db6e5;border-radius:50%;font-size:10px;font-weight:700}
.account-notice p{margin:0;font-size:9px;line-height:1.7}
.account-notice strong{color:#2e4e75}
.account-upgrade{width:100%;min-height:43px;justify-content:space-between;border-radius:9px;font-size:10px}
.account-upgrade svg{width:15px;height:15px}
.aside-orb{position:absolute;z-index:-1;border:1px solid #ffffff10;border-radius:50%;pointer-events:none}
.orb-a{width:240px;height:240px;right:-110px;top:14%;box-shadow:0 0 0 25px #ffffff05,0 0 0 55px #ffffff03}
.orb-b{width:110px;height:110px;right:10%;top:23%;background:radial-gradient(circle,#5aa3ff20,transparent 68%)}
@media(max-width:760px){.account-trigger{min-width:38px;width:38px;padding:7px;justify-content:center}.account-trigger span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.account-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:15px}.account-dialog-grid{display:block;min-height:0}.account-dialog>.dialog-header{inset:13px 12px auto 17px}.auth-panel{padding:59px 23px 25px}.auth-brand{margin-bottom:25px}.auth-panel h2{font-size:27px}.account-aside{padding:25px 23px}.account-aside h3{margin:14px 0 8px;font-size:31px}.aside-mini-card{margin:17px 0}.auth-benefits{grid-template-columns:1fr 1fr;gap:9px}.auth-benefits li{font-size:8px}.auth-preview-note{margin-top:17px}.account-preview{min-height:0;padding:60px 20px 25px}.usage-card{padding:16px}.usage-balance small{max-width:90px;text-align:right}.usage-details{grid-template-columns:1fr}.account-profile-head{gap:10px}.account-profile-avatar{width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){.landing-mode #landing-view .primary,.landing-mode .topbar .header-start,.account-dialog .auth-submit,.account-dialog .account-upgrade{transition:none}}
.landing-mode .secondary{background:#201a30;border-color:#50415f;color:#f0e8ff}
.landing-mode .button{font-size:13px;min-height:46px;border-radius:12px}
.hero-copy h1{font-size:clamp(40px,5.4vw,72px);letter-spacing:-2.4px;line-height:1.16}
.hero-copy h1>span,.pricing-heading h2>span{color:#e7b0f4}
.hero-copy .hero-description{font-size:15px;line-height:1.9;color:#c2b9d2;max-width:450px}
.hero-copy .eyebrow{color:#d2baff;letter-spacing:1.5px}
.hero-copy .hero-footnote{color:#c2b9d2;font-size:12px}
.hero-art-image{border:1px solid #695376;border-radius:24px;box-shadow:0 25px 80px #a05cdf24;transform:rotate(2deg)}
.hero-art-image>img{padding:0}
.hero-card{background:#251c36;border-color:#74558b;border-radius:14px}
.hero-orbit{border-color:#704780}
.landing-divider{color:#bca8ce;border-block:1px solid #372940;background:#c493f408}


.landing-features{gap:16px;padding:42px 2% 54px}
.landing-feature,.landing-feature+.landing-feature{padding:24px;border:1px solid #403249;border-radius:18px;background:linear-gradient(140deg,#322143,#171323)}
.landing-feature:nth-child(2){background:linear-gradient(140deg,#183d44,#131f29);border-color:#285158}
.landing-feature:last-child{background:linear-gradient(140deg,#472b31,#25191f);border:1px solid #603d48}
.landing-feature .feature-icon{background:#ffffff0a;border-color:#ffffff25;color:#f1d2ff}
.landing-feature h2{font-size:17px}.landing-feature p{font-size:13px;color:#c9c1d1}.feature-index{color:#d0bfdc}
.pricing-section{position:relative;padding:64px 3%;background:radial-gradient(ellipse at 50% 20%,#7d4cb12b,transparent 65%);border-color:#42314f}
.pricing-heading{max-width:680px;margin-bottom:32px}
.pricing-heading h2{font-size:clamp(30px,4vw,48px);line-height:1.28;letter-spacing:-1.5px}
.pricing-heading>.eyebrow{color:#d1b5f8}
.pricing-heading>p:not(.eyebrow){font-size:14px;color:#c6bbd6}
.billing-switch{display:inline-flex;gap:5px;padding:5px;background:#1c1729;border:1px solid #554164;border-radius:16px;margin-top:26px}
.billing-switch button{min-height:46px;padding:10px 20px;border:0;border-radius:11px;background:transparent;color:#cbbfdc;font-size:14px;font-weight:500}
.billing-switch button[aria-pressed="true"]{background:#ede4ff;color:#2e1749;box-shadow:0 3px 12px #0003}
.billing-switch button>span{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:5px;background:#a9f0cb;color:#144a32;font-size:11px;font-weight:700}
.pricing-heading .billing-explainer{margin-top:12px;min-height:42px;font-size:12px}
.pricing-grid{max-width:1100px;gap:20px}
.pricing-card{padding:28px 24px;border-radius:20px;background:#1b1629;border:1px solid #4a3c5c;box-shadow:0 16px 35px #0002}
.pricing-card.recommended{background:linear-gradient(155deg,#443064,#231a38 65%);border:2px solid #c4a4f6;box-shadow:0 0 40px #ad75fc22}
.plan-index{font-size:10px;letter-spacing:1px;color:#c6bad8;min-height:25px}
.recommended .plan-index{color:#f5d396;font-weight:600}
.pricing-card h3{font-size:26px;color:#fff}.plan-copy{font-size:13px;color:#c4bbd0;line-height:1.6;min-height:42px}
.plan-price{font-size:clamp(30px,3vw,42px);color:#fff;letter-spacing:-1.4px}.plan-price sup{color:#c4bbd0;font-size:12px}
.plan-anchor{color:#bcaaca;font-size:11px;margin:0 0 6px;min-height:18px}
.plan-charge{font-size:12px;line-height:1.7;color:#cbbce0;min-height:42px;margin:12px 0 0}
.plan-credits{border-color:#655176;margin:12px 0 22px}.plan-credits strong{color:#e6c7ff;font-size:30px}.plan-credits span{font-size:13px;color:#d7cce4}
.plan-features li{font-size:12px;color:#d1c8dc;line-height:1.7}.plan-features{gap:11px}
.welcome-offer{max-width:1100px;margin:28px auto 0;padding:25px 28px;border:1px solid #745342;border-radius:18px;background:linear-gradient(100deg,#362337,#39271f);display:flex;align-items:center;gap:24px}
.welcome-number{font-size:52px;font-weight:700;color:#ffd59e;line-height:1;letter-spacing:-3px}
.welcome-offer .eyebrow{font-size:10px;color:#ffd59e;letter-spacing:1px;margin:0}.welcome-offer h3{font-size:18px;margin:5px 0;color:#fff2e8}
.welcome-offer p{font-size:12px;color:#e0c8c2;margin:0;line-height:1.7}.welcome-offer .button{margin-left:auto;flex-shrink:0}
.pricing-note{font-size:12px;max-width:770px;margin:20px auto 0;line-height:1.9;color:#bdb0cc}
.landing-showcase{padding-block:48px;border-color:#403049}.showcase-card{border-color:#51435f;border-radius:13px;background:#211a30}.showcase-card img{height:160px;padding:8px;background:#241e31;aspect-ratio:auto}.showcase-card strong{font-size:12px}.showcase-card small{color:#c3b4d5}
.showcase-copy>p:not(.eyebrow){font-size:13px;color:#c6b9d3}.showcase-copy>a{font-size:13px}.showcase-copy .showcase-note{font-size:11px}
.how-steps p{font-size:13px;color:#c3b6d0}.how-steps strong{font-size:15px}.landing-footer{border-color:#403049}.landing-footer>span{color:#baadc9}
#welcome-dialog p{font-size:14px;line-height:1.8;color:#d2c8df}
@media(max-width:900px){.pricing-card{padding:23px 16px}.plan-copy{min-height:60px}.plan-price{font-size:29px}.welcome-offer{gap:15px;padding:22px}.welcome-offer h3{font-size:16px}}
@media(max-width:760px){.hero-copy h1{font-size:clamp(38px,9vw,60px);letter-spacing:-1.5px}.hero-copy .hero-description{font-size:14px}.landing-features{grid-template-columns:1fr;gap:12px;padding:25px 0 40px}.landing-feature,.landing-feature+.landing-feature{padding:22px}.pricing-section{padding:44px 0}.pricing-heading>p:not(.eyebrow){font-size:13px}.billing-switch button{padding:10px 14px;font-size:13px}.pricing-grid{gap:18px}.pricing-card{padding:26px}.plan-copy{min-height:0}.plan-price{font-size:38px}.plan-charge{min-height:0}.plan-features{display:flex}.welcome-offer{flex-wrap:wrap;padding:24px;gap:16px}.welcome-offer>div{flex:1;min-width:170px}.welcome-offer .button{width:100%;margin:0}.welcome-number{font-size:46px}.showcase-card img{height:130px;aspect-ratio:auto}.showcase-card strong{font-size:11px}.showcase-card small{font-size:7px}}

/* One calm violet palette shared by the landing and the workspace. */
:root{--bg:#100e1b;--paper:#191625;--raised:#242033;--line:#383247;--ink:#f6f3ff;--muted:#b7b0c9;--accent:#c4b5fd;--accent-hover:#ddd6fe;--soft:#332742;--error:#ff9995}
.topbar{background:#151222;border-bottom-color:#322a46}
.sidebar{background:#120f1b;border-right-color:#30283d}
.composer{background:#1a1725;border-color:#403750}
.landing-mode{--accent:#c4b5fd;--accent-hover:#ddd6fe}
body:not(.landing-mode){--accent:#65e8d0;--accent-hover:#8ff3e0;--soft:#153630}
.landing-features{gap:14px}
.landing-feature,.landing-feature+.landing-feature,.landing-feature:last-child{padding:23px;border:1px solid #453952;border-radius:16px;background:#1c1829}
.landing-feature .feature-icon{margin-top:20px;background:#292139;border:1px solid #514267;border-radius:10px;color:#d6c8ff}
.landing-feature h2{font-size:16px;color:#f6f3ff}
.landing-feature p{font-size:13px;line-height:1.75;color:#c8c1d3}
.landing-feature .feature-index{color:#c8b9e6;font-size:10px;letter-spacing:1px}
.landing-showcase{border-color:#393147}
.app-body:has(#studio-view:not([hidden])) #studio-view{position:relative;isolation:isolate;overflow:hidden}
.studio-showreel{position:absolute;z-index:0;top:78px;left:0;width:100%;height:275px;overflow:hidden;pointer-events:none;opacity:.36;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.studio-showreel:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#100e1b10 0%,#100e1b32 62%,#100e1b 100%),linear-gradient(90deg,#100e1b38,transparent 20%,transparent 80%,#100e1b38)}
.studio-showreel-track{position:absolute;left:0;top:20px;display:flex;gap:18px;width:max-content;animation:studio-showreel-drift 56s linear infinite;will-change:transform}
.studio-showreel figure{width:205px;height:205px;position:relative;margin:0;overflow:hidden;border:1px solid #b5a5cc5c;border-radius:16px;background:#211c2a;transform:rotate(-2deg)}
.studio-showreel figure:nth-child(3n + 2){transform:translateY(27px) rotate(2deg)}
.studio-showreel figure:nth-child(3n){transform:translateY(9px) rotate(-1deg)}
.studio-showreel img{display:block;width:100%;height:100%;object-fit:cover}
.studio-showreel figcaption{position:absolute;left:10px;bottom:10px;padding:5px 9px;border:1px solid #ffffff30;border-radius:20px;background:#15111edb;color:#f6f3ff;font-size:10px;letter-spacing:.2px}
@keyframes studio-showreel-drift{to{transform:translateX(-50%)}}
#studio-view>.page-heading,#studio-view>.studio-layout,#studio-view>#templates-view,#studio-view>#library-view{position:relative;z-index:1}
#studio-view>.workspace-tabs{z-index:1}
#studio-view>.page-heading{padding-top:27vh;text-shadow:0 2px 24px #100e1b}
@media(max-width:760px){.studio-showreel{top:78px;height:215px;opacity:.24}.studio-showreel-track{top:16px;gap:12px}.studio-showreel figure{width:152px;height:152px;border-radius:13px}.studio-showreel figcaption{font-size:9px;left:7px;bottom:7px;padding:4px 7px}#studio-view>.page-heading{padding-top:100px;padding-bottom:55px}}
@media(prefers-reduced-motion:reduce){.studio-showreel-track{animation:none;left:50%;transform:translateX(-50%)}}
@media(max-width:760px){.landing-feature,.landing-feature+.landing-feature,.landing-feature:last-child{padding:19px}}
.language-picker{display:flex;align-items:center}
body:not(.landing-mode) .landing-nav{display:none}
.language-picker select{min-height:42px;max-width:135px;padding:7px 25px 7px 10px;border:1px solid #463b58;border-radius:10px;background:#201a2d;color:#f3ebff;font:500 11px var(--font);cursor:pointer}
.language-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.landing-mode .language-picker{display:none}
html[dir="rtl"] .language-picker select{direction:rtl}
@media(max-width:900px){.language-picker select{max-width:110px}}
@media(max-width:760px){.language-picker select{max-width:82px;min-height:40px;padding:6px 5px;font-size:10px}.topbar-right{gap:4px!important}}

/* Keep the main creation actions in the studio's violet and mint palette. */
.landing-mode #landing-view .primary,.generate-button{background:linear-gradient(112deg,#65e8d0 0%,#c4b5fd 100%);border:1px solid #a6e9dc;color:#151321;box-shadow:0 7px 24px #9e8be936;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.landing-mode #landing-view .primary:hover,.generate-button:hover:not(:disabled){background:linear-gradient(112deg,#8ff3e0 0%,#ddd6fe 100%);box-shadow:0 10px 30px #9e8be955;transform:translateY(-1px)}
.generate-button:disabled{filter:saturate(.65);opacity:.85}

/* Give the in-progress generation state a soft light sweep and a clear focus. */
.preview-stage{overflow:hidden}
.is-rendering .preview-stage:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(110deg,transparent 20%,#c4b5fd12 42%,#65e8d026 50%,#c4b5fd12 58%,transparent 80%);transform:translateX(-100%);animation:generation-sweep 2.2s ease-in-out infinite}
.preview-loader{background:#100e1bd1;backdrop-filter:blur(3px)}
.preview-loader .spinner{width:38px;height:38px;border-color:#c4b5fd35;border-top-color:#65e8d0;box-shadow:0 0 28px #65e8d02e}
.preview-loader:before{content:"";position:absolute;width:62px;height:62px;border:1px solid #c4b5fd55;border-radius:50%;animation:generation-orbit 3s linear infinite}
@keyframes generation-sweep{50%{transform:translateX(100%)}100%{transform:translateX(100%)}}
@keyframes generation-orbit{to{transform:rotate(360deg) scale(1.08);border-color:#65e8d066}}
@media(prefers-reduced-motion:reduce){.landing-mode #landing-view .primary,.generate-button{transition:none}.is-rendering .preview-stage:after,.preview-loader:before{animation:none}.is-rendering .preview-stage:after{transform:translateX(0);opacity:.35}}

/* Compact workspace account controls and live credit balance. */
.topbar-right{gap:12px}
.header-help{gap:8px;color:#f0eef8;font-size:13px;font-weight:600}
.header-help svg{width:21px;height:21px}
.language-picker{position:relative;display:grid;place-items:center;width:42px;height:42px}
.language-picker svg{position:absolute;z-index:1;width:22px;height:22px;color:#eeeaf6;pointer-events:none}
.language-picker select{width:42px;height:42px;max-width:none;padding:0;border:0;border-radius:50%;background:transparent;color:transparent;appearance:none;cursor:pointer}
.language-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.language-picker option{color:#171421;background:#fff}
.gift-button{display:grid;place-items:center;width:42px;height:42px;border:0;background:transparent;color:#66e7cc}
.gift-button svg{width:24px;height:24px}
.gift-button:hover{color:#a3f5e3;transform:translateY(-1px)}
.credits-pill{display:flex;align-items:center;gap:8px;min-width:78px;height:40px;padding:4px 12px;border:1px solid #273e4a;border-radius:24px;background:#0c2733;color:#f1f5f9}
.credit-star{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;background:#e9f0f3;color:#1f3d53;font-size:15px;font-weight:700}
.credit-star svg{width:13px;height:13px}
.credits-pill strong{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.upgrade-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border:1px solid #1bdde0;border-radius:24px;background:linear-gradient(105deg,#13d9e2,#0cb8dc);color:#071521;font-size:15px;font-weight:700;transition:filter .18s,transform .18s}
.upgrade-button:hover{filter:brightness(1.1);transform:translateY(-1px)}
.avatar-trigger{display:grid;place-items:center;min-width:42px;width:42px;height:42px;padding:0;overflow:hidden;border:1px solid #7e6e9d;border-radius:50%;background:linear-gradient(145deg,#a697c0,#4c4c80);color:#fff;font-size:16px;font-weight:700}
.avatar-trigger img{display:block;width:100%;height:100%;object-fit:cover}
.google-auth-button{width:100%;min-height:48px;display:flex;align-items:center;gap:12px;padding:8px 15px;border:1px solid #dad8e4;border-radius:9px;background:#fff;color:#282638;font-size:12px;font-weight:600;box-shadow:0 2px 8px #25213a0a}
.google-auth-button:hover{border-color:#a9c2e4;background:#f8fbff}
.google-auth-button>svg{margin-left:auto;width:16px;height:16px;color:#6e6b80}
.google-g{display:grid;width:25px;height:25px;place-items:center;border:1px solid #e6e6eb;border-radius:50%;font:700 17px Arial,sans-serif;color:#4285f4}
.auth-status{min-height:34px;margin:12px 0 0;color:#777587;font-size:10px;line-height:1.6}
.account-profile-avatar{display:grid;width:53px;height:53px;flex:none;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(140deg,#dcecff,#d6f2f2);color:#2364b1;font-size:20px;font-weight:700;object-fit:cover}
.account-profile-head{align-items:center}
.account-profile-head>div{min-width:0;flex:1}
.account-profile-head h2{overflow-wrap:anywhere}
.account-signout{min-height:42px;padding:8px 10px;white-space:nowrap}
.account-history{margin-top:16px;padding:18px 20px;border:1px solid #e5e4ed;border-radius:13px;background:#fff}
.account-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.account-history-list{max-height:280px;overflow:auto}
.account-history-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.account-history-head h3{margin:0;color:#343146;font-size:13px}
.account-history-head>span{color:#888697;font-size:9px}
.account-history-list{display:grid;gap:0;margin-top:8px}
.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #eeedf3}
.history-row>div{min-width:0;display:grid;gap:3px}
.history-row strong{overflow:hidden;color:#414054;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.history-row small,.history-row>span,.history-empty{color:#888697;font-size:9px}
.history-row>span{flex:none}
.history-empty{margin:12px 0 3px}
.account-status{min-height:18px;margin:8px 0;color:#7b7890;font-size:9px}
.account-management{display:flex;gap:10px}
.account-management>.button{flex:1}
.account-management .account-upgrade{width:auto}
@media(max-width:760px){.topbar-right{gap:5px!important}.header-help{width:40px;min-width:40px;justify-content:center;font-size:0}.header-help svg{width:22px;height:22px}.language-picker,.language-picker select{width:38px;height:38px;min-height:38px}.language-picker svg{width:20px;height:20px}.gift-button{width:36px;height:38px}.gift-button svg{width:21px;height:21px}.credits-pill{gap:5px;min-width:58px;height:36px;padding:3px 7px}.credit-star{width:19px;height:19px}.credits-pill strong{font-size:13px}.upgrade-button{min-height:36px;padding:0 11px;font-size:12px}.avatar-trigger{min-width:36px;width:36px;height:36px}.account-management{flex-direction:column}.account-profile-head{align-items:flex-start;flex-wrap:wrap}.account-signout{margin-left:auto}}
@media(max-width:450px){.topbar-right{gap:3px!important}.header-help{width:32px;min-width:32px}.language-picker,.language-picker select{width:32px;height:34px;min-height:34px}.language-picker svg{width:18px;height:18px}.gift-button{width:30px}.credits-pill{min-width:51px;padding:3px 5px}.credit-star{width:17px;height:17px}.credits-pill strong{font-size:12px}.upgrade-button{padding:0 8px;font-size:10px}.avatar-trigger{min-width:32px;width:32px;height:32px}}
@media(max-width:390px){.topbar{padding-left:9px;padding-right:9px}.topbar-right{gap:2px!important}.header-help{width:32px;min-width:32px}.language-picker,.language-picker select{width:32px;height:34px;min-height:34px}.gift-button{width:30px}.credits-pill{min-width:51px;padding:3px 5px}.credit-star{width:17px;height:17px}.credits-pill strong{font-size:12px}.upgrade-button{padding:0 8px;font-size:10px}.avatar-trigger{min-width:32px;width:32px;height:32px}}

/* Layered ambient backgrounds for the landing page and the studio workspace. */
.landing-page{background:radial-gradient(ellipse 68% 35% at 50% 0%,#7556a033 0%,transparent 100%),radial-gradient(ellipse 42% 25% at 84% 13%,#3cd7d318 0%,transparent 100%),radial-gradient(ellipse 42% 30% at 8% 31%,#6688d016 0%,transparent 100%),linear-gradient(180deg,#121020 0%,#100e1b 40%,#0d1019 100%)}
body:not(.landing-mode){background:radial-gradient(ellipse 55% 35% at 55% 0%,#62518a20 0%,transparent 100%),radial-gradient(ellipse 40% 32% at 94% 36%,#31bda510 0%,transparent 100%),#100e1b}
.app-body:has(#studio-view:not([hidden])) #studio-view:before{content:"";position:absolute;z-index:0;inset:0 0 auto;height:680px;pointer-events:none;background:radial-gradient(ellipse 60% 45% at 50% 8%,#7059a52a 0%,transparent 100%),radial-gradient(ellipse 42% 35% at 84% 23%,#40d7c715 0%,transparent 100%),linear-gradient(180deg,#11102000 0%,#100e1b36 52%,#100e1b 100%)}
#studio-view>:not(.studio-showreel){position:relative;z-index:1}
.studio-showreel{opacity:.3}
.studio-showreel:after{background:linear-gradient(180deg,#100e1b00 0%,#100e1b2b 62%,#100e1b 100%),linear-gradient(90deg,#100e1b32,transparent 20%,transparent 80%,#100e1b32)}
@media(max-width:760px){.app-body:has(#studio-view:not([hidden])) #studio-view:before{height:520px}}

/* Consistent, restrained geometry across landing, studio and account surfaces. */
#landing-view .landing-feature,#landing-view .landing-feature:nth-child(n){border-radius:8px;border:1px solid #393247;background:#191724;box-shadow:none}
#landing-view .pricing-card{border-radius:9px;background:#191724;border:1px solid #383247;box-shadow:none}
#landing-view .pricing-card.recommended{background:#211a30;border:1px solid #a28bcf;box-shadow:inset 0 0 0 1px #a28bcf24}
#landing-view .welcome-offer{border-radius:9px;box-shadow:none}
#landing-view .showcase-card,#landing-view .template-card,.saved-card{border-radius:8px;box-shadow:none}
.hero-art-image{border-radius:12px;transform:none;box-shadow:0 12px 38px #05040b55}
.hero-card{border-radius:8px}
.composer{border-radius:10px;box-shadow:0 14px 38px #0005}
.preview-stage{border-radius:8px}
.studio-showreel figure{border-radius:9px}
.studio-showreel figcaption{border-radius:5px}
.workspace-tabs{border-radius:9px}
.workspace-tabs button{border-radius:6px}
.starter-actions button{border-radius:7px}
.engine-tag,.control-menu summary{border-radius:7px}
.control-menu>fieldset{border-radius:9px;box-shadow:0 10px 28px #0006}
.upload-zone{border-radius:7px}
.output-thumb{border-radius:5px}
.account-dialog{border-radius:12px;box-shadow:0 24px 70px #0008}
.account-history,.usage-card,.usage-details article{border-radius:8px;box-shadow:none}
.account-notice,.google-auth-button{border-radius:6px;box-shadow:none}
.auth-field>input,.password-wrap input{border-radius:6px}
.billing-switch{border-radius:8px}
.billing-switch button,.billing-switch button[aria-pressed="true"]{border-radius:6px;box-shadow:none}
@media(max-width:760px){.account-dialog{border-radius:11px}.landing-feature,.pricing-card{box-shadow:none}}

.template-card{border-radius:8px;box-shadow:none}.ratio-options label>span{border-radius:5px}.style-sample{border-radius:5px}.pricing-card.recommended:hover,.template-card:hover,.showcase-card:hover{box-shadow:none}
/* Refined direction informed by Linear clarity and Geist's restrained surface system. */
:root{--bg:#0d0d12;--paper:#14141a;--raised:#1b1b23;--line:#2c2c36;--ink:#f4f3f8;--muted:#a5a3af;--accent:#c4b5fd;--accent-hover:#ddd6fe;--soft:#29243a}
body{background:radial-gradient(ellipse 70% 42% at 50% -12%,#63518a1a 0%,transparent 100%),var(--bg)}
body:not(.landing-mode){background:radial-gradient(ellipse 55% 36% at 52% 0%,#67528b14 0%,transparent 100%),var(--bg)}
.topbar{background:#0d0d12ed;border-bottom-color:#272731;backdrop-filter:blur(14px)}
.sidebar{background:#101016;border-right-color:#292932}
.landing-page{background:radial-gradient(ellipse 62% 40% at 50% 0%,#68538c1c 0%,transparent 100%),linear-gradient(180deg,#111017 0%,#0d0d12 48%,#0d0d12 100%)}
.landing-page:has(.landing-hero){background:radial-gradient(ellipse 65% 45% at 50% 0%,#68538c1c 0%,transparent 100%),linear-gradient(180deg,#111017 0%,#0d0d12 52%,#0d0d12 100%)}
#studio-view:before{background:radial-gradient(ellipse 58% 42% at 50% 8%,#6651881b 0%,transparent 100%),linear-gradient(180deg,#0d0d1200 0%,#0d0d1233 55%,#0d0d12 100%)}
#studio-view{background:transparent}
#landing-view .landing-feature,#landing-view .landing-feature:nth-child(n){background:#15151c;border-color:#30303a;color:var(--ink)}
#landing-view .landing-feature .feature-icon{background:#211d2b;border-color:#393243;color:#d2c5ff}
#landing-view .landing-feature .feature-index{color:#c5b7e9}
#landing-view .pricing-card{background:#15151c;border-color:#30303a}
#landing-view .pricing-card.recommended{background:#191722;border-color:#9180bd;box-shadow:inset 0 0 0 1px #9180bd20}
#landing-view .welcome-offer{background:#17151c;border-color:#393441}
#landing-view .showcase-card,#landing-view .template-card,.template-card,.saved-card{background:#15151c;border-color:#30303a}
#landing-view .showcase-card img,.template-card .template-art{background:#101015}
.hero-copy h1>span,.pricing-heading h2>span{color:#d2c5ff}
.hero-copy .eyebrow{color:#c9b9ef}
.hero-art-image{border-color:#393441;box-shadow:0 12px 38px #0005}
.hero-card{background:#17161e;border-color:#45404f}
.landing-divider{background:#ffffff03;border-color:#2a2932;color:#beb8ca}
.pricing-section{background:radial-gradient(ellipse at 50% 10%,#67538c14,transparent 64%);border-color:#2b2933}
.billing-switch{background:#15151c;border-color:#33323d}
.billing-switch button[aria-pressed="true"]{background:#d8d0ef;color:#211a30}
.composer{background:#15151c;border-color:#363540;box-shadow:0 14px 38px #0005}
.prompt-box{background:#101015;border-color:#34333d}
.prompt-box:focus-within{border-color:#8d7db6;box-shadow:0 0 0 3px #c4b5fd14}
.upload-zone{background:#17171f;border-color:#45434e}
.upload-zone:hover,.upload-zone.dragging{background:#201d2a;border-color:#9e8bc9}
.engine-tag,.control-menu summary{background:#17171f;border-color:#363641}
.control-menu summary:hover,.control-menu[open] summary{background:#20202a;border-color:#555064}
.control-menu>fieldset{background:#17171f;border-color:#393842}
.starter-actions button,.workspace-tabs{background:#15151c;border-color:#30303a}
.workspace-tabs button:hover,.view-templates #workspace-explore{background:#24232d}
.preview-stage{background:#101015;border-color:#292932}
.template-card:hover,.showcase-card:hover{background:#1b1b23;border-color:#4b4757}
.landing-feature,.pricing-card,.template-card,.saved-card,.showcase-card{transition:border-color .18s ease,background-color .18s ease}
@media(prefers-reduced-motion:reduce){.landing-feature,.pricing-card,.template-card,.saved-card,.showcase-card{transition:none}}

.app-body:has(#studio-view:not([hidden])) #studio-view:before{background:radial-gradient(ellipse 58% 42% at 50% 8%,#6651881b 0%,transparent 100%),linear-gradient(180deg,#0d0d1200 0%,#0d0d1233 55%,#0d0d12 100%)}

/* Landing header stays focused on sign-in and entering the studio. */
.landing-header-start{display:none}
.landing-mode .breadcrumb,.landing-mode .landing-nav,.landing-mode .header-help,.landing-mode .language-picker,.landing-mode .gift-button,.landing-mode .credits-pill,.landing-mode #upgrade-button{display:none}
.landing-mode .landing-header-start{display:inline-flex}
.landing-mode .topbar-right{gap:10px}
.landing-mode .avatar-trigger{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;height:42px;padding:0 10px;overflow:visible;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:12px;font-weight:600}
.landing-mode .avatar-trigger:hover{background:#ffffff12}
.landing-mode:not(.has-account) .avatar-trigger img,.landing-mode:not(.has-account) .avatar-trigger #account-avatar-fallback{display:none!important}
.landing-mode.has-account .avatar-trigger{gap:8px;min-height:44px}
.landing-mode.has-account .avatar-trigger img:not([hidden]),.landing-mode.has-account .avatar-trigger #account-avatar-fallback:not([hidden]){display:grid;place-items:center;position:static;clip:auto;width:28px;height:28px;flex:none;border-radius:50%;object-fit:cover}
.account-label{display:none}
.landing-mode .account-label{display:block;position:static;clip:auto;width:auto;height:auto;max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:480px){.landing-mode .account-label{max-width:76px}}
@media(max-width:760px){.landing-mode .topbar{padding-left:16px;padding-right:16px}.landing-mode .topbar-right{gap:5px!important}.landing-mode .avatar-trigger{min-width:0;width:auto;height:40px;padding:0 8px}.landing-mode .landing-header-start{min-height:40px;padding:8px 12px}}

.brand-mark{overflow:hidden;border:0;border-radius:8px;background:none;color:transparent}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.landing-footer .brand-mark{border-radius:7px}

.brand-mark svg{display:block;width:100%;height:100%}.brand-ai{color:var(--accent);font-size:.62em;letter-spacing:-.2px;margin-left:2px}

/* Image generation workspace, tuned to the supplied reference. */
.composer:after{content:none}
.has-result .page-heading{padding:0}
.has-result .preview-panel{width:100%;max-width:none;margin:14px 0 0}
.has-result .preview-toolbar{display:none}
.has-result .preview-stage{display:flex;justify-content:flex-start;align-items:flex-start;min-height:0;padding:0;background:transparent;border:0;border-radius:0}
.has-result .preview-image-wrap{width:auto;max-width:100%;justify-content:flex-start}
.has-result .preview-image-wrap>img{max-width:min(100%,560px);max-height:calc(100vh - 445px);width:auto;object-fit:contain;border-radius:14px}
.has-result .image-label{display:none}
.result-toolbar{display:flex;align-items:center;gap:10px;margin:12px 0 0}
.result-toolbar[hidden]{display:none}
.result-tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 16px;border:1px solid #303039;border-radius:24px;background:#19191f;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.result-tool:hover{background:#25242c;border-color:#555064}
.result-model{margin-left:auto;color:var(--muted);font-size:11px}
.has-result .preview-caption{display:none}
.has-result #output-gallery{margin-top:12px}
.has-result .preview-bottom{margin-top:10px}
.has-result #result-actions .button{min-height:42px}
.composer{width:min(1380px,calc(100vw - var(--sidebar) - 64px));padding:18px 20px;gap:10px}
.composer-heading{display:none}
.prompt-section{min-height:78px}
.prompt-box textarea{height:72px;min-height:72px;font-size:14px}
.upload-zone{min-height:84px}
.generate-area>p{display:block;max-width:190px;margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.generate-button{min-height:44px;font-size:12px}
.engine-tag,.control-menu summary{min-height:42px;font-size:12px}

@media(max-width:760px){
  .has-result .preview-panel{margin:24px 0 0}
  .has-result .preview-stage{min-height:0}
  .has-result .preview-image-wrap>img{max-width:100%;max-height:42vh;border-radius:12px}
  .result-toolbar{gap:7px}
  .result-tool{min-height:44px;padding:8px 12px;font-size:12px}
  .result-model{font-size:10px}
  .composer{width:100%;padding:13px;gap:9px}
  .prompt-section{min-height:0}
  .prompt-box textarea{height:100px;min-height:100px}
  .generate-area>p{display:none}
}
@media(max-width:380px){.result-tool{padding:8px 9px;font-size:11px}}

/* ChatGPT-style image result and in-progress canvas. */
.render-context{display:none;align-items:center;gap:14px;max-width:560px;margin:0 0 10px;min-height:28px;color:var(--muted);font-size:12px}
.has-result .render-context,.is-rendering .render-context{display:flex}
.render-prompt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.render-meta{flex:none;font-size:10px}
.is-rendering .preview-panel{display:block;width:100%;max-width:none;margin:14px 0 0}
.is-rendering .preview-toolbar{display:none}
.is-rendering .preview-stage,.has-result .preview-stage{position:relative;display:grid;place-items:center;width:min(560px,100%);aspect-ratio:1/1;min-height:0;padding:0;overflow:hidden;border:1px solid #33313d;border-radius:18px;background:radial-gradient(ellipse at 50% 42%,#272333 0%,#191821 50%,#111116 100%)}
.is-rendering .preview-image-wrap,.has-result .preview-image-wrap{display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:100%}
.is-rendering .preview-image-wrap>img,.has-result .preview-image-wrap>img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:14px;transition:filter .3s ease,opacity .3s ease}
.is-rendering:not(.has-result) .preview-image-wrap{visibility:hidden}
.is-rendering .image-label{display:none}
.is-rendering.has-result .preview-image-wrap>img{filter:blur(7px) brightness(.42);transform:scale(1.025)}
.preview-loader{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:linear-gradient(145deg,#14131bdb,#0d0d12e8);backdrop-filter:blur(8px);text-align:center}
.preview-loader[hidden]{display:none!important}
.has-result .preview-caption{display:none}
.has-result .preview-bottom{display:none}
.has-result .result-toolbar{width:min(560px,100%);flex-wrap:wrap;margin:10px 0 0}
.has-result .result-model{order:5;margin-left:auto}
.has-result #result-actions{display:flex;gap:8px}
.has-result #result-actions[hidden]{display:none}
.has-result #result-actions .button{min-height:42px}
.has-result #output-gallery{width:min(560px,100%);margin:10px 0 0}
.has-result .generation-status{max-width:560px;margin:8px 0 0}
@media(max-width:760px){
  .is-rendering .preview-panel,.has-result .preview-panel{width:100%;margin:16px 0 0}
  .is-rendering .preview-stage,.has-result .preview-stage{width:min(100%,460px);margin-inline:auto;border-radius:14px}
  .render-context{width:min(100%,460px);margin-inline:auto;font-size:11px}
  .render-meta{font-size:9px}
  .has-result .result-toolbar,.has-result .output-gallery{width:min(100%,460px);margin-inline:auto}
  .has-result .generation-status{max-width:460px;margin:8px auto 0}
}
@media(prefers-reduced-motion:reduce){.loader-orbit,.loader-progress i{animation:none}.preview-image-wrap>img{transition:none}}

/* Personal generated-image gallery. */
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:24px 0 34px;padding:0 4px}
.gallery-heading h1{margin:8px 0;font-size:clamp(30px,4vw,48px);font-weight:500;letter-spacing:-1.8px}
.gallery-heading p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;align-items:start}
.image-card{position:relative;min-width:0;overflow:hidden;border:1px solid #302e3b;border-radius:14px;background:#15141c;transition:transform .18s ease,border-color .18s ease,background-color .18s ease}
.image-card:hover{transform:translateY(-3px);border-color:#514968;background:#191720}
.image-card-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.image-card-art{position:relative;display:block;overflow:hidden;aspect-ratio:1/1;background:#101015}
.image-card-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.image-card:hover .image-card-art img{transform:scale(1.035)}
.image-card-open-hint{position:absolute;right:12px;bottom:12px;padding:7px 11px;border:1px solid #ffffff25;border-radius:20px;background:#0d0d12c9;color:#fff;font-size:11px;opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease}
.image-card:hover .image-card-open-hint,.image-card-open:focus-visible .image-card-open-hint{opacity:1;transform:none}
.image-card-copy{display:grid;gap:7px;padding:13px 14px 15px}
.image-card-copy strong{display:-webkit-box;overflow:hidden;color:#efedf5;font-size:12px;font-weight:500;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.image-card-copy small{color:#a6a2b2;font-size:10px}
.image-card-copy>span{color:#8f8b9a;font-size:10px}
.image-card-delete{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff2d;border-radius:50%;background:#0d0d12bf;color:#fff;font-size:20px;line-height:1;opacity:0;cursor:pointer;transition:opacity .18s ease,background .18s ease}
.image-card:hover .image-card-delete,.image-card-delete:focus-visible{opacity:1}
.image-card-delete:hover{background:#a83e52}
.gallery-detail{width:min(980px,calc(100vw - 36px));max-width:none;max-height:min(820px,calc(100dvh - 36px));padding:20px;border:1px solid #393744;border-radius:18px;background:#15141c;color:#f4f3f8;box-shadow:0 28px 100px #000a;overflow:auto}
.gallery-detail::backdrop{background:#050508c9;backdrop-filter:blur(8px)}
.gallery-detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.gallery-detail-head .eyebrow{margin:0;color:#a9a1be;font-size:9px;letter-spacing:1.6px}
.gallery-detail-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:25px;align-items:center}
.gallery-detail-image-wrap{display:grid;place-items:center;min-height:280px;max-height:680px;aspect-ratio:1/1;overflow:hidden;border:1px solid #302e38;border-radius:12px;background:#0d0d12}
.gallery-detail-image-wrap img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-detail-info h2{margin:0 0 8px;font-size:24px;font-weight:500;letter-spacing:-.7px}
.gallery-detail-date{margin:0;color:#aaa6b5;font-size:11px}
.gallery-detail-prompt{margin-top:24px;padding:15px;border:1px solid #302e38;border-radius:10px;background:#100f15}
.gallery-detail-prompt .tiny-label{font-size:9px;letter-spacing:1.2px;color:#aaa4bb}
.gallery-detail-prompt p{margin:9px 0 0;color:#e2e0e8;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.gallery-detail-meta{margin:13px 0;color:#a49faf;font-size:10px;line-height:1.7}
.gallery-detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.gallery-detail-actions .button{min-height:44px}
.gallery-empty{grid-column:1/-1;max-width:none;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;border:1px dashed #393744;border-radius:16px;background:#131219}
.gallery-empty>svg{width:25px;height:25px;color:#b8a8e1}
.gallery-empty h2{margin:16px 0 5px;color:#f0edf5;font-size:19px;font-weight:500}
.gallery-empty p{max-width:430px;color:#aaa6b5;font-size:12px;line-height:1.8}
@media(max-width:760px){
 .gallery-heading{align-items:flex-start;margin:12px 0 23px}
 .gallery-heading h1{font-size:32px}
 .gallery-heading p:last-child{max-width:420px;font-size:11px}
 .gallery-heading>.button{flex:none;min-height:42px;padding:8px 11px;font-size:10px}
 .image-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .image-card{border-radius:10px}
 .image-card-copy{gap:5px;padding:10px}
 .image-card-copy strong{font-size:11px}
 .image-card-delete{opacity:1;width:30px;height:30px}
 .gallery-detail{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px;border-radius:14px}
 .gallery-detail-body{grid-template-columns:1fr;gap:17px}
 .gallery-detail-image-wrap{width:100%;max-height:48dvh;min-height:210px}
 .gallery-detail-info h2{font-size:20px}
 .gallery-detail-prompt{margin-top:16px}
}
@media(max-width:380px){.image-gallery{grid-template-columns:1fr}.gallery-heading{flex-direction:column}.gallery-heading>.button{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){.image-card,.image-card-art img,.image-card-open-hint{transition:none}}
/* Keep the generated conversation focused on its image. */
body.has-result .studio-showreel,
body.is-rendering .studio-showreel,
body.has-result .workspace-tabs,
body.has-result .animated-background,
body.has-result .background-animation,
body.has-result .ambient-background {
  display: none !important;
}

body.has-result #studio-view > .page-heading,
body.is-rendering #studio-view > .page-heading {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 761px) and (min-height: 721px) {
  body.has-result .preview-stage,
  body.is-rendering .preview-stage {
    width: min(420px, calc(100dvh - 470px), 100%);
  }
}

body.has-result .preview-stage,
body.is-rendering .preview-stage {
  max-width: 100%;
}

body.has-result .preview-image-wrap,
body.is-rendering .preview-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.has-result #preview-image,
body.is-rendering #preview-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

body.has-result main::before,
body.has-result main::after {
  display: none !important;
  animation: none !important;
}

/* Image generation progress, inspired by the dotted reference. */
body.is-rendering .preview-stage::after,
.preview-loader::before {
  content: none;
}

.preview-loader {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #05070d;
  backdrop-filter: none;
  text-align: left;
}

.loader-message {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 3px;
}

.loader-message strong {
  color: #f4f6fa;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.loader-message span {
  color: #8c98ab;
  font-size: 10px;
}

.loader-dots {
  position: absolute;
  inset: 55px 8px 3px;
  background-image: radial-gradient(circle, #278ef8 1.35px, transparent 1.8px);
  background-size: 16px 16px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 82% 84% at 50% 63%, #000 15%, transparent 100%);
  animation: loader-dots-pulse 2.8s ease-in-out infinite alternate;
}

.loader-percent {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 12px;
  min-width: 62px;
  padding: 5px 11px;
  border: 1px solid #ffffff1b;
  border-radius: 20px;
  background: #343840;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
}

@keyframes loader-dots-pulse {
  from { opacity: .5; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .loader-dots { background-size: 13px 13px; }
  .loader-message { top: 12px; left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-dots { animation: none; }
}
