:root{
  --bg:#08050f; --panel:#12101b; --line:rgba(177,130,255,.18);
  --text:#fbf7ff; --muted:#a99bb8; --purple:#8b5cf6; --pink:#d946ef; --radius:22px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;min-height:100vh;font-family:Inter,Segoe UI,Microsoft YaHei,Arial,sans-serif;background:radial-gradient(circle at 18% 8%,rgba(139,92,246,.28),transparent 28%),radial-gradient(circle at 86% 0,rgba(217,70,239,.18),transparent 24%),linear-gradient(180deg,#090512,#040307 70%);color:var(--text)}
a{color:inherit;text-decoration:none} button,input,textarea,select{font:inherit} button{cursor:pointer}.hidden{display:none!important}
.site-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:24px;justify-content:space-between;padding:18px min(5vw,64px);background:rgba(8,5,15,.76);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:20px}.brand-mark{width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,var(--purple),var(--pink));box-shadow:0 0 28px rgba(139,92,246,.45)}
.site-header nav,.hero-actions,.inline-row{display:flex;align-items:center;gap:12px}.site-header nav a{color:#d8cdf0;font-weight:700;font-size:14px}
.btn{border:0;border-radius:999px;padding:13px 20px;font-weight:900;color:white;background:#21182f}.btn.primary{background:linear-gradient(135deg,var(--purple),var(--pink));box-shadow:0 16px 32px rgba(139,92,246,.24)}.btn.ghost{border:1px solid var(--line);background:rgba(255,255,255,.04)}.btn.small{padding:9px 14px;font-size:13px}.btn.full{width:100%}
.hero-clean{max-width:1180px;margin:0 auto;padding:86px 22px 54px;display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center}.eyebrow{margin:0 0 12px;color:#d8b4fe;font-size:12px;letter-spacing:.22em;font-weight:900}.hero-clean h1{margin:0;font-size:clamp(38px,6vw,68px);line-height:1.02;letter-spacing:-.04em}.hero-sub{max-width:620px;margin:22px 0 28px;color:#cfc3df;font-size:17px;line-height:1.8}
.hero-card{min-height:360px;border:1px solid var(--line);border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));position:relative;overflow:hidden;display:grid;place-items:center}.preview-orb{position:absolute;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,#e879f9,transparent 58%);filter:blur(8px);opacity:.36}.hero-card-inner{position:relative;width:70%;padding:30px;border:1px solid rgba(255,255,255,.14);border-radius:28px;background:rgba(8,5,15,.62);backdrop-filter:blur(18px);display:grid;gap:10px}.hero-card-inner span,.hero-card-inner small{color:var(--muted)}.hero-card-inner strong{font-size:72px;line-height:1}
.creator-shell{max-width:1180px;margin:0 auto 80px;padding:0 22px;display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px}.creator-panel,.result-panel,.admin-card,.stat-card{border:1px solid var(--line);border-radius:var(--radius);background:rgba(18,16,27,.82);box-shadow:0 24px 70px rgba(0,0,0,.28)}.creator-panel,.result-panel{padding:24px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-title h2{margin:0;font-size:24px}.section-title span{color:var(--muted);font-size:13px}
.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.mode-tabs button{height:46px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#dacff0;font-weight:900}.mode-tabs button.active{background:linear-gradient(135deg,var(--purple),var(--pink));border-color:transparent;color:white}
.field{display:grid;gap:9px;margin:14px 0}.field span,.advanced-row span,.settings-form span{font-size:13px;color:#d8cdf0;font-weight:800}.field textarea{min-height:170px;max-height:520px;resize:none;overflow-y:auto;line-height:1.65}.field textarea,.inline-row input,.advanced-row select,.settings-form input,.settings-form select,.login-card input{width:100%;border:1px solid var(--line);border-radius:16px;background:#090712;color:var(--text);outline:none;padding:14px 15px}
.upload-box{margin:14px 0;padding:18px;border:1px dashed rgba(34,211,238,.45);border-radius:18px;background:rgba(34,211,238,.05);display:flex;align-items:center;justify-content:space-between;gap:16px}.upload-box.dragover{border-color:var(--pink);background:rgba(217,70,239,.08)}.upload-box strong{display:block;margin-bottom:5px}.upload-box p{margin:0;color:var(--muted);font-size:13px}.inline-row input{flex:1}.advanced-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 18px}.advanced-row label,.settings-form label{display:grid;gap:9px}
.result-preview{min-height:340px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:#080711;display:grid;place-items:center;overflow:hidden;color:var(--muted);text-align:center}.result-preview img,.result-preview video{width:100%;height:100%;display:block}.result-preview img{object-fit:cover}.result-preview video{object-fit:contain;background:#000}.result-download{margin-top:14px;text-align:center}.result-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.result-meta div{padding:14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}.result-meta span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.result-save-notice{margin-top:10px;padding:10px 12px;border:1px solid rgba(251,191,36,.28);border-radius:14px;background:rgba(251,191,36,.08);color:#fde68a;font-size:12px;line-height:1.5;text-align:center}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:#171126;border:1px solid var(--line);padding:12px 18px;border-radius:999px;color:white;box-shadow:0 18px 50px rgba(0,0,0,.32);transition:.22s}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.login-dialog{width:min(380px,calc(100% - 36px));max-width:none;overflow:visible;border:0;padding:0;background:transparent;color:var(--text)}.login-dialog::backdrop{background:rgba(0,0,0,.28);backdrop-filter:none;-webkit-backdrop-filter:none}.login-card{width:100%;padding:24px;border-radius:24px;background:#12101b;border:1px solid var(--line);color:var(--text);display:grid;gap:12px;position:relative}.login-card h3{margin:0 0 6px;color:var(--text)}.login-card p{margin:0;color:var(--muted);font-size:13px}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:white;font-size:24px}
.admin-page{display:grid;grid-template-columns:260px minmax(0,1fr);background:#07050d}.admin-side{position:sticky;top:0;height:100vh;padding:24px;border-right:1px solid var(--line);background:#0c0814;display:flex;flex-direction:column;gap:28px}.admin-side nav{display:grid;gap:8px}.admin-side nav a{padding:13px 15px;border-radius:14px;color:#d8cdf0;font-weight:800}.admin-side nav a.active,.admin-side nav a:hover{background:rgba(139,92,246,.16)}.admin-main{padding:28px;display:grid;gap:22px}.admin-top{display:flex;align-items:center;justify-content:space-between}.admin-top h1{margin:0;font-size:34px}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card{padding:22px}.stat-card span{color:var(--muted);font-size:13px}.stat-card b{display:block;margin-top:12px;font-size:34px}.admin-card{padding:22px}.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-form button{align-self:end}.table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.08);border-radius:16px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.07);font-size:14px}th{color:#d8cdf0;background:rgba(255,255,255,.04)}td{color:#eee6fb}.status{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(57,217,138,.14);color:#8ff0bc;font-size:12px;font-weight:900}
@media (max-width:960px){.hero-clean,.creator-shell{grid-template-columns:1fr}.admin-page{grid-template-columns:1fr}.admin-side{position:relative;height:auto}.admin-grid{grid-template-columns:1fr 1fr}.settings-form{grid-template-columns:1fr}.site-header{align-items:flex-start}.site-header nav{flex-wrap:wrap;justify-content:flex-end}.hero-card{min-height:240px}}
@media (max-width:620px){.site-header{padding:14px 16px}.hero-clean{padding-top:52px}.creator-panel,.result-panel{padding:18px}.mode-tabs,.advanced-row,.result-meta,.admin-grid{grid-template-columns:1fr}.hero-clean h1{font-size:38px}}

/* assets + redeem + cards */
.prompt-wrap{position:relative}.mention-panel{position:absolute;left:12px;top:56px;right:auto;width:min(360px,calc(100% - 24px));z-index:18;margin:0;padding:8px;border:1px solid rgba(216,180,254,.52);border-radius:12px;background:rgba(18,13,29,.98);box-shadow:0 18px 54px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.04);display:grid;gap:6px;max-height:min(320px,46vh);overflow:auto}.mention-panel:before{content:'选择参考素材';display:flex;align-items:center;min-height:24px;padding:2px 7px 7px;margin-bottom:2px;border-bottom:1px solid rgba(255,255,255,.08);color:#e9d5ff;font-size:12px;font-weight:900}.mention-panel button{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-radius:9px;background:rgba(255,255,255,.045);color:#fff;padding:8px;text-align:left}.mention-panel button:hover,.mention-panel button:focus{background:linear-gradient(90deg,rgba(139,92,246,.26),rgba(34,211,238,.11));outline:none}.mention-panel img,.mention-panel i{width:42px;height:38px;border-radius:9px;object-fit:cover}.mention-panel i{display:grid;place-items:center;font-style:normal;background:linear-gradient(135deg,#1d1640,#3b0764);color:#e9d5ff;font-size:11px;font-weight:900}.mention-panel i.audio{background:linear-gradient(135deg,#052e2b,#581c87)}.mention-panel button span{min-width:0;display:grid;gap:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-panel button span b{min-width:0;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-panel small{justify-self:end;color:#67e8f9;border:1px solid rgba(103,232,249,.26);border-radius:999px;padding:2px 7px;font-size:11px}.asset-panel{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.035)}.asset-head,.library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.asset-head h3,.library-head h3{margin:0}.asset-head p,.library-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.asset-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.asset-btn{border:1px solid var(--line);border-radius:14px;background:rgba(139,92,246,.09);color:#fff;padding:12px;font-weight:900}.asset-btn b{display:block;margin-top:5px;color:#d8b4fe}.drop-zone{border:1px dashed rgba(34,211,238,.45);border-radius:16px;background:rgba(34,211,238,.05);color:#bfb3d2;text-align:center;padding:18px;margin-bottom:12px}.drop-zone.dragover{border-color:var(--pink);background:rgba(217,70,239,.08)}.asset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.asset-empty{grid-column:1/-1;color:var(--muted);font-size:13px;text-align:center;padding:12px}.asset-card{position:relative;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04);overflow:hidden}.asset-thumb{height:86px;display:grid;place-items:center;background:#0a0712;color:#d8b4fe;font-weight:900}.asset-thumb img{width:100%;height:100%;object-fit:cover}.asset-thumb.video{background:linear-gradient(135deg,#1d1640,#3b0764)}.asset-thumb.audio{background:linear-gradient(135deg,#052e2b,#581c87)}.asset-card div:nth-child(2){padding:9px}.asset-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.asset-card span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.asset-card button{position:absolute;right:6px;top:6px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff}.library-panel{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}.library-grid{display:grid;gap:10px;max-height:300px;overflow:auto;padding-right:4px}.library-card{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04);padding:8px}.library-card .asset-thumb{height:54px;border-radius:10px;overflow:hidden}.library-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.library-card span{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}.redeem-row{display:flex;gap:10px;margin:14px 0}.redeem-row input{flex:1;border:1px solid var(--line);border-radius:999px;background:#090712;color:var(--text);outline:none;padding:13px 16px}.card-output{width:100%;min-height:100px;margin:14px 0;border:1px solid var(--line);border-radius:16px;background:#090712;color:#fff;padding:14px;resize:vertical}.status.used{background:rgba(255,255,255,.08);color:#b9adc8}code{color:#e9d5ff;font-family:ui-monospace,Consolas,monospace}.card-form{margin-bottom:10px}
@media (max-width:620px){.asset-actions,.asset-grid{grid-template-columns:1fr}.library-card{grid-template-columns:54px minmax(0,1fr)}.library-actions{grid-column:1/-1;justify-content:stretch}.library-actions .btn{flex:1}.redeem-row{flex-direction:column}}

/* admin lock + compact mention */
body.locked{display:block}.admin-login{min-height:100vh;display:grid;place-items:center;padding:24px}.admin-login.hidden{display:none!important}.admin-login-card{box-shadow:0 24px 80px rgba(0,0,0,.38)}.mention-panel button span{white-space:nowrap}.asset-card em{font-style:normal;display:inline-block;margin-right:6px;color:#d8b4fe;font-weight:900}.hero-actions .btn.ghost[href$="admin.html"],.site-header nav a[href$="admin.html"]{display:none!important}


/* video duration 5-15 */
.duration-field b{color:#d8b4fe;margin-left:6px}.duration-field input[type="range"]{width:100%;accent-color:var(--purple);height:34px}.duration-field.hidden{display:none!important}


/* redo */
.redo-btn{margin-top:14px}.redo-btn:disabled{opacity:.45;cursor:not-allowed}

/* admin controls */
.btn.tiny{padding:7px 10px;font-size:12px;margin-right:6px}.btn:disabled{opacity:.42;cursor:not-allowed}.mini-input{width:96px;border:1px solid var(--line);border-radius:12px;background:#090712;color:var(--text);outline:none;padding:8px 10px}.status.blocked,.status.revoked{background:rgba(239,68,68,.14);color:#fca5a5}td .status{margin-left:8px}
.admin-section{display:none}.admin-section.active{display:block}.admin-grid.admin-section.active{display:grid}.table-toolbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin:-4px 0 12px}.table-footer{display:flex;justify-content:flex-end;gap:12px;margin:14px 0 0}.admin-search{width:min(420px,100%);border:1px solid var(--line);border-radius:14px;background:#090712;color:var(--text);outline:none;padding:11px 13px}.admin-search:focus,.credit-input:focus{border-color:rgba(167,139,250,.72);box-shadow:0 0 0 3px rgba(139,92,246,.16)}.segmented{display:inline-flex;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.04)}.segmented button{border:0;border-radius:10px;background:transparent;color:#cfc4df;padding:8px 12px;font-weight:900;font-size:12px}.segmented button.active,.segmented button:hover{background:rgba(139,92,246,.22);color:#fff}.credit-input{width:128px}.pass-input{width:136px;margin-right:8px}
@media (max-width:620px){.admin-top{align-items:flex-start}.table-toolbar,.table-footer{justify-content:flex-start}.admin-search,.segmented{width:100%}.segmented{display:grid;grid-template-columns:repeat(3,1fr)}.segmented button{padding:9px 6px}.credit-input,.pass-input{width:120px}}
.asset-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-open-btn{display:inline-flex;align-items:center;gap:8px}.library-icon{width:15px;height:12px;display:inline-block;border:2px solid #d8b4fe;border-top-width:5px;border-radius:3px;box-shadow:0 0 14px rgba(216,180,254,.35)}.btn.danger{border-color:rgba(239,68,68,.34);color:#fecaca;background:rgba(239,68,68,.09)}
.library-dialog{border:0;padding:0;background:transparent}.library-dialog::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(6px)}.library-card-wrap{width:min(760px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 34px));overflow:hidden;padding:22px;border-radius:24px;background:#12101b;border:1px solid var(--line);box-shadow:0 30px 100px rgba(0,0,0,.46);display:grid;gap:14px;position:relative}.library-card-wrap .library-grid{max-height:min(560px,60vh)}.library-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
/* model selector */
.field select{width:100%;border:1px solid var(--line);border-radius:16px;background:#090712;color:var(--text);outline:none;padding:14px 15px}.model-field small{color:var(--muted);font-size:12px}.model-table input,.model-table select{min-width:120px}.mode-checks{display:flex;gap:8px;flex-wrap:wrap}.mode-checks label{display:inline-flex;align-items:center;gap:5px;color:#d8cdf0;font-size:12px}.mode-checks input{width:auto}.model-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.model-table table{min-width:1240px}
.progress-strip{margin-top:14px}.progress-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:var(--muted);font-size:12px}.progress-row b{color:#e9d5ff;font-size:13px}.progress-track,.table-progress-track{height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.progress-track i,.table-progress-fill{display:block;height:100%;width:0%;border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#a78bfa,#f472b6);transition:width .35s ease}.table-progress{display:grid;gap:6px;min-width:120px}.table-progress small{color:var(--muted);font-size:12px}.status.processing,.status.queued{background:rgba(34,211,238,.12);color:#67e8f9}.status.completed{background:rgba(57,217,138,.14);color:#8ff0bc}.status.failed{background:rgba(239,68,68,.14);color:#fca5a5}

/* task history */
.task-panel{margin-top:18px;border-top:1px solid rgba(255,255,255,.08);padding-top:16px}.task-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.task-head h3{margin:0;font-size:16px}.task-list{display:grid;gap:10px;max-height:360px;overflow:auto;padding-right:4px}.task-empty{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px;color:var(--muted);text-align:center;background:rgba(255,255,255,.035)}.task-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035);color:#fff;padding:12px}.task-item:hover{border-color:rgba(167,139,250,.5);background:rgba(139,92,246,.1)}.task-item b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-item small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.task-item em,.task-item i{font-style:normal;color:#c4b5fd;font-size:12px;font-weight:900}.task-item.failed{border-color:rgba(239,68,68,.28)}.task-reason{grid-column:1/-1;margin:7px 0 0;color:#fca5a5;font-size:12px;line-height:1.45}.result-error{padding:20px;color:#fca5a5}.result-error b{display:block;margin-bottom:8px;color:#fecaca}.result-error p{margin:0;line-height:1.55}.job-content{display:grid;gap:8px;min-width:260px;max-width:420px}.job-content span,.job-content small{color:var(--muted);font-size:12px;line-height:1.45}.job-content small{color:#fca5a5}.job-prompt{border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);padding:8px 10px}.job-prompt summary{cursor:pointer;color:#fff;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-prompt p{margin:8px 0 0;color:#d8cdf0;font-size:12px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.job-assets{display:flex;gap:7px;flex-wrap:wrap}.job-asset{display:inline-grid;grid-template-columns:34px minmax(38px,auto);grid-template-rows:auto auto;gap:2px 7px;align-items:center;max-width:170px;padding:6px 8px;border:1px solid rgba(167,139,250,.22);border-radius:12px;background:rgba(139,92,246,.08);color:#e9d5ff}.job-asset:hover{border-color:rgba(167,139,250,.54);background:rgba(139,92,246,.14)}.job-asset-thumb{grid-row:1/3;width:34px;height:34px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#c4b5fd}.job-asset-thumb img{width:100%;height:100%;object-fit:cover;display:block}.job-asset-thumb i{font-style:normal;font-size:11px;font-weight:900}.job-asset b{font-size:12px;color:#fff;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-asset em{font-style:normal;color:var(--muted);font-size:11px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-no-assets{display:inline-flex;color:var(--muted);font-size:12px}.job-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(167,139,250,.35);border-radius:999px;padding:7px 11px;color:#e9d5ff;background:rgba(139,92,246,.12);font-size:12px;font-weight:900}.job-error{color:#fca5a5;font-size:12px;line-height:1.45}
.task-main{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:0;background:transparent;color:inherit;padding:0;text-align:left}.task-main span{min-width:0}.task-main:hover b{color:#fff}.task-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;justify-self:end}.task-download,.task-reuse{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(167,139,250,.35);border-radius:999px;background:rgba(139,92,246,.14);color:#f5f3ff;padding:7px 11px;font-size:12px;font-weight:900;line-height:1;cursor:pointer;text-decoration:none;white-space:nowrap}.task-download{border-color:rgba(57,217,138,.4);background:rgba(57,217,138,.12);color:#bbf7d0}.task-download:hover{border-color:rgba(57,217,138,.76);background:rgba(57,217,138,.22);color:#dcfce7}.task-reuse:hover{border-color:rgba(167,139,250,.72);background:rgba(139,92,246,.24)}.task-reuse:disabled{opacity:.38;cursor:not-allowed}.task-more{width:100%;border:1px solid rgba(167,139,250,.32);border-radius:14px;background:rgba(139,92,246,.12);color:#f5f3ff;padding:10px 12px;font-size:13px;font-weight:900;cursor:pointer}.task-more:hover{border-color:rgba(167,139,250,.72);background:rgba(139,92,246,.22)}.reuse-btn{margin-top:10px}.library-card-wrap,.library-card{color:#fff}.library-card b,.library-head h3{color:#fff}.library-card span,.library-head p,.library-card-wrap .asset-empty{color:#e9d5ff}.library-card .btn{color:#fff}
.task-main{grid-template-columns:44px minmax(0,1fr) auto}.task-thumb{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#d8b4fe;font-size:11px;font-weight:900}.task-thumb img{width:100%;height:100%;object-fit:cover;display:block}.task-copy{display:grid;gap:3px;min-width:0}.task-kicker{display:flex;align-items:center;gap:7px;min-width:0}.task-kicker strong{display:inline-flex;align-items:center;justify-content:center;min-width:74px;border:1px solid rgba(34,211,238,.32);border-radius:999px;background:rgba(34,211,238,.1);color:#a5f3fc;font-size:11px;line-height:1;padding:4px 7px}.task-kicker small{margin:0;color:#c4b5fd;font-size:11px}.task-prompt{color:#d8cdf0}.task-state{display:grid;gap:5px;justify-items:end;min-width:72px}.task-state em{white-space:nowrap}.task-result{font-size:11px;color:#8ff0bc}.task-item.failed .task-kicker strong{border-color:rgba(239,68,68,.32);background:rgba(239,68,68,.1);color:#fecaca}@media (max-width:640px){.task-item{grid-template-columns:1fr}.task-main{grid-template-columns:38px minmax(0,1fr);align-items:start}.task-thumb{width:36px;height:36px}.task-state{grid-column:2;justify-items:start;min-width:0}.task-actions{grid-column:1;justify-self:start}.task-kicker{flex-wrap:wrap}.task-kicker strong{min-width:68px}}


/* Landing entry */
.workspace-shell.hidden,
.landing-page.hidden { display: none; }
.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #080414;
}
.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 18%, rgba(156,96,255,.32), transparent 34%),
    linear-gradient(90deg, #080414 0%, #12082b 42%, #100625 100%);
  transform: scale(1.01);
}
.landing-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 58%;
  background: url('./landing-hero.png') right -180px / 90vw auto no-repeat;
  opacity: .62;
  filter: saturate(1.08) contrast(1.04);
}
.landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,4,20,.98) 0%, rgba(10,4,24,.92) 45%, rgba(8,4,20,.34) 72%, rgba(8,4,20,.78) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8,4,20,.28) 58%, #080414 100%);
}
.landing-header {
  position: relative;
  z-index: 2;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}
.landing-mark {
  width: 34px;
  height: 46px;
  display: inline-block;
  background: linear-gradient(145deg, #efe4ff, #8a46ff 48%, #3d168c);
  clip-path: polygon(50% 0, 92% 18%, 82% 78%, 50% 100%, 18% 78%, 8% 18%);
  box-shadow: 0 0 24px rgba(155,83,255,.82);
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  font-size: 16px;
  font-weight: 700;
}
.landing-nav a {
  color: rgba(235,226,255,.72);
  text-decoration: none;
  position: relative;
}
.landing-nav a:first-child { color: #fff; }
.landing-nav a:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  border-radius: 999px;
  background: #b989ff;
  box-shadow: 0 0 16px #a064ff;
}
.landing-top-btn,
.landing-cta {
  border: 1px solid rgba(205,170,255,.62);
  color: #fff;
  background: linear-gradient(180deg, rgba(135,67,234,.96), rgba(92,38,177,.95));
  box-shadow: inset 0 0 18px rgba(255,255,255,.14), 0 12px 32px rgba(96,45,186,.36);
  cursor: pointer;
  font-weight: 900;
}
.landing-top-btn {
  min-width: 150px;
  height: 50px;
  border-radius: 999px;
  font-size: 16px;
}
.landing-hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 96px);
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 60px 0 170px;
}
.landing-copy {
  width: min(620px, 100%);
  transform: translateY(-22px);
}
.landing-kicker {
  color: #b995ff;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.landing-copy h1 {
  margin: 0;
  font-size: clamp(72px, 10vw, 142px);
  line-height: .88;
  letter-spacing: 0;
  color: #c79aff;
  text-shadow: 0 0 34px rgba(157,85,255,.72);
}
.landing-copy h2 {
  margin: 28px 0 0;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0;
  color: #fff;
}
.landing-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 34px;
}
.landing-rule span {
  width: 96px;
  height: 5px;
  border-radius: 999px;
  background: #8f52ff;
  box-shadow: 0 0 16px rgba(154,85,255,.85);
}
.landing-rule i {
  width: 22px;
  height: 5px;
  transform: skewX(-22deg);
  background: rgba(143,82,255,.56);
}
.landing-text {
  max-width: 430px;
  color: rgba(238,231,255,.76);
  line-height: 2;
  font-size: 18px;
  font-weight: 700;
}
.landing-cta {
  margin-top: 38px;
  min-width: 230px;
  height: 70px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 16px 0 42px;
  font-size: 22px;
}
.landing-cta b {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #7c35e8;
  background: #f2e9ff;
  font-size: 30px;
}
.landing-features {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 48px));
  margin: -92px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(157,92,255,.5);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(24,10,54,.72);
  box-shadow: 0 0 38px rgba(94,45,180,.28);
  backdrop-filter: blur(14px);
}
.landing-features article {
  min-height: 190px;
  padding: 30px 28px;
  text-align: center;
  border-right: 1px solid rgba(157,92,255,.24);
}
.landing-features article:last-child { border-right: 0; }
.landing-features b {
  display: block;
  color: #a766ff;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 20px rgba(166,102,255,.8);
}
.landing-features h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #eadcff;
}
.landing-features p {
  margin: 0;
  color: rgba(232,222,255,.68);
  line-height: 1.7;
}
.landing-mini {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 48px));
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: rgba(230,214,255,.78);
}
.landing-mini span {
  border: 1px solid rgba(153,92,255,.34);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(32,12,69,.5);
}
.landing-footer {
  position: relative;
  z-index: 1;
  padding: 44px 20px 54px;
  text-align: center;
  color: #a875ff;
  font-weight: 800;
}
@media (max-width: 900px) {
  .landing-header { width: min(100% - 32px, 720px); height: 82px; }
  .landing-nav { display: none; }
  .landing-top-btn { min-width: 126px; height: 44px; }
  .landing-hero { width: min(100% - 32px, 720px); align-items: flex-start; padding-top: 72px; padding-bottom: 150px; }
  .landing-copy h1 { font-size: clamp(62px, 20vw, 96px); }
  .landing-copy h2 { font-size: 24px; line-height: 1.35; }
  .landing-text { font-size: 16px; max-width: 340px; }
  .landing-features { grid-template-columns: repeat(2, 1fr); margin-top: -70px; }
  .landing-features article { min-height: 160px; padding: 24px 18px; }
}
@media (max-width: 560px) {
  .landing-bg::before { left: 22%; background-position: right -80px; background-size: 135vw auto; opacity: .28; }
  .landing-brand { font-size: 22px; }
  .landing-mark { width: 26px; height: 36px; }
  .landing-copy { transform: none; }
  .landing-cta { min-width: 204px; height: 62px; padding-left: 30px; font-size: 19px; }
  .landing-features { grid-template-columns: 1fr; border-radius: 18px; }
  .landing-features article { border-right: 0; border-bottom: 1px solid rgba(157,92,255,.24); }
  .landing-features article:last-child { border-bottom: 0; }
  .landing-mini { flex-wrap: wrap; }
}


