:root{--bg:#111113;--panel:#1b1b1e;--panel2:#222225;--line:#303034;--text:#f1f0ee;--muted:#929196;--dim:#69686e;--cyan:#7cdcf2;--pink:#edc5d3;--accent:#a8e8f5;font-family:"DM Sans","Noto Sans SC",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;font-optical-sizing:auto}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);font-size:14px}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.rail{width:68px;position:fixed;inset:0 auto 0 0;display:flex;align-items:center;flex-direction:column;gap:13px;padding:20px 0;background:#151517;border-right:1px solid #29292c;z-index:10}.brand-mark{width:36px;height:36px;border-radius:12px;background:linear-gradient(140deg,#fae8d6,#c6edfa);color:#303137;display:grid;place-items:center;font-size:21px;margin-bottom:23px;box-shadow:0 0 25px #e9e0d327}.rail-item,.avatar,.icon-button{border:0;background:transparent}.rail-item{width:42px;height:42px;color:#85848a;border-radius:13px;font-size:20px}.rail-item.active{color:#d9f7ff;background:#28282c}.rail-spacer{flex:1}.avatar{width:34px;height:34px;border-radius:50%;background:#37343a;color:#f3dbe7;border:1px solid #49464e;font-size:13px}.main-view{margin-left:68px;min-height:100vh}.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid #252528;background:#121214}.crumb{display:flex;gap:12px;align-items:center;color:#85848a;font-size:12px}.crumb-light{color:#d5d4d4}.slash{color:#505055}.top-actions{display:flex;align-items:center;gap:16px}.local-pill{border:1px solid #303034;border-radius:20px;padding:6px 10px;color:#a5a4a9;font-size:11px}.local-pill i,.status-dot{display:inline-block;width:6px;height:6px;background:#78d5aa;border-radius:50%;margin-right:5px;box-shadow:0 0 8px #78d5aa66}.icon-button{width:25px;height:25px;border:1px solid #4a494e;border-radius:50%;color:#aaa9ae;font-size:12px}.hero{height:282px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,#242124 0%,#171619 40%,#111113 78%);border-bottom:1px solid #272629}.hero-dots{position:absolute;inset:0;opacity:.23;background-image:radial-gradient(#4a444a .7px,transparent .7px);background-size:19px 19px;mask-image:linear-gradient(transparent 4%,black 60%,transparent)}.hero-orb{position:absolute;border-radius:50%;filter:blur(52px);opacity:.10;pointer-events:none}.orb-a{width:300px;height:140px;background:#86c8e1;left:26%;top:135px}.orb-b{width:220px;height:125px;background:#edaabd;right:22%;top:153px}.hero-content{position:relative;z-index:1;text-align:center;padding-top:45px}.eyebrow,.section-kicker{color:#99979d;letter-spacing:2.5px;font-size:9px;font-weight:600}.eyebrow-star{color:#d9c8d3;margin-right:7px}.hero h1{font-size:30px;letter-spacing:.4px;font-weight:600;margin:11px 0 8px;background:linear-gradient(96deg,#faf5ef 28%,#f4e3eb 56%,#e3f6fa 83%);background-clip:text;color:transparent}.hero p{color:#96949b;font-size:12px;margin:0}.mode-switch{width:290px;height:43px;background:#242326;border:1px solid #323034;border-radius:30px;padding:3px;display:flex;margin:23px auto 0}.mode{flex:1;border:0;border-radius:25px;background:transparent;color:#aaa8ad;font-size:13px;transition:.2s}.mode.active{background:linear-gradient(100deg,#fff8f1,#f5f8f9 60%,#e8fbff);color:#29292c;box-shadow:0 2px 12px #fff5ea26;font-weight:600}.mode-glyph{margin-right:6px}.hero-bottom{position:absolute;bottom:14px;left:4%;right:4%;display:flex;align-items:center;gap:11px;color:#6d6b72;font-size:9px;letter-spacing:1.6px}.hero-line{height:1px;background:linear-gradient(90deg,#383438,transparent);flex:1}.workspace{max-width:1110px;padding:0 32px;margin:0 auto}.composer-wrap{margin-top:22px}.composer-card{background:linear-gradient(145deg,#1c1c1f,#19191c);border:1px solid #323236;border-radius:17px;box-shadow:0 17px 54px #00000029;overflow:visible}.reference-row{position:relative;min-height:160px;padding:18px 20px 35px;display:flex;align-items:flex-start;gap:15px}.add-reference{width:68px;height:72px;border:1px dashed #626066;background:#222226;color:#b8b7bb;border-radius:10px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:.2s}.add-reference:hover{border-color:#95dff1;background:#26282b;color:#c2f5ff}.add-reference span{font-size:25px;line-height:1}.add-reference small{font-size:9px;color:#96949a}.thumb-list{display:flex;gap:8px}.thumb{position:relative;width:68px;height:72px;border-radius:9px;overflow:hidden;border:1px solid #444}.thumb img{width:100%;height:100%;object-fit:cover}.thumb button{position:absolute;right:3px;top:3px;width:19px;height:19px;border-radius:50%;border:0;background:#17171abf;color:white}.reference-row textarea{flex:1;min-height:91px;resize:vertical;background:transparent;border:0;outline:none;color:#ecebed;font-size:13px;line-height:1.8;padding:1px 2px}.reference-row textarea::placeholder{color:#717076}.prompt-tools{position:absolute;left:106px;bottom:12px;right:20px;display:flex;justify-content:space-between;color:#77767c;font-size:10px}.prompt-hint{color:#66656b}.composer-divider{height:1px;background:#2d2d31;margin:0 16px}.controls{min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:9px 12px 9px 19px;gap:10px}.control-left,.control-right{display:flex;align-items:center;gap:4px}.control-right{gap:9px}.control-chip{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#d3d2d5;border-radius:8px;height:34px;padding:0 8px;font-size:12px;white-space:nowrap}.control-chip:hover,.advanced-button:hover{background:#2b2b2f}.control-chip.accent{color:#70dafa}.chip-icon{font-size:15px}.cube{font-size:17px}.ratio-icon{font-size:19px;line-height:1}.quality-icon{font-size:14px;color:#b9edf5}.chevron{font-size:15px;color:#77767b;margin-left:2px}.control-separator{height:17px;width:1px;background:#38383d;margin:0 4px}.advanced-button{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:#aaa9ae;font-size:11px;padding:8px;border-radius:8px}.sliders{font-size:16px}.generate-button{border:0;color:#222326;height:39px;min-width:129px;padding:0 12px;border-radius:11px;background:linear-gradient(105deg,#fae9dc,#e9f6f5 60%,#b9eaf4);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 3px 14px #95dbe625;transition:.2s}.generate-button:hover{filter:brightness(1.06);transform:translateY(-1px)}.generate-button:disabled{opacity:.7;cursor:wait}.button-spark{font-size:13px}.button-arrow{font-size:13px;margin-left:4px}.composer-foot{height:27px;display:flex;justify-content:space-between;padding:6px 3px 0;color:#77767c;font-size:10px}.keycap{display:inline-grid;place-items:center;border:1px solid #3b3a3f;border-radius:4px;width:15px;height:15px;margin-right:5px;color:#aaa}.advanced-panel{display:none;grid-template-columns:1fr 2fr auto;gap:14px;padding:12px 18px 18px;border-top:1px solid #2b2b2f}.advanced-panel.open{display:grid}.advanced-panel label{display:flex;flex-direction:column;gap:7px;color:#a5a4aa;font-size:10px}.advanced-panel input:not([type=checkbox]){background:#222226;border:1px solid #3b3b40;padding:9px;border-radius:7px;outline:0;font-size:11px}.advanced-panel input:focus{border-color:#8bdcef}.toggle-label{justify-content:center;position:relative;padding-right:43px}.toggle-label input{position:absolute;right:0;opacity:0}.toggle-label i{position:absolute;right:0;top:50%;width:34px;height:18px;border-radius:10px;background:#414047;transform:translateY(-50%);transition:.2s}.toggle-label i:after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#d9d8dc;transition:.2s}.toggle-label input:checked+i{background:#8bdcef}.toggle-label input:checked+i:after{left:18px;background:#25262a}.results-head{display:flex;align-items:flex-end;justify-content:space-between;margin:46px 1px 17px}.section-kicker{letter-spacing:1.8px;font-size:8px;color:#77767d}.results-head h2{font-weight:500;font-size:17px;margin:5px 0 0}.results-count{font-size:10px;color:#929198;border:1px solid #39383e;border-radius:10px;padding:2px 7px;margin-left:4px;vertical-align:2px}.clear-button{background:transparent;border:0;color:#85838a;font-size:10px}.clear-button span{font-size:15px;margin-left:4px}.empty-state{min-height:285px;border:1px solid #28282c;border-radius:15px;background:radial-gradient(ellipse at 50% 80%,#1b1b1e,#151517 71%);display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.empty-art{height:103px;width:180px;position:relative;margin-bottom:7px}.empty-glow{position:absolute;width:123px;height:67px;border-radius:50%;background:#afeaff;opacity:.1;filter:blur(29px);left:29px;top:24px}.empty-frame{position:absolute;left:58px;top:6px;width:64px;height:80px;border:1px solid #77737d;border-radius:10px;background:linear-gradient(155deg,#38343b,#242328);display:grid;place-items:center;color:#e5e0e6;font-size:26px;transform:rotate(-4deg);box-shadow:0 15px 32px #0006}.empty-card{position:absolute;z-index:2;width:37px;height:44px;border:1px solid #514e56;border-radius:7px;background:linear-gradient(150deg,#36343b,#232226);display:grid;place-items:center;color:#d9d3dc;font-size:18px}.card-one{left:28px;top:34px;transform:rotate(-17deg)}.card-two{right:29px;top:27px;transform:rotate(15deg);color:#b9eefa}.empty-title{font-size:13px;color:#dedde0}.empty-state p{font-size:10px;color:#88868d;margin:7px 0 17px}.prompt-ideas{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.idea-chip{border:1px solid #39383e;background:#1b1b1f;color:#a6a4aa;padding:7px 10px;border-radius:18px;font-size:9px;transition:.2s}.idea-chip:hover{color:#d7f7fc;border-color:#647c81}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.result-card{border:1px solid #2e2e32;background:#1a1a1d;border-radius:13px;overflow:hidden;animation:appear .35s ease}.result-image-wrap{position:relative;aspect-ratio:1/1;background:#232327;overflow:hidden;cursor:zoom-in}.result-image{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.result-image-wrap:hover .result-image{transform:scale(1.025)}.result-actions{position:absolute;right:9px;top:9px;display:flex;gap:5px;opacity:0;transition:.18s}.result-image-wrap:hover .result-actions{opacity:1}.result-actions button{width:30px;height:30px;border:1px solid #ffffff35;background:#18181bd9;border-radius:8px;color:#fff}.result-info{padding:11px 12px 13px}.result-prompt{font-size:10px;color:#cbc9ce;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.result-meta{display:flex;justify-content:space-between;color:#77757c;font-size:9px;margin-top:9px}.page-footer{display:flex;justify-content:space-between;border-top:1px solid #28282c;margin-top:32px;padding:17px 1px 22px;color:#5c5b61;font-size:8px;letter-spacing:1.7px}.page-footer span:last-child{letter-spacing:.5px}.page-footer i{font-style:normal;color:#c5eefa;margin-left:4px}.dropdown-wrap{position:relative}.popover{display:none;position:absolute;z-index:30;left:0;bottom:calc(100% + 9px);min-width:230px;padding:8px;border:1px solid #3a393e;border-radius:12px;background:#222225;box-shadow:0 12px 36px #0008}.popover.open{display:block;animation:pop .15s ease}.popover-caption{padding:6px 8px 9px;color:#85838a;font-size:10px}.choice,.model-choice,.list-option{width:100%;display:flex;align-items:center;gap:10px;background:transparent;border:0;color:#cccbd0;text-align:left;padding:10px 9px;border-radius:8px}.choice:hover,.model-choice:hover,.list-option:hover,.ratio-option:hover{background:#303035}.choice>span:first-child{font-size:17px;color:#a2e8f4}.choice>span:nth-child(2),.model-choice>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}.choice b,.model-choice b{font-size:11px;font-weight:500}.choice small,.model-choice small{font-size:9px;color:#89878f}.check{color:#90e2f3;margin-left:auto}.model-pop{min-width:235px}.model-choice.selected{background:#303035}.model-choice:not(.selected) .check{opacity:0}.model-symbol{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#334147;color:#abeffc}.custom-model{display:flex;flex-direction:column;gap:6px;padding:11px 8px 4px;border-top:1px solid #3a393e;margin-top:4px}.custom-model label{font-size:9px;color:#8d8b92}.custom-model input{background:#17171a;border:1px solid #39383e;border-radius:7px;padding:8px 9px;outline:none;font-size:10px}.custom-model input:focus{border-color:#8bdcef}.compact-pop{min-width:190px}.ratio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.ratio-option{height:60px;border:1px solid transparent;border-radius:8px;background:transparent;color:#a8a6ac;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px}.ratio-option.selected{border-color:#80d9ea;background:#303438;color:#e4fbff}.ratio-option i{display:block;border:1px solid #a9a8ae;border-radius:2px}.ratio-square{width:14px;height:14px}.ratio-tall{width:12px;height:17px}.ratio-wide{width:17px;height:12px}.ratio-phone{width:10px;height:18px}.ratio-landscape{width:19px;height:11px}.list-option{justify-content:space-between;font-size:10px;padding:9px}.list-option.selected{color:#dcf8fc}.toast{position:fixed;z-index:60;bottom:28px;left:50%;transform:translate(-50%,15px);background:#eee;color:#242428;border-radius:9px;padding:10px 15px;font-size:11px;box-shadow:0 8px 28px #0008;opacity:0;pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}.lightbox{display:none;position:fixed;inset:0;z-index:50;background:#09090bef;align-items:center;justify-content:center;flex-direction:column;padding:50px}.lightbox.open{display:flex}.lightbox img{max-width:min(88vw,1100px);max-height:80vh;object-fit:contain;border-radius:5px;box-shadow:0 20px 90px #0009}.lightbox-close{position:absolute;right:28px;top:20px;background:transparent;border:0;color:#fff;font-size:33px}.lightbox-caption{max-width:700px;color:#c9c7cd;font-size:11px;margin-top:14px;text-align:center;line-height:1.6}.loading-card{aspect-ratio:1/1;border-radius:13px;background:linear-gradient(110deg,#202023 8%,#29292e 18%,#202023 33%);background-size:220% 100%;animation:shimmer 1.4s linear infinite;border:1px solid #343438;display:grid;place-items:center;color:#aaa8af;font-size:11px}.loading-card span{display:flex;align-items:center;gap:8px}.loading-card i{width:12px;height:12px;border:1.5px solid #9bdfee;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position-x:-220%}}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.workspace{padding:0 24px}.control-chip{padding:0 5px;gap:5px;font-size:11px}.controls{padding-left:12px}.generate-button{min-width:112px}.control-left{gap:1px}}
@media(max-width:820px){.rail{width:56px}.main-view{margin-left:56px}.topbar{padding:0 22px}.hero{height:264px}.hero-content{padding-top:41px}.hero h1{font-size:26px}.controls{align-items:flex-start;flex-direction:column}.control-left{width:100%;overflow:visible;flex-wrap:wrap}.control-right{width:100%;justify-content:flex-end}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-row{min-height:150px}.composer-foot{font-size:9px}}
@media(max-width:540px){.rail{width:48px;padding-top:13px}.brand-mark{width:31px;height:31px;margin-bottom:17px}.rail-item{width:36px;height:36px}.main-view{margin-left:48px}.topbar{height:53px;padding:0 13px}.crumb{font-size:10px}.top-actions{gap:8px}.local-pill{font-size:9px;padding:5px 7px}.workspace{padding:0 12px}.hero{height:230px}.hero-content{padding:38px 12px 0}.hero h1{font-size:22px}.hero p{font-size:10px}.mode-switch{width:245px;height:39px;margin-top:19px}.hero-bottom{font-size:8px}.composer-wrap{margin-top:13px}.reference-row{padding:12px 12px 34px;gap:9px;min-height:144px}.add-reference{width:53px;height:59px}.thumb{width:53px;height:59px}.reference-row textarea{font-size:11px;min-height:88px}.prompt-tools{left:75px;right:12px;bottom:11px;font-size:9px}.prompt-hint{display:none}.controls{padding:8px}.control-left{gap:0}.control-chip{height:31px;font-size:10px;padding:0 5px}.control-separator{margin:0 2px}.control-right{justify-content:space-between}.advanced-panel.open{grid-template-columns:1fr;gap:11px}.advanced-panel .toggle-label{min-height:22px}.composer-foot{padding-top:6px}.results-head{margin-top:33px}.empty-state{min-height:270px;padding:15px}.prompt-ideas{gap:5px}.idea-chip{font-size:8px;padding:6px 8px}.gallery{gap:8px}.result-info{padding:8px}.result-prompt{font-size:9px}.result-meta{font-size:8px}.page-footer{font-size:7px}.lightbox{padding:25px 10px}}


/* Chat-style generation messages above the composer */
.conversation-feed{margin:20px 0 8px}.feed-messages{display:flex;flex-direction:column;gap:21px}.feed-message{padding:0 0 19px;border-bottom:1px solid #29292d;animation:appear .3s ease}.feed-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:2px 0 12px}.feed-prompt{font-size:13px;line-height:1.7;color:#efedf0;white-space:pre-wrap;overflow-wrap:anywhere}.feed-detail{flex:none;color:#85838a;font-size:10px}.feed-detail summary{cursor:pointer;list-style:none;white-space:nowrap}.feed-detail summary::-webkit-details-marker{display:none}.feed-detail summary:hover{color:#d8f6fb}.feed-detail>div{position:absolute;z-index:3;margin-top:7px;right:max(32px,calc((100vw - 1110px)/2));max-width:300px;padding:10px 12px;background:#252529;border:1px solid #404047;border-radius:9px;color:#c6c4ca;box-shadow:0 10px 30px #0008;line-height:1.7}.feed-detail-label{flex:none;color:#85838a;font-size:10px;white-space:nowrap}.feed-image-grid{display:grid;grid-template-columns:repeat(var(--image-count,1),minmax(0,1fr));gap:2px;overflow:hidden;border-radius:9px;background:#111114}.feed-image-card,.feed-placeholder{position:relative;min-width:0;max-height:460px;overflow:hidden;background:#202024}.feed-image-card{cursor:zoom-in}.feed-image-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.feed-image-card:hover img{transform:scale(1.02)}.feed-image-actions{position:absolute;right:9px;top:9px;opacity:0;transition:opacity .2s}.feed-image-card:hover .feed-image-actions{opacity:1}.feed-image-actions button{width:32px;height:32px;border:1px solid #ffffff40;background:#151519dd;border-radius:8px;color:#fff;font-size:17px}.feed-placeholder{background:linear-gradient(115deg,#29272d 0%,#514c57 32%,#6a6872 66%,#326f87 100%);background-size:200% 100%;animation:feed-shimmer 2.4s ease-in-out infinite}.feed-placeholder:nth-child(2){animation-delay:.18s}.feed-placeholder:nth-child(3){animation-delay:.36s}.feed-placeholder:nth-child(4){animation-delay:.54s}.feed-progress{position:absolute;left:10px;top:9px;padding:4px 9px;background:#29282dcc;color:#fff;border-radius:7px;font-size:12px;font-weight:600}.feed-generating{position:absolute;left:10px;bottom:9px;color:#f5f3f5;font-size:10px;text-shadow:0 1px 5px #0009}.pending-message{border-bottom:0}.pending-message .feed-message-head{margin-bottom:10px}@keyframes feed-shimmer{0%,100%{background-position:0 0}50%{background-position:100% 0}}
@media(max-width:700px){.feed-message-head{flex-direction:column;gap:6px}.feed-image-grid{grid-template-columns:repeat(min(var(--image-count,1),2),minmax(0,1fr))}.feed-detail>div{right:16px}.feed-image-card,.feed-placeholder{max-height:360px}}
.history-disclosure{margin-top:30px;border-top:1px solid #29292d;padding-top:12px}.history-disclosure>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px;color:#96949b;font-size:11px;padding:5px 1px}.history-disclosure>summary::-webkit-details-marker{display:none}.history-disclosure>summary:after{content:"⌄";margin-left:auto;font-size:15px}.history-disclosure[open]>summary:after{content:"⌃"}.history-content{padding-top:12px}
.feed-image-toolbar{position:absolute;left:9px;bottom:9px;display:flex;align-items:center;gap:5px;z-index:2}.resolution-trigger{height:29px;padding:0 10px;border:1px solid #ffffff35;border-radius:8px;background:#17171bdc;color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 12px #0005}.resolution-trigger span{margin-left:4px;color:#c4c2c7}.resolution-trigger:hover,.resolution-trigger:focus{background:#25252beF;border-color:#c5edf5}.resolution-trigger:disabled{opacity:.6;cursor:wait}.resolution-badge{padding:5px 8px;border-radius:7px;background:linear-gradient(110deg,#f7e7d5,#bcecf4);color:#202125;font-size:9px;font-weight:700}.resolution-menu{display:none;position:absolute;left:0;bottom:calc(100% + 6px);min-width:112px;padding:4px;border:1px solid #ffffff2e;border-radius:9px;background:#1d1d21f5;box-shadow:0 8px 20px #0008}.resolution-menu.open{display:flex;flex-direction:column}.resolution-menu button{border:0;border-radius:6px;padding:8px 9px;text-align:left;background:transparent;color:#e7e5e9;font-size:10px;white-space:nowrap}.resolution-menu button:hover{background:#38383f;color:#bdf4fc}.feed-upscale-mask{position:absolute;inset:0;z-index:3;display:grid;place-items:center;background:#101014b8;backdrop-filter:blur(2px);color:#f5f3f5;font-size:11px}.feed-upscale-mask span{display:flex;align-items:center;gap:8px}.feed-upscale-mask i{width:13px;height:13px;border:1.5px solid #a5eafb;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 9px 22px;border-bottom:1px solid #29292d}.sidebar-brand .brand-mark{margin:0;flex:none}.brand-copy{display:flex;flex-direction:column;gap:1px}.brand-copy b{font-size:14px;font-weight:600;color:#f2f0f2}.brand-copy small{font-size:9px;letter-spacing:1.5px;color:#7f7d84}.sidebar-nav{display:flex;flex-direction:column;gap:5px;padding-top:15px}.rail{width:250px;align-items:stretch;padding:18px 12px;gap:0}.main-view{margin-left:250px}.rail-item{width:100%;height:40px;min-height:40px;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0 11px;text-align:left;font-size:12px}.rail-item .nav-icon{display:inline-flex;width:19px;justify-content:center;font-size:16px}.rail-item.active{background:#29292d;color:#f4f3f5}.conversation-section{display:flex;flex:1;flex-direction:column;min-height:0;margin-top:27px}.conversation-heading{display:flex;align-items:center;justify-content:space-between;padding:0 9px 10px;color:#9b999f;font-size:10px;letter-spacing:.6px}.conversation-heading button{width:24px;height:24px;border:1px solid #3a393f;border-radius:7px;background:#202023;color:#c9c7cc;font-size:16px;line-height:1}.conversation-heading button:hover{border-color:#8bdcef;color:#baf1fa}.conversation-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;max-height:calc(100vh - 340px);padding:0 1px}.conversation-item{width:100%;height:42px;flex:none;display:flex;align-items:center;gap:9px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:#c3c1c7;text-align:left}.conversation-item:hover{background:#222225}.conversation-item.selected{background:#29292d;color:#f3f1f3}.conversation-item>img,.conversation-placeholder{width:27px;height:27px;border-radius:7px;flex:none;object-fit:cover}.conversation-placeholder{display:grid;place-items:center;background:#38343d;color:#c6eefa;font-size:13px}.conversation-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.conversation-item-date{flex:none;color:#747279;font-size:8px}.rail .rail-spacer{min-height:10px}.rail .avatar{margin:8px 0 0 5px}.conversation-list::-webkit-scrollbar{width:4px}.conversation-list::-webkit-scrollbar-thumb{border-radius:4px;background:#3b3a40}
@media(max-width:820px){.rail{width:220px}.main-view{margin-left:220px}.conversation-list{max-height:calc(100vh - 320px)}}
@media(max-width:540px){.rail{width:58px;padding:12px 7px;align-items:center}.main-view{margin-left:58px}.sidebar-brand{padding:0 0 15px;justify-content:center}.sidebar-brand .brand-mark{width:31px;height:31px}.brand-copy,.sidebar-nav .rail-item>span:not(.nav-icon),.conversation-section{display:none}.sidebar-nav{width:100%;padding-top:12px}.rail-item{justify-content:center;padding:0}.rail .avatar{margin:8px auto 0}.conversation-feed{margin-top:14px}}
.asset-date-heading{grid-column:1/-1;padding:16px 2px 0;color:#b8b6bd;font-size:12px;font-weight:600;border-top:1px solid #2b2b30}.asset-date-heading:first-child{border-top:0;padding-top:2px}
.page-view[hidden]{display:none!important}.assets-view{max-width:1174px;margin:0 auto;padding:42px 32px 56px}.assets-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px;padding-bottom:20px;border-bottom:1px solid #2a2a2e}.assets-heading h1{margin:7px 0 5px;font-size:25px;font-weight:600}.assets-heading p{margin:0;color:#89878f;font-size:12px}.assets-total{padding:8px 12px;border:1px solid #37363c;border-radius:10px;color:#9b99a0;font-size:11px;white-space:nowrap}.assets-total b{color:#eee;font-size:13px;margin-right:3px}.assets-view .gallery{margin-top:8px}.assets-view .empty-state{min-height:330px}.assets-view .empty-state[hidden]{display:none!important}
@media(max-width:540px){.assets-view{padding:25px 12px 40px}.assets-heading{margin-bottom:18px}.assets-heading h1{font-size:21px}.assets-heading p{font-size:10px}.assets-total{font-size:9px;padding:7px 9px}.assets-view .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.conversation-item{position:relative;padding:0;gap:0;overflow:visible}.conversation-open{width:100%;height:100%;min-width:0;display:flex;align-items:center;gap:9px;padding:0 28px 0 8px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left}.conversation-open:hover{background:#222225}.conversation-item.selected .conversation-open:hover{background:#303034}.conversation-open>img,.conversation-open>.conversation-placeholder{width:27px;height:27px;border-radius:7px;flex:none;object-fit:cover}.conversation-item-date{margin-left:auto}.conversation-pin-mark{flex:none;color:#a9eafa;font-size:12px;margin-left:4px}.conversation-menu-trigger{position:absolute;right:5px;top:7px;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:#26262b;color:#d6d4da;font-size:15px;line-height:1;letter-spacing:1px;opacity:0;transition:opacity .15s,background .15s}.conversation-item:hover .conversation-menu-trigger,.conversation-item.menu-open .conversation-menu-trigger,.conversation-menu-trigger:focus-visible{opacity:1}.conversation-menu-trigger:hover{background:#3a3940;color:#fff}.conversation-context-menu{display:none;position:absolute;right:4px;top:calc(100% - 3px);z-index:40;min-width:128px;padding:5px;border:1px solid #3a393f;border-radius:9px;background:#232327;box-shadow:0 10px 24px #0009}.conversation-item.menu-open .conversation-context-menu{display:flex;flex-direction:column}.conversation-item.menu-up .conversation-context-menu{top:auto;bottom:calc(100% - 3px)}.conversation-context-menu button{width:100%;border:0;border-radius:6px;padding:8px 10px;background:transparent;color:#e0dfe3;text-align:left;font-size:10px;white-space:nowrap}.conversation-context-menu button:hover{background:#333339}.conversation-context-menu button.danger{color:#f1a5a5}.conversation-context-menu button.danger:hover{background:#402a2d}
@media(hover:none){.conversation-menu-trigger{opacity:1}}
.image-action-button{width:28px;height:29px;display:grid;place-items:center;padding:0;border:1px solid #ffffff24;border-radius:7px;background:#17171bdc;color:#e9e8eb;font-size:13px;line-height:1;flex:none}.image-action-button:hover{background:#384045;border-color:#a9e8f4;color:#d9faff}.feed-image-toolbar{max-width:calc(100% - 14px);gap:4px;flex-wrap:wrap}.feed-video-card{position:relative;min-width:0;max-height:460px;overflow:hidden;background:#17171a}.feed-video-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#101012}.feed-video-card>a{position:absolute;right:9px;top:9px;z-index:2;padding:7px 9px;border:1px solid #ffffff35;border-radius:7px;background:#17171bdc;color:#fff;text-decoration:none;font-size:10px}.result-image-wrap video.result-image{object-fit:contain;background:#111}.asset-video-download{display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff35;background:#18181bd9;border-radius:8px;color:#fff;text-decoration:none;font-size:17px}
.image-tool-modal[hidden]{display:none!important}.image-tool-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:#070709dc;backdrop-filter:blur(8px)}.image-tool-dialog{width:min(640px,96vw);max-height:94vh;overflow:auto;padding:19px;border:1px solid #38373e;border-radius:17px;background:#1b1b1f;box-shadow:0 24px 90px #000b}.image-tool-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.image-tool-header h2{margin:5px 0 0;font-size:18px;font-weight:600}.image-tool-close{width:31px;height:31px;border:1px solid #3b3a40;border-radius:9px;background:#252529;color:#ddd;font-size:20px}.image-tool-preview{position:relative;width:100%;min-height:120px;margin:0 auto 14px;display:grid;place-items:center;overflow:hidden;border:1px solid #343339;border-radius:10px;background:#121214}.image-tool-preview img{display:block;width:100%;height:100%;object-fit:contain}.image-tool-preview canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.erase-help{position:absolute;left:10px;bottom:10px;padding:6px 9px;border-radius:7px;background:#19191de0;color:#fff;font-size:10px;pointer-events:none}.erase-controls{display:flex;align-items:center;justify-content:space-between;margin:-3px 0 12px;color:#a7a5ac;font-size:11px}.erase-controls label{display:flex;align-items:center;gap:9px}.erase-controls input{width:150px;accent-color:#9ae4f3}.erase-controls button{padding:6px 9px;border:1px solid #3b3a40;border-radius:7px;background:#242428;color:#c6c4cb;font-size:10px}.tool-prompt-label{display:block;margin:9px 0 6px;color:#b7b5bc;font-size:11px}.image-tool-dialog>textarea{width:100%;min-height:74px;resize:vertical;padding:10px 11px;border:1px solid #3a3940;border-radius:9px;outline:none;background:#141416;color:#eee;font-size:12px;line-height:1.6}.image-tool-dialog>textarea:focus{border-color:#83d9ed}.tool-ratio-row{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:#aaa8af;font-size:11px}.tool-ratio-row[hidden],.erase-controls[hidden],.erase-help[hidden]{display:none}.tool-ratio-row select{min-width:120px;padding:7px 9px;border:1px solid #3b3a40;border-radius:8px;background:#242428;color:#ecebed}.image-tool-footer{display:flex;align-items:center;gap:8px;margin-top:15px}.image-tool-footer>span{flex:1;min-width:0;color:#f0bb89;font-size:10px;line-height:1.5}.tool-cancel,.tool-submit{height:35px;padding:0 14px;border-radius:9px;font-size:11px}.tool-cancel{border:1px solid #3d3c42;background:#242428;color:#d4d2d8}.tool-submit{border:0;background:linear-gradient(110deg,#fae9dc,#e9f6f5 58%,#b9eaf4);color:#25262a;font-weight:700}.tool-submit:disabled{opacity:.58;cursor:wait}.modal-open{overflow:hidden}
@media(max-width:540px){.image-tool-dialog{padding:14px;border-radius:13px}.image-tool-modal{padding:9px}.image-tool-preview{min-height:90px}.image-tool-footer{gap:6px}.image-tool-footer>span{font-size:9px}.tool-cancel,.tool-submit{padding:0 10px}}

/* Dedicated Minimax H3 video creation workspace */
#videoStudio[hidden]{display:none!important}.video-studio{max-width:1080px;margin:0 auto;padding:36px 32px 64px;animation:appear .28s ease}.video-studio-heading{display:flex;align-items:center;gap:20px;margin-bottom:23px}.video-back{align-self:flex-start;padding:8px 11px;border:1px solid #38373e;border-radius:9px;background:#1b1b1f;color:#d8d6dc;font-size:11px}.video-back:hover{border-color:#9be7f3;color:#d8faff}.video-studio-heading>div{flex:1}.video-studio-heading h1{margin:5px 0 3px;font-size:24px;font-weight:600}.video-studio-heading p{margin:0;color:#89878f;font-size:11px}.video-model-pill{padding:10px 13px;border:1px solid #35343a;border-radius:11px;background:#1b1b1f;color:#d9f8fc;font-size:11px;white-space:nowrap}.video-studio-card{position:relative;padding:22px 23px 17px;border:1px solid #333237;border-radius:19px;background:linear-gradient(145deg,#1c1c20,#17171a);box-shadow:0 15px 50px #0003}.video-mode-row{display:flex;align-items:center;gap:16px;color:#cfccd2;font-size:11px}.video-mode-switch{display:flex;gap:4px;padding:4px;border:1px solid #3a393f;border-radius:11px;background:#141416}.video-mode-switch button{height:33px;padding:0 15px;border:0;border-radius:8px;background:transparent;color:#aaa8af;font-size:11px}.video-mode-switch button.selected{background:#343439;color:#f5f4f6;box-shadow:0 2px 7px #0004}.video-mode-help{min-height:18px;margin:10px 0 15px;color:#828087;font-size:10px}.video-frame-slots{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 12px;padding:16px;border:1px solid #303035;border-radius:13px;background:#151518}.video-frame-slots[hidden],.video-reference-list:empty{display:none}.video-frame-slot{position:relative;width:116px;height:142px;overflow:hidden;border:1px solid #45444b;border-radius:9px;background:#242428}.video-frame-slot>img{width:100%;height:100%;object-fit:cover}.video-frame-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;color:#b3b1b8}.video-frame-empty span{font-size:28px;font-weight:300}.video-frame-empty b{font-size:11px;font-weight:500}.video-frame-empty small{color:#7f7d84;font-size:9px}.video-frame-caption{position:absolute;left:7px;bottom:7px;padding:4px 7px;border-radius:5px;background:#141418d9;color:#eee;font-size:9px}.video-frame-remove{position:absolute;right:6px;top:6px;width:23px;height:23px;border:0;border-radius:50%;background:#111c;color:#fff;font-size:17px}.video-frame-arrow{color:#89878f;font-size:18px}.video-reference-list{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 13px}.video-ref-card{position:relative;width:90px;height:116px;overflow:hidden;border:1px solid #3d3c42;border-radius:9px;background:#252529}.video-ref-card>img{width:100%;height:78px;display:block;object-fit:cover}.video-ref-number{position:absolute;left:5px;top:5px;padding:3px 5px;border-radius:4px;background:#111c;color:#fff;font-size:8px}.video-ref-name{display:block;overflow:hidden;padding:5px 20px 4px 6px;color:#c6c4ca;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.video-ref-remove{position:absolute;right:4px;bottom:4px;width:19px;height:19px;border:0;border-radius:5px;background:#39383e;color:#e8e6ea;font-size:14px;line-height:1}.video-ref-order{position:absolute;right:4px;top:4px;display:flex;gap:3px}.video-ref-order button{width:19px;height:19px;padding:0;border:0;border-radius:4px;background:#111d;color:#fff;font-size:10px}.video-ref-order button:disabled{opacity:.35}.video-ref-chip{display:flex;align-items:center;gap:7px;min-width:144px;padding:5px 8px;border:1px solid #38373e;border-radius:9px;background:#202024;color:#ddd}.video-ref-chip.chosen{border-color:#86dceb;background:#283238}.video-ref-chip img{width:34px;height:34px;border-radius:6px;object-fit:cover}.video-ref-chip span{color:#e9faff;font-size:9px;white-space:nowrap}.video-ref-chip small{max-width:85px;overflow:hidden;color:#85838b;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.video-ref-chip i{margin-left:auto;color:#a9eff8;font-style:normal}.video-source-picker{padding:13px 0 14px;border-top:1px solid #302f34;border-bottom:1px solid #302f34}.video-source-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#b5b3ba;font-size:10px}.video-source-heading button{padding:6px 9px;border:1px solid #44434a;border-radius:7px;background:#28282d;color:#d9f7fb;font-size:9px}.video-source-grid{display:flex;flex-wrap:wrap;gap:7px;min-height:1px}.video-source-thumb{position:relative;width:52px;height:52px;padding:0;overflow:hidden;border:1px solid #3d3c42;border-radius:7px;background:#252529}.video-source-thumb img{width:100%;height:100%;display:block;object-fit:cover}.video-source-thumb span{position:absolute;right:3px;bottom:3px;display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#151518d9;color:#fff;font-size:11px}.video-source-thumb.picked{border-color:#99e6f2}.video-source-empty{color:#77757d;font-size:9px}.video-prompt-label{display:block;margin:16px 0 7px;color:#c4c1c8;font-size:11px}.video-prompt-wrap{position:relative}.video-prompt-wrap textarea{width:100%;min-height:107px;resize:vertical;padding:12px 13px 29px;border:1px solid #3b3a40;border-radius:10px;outline:none;background:#141416;color:#f3f1f4;font-size:12px;line-height:1.7;font-family:inherit}.video-prompt-wrap textarea:focus{border-color:#83d9ed}.video-prompt-wrap textarea::placeholder{color:#74727a}.video-prompt-foot{position:absolute;right:11px;bottom:8px;left:12px;display:flex;justify-content:space-between;color:#75737b;font-size:8px;pointer-events:none}.video-mention-menu{position:absolute;left:10px;bottom:calc(100% - 2px);z-index:10;width:min(310px,90%);max-height:230px;overflow:auto;padding:5px;border:1px solid #44434a;border-radius:10px;background:#242428;box-shadow:0 13px 32px #000b}.video-mention-menu[hidden]{display:none}.video-mention-option{width:100%;display:flex;align-items:center;gap:9px;padding:6px;border:0;border-radius:7px;background:transparent;color:#eee;text-align:left}.video-mention-option:hover{background:#35353b}.video-mention-option img{width:38px;height:38px;border-radius:6px;object-fit:cover}.video-mention-option span{display:flex;flex-direction:column;gap:4px}.video-mention-option b{font-size:10px;font-weight:500}.video-mention-option small{max-width:225px;overflow:hidden;color:#88868e;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.video-mention-empty{display:block;padding:12px;color:#88868e;font-size:9px}.video-reference-analysis{margin-top:12px;padding:10px 12px;border:1px solid #35444a;border-radius:9px;background:#172024;color:#bfeaf0;font-size:10px;line-height:1.65}.video-reference-analysis[hidden]{display:none}.video-reference-analysis summary{cursor:pointer;color:#c8f3f7}.video-reference-analysis p{margin:8px 0 0;color:#c0bec5;white-space:pre-wrap}
.video-options-row{display:flex;gap:12px;margin-top:14px}.video-options-row label{display:flex;align-items:center;gap:9px;color:#aaa8af;font-size:10px}.video-options-row select{min-width:118px;padding:8px 10px;border:1px solid #3c3b42;border-radius:8px;background:#242428;color:#eee;font-size:10px;outline:none}.video-duration-card{margin-top:14px;padding:13px 15px 10px;border:1px solid #35343a;border-radius:12px;background:#17171a}.video-duration-heading{display:flex;align-items:center;justify-content:space-between;color:#96949b;font-size:10px}.video-duration-heading b{min-width:58px;padding:6px 10px;border-radius:7px;background:#2c2c31;color:#f5f4f5;text-align:center;font-size:15px}.video-duration-heading small{margin-left:5px;color:#96949b;font-size:10px}.video-duration-card input{width:100%;height:19px;margin:9px 0 0;accent-color:#e9f8fa;cursor:pointer}.video-duration-ticks{display:flex;justify-content:space-between;color:#84828a;font-size:8px}.video-submit-row{display:flex;align-items:center;gap:12px;margin-top:15px}.video-submit-row>span{flex:1;min-height:15px;color:#89878f;font-size:9px;line-height:1.5}.video-submit-row button{height:39px;display:flex;align-items:center;gap:10px;padding:0 15px;border:0;border-radius:10px;background:linear-gradient(110deg,#f6e8dc,#e8f8f7 65%,#bdebf4);color:#202125;font-size:11px;font-weight:700}.video-submit-row button i{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#fff;color:#202125;font-size:16px;font-style:normal}.video-submit-row button:disabled{opacity:.46;cursor:not-allowed}.video-upgrade-button{position:absolute;left:10px;bottom:10px;padding:8px 10px;border:1px solid #bcebf3;border-radius:8px;background:#edf8f7;color:#202429;font-size:10px;font-weight:600}.video-quality-badge{position:absolute;left:10px;bottom:10px;padding:7px 9px;border-radius:7px;background:#d8f5f7;color:#1f282b;font-size:9px;font-weight:700}.video-upgrade-button:hover{background:#fff}
@media(max-width:700px){.video-studio{padding:25px 16px 45px}.video-studio-heading{gap:10px;flex-wrap:wrap}.video-studio-heading h1{font-size:20px}.video-model-pill{margin-left:auto;padding:8px;font-size:9px}.video-studio-card{padding:15px 13px}.video-mode-row{align-items:flex-start;flex-direction:column;gap:9px}.video-mode-switch{width:100%}.video-mode-switch button{flex:1;padding:0 5px;font-size:9px}.video-options-row{gap:7px;flex-wrap:wrap}.video-options-row label{flex:1;min-width:135px;justify-content:space-between}.video-options-row select{min-width:95px}.video-frame-slot{width:95px;height:125px}.video-submit-row{align-items:flex-end}.video-submit-row>span{max-width:55%}}
.asset-video-upgrade{position:absolute;left:8px;bottom:8px;z-index:2;padding:6px 8px;border:1px solid #bcebf3;border-radius:7px;background:#edf8f7;color:#202429;font-size:8px;font-weight:600}
.video-ref-crop{position:absolute;left:5px;bottom:4px;height:19px;padding:0 5px;border:0;border-radius:5px;background:#394148;color:#d8faff;font-size:8px}.video-ref-crop:hover{background:#53636b}.video-crop-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:22px;background:#000b}.video-crop-modal[hidden]{display:none!important}.video-crop-dialog{width:min(1040px,96vw);max-height:94vh;display:flex;flex-direction:column;gap:12px;padding:17px;border:1px solid #414047;border-radius:15px;background:#1b1b1f;box-shadow:0 20px 70px #000a}.video-crop-dialog>header,.video-crop-dialog>footer{display:flex;align-items:center;gap:12px}.video-crop-dialog>header>div{flex:1}.video-crop-dialog h2{margin:3px 0 5px;color:#f1eff2;font-size:18px}.video-crop-dialog p,.video-crop-dialog small{display:block;margin:0;color:#aaa8af;font-size:10px}.video-crop-dialog header>button{width:32px;height:32px;border:1px solid #45444b;border-radius:8px;background:#28282d;color:#eee;font-size:21px}.video-crop-stage{min-height:140px;max-height:72vh;display:grid;place-items:center;overflow:auto;border:1px solid #38373e;border-radius:10px;background:#101012}.video-crop-stage canvas{display:block;max-width:100%;max-height:70vh;object-fit:contain;touch-action:none;cursor:crosshair}.video-crop-dialog>footer{justify-content:flex-end;flex-wrap:wrap}.video-crop-dialog>footer span{flex:1;color:#8f8d95;font-size:9px}.video-crop-dialog>footer button{padding:8px 11px;border:1px solid #44434a;border-radius:8px;background:#29292e;color:#eee;font-size:10px}.video-crop-dialog>footer #videoCropApply{border-color:#d8faff;background:linear-gradient(110deg,#f6e8dc,#e8f8f7 65%,#bdebf4);color:#202125;font-weight:700}
.feed-video-pending{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;max-height:460px;overflow:hidden;border-radius:9px;background:linear-gradient(115deg,#29272d 0%,#514c57 32%,#6a6872 66%,#326f87 100%);background-size:200% 100%;animation:feed-shimmer 2.4s ease-in-out infinite}.feed-video-pending .feed-progress{left:12px;top:12px}.feed-video-spinner{width:38px;height:38px;border:3px solid #ffffff35;border-top-color:#d8f8ff;border-radius:50%;animation:video-pending-spin .9s linear infinite}.feed-video-pending-label{position:absolute;left:12px;right:12px;bottom:12px;color:#f5f3f5;font-size:12px;line-height:1.5;text-shadow:0 1px 5px #000b;overflow-wrap:anywhere}.feed-video-pending.failed{align-items:flex-end;justify-content:flex-start;background:linear-gradient(135deg,#38282b,#29272d 65%,#202024);animation:none}.feed-video-pending.failed .feed-video-pending-label{top:14px;bottom:48px;color:#ffd9dd}.feed-video-dismiss{position:absolute;right:11px;bottom:10px;padding:6px 10px;border:1px solid #ffffff35;border-radius:7px;background:#151519dc;color:#eee;font-size:11px;cursor:pointer}@keyframes video-pending-spin{to{transform:rotate(360deg)}}
.feed-video-job{min-width:0}.feed-video-diagnostics{padding:10px 12px 12px;border:1px solid #303034;border-top:0;border-radius:0 0 9px 9px;background:#17171a;color:#c9c7cd;font-size:11px;line-height:1.6}.feed-video-diagnostics-status{display:flex;justify-content:space-between;gap:12px;align-items:center}.feed-video-diagnostics-status b{color:#e8e6e9;font-weight:600}.feed-video-task-id{margin-top:5px;color:#828087;font-size:10px;overflow-wrap:anywhere}.feed-reference-analysis{margin-top:7px;border-top:1px solid #2c2c31;padding-top:7px}.feed-reference-analysis summary{cursor:pointer;color:#a9e8f5;font-size:11px}.feed-reference-analysis summary:hover{color:#d9faff}.feed-reference-analysis pre{max-height:300px;overflow:auto;margin:7px 0 0;padding:9px 10px;border:1px solid #30343a;border-radius:7px;background:#111316;color:#d6d5d8;font-family:inherit;font-size:10px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.feed-video-diagnostics .feed-video-dismiss{position:static;margin-top:9px}

/* ============================================================
   移动端适配 v3 — 即梦风格精致布局
   ============================================================ */

@media(max-width:540px){

  /* ---- 整体框架 ---- */
  .app-shell{
    overflow-x: hidden;
    background: #0b0b0d;
  }
  .main-view{
    margin-left: 0 !important;
    width: 100% !important;
  }
  .topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    height: 50px !important;
    padding: 0 18px !important;
    background: rgba(11,11,13,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #1a191e;
  }
  .crumb{
    font-size: 14px;
    font-weight: 500;
    color: #e8e6ec;
  }
  .local-pill{
    display: none !important;
  }

  /* ---- 侧边栏：底部导航栏样式 ---- */
  .rail{
    position: fixed !important;
    left: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 64px !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: rgba(11,11,13,.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: none !important;
    border-top: 1px solid #1a191e;
    z-index: 100;
  }
  .sidebar-brand{
    display: none !important;
  }
  .sidebar-nav{
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    padding-top: 0 !important;
    width: auto !important;
    flex: 1;
  }
  .rail-item{
    flex-direction: column !important;
    width: 64px !important;
    height: 52px !important;
    padding: 6px 0 !important;
    gap: 2px !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7a7880;
    font-size: 10px;
  }
  .rail-item.active{
    background: transparent !important;
    color: #a78bfa;
  }
  .rail-item .nav-icon{
    font-size: 20px;
  }
  .sidebar-nav .rail-item > span:not(.nav-icon){
    display: block !important;
    font-size: 10px;
  }
  .conversation-section{
    display: none !important;
  }
  .rail-spacer{
    display: none !important;
  }
  .rail .avatar{
    display: none !important;
  }

  /* ---- 工作区：纵向居中 + 底部导航留空 ---- */
  .workspace{
    padding: 0 0 80px 0 !important;
    min-height: calc(100vh - 50px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: radial-gradient(ellipse at top, #14141a 0%, #0b0b0d 60%);
  }
  .conversation-feed{
    display: block !important;
    margin-top: 0 !important;
    padding: 0 !important;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .feed-messages{
    padding: 12px 18px 4px;
  }
  .feed-message{
    padding: 0 0 16px 0 !important;
  }
  .feed-message-head{
    font-size: 12px;
    padding: 4px 0 10px;
    color: #8b8992;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
  }
  .feed-image-grid{
    grid-template-columns: repeat(1, minmax(0,1fr)) !important;
    gap: 10px !important;
  }
  .feed-image-card{
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: auto;
  }
  .feed-placeholder{
    border-radius: 14px;
    min-height: 200px;
  }
  .feed-placeholder .spinner{
    width: 32px;
    height: 32px;
  }
  .feed-detail{
    display: none !important;
  }
  .composer-wrap{
    width: 100%;
    max-width: 100%;
    padding: 12px 18px 14px !important;
    margin-top: 0 !important;
    flex: none;
  }

  /* ---- 作曲家卡片：大圆角 + 玻璃质感 ---- */
  .composer-card{
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 16px 14px !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #1c1c22 0%, #151519 100%);
    border: 1px solid #2a2930 !important;
    box-shadow: 
      0 8px 32px rgba(0,0,0,.4),
      0 1px 0 rgba(255,255,255,.04) inset,
      0 0 0 1px rgba(255,255,255,.02) inset;
  }

  /* ---- 参考图区 ---- */
  .reference-row{
    min-height: auto !important;
    padding: 0 0 14px !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .reference-row #prompt{
    width: 100% !important;
    flex: none !important;
    order: 1 !important;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100px !important;
    padding: 14px 16px !important;
    border-radius: 16px;
    background: #0f0f12;
    border: 1px solid #25242a;
    color: #e8e6ec;
    resize: none;
    transition: border-color .2s, box-shadow .2s;
  }
  .reference-row #prompt:focus{
    outline: none;
    border-color: #4a4950;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
  }
  .add-reference{
    order: 2 !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px;
    border: 1.5px dashed #3a3940;
    background: #131316;
    flex: none !important;
  }
  .add-reference span{
    font-size: 22px;
    color: #8b8992;
  }
  .add-reference small{
    font-size: 10px;
    color: #7a7880;
    margin-top: 2px;
  }
  .thumb-list{
    order: 2 !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
  }
  .thumb-item{
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px;
    overflow: hidden;
  }
  .thumb-remove{
    width: 22px;
    height: 22px;
    font-size: 12px;
    line-height: 22px;
    border-radius: 50%;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #151519;
  }
  .prompt-tools{
    order: 3 !important;
    width: 100%;
    flex: none !important;
    font-size: 11px !important;
    padding: 0 2px !important;
    color: #6e6c75;
    justify-content: space-between;
  }

  /* ---- 分隔线 ---- */
  .composer-divider{
    height: 1px;
    margin: 14px 0;
    background: linear-gradient(90deg, transparent, #2a292f, transparent);
  }

  /* ---- 控制面板 ---- */
  .controls{
    padding: 0 !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* 第一行：控制按钮 - 横向滚动 */
  .control-left{
    width: calc(100% + 32px) !important;
    margin: 0 -16px;
    padding: 0 16px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .control-left::-webkit-scrollbar{
    display: none;
  }
  .control-chip{
    flex-shrink: 0;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    background: #18181c;
    border: 1px solid #2e2d33;
    color: #cfcdd4;
    transition: all .15s;
  }
  .control-chip:active{
    background: #222127;
    transform: scale(.97);
  }
  .control-chip.accent{
    background: rgba(139, 92, 246, .12);
    border-color: rgba(139, 92, 246, .3);
    color: #c4b5fd;
  }
  .control-chip .chevron{
    display: inline-block !important;
    font-size: 10px;
    opacity: .7;
    margin-left: 2px;
  }
  .count-chip{
    min-width: auto !important;
    padding: 0 16px !important;
  }
  .control-separator{
    display: none !important;
  }

  /* 第二行：操作按钮 */
  .control-right{
    width: 100%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 12px !important;
    margin-top: 2px;
  }
  .advanced-button{
    height: 48px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    border-radius: 14px !important;
    background: #18181c;
    border: 1px solid #2e2d33;
    color: #b5b3ba;
    flex: 0 0 auto;
    gap: 8px;
  }
  .advanced-button:active{
    background: #222127;
  }
  .generate-button{
    flex: 1;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 14px !important;
    gap: 8px;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    box-shadow: 
      0 6px 24px rgba(139, 92, 246, .4),
      0 1px 0 rgba(255,255,255,.2) inset;
    border: none;
    color: #fff;
    letter-spacing: .5px;
  }
  .generate-button:active{
    transform: scale(.98);
    box-shadow: 0 3px 12px rgba(139, 92, 246, .35);
  }
  .button-spark{
    font-size: 16px;
  }

  /* ---- 高级面板 ---- */
  .advanced-panel{
    padding: 14px 14px 6px !important;
    gap: 12px !important;
    border-radius: 0 0 18px 18px;
    margin-top: -14px;
    background: #121215;
    border: 1px solid #2a292f;
    border-top: none;
  }
  .advanced-panel label{
    font-size: 12px;
    color: #a8a6af;
  }
  .advanced-panel input[type="number"],
  .advanced-panel input[type="text"]{
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0d0d10;
    border: 1px solid #26252b;
    color: #e0dee6;
  }


  /* ---- 下拉菜单移动端适配 ---- */
  .popover{
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp .3s ease;
    z-index: 200;
  }
  .popover-caption{
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #8b8992;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .popover .choice,
  .popover .model-choice,
  .popover .list-option{
    padding: 14px 12px !important;
    border-radius: 12px !important;
    font-size: 14px;
    margin-bottom: 4px;
  }
  .popover .choice b,
  .popover .model-choice b{
    font-size: 14px;
  }
  .popover .choice small,
  .popover .model-choice small{
    font-size: 11px;
  }
  .ratio-grid{
    gap: 8px !important;
  }
  .ratio-option{
    padding: 12px 8px !important;
    border-radius: 10px !important;
    font-size: 12px;
  }
  .custom-model{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a292f;
  }
  .custom-model label{
    font-size: 11px;
    margin-bottom: 6px;
    color: #8b8992;
  }
  .custom-model input{
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    background: #0f0f12;
    border: 1px solid #25242a;
    color: #e8e6ec;
  }

  /* ---- 底部状态 ---- */
  .composer-foot{
    padding: 12px 4px 0 !important;
    font-size: 11px !important;
    justify-content: center !important;
    gap: 16px !important;
    color: #66646d;
    flex-wrap: wrap;
  }
  .keycap{
    display: none;
  }
  #connectionState{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
  }
  .status-dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  /* ---- 英雄区 ---- */
  .hero{
    display: none !important;
  }

  /* ---- 图片结果 ---- */
  .conversation-feed{
    margin-top: 0 !important;
    padding: 16px 18px !important;
  }
  .feed-message{
    padding: 0 0 20px 0 !important;
  }
  .feed-message-head{
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }
  .feed-image-grid{
    grid-template-columns: repeat(1, minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  .feed-image-card{
    border-radius: 16px;
    overflow: hidden;
  }

  /* ---- 资产页 ---- */
  .assets-view{
    padding: 20px 18px 100px 18px !important;
  }
  .assets-heading{
    margin-bottom: 20px !important;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .assets-heading h1{
    font-size: 26px !important;
    font-weight: 700;
  }
  .assets-heading p{
    font-size: 13px !important;
  }
  .assets-total{
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 10px;
    background: #18181c;
    border: 1px solid #2e2d33;
  }
  .gallery{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  /* ---- 弹窗 ---- */
  .image-tool-modal{
    padding: 0 !important;
    align-items: flex-end;
  }
  .image-tool-dialog{
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 16px 20px !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 85vh;
    overflow-y: auto;
  }
  .image-tool-header{
    margin-bottom: 12px;
  }
  .image-tool-header h2{
    font-size: 18px;
    font-weight: 600;
  }
  .tool-prompt-label{
    font-size: 12px;
    margin: 14px 0 6px;
  }
  #toolPrompt{
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 80px;
  }
  .image-tool-footer{
    gap: 10px !important;
    margin-top: 16px;
    flex-direction: column-reverse;
  }
  .tool-cancel, .tool-submit{
    height: 46px;
    font-size: 14px;
    padding: 0 20px !important;
    border-radius: 12px;
    width: 100%;
  }
  .tool-submit{
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    border: none;
    color: #fff;
    font-weight: 600;
  }

  /* ============================================================
     视频工作室移动端 v3
     ============================================================ */
  .video-studio{
    padding: 16px 18px 100px !important;
    max-width: 100% !important;
  }

  /* 标题区 */
  .video-studio-heading{
    gap: 12px !important;
    margin-bottom: 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .video-studio-heading h1{
    font-size: 24px !important;
    font-weight: 700;
  }
  .video-studio-heading p{
    font-size: 13px !important;
    margin-top: 4px;
    color: #8b8992;
  }
  .video-model-pill{
    order: -1 !important;
    margin-left: 0 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-radius: 10px;
    background: rgba(139, 92, 246, .12);
    border-color: rgba(139, 92, 246, .25);
    color: #c4b5fd;
  }
  .video-back{
    order: 2;
    padding: 8px 12px !important;
    font-size: 13px;
    border-radius: 10px;
  }

  /* 卡片 */
  .video-studio-card{
    padding: 18px 16px 16px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #1c1c22 0%, #151519 100%);
    border: 1px solid #2a2930 !important;
    box-shadow: 
      0 8px 32px rgba(0,0,0,.4),
      0 1px 0 rgba(255,255,255,.04) inset;
  }

  /* 生成方式切换 */
  .video-mode-row{
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
    font-size: 12px !important;
    color: #a8a6af;
  }
  .video-mode-switch{
    width: 100% !important;
    padding: 5px !important;
    border-radius: 13px !important;
    background: #121215;
  }
  .video-mode-switch button{
    flex: 1;
    font-size: 12px;
    padding: 9px 0;
    border-radius: 9px;
    font-weight: 500;
  }
  .video-mode-switch button.selected{
    background: #1e1d24;
    color: #e8e6ec;
  }

  .video-mode-help{
    font-size: 11px !important;
    margin: 12px 0 16px !important;
    line-height: 1.6;
    color: #7a7880;
  }

  /* 首尾帧槽位 */
  .video-frame-slots{
    gap: 12px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    border-radius: 14px;
    background: #131316;
  }
  .video-frame-slot{
    width: 92px !important;
    height: 120px !important;
    border-radius: 12px;
  }

  /* 参考图列表 */
  .video-reference-list{
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .video-ref-card{
    width: 80px !important;
    height: 104px !important;
    border-radius: 12px;
  }

  /* 参考图源选择器 */
  .video-source-picker{
    padding: 14px 0 16px !important;
  }
  .video-source-heading{
    font-size: 12px !important;
    margin-bottom: 10px !important;
    color: #b5b3ba;
  }
  .video-source-grid{
    gap: 8px;
  }
  .video-source-thumb{
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px;
  }

  /* 提示词 */
  .video-prompt-label{
    font-size: 12px !important;
    margin: 18px 0 8px !important;
    color: #c4c1c8;
    font-weight: 500;
  }
  #videoPrompt{
    font-size: 15px !important;
    line-height: 1.6;
    padding: 14px 16px !important;
    min-height: 100px;
    border-radius: 16px;
    background: #0f0f12;
    border: 1px solid #25242a;
    color: #e8e6ec;
  }
  #videoPrompt:focus{
    outline: none;
    border-color: #4a4950;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
  }
  .video-prompt-foot{
    right: 14px !important;
    bottom: 10px !important;
    left: 16px !important;
    font-size: 11px !important;
    color: #6e6c75;
  }

  /* 选项行 */
  .video-options-row{
    gap: 10px !important;
    margin-top: 16px !important;
    flex-wrap: nowrap !important;
  }
  .video-options-row label{
    flex: 1;
    font-size: 11px !important;
    color: #a8a6af;
    gap: 6px;
  }
  .video-options-row select{
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f0f12;
    border: 1px solid #25242a;
    color: #e0dee6;
    height: 42px;
  }

  /* 时长卡片 */
  .video-duration-card{
    margin-top: 16px !important;
    padding: 14px 16px 12px !important;
    border-radius: 16px !important;
    background: #17171a;
    border: 1px solid #2a292f !important;
  }
  .video-duration-heading{
    font-size: 12px !important;
    color: #a8a6af;
  }
  .video-duration-heading b{
    font-size: 22px !important;
    color: #e0dee6;
    font-weight: 700;
  }
  .video-duration-ticks{
    font-size: 10px !important;
    margin-top: 8px;
    color: #7a7880;
  }

  /* 提交行 */
  .video-submit-row{
    gap: 12px !important;
    margin-top: 18px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .video-submit-row span{
    font-size: 11px !important;
    order: 2;
    text-align: center;
    color: #8b8992;
  }
  #videoGenerateButton{
    width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 14px !important;
    order: 1;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    box-shadow: 
      0 6px 24px rgba(139, 92, 246, .4),
      0 1px 0 rgba(255,255,255,.2) inset;
    border: none;
    color: #fff;
    letter-spacing: .5px;
  }
  #videoGenerateButton:active{
    transform: scale(.98);
  }

  /* 视频裁剪弹窗 */
  .video-crop-modal{
    padding: 0 !important;
    align-items: flex-end;
  }
  .video-crop-dialog{
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    border-radius: 20px 20px 0 0 !important;
    gap: 14px !important;
    max-height: 85vh;
  }
  .video-crop-dialog header h2{
    font-size: 18px !important;
    font-weight: 600;
  }
  .video-crop-dialog header p{
    font-size: 12px !important;
    line-height: 1.6;
  }
  .video-crop-stage{
    max-height: 50vh;
    border-radius: 12px;
  }
  .video-crop-dialog footer{
    font-size: 11px !important;
    gap: 12px !important;
    flex-direction: column-reverse;
  }
  .video-crop-dialog footer button{
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
  }

  /* ---- 底部弹出动画优化 ---- */
  .image-tool-modal,
  .video-crop-modal{
    animation: slideUp .3s ease;
  }
  @keyframes slideUp{
    from{ transform: translateY(100%); opacity: 0; }
    to{ transform: translateY(0); opacity: 1; }
  }
}

/* ---- 超小屏（380px 以下） ---- */
@media(max-width:380px){
  .composer-card{
    padding: 14px 12px 12px !important;
    border-radius: 20px !important;
  }
  .control-chip{
    padding: 0 14px !important;
    height: 38px !important;
    font-size: 12px !important;
  }
  .generate-button{
    height: 46px !important;
    font-size: 14px !important;
  }
  .advanced-button{
    height: 46px !important;
    font-size: 13px !important;
    padding: 0 16px !important;
  }
  .gallery{
    gap: 8px !important;
  }
  .video-frame-slot{
    width: 80px !important;
    height: 105px !important;
  }
  .video-ref-card{
    width: 70px !important;
    height: 92px !important;
  }
}

/* ---- 触摸设备优化 ---- */
@media(hover:none){
  .control-chip{
    min-height: 40px;
  }
  .generate-button{
    min-height: 48px;
  }
  .video-mode-switch button{
    min-height: 38px;
  }
  #videoGenerateButton{
    min-height: 50px;
  }
  .tool-submit{
    min-height: 46px;
  }
}
