:root{--bg:#fafbfc;--panel:#fff;--sidebar:#f0f1f4;--text:#23252b;--muted:#868a95;--line:#e6e8ee;--accent:#7165ee;--soft:#eeebff;--grid:rgba(194,200,215,.2);--shadow:0 10px 35px #23253809;--sidebar-width:230px;--banner-height:38px}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,label[for]{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}button,input,textarea,select,a{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}button{transition:background .18s,color .18s,transform .18s}svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.announcement{position:fixed;z-index:30;top:0;width:100%;height:var(--banner-height);display:flex;align-items:center;justify-content:center;gap:12px;color:white;background:#259ad6;background-image:radial-gradient(ellipse at 5% 100%,#aabde2,transparent 35%),linear-gradient(100deg,#3184de,#14a2dc);font-size:12px;letter-spacing:.4px}.announcement>span:first-child{color:#e7f6b9;font-size:20px}.announcement button{color:#fff;font-size:11px;padding:0 12px;border-left:1px solid #ffffff5a}.announcement button span{margin-left:14px}.announcement .banner-close{position:absolute;right:15px;border:0;font-size:19px}.sidebar{width:var(--sidebar-width);position:fixed;z-index:25;inset:var(--banner-height) auto 0 0;background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;--sidebar-padding:16px;transition:width .25s,transform .25s}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;white-space:nowrap}.brand-symbol{font-size:40px;line-height:1;background:linear-gradient(135deg,#9e5af7,#4267e9,#20b7f3);background-clip:text;color:transparent;display:block;transform:rotate(-12deg)}.brand strong{font-size:20px;letter-spacing:1px}.brand strong>span{display:block;font-size:7px;letter-spacing:1.3px;font-weight:500;margin-top:4px;color:var(--muted)}.sidebar-collapse{position:absolute;right:12px;top:80px;color:var(--muted)}.icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}.icon-btn:hover{background:var(--line)}.main-nav{display:grid;gap:6px;margin-top:46px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;padding:14px 17px;border-radius:10px;font-size:15px}.nav-item:hover{background:#e5e7ec}.nav-item.active{background:var(--panel);box-shadow:0 2px 4px #25273504;font-weight:600}.nav-item.active>span:first-child{color:var(--accent)}.nav-item small{font-size:8px;letter-spacing:1px;font-weight:700;margin-left:auto;background:#ebe7ff;color:#8170db;padding:3px 5px;border-radius:4px}.sidebar-section{margin-top:32px;padding:0 9px}.sidebar-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);letter-spacing:.6px}.sidebar-label .icon-btn{width:24px;height:24px}.sidebar-label svg{width:16px;height:16px}.sidebar-empty{color:#a1a5ae;font-size:11px;margin-top:16px}.draft-list{display:grid;gap:6px;margin-top:8px;max-height:150px;overflow:auto}.draft-item{display:flex;gap:9px;font-size:12px;padding:7px 0;align-items:center;min-width:0;text-align:left;color:#757984}.draft-item span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.draft-item svg{width:14px;height:14px}.canvas-link{display:flex;align-items:center;gap:9px;font-size:12px;padding:16px 0;color:#757984;width:100%;text-align:left}.canvas-link svg{width:16px;height:16px}.tiny-dot{height:5px;width:5px;background:#b8bdc8;border-radius:100%;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:30px}.studio-note{padding:17px 15px 15px;border:1px solid #deddea;border-radius:12px;background:linear-gradient(120deg,#ece8f5,#eef0f6);position:relative}.note-star{display:block;font-size:25px;color:#9484cd;margin-bottom:7px}.studio-note strong{font-size:12px;font-weight:600}.studio-note p{color:#91909c;font-size:10px;margin:7px 0 14px}.studio-note button{padding:8px 10px;background:#ffffff9c;border-radius:6px;width:100%;text-align:left;font-size:11px;display:flex;justify-content:space-between}.profile{display:flex;align-items:center;gap:10px;text-align:left;padding:22px 2px}.avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#dce5d9;color:#537056;font-weight:600}.profile strong{font-size:11px;font-weight:500;display:block}.profile small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.profile>span:last-child{margin-left:auto;color:var(--muted)}.profile svg{width:13px;height:13px}main{margin-left:var(--sidebar-width);padding-top:var(--banner-height);min-height:100vh;background:linear-gradient(90deg,var(--grid) 1px,transparent 1px),linear-gradient(var(--grid) 1px,transparent 1px);background-size:40px 40px;transition:margin .25s}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{padding:0 10px;color:#c2c5cf}.breadcrumb strong{font-weight:500;color:#747885}.top-actions{display:flex;align-items:center;gap:15px}.demo-tag{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}.demo-tag i{width:5px;height:5px;border-radius:50%;background:#9b92cc}.top-divider{height:16px;width:1px;background:var(--line)}.top-text{display:flex;align-items:center;gap:7px;font-size:12px;color:#737782}.top-text svg{width:17px;height:17px}.top-actions>.icon-btn{color:#737782;width:25px;height:30px}.top-actions>.icon-btn svg{width:18px;height:18px}.top-new{padding:9px 12px;background:var(--text);color:var(--panel);border-radius:7px;font-size:11px;display:flex;gap:20px;align-items:center}.top-new:hover{opacity:.85}#mobileMenu{display:none}.page{display:none}.page.active{display:block;animation:appear .25s ease}@keyframes appear{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.hero{padding:46px 36px 34px;max-width:1120px;margin:auto;text-align:center}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#8d8b9d;display:flex;align-items:center;justify-content:center;gap:8px}.eyebrow>span{width:5px;height:5px;background:#968be1;transform:rotate(45deg)}.hero h1{font-size:40px;letter-spacing:-1px;font-weight:680;margin-top:18px;line-height:1.4}.hero h1>span{position:relative}.hero h1>span:after{content:"";position:absolute;width:80%;height:5px;background:#c7c0ff;left:0;bottom:-6px;border-radius:70%;transform:rotate(-3deg)}.hero-subtitle{margin-top:21px;font-size:12px;color:#9295a0;letter-spacing:.2px}.workspace-tabs{margin:27px auto 27px;padding:4px;display:flex;width:268px;background:var(--panel);border:1px solid var(--line);border-radius:30px;box-shadow:0 3px 10px #33334403}.workspace-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;width:50%;padding:10px 0;border-radius:25px;font-size:12px;color:var(--muted)}.workspace-tabs svg{width:15px;height:15px}.workspace-tabs .selected{background:#27282d;color:#fff}.composer{background:var(--panel);text-align:left;border:1px solid #e4e5ec;border-radius:20px;padding:21px 23px 16px;box-shadow:0 12px 40px #21274c08,0 2px 8px #1f203105;transition:box-shadow .2s,border-color .2s}.composer:focus-within{border-color:#bcb5f1;box-shadow:0 10px 32px #6252c80b}.reference-row{display:flex;align-items:center;gap:11px;min-height:49px}.upload-tile{width:45px;height:48px;border:1px dashed #d5d5e1;border-radius:8px;background:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#9395a1;transform:rotate(-5deg);transition:transform .2s}.upload-tile:hover{transform:rotate(0);color:var(--accent);border-color:var(--accent)}.upload-tile svg{width:17px}.reference-hint strong{display:block;font-size:10px;color:#8c8c99;font-weight:500}.reference-hint>span{display:block;font-size:9px;color:#b0b0bd;margin-top:5px}.reference-thumbs{display:flex;gap:6px;flex-wrap:wrap}.reference-thumbs:empty{display:none}.ref-thumb{position:relative}.ref-thumb img{width:46px;height:48px;object-fit:cover;border-radius:5px}.ref-thumb button{position:absolute;right:-4px;top:-7px;background:var(--text);color:var(--panel);border-radius:50%;width:17px;height:17px;font-size:12px;line-height:1;padding:0}.composer textarea{display:block;resize:vertical;min-height:94px;width:100%;border:0;background:transparent;padding:20px 0 12px;font-size:14px;color:var(--text);line-height:1.7;outline:0}.composer textarea::placeholder{color:#a8a8b2}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.mode-tabs{display:flex;background:var(--sidebar);border-radius:9px;padding:3px;gap:1px;flex-wrap:wrap}.mode-tabs button{display:flex;align-items:center;gap:6px;color:#7f818d;padding:8px 11px;font-size:11px;border-radius:7px;white-space:nowrap}.mode-tabs button.selected{background:var(--panel);box-shadow:0 1px 4px #28263818;color:var(--text)}.mode-tabs svg{width:15px;height:15px}.composer-options{display:flex;align-items:center;gap:9px}.composer-options select{background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:7px;font-size:10px;padding:7px;max-width:68px}.composer-options .icon-btn{color:#94939f;width:28px}.composer-options svg{width:17px;height:17px}.send-btn{width:36px;height:36px;border-radius:50%;background:#28292e;color:#fff;display:grid;place-items:center}.send-btn:hover{background:var(--accent);transform:translateY(-2px)}.inline-error{background:#fff0ee;color:#b24436;padding:12px;border-radius:8px;margin-top:14px;font-size:12px;line-height:1.6}.prompt-caption{display:flex;justify-content:space-between;margin:11px 4px 0;color:#b0b1bb;font-size:9px}.quick-inspiration{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:23px;font-size:11px;color:#8c8f9a}.quick-inspiration>span{font-size:9px;color:#b2b2bf}.quick-inspiration button{padding:4px 0;color:#868995;white-space:nowrap}.quick-inspiration button>span{margin-left:7px;color:#999ca7}.quick-inspiration button:hover{color:var(--accent)}.content-section{max-width:1320px;margin:0 auto;padding:30px 38px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:21px}.section-kicker{font-size:8px;letter-spacing:1.8px;color:#a2a0b1;font-weight:500;display:block;margin-bottom:9px}h2{font-size:20px;letter-spacing:-.35px;font-weight:600}.heading-dot{color:var(--accent);margin-left:2px}.text-link{display:flex;align-items:center;gap:12px;font-size:11px;color:#92939f;white-space:nowrap;padding:6px 0}.text-link:hover{color:var(--accent)}.app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.app-card{height:169px;position:relative;border-radius:13px;overflow:hidden;background:#5d635d;text-align:left;color:#fff;isolation:isolate;padding:21px 18px;box-shadow:0 3px 5px #00000005}.app-card:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(110deg,rgba(0,0,0,.58),rgba(0,0,0,.05)),linear-gradient(0deg,rgba(0,0,0,.2),transparent)}.app-card img{position:absolute;z-index:-2;inset:0;height:100%;width:100%;object-fit:cover;transition:transform .5s}.app-card:hover img{transform:scale(1.06)}.app-card h3{font-size:17px;font-weight:600;letter-spacing:.25px}.app-card p{font-size:10px;opacity:.78;margin-top:8px}.app-card .app-type{font-size:8px;letter-spacing:1.7px;opacity:.75;display:block;margin-bottom:9px}.app-card .app-arrow{position:absolute;left:18px;bottom:18px;width:27px;height:27px;display:grid;place-items:center;border:1px solid #ffffff50;border-radius:50%;font-size:16px;background:#ffffff0b}.app-card .app-corner{position:absolute;bottom:21px;right:15px;opacity:.65;font-size:9px}.gallery-section{padding-top:43px}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 17px}.gallery-grid.featured{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gallery-card{min-width:0;text-align:left;cursor:pointer}.gallery-image{aspect-ratio:1.35;position:relative;border-radius:12px;overflow:hidden;background:#e8e8e7}.featured .gallery-image{aspect-ratio:1.8}.gallery-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.gallery-card:hover .gallery-image img{transform:scale(1.04)}.image-badge{position:absolute;top:10px;left:10px;background:#ffffffd9;color:#54545c;backdrop-filter:blur(8px);padding:5px 8px;border-radius:5px;font-size:8px}.gallery-card .hover-action{position:absolute;inset:auto 0 0;background:linear-gradient(0deg,#0008,transparent);color:#fff;padding:32px 13px 12px;font-size:11px;opacity:0;transition:opacity .2s}.gallery-card:hover .hover-action,.gallery-card:focus-within .hover-action{opacity:1}.gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:11px}.gallery-caption h3{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-caption span{font-size:9px;color:var(--muted);white-space:nowrap}.gallery-caption small{font-size:9px;color:var(--muted)}.more-section{padding-top:39px}.more-section h2{font-size:17px}.home-filters{display:flex;gap:6px}.home-filters button{font-size:10px;padding:6px 10px;border-radius:20px;color:var(--muted)}.home-filters button.active{background:var(--text);color:var(--panel)}footer{max-width:1320px;margin:42px auto 0;padding:24px 38px 26px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);gap:18px;color:#b0b1bc;font-size:10px}footer>span{font-size:12px;font-weight:600;color:#8e8f9a}.footer-star{color:#9c91cf;padding-right:6px}footer small{font-size:8px}.inner-page{max-width:1350px;margin:0 auto;padding:40px 38px 60px;min-height:calc(100vh - 150px)}.page-heading{margin-bottom:38px}.page-heading h1{font-size:33px;font-weight:600;margin-top:16px;letter-spacing:-.6px}.page-heading p{font-size:12px;color:var(--muted);margin-top:14px;line-height:1.8}.large.app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.large .app-card{height:240px;padding:30px}.large .app-card h3{font-size:26px}.large .app-card p{font-size:13px}.large .app-card .app-arrow{left:30px;bottom:30px}.large .app-card .app-corner{bottom:37px;right:30px}.info-strip{display:flex;gap:20px;padding:30px;background:var(--soft);border:1px solid var(--line);border-radius:15px;margin-top:30px}.info-strip svg{color:var(--accent)}.info-strip strong{font-weight:500;font-size:14px}.info-strip p{margin-top:8px;font-size:12px;color:var(--muted)}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.category-filters{display:flex;flex-wrap:wrap;gap:8px}.category-filters button{padding:8px 15px;border:1px solid transparent;color:var(--muted);font-size:12px;border-radius:20px}.category-filters button.active{background:var(--text);color:var(--panel)}.category-filters button:hover:not(.active){border-color:var(--line);background:var(--panel)}.search-box{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:10px 12px;width:220px;flex-shrink:0;color:var(--muted)}.search-box input{border:0;background:transparent;outline:0;min-width:0;width:100%;font-size:11px;color:var(--text)}.search-box svg{width:15px;height:15px}.split-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:8px;font-size:12px;cursor:pointer;white-space:nowrap}.primary-btn{background:var(--text);color:var(--panel)}.primary-btn:hover{background:var(--accent);color:#fff}.secondary-btn{background:var(--panel);border:1px solid var(--line);color:var(--text)}.primary-btn svg,.secondary-btn svg{width:16px;height:16px}.asset-tabs{margin-bottom:30px}.empty-state{text-align:center;padding:90px 20px}.empty-state>span{display:inline-flex;padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:20px;margin-bottom:22px;color:#a19ab9}.empty-state>span svg{width:30px;height:30px}.empty-state h3{font-size:20px;font-weight:500}.empty-state p{font-size:13px;color:var(--muted);margin:13px 0 25px}dialog{border:1px solid var(--line);border-radius:20px;padding:0;background:var(--panel);color:var(--text);box-shadow:0 20px 100px #13162833;max-height:90vh;overflow:auto}dialog::backdrop{background:#20233373;backdrop-filter:blur(7px)}.detail-dialog{width:900px;max-width:calc(100vw - 40px)}.info-dialog{width:510px;max-width:calc(100vw - 32px)}.dialog-close{position:absolute;right:14px;top:14px;background:var(--panel);box-shadow:0 1px 8px #0001;z-index:2}.detail-layout{display:grid;grid-template-columns:1.1fr 1fr;min-height:460px}.detail-image{height:100%;min-height:460px;width:100%;object-fit:cover}.detail-copy{padding:54px 28px 28px}.detail-copy .section-kicker{margin-bottom:15px}.detail-copy h2{font-size:24px;margin-bottom:20px}.detail-meta{display:flex;gap:8px;margin-bottom:24px}.detail-meta span{font-size:10px;color:var(--muted);background:var(--sidebar);padding:5px 8px;border-radius:5px}.detail-copy h4{font-size:12px;margin:0 0 10px;font-weight:500}.prompt-text{font-size:12px;color:var(--muted);line-height:1.9;background:var(--bg);padding:14px;border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.detail-actions .primary-btn{width:100%}.source-label{font-size:9px;color:var(--muted);line-height:1.6;margin-top:18px}.info-content{padding:40px 32px 30px}.info-content>svg{width:30px;height:30px;color:var(--accent);margin-bottom:18px}.info-content h2{font-size:23px;margin:0 0 16px}.info-content p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:10px}.info-content .primary-btn,.info-content .secondary-btn{margin-top:22px}.info-content ul{padding-left:19px;font-size:12px;line-height:2;color:var(--muted)}.info-content .prompt-text{max-height:220px;overflow:auto}.status-box{padding:13px;background:#fff6e4;color:#9d7b39;border-radius:8px;font-size:11px;line-height:1.8;margin:20px 0}.draft-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;text-align:left}.draft-card svg{color:var(--accent);margin-bottom:20px}.draft-card h3{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.draft-card p{font-size:10px;color:var(--muted);margin-top:12px}.skills-list{display:grid;gap:8px;margin-top:22px}.skills-list button{padding:13px;text-align:left;background:var(--bg);border:1px solid var(--line);border-radius:8px}.skills-list strong{font-size:12px;font-weight:500;display:block}.skills-list small{font-size:10px;color:var(--muted);display:block;line-height:1.8;margin-top:4px}#toast{position:fixed;bottom:30px;left:calc(50% + var(--sidebar-width)/2);transform:translate(-50%,20px);z-index:100;padding:12px 20px;border-radius:10px;background:#262831;color:white;font-size:12px;box-shadow:0 7px 30px #0002;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100vw - 32px)}#toast.show{opacity:1;transform:translate(-50%,0)}body.dark{--bg:#18191d;--panel:#24252b;--sidebar:#202127;--text:#eeeeF4;--muted:#9699a8;--line:#35363f;--soft:#29243f;--grid:rgba(100,105,125,.11)}body.dark .composer{border-color:var(--line)}body.dark .studio-note{background:linear-gradient(130deg,#302b3e,#262a35);border-color:#3c354a}body.dark .studio-note button{background:#ffffff0b}body.dark .nav-item:hover{background:#35343f}body.dark .workspace-tabs .selected,body.dark .send-btn{background:#dcd9ee;color:#292533}body.dark .mode-tabs button.selected{background:#3c3b45}body.dark .inline-error{background:#442c2c;color:#ffb8aa}body.dark .status-box{background:#443b27;color:#dcc18e}body.sidebar-small{--sidebar-width:78px}body.sidebar-small .sidebar{--sidebar-padding:11px}body.sidebar-small .brand{padding:0 9px}body.sidebar-small .brand strong,body.sidebar-small .nav-item>span:nth-child(2),body.sidebar-small .nav-item small,body.sidebar-small .sidebar-section,body.sidebar-small .studio-note,body.sidebar-small .profile>span:not(.avatar){display:none}body.sidebar-small .nav-item{justify-content:center;padding:15px}body.sidebar-small .sidebar-collapse{right:22px}body.sidebar-small .profile{justify-content:center}.mobile-overlay{display:none}
.sidebar-scroll {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 27px var(--sidebar-padding) 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.sidebar-scroll > *,
.sidebar > .profile {
  flex-shrink: 0;
}
.sidebar > .profile {
  margin-inline: var(--sidebar-padding);
}
@media(min-width:1600px){.hero{padding-top:60px;padding-bottom:45px}.hero h1{font-size:47px}.hero-subtitle{font-size:14px}.composer textarea{min-height:125px}.app-card{height:200px}.content-section{padding-top:40px}.gallery-section{padding-top:48px}.hero{max-width:1150px}}
@media(max-width:1200px){:root{--sidebar-width:205px}.sidebar{--sidebar-padding:12px}.brand strong{font-size:18px}.brand{gap:7px;padding-left:7px}.hero{padding:30px 28px}.hero h1{font-size:34px}.content-section{padding-left:28px;padding-right:28px}.composer{padding:18px}.mode-tabs button{font-size:10px;padding:8px}.composer-options{gap:5px}.topbar{padding:0 28px}.app-card{height:150px;padding:17px 14px}.app-card h3{font-size:15px}.app-card .app-arrow{left:14px;bottom:15px}.app-card .app-corner{display:none}.gallery-caption h3{font-size:11px}.demo-tag{display:none}.inner-page{padding-left:28px;padding-right:28px}.gallery-toolbar{flex-wrap:wrap}.quick-inspiration{gap:16px}.quick-inspiration>span{display:none}}
@media(max-width:950px){:root{--sidebar-width:78px}.sidebar{--sidebar-padding:11px}.brand{padding:0 9px}.brand strong,.nav-item>span:nth-child(2),.nav-item small,.sidebar-section,.studio-note,.profile>span:not(.avatar){display:none}.nav-item{justify-content:center;padding:15px}.sidebar-collapse{display:none}.profile{justify-content:center}.hero h1{font-size:34px}.app-grid{gap:10px}.app-card h3{font-size:14px}.app-card p{font-size:9px}.topbar{height:60px}.composer-footer{flex-wrap:wrap}.composer-options{margin-left:auto}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-inspiration{gap:22px}h2{font-size:18px}.section-heading{gap:10px}footer p{display:none}}
@media(max-width:680px){:root{--sidebar-width:0px;--banner-height:32px}.announcement{font-size:10px}.announcement button:not(.banner-close){display:none}.announcement .banner-close{right:6px}.sidebar{width:230px;transform:translateX(-100%);--sidebar-padding:16px}.brand{padding:0 12px}.brand strong,.nav-item>span:nth-child(2),.nav-item small,.sidebar-section,.studio-note,.profile>span:not(.avatar){display:block}.nav-item{justify-content:flex-start;padding:14px 17px}.profile{justify-content:flex-start}.sidebar-section{margin-top:25px}.sidebar-bottom{padding-top:15px}.studio-note{display:none}body.mobile-open .sidebar{transform:translateX(0)}body.mobile-open .mobile-overlay{display:block;position:fixed;inset:var(--banner-height) 0 0;background:#20233166;backdrop-filter:blur(3px);z-index:24}.topbar{padding:0 16px;height:58px;gap:10px}#mobileMenu{display:flex}.breadcrumb{margin-right:auto;font-size:10px}.top-actions{gap:12px}.top-text,.top-divider,#helpBtn{display:none}.top-new{font-size:10px;padding:8px 10px;gap:9px}.top-actions>.icon-btn{width:20px}.hero{padding:25px 18px 20px}.eyebrow{font-size:7px;letter-spacing:1.5px}.hero h1{font-size:29px;letter-spacing:-.8px;margin-top:17px}.hero-subtitle{font-size:10px;line-height:1.9;max-width:290px;margin:18px auto 0}.workspace-tabs{margin:22px auto;width:230px}.workspace-tabs button{padding:9px;font-size:11px}.composer{border-radius:15px;padding:16px 13px 12px}.composer textarea{font-size:12px;min-height:104px}.mode-tabs{flex:1;justify-content:space-between;width:100%}.mode-tabs button{padding:8px 6px;font-size:9px;gap:4px}.mode-tabs button svg{width:13px;height:13px}.composer-options{width:100%;justify-content:flex-end;margin-top:2px}.composer-options .send-btn{margin-left:auto;width:33px;height:33px}.composer-options select{padding:6px}.prompt-caption{font-size:8px}.prompt-caption span:last-child{display:none}.quick-inspiration{gap:16px;flex-wrap:wrap;margin-top:23px;font-size:10px}.quick-inspiration button>span{margin-left:4px}.content-section{padding:22px 18px 0}.section-heading{margin-bottom:16px;align-items:center}.section-kicker{font-size:6.5px;letter-spacing:1.3px;margin-bottom:7px}h2{font-size:16px}.text-link{font-size:9px;gap:5px}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.app-card{height:154px;padding:17px 15px}.app-card h3{font-size:16px}.app-card .app-type{font-size:7px}.app-card p{font-size:10px}.gallery-section{padding-top:30px}.gallery-section h2{font-size:15px}.gallery-grid,.gallery-grid.featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.featured .gallery-card:first-child{grid-column:1/-1}.featured .gallery-card:first-child .gallery-image{aspect-ratio:1.9}.featured .gallery-image{aspect-ratio:1.25}.gallery-image{border-radius:9px}.gallery-caption h3{font-size:10px}.gallery-caption span{font-size:8px}.image-badge{top:7px;left:7px;font-size:7px;padding:4px 6px}.more-section h2{font-size:15px}.more-section .section-heading{flex-wrap:wrap;gap:12px}.home-filters button{font-size:9px;padding:5px 9px}.inner-page{padding:28px 18px 40px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px}.large.app-grid{grid-template-columns:1fr}.large .app-card{height:220px}.gallery-toolbar{gap:16px}.category-filters{gap:4px}.category-filters button{font-size:10px;padding:7px 11px}.search-box{width:100%}.split-heading{align-items:flex-start;flex-direction:column}.primary-btn,.secondary-btn{font-size:11px;padding:10px 14px}.detail-layout{grid-template-columns:1fr}.detail-image{min-height:0;height:240px}.detail-copy{padding:25px}.detail-copy h2{font-size:22px}.detail-copy .section-kicker{margin-bottom:10px}.info-content{padding:40px 24px 26px}.info-content h2{font-size:21px}footer{margin-top:30px;padding:20px 18px;align-items:flex-start;gap:12px}footer>span{font-size:11px}footer small{font-size:8px;max-width:140px;text-align:right;line-height:1.7}.empty-state{padding:60px 10px}.empty-state h3{font-size:18px}.empty-state p{font-size:11px}.info-strip{padding:22px 18px;gap:14px}.info-strip strong{font-size:12px}.info-strip p{font-size:11px}body.sidebar-small{--sidebar-width:0px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.account-button {
  display: flex;
  align-items: center;
  min-height: 34px;
  max-width: 120px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.account-button:hover {
  background: var(--soft);
}
.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dialog {
  --account-muted: #626578;
  --account-input-border: #dedbe9;
  width: min(768px, calc(100% - 32px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  border-radius: 22px;
  box-shadow: 0 28px 90px #1512314d;
  overscroll-behavior: contain;
}
body.dark .account-dialog {
  --account-muted: #b3aec4;
  --account-input-border: #484456;
}
.account-dialog::backdrop {
  background: #17142c85;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.account-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 466px;
  overflow: hidden;
  padding: 32px 28px;
  background:
    radial-gradient(ellipse at 51% 46%, #9274ff47, transparent 63%),
    radial-gradient(circle, #dfd3ff24 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(145deg, #332666, #221c48 64%, #19162f);
  color: #fff;
}
.account-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.account-brand-mark {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  height: 42px;
  border: 1px solid #e4d9ff4d;
  border-radius: 13px;
  background: #ddd0ff20;
  color: #efe0ff;
  font-size: 26px;
  line-height: 1;
}
.account-brand strong,
.account-brand small {
  display: block;
}
.account-brand strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .06em;
}
.account-brand small {
  margin-top: 3px;
  color: #d6cbee;
  font-size: 9px;
  letter-spacing: .12em;
}
.account-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(97%, 320px);
  height: auto;
  transform: translate(-50%, -50%);
  stroke-width: 1;
}
.account-art-caption {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 3.25vw, 29px);
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.3;
}
.account-content {
  position: relative;
  min-width: 0;
  padding: 46px 38px 36px;
}
.account-content .dialog-close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--account-muted);
  box-shadow: none;
}
.account-content .dialog-close:hover {
  background: var(--soft);
  color: var(--text);
}
.account-content .dialog-close svg {
  width: 17px;
  height: 17px;
}
.account-heading h2 {
  margin: 0 24px 8px 0;
  font-size: clamp(23px, 4vw, 29px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.account-heading p,
.account-status {
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#loginForm {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}
.account-field {
  display: grid;
  gap: 7px;
}
#loginForm label {
  font-size: 13px;
  font-weight: 600;
}
#loginForm input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--account-input-border);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
#loginForm input::placeholder {
  color: var(--account-muted);
  opacity: .85;
}
#loginForm input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.account-password {
  position: relative;
}
#loginForm #loginPassword {
  padding-inline-end: 66px;
}
#toggleLoginPassword {
  position: absolute;
  inset-block: 5px;
  inset-inline-end: 5px;
  min-width: 53px;
  padding-inline: 8px;
  border-radius: 8px;
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 600;
}
#toggleLoginPassword:hover:not(:disabled) {
  background: var(--soft);
  color: var(--text);
}
#loginSubmit {
  position: relative;
  min-height: 48px;
  margin-top: 5px;
  padding-inline: 45px;
  border-radius: 11px;
  background: linear-gradient(110deg, #5141c8, #6854dc);
  box-shadow: 0 7px 16px #5445cb33;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
#loginSubmit:hover:not(:disabled) {
  background: linear-gradient(110deg, #4436af, #5844cc);
}
.account-submit-mark {
  position: absolute;
  inset-inline-end: 17px;
  font-size: 18px;
  font-weight: 400;
}
#signedInAccount {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.account-dialog .account-status,
.account-dialog .inline-error {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.account-status:empty {
  margin: 0;
}
@media (max-width: 680px) {
  .topbar .breadcrumb {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-button {
    max-width: 76px;
    padding: 0 9px;
  }
}
@media (max-width: 640px) {
  .account-dialog {
    width: min(450px, calc(100% - 24px));
    border-radius: 18px;
  }
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-art {
    min-height: 0;
    padding: 15px 21px;
  }
  .account-art-caption {
    display: none;
  }
  .account-orbit {
    right: -16px;
    left: auto;
    width: 158px;
    transform: translateY(-50%);
    opacity: .7;
  }
  .account-content {
    padding: 24px 22px 26px;
  }
  .account-content .dialog-close {
    top: 12px;
    right: 12px;
  }
}
@media (min-width: 641px) and (max-height: 540px) {
  .account-art {
    min-height: 396px;
    padding-block: 24px;
  }
  .account-orbit {
    width: min(82%, 260px);
  }
  .account-content {
    padding-block: 32px 28px;
  }
}

.profile-page .page-heading {
  margin-bottom: 26px;
}
.sidebar > .profile.active {
  border-radius: 10px;
  background: var(--panel);
}
.profile-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, var(--panel) 58%, var(--soft));
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-identity-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-identity-copy .section-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .6px;
}
.profile-account-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.profile-account-meta span {
  margin-top: 5px;
}
.profile-account-meta span:empty {
  display: none;
}
.profile-account-actions,
.profile-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-account-actions button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.profile-account .inline-error {
  grid-column: 1 / -1;
  margin: 0;
}
.profile-section {
  margin-top: 32px;
}
.profile-section-heading,
.profile-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.profile-local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 14px;
}
.profile-local-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.profile-panel-heading h3 {
  font-size: 14px;
  font-weight: 600;
}
.profile-draft-list {
  display: grid;
  gap: 7px;
}
.profile-draft-list .draft-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
}
.profile-draft-list .draft-card:hover {
  border-color: var(--accent);
}
.profile-draft-list .draft-card svg {
  width: 16px;
  height: 16px;
  margin: 0;
}
.profile-draft-list .draft-card p {
  grid-column: 2;
  margin: 0;
  line-height: 1.4;
}
.profile-favorite-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.profile-empty,
.profile-status {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.profile-status {
  margin-bottom: 12px;
  background: var(--panel);
}
.profile-status:empty {
  display: none;
}
.cloud-asset-filter,
.cloud-asset-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cloud-asset-filter {
  margin-bottom: 16px;
}
.cloud-asset-filter .search-box {
  flex: 1 1 170px;
  width: auto;
  max-width: 340px;
}
.cloud-asset-filter .search-box:focus-within {
  border-color: var(--accent);
}
.cloud-asset-filter select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
}
.cloud-asset-pagination {
  justify-content: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.cloud-asset-card {
  padding: 0;
}
.cloud-asset-card .gallery-image {
  display: block;
  background: var(--soft);
}
.cloud-asset-title {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cloud-asset-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.cloud-asset-preview {
  display: block;
  max-width: 100%;
  margin: 16px 0;
}
img.cloud-asset-preview,
video.cloud-asset-preview {
  max-height: 55vh;
  border-radius: 8px;
}
@media (max-width: 950px) {
  .profile-local-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .profile-account {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .profile-section-heading {
    flex-wrap: wrap;
  }
  .profile-local-card {
    padding: 12px;
  }
  .profile-favorite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cloud-asset-filter .search-box {
    flex-basis: 100%;
    max-width: none;
  }
}

.composer-footer {
  flex-wrap: wrap;
}

.composer-options {
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
}

.composer-model-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.composer-model-field > label {
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.composer-options #composerModel {
  width: clamp(132px, 17vw, 224px);
  max-width: none;
  min-width: 0;
  min-height: 30px;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
}

.composer-options #composerModel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.composer-model-refresh {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel);
  font-size: 11px;
  white-space: nowrap;
}

.composer-model-refresh:hover:not(:disabled) {
  background: var(--soft);
}

.composer-model-status {
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.composer-model-status:empty { margin: 0; }
.composer-model-status.is-error { color: #a63e48; }
body.dark .composer-model-status.is-error { color: #f595a4; }
body.dark .composer-model-field { color-scheme: dark; }

@media (max-width: 680px) {
  .composer-model-field { flex: 1 1 auto; }
  .composer-options #composerModel { flex: 1 1 132px; }
}

@media (max-width: 440px) {
  .composer-options { flex-wrap: wrap; }
  .composer-model-field { flex-basis: 100%; }
}

/* Agent 会话使用既有主题变量，原媒体草稿入口保持独立。 */
.agent-panel { text-align:left; border-bottom:1px solid var(--line); margin-bottom:18px; padding-bottom:16px; }
.agent-panel[hidden],.agent-panel [hidden],.agent-save-draft[hidden] { display:none; }
.agent-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.agent-toolbar label { display:flex; align-items:center; gap:8px; flex:1; min-width:160px; }
.agent-panel select { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px; max-width:100%; }
.agent-panel select option { background:var(--bg); color:var(--text); }
.agent-toolbar select { min-width:0; width:100%; }
.agent-toolbar button,.agent-save-draft,#agentOlder { color:var(--text); background:transparent; border:1px solid var(--line); border-radius:8px; padding:7px 10px; font-size:12px; cursor:pointer; }
.agent-model-label { display:flex; gap:10px; align-items:center; font-size:12px; color:var(--muted); }
.agent-messages { max-height:460px; overflow-y:auto; overscroll-behavior:contain; margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.agent-message { border:1px solid var(--line); border-radius:12px; padding:14px; color:var(--text); line-height:1.65; font-size:14px; overflow-wrap:anywhere; }
.agent-user { margin-left:12%; background:color-mix(in srgb, var(--accent, #6862ee) 8%, transparent); }
.agent-message strong { display:block; font-size:12px; margin-bottom:5px; }
.agent-message-text { white-space:pre-wrap; }
.agent-message details { margin-top:10px; font-size:12px; color:var(--muted); }
.agent-step-error { color:var(--text); border-left:3px solid #c94e51; padding-left:8px; }
.agent-usage,.agent-status { color:var(--muted); font-size:12px; }
.agent-usage { display:block; margin-top:10px; }
.agent-status { margin:12px 0 0; }
.agent-save-draft { display:block; margin-top:12px; }
.agent-panel button:disabled { cursor:default; opacity:.6; }
.agent-panel :focus-visible { outline:2px solid var(--accent, #6862ee); outline-offset:3px; }
.send-btn { min-width:38px; width:auto; padding:0 9px; white-space:nowrap; }
@media(max-width:600px) { .agent-user { margin-left:6%; } .agent-messages { max-height:380px; } }
.agent-toolbar label { white-space:nowrap; }
.agent-toolbar select { flex:1; width:0; }