.landing-page::after {
  content: '';
  position: fixed;
  left: var(--mx, 50vw);
  top: var(--my, 50vh);
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(210,172,255,.42) 0%, rgba(150,85,255,.26) 28%, rgba(101,45,214,.12) 52%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(3px);
  transition: opacity .22s ease;
}
.landing-page.is-pointer-active::after { opacity: .9; }
.landing-bg::before {
  transform: translate(calc(var(--px, 0) * -1px), calc(var(--py, 0) * -1px));
  transition: transform .18s ease-out;
}
@media (pointer: coarse) {
  .landing-page::after { display: none; }
  .landing-bg::before { transform: none; }
}

/* external api */
.api-key-output{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin:0 0 12px}
.api-key-output .card-output{min-height:72px;margin:0}
.api-key-cell{display:grid;gap:8px;min-width:180px}
.api-key-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.api-key-row code{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.muted-text{color:var(--muted);font-size:12px}
@media (max-width:620px){.api-key-output{grid-template-columns:1fr}}
.external-api-models{display:grid;gap:12px;margin:16px 0;padding:16px;border:1px solid rgba(34,211,238,.2);border-radius:8px;background:rgba(34,211,238,.035)}
.external-api-models-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.external-api-models-head h3{margin:0;color:#fff;font-size:16px}.external-api-models-head p{margin:5px 0 0;color:#d4c9e2;font-size:13px;line-height:1.5}.external-api-models-head>span{color:#a5f3fc;font-size:13px;font-weight:800;white-space:nowrap}
.external-api-model-table{max-height:360px;border-radius:8px}.external-api-model-table table{min-width:760px}.external-api-model-table thead th{position:sticky;top:0;z-index:2;background:#181321}.external-api-model-table td strong{color:#fff}.external-api-model-table td code{color:#c4b5fd}.external-api-model-table select{min-width:116px;border:1px solid rgba(224,212,242,.24);border-radius:8px;background:#0d0914;color:#fcfaff;padding:8px 10px;font-weight:700}
@media (max-width:620px){.external-api-models-head{display:grid}.external-api-models-head>span{white-space:normal}}

/* admin analytics */
.overview-totals{margin-bottom:16px}
.overview-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.period-card{border:1px solid var(--line);border-radius:18px;background:rgba(18,16,27,.82);box-shadow:0 24px 70px rgba(0,0,0,.24);padding:18px}
.period-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.period-head span{color:var(--muted);font-size:13px;font-weight:900}.period-head b{font-size:26px;color:#fff}
.period-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.period-grid div{padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.035)}.period-grid small{display:block;color:var(--muted);font-size:11px}.period-grid strong{display:block;margin-top:4px;color:#fff;font-size:18px}
.period-card p{margin:12px 0 0;color:var(--muted);font-size:12px}.mini-rate{height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.mini-rate span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#8b5cf6,#d946ef)}
.overview-analysis{display:grid;grid-template-columns:1fr 1fr;gap:16px}.overview-analysis .admin-card{min-width:0}.rate-cell{display:grid;gap:6px;min-width:110px}.rate-cell b{font-size:12px;color:#e9d5ff}.insight-list{display:grid;gap:10px}.insight-list p{margin:0;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035);color:#d8cdf0;line-height:1.55}
@media (max-width:1100px){.overview-periods{grid-template-columns:repeat(2,1fr)}.overview-analysis{grid-template-columns:1fr}}
@media (max-width:620px){.overview-periods{grid-template-columns:1fr}.period-grid{grid-template-columns:repeat(2,1fr)}}

/* ============================================================
   专业化升级层 v4 —— 只增强观感，不改结构与功能
   通过更高优先级规则精修全局质感，落地页样式保持不变
   ============================================================ */
:root{
  --r-card:18px; --r-field:13px; --r-pill:999px;
  --grad-brand:linear-gradient(120deg,#8b5cf6,#c026d3 55%,#e548c8);
  --ring:0 0 0 3px rgba(139,92,246,.16);
  --ease-pro:220ms cubic-bezier(.4,0,.2,1);
}

/* 全局字体渲染与选中 */
body.site-page{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.site-page ::selection{background:rgba(139,92,246,.38)}
body.site-page *:focus-visible{outline:2px solid #a855f7;outline-offset:2px}

/* 顶栏更精致 */
.workspace-shell .site-header{padding-top:15px;padding-bottom:15px;background:rgba(9,6,17,.82)}
.workspace-shell .brand-mark{border-radius:11px;box-shadow:0 0 26px rgba(139,92,246,.55)}
.workspace-shell .site-header nav a{padding:8px 12px;border-radius:10px;transition:var(--ease-pro)}
.workspace-shell .site-header nav a:hover{background:rgba(139,92,246,.14);color:#fff}

/* 按钮统一升级：更克制的圆角 + 微交互 */
.workspace-shell .btn,.login-card .btn,.library-card-wrap .btn,.admin-page .btn{
  border-radius:12px;font-weight:800;letter-spacing:.01em;transition:var(--ease-pro)}
.workspace-shell .btn:hover:not(:disabled),.admin-page .btn:hover:not(:disabled){transform:translateY(-1px)}
.workspace-shell .btn:active:not(:disabled){transform:translateY(0)}
.workspace-shell .btn.primary,.login-card .btn.primary,.admin-page .btn.primary{
  background:var(--grad-brand);box-shadow:0 8px 22px rgba(139,92,246,.32)}
.workspace-shell .btn.primary:hover:not(:disabled){box-shadow:0 12px 30px rgba(139,92,246,.46)}
.workspace-shell .btn.full{border-radius:14px}
.workspace-shell .redeem-row .btn,.workspace-shell .redeem-row input{border-radius:var(--r-pill)}

/* Hero 更有层次 */
.workspace-shell .hero-clean h1{letter-spacing:-.03em;background:linear-gradient(120deg,#fff,#e9d5ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.workspace-shell .hero-card{border-radius:24px}
.workspace-shell .hero-card-inner strong{background:var(--grad-brand);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.workspace-shell .preview-orb{filter:blur(60px);opacity:.5}

/* 面板与卡片：收敛圆角、增强边界与投影 */
.workspace-shell .creator-panel,.workspace-shell .result-panel,
.admin-page .admin-card,.admin-page .stat-card,.admin-page .period-card{
  border-radius:var(--r-card);border-color:rgba(160,130,255,.16);
  box-shadow:0 18px 48px rgba(0,0,0,.34)}

/* 模式切换：胶囊化，选中态更明确 */
.workspace-shell .mode-tabs{padding:5px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid var(--line);gap:6px}
.workspace-shell .mode-tabs button{height:44px;border:1px solid transparent;border-radius:12px;transition:var(--ease-pro)}
.workspace-shell .mode-tabs button:hover:not(.active){background:rgba(255,255,255,.05)}
.workspace-shell .mode-tabs button.active{background:var(--grad-brand);box-shadow:0 6px 16px rgba(139,92,246,.4)}

/* 输入控件：统一圆角 + 聚焦光环 */
.workspace-shell .field textarea,.workspace-shell .field select,
.workspace-shell .inline-row input,.workspace-shell .advanced-row select,
.workspace-shell .redeem-row input,.login-card input,.admin-page input,.admin-page select,.admin-page textarea{
  border-radius:var(--r-field);transition:var(--ease-pro)}
.workspace-shell .field textarea:focus,.workspace-shell .field select:focus,
.workspace-shell .inline-row input:focus,.workspace-shell .advanced-row select:focus,
.workspace-shell .redeem-row input:focus,.login-card input:focus,.admin-page input:focus,.admin-page select:focus{
  border-color:#a855f7;box-shadow:var(--ring);background:rgba(139,92,246,.06)}

/* 素材按钮微交互 */
.workspace-shell .asset-btn{border-radius:12px;transition:var(--ease-pro)}
.workspace-shell .asset-btn:hover{background:rgba(139,92,246,.16);border-color:#8b5cf6;transform:translateY(-2px)}
.workspace-shell .asset-card{border-radius:12px;transition:var(--ease-pro)}
.workspace-shell .asset-card:hover{border-color:#8b5cf6;transform:translateY(-2px)}
.workspace-shell .drop-zone{border-radius:14px;transition:var(--ease-pro)}
.workspace-shell .drop-zone:hover{border-color:#e548c8;background:rgba(229,72,200,.06)}

/* 结果区：进度条流光动画 */
.workspace-shell .result-preview{border-radius:16px}
.workspace-shell .progress-track{height:9px}
.workspace-shell .progress-track i{position:relative;overflow:hidden}
.workspace-shell .progress-track i::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:zy-shimmer 1.7s infinite}
@keyframes zy-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.workspace-shell .result-meta div{border-radius:12px}

/* 任务卡片 hover 提亮 */
.workspace-shell .task-item{border-radius:12px;transition:var(--ease-pro)}
.workspace-shell .task-item:hover{border-color:rgba(168,85,247,.55);transform:translateX(2px)}

/* 弹窗更精致 */
.login-dialog .login-card,.library-dialog .library-card-wrap{border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.dialog-close{border-radius:50%;width:32px;height:32px;background:rgba(255,255,255,.08);transition:var(--ease-pro)}
.dialog-close:hover{background:rgba(239,68,68,.24);transform:rotate(90deg)}

/* 后台：统计数字渐变、侧栏选中态、表头 */
.admin-page .stat-card b{background:var(--grad-brand);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.admin-page .admin-side nav a{border-radius:11px;border:1px solid transparent;transition:var(--ease-pro)}
.admin-page .admin-side nav a.active{background:rgba(139,92,246,.2);border-color:#8b5cf6;color:#fff}
.admin-page .stat-card,.admin-page .period-card{transition:var(--ease-pro)}
.admin-page .stat-card:hover,.admin-page .period-card:hover{transform:translateY(-2px);border-color:rgba(168,85,247,.5)}
.admin-page th{font-size:11px;letter-spacing:.05em;text-transform:uppercase}
.admin-page tr:hover td{background:rgba(139,92,246,.06)}

/* 落地页 CTA 微升级（不动布局，仅质感） */
.landing-cta{transition:transform var(--ease-pro),box-shadow var(--ease-pro)}
.landing-cta:hover{transform:translateY(-2px);box-shadow:inset 0 0 18px rgba(255,255,255,.18),0 18px 44px rgba(96,45,186,.5)}
.landing-top-btn{transition:transform var(--ease-pro)}
.landing-top-btn:hover{transform:translateY(-1px)}

/* Fix front model dropdown readability */
.workspace-shell #modelSelect,
.workspace-shell #modelSelect option,
.workspace-shell .advanced-row select,
.workspace-shell .advanced-row select option,
.workspace-shell .field select,
.workspace-shell .field select option{
  color:#f8f4ff;
  background:#0b0714;
}
.workspace-shell #modelSelect:disabled{
  color:#9f93b7;
}

/* Admin model sorting controls */
.model-sort-actions{display:inline-flex;gap:4px;white-space:nowrap}
.model-sort-actions .sort-btn{width:32px;min-width:32px;height:32px;padding:0;margin-right:0;line-height:1;font-size:15px}
.model-sort-actions .sort-btn:disabled{opacity:.28;transform:none}
.model-table table{min-width:1320px}



.model-pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(96px,1fr));gap:6px;min-width:230px}
.model-pricing-grid label{display:grid;gap:2px;font-size:11px;color:var(--muted,#64748b)}
.model-pricing-grid label:first-child{grid-column:1/-1}
.model-pricing-grid .mini-input{width:100%}

.admin-main,.admin-section,.admin-card{min-width:0}
#models .table-toolbar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center}
#models .table-toolbar .admin-search{grid-column:span 2;width:100%}
.model-filter-select{width:100%;min-width:0;max-width:none;border:1px solid var(--line);border-radius:8px;background:#090712;color:var(--text);outline:none;padding:10px 12px}
.model-filter-select:focus{border-color:rgba(167,139,250,.72);box-shadow:0 0 0 3px rgba(139,92,246,.16)}
#modelsClearFilters{grid-column:1}
.model-filter-count{grid-column:2/-1;justify-self:end;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}
.model-table{max-height:min(72vh,760px);border-radius:8px;overscroll-behavior:contain}
.model-table thead th{position:sticky;top:0;z-index:3;background:#181321;box-shadow:0 1px 0 rgba(255,255,255,.1)}
.model-table th:first-child,.model-table td:first-child{position:sticky;left:0;min-width:240px;width:240px;z-index:2;background:#110d18}
.model-table th:nth-child(2),.model-table td:nth-child(2){position:sticky;left:240px;min-width:180px;z-index:2;background:#110d18;box-shadow:1px 0 0 rgba(255,255,255,.08)}
.model-table thead th:first-child,.model-table thead th:nth-child(2){z-index:5;background:#181321}
.model-table tbody tr:nth-child(even) td:first-child,.model-table tbody tr:nth-child(even) td:nth-child(2){background:#15101d}
.model-sort-actions{display:grid;grid-template-columns:72px repeat(4,32px);align-items:center;gap:4px}
.model-table .model-position-input{box-sizing:border-box;width:72px;min-width:72px;height:32px;padding:4px 10px;border:1px solid var(--line);border-radius:6px;background:#090712;color:var(--text);text-align:center;font-variant-numeric:tabular-nums;cursor:text}
.model-position-input:focus{border-color:rgba(167,139,250,.72);outline:none;box-shadow:0 0 0 2px rgba(139,92,246,.14)}
.model-sort-actions button:disabled,.model-sort-actions input:disabled{opacity:.3;cursor:not-allowed}
.model-table.model-compact table{min-width:1380px}
.model-table.model-compact th:nth-child(4),.model-table.model-compact td:nth-child(4),
.model-table.model-compact th:nth-child(5),.model-table.model-compact td:nth-child(5),
.model-table.model-compact th:nth-child(7),.model-table.model-compact td:nth-child(7),
.model-table.model-compact th:nth-child(8),.model-table.model-compact td:nth-child(8),
.model-table.model-compact th:nth-child(11),.model-table.model-compact td:nth-child(11),
.model-table.model-compact th:nth-child(12),.model-table.model-compact td:nth-child(12){display:none}
.model-table.model-compact th:nth-child(3),.model-table.model-compact td:nth-child(3){min-width:160px}
.model-table.model-compact th:nth-child(6),.model-table.model-compact td:nth-child(6){min-width:170px}
.model-table.model-compact th:nth-child(9),.model-table.model-compact td:nth-child(9){min-width:190px}
.model-table.model-compact th:nth-child(10),.model-table.model-compact td:nth-child(10){min-width:130px}
.model-table:not(.model-compact) .mode-checks{display:grid;grid-template-columns:repeat(3,max-content);min-width:260px}
.model-table:not(.model-compact) .model-pricing-grid{grid-template-columns:repeat(3,minmax(104px,1fr));min-width:360px}
.model-table:not(.model-compact) .model-pricing-grid label:first-child{grid-column:auto}
@media (max-width:960px){
  .admin-side{position:sticky;top:0;z-index:20;height:auto;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-right:0;border-bottom:1px solid var(--line)}
  .admin-side>.brand{display:none}
  .admin-side nav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
  .admin-side nav::-webkit-scrollbar{display:none}
  .admin-side nav a{flex:0 0 auto;padding:9px 12px;white-space:nowrap}
  .admin-side #adminLogoutBtn{width:auto;padding:9px 12px;white-space:nowrap}
  .admin-main{padding:18px}
}
@media (max-width:760px){
  #models .table-toolbar{grid-template-columns:1fr}
  #models .table-toolbar .admin-search{grid-column:auto}
  #modelsClearFilters{grid-column:auto}
  .model-filter-select{width:100%;max-width:none}
  .model-filter-count{grid-column:auto;width:100%;justify-self:start}
  .model-table{max-height:68vh}
  .model-table th:nth-child(2),.model-table td:nth-child(2){position:static;min-width:160px;box-shadow:none}
}
@media (max-width:620px){
  .admin-top h1{font-size:30px}
  .admin-card{padding:16px}
  .section-title{align-items:flex-start;flex-direction:column;gap:6px}
}

#models .section-title span{color:#d4c9e2;font-size:14px;line-height:1.55}
#models .admin-search,#models .model-filter-select{font-size:14px;font-weight:700;color:#faf7ff;line-height:1.35;letter-spacing:0}
#models .admin-search::placeholder{color:#aaa0b8;opacity:1}
#models .model-filter-count{color:#ddd4e8;font-size:14px}
#models .model-table th{color:#f3edff;font-size:14px;font-weight:800;line-height:1.35;letter-spacing:0}
#models .model-table td{color:#f8f5fc;font-size:15px;line-height:1.4;letter-spacing:0}
#models .model-table input,#models .model-table select{border-color:rgba(224,212,242,.24);background:#0d0914;color:#fcfaff;font-size:14px;font-weight:650;line-height:1.35;letter-spacing:0}
#models .model-table input::placeholder{color:#a99fb5;opacity:1}
#models select option{background:#fff;color:#17111f;font-weight:700}
#models select option:checked{background:#6d28d9;color:#fff}
#models .mode-checks label{color:#eee7f7;font-size:13px;font-weight:650;line-height:1.35}
#models .model-pricing-grid label{color:#d4c9df;font-size:12px;font-weight:650;line-height:1.35}
#models .model-sort-actions .sort-btn{color:#fff;font-family:"Segoe UI Symbol","Microsoft YaHei",Arial,sans-serif;font-size:17px;font-weight:800}
#models .model-position-input{color:#fff;font-size:14px;font-weight:800}
#models .model-table input:focus,#models .model-table select:focus{border-color:#bda4ff;box-shadow:0 0 0 2px rgba(167,139,250,.2)}


/* BEGIN ZIYUAI WORKSPACE SWITCH CSS */
.workspace-switch{max-width:1200px;margin:0 auto var(--sp-5,24px);padding:0 min(5vw,56px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3,12px)}
.workspace-switch a{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3,12px);padding:16px 18px;border-radius:var(--r-xl,18px);border:1px solid var(--line,rgba(255,255,255,.16));background:rgba(255,255,255,.045);color:var(--text-2,#cbd5e1);transition:var(--ease,all .2s ease);text-decoration:none}
.workspace-switch a:hover{transform:translateY(-2px);border-color:var(--line-strong,rgba(255,255,255,.28));background:rgba(255,255,255,.075);color:var(--text,#fff)}
.workspace-switch a.active{background:var(--grad-soft,rgba(139,92,246,.16));border-color:var(--line-strong,rgba(255,255,255,.28));box-shadow:0 16px 34px rgba(139,92,246,.16)}
.workspace-switch b{display:block;font-size:var(--fs-base,16px);color:var(--text,#fff)}
.workspace-switch small{display:block;margin-top:4px;color:var(--muted,#94a3b8);font-size:var(--fs-xs,12px)}
@media (max-width:760px){.workspace-switch{grid-template-columns:1fr}.site-nav{gap:4px}.site-nav a{padding:8px 10px}.hero-actions .btn{width:100%}}
/* END ZIYUAI WORKSPACE SWITCH CSS */
.announcement-editor{grid-column:1/-1;display:grid;gap:12px;margin:6px 0 16px;padding:14px;border:1px solid rgba(148,163,184,.28);border-radius:16px;background:rgba(255,255,255,.035)}
.announcement-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 180px auto;gap:12px;align-items:end}.announcement-toolbar h3{margin:0;font-size:15px}.announcement-toolbar p{margin:5px 0 0;color:var(--muted);font-size:12px}.announcement-list{display:grid;gap:12px}.announcement-empty{padding:14px;border:1px dashed rgba(148,163,184,.32);border-radius:14px;color:var(--muted);text-align:center}.announcement-item{display:grid;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(0,0,0,.16)}.announcement-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.announcement-grid{display:grid;grid-template-columns:120px 120px minmax(220px,1fr);gap:10px}.announcement-item textarea{min-height:96px;resize:vertical}.announcement-dialog{border:0;padding:0;background:transparent}.announcement-dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(8px)}.announcement-card{width:min(560px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 34px));overflow:auto;padding:24px;border-radius:22px;background:#12101b;border:1px solid var(--line);box-shadow:0 30px 90px rgba(0,0,0,.5);display:grid;gap:14px;position:relative}.announcement-head span{display:block;color:#c4b5fd;font-size:12px;font-weight:900;letter-spacing:.08em}.announcement-head h3{margin:4px 0 0;font-size:22px}.announcement-dialog-list{display:grid;gap:10px}.announcement-public-item{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px;background:rgba(255,255,255,.04)}.announcement-public-item.warning{border-color:rgba(251,191,36,.34);background:rgba(251,191,36,.08)}.announcement-public-item.success{border-color:rgba(34,197,94,.34);background:rgba(34,197,94,.08)}.announcement-public-item.danger{border-color:rgba(239,68,68,.36);background:rgba(239,68,68,.08)}.announcement-public-item h4{margin:0 0 8px;font-size:15px}.announcement-public-item p{margin:0;color:#d8cdf0;line-height:1.65;font-size:14px;white-space:normal}@media (max-width:720px){.announcement-toolbar{grid-template-columns:1fr}.announcement-grid{grid-template-columns:1fr}.announcement-card{padding:20px}}


/* Admin job detail dialog */
.job-detail-dialog{border:0;padding:0;background:transparent;color:var(--text)}
.job-detail-dialog::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(8px)}
.job-detail-card{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:hidden;position:relative;padding:22px;border:1px solid var(--line);border-radius:20px;background:#12101b;box-shadow:0 30px 100px rgba(0,0,0,.52);display:grid;gap:14px}
.job-detail-body{display:grid;gap:14px;max-height:calc(100vh - 148px);overflow:auto;padding-right:4px}
.job-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.job-detail-grid div,.job-detail-section{border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);padding:12px;min-width:0}
.job-detail-grid span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.job-detail-grid b{display:block;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.job-detail-section h3{margin:0 0 10px;font-size:13px;color:#e9d5ff}
.job-detail-pre{margin:0;max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#f5d0fe;background:#090712;border-radius:10px;padding:12px;font-size:12px;line-height:1.55}
.job-detail-assets{display:grid;gap:8px}
.job-detail-asset{display:grid;grid-template-columns:90px minmax(120px,1fr);gap:6px 10px;align-items:center;padding:9px;border-radius:10px;background:rgba(0,0,0,.18)}
.job-detail-asset b{color:#e9d5ff}.job-detail-asset span{font-weight:700}.job-detail-asset small{grid-column:1/-1;color:var(--muted);overflow-wrap:anywhere}.job-detail-empty{color:var(--muted);font-size:13px}
@media (max-width:720px){.job-detail-grid{grid-template-columns:1fr}.job-detail-asset{grid-template-columns:1fr}.job-detail-card{padding:18px}}

.org-form{margin-bottom:12px}
.org-user-cell{display:grid;gap:8px;min-width:180px}
.org-member-list{display:flex;flex-wrap:wrap;gap:8px;min-width:240px}
.org-member-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 8px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.045)}
.org-member-chip b{font-size:12px}.org-member-chip em{color:var(--muted);font-style:normal;font-size:11px}
.org-add-member{display:grid;grid-template-columns:minmax(110px,1fr) 96px auto;gap:8px;align-items:center;min-width:320px}
.org-add-member select{border:1px solid var(--line);border-radius:12px;background:#090712;color:var(--text);outline:none;padding:8px 10px}
.org-name-input{width:190px;margin-bottom:8px}.org-add-member .mini-input{width:100%}
.overview-totals{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.overview-totals{grid-template-columns:repeat(3,1fr)}}
@media (max-width:620px){.overview-totals{grid-template-columns:1fr}.org-add-member{grid-template-columns:1fr}.org-name-input{width:160px}}


.org-dialog-card{width:min(860px,calc(100vw - 32px));overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(168,85,247,.75) rgba(255,255,255,.08)}
.org-dialog-card::-webkit-scrollbar{width:10px}.org-dialog-card::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:999px}.org-dialog-card::-webkit-scrollbar-thumb{background:rgba(168,85,247,.75);border-radius:999px}
.org-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.org-summary div{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04);padding:12px}
.org-summary span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.org-summary b{font-size:15px;color:#fff}
.org-admin-panel{display:grid;gap:10px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}
.org-setting-grid{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:10px;align-items:end}
.org-setting-grid.org-balance-mode{grid-template-columns:minmax(180px,1fr) auto}
.org-setting-grid.org-create-member{grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) 110px auto}
.org-setting-grid label{display:grid;gap:7px}.org-setting-grid label span{font-size:12px;color:#d8cdf0;font-weight:900}
.org-setting-grid input,.org-setting-grid select,.org-member-actions input,.org-member-actions select{border:1px solid var(--line);border-radius:12px;background:#090712;color:var(--text);outline:none;padding:10px 12px}
.org-member-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);padding:9px 10px;color:#d8cdf0;font-size:12px;font-weight:900}
.org-member-head span{white-space:nowrap}
.org-member-table{display:grid;gap:9px;max-height:none;overflow:visible;padding-right:0}
.org-member-table::-webkit-scrollbar{width:10px}.org-member-table::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:999px}.org-member-table::-webkit-scrollbar-thumb{background:rgba(168,85,247,.75);border-radius:999px}
.org-member-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035);padding:10px}
.org-member-row b{display:block;color:#fff}.org-member-row span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.org-member-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.org-member-credit{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap}
.org-member-credit input{width:96px;min-width:86px}
.org-member-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:2px}
.org-member-pager span{color:var(--muted);font-size:12px;font-weight:900}
.org-member-pager .btn[disabled]{opacity:.45;cursor:not-allowed}
.org-task-panel{display:grid;gap:12px;border-top:1px solid rgba(255,255,255,.08);padding-top:14px}
.org-task-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.org-task-head h4{margin:0;color:#fff}.org-task-head span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.org-task-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.org-task-tools select{min-width:160px;border:1px solid var(--line);border-radius:12px;background:#090712;color:var(--text);outline:none;padding:9px 11px}
.org-task-list{display:grid;gap:12px}
.org-task-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035);padding:12px}
.org-task-info{display:grid;gap:10px;min-width:0}.org-task-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.org-task-meta b{color:#fff}.org-task-identity{display:flex;align-items:center;gap:7px;min-width:0}.org-task-source{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:rgba(255,255,255,.06);color:#ddd6fe;font-size:11px;font-weight:900}.org-task-source.canvas{border-color:rgba(34,211,238,.38);background:rgba(34,211,238,.1);color:#a5f3fc}.org-task-source.api{border-color:rgba(250,204,21,.34);background:rgba(250,204,21,.08);color:#fef08a}.org-task-source.website{border-color:rgba(74,222,128,.34);background:rgba(74,222,128,.08);color:#bbf7d0}.org-task-detail{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.org-task-detail span{display:inline-flex;padding:4px 7px;border-radius:7px;background:rgba(255,255,255,.06);color:#d8cdf0;font-size:11px}.org-task-info p{margin:0;color:#f6efff;line-height:1.55;word-break:break-word}.org-task-reason{padding:8px 9px;border:1px solid rgba(239,68,68,.28);border-radius:8px;background:rgba(239,68,68,.08);color:#fecaca;font-size:12px;line-height:1.45;word-break:break-word}
.org-task-assets{display:flex;gap:8px;flex-wrap:wrap}.org-task-asset{width:58px;display:grid;gap:4px;color:var(--muted);font-size:10px;text-align:center}.org-task-asset img,.org-task-asset video{width:58px;height:58px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:#08050f}.org-task-asset.text i{display:grid;place-items:center;width:58px;height:58px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);font-style:normal}.org-task-asset b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.org-task-result{min-width:0}.org-task-result img,.org-task-result video{width:100%;max-height:210px;border-radius:8px;background:#05030a;display:block;object-fit:contain}.org-task-result .asset-empty{min-height:120px;display:grid;place-items:center}
@media (max-width:760px){.org-summary,.org-setting-grid,.org-setting-grid.org-balance-mode,.org-setting-grid.org-create-member,.org-member-row,.org-task-card{grid-template-columns:1fr}.org-member-head,.org-task-head{align-items:flex-start;flex-direction:column}.org-member-actions{justify-content:stretch}.org-member-actions .btn,.org-member-actions input,.org-member-actions select,.org-task-tools,.org-task-tools select,.org-task-tools .btn{width:100%;flex:1}.org-member-credit{width:100%}.org-member-pager{justify-content:stretch}.org-member-pager .btn{flex:1}.org-dialog-card{padding:18px}}

/* customer account information */
.account-dialog{border:0;padding:0;background:transparent;color:var(--text)}.account-dialog::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}.account-card{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 34px);overflow:auto}.account-head h3{margin:0 0 5px}.account-head p{margin:0;color:var(--muted);font-size:13px}.account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.account-summary div{min-width:0;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04)}.account-summary span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.account-summary b{display:block;overflow-wrap:anywhere;color:#fff}.account-api-panel{display:grid;gap:10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}.account-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.account-section-head h4{margin:0;font-size:15px}.account-section-head a{color:#67e8f9;font-size:12px;font-weight:900}.account-note{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.account-api-list{display:grid;gap:8px}.account-api-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.035)}.account-api-row b,.account-api-row code,.account-api-row small{display:block;min-width:0;overflow-wrap:anywhere}.account-api-row code{margin-top:4px;color:#e9d5ff;font-size:12px}.account-api-row small{margin-top:4px;color:var(--muted);font-size:11px}.account-empty{grid-column:1/-1;padding:12px;color:var(--muted);font-size:13px;text-align:center;border:1px dashed rgba(255,255,255,.14);border-radius:13px}.account-key-output{display:flex;align-items:flex-start;gap:8px}.account-key-output textarea{flex:1;min-height:76px;resize:none;border:1px solid rgba(34,211,238,.36);border-radius:13px;background:#090712;color:#fff;outline:none;padding:12px;font:12px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.account-key-output .btn{flex:none;margin-top:0}@media (max-width:620px){.account-summary{grid-template-columns:1fr}.account-api-row{grid-template-columns:1fr}.account-api-row .btn{justify-self:start}.account-key-output{display:grid}.account-key-output .btn{justify-self:start}}
/* task usage labels */
.job-usage{display:grid;gap:3px;min-width:86px;white-space:nowrap}.job-usage b{font-size:12px;color:#fff}.job-usage small{color:var(--muted);font-size:11px}

/* customer task history filters and pagination */
.task-panel{display:grid;gap:10px}.task-panel .task-head{margin-bottom:0}.task-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.task-filter{min-width:0;height:36px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.035);color:#d8cdf0;font-size:12px;font-weight:800;cursor:pointer}.task-filter span{min-width:0;white-space:nowrap}.task-filter b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:11px}.task-filter:hover{border-color:rgba(167,139,250,.54);background:rgba(139,92,246,.12)}.task-filter.active{border-color:rgba(34,211,238,.52);background:rgba(34,211,238,.11);color:#a5f3fc}.task-filter[data-task-filter="completed"].active{border-color:rgba(57,217,138,.48);background:rgba(57,217,138,.11);color:#8ff0bc}.task-filter[data-task-filter="failed"].active{border-color:rgba(239,68,68,.48);background:rgba(239,68,68,.11);color:#fecaca}.task-list{max-height:min(620px,60vh)}.task-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:2px}.task-page-summary{color:var(--muted);font-size:12px;white-space:nowrap}.task-page-summary b{color:#fff}.task-page-actions{display:flex;align-items:center;gap:5px}.task-page-icon,.task-page-jump button{height:34px;border:1px solid rgba(167,139,250,.3);border-radius:8px;background:rgba(139,92,246,.1);color:#f5f3ff;font-weight:900;cursor:pointer}.task-page-icon{width:34px;padding:0;font-size:18px}.task-page-icon:hover,.task-page-jump button:hover{border-color:rgba(167,139,250,.68);background:rgba(139,92,246,.2)}.task-page-icon:disabled{opacity:.38;cursor:not-allowed}.task-page-jump{display:flex;align-items:center;gap:5px}.task-page-jump input{width:58px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#090712;color:#fff;text-align:center;outline:none}.task-page-jump input:focus{border-color:rgba(34,211,238,.62)}.task-page-jump button{padding:0 10px;font-size:12px}@media (max-width:640px){.task-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.task-pager{align-items:stretch;flex-direction:column}.task-page-summary{text-align:center}.task-page-actions{justify-content:center;flex-wrap:wrap}.task-page-jump input{width:52px}}

/* enterprise card redemption */
.workspace-shell .redeem-row select{min-width:132px;border:1px solid var(--line);border-radius:var(--r-field);background:#090712;color:#fff!important;-webkit-text-fill-color:#fff;font-family:inherit;font-size:14px;font-weight:800;line-height:1.3;color-scheme:dark;outline:none;padding:12px 34px 12px 13px;transition:var(--ease-pro)}
.workspace-shell .redeem-row select option{background:#090712!important;color:#fff!important;font-size:14px;font-weight:700}
.workspace-shell .redeem-row select:focus{border-color:#a855f7;box-shadow:var(--ring);background:rgba(139,92,246,.06)}
@media (max-width:620px){.workspace-shell .redeem-row select{width:100%}}

/* Announcement content must not inherit the 96px table input width. */
.announcement-item > label:last-child {
  display: block;
  min-width: 0;
}

.announcement-item textarea.mini-input[data-announcement-field] {
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  color: #fbf7ff;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Announcement image controls and high-contrast text. */
.announcement-editor,
.announcement-item,
.announcement-card {
  color: #ffffff;
}

.announcement-toolbar h3,
.announcement-item-head strong,
.announcement-head h3,
.announcement-public-item h4 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.announcement-toolbar p,
.announcement-image-controls small {
  color: #ddd6fe;
}

.announcement-toolbar label > span,
.announcement-grid label > span,
.announcement-content-field > span {
  display: block;
  margin-bottom: 7px;
  color: #f5f3ff;
  -webkit-text-fill-color: #f5f3ff;
  font-size: 13px;
  font-weight: 900;
}

.announcement-grid input,
.announcement-grid select,
.announcement-content-field textarea {
  width: 100%;
  min-width: 0;
  border-color: rgba(196,181,253,.34);
  background: #090712;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  color-scheme: dark;
}

.announcement-toolbar select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(196,181,253,.34);
  border-radius: 8px;
  background: #090712;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  color-scheme: dark;
  outline: none;
  padding: 10px 12px;
}

.announcement-grid select option {
  background: #090712;
  color: #ffffff;
}

.announcement-grid input::placeholder,
.announcement-content-field textarea::placeholder {
  color: #b8aec8;
  -webkit-text-fill-color: #b8aec8;
  opacity: 1;
}

.announcement-content-field {
  display: block;
  min-width: 0;
}

.announcement-image-field {
  display: grid;
  grid-template-columns: minmax(180px,260px) minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.announcement-image-preview,
.announcement-image-empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(196,181,253,.28);
  border-radius: 8px;
  background: #090712;
  overflow: hidden;
}

.announcement-image-preview {
  display: block;
}

.announcement-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.announcement-image-empty {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #cfc7db;
  font-size: 13px;
  text-align: center;
}

.announcement-image-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-image-controls small {
  flex-basis: 100%;
  line-height: 1.5;
}

.announcement-card {
  width: min(640px,calc(100vw - 32px));
  background: #100d18;
}

.announcement-head span {
  color: #d8b4fe;
}

.announcement-public-item {
  color: #ffffff;
  background: #191424;
  border-color: rgba(255,255,255,.16);
}

.announcement-public-item h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
}

.announcement-public-item p {
  margin: 0;
  color: #f7f3ff;
  -webkit-text-fill-color: #f7f3ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.announcement-public-image {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #050309;
  overflow: hidden;
}

.announcement-public-image img {
  display: block;
  width: 100%;
  max-height: min(420px,52vh);
  object-fit: contain;
}

.announcement-footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.announcement-hide-today {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #f7f3ff;
  -webkit-text-fill-color: #f7f3ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.announcement-hide-today input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.announcement-footer .btn {
  min-width: 112px;
}

@media (max-width:720px) {
  .announcement-image-field {
    grid-template-columns: 1fr;
  }

  .announcement-image-preview,
  .announcement-image-empty {
    max-width: 100%;
  }

  .announcement-public-item p {
    font-size: 15px;
  }

  .announcement-footer {
    grid-template-columns: 1fr;
  }

  .announcement-footer .btn {
    width: 100%;
  }
}

/* Leonardo account pool */
.pool-health{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;background:rgba(148,163,184,.12);color:#64748b;white-space:nowrap}
.pool-health::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(148,163,184,.12)}
.pool-health.available{color:#16a34a;background:rgba(34,197,94,.1)}
.pool-health.invalid{color:#dc2626;background:rgba(239,68,68,.1)}
.pool-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.pool-summary .stat-card{min-height:94px}
.pool-import-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin:8px 0 12px;border:1px solid rgba(99,102,241,.18);border-radius:16px;background:linear-gradient(135deg,rgba(99,102,241,.08),rgba(14,165,233,.04))}
.pool-import-card h3{margin:0 0 6px;font-size:16px}
.pool-import-card p{margin:0;max-width:720px;color:#64748b;font-size:13px;line-height:1.7}
.pool-actions{display:flex;gap:10px;flex:0 0 auto}
.pool-operation-status{margin:10px 0 14px;padding:11px 14px;border-radius:12px;background:rgba(148,163,184,.09);color:#475569;font-size:13px;line-height:1.65;word-break:break-word}
.pool-account-table td{vertical-align:middle}
.pool-account-table td:first-child b{display:block;max-width:270px;overflow:hidden;text-overflow:ellipsis}
.pool-task-title{margin-top:22px}.pool-task-title h3{margin:0 0 4px}.pool-task-title span{color:var(--muted);font-size:12px}.pool-attempt-error{display:block;max-width:360px;color:#dc2626;font-size:11px;line-height:1.4;word-break:break-word}
.pool-account-batch,.pool-account-error{display:block;margin-top:4px;color:#94a3b8;font-size:11px;line-height:1.45}
.pool-account-error{max-width:250px;color:#dc2626}
.pool-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.pool-status.available{color:#15803d;background:rgba(34,197,94,.12)}
.pool-status.exhausted{color:#b45309;background:rgba(245,158,11,.14)}
.pool-status.invalid{color:#b91c1c;background:rgba(239,68,68,.12)}
@media (max-width:960px){.pool-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-import-card{align-items:flex-start;flex-direction:column}.pool-actions{width:100%;flex-wrap:wrap}.pool-actions .btn{flex:1 1 180px}}
@media (max-width:560px){.pool-summary{grid-template-columns:1fr 1fr}.pool-summary .stat-card{min-height:82px}.pool-actions{display:grid;grid-template-columns:1fr;width:100%}.pool-import-card{padding:15px}.pool-health{margin-top:8px}}

/* BEGIN LANDING V2 20260903 */
:root {
  --lv2-bg: #0b0811;
  --lv2-surface: #14101b;
  --lv2-surface-2: #1c1627;
  --lv2-line: #352a43;
  --lv2-line-strong: #60487c;
  --lv2-text: #f7f4fb;
  --lv2-muted: #aaa3b4;
  --lv2-purple: #8c6cf2;
  --lv2-purple-strong: #7958e5;
  --lv2-purple-soft: #302344;
  --lv2-green: #59c99e;
  --lv2-gold: #f2ca6c;
  --lv2-shadow: 0 20px 56px rgba(0, 0, 0, .34);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.landing-page.landing-v2 {
  min-height: 100vh;
  overflow: clip;
  color: var(--lv2-text);
  background: var(--lv2-bg);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}
.landing-page.landing-v2::after { display: none; }
.landing-v2 * { box-sizing: border-box; }
.landing-v2 button, .landing-v2 a { font: inherit; letter-spacing: 0; }
.landing-v2 button { cursor: pointer; touch-action: manipulation; }
.landing-v2 a { color: inherit; text-decoration: none; }
.landing-v2 img { display: block; max-width: 100%; }
.landing-v2 button, .landing-v2 a {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.landing-v2 button:focus-visible, .landing-v2 a:focus-visible {
  outline: 2px solid #c1b1ff;
  outline-offset: 3px;
}
.lv2-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.lv2-header {
  height: 72px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(111, 83, 143, .28);
  background: rgba(11, 8, 17, .86);
  backdrop-filter: blur(18px);
}
.lv2-header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.lv2-brand { min-width: max-content; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 900; }
.lv2-mark {
  width: 31px;
  height: 35px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 91% 22%, 84% 78%, 50% 100%, 16% 78%, 9% 22%);
  color: #fff;
  background: var(--lv2-purple-strong);
  font-size: 9px;
  font-weight: 900;
}
.lv2-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lv2-nav a { min-height: 42px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 6px; color: #b9b1c2; font-size: 13px; font-weight: 720; }
.lv2-nav a:hover, .lv2-nav a.active { color: #fff; background: rgba(72, 51, 98, .5); }
.lv2-header-actions { display: flex; align-items: center; gap: 7px; }
.lv2-button { min-height: 43px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; color: #fff; background: transparent; font-size: 13px; font-weight: 820; }
.lv2-button:hover { transform: translateY(-1px); }
.lv2-button.lv2-primary { border-color: #a38cf0; background: var(--lv2-purple-strong); box-shadow: 0 10px 26px rgba(113, 79, 217, .25); }
.lv2-button.lv2-primary:hover { background: #8968ef; }
.lv2-button.lv2-secondary { border-color: var(--lv2-line-strong); background: rgba(29, 23, 40, .86); }
.lv2-button.lv2-secondary:hover { border-color: #80649e; background: #251c32; }
.lv2-text-button { color: #d4ccdc; }
.lv2-text-button:hover { background: #211929; }
.lv2-large { min-height: 50px; padding: 0 20px; }
.lv2-menu { width: 44px; height: 44px; padding: 0; display: none; place-items: center; border: 1px solid var(--lv2-line); border-radius: 7px; background: var(--lv2-surface); }
.lv2-menu span { width: 17px; height: 2px; display: block; margin: 3px auto; background: #e6e0ec; }
.lv2-mobile-nav { padding: 8px 14px 12px; position: fixed; inset: 64px 0 auto; z-index: 59; display: grid; gap: 4px; border-bottom: 1px solid var(--lv2-line); background: #100d16; box-shadow: var(--lv2-shadow); }
.lv2-mobile-nav a { min-height: 43px; padding: 0 10px; display: flex; align-items: center; border-radius: 6px; color: #c8c0d0; font-size: 12px; font-weight: 720; }
.lv2-mobile-nav a:hover { color: #fff; background: var(--lv2-purple-soft); }

.lv2-hero {
  min-height: min(780px, calc(100vh - 22px));
  padding: 142px 0 94px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--lv2-line);
  background-image: linear-gradient(90deg, rgba(11,8,17,.98) 0%, rgba(11,8,17,.9) 34%, rgba(11,8,17,.08) 68%, rgba(11,8,17,.16) 100%), url('./landing-hero.png?v=20260903-home-v2');
  background-size: cover;
  background-position: center;
}
.lv2-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 92px; background: linear-gradient(180deg, transparent, var(--lv2-bg)); pointer-events: none; }
.lv2-hero-content { position: relative; z-index: 2; }
.lv2-hero-copy { width: min(610px, 55%); }
.lv2-kicker { margin: 0 0 13px; display: flex; align-items: center; gap: 9px; color: #bdaeff; font-size: 12px; font-weight: 850; }
.lv2-kicker::before { content: ""; width: 28px; height: 2px; background: var(--lv2-purple); }
.lv2-hero h1 { max-width: 11.5em; margin: 0; color: #fff; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.08; font-weight: 900; letter-spacing: 0; text-wrap: balance; }
.lv2-hero h1 span { color: #b7a3ff; }
.lv2-hero-text { max-width: 570px; margin: 20px 0 26px; color: #c7bfce; font-size: 16px; line-height: 1.8; }
.lv2-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lv2-proof { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 15px; color: #918a99; font-size: 11px; }
.lv2-proof span { display: inline-flex; align-items: center; gap: 6px; }
.lv2-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lv2-green); box-shadow: 0 0 0 3px rgba(89,201,158,.12); }
.lv2-hero-jump { min-height: 62px; padding: 9px 13px; position: absolute; left: 50%; bottom: 18px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #4a375f; border-radius: 8px; background: rgba(20, 16, 27, .92); transform: translateX(-50%); box-shadow: var(--lv2-shadow); }
.lv2-hero-jump strong, .lv2-hero-jump span { display: block; }
.lv2-hero-jump strong { font-size: 12px; }
.lv2-hero-jump span { margin-top: 3px; color: var(--lv2-muted); font-size: 9px; }
.lv2-jump-actions { display: flex; align-items: center; gap: 5px; }
.lv2-jump-actions button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 6px; color: #cbc3d2; background: transparent; font-size: 10px; font-weight: 760; }
.lv2-jump-actions button:hover { color: #fff; background: var(--lv2-purple-soft); }

.lv2-section { padding: 88px 0; border-bottom: 1px solid #211a2a; }
.lv2-product { background: #100d17; }
.lv2-capabilities { background: #0b0910; }
.lv2-models { background: #0d1017; }
.lv2-business { background: #0b0910; }
.lv2-pricing { background: #100d16; }
.lv2-section-head { max-width: 760px; margin-bottom: 32px; }
.lv2-section-head.lv2-center { margin-right: auto; margin-left: auto; text-align: center; }
.lv2-section-head > p, .lv2-section-kicker { margin: 0 0 9px; color: #aa95ff; font-size: 11px; font-weight: 850; }
.lv2-section-head h2 { margin: 0; color: #fff; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.25; text-wrap: balance; }
.lv2-section-head > span { display: block; margin-top: 13px; color: var(--lv2-muted); font-size: 14px; line-height: 1.75; }

.lv2-demo-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.lv2-demo-tabs { display: grid; align-content: start; gap: 8px; }
.lv2-demo-tabs button { min-height: 84px; padding: 13px; display: grid; align-content: center; border: 1px solid var(--lv2-line); border-radius: 7px; color: var(--lv2-text); background: var(--lv2-surface); text-align: left; }
.lv2-demo-tabs button:hover { border-color: #624b7c; background: var(--lv2-surface-2); }
.lv2-demo-tabs button.active { border-color: #7f61a6; background: #2b203d; box-shadow: inset 3px 0 0 var(--lv2-purple); }
.lv2-demo-tabs b, .lv2-demo-tabs span { display: block; }
.lv2-demo-tabs b { font-size: 12px; }
.lv2-demo-tabs span { margin-top: 6px; color: var(--lv2-muted); font-size: 9px; line-height: 1.45; }
.lv2-demo-screen { min-height: 450px; overflow: hidden; border: 1px solid #463657; border-radius: 8px; background: var(--lv2-surface); box-shadow: var(--lv2-shadow); }
.lv2-demo-bar { min-height: 49px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--lv2-line); background: #100d16; }
.lv2-demo-bar i { width: 7px; height: 7px; border-radius: 50%; background: #554960; }
.lv2-demo-bar span { margin-left: auto; color: #8f8799; font-size: 9px; }
.lv2-demo-content { min-height: 400px; padding: 21px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.lv2-demo-form { min-width: 0; }
.lv2-demo-field { margin-bottom: 15px; }
.lv2-demo-field label { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #e8e3ec; font-size: 10px; font-weight: 780; }
.lv2-demo-field label span { color: var(--lv2-muted); font-weight: 500; }
.lv2-mock-select { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #534168; border-radius: 7px; background: #1e1729; }
.lv2-mock-select b { font-size: 11px; }
.lv2-mock-select strong { color: var(--lv2-gold); font-size: 11px; }
.lv2-mock-prompt { min-height: 112px; padding: 12px; border: 1px solid var(--lv2-line); border-radius: 7px; color: #bcb5c4; background: #0e0b13; font-size: 10px; line-height: 1.65; }
.lv2-mock-assets { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.lv2-mock-assets button { min-height: 49px; border: 1px dashed #544363; border-radius: 6px; color: #bfb7c8; background: #18131f; font-size: 9px; }
.lv2-mock-assets button:hover { border-color: #8a6bb0; color: #fff; }
.lv2-demo-result { min-width: 0; padding: 13px; border: 1px solid var(--lv2-line); border-radius: 7px; background: #100d16; }
.lv2-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv2-result-head b { font-size: 11px; }
.lv2-result-head span { padding: 4px 6px; border-radius: 4px; color: #9be7ca; background: #123127; font-size: 9px; font-weight: 800; }
.lv2-result-visual { margin-top: 10px; aspect-ratio: 16/12; overflow: hidden; border-radius: 6px; background: #09070d; }
.lv2-result-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 76% center; opacity: .82; }
.lv2-result-meta { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--lv2-line); border-radius: 6px; overflow: hidden; }
.lv2-result-meta div { min-width: 0; padding: 9px; border-right: 1px solid var(--lv2-line); border-bottom: 1px solid var(--lv2-line); }
.lv2-result-meta div:nth-child(2n) { border-right: 0; }
.lv2-result-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.lv2-result-meta span, .lv2-result-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-result-meta span { color: var(--lv2-muted); font-size: 8px; }
.lv2-result-meta b { margin-top: 4px; color: #fff; font-size: 9px; }
.lv2-result-meta .lv2-gold { color: var(--lv2-gold); }

.lv2-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--lv2-line); border-radius: 8px; overflow: hidden; }
.lv2-feature-grid article { min-height: 210px; padding: 22px; border-right: 1px solid var(--lv2-line); background: var(--lv2-surface); }
.lv2-feature-grid article:last-child { border-right: 0; }
.lv2-feature-grid i { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 7px; color: #d5c9ff; background: #36284c; font-style: normal; font-size: 10px; font-weight: 850; }
.lv2-feature-grid h3 { margin: 0; color: #fff; font-size: 15px; }
.lv2-feature-grid p { margin: 9px 0 0; color: var(--lv2-muted); font-size: 11px; line-height: 1.7; }
.lv2-feature-grid button { min-height: 38px; margin-top: 12px; padding: 0; border: 0; color: #bbaaff; background: transparent; font-size: 10px; font-weight: 780; }
.lv2-feature-grid button:hover { color: #fff; }

.lv2-model-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.lv2-model-tabs button { min-height: 43px; padding: 0 14px; border: 1px solid var(--lv2-line); border-radius: 7px; color: #bcb5c5; background: var(--lv2-surface); font-size: 11px; font-weight: 750; }
.lv2-model-tabs button:hover, .lv2-model-tabs button.active { color: #fff; border-color: #765a98; background: #2b203d; }
.lv2-model-info { margin-top: 12px; min-height: 116px; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; border: 1px solid #4e3c62; border-radius: 8px; background: #17121f; }
.lv2-model-info h3 { margin: 0; color: #fff; font-size: 15px; }
.lv2-model-info p { margin: 8px 0 0; color: var(--lv2-muted); font-size: 11px; line-height: 1.65; }

.lv2-business-inner { padding: 26px; display: grid; grid-template-columns: minmax(0,1fr) 410px; gap: 28px; align-items: center; border: 1px solid #56416f; border-radius: 8px; background: #21182e; }
.lv2-business h2 { margin: 0; color: #fff; font-size: 29px; }
.lv2-business p:not(.lv2-section-kicker) { margin: 12px 0 20px; color: #bbb3c4; font-size: 13px; line-height: 1.7; }
.lv2-business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lv2-business-grid div { min-height: 62px; padding: 10px; display: grid; align-content: center; border: 1px solid #49375e; border-radius: 6px; background: #18121f; }
.lv2-business-grid b, .lv2-business-grid span { display: block; }
.lv2-business-grid b { font-size: 10px; }
.lv2-business-grid span { margin-top: 4px; color: var(--lv2-muted); font-size: 8px; }

.lv2-pricing-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; }
.lv2-pricing-main { padding: 24px; border: 1px solid var(--lv2-line); border-radius: 8px; background: var(--lv2-surface); }
.lv2-pricing-main h3, .lv2-redeem h3 { margin: 0; color: #fff; font-size: 20px; }
.lv2-pricing-main > p, .lv2-redeem p { margin: 10px 0 19px; color: var(--lv2-muted); font-size: 11px; line-height: 1.7; }
.lv2-pricing-points { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--lv2-line); border-radius: 7px; overflow: hidden; }
.lv2-pricing-points div { min-height: 105px; padding: 14px; border-right: 1px solid var(--lv2-line); }
.lv2-pricing-points div:last-child { border-right: 0; }
.lv2-pricing-points b, .lv2-pricing-points span { display: block; }
.lv2-pricing-points b { color: var(--lv2-gold); font-size: 11px; }
.lv2-pricing-points span { margin-top: 7px; color: var(--lv2-muted); font-size: 9px; line-height: 1.55; }
.lv2-redeem { padding: 22px; border: 1px solid #5a4473; border-radius: 8px; background: #251b35; }
.lv2-redeem > span { display: block; margin-bottom: 9px; color: #bfaeff; font-size: 10px; font-weight: 800; }
.lv2-redeem .lv2-button { width: 100%; }

.lv2-final { padding: 76px 0; background: #0a080f; text-align: center; }
.lv2-final h2 { margin: 0; color: #fff; font-size: clamp(29px,3.4vw,43px); }
.lv2-final p { margin: 12px 0 22px; color: var(--lv2-muted); font-size: 13px; }
.lv2-center-actions { justify-content: center; }
.lv2-footer { padding: 25px 0; border-top: 1px solid var(--lv2-line); background: #08070c; }
.lv2-footer .lv2-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lv2-footer > .lv2-shell > span { color: #81798a; font-size: 10px; }

@media (max-width: 1030px) {
  .lv2-nav { display: none; }
  .lv2-menu { margin-left: auto; display: grid; }
  .lv2-hero { min-height: 760px; background-position: 64% center; }
  .lv2-hero-copy { width: min(590px, 68%); }
  .lv2-demo-layout { grid-template-columns: 1fr; }
  .lv2-demo-tabs { grid-template-columns: repeat(3,1fr); }
  .lv2-demo-content { grid-template-columns: 1fr 260px; }
  .lv2-feature-grid { grid-template-columns: repeat(2,1fr); }
  .lv2-feature-grid article:nth-child(2) { border-right: 0; }
  .lv2-feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--lv2-line); }
  .lv2-business-inner, .lv2-pricing-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  .lv2-shell { width: min(100% - 28px, 1180px); }
  .lv2-header { height: 64px; }
  .lv2-header-inner { gap: 8px; }
  .lv2-brand { font-size: 16px; }
  .lv2-mark { width: 28px; height: 31px; }
  .lv2-header-actions .lv2-text-button { display: none; }
  .lv2-header-actions .lv2-primary { min-height: 40px; padding: 0 11px; font-size: 11px; }
  .lv2-mobile-nav { top: 64px; }
  .lv2-hero { min-height: 710px; padding: 116px 0 124px; align-items: flex-start; background-image: linear-gradient(180deg, rgba(11,8,17,.83) 0%, rgba(11,8,17,.66) 45%, rgba(11,8,17,.98) 82%), url('./landing-hero.png?v=20260903-home-v2'); background-position: 69% center; }
  .lv2-hero-copy { width: 100%; }
  .lv2-hero h1 { max-width: 8em; font-size: 43px; }
  .lv2-hero-text { max-width: 420px; font-size: 13px; }
  .lv2-actions { align-items: stretch; flex-direction: column; }
  .lv2-actions .lv2-button { width: 100%; }
  .lv2-proof { gap: 8px 13px; }
  .lv2-hero-jump { height: auto; min-height: 74px; padding: 10px; bottom: 14px; align-items: flex-start; flex-direction: column; }
  .lv2-jump-actions { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  .lv2-jump-actions button { justify-content: center; padding: 0 4px; }
  .lv2-section { padding: 64px 0; }
  .lv2-section-head { margin-bottom: 24px; }
  .lv2-section-head h2 { font-size: 29px; }
  .lv2-section-head > span { font-size: 12px; }
  .lv2-demo-tabs { grid-template-columns: 1fr; }
  .lv2-demo-tabs button { min-height: 70px; }
  .lv2-demo-content { padding: 13px; grid-template-columns: 1fr; }
  .lv2-demo-result { min-height: 300px; }
  .lv2-feature-grid { grid-template-columns: 1fr; }
  .lv2-feature-grid article { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--lv2-line); }
  .lv2-feature-grid article:last-child { border-bottom: 0; }
  .lv2-feature-grid i { margin-bottom: 19px; }
  .lv2-model-info { grid-template-columns: 1fr; }
  .lv2-model-info .lv2-button { width: 100%; }
  .lv2-business-inner { padding: 18px; }
  .lv2-business h2 { font-size: 25px; }
  .lv2-business-grid, .lv2-pricing-points { grid-template-columns: 1fr; }
  .lv2-pricing-points div { border-right: 0; border-bottom: 1px solid var(--lv2-line); }
  .lv2-pricing-points div:last-child { border-bottom: 0; }
  .lv2-center-actions { align-items: stretch; }
  .lv2-footer .lv2-shell { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-v2 *, .landing-v2 *::before, .landing-v2 *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* BEGIN ZIYUAI WORKBENCH V3 */
.workspace-shell {
  --wb-bg: #08070f;
  --wb-surface: #12101c;
  --wb-surface-2: #181522;
  --wb-surface-3: #211a31;
  --wb-line: #302840;
  --wb-line-strong: #5d3f8c;
  --wb-text: #f7f4ff;
  --wb-muted: #b3a9c4;
  --wb-purple: #8b5cf6;
  --wb-purple-strong: #6d3fd8;
  --wb-pink: #d946ef;
  --wb-gold: #f5c451;
  --wb-green: #4adea4;
  --wb-cyan: #45c9d7;
  min-height: 100vh;
  color: var(--wb-text);
  background:
    linear-gradient(rgba(139,92,246,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 0%, rgba(121,68,204,.16), transparent 32%),
    var(--wb-bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
}
.workspace-shell .workbench-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--wb-line);
  background: rgba(8,7,15,.94);
  backdrop-filter: blur(18px);
}
.workspace-shell .brand { display:flex; align-items:center; gap:10px; color:var(--wb-text); text-decoration:none; white-space:nowrap; }
.workspace-shell .brand-mark { width:34px; height:34px; border-radius:8px; background:linear-gradient(135deg,var(--wb-purple),var(--wb-pink)); box-shadow:0 0 22px rgba(139,92,246,.38); }
.workspace-shell .brand > span:last-of-type { font-size:19px; font-weight:900; }
.workspace-shell .brand small { padding:3px 7px; border:1px solid #4c3b67; border-radius:5px; color:#d7c8ef; font-size:11px; }
.workspace-primary-nav { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; }
.workspace-primary-nav a,
.workspace-primary-nav button { min-height:42px; padding:0 14px; border:0; border-radius:6px; color:var(--wb-muted); background:transparent; font:inherit; font-size:14px; font-weight:750; text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; }
.workspace-primary-nav a:hover,
.workspace-primary-nav button:hover { color:var(--wb-text); background:#1a1625; }
.workspace-primary-nav .active { color:#fff; background:#35244e; box-shadow:inset 0 0 0 1px #6b4a96; }
.workspace-account-actions { display:flex; gap:7px; align-items:center; }
.workspace-shell .btn { border-radius:6px; min-height:42px; font-weight:800; letter-spacing:0; }
.workspace-shell .btn.primary { color:#fff; background:linear-gradient(135deg,var(--wb-purple-strong),#9f3fcb); border-color:#a96de4; }
.workspace-shell .btn.primary:hover { filter:brightness(1.08); }
.workspace-shell .btn.ghost { color:#ddd4eb; background:#17131f; border-color:#372b49; }
.workspace-shell .btn:focus-visible,
.workspace-shell a:focus-visible,
.workspace-shell button:focus-visible,
.workspace-shell input:focus-visible,
.workspace-shell select:focus-visible,
.workspace-shell textarea:focus-visible { outline:3px solid rgba(139,92,246,.42); outline-offset:2px; }
.workspace-shell .workbench-main { width:100%; max-width:none; padding:0 28px 44px; }
.workspace-shell .hero-clean,
.workspace-shell .workspace-switch { display:none; }
.account-strip {
  width:calc(100% + 56px);
  min-height:72px;
  margin:0 -28px 16px;
  padding:8px 28px;
  display:grid;
  grid-template-columns:minmax(150px,.75fr) minmax(150px,.75fr) minmax(190px,.85fr) minmax(260px,1.25fr) minmax(310px,1.3fr);
  gap:10px;
  align-items:stretch;
  border-bottom:1px solid var(--wb-line);
  background:rgba(18,16,28,.96);
}
.account-strip:has(#workspaceOrgBalanceCard.hidden) { grid-template-columns:minmax(160px,.8fr) minmax(160px,.8fr) minmax(280px,1.25fr) minmax(340px,1.4fr); }
.account-identity,
.balance-tile,
.billing-source { min-width:0; padding:8px 12px; border:1px solid #342b42; border-left:3px solid #4c3d61; border-radius:6px; display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; background:#17131f; }
.account-identity { align-items:center; border:0; border-left:0; background:transparent; }
.account-identity > div { min-width:0; display:flex; flex-direction:column; gap:6px; }
.account-avatar { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:50%; color:#1a1026; background:#d5c4ff; font-size:14px; font-style:normal; font-weight:950; }
.account-identity span,
.balance-tile span,
.billing-source span { width:100%; color:var(--wb-muted); font-size:11px; line-height:1; }
.account-identity strong,
.billing-source strong { overflow:hidden; color:var(--wb-text); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.balance-tile.personal { border-left-color:var(--wb-gold); }
.balance-tile.organization { border-left-color:#a980ff; }
.balance-tile strong { color:#fff; font-size:23px; line-height:1; font-variant-numeric:tabular-nums; }
.balance-tile small { color:var(--wb-muted); font-size:11px; }
.workbench-redeem { margin:0; padding:0; display:grid; grid-template-columns:minmax(100px,1fr) auto auto; gap:8px; align-items:center; }
.redeem-status { grid-column:1/-1; min-width:0; font-size:13px; line-height:1.5; overflow-wrap:anywhere; color:var(--wb-muted); }
.redeem-status:empty { display:none; }
.redeem-status[data-kind="success"] { color:var(--wb-green); }
.redeem-status[data-kind="error"] { color:#ffb3c1; }
.redeem-status[data-kind="pending"] { color:var(--wb-gold); }
.workbench-redeem input,
.workbench-redeem select { min-width:0; height:44px; border:1px solid var(--wb-line); border-radius:6px; color:var(--wb-text); background:#100d18; }
.workspace-shell .creator-shell {
  width:100%;
  max-width:1560px;
  margin:0 auto;
  padding:8px 0 0;
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(360px,1fr);
  gap:28px;
  align-items:start;
}
.workspace-shell .creator-panel,
.workspace-shell .result-panel { min-width:0; border:0; border-radius:0; color:var(--wb-text); background:transparent; box-shadow:none; }
.workspace-shell .creator-panel { padding:0 28px 0 0; border-right:1px solid var(--wb-line); }
.workspace-shell .result-panel { position:static; padding:0; max-height:none; overflow:visible; scroll-margin-top:90px; }
.workspace-shell .section-title { margin-bottom:14px; align-items:flex-start; }
.workspace-shell .section-title h2 { margin:0; font-size:24px; letter-spacing:0; }
.workspace-shell .workbench-title > div { display:flex; flex-direction:column; gap:3px; }
.workspace-shell .workbench-title p { margin:0; color:var(--wb-muted); font-size:12px; }
.workspace-shell #userBadge { display:none; }
.workspace-shell .mode-tabs { min-height:54px; margin-bottom:18px; padding:5px; border:1px solid var(--wb-line); border-radius:7px; background:#0d0a14; }
.workspace-shell .mode-tabs button { min-height:42px; border-radius:5px; color:var(--wb-muted); font-size:16px; font-weight:850; }
.workspace-shell .mode-tabs button.active { color:#fff; background:#3b2857; box-shadow:inset 0 0 0 1px #7950aa; }
.workspace-shell .field { color:var(--wb-text); }
.workspace-shell .model-field { display:block; margin-bottom:18px; padding:0; border:0; border-radius:0; overflow:visible; background:transparent; }
.model-selection-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; font-size:14px; font-weight:800; }
.workspace-shell .model-field .selected-model-summary { margin:0 0 8px; min-height:90px; }
.workspace-shell .model-field #modelHint { padding:0; font-size:12px; line-height:1.6; }
.workspace-shell .selected-model-summary #selectedModelName { white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
html:has(#workspaceShell:not(.hidden)) { scrollbar-gutter:stable; }
html:has(#modelPickerDialog[open]) { overflow:hidden; }
.workspace-shell .model-picker-dialog { width:min(900px,calc(100% - 32px)); height:min(720px,calc(100dvh - 40px)); max-width:none; max-height:none; padding:0; border:1px solid var(--wb-line-strong); border-radius:8px; color:var(--wb-text); background:var(--wb-surface); overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,.5); }
.workspace-shell .model-picker-dialog[open] { display:flex; flex-direction:column; }
.model-picker-dialog::backdrop { background:rgba(4,3,9,.75); }
.model-picker-heading { flex:none; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 18px 8px; }
.model-picker-heading > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; }
.model-picker-heading h2 { margin:0; font-size:20px; }
.model-picker-heading small { color:var(--wb-muted); font-size:12px; }
.model-picker-close { width:44px; height:44px; flex:none; padding:0; border:1px solid var(--wb-line); border-radius:6px; color:var(--wb-text); background:var(--wb-surface-2); font-family:inherit; font-size:24px; line-height:1; cursor:pointer; }
.model-picker-search { flex:none; padding:0 18px 12px; }
.model-picker-search input { width:100%; min-width:0; height:44px; border:1px solid var(--wb-line); border-radius:6px; padding:10px 12px; font:inherit; font-size:14px; }
.model-picker-dialog .model-family-tabs { flex:none; flex-wrap:wrap; overflow:visible; padding:8px 18px; }
.model-picker-dialog .model-card-list { flex:1; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.model-picker-dialog .model-option-copy > strong { white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
.model-picker-dialog .model-badges > span { font-size:12px; }
.model-picker-dialog .model-option-price small { font-size:12px; }
.model-section-head { padding:13px; display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,330px); gap:12px; align-items:center; border-bottom:1px solid var(--wb-line); }
.model-section-head > div { min-width:0; display:flex; gap:9px; align-items:baseline; }
.model-section-head > div > span { color:var(--wb-text); font-size:15px; font-weight:900; }
.model-section-head small { color:var(--wb-muted); font-size:11px; }
.model-section-head input { width:100%; min-height:42px; border:1px solid var(--wb-line); border-radius:6px; color:var(--wb-text); background:#15111e; }
.model-native-select { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.model-family-tabs { padding:9px 12px; display:flex; gap:7px; overflow-x:auto; border-bottom:1px solid var(--wb-line); scrollbar-width:thin; }
.model-family-tabs button { min-width:54px; min-height:38px; padding:0 13px; border:1px solid transparent; border-radius:5px; color:var(--wb-muted); background:transparent; font:inherit; font-size:13px; font-weight:800; cursor:pointer; white-space:nowrap; }
.model-family-tabs button:hover { color:#fff; background:#1c1728; }
.model-family-tabs button.active { color:#fff; border-color:#6d4b9e; background:#392451; }
.model-card-list { max-height:420px; overflow:auto; scrollbar-color:#695084 #15111e; }
.model-option-card { width:100%; min-height:82px; padding:12px 14px; border:0; border-bottom:1px solid #2a2336; border-radius:0; display:grid; grid-template-columns:20px minmax(0,1fr) 150px; gap:12px; align-items:center; color:var(--wb-text); text-align:left; background:#100d18; cursor:pointer; }
.model-option-card:last-child { border-bottom:0; }
.model-option-card:hover { background:#191322; }
.model-option-card.selected { background:#2a1e3c; box-shadow:inset 3px 0 0 var(--wb-purple); }
.model-choice-dot { width:17px; height:17px; border:2px solid #857798; border-radius:50%; position:relative; }
.model-option-card.selected .model-choice-dot { border-color:#a889ff; }
.model-option-card.selected .model-choice-dot::after { content:""; position:absolute; inset:3px; border-radius:50%; background:#a889ff; }
.model-option-copy { min-width:0; display:flex; flex-direction:column; gap:7px; }
.model-option-copy > strong { overflow:hidden; color:#f7f3ff; font-size:14px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.model-badges { display:flex; gap:5px; flex-wrap:wrap; }
.model-badges > span { padding:2px 6px; border:1px solid #493957; border-radius:4px; color:#c5b9d2; background:#18131f; font-size:10px; font-weight:750; }
.model-badges .face-safe { color:#8df0c1; border-color:#28694f; background:#102a21; }
.model-option-price { min-width:0; padding:7px 10px; border-left:1px solid #594176; text-align:right; display:flex; flex-direction:column; gap:2px; }
.model-option-price small { color:var(--wb-muted); font-size:10px; }
.model-option-price strong { color:var(--wb-gold); font-size:17px; font-variant-numeric:tabular-nums; }
.model-option-price span { color:#d4cbdd; font-size:11px; }
.model-list-empty { padding:34px 16px; color:var(--wb-muted); text-align:center; }
.selected-model-summary { margin:10px; padding:12px 14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; border:1px solid #6a4a96; border-radius:6px; background:#1d152a; }
.selected-model-summary > div:first-child { min-width:0; display:flex; flex-direction:column; gap:4px; }
.selected-model-summary span { color:var(--wb-muted); font-size:11px; }
.selected-model-summary #selectedModelName { overflow:hidden; color:#fff; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.selected-model-price { text-align:right; display:grid; grid-template-columns:auto auto; column-gap:10px; align-items:baseline; }
.selected-model-price > span { grid-column:1/-1; }
.selected-model-price strong { color:var(--wb-gold); font-size:22px; font-variant-numeric:tabular-nums; }
.selected-model-price small { color:#ddd2e9; font-size:12px; }
.workspace-shell #modelHint { display:block; padding:0 12px 12px; color:#c5b9d2; font-size:11px; }
.workspace-shell textarea,
.workspace-shell input,
.workspace-shell select { color:var(--wb-text); background:#100d18; border-color:var(--wb-line); }
.workspace-shell textarea::placeholder,
.workspace-shell input::placeholder { color:#83798f; }
.workspace-shell .prompt-wrap > span,
.workspace-shell .advanced-row label > span { color:#d8cee5; font-weight:850; }
.workspace-shell #prompt { min-height:150px; border-radius:7px; }
.workspace-shell .asset-panel { border:1px solid var(--wb-line); border-radius:7px; background:#15121d; }
.workspace-shell .asset-btn { min-height:66px; border-radius:6px; color:#efe9f7; background:#241a33; border-color:#493269; }
.workspace-shell .asset-btn:hover { background:#302044; }
.workspace-shell .drop-zone { min-height:58px; border-color:#317782; border-radius:6px; color:#bcebf0; background:#102129; }
.workspace-shell .advanced-row > label { border:1px solid var(--wb-line); border-radius:7px; background:#15121d; }
.workspace-shell #generateBtn { min-height:52px; margin-top:14px; color:#fff; font-size:16px; box-shadow:0 12px 30px rgba(109,63,216,.2); }
.workspace-shell .result-preview { min-height:250px; border:1px solid var(--wb-line); border-radius:7px; background:#090711; }
.workspace-shell .result-meta { gap:8px; }
.workspace-shell .result-meta > div { border-radius:6px; background:#191521; border-color:#30283c; }
.workspace-shell .result-save-notice { color:#f8d777; background:#281f10; border-color:#6f5620; }
.workspace-shell .task-panel { border-top-color:var(--wb-line); }
.workspace-shell .task-filters { gap:5px; }
.workspace-shell .task-filter { min-height:40px; border-radius:5px; }
.workspace-shell .workspace-history { grid-column:1/-1; margin:0; padding:24px 0 0; border-top:1px solid var(--wb-line); border-radius:0; background:transparent; scroll-margin-top:88px; }
.workspace-history .task-head h3 { font-size:20px; }
.workspace-shell .workspace-history .task-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 4px; }
.workspace-history .task-filter { padding:0 14px; gap:8px; }
.workspace-shell .workspace-history .task-list { max-height:none; overflow:visible; padding:0; gap:0; }
.workspace-shell .workspace-history .task-item { min-width:0; grid-template-columns:minmax(0,1fr) auto; gap:20px; padding:16px 0; border:0; border-bottom:1px solid var(--wb-line); border-radius:0; background:transparent; }
.workspace-shell .workspace-history .task-item:hover { transform:none; background:rgba(139,92,246,.035); }
.workspace-history .task-main { min-width:0; grid-template-columns:56px minmax(0,1fr) 150px; gap:16px; }
.workspace-history .task-thumb { width:56px; height:56px; border-radius:6px; }
.workspace-history .task-copy { min-width:0; gap:5px; }
.workspace-history .task-copy > b { font-size:14px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.workspace-history .task-copy > small { margin:0; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.workspace-history .task-reason { margin:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.workspace-history .task-state { min-width:0; gap:8px; }
.workspace-history .task-actions { gap:8px; }
.workspace-history .task-download,
.workspace-history .task-reuse { min-width:64px; min-height:40px; border-radius:6px; }
.workspace-history .task-pager { margin-top:14px; }
.workspace-shell .result-meta > div { min-width:0; }
.workspace-shell .result-meta b { white-space:normal; overflow-wrap:anywhere; line-height:1.5; }

@media (max-width: 1180px) {
  .workspace-shell .workbench-header { grid-template-columns:auto 1fr; gap:14px; padding:10px 18px; }
  .workspace-primary-nav { order:3; grid-column:1/-1; justify-content:flex-start; flex-wrap:wrap; overflow:visible; }
  .workspace-account-actions { justify-self:end; }
  .account-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .account-strip:has(#workspaceOrgBalanceCard.hidden) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .workbench-redeem { grid-column:1/-1; }
}
@media (max-width: 980px) {
  .workspace-shell .creator-shell { grid-template-columns:minmax(0,1fr); }
  .workspace-shell .result-panel { position:static; max-height:none; }
  .workspace-shell .creator-panel { border-right:0; padding:0; }
  .workspace-shell .result-panel { padding-top:24px; border-top:1px solid var(--wb-line); }
}
@media (max-width: 760px) {
  .workspace-shell .workbench-main { padding:0 12px 28px; }
  .workspace-shell .workbench-header { position:static; padding:9px 12px; }
  .workspace-shell .brand small { display:none; }
  .workspace-account-actions #changePassBtn { display:none !important; }
  .workspace-shell .workbench-header .workspace-primary-nav { justify-content:center; gap:4px; }
  .workspace-shell .workbench-header .workspace-primary-nav a,
  .workspace-shell .workbench-header .workspace-primary-nav button { min-height:44px; padding:0 6px; font-size:12px; }
  .workspace-shell .mode-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .account-strip { width:calc(100% + 24px); margin:0 -12px 16px; padding:8px 12px; grid-template-columns:1fr 1fr; gap:5px; }
  .account-strip:has(#workspaceOrgBalanceCard.hidden) { grid-template-columns:1fr 1fr; }
  .account-identity,
  .balance-tile,
  .billing-source { padding:10px; }
  .billing-source { grid-column:1/-1; }
  .workbench-redeem { grid-template-columns:1fr auto; }
  .workbench-redeem select { grid-column:1/-1; }
  .workspace-shell .creator-panel { padding:0; }
  .workspace-shell .result-panel { padding:24px 0 0; }
  .workspace-shell .creator-shell { gap:24px; }
  .workspace-shell .workspace-history { padding-top:20px; }
  .workspace-shell .workspace-history .task-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  .workspace-history .task-filter { padding:0 6px; gap:4px; }
  .workspace-shell .workspace-history .task-item { grid-template-columns:minmax(0,1fr); gap:10px; }
  .workspace-history .task-main { grid-template-columns:44px minmax(0,1fr); gap:10px; align-items:start; }
  .workspace-history .task-thumb { width:44px; height:44px; }
  .workspace-history .task-state { grid-column:2; justify-items:start; }
  .workspace-history .task-actions { grid-column:1; justify-self:start; margin-left:54px; }
  .workspace-history .task-kicker { flex-wrap:wrap; }
  .model-picker-dialog .model-family-tabs { gap:3px; padding:8px; }
  .model-picker-dialog .model-family-tabs button { padding:0 9px; }
  .model-section-head { grid-template-columns:1fr; }
  .model-option-card { grid-template-columns:18px minmax(0,1fr); }
  .model-option-price { grid-column:2; padding:7px 0 0; border-left:0; border-top:1px solid #4a375e; text-align:left; display:grid; grid-template-columns:auto auto; gap:5px 9px; }
  .model-option-price small { grid-column:1/-1; }
  .selected-model-summary { grid-template-columns:1fr; }
  .selected-model-price { text-align:left; justify-content:start; }
  .workspace-shell #prompt { min-height:130px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell *, .workspace-shell *::before, .workspace-shell *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
/* END ZIYUAI WORKBENCH V3 */

.workspace-shell.layout-v2 { background:#0e0b16; background-image:none; }
.layout-v2 .workbench-main { padding:0 24px 28px; }
.layout-v2 .account-strip { width:calc(100% + 48px); margin:0 -24px 0; padding:8px 24px; }
.layout-v2 #redeemBtn { white-space:nowrap; padding:10px 14px; }
.layout-v2 .v2-mode-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; width:100%; margin:0; padding:0 0 10px; border:0; border-radius:0; background:transparent; }
.layout-v2 .v2-mode-tabs button { min-height:38px; padding:7px 4px; border-radius:6px; font-size:12px; }
.workspace-shell.layout-v2 .creator-shell { max-width:1800px; grid-template-columns:minmax(290px,.92fr) minmax(380px,1.05fr) minmax(420px,1.15fr); gap:20px; padding:20px 0 0; }
.layout-v2 .visible-models { min-width:0; padding-right:20px; border-right:1px solid var(--wb-line); }
.workspace-shell.layout-v2 .creator-panel { padding:0 20px 0 0; border-right:1px solid var(--wb-line); }
.workspace-shell.layout-v2 .result-panel { padding:0; border:0; gap:0; }
.layout-v2 .v2-column-heading,.layout-v2 .workbench-title,.layout-v2 .result-panel > .v2-result-display > .section-title { display:flex; justify-content:space-between; align-items:center; min-height:30px; margin:0 0 14px; gap:10px; }
.layout-v2 .v2-column-heading h2,.layout-v2 .workbench-title h2,.layout-v2 .result-panel h2 { margin:0; font-size:18px; line-height:1.4; }
.layout-v2 .v2-column-heading small { color:var(--wb-muted); font-size:12px; }
.layout-v2 .model-picker-search { padding:0; }
.layout-v2 .model-picker-search input { width:100%; height:40px; }
.layout-v2 .model-family-tabs { padding:10px 0; flex-wrap:wrap; overflow:visible; gap:4px; }
.layout-v2 .model-family-tabs button { min-width:0; min-height:34px; padding:0 9px; font-size:12px; }
.layout-v2 #modelCardList { max-height:none; overflow:visible; display:grid; gap:6px; padding-top:8px; }
.layout-v2 .model-option-card { grid-template-columns:16px minmax(0,1fr); column-gap:10px; row-gap:6px; min-height:0; padding:10px; border:1px solid transparent; border-radius:6px; background:#17121f; align-items:start; }
.layout-v2 .model-option-card[hidden] { display:none; }
.layout-v2 .model-option-card.selected { border-color:#805abd; background:#2b203c; box-shadow:inset 3px 0 #aa7bf4; }
.layout-v2 .model-option-card:hover { border-color:#6b4e88; background:#251b31; }
.layout-v2 .model-choice-dot { width:15px; height:15px; margin-top:3px; }
.layout-v2 .model-option-copy { gap:6px; }
.layout-v2 .model-option-copy > strong { white-space:normal; overflow-wrap:anywhere; font-size:13px; line-height:1.45; }
.layout-v2 .model-badges { gap:4px; }
.layout-v2 .model-badges > span { font-size:11px; padding:1px 4px; }
.layout-v2 .model-option-price { grid-column:2; display:flex; flex-direction:row; flex-wrap:wrap; align-items:baseline; text-align:left; gap:4px 8px; padding:0; border:0; }
.layout-v2 .model-option-price small { order:1; font-size:11px; }
.layout-v2 .model-option-price strong { font-size:16px; }
.layout-v2 .model-option-price span { font-size:11px; }
.layout-v2 .v2-model-pager { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-top:12px; color:var(--wb-muted); font-size:12px; }
.layout-v2 .v2-model-pager button { flex:none; width:36px; height:36px; border:1px solid var(--wb-line); border-radius:6px; color:var(--wb-text); background:#20172c; font-size:24px; cursor:pointer; }
.layout-v2 .v2-model-pager button:disabled { opacity:.35; cursor:default; }
.workspace-shell.layout-v2 .model-field { margin:0 0 14px; border:0; padding:0; }
.workspace-shell.layout-v2 .selected-model-summary { margin:0; padding:10px 12px; grid-template-columns:1fr; gap:8px; }
.layout-v2 #selectedModelName { font-size:13px; }
.layout-v2 .selected-model-price { text-align:left; grid-template-columns:auto auto 1fr; align-items:baseline; gap:8px; }
.layout-v2 .selected-model-price > span { grid-column:auto; }
.layout-v2 .selected-model-price strong { font-size:20px; }
.workspace-shell.layout-v2 #modelHint { padding:6px 0 0; font-size:11px; line-height:1.6; }
.workspace-shell.layout-v2 .prompt-wrap { margin:0 0 14px; }
.workspace-shell.layout-v2 #prompt { min-height:150px; height:150px; font-size:14px; line-height:1.7; }
.workspace-shell.layout-v2 .asset-panel { margin:0; padding:14px 0; border:0; border-top:1px solid var(--wb-line); border-bottom:1px solid var(--wb-line); border-radius:0; background:transparent; }
.layout-v2 .asset-head { align-items:start; gap:8px; }
.layout-v2 .asset-head h3 { font-size:15px; }
.layout-v2 .asset-head p { font-size:11px; line-height:1.6; margin:4px 0 0; }
.layout-v2 .asset-head-actions { gap:5px; flex:none; }
.workspace-shell.layout-v2 .asset-head-actions .btn { min-height:34px; padding:6px 8px; font-size:12px; }
.layout-v2 .asset-actions { gap:7px; }
.workspace-shell.layout-v2 .asset-btn { min-height:57px; font-size:13px; padding:8px; }
.workspace-shell.layout-v2 .asset-btn b { font-size:12px; }
.workspace-shell.layout-v2 .drop-zone { margin:8px 0; min-height:40px; padding:10px; font-size:12px; }
.layout-v2 .asset-grid:has(.asset-empty) { display:none; }
.layout-v2 .asset-panel .inline-row { gap:6px; }
.layout-v2 .asset-panel .inline-row input { min-width:0; height:36px; padding:8px 10px; font-size:12px; }
.workspace-shell.layout-v2 .asset-panel .inline-row .btn { min-height:36px; padding:8px; white-space:nowrap; font-size:12px; }
.layout-v2 .advanced-row { margin:14px 0 0; gap:10px; }
.workspace-shell.layout-v2 .advanced-row > label { padding:10px; }
.layout-v2 .advanced-row label > span { font-size:12px; }
.workspace-shell.layout-v2 .advanced-row select { height:36px; padding:6px 10px; font-size:13px; line-height:20px; }
.workspace-shell.layout-v2 #generateBtn { min-height:46px; margin-top:12px; border-radius:6px; }
.layout-v2 .v2-result-display { scroll-margin-top:76px; }
.workspace-shell.layout-v2 .result-preview { width:100%; min-height:0; aspect-ratio:16/9; height:auto; overflow:hidden; display:grid; grid-template-rows:minmax(0,1fr); grid-template-columns:minmax(0,1fr); place-items:center; }
.workspace-shell.layout-v2 .result-preview:has(> img,> video) { aspect-ratio:auto; }
.workspace-shell.layout-v2 .result-preview > img,.workspace-shell.layout-v2 .result-preview > video { display:block; min-height:0; min-width:0; width:100%; height:auto; max-height:min(70dvh,640px); object-fit:contain; }
.workspace-shell.layout-v2 .result-preview:has(.result-error) { height:auto; min-height:180px; overflow:visible; }
.layout-v2 .result-error { min-width:0; padding:18px; }
.layout-v2 .result-error p { font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.workspace-shell.layout-v2 .result-save-notice { margin:7px 0; border:0; border-radius:0; background:transparent; font-size:11px; padding:0; line-height:1.5; text-align:left; }
.layout-v2 .progress-strip { margin:8px 0; }
.layout-v2 .progress-row { font-size:11px; }
.layout-v2 .progress-track { height:4px; }
.workspace-shell.layout-v2 .result-meta { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:8px 0; }
.workspace-shell.layout-v2 .result-meta > div { border:0; border-radius:0; border-left:2px solid var(--wb-line); min-height:0; padding:0 8px; background:transparent; }
.layout-v2 .result-meta > div:last-child { grid-column:1/-1; display:flex; gap:8px; align-items:baseline; padding-top:4px; }
.layout-v2 .result-meta span { font-size:11px; }
.layout-v2 .result-meta b { font-size:12px; line-height:1.4; }
.layout-v2 .result-meta > div:last-child span { flex:none; }
.layout-v2 .v2-result-actions { display:flex; gap:7px; margin:10px 0 0; padding-bottom:14px; }
.workspace-shell.layout-v2 .v2-result-actions .btn { width:auto; flex:1; min-height:34px; padding:7px 5px; margin:0; font-size:12px; border-radius:6px; }
.workspace-shell.layout-v2 .workspace-history { margin:0; padding:14px 0 0; border-top:1px solid var(--wb-line); scroll-margin-top:76px; }
.layout-v2 .workspace-history .task-head { margin:0 0 10px; }
.layout-v2 .workspace-history .task-head h3 { font-size:15px; }
.workspace-shell.layout-v2 #refreshJobsBtn { min-height:30px; padding:5px 9px; font-size:12px; }
.workspace-shell.layout-v2 .workspace-history .task-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.workspace-shell.layout-v2 .workspace-history .task-filter { height:32px; min-height:32px; gap:4px; padding:0 4px; font-size:11px; }
.workspace-shell.layout-v2 .workspace-history .task-list { gap:0; overflow:visible; max-height:none; }
.workspace-shell.layout-v2 .workspace-history .task-item { grid-template-columns:minmax(0,1fr); padding:9px 6px; gap:0; border-bottom:1px solid var(--wb-line); border-left:3px solid transparent; }
.workspace-shell.layout-v2 .workspace-history .task-item.v2-selected-task { border-left-color:#a578ef; background:#21182e; }
.layout-v2 .workspace-history .task-main { grid-template-columns:36px minmax(0,1fr) auto; gap:8px; padding:0; align-items:center; }
.layout-v2 .workspace-history .task-thumb { width:36px; height:42px; }
.layout-v2 .workspace-history .task-copy { gap:4px; }
.layout-v2 .workspace-history .task-copy > b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; line-height:1.5; }
.layout-v2 .workspace-history .task-copy > small,.layout-v2 .workspace-history .task-reason { display:none; }
.layout-v2 .workspace-history .task-state { grid-column:auto; gap:3px; }
.layout-v2 .workspace-history .task-state em { font-size:11px; white-space:nowrap; }
.layout-v2 .workspace-history .task-result { font-size:11px; }
.layout-v2 .workspace-history .task-kicker { gap:6px; }
.layout-v2 .workspace-history .task-kicker strong,.layout-v2 .workspace-history .task-kicker small { font-size:10px; }
.layout-v2 .workspace-history .task-actions { display:none; }
.layout-v2 .task-pager { margin-top:10px; gap:8px; }
.layout-v2 .task-page-summary { font-size:11px; }
.layout-v2 .task-page-jump { display:none; }
.layout-v2 .task-page-icon { width:30px; height:30px; border-radius:5px; }
@media (max-width:1180px) {
  .workspace-shell.layout-v2 .creator-shell { grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr); }
  .workspace-shell.layout-v2 .creator-panel { padding-right:0; border-right:0; }
  .workspace-shell.layout-v2 .result-panel { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:20px; padding-top:20px; border-top:1px solid var(--wb-line); }
  .workspace-shell.layout-v2 .workspace-history { padding-top:0; border-top:0; }
  .layout-v2 .account-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .workspace-shell.layout-v2 .workbench-main { padding:0 12px 24px; }
  .layout-v2 .account-strip { width:calc(100% + 24px); margin:0 -12px; padding:8px 12px; grid-template-columns:1fr 1fr; }
  .layout-v2 .v2-mode-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .workspace-shell.layout-v2 .creator-shell { grid-template-columns:minmax(0,1fr); gap:22px; padding-top:18px; }
  .workspace-shell.layout-v2 .visible-models,.workspace-shell.layout-v2 .creator-panel { padding:0; border:0; }
  .workspace-shell.layout-v2 .creator-panel { border-top:1px solid var(--wb-line); padding-top:18px; }
  .workspace-shell.layout-v2 .result-panel { display:block; }
  .workspace-shell.layout-v2 .workspace-history { border-top:1px solid var(--wb-line); padding-top:14px; }
  .layout-v2 .task-pager { flex-direction:row; align-items:center; }
  .layout-v2 .task-page-actions { flex-wrap:nowrap; }
}

.workspace-shell.platform { --p-bg:#141418; --p-surface:#1b1b22; --p-raised:#23232c; --p-line:#33333e; --p-text:#eeeef4; --p-muted:#a6a6b7; --p-accent:#b293f5; --p-accent-bg:#322747; --p-gold:#f1cd78; --p-green:#78d6b1; --wb-text:var(--p-text); --wb-muted:var(--p-muted); --wb-line:var(--p-line); --wb-line-strong:#736082; --wb-surface:var(--p-surface); --wb-surface-2:var(--p-raised); --wb-gold:var(--p-gold); color:var(--p-text); background:var(--p-bg); min-height:100dvh; padding-left:184px; font-family:'Segoe UI','Microsoft YaHei',sans-serif; font-size:14px; line-height:1.5; letter-spacing:0; color-scheme:dark; }
.workspace-shell.platform.p-light { --p-bg:#f6f6f9; --p-surface:#fff; --p-raised:#eeeef4; --p-line:#dcdce6; --p-text:#242432; --p-muted:#626276; --p-accent:#7147c9; --p-accent-bg:#eee7fb; --p-gold:#896112; --p-green:#17785b; color-scheme:light; }
.platform [hidden] { display:none!important; }
.platform * { letter-spacing:0; }
.platform svg { width:18px; height:18px; flex:none; vertical-align:middle; }
.platform :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--p-accent); outline-offset:3px; }
.platform :is(input,select,textarea) { color:var(--p-text); background:var(--p-surface); border:1px solid var(--p-line); border-radius:6px; font:inherit; }
.platform input::placeholder,.platform textarea::placeholder { color:var(--p-muted); opacity:.85; }
.platform button,.platform a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.platform button { cursor:pointer; }
.platform button:disabled { opacity:.45; cursor:default; }
.p-sidebar { position:fixed; inset:0 auto 0 0; z-index:60; width:184px; background:#101015; color:#d7d6e2; border-right:1px solid #292832; display:flex; flex-direction:column; }
.p-nav-scrim { display:none; }
.p-brand { height:76px; display:flex; align-items:center; gap:10px; padding:18px; color:#fff; text-decoration:none; font-size:19px; font-weight:750; }
.p-brand-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:8px; background:#8157d6; color:#fff; font-size:21px; }
.p-brand small { display:block; color:#9390a5; font-size:11px; font-weight:400; margin-top:1px; }
.p-sidebar nav { display:grid; gap:5px; padding:12px; }
.p-nav-label { padding:8px 12px; font-size:11px; color:#8c899c; }
.p-sidebar nav > :is(a,button) { min-width:0; display:flex; align-items:center; gap:10px; min-height:42px; border:0; padding:10px 12px; color:#aaa8ba; background:transparent; text-decoration:none; border-radius:6px; font:inherit; font-size:13px; text-align:left; }
.p-sidebar nav > :is(a,button):hover { color:#fff; background:#23212c; }
.p-sidebar nav > a.active { color:#ece4ff; background:#342947; box-shadow:inset 3px 0 #b497f5; }
.p-nav-count { margin-left:auto; font-size:10px; border-radius:4px; background:#51425f; padding:0 4px; }
.p-sidebar [data-existing] svg:last-child { margin-left:auto; width:13px; height:13px; color:#777386; }
.p-nav-separator { margin-top:24px; border-top:1px solid #292832; padding-top:20px; }
.p-sidebar-footer { margin-top:auto; padding:16px 12px; border-top:1px solid #292832; }
.p-preview-label { display:block; margin:0 8px 14px; color:#b3a1cd; font-size:11px; }
.p-sidebar-footer button { width:100%; display:flex; align-items:center; gap:8px; padding:6px; border:0; color:#e6e5ed; background:transparent; text-align:left; font:inherit; font-size:12px; }
.p-sidebar-footer small { display:block; font-size:10px; color:#9793a7; margin-top:4px; }
.p-user-avatar { width:32px; height:32px; display:inline-grid; place-items:center; flex:none; background:#48375d; color:#e1d2ff; border-radius:50%; font-size:13px; }
.p-sidebar-footer svg { width:13px; margin-left:auto; }
.workspace-shell.platform .workbench-header { position:sticky; top:0; z-index:40; display:flex; justify-content:space-between; gap:16px; min-height:64px; height:auto; padding:12px 24px; background:var(--p-bg); border-bottom:1px solid var(--p-line); backdrop-filter:none; }
.platform .workbench-header > :is(.brand,.workspace-primary-nav,.workspace-account-actions) { display:none; }
.p-header-title { display:flex; align-items:center; gap:10px; min-width:0; font-weight:600; }
.p-header-title small { color:var(--p-accent); background:var(--p-accent-bg); border:1px solid color-mix(in srgb,var(--p-accent) 30%,transparent); border-radius:4px; padding:2px 6px; font-size:10px; white-space:nowrap; }
.p-header-account { display:flex; align-items:center; gap:18px; }
.p-header-account > span { display:flex; align-items:baseline; gap:6px; font-size:12px; color:var(--p-muted); white-space:nowrap; }
.p-header-account b { font-size:16px; color:var(--p-text); font-weight:650; font-variant-numeric:tabular-nums; }
.p-header-account small { font-size:10px; }
.platform .p-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:8px 12px; border:1px solid var(--p-line); border-radius:6px; color:var(--p-text); background:var(--p-surface); font:inherit; font-size:12px; text-decoration:none; white-space:nowrap; }
.platform .p-btn:hover { background:var(--p-raised); border-color:var(--p-muted); }
.platform .p-btn.p-primary { background:#8256d5; border-color:#9469e5; color:#fff; }
.platform .p-btn.p-primary:hover { background:#9163e4; }
.platform .p-icon-btn { width:34px; height:34px; padding:0; border:1px solid var(--p-line); border-radius:5px; display:inline-grid; place-items:center; flex:none; background:transparent; color:var(--p-muted); }
.platform .p-icon-btn:hover { color:var(--p-text); background:var(--p-raised); }
.platform .p-menu-btn { display:none; }
.platform .p-text-link { color:var(--p-accent); font-size:12px; text-decoration:none; white-space:nowrap; }
.platform .p-text-link:hover { text-decoration:underline; }
.p-muted { color:var(--p-muted); }
.workspace-shell.platform .workbench-main { max-width:1900px; margin:0 auto; padding:0 24px 32px; }
.platform .account-strip { display:none; }
.p-work-title { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 0 18px; }
.p-work-title > div { display:flex; align-items:baseline; gap:14px; }
.p-work-title h1 { margin:0; font-size:22px; line-height:1.5; font-weight:650; }
.p-work-title .p-muted { font-size:12px; }
.p-billing-note { display:flex; align-items:center; gap:6px; color:var(--p-muted); font-size:11px; }
.p-billing-note svg { width:14px; height:14px; color:var(--p-green); }
.workspace-shell.platform .creator-shell { max-width:none; grid-template-columns:minmax(230px,.94fr) minmax(300px,1.07fr) minmax(330px,1.15fr); gap:18px; padding:0; }
.workspace-shell.platform :is(.creator-panel,.visible-models) { padding-right:18px; border-color:var(--p-line); }
.platform :is(.v2-column-heading,.workbench-title,.result-panel>.v2-result-display>.section-title) { margin-bottom:12px; }
.workspace-shell.platform :is(.v2-column-heading h2,.workbench-title h2,.result-panel h2) { font-size:14px; font-weight:650; }
.workspace-shell.platform .v2-mode-tabs button { font-size:12px; background:var(--p-surface); color:var(--p-muted); box-shadow:none; }
.workspace-shell.platform .v2-mode-tabs button.active { border-color:#9774c9; background:var(--p-accent-bg); color:var(--p-text); }
.workspace-shell.platform .model-picker-search input { height:37px; font-size:12px; }
.workspace-shell.platform .model-family-tabs { gap:2px; padding:8px 0; border-color:var(--p-line); }
.workspace-shell.platform .model-family-tabs button { min-height:31px; padding:0 7px; color:var(--p-muted); font-size:12px; font-weight:500; }
.workspace-shell.platform .model-family-tabs button.active { color:var(--p-accent); background:var(--p-accent-bg); border-color:transparent; }
.workspace-shell.platform #modelCardList { gap:6px; }
.workspace-shell.platform .model-option-card { padding:10px; background:var(--p-surface); border:1px solid transparent; row-gap:6px; }
.workspace-shell.platform .model-option-card.selected { background:var(--p-accent-bg); border-color:#8462ae; box-shadow:inset 3px 0 #b393ed; }
.workspace-shell.platform .model-option-card:hover { border-color:#806498; }
.workspace-shell.platform .model-option-copy > strong { color:var(--p-text); font-size:13px; font-weight:550; line-height:1.6; }
.workspace-shell.platform .model-badges > span { color:var(--p-muted); background:var(--p-raised); border-color:var(--p-line); font-weight:400; font-size:11px; }
.workspace-shell.platform .model-badges .face-safe { color:var(--p-green); border-color:color-mix(in srgb,var(--p-green) 32%,transparent); background:color-mix(in srgb,var(--p-green) 7%,transparent); }
.workspace-shell.platform .model-option-price strong { color:var(--p-gold); font-size:16px; font-weight:650; }
.workspace-shell.platform .model-option-price small { order:0; color:var(--p-text); font-size:12px; font-weight:500; }
.workspace-shell.platform .model-option-price span { color:var(--p-muted); font-size:11px; }
.workspace-shell.platform .v2-model-pager button { height:32px; width:32px; background:var(--p-surface); border-color:var(--p-line); }
.workspace-shell.platform .selected-model-summary { border-radius:6px; border:1px solid #685080; background:var(--p-accent-bg); padding:10px 12px; gap:7px; }
.workspace-shell.platform .selected-model-summary #selectedModelName { color:var(--p-text); font-size:12px; font-weight:600; line-height:1.6; }
.workspace-shell.platform .selected-model-price strong { color:var(--p-gold); font-size:21px; font-weight:650; }
.workspace-shell.platform .selected-model-price small { color:var(--p-muted); font-size:11px; }
.workspace-shell.platform #modelHint { color:var(--p-muted); font-size:11px; font-weight:400; }
.workspace-shell.platform #prompt { min-height:154px; height:154px; padding:12px; background:var(--p-surface); color:var(--p-text); font-size:13px; line-height:1.75; border:1px solid var(--p-line); }
.workspace-shell.platform :is(.prompt-wrap > span,.advanced-row label > span) { color:var(--p-text); font-size:12px; font-weight:500; }
.workspace-shell.platform .asset-panel { padding:12px 0; border-color:var(--p-line); }
.workspace-shell.platform .asset-head h3 { font-size:13px; font-weight:600; color:var(--p-text); }
.workspace-shell.platform .asset-head p { font-size:10px; color:var(--p-muted); }
.workspace-shell.platform .asset-head-actions .btn { font-size:11px; padding:6px; }
.workspace-shell.platform .asset-btn { background:var(--p-surface); color:var(--p-text); border:1px solid var(--p-line); font-size:12px; font-weight:500; min-height:54px; }
.workspace-shell.platform .asset-btn b { color:var(--p-muted); font-size:11px; }
.workspace-shell.platform .drop-zone { min-height:36px; margin:7px 0; border-color:#45666b; background:color-mix(in srgb,#64bac0 6%,var(--p-bg)); color:#89c5ca; font-size:11px; }
.workspace-shell.platform.p-light .drop-zone { color:#25656e; }
.workspace-shell.platform.p-light :is(.task-result,.asset-card em,#durationValue) { color:#7147c9; }
.workspace-shell.platform .asset-panel .inline-row input { color:var(--p-text); background:var(--p-surface); border-color:var(--p-line); font-size:11px; padding:7px 9px; height:34px; border-radius:6px; }
.workspace-shell.platform .btn.ghost { background:var(--p-surface); color:var(--p-text); border-color:var(--p-line); border-radius:6px; box-shadow:none; font-weight:500; }
.workspace-shell.platform .advanced-row { margin-top:12px; }
.workspace-shell.platform .advanced-row > label { background:var(--p-surface); border-color:var(--p-line); padding:8px; }
.workspace-shell.platform .advanced-row select { min-height:34px; height:34px; background:var(--p-bg); border-color:var(--p-line); border-radius:5px; }
.workspace-shell.platform #generateBtn { margin-top:10px; min-height:44px; background:#8256d5; border:1px solid #9469e5; border-radius:6px; font-size:14px; font-weight:600; box-shadow:none; }
.workspace-shell.platform .result-preview { height:auto; background:#0e0e13; border-color:var(--p-line); }
.workspace-shell.platform .result-preview:has(.result-error) { height:auto; }
.workspace-shell.platform .result-save-notice { color:var(--p-muted); font-size:10px; }
.workspace-shell.platform .result-meta b { color:var(--p-text); font-size:11px; font-weight:550; }
.workspace-shell.platform .result-meta span { color:var(--p-muted); font-size:10px; }
.workspace-shell.platform .progress-row { color:var(--p-muted); font-size:10px; }
.workspace-shell.platform .progress-row b { color:var(--p-green); font-weight:500; }
.workspace-shell.platform .progress-fill,.workspace-shell.platform #progressFill { background:#7aaea7; box-shadow:none; }
.workspace-shell.platform .v2-result-actions { gap:6px; }
.workspace-shell.platform .v2-result-actions .btn { font-size:11px; }
.workspace-shell.platform .workspace-history .task-head { display:flex; gap:8px; }
.workspace-shell.platform .workspace-history h3 { margin-right:auto; font-size:13px; font-weight:600; }
.workspace-shell.platform .workspace-history :is(.task-filters,.task-pager) { display:none; }
.workspace-shell.platform .workspace-history .task-item { padding:10px 6px; background:transparent; border-color:var(--p-line); border-left-color:transparent; }
.workspace-shell.platform .workspace-history .task-item.v2-selected-task { background:var(--p-accent-bg); border-left-color:var(--p-accent); }
.workspace-shell.platform .workspace-history .task-copy > b { color:var(--p-text); font-size:11px; font-weight:500; }
.workspace-shell.platform .workspace-history .task-state em { font-size:10px; }
.workspace-shell.platform .workspace-history .completed .task-state em { color:var(--p-green); }
.workspace-shell.platform .workspace-history .failed .task-state em { color:#f1a7a1; }
.workspace-shell.platform .workspace-history .processing .task-state em { color:var(--p-gold); }
.workspace-shell.platform .workspace-history .task-kicker strong { border:0; padding:0; background:transparent; color:var(--p-muted); font-weight:400; }
.workspace-shell.platform .workspace-history .task-kicker small { color:var(--p-muted); }
.p-page { padding:26px 0 0; }
.p-page-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.p-page h1 { margin:0; font-size:25px; font-weight:650; line-height:1.45; }
.p-page-head p { margin:7px 0 0; font-size:12px; color:var(--p-muted); }
.p-command-row { display:flex; align-items:center; gap:8px; }
.p-status-tabs { display:flex; gap:24px; border-bottom:1px solid var(--p-line); }
.p-status-tabs button { display:flex; align-items:center; gap:8px; min-height:46px; padding:0 4px; font:inherit; font-size:13px; border:0; border-bottom:2px solid transparent; color:var(--p-muted); background:transparent; }
.p-status-tabs button[aria-selected=true] { color:var(--p-text); border-bottom-color:var(--p-accent); }
.p-status-tabs b { font-weight:500; font-size:11px; min-width:20px; text-align:center; color:var(--p-muted); background:var(--p-raised); border-radius:4px; padding:0 4px; }
.p-filter-bar { display:flex; align-items:center; gap:8px; margin:18px 0; }
.p-search { display:flex; align-items:center; gap:8px; flex:1; min-width:160px; min-height:36px; padding:0 10px; border:1px solid var(--p-line); background:var(--p-surface); border-radius:6px; color:var(--p-muted); }
.platform .p-search input { width:100%; min-width:0; height:35px; border:0; background:transparent; padding:6px 0; font-size:12px; outline-offset:0; }
.p-filter-bar select { height:36px; padding:0 9px; max-width:190px; min-width:105px; font-size:12px; }
.p-data-table { width:100%; border-top:1px solid var(--p-line); }
.p-batch-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 14px; font-size:12px; }
.platform .p-header-account .p-balance-status { flex-basis:100%; justify-content:flex-end; margin-top:-6px; font-size:10px; color:var(--p-muted); }
.platform .p-header-account { flex-wrap:wrap; }
.platform .p-header-account .p-balance-status[data-state="error"] { color:var(--p-gold); }
.platform #pRefreshBalance:disabled { opacity:.45; cursor:default; }
.p-batch-select { display:inline-flex; align-items:center; gap:8px; min-height:40px; cursor:pointer; }
.platform input.p-batch-checkbox,.platform #pBatchPage { width:18px; height:18px; min-height:18px; flex:none; padding:0; margin:0; accent-color:var(--p-accent); cursor:pointer; }
.platform input.p-batch-checkbox:disabled,.platform #pBatchPage:disabled { cursor:default; opacity:.4; }
.p-batch-bar #pBatchCount { color:var(--p-muted); font-variant-numeric:tabular-nums; }
.p-batch-bar #pBatchClear { margin-left:auto; }
.p-task-select-cell { display:flex; align-items:center; gap:12px; }
.p-task-select-cell .p-task-open { min-width:0; }
.p-batch-progress { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; padding:0 0 14px; color:var(--p-text); }
.p-batch-progress progress { width:160px; height:7px; accent-color:var(--p-accent); }
.p-batch-failures { padding:0 0 14px; font-size:12px; }
.p-batch-failures summary { cursor:pointer; color:var(--p-text); }
.p-batch-failures ul { max-height:180px; overflow:auto; padding:0; list-style:none; }
.p-batch-failures li { display:flex; flex-wrap:wrap; gap:6px 16px; padding:6px 0; overflow-wrap:anywhere; }
.p-batch-failures li span { color:var(--p-muted); }
.platform .p-batch-bar button:disabled { opacity:.45; cursor:default; }
.platform .p-batch-bar [hidden],.platform .p-batch-progress[hidden],.platform .p-batch-failures[hidden] { display:none; }
@media (max-width:600px) {
  .p-batch-bar { display:grid; grid-template-columns:1fr auto; gap:8px; }
  .p-batch-bar #pBatchCount { margin-left:auto; }
  .p-batch-bar #pBatchClear { margin-left:0; justify-self:start; }
  .p-batch-bar #pBatchDownload,.p-batch-bar #pBatchCancel { justify-self:end; }
  .p-batch-bar #pBatchCancel { grid-column:1/-1; }
  .platform .p-batch-bar .p-btn { min-height:40px; }
  .p-task-select-cell { gap:8px; }
}
.p-table-head,.p-task-row { display:grid; grid-template-columns:minmax(210px,1.75fr) minmax(175px,1.3fr) 70px 90px 91px 84px 34px; gap:14px; align-items:center; }
.p-table-head { min-height:40px; color:var(--p-muted); font-size:11px; border-bottom:1px solid var(--p-line); }
.p-table-head button { display:flex; align-items:center; gap:4px; padding:0; border:0; background:transparent; color:inherit; font:inherit; }
.p-table-head svg { width:13px; height:13px; }
.p-task-row { min-height:81px; border-bottom:1px solid var(--p-line); font-size:12px; }
.p-task-row:hover { background:var(--p-surface); }
.p-task-row > div { min-width:0; }
.platform .p-task-open { display:flex; gap:12px; align-items:center; width:100%; padding:10px 0; border:0; color:var(--p-text); text-align:left; background:transparent; font:inherit; }
.p-task-open img { width:44px; height:44px; flex:none; border-radius:5px; object-fit:cover; background:#16131e; }
.p-task-open > span { min-width:0; }
.p-task-open b { font-size:13px; font-weight:500; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.p-task-open small { display:block; color:var(--p-muted); font-family:'Segoe UI',monospace; font-variant-numeric:tabular-nums; font-size:10px; margin-top:4px; }
.p-model-cell { font-size:12px; overflow-wrap:anywhere; line-height:1.6; }
.p-model-cell small { display:block; color:var(--p-muted); margin-top:4px; font-size:10px; }
.p-source { display:flex; align-items:center; gap:5px; color:var(--p-muted); font-size:11px; }
.p-source svg { width:14px; height:14px; }
.p-date { font-size:12px; font-variant-numeric:tabular-nums; }
.p-date small { display:block; color:var(--p-muted); margin-top:4px; font-size:10px; }
.p-status { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; font-size:11px; color:var(--p-muted); }
.p-status::before { content:''; width:5px; height:5px; background:currentColor; border-radius:50%; }
.p-status.completed { color:var(--p-green); }
.p-status.processing { color:var(--p-gold); }
.p-status.failed { color:#e7a19c; }
.p-light .p-status.failed { color:#b34340; }
.p-numeric { text-align:right; font-variant-numeric:tabular-nums; }
.p-numeric b { font-size:13px; font-weight:550; }
.p-numeric small { display:block; color:var(--p-muted); font-size:10px; margin-top:4px; }
.p-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; color:var(--p-muted); font-size:12px; }
.p-pagination > div { display:flex; align-items:center; gap:12px; }
.p-pagination .p-icon-btn { width:30px; height:30px; }
.p-empty { padding:64px 20px; text-align:center; grid-column:1/-1; color:var(--p-muted); }
.p-empty > svg { width:32px; height:32px; }
.p-empty h2 { color:var(--p-text); font-size:16px; font-weight:550; margin:14px 0 18px; }
.platform .p-dialog { color:var(--p-text); background:var(--p-bg); border:1px solid var(--p-line); border-radius:8px; padding:0; box-shadow:0 20px 70px #0008; }
.platform .p-dialog::backdrop { background:#050508a8; }
.p-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--p-line); }
.p-dialog-head h2 { margin:0; font-size:18px; font-weight:600; }
.p-dialog-head small { display:block; color:var(--p-muted); font-size:11px; margin-top:6px; }
.platform .p-task-detail { position:fixed; inset:0 0 0 auto; margin:0; width:min(560px,100%); max-width:none; max-height:100dvh; height:100dvh; border-radius:0; border-width:0 0 0 1px; }
.p-task-detail[open] { display:flex; flex-direction:column; }
.p-detail-content { min-height:0; overflow-y:auto; padding:20px 24px; overscroll-behavior:contain; }
.p-detail-media { background:#0b0b10; border-radius:6px; min-height:180px; display:grid; place-items:center; }
.p-detail-media img { width:100%; height:auto; max-height:290px; object-fit:contain; display:block; }
.p-detail-placeholder { padding:28px; text-align:center; font-size:13px; }
.p-detail-placeholder > svg { width:28px; height:28px; color:#e7a19c; display:block; margin:0 auto 12px; }
.p-detail-placeholder p { line-height:1.8; overflow-wrap:anywhere; }
.p-detail-status { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0 22px; }
.p-detail-status > span:last-child { font-size:10px; color:var(--p-muted); }
.p-detail-content section { padding:0 0 18px; margin-bottom:18px; border-bottom:1px solid var(--p-line); }
.p-detail-content h3 { font-size:13px; font-weight:600; margin:0 0 12px; }
.p-full-prompt { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.9; color:var(--p-muted); user-select:text; }
.p-detail-content dl { display:grid; grid-template-columns:105px minmax(0,1fr); gap:12px; margin:0; font-size:12px; }
.p-detail-content dt { color:var(--p-muted); }
.p-detail-content dd { margin:0; overflow-wrap:anywhere; }
.p-detail-net { font-size:16px; font-weight:600; color:var(--p-gold); }
.p-detail-footer { margin-top:auto; display:flex; justify-content:flex-end; gap:8px; padding:16px 24px; border-top:1px solid var(--p-line); }
.platform .p-redeem-dialog { width:min(440px,calc(100% - 24px)); }
.p-redeem-dialog > p { margin:20px 24px 8px; font-size:12px; }
.p-redeem-dialog #pRedeemBody { padding:0 24px 24px; }
.platform .p-redeem-dialog .workbench-redeem { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.p-redeem-dialog select { order:-1; width:100%; }
.p-redeem-dialog #redeemBtn { min-height:40px; background:#8256d5; border-radius:6px; box-shadow:none; }
.p-asset-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding-top:12px; }
.p-asset { min-width:0; border:1px solid var(--p-line); border-radius:8px; overflow:hidden; background:var(--p-surface); }
.p-asset-media { height:170px; display:grid; place-items:center; background:#101016; }
.p-asset-media > img { width:100%; height:100%; object-fit:contain; }
.p-asset-media > svg { width:38px; height:38px; color:var(--p-muted); }
.p-asset-info { padding:14px; }
.p-asset-info b { display:block; font-size:13px; font-weight:550; overflow-wrap:anywhere; }
.p-asset-info small { display:block; margin:6px 0 14px; font-size:11px; color:var(--p-muted); }
.p-org-summary,.p-credit-overview { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--p-line); border-bottom:1px solid var(--p-line); padding:28px 0; gap:28px; }
.p-org-summary > div,.p-credit-overview > div { border-right:1px solid var(--p-line); }
.p-org-summary > div:last-child,.p-credit-overview > div:last-child { border-right:0; }
.p-org-summary span,.p-credit-overview span { color:var(--p-muted); font-size:12px; }
.p-org-summary strong,.p-credit-overview strong { display:block; font-size:32px; font-weight:600; margin-top:12px; font-variant-numeric:tabular-nums; }
.p-org-summary strong small,.p-credit-overview strong small { font-size:12px; color:var(--p-muted); margin-left:8px; font-weight:400; }
.p-org-summary .p-summary-text { font-size:18px; margin-top:20px; }
.p-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:32px 0 18px; }
.p-section-heading h2,.p-credit-policy h2 { font-size:16px; font-weight:600; margin:0; }
.p-member-head,.p-member-row { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:20px; align-items:center; }
.p-member-head { color:var(--p-muted); font-size:11px; padding:12px 0; border-bottom:1px solid var(--p-line); }
.p-member-row { padding:20px 0; border-bottom:1px solid var(--p-line); font-size:12px; }
.p-member-name { display:flex; align-items:center; gap:10px; }
.p-member-name small { display:block; color:var(--p-muted); margin-top:4px; font-size:10px; }
.p-credit-overview { grid-template-columns:1fr 1fr; }
.p-credit-overview p { color:var(--p-gold); font-size:12px; margin:8px 0 0; }
.p-credit-policy { padding:24px 0; border-bottom:1px solid var(--p-line); }
.p-credit-policy p { color:var(--p-text); font-size:13px; }
.p-credit-policy > span { color:var(--p-muted); font-size:12px; }
.p-credit-rows > div { display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px; align-items:center; padding:16px 0; border-bottom:1px solid var(--p-line); font-size:12px; }
.p-credit-rows b { font-weight:500; }
.p-credit-rows small { display:block; margin-top:5px; color:var(--p-muted); font-size:11px; }
@media(min-width:1900px) { .workspace-shell.platform .creator-shell { grid-template-columns:minmax(300px,.94fr) minmax(380px,1.07fr) minmax(410px,1.15fr); } }
@media(max-width:1250px) {
  .workspace-shell.platform { padding-left:72px; }
  .p-sidebar { width:72px; }
  .p-brand { padding:18px; }
  .p-brand > span:last-child,.p-sidebar :is(.p-nav-label,.p-nav-count,.p-preview-label,.p-sidebar-footer small),.p-sidebar-footer button > span:last-of-type,.p-sidebar-footer button>svg { display:none; }
  .p-sidebar nav { padding:12px 8px; }
  .p-sidebar nav > :is(a,button) { font-size:0; justify-content:center; padding:10px; gap:0; }
  .p-sidebar [data-existing] svg:last-child { display:none; }
  .p-sidebar-footer { padding:12px; }
  .p-header-account { gap:12px; }
  .p-header-account small { display:none; }
}
@media(max-width:1080px) {
  .workspace-shell.platform .creator-shell { grid-template-columns:minmax(240px,.85fr) minmax(330px,1.15fr); }
  .workspace-shell.platform .creator-panel { border-right:0; padding-right:0; }
  .workspace-shell.platform .result-panel { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:20px; border-top:1px solid var(--p-line); padding-top:20px; }
  .workspace-shell.platform .workspace-history { padding-top:0; border:0; }
  .p-filter-bar { flex-wrap:wrap; }
  .p-filter-bar .p-search { flex-basis:100%; }
  .p-table-head { display:none; }
  .p-task-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; gap:10px 16px; padding:14px 0; }
  .p-task-row > div:first-child { grid-column:1/3; }
  .p-task-row > div:nth-child(2) { grid-column:1/3; grid-row:2; }
  .p-task-row > div:last-child { grid-column:3; grid-row:1; }
  .p-task-row > div:nth-child(6) { grid-column:3; grid-row:2; }
  .p-task-row > div:nth-child(5) { grid-row:3; grid-column:3; }
  .p-task-open { padding:0!important; }
  .p-date small { display:inline; margin-left:6px; }
  .p-model-cell small { display:inline; margin-left:10px; }
  .p-asset-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .p-billing-note { display:none; }
}
@media(max-width:760px) {
  .workspace-shell.platform { padding-left:0; }
  .p-sidebar { transform:translateX(-100%); width:184px; box-shadow:12px 0 40px #0005; }
  .platform.p-menu-open .p-sidebar { transform:translateX(0); top:100px; }
  .platform.p-menu-open .p-nav-scrim { display:block; position:fixed; z-index:59; inset:100px 0 0 184px; border:0; padding:0; background:#0008; }
  .p-sidebar nav > :is(a,button) { font-size:13px; gap:10px; justify-content:start; }
  .p-brand>span:last-child,.p-sidebar .p-nav-label,.p-sidebar .p-preview-label,.p-sidebar-footer button>span:last-of-type,.p-sidebar-footer small { display:block; }
  .p-sidebar nav { padding:12px; }
  .p-sidebar .p-nav-count { display:inline-block; }
  .workspace-shell.platform .workbench-header { position:sticky; flex-wrap:wrap; padding:10px 12px; gap:8px; }
  .platform .p-menu-btn { display:inline-grid; }
  .p-header-title { font-size:13px; }
  .p-header-title small { font-size:10px; }
  .p-header-account { width:100%; justify-content:space-between; gap:8px; }
  .p-header-account>span { font-size:10px; gap:4px; }
  .p-header-account b { font-size:13px; }
  .p-header-account .p-btn { min-height:32px; font-size:11px; padding:6px 8px; }
  .p-header-account .p-icon-btn { height:30px; width:30px; }
  .workspace-shell.platform .workbench-main { padding:0 12px 24px; }
  .p-work-title { padding:20px 0 14px; }
  .p-work-title h1 { font-size:19px; }
  .p-work-title .p-muted { display:none; }
  .workspace-shell.platform .creator-shell { grid-template-columns:minmax(0,1fr); gap:22px; }
  .workspace-shell.platform :is(.visible-models,.creator-panel) { border-right:0; padding-right:0; }
  .workspace-shell.platform .result-panel { display:block; }
  .workspace-shell.platform .workspace-history { border-top:1px solid var(--p-line); padding-top:12px; }
  .p-page { padding-top:20px; }
  .p-page-head { align-items:start; margin-bottom:18px; gap:10px; }
  .p-page h1 { font-size:22px; }
  .p-page-head p { font-size:10px; }
  .p-page-head .p-command-row { flex-direction:column-reverse; align-items:stretch; gap:5px; }
  .p-page-head .p-btn { min-height:32px; padding:6px 8px; font-size:11px; }
  .p-status-tabs { gap:0; justify-content:space-between; }
  .p-status-tabs button { font-size:11px; gap:5px; }
  .p-status-tabs b { font-size:10px; min-width:15px; padding:0 3px; }
  .p-filter-bar { gap:6px; margin:14px 0; }
  .p-filter-bar select { flex:1; min-width:0; width:100px; font-size:11px; padding:0 6px; }
  .p-filter-bar .p-icon-btn { width:30px; }
  .p-search { min-width:0; flex-basis:100%; }
  .p-task-row { gap:8px; }
  .p-task-open img { width:38px; height:42px; }
  .p-task-open { gap:8px!important; }
  .p-task-open b { font-size:11px; }
  .p-task-open small { font-size:10px; }
  .p-task-row .p-model-cell { font-size:10px; }
  .p-status { font-size:9px; }
  .p-numeric b { font-size:12px; }
  .p-numeric small { font-size:9px; }
  .p-detail-content { padding:18px; }
  .p-dialog-head { padding:16px 18px; }
  .p-detail-footer { padding:12px 18px; }
  .p-asset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .p-asset-media { height:120px; }
  .p-asset-info { padding:10px; }
  .p-asset-info b { font-size:11px; }
  .p-asset-info .p-btn { font-size:11px; padding:7px; width:100%; }
  .p-org-summary { grid-template-columns:1fr 1fr; gap:18px; padding:20px 0; }
  .p-org-summary strong,.p-credit-overview strong { font-size:25px; }
  .p-org-summary .p-summary-text { font-size:15px; }
  .p-org-summary>div:nth-child(2) { border:0; }
  .p-org-summary>div:last-child { grid-column:1/-1; }
  .p-org-summary span,.p-credit-overview span { font-size:11px; }
  .p-member-head,.p-member-row { grid-template-columns:minmax(80px,1.6fr) .8fr .8fr 1.2fr; gap:6px; font-size:10px; }
  .p-member-name { gap:6px; }
  .p-member-name .p-user-avatar { display:none; }
  .p-member-row b { font-size:10px; }
  .p-credit-overview { gap:16px; padding:22px 0; }
  .p-credit-overview strong small { display:block; margin:4px 0 0; font-size:11px; }
  .p-credit-rows>div { gap:8px; font-size:11px; }
  .p-credit-rows small { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { .platform * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

.platform .p-detail-media :is(img,video) { display:block; width:100%; height:auto; max-height:min(70dvh,640px); object-fit:contain; }
.platform .p-task-open .task-thumb { width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:5px; }
.platform .p-task-open .task-thumb img { width:44px; height:44px; }
.platform #pLogout { padding:8px; text-align:center; }
.platform .p-sidebar-footer { gap:4px; }
