@charset "UTF-8";
:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;color:#203d35;background:#f7f9f6;font-size:14px;--green:#247c5d;--dark:#164d3b;--muted:#7d8d83;--line:#e3eae3;--soft:#edf4ec;--white:#fff;--danger:#af4c41}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{transition:background .15s,border-color .15s}a{color:inherit;text-decoration:none}button{color:inherit;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91bea3;outline-offset:3px}h1,h2,h3,p{margin:0}svg.icon{height:19px;width:19px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.skip{position:fixed;left:10px;top:-100px;z-index:100;padding:12px;background:white}.skip:focus{top:10px}.boot,.loading{padding:70px 24px;text-align:center;color:var(--muted)}.boot:before,.loading:before{content:"";display:inline-block;height:14px;width:14px;border:2px solid #cbd9cd;border-top-color:var(--green);border-radius:50%;margin-right:10px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;letter-spacing:.4px}.brand img{width:36px;height:36px}.brand small{display:block;font-size:9px;letter-spacing:2.7px;font-weight:400;margin-top:3px;color:var(--muted)}.btn{border:1px solid var(--line);background:white;padding:10px 15px;border-radius:8px;min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:550;white-space:nowrap}.btn:hover{border-color:#b7cbb9;background:#f4f8f2}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:var(--dark)}.btn.soft{background:var(--soft);color:var(--green);border-color:#d7e7d6}.btn.small{padding:6px 10px;min-height:30px;font-size:11px}.btn.danger{color:var(--danger);background:#fff8f5;border-color:#efd7d0}.text-link{color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:3px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.muted{color:var(--muted)}.tiny{font-size:11px;line-height:1.8}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#8a9b8d;margin-bottom:10px}.pill{display:inline-block;border:1px solid #dfe8dc;background:#f3f7f0;color:#6e8b68;border-radius:5px;padding:4px 7px;font-size:10px;white-space:nowrap}.pill.good{background:#eaf4ec;color:#397653;border-color:#d2e6d5}.pill.warn{background:#fff7e7;color:#a57736;border-color:#f1e2bf}.pill.bad{background:#fff2ee;color:#a15b4d;border-color:#efd9d1}.pill.gray{background:#f4f5f4;color:#929b93;border-color:#e5e9e4}.empty{text-align:center;padding:52px 20px;color:var(--muted);font-size:12px;line-height:1.9}.empty svg{width:30px;height:30px;display:block;margin:0 auto 14px;color:#98b099}.empty strong{display:block;color:#506c58;font-size:14px;font-weight:550;margin-bottom:5px}.error-box,.notice{display:flex;gap:10px;align-items:flex-start;border-radius:9px;padding:13px 16px;font-size:12px;line-height:1.8;margin-bottom:20px;background:#f0f5ec;border:1px solid #dce7d7;color:#6b8160}.error-box{background:#fff5f1;border-color:#efd8cd;color:#aa5947}.notice svg,.error-box svg{margin-top:2px}.notice a{color:#497b47;text-decoration:underline}.notice p+p{margin-top:5px}.page-head{display:flex;gap:15px;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.page-head h1{font-size:26px;font-weight:600;letter-spacing:-.7px;line-height:1.4}.page-head p{color:var(--muted);font-size:12px;line-height:1.9;margin-top:8px}.page-head .row{padding-top:5px}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:white;border-right:1px solid var(--line);padding:27px 18px 18px;z-index:30;display:flex;flex-direction:column;overflow-y:auto}.space-label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:9px;margin:28px 0 22px;font-size:11px;color:#647a65}.avatar{height:29px;width:29px;display:grid;place-items:center;border-radius:7px;background:#e9eee3;color:#758160;font-size:12px}.nav-label{font-size:9px;letter-spacing:1.7px;color:#98a394;padding:0 11px;margin:13px 0 8px}.nav-link{display:flex;align-items:center;gap:11px;color:#748174;font-size:12px;border-radius:8px;padding:11px;margin:3px 0}.nav-link:hover{background:#f5f8f2}.nav-link.active{color:var(--green);background:#eaf3e8;font-weight:600}.sidebar-bottom{margin-top:auto;padding-top:25px}.profile{border-top:1px solid var(--line);padding-top:16px;display:flex;gap:10px;align-items:center}.profile b{font-size:11px;font-weight:600;display:block}.profile small{font-size:10px;color:var(--muted);display:block;max-width:137px;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.profile .icon-button{margin-left:auto}.icon-button{height:32px;width:32px;border:1px solid var(--line);display:grid;place-items:center;border-radius:7px;background:white}.shell{margin-left:228px}.topbar{height:74px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffffc7}.breadcrumbs{font-size:12px;display:flex;align-items:center;gap:12px;color:#9ba498}.breadcrumbs b{font-weight:500;color:#60785f}.menu-button{display:none}.main{max-width:1500px;margin:auto;padding:31px 36px 18px;min-height:calc(100vh - 150px)}.footer{max-width:1500px;margin:auto;display:flex;justify-content:space-between;gap:12px;padding:20px 36px 27px;color:#99a594;font-size:10px;line-height:1.8}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 20px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#81907e}.stat-icon{width:28px;height:28px;display:grid;place-items:center;background:#f2f6ee;border-radius:7px;color:#8a9c7f}.stat-icon svg{width:16px;height:16px}.stat-value{font-size:29px;letter-spacing:-1px;margin:12px 0 8px;font-variant-numeric:tabular-nums}.stat-note{font-size:10px;color:#99a392;line-height:1.7}.panel{border:1px solid var(--line);border-radius:13px;background:white;overflow:hidden;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 23px;border-bottom:1px solid #edf0e9}.panel-head h2{font-size:14px;font-weight:600}.panel-head p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.8}.panel-body{padding:23px}.two-col{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:20px}.hero{padding:28px 30px;border:1px solid #dae6d7;background:linear-gradient(120deg,#e8f1e4,#f2f5e8);border-radius:14px;margin-bottom:23px;position:relative;overflow:hidden}.hero h2{font-size:25px;font-weight:550;line-height:1.6}.hero p{font-size:12px;color:#7a9074;line-height:1.9;margin:8px 0 18px;max-width:550px}.hero-mark{position:absolute;right:20px;top:-20px;color:#8eaf7f26;font-size:230px;line-height:1;pointer-events:none;font-weight:600}.hero>*:not(.hero-mark){position:relative}.section-title{font-size:15px;font-weight:600;margin:5px 0 17px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:23px}.model-card{background:white;border:1px solid var(--line);padding:21px;border-radius:12px;min-width:0}.model-card h3{font-size:15px;font-weight:600;margin:16px 0 7px}.model-card p{font-size:11px;color:var(--muted);line-height:1.9;overflow-wrap:anywhere}.model-symbol{width:38px;height:38px;display:grid;place-items:center;background:#edf3e8;color:#70915d;font-size:24px;border-radius:11px}.model-symbol.video{background:#f5efe2;color:#ac936a}.model-symbol.chat{background:#ebf0ef;color:#698c85}.model-price{font-size:11px;line-height:1.9;color:#6b8262;margin:15px 0}.tabs{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-bottom:19px}.tabs button,.tabs a{padding:8px 13px;border:1px solid transparent;border-radius:7px;color:#7f8e79;font-size:12px}.tabs .active{background:white;border-color:var(--line);color:var(--green)}.search{display:flex;align-items:center;gap:8px;max-width:320px;width:100%;border:1px solid var(--line);background:white;border-radius:8px;padding:8px 11px}.search svg{width:16px;color:#9ba793}.search input{border:0;outline:0;width:100%;padding:0;background:none;font-size:12px}.filters{display:flex;gap:13px;justify-content:space-between;align-items:center;margin-bottom:19px;flex-wrap:wrap}.filters .tabs{margin:0}.table-scroll{overflow:auto;overscroll-behavior-x:contain}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left;white-space:nowrap}th{font-weight:450;color:#98a18f;background:#fbfcf9;padding:14px 22px;border-bottom:1px solid var(--line)}td{padding:15px 22px;color:#6c7e62;border-bottom:1px solid #eef1e8}tr:last-child td{border-bottom:0}td b{display:block;font-weight:550;color:#3a5b40;font-size:12px}td small{display:block;font-size:10px;color:#a1aa96;margin-top:5px;max-width:280px;overflow:hidden;text-overflow:ellipsis}td .row{flex-wrap:nowrap}.money{font-variant-numeric:tabular-nums}.positive{color:#4e9163}.negative{color:#b37559}.field{margin-bottom:17px;min-width:0}.field label{display:block;font-size:11px;font-weight:550;color:#657c5d;margin-bottom:8px}.field input:not([type=checkbox]),.field select,.field textarea{width:100%;border:1px solid #dfe6d8;border-radius:8px;background:#fff;padding:11px 12px;color:#415b3d;min-height:42px;outline-offset:2px}.field input::placeholder,.field textarea::placeholder{color:#adb6a3}.field textarea{resize:vertical;min-height:125px;line-height:1.8}.field small{font-size:10px;color:#94a18a;line-height:1.8;display:block;margin-top:7px}.field input:disabled{background:#f5f7f1}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.check-label{display:flex;gap:8px;align-items:center;font-size:12px;color:#6f8067;margin:12px 0 20px}.check-label input{accent-color:var(--green)}.form-error{color:#a64f3c;background:#fff4ef;border:1px solid #efd9ce;padding:10px 12px;border-radius:7px;font-size:11px;line-height:1.8;margin-bottom:15px}.form-error:empty{display:none}.full{width:100%}.balance-card{background:#e9f1e3;border:1px solid #dae5cf;border-radius:13px;padding:28px;margin-bottom:20px}.balance-card .amount{font-size:43px;font-weight:500;letter-spacing:-1px;margin:17px 0}.balance-card p{font-size:11px;color:#79906c;line-height:1.9}.mono,code,pre{font-family:Consolas,"SFMono-Regular",monospace}.code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.9;background:#f2f6ee;color:#56714b;border:1px solid #dce7d4;border-radius:8px;padding:16px;max-height:360px;overflow:auto}.docs h3{font-size:13px;margin:20px 0 10px}.docs p{font-size:12px;line-height:2;color:#7f8f73}.docs ol{padding-left:19px;font-size:12px;color:#7c8f6c;line-height:2.2}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.asset{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.asset-preview{height:155px;background:#eef2e9;display:grid;place-items:center;overflow:hidden}.asset-preview img{height:100%;width:100%;object-fit:cover}.asset-info{padding:14px}.asset-info strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:7px}.asset-info p{font-size:10px;color:#929e85;line-height:1.9}.asset-actions{display:flex;gap:10px;margin-top:11px}.upload-zone{border:1px dashed #b8cdb0;border-radius:11px;background:#f3f7ee;padding:26px;text-align:center;margin-bottom:20px}.upload-zone p{font-size:11px;color:#94a28a;margin:10px 0 0;line-height:1.9}.upload-zone label{display:inline-flex}.upload-list{list-style:none;padding:0;margin:0 0 20px;border:1px solid var(--line);border-radius:9px;background:white;overflow:hidden}.upload-list li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 17px;border-bottom:1px solid var(--line);font-size:11px}.upload-list li:last-child{border-bottom:0}.upload-list li span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.upload-list .bad{color:#b16e52}.studio-grid{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(350px,1.1fr);gap:21px}.result-area{min-height:360px;padding:24px}.result-area pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:2;color:#496241;margin:0}.result-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.result-images img{max-width:100%;width:100%;height:auto;border-radius:9px}.result-area video{width:100%;max-height:500px;background:#e9eee2;border-radius:9px}.job-summary{padding:12px 15px;border-radius:8px;background:#f5f8f0;border:1px solid var(--line);font-size:11px;color:#879b76;line-height:1.9;margin-bottom:18px}.asset-select{display:grid;gap:7px;max-height:160px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:8px}.asset-select label{display:flex;gap:8px;align-items:center;font-size:11px;color:#7b8e6c;overflow-wrap:anywhere}.asset-select input{accent-color:var(--green)}dialog{padding:0;border:1px solid #d7e3cd;border-radius:15px;box-shadow:0 20px 90px #23391d30;width:min(560px,calc(100% - 30px));max-height:90vh;color:#385733;background:#fff}dialog::backdrop{background:#1a351d50;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:17px;font-weight:600}.dialog-body{padding:23px 24px}.dialog-body>p{font-size:12px;color:#86967a;line-height:1.9;margin-bottom:19px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:21px}#toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);max-width:calc(100% - 30px);z-index:100;background:#254f32;color:white;box-shadow:0 5px 25px #304d2b25;font-size:12px;line-height:1.8;padding:12px 19px;border-radius:9px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.landing-nav{max-width:1180px;margin:auto;height:90px;padding:0 30px;display:flex;align-items:center;justify-content:space-between}.landing-nav .brand small{display:none}.landing-hero{max-width:1180px;margin:auto;padding:72px 30px 90px;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:70px}.landing-hero h1{font-size:57px;letter-spacing:-2px;font-weight:550;line-height:1.35;margin:21px 0}.landing-hero h1 em{color:#538752;font-style:normal}.landing-hero p{font-size:13px;line-height:2.2;color:#89977d;max-width:415px}.landing-hero .row{margin-top:29px}.landing-hero .btn{padding:13px 19px}.connection{background:#eaf0e2;border:1px solid #dce6d0;border-radius:22px;padding:32px;transform:rotate(-2deg)}.connection-header{display:flex;gap:5px;margin-bottom:27px}.connection-header i{width:6px;height:6px;border-radius:50%;background:#bdcfae}.connection-hub{background:#ffffffbd;border:1px solid #d6e2c9;border-radius:12px;padding:20px;display:flex;gap:13px;align-items:center}.connection-hub img{width:39px;height:39px}.connection-hub b{font-size:14px;font-weight:550}.connection-hub small{display:block;font-size:9px;letter-spacing:2px;color:#9aab87;margin-top:7px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:15px 0}.connection-grid span{background:white;border:1px solid #dce5d2;border-radius:10px;padding:17px;font-size:12px;color:#7d916e;display:flex;gap:10px;align-items:center}.connection-note{background:#2d4930;color:#b2c4a3;border-radius:9px;padding:18px;font:10px/2 Consolas,monospace}.landing-features{max-width:1120px;margin:0 auto 45px;border-top:1px solid var(--line);padding-top:35px}.landing-features>h2{text-align:center;font-size:23px;font-weight:550;margin-bottom:28px}.landing-features .cards{margin:0}.feature{border:1px solid var(--line);background:white;border-radius:12px;padding:25px}.feature svg{color:#7d9f66;margin-bottom:17px}.feature h3{font-size:14px;font-weight:550;margin-bottom:11px}.feature p{font-size:12px;line-height:1.9;color:#96a189}.landing-footer{border-top:1px solid var(--line);max-width:1120px;margin:auto;padding:22px 0 30px;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#a0ab95}.auth-layout{max-width:1040px;margin:40px auto 90px;display:grid;grid-template-columns:1fr 420px;gap:75px;align-items:center;padding:25px}.auth-story h1{font-size:42px;line-height:1.45;letter-spacing:-1.5px;font-weight:550;margin:19px 0}.auth-story p{color:#92a083;line-height:2.1;font-size:13px}.auth-panel{padding:32px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 12px 40px #3d5c3006}.auth-panel h2{font-size:22px;font-weight:550;margin:7px 0 8px}.auth-panel>p{font-size:11px;line-height:1.9;color:#96a18c;margin-bottom:24px}.auth-note{font-size:10px;text-align:center;color:#a4af97;margin-top:17px;line-height:1.8}.backdrop{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:1200px){.sidebar{width:207px;padding:25px 14px}.shell{margin-left:207px}.main{padding:28px 25px 18px}.topbar{padding:0 25px}.footer{padding:20px 25px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.landing-hero{gap:40px}.landing-hero h1{font-size:49px}.landing-features,.landing-footer{margin-left:30px;margin-right:30px}.landing-features .cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.sidebar{width:190px}.shell{margin-left:190px}.brand{font-size:19px}.main{padding:25px 20px}.topbar{padding:0 20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.two-col,.studio-grid{grid-template-columns:1fr}.studio-grid .result-area{min-height:260px}.landing-hero h1{font-size:42px}.connection{padding:22px}.auth-layout{gap:35px;grid-template-columns:1fr 380px}.auth-story h1{font-size:35px}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sidebar{width:235px;transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s}.sidebar.open{transform:translateX(0);visibility:visible}.backdrop.open{display:block;position:fixed;inset:0;background:#28422460;z-index:29}.shell{margin:0}.topbar{height:63px;padding:0 16px}.menu-button{display:grid}.breadcrumbs{gap:9px}.breadcrumbs>span{display:none}.main{padding:24px 17px 14px}.page-head{flex-wrap:wrap;gap:12px}.page-head h1{font-size:23px}.page-head .row{padding:0}.hero{padding:23px}.hero h2{font-size:23px}.hero p{font-size:11px}.hero-mark{right:-30px;top:10px;font-size:180px}.stat{padding:17px}.stat-value{font-size:26px}.cards{gap:11px}.model-card{padding:17px}.model-card h3{font-size:13px}.model-price{font-size:10px}.panel-head{padding:18px 17px}.panel-body{padding:19px 17px}.footer{padding:20px 17px;font-size:9px}.footer span:last-child{text-align:right}.notice,.error-box{font-size:11px;padding:12px}.filters{align-items:stretch}.search{max-width:none}.tabs button,.tabs a{font-size:11px;padding:7px 10px}.balance-card{padding:24px}.balance-card .amount{font-size:37px}.asset-grid{gap:12px}.asset-preview{height:130px}.result-area{padding:19px}.field-grid{gap:0 12px}.landing-nav{height:76px;padding:0 22px}.landing-nav .brand{font-size:20px}.landing-nav .btn{font-size:11px;padding:9px 11px}.landing-hero{grid-template-columns:1fr;padding:38px 25px 60px;gap:42px}.landing-hero h1{font-size:clamp(30px,10vw,44px);letter-spacing:-1.5px}.landing-hero p{font-size:12px}.connection{margin:0 6px}.landing-features,.landing-footer{margin-left:25px;margin-right:25px}.landing-features .cards{grid-template-columns:1fr}.landing-features>h2{font-size:21px}.landing-footer{flex-wrap:wrap}.auth-layout{grid-template-columns:1fr;margin:15px auto 50px;padding:20px;gap:27px}.auth-story h1{font-size:28px;margin:12px 0}.auth-story p{font-size:12px}.auth-panel{padding:26px 23px}.auth-story .eyebrow{display:none}.dialog-head{padding:19px}.dialog-body{padding:21px 19px}th,td{padding:13px 17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}
.model-toolbar{display:flex;justify-content:center;margin:-2px 0 22px}.model-search{max-width:620px}.model-catalog-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start}.catalog-filter-panel,.model-results-panel{background:#fff;border:1px solid var(--line);border-radius:13px;min-width:0}.catalog-filter-panel{padding:17px 16px;position:sticky;top:18px}.catalog-filter-heading{display:flex;align-items:center;justify-content:space-between;padding:1px 0 11px;font-size:13px}.catalog-filter-heading button{font-size:11px;color:var(--green);text-decoration:underline;text-underline-offset:3px}.catalog-filter-group{padding:14px 0;border-top:1px solid #eef1e8}.catalog-filter-group h3{font-size:11px;font-weight:600;color:#586f55;margin-bottom:9px}.catalog-filter-group>div{display:grid;gap:4px}.catalog-filter-option{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:8px 9px;border-radius:7px;color:#71816e;font-size:11px}.catalog-filter-option:hover{background:#f7f9f5}.catalog-filter-option.active{background:#eaf3e8;color:var(--green);font-weight:600}.catalog-filter-option small{font-size:10px;color:#a1ad9b}.catalog-filter-option.active small{color:#58836a}.model-results-panel{padding:17px}.model-count{font-size:12px;color:#74836f;margin:0 0 13px}.model-results-panel .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:0}.model-results-panel .model-card{padding:18px;display:flex;flex-direction:column;align-items:flex-start}.model-card h3{margin-top:12px}.model-provider{font-size:10px!important;color:#91a08b!important;margin-top:7px}.model-price{min-height:48px}.pricing-pill{font-size:10px;background:#edf7f3;border-color:#d8eee5;color:#387d66}.model-start{margin-top:14px}.model-results-panel .empty{grid-column:1/-1}.price-hint{display:block;font-size:10px;line-height:1.8;color:#81917c;margin-top:-8px;margin-bottom:15px}
.token-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}.token-price-grid>div{display:grid;gap:3px}.token-price-grid small,.price-footnote,.multiplier-note{font-size:10px;color:#879685;line-height:1.65}.token-price-grid strong,.single-price strong{font-size:12px;font-weight:650;color:#385b40;font-variant-numeric:tabular-nums}.single-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.plaza-num+.price-unit{display:inline-block;margin-top:6px;font-size:12px;font-weight:650;
  color:#2f6b57;background:#e3f1ea;border:1px solid #c6e2d4;border-radius:6px;padding:4px 10px;letter-spacing:.3px}
.plaza-num+.price-unit.per-request{color:#8a6a33;background:#fbf2e2;border-color:#eddfc2}
.tier-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:6px;align-items:center;margin-bottom:6px}
.tier-row input{padding:6px 8px;border:1px solid #dfe6d8;border-radius:6px;font-size:11px;min-width:0}
.tier-row .text-link{white-space:nowrap}
.price-input{display:flex;align-items:center;gap:5px}
.price-input input{width:88px;padding:5px 7px;border:1px solid #dfe6d8;border-radius:6px;font-size:11px}
.price-input small{font-size:10px;color:#8b9a86;white-space:nowrap}
.version-pill{background:#eef3fb;border-color:#d8e2f3;color:#48628c;font-weight:600}
.version-chip{font-size:10px;font-weight:600;color:#48628c;background:#eef3fb;border:1px solid #d8e2f3;border-radius:5px;padding:3px 7px}
/* The per-second / per-request unit is what the customer is actually buying, and it
   used to render as the same faint grey as everything else. It is now a chip so
   "秒" and "次" read apart at a glance. */
.single-price .price-unit{font-size:11px;font-weight:600;color:#3f6b52;background:#e9f2e6;border:1px solid #d3e4cd;border-radius:5px;padding:2px 7px;line-height:1.5;white-space:nowrap}
.single-price .price-unit.per-second{color:#2f6b57;background:#e3f1ea;border-color:#c6e2d4}
.single-price .price-unit.per-request{color:#8a6a33;background:#fbf2e2;border-color:#eddfc2}.price-footnote,.multiplier-note{display:block;margin-top:5px}.model-card .model-price{width:100%;margin:13px 0 10px;color:#526c51}
@media(max-width:1100px){.model-catalog-layout{grid-template-columns:210px minmax(0,1fr)}.model-results-panel .cards{grid-template-columns:1fr}}
@media(max-width:700px){.model-catalog-layout{grid-template-columns:1fr}.catalog-filter-panel{position:static;padding:13px}.catalog-filter-group>div{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-heading{padding-bottom:5px}.model-results-panel{padding:12px}.model-results-panel .cards{grid-template-columns:1fr}.model-toolbar{margin-bottom:13px}.model-search{max-width:none}}

.empty-action{justify-content:center;margin-top:15px}

/* Model plaza: facet rail + card grid, on the existing token palette. */
.plaza-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}
.plaza-filter{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;position:sticky;top:18px}
.plaza-facet{padding:12px 0;border-top:1px solid #eef1e8}
.plaza-facet:first-child{border-top:0;padding-top:2px}
.plaza-facet h3{font-size:11px;font-weight:600;color:#586f55;margin-bottom:9px;display:flex;justify-content:space-between;align-items:center}
.plaza-facet>div{display:flex;flex-wrap:wrap;gap:6px}
.plaza-facet-item{display:inline-flex;align-items:center;gap:7px;border:1px solid #e5e9e4;background:#fff;border-radius:999px;padding:5px 10px;font-size:11px;color:#6f8067;line-height:1.6;max-width:100%}
.plaza-facet-item:hover{border-color:#c4d5c2;background:#f7f9f5;color:var(--green)}
.plaza-facet-item.active{background:#eaf3e8;border-color:#cde0c9;color:var(--green);font-weight:600}
.plaza-facet-item small{font-size:10px;color:#9aa694}
.plaza-facet-item.active small{color:#58836a}
.plaza-results{min-width:0}
.plaza-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
/* The open/closed shortcut reads as one segmented control, not three loose
   buttons, so it stays visually distinct from the card/list view toggle. */
.quick-state{display:inline-flex;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.quick-state .btn{border:0;border-radius:0;min-height:30px;font-size:11px}
.quick-state .btn+.btn{border-left:1px solid var(--line)}
.quick-state .btn.primary{background:var(--green);border-color:var(--green)}
@media(max-width:700px){.plaza-layout-admin .plaza-head{flex-direction:column;align-items:flex-start;gap:10px}}
.plaza-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.plaza-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 18px 16px;display:flex;flex-direction:column}
.plaza-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.plaza-card-head h3{font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.plaza-card-head p{margin-top:4px}
.plaza-price{margin-bottom:8px}
.plaza-num{font-size:21px;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;color:#2f5a3f}
.plaza-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plaza-two>div{display:grid;gap:2px}
.plaza-two b{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;color:#2f5a3f}
.plaza-spec{margin-bottom:8px;min-height:2.6em}
.plaza-card .btn.small{margin-left:auto}
@media(max-width:1000px){.plaza-layout{grid-template-columns:1fr}.plaza-filter{position:static}.plaza-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}}
@media(max-width:700px){.plaza-grid{grid-template-columns:1fr}.plaza-facet>div{gap:5px}.plaza-facet-item{font-size:10px;padding:4px 8px}}
.plaza-card.plaza-picked{border-color:#c9c3f0;box-shadow:0 0 0 1px #c9c3f0 inset}
.plaza-card .plaza-card-head h3{font-size:13px}
.plaza-card input[type=checkbox]{accent-color:var(--green)}

/* Horizontal filter strip for the table pages. The model page keeps the
   vertical rail; tables are read left-to-right and a 236px column of pills
   would steal exactly the width the table needs. Same pills, same tokens. */
.plaza-layout-admin{grid-template-columns:236px minmax(0,1fr)}
.filter-bar{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:baseline;padding:12px 16px;margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:11px}
.filter-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.filter-label{font-size:10px;font-weight:600;color:#586f55;letter-spacing:.4px;margin-right:2px;white-space:nowrap}
.filter-bar .plaza-facet-item{padding:4px 9px}
.filter-bar .plaza-facet-item small{font-size:10px;color:#9aa694}
.filter-bar .plaza-facet-item.active small{color:#58836a}
/* The admin rail is wider than the plaza's, so it needs its own collapse point.
   Declared after .plaza-layout-admin so it wins at equal specificity. */
@media(max-width:1000px){.plaza-layout-admin{grid-template-columns:1fr}}
@media(max-width:700px){
  .filter-bar{gap:6px 12px;padding:10px 12px}
  .filter-group{gap:5px}
  .filter-label{width:100%;margin-bottom:1px}
  .filter-bar .plaza-facet-item{font-size:10px;padding:4px 8px}
}

/* ── 模型卡：站长推荐 / 近期表现 / 复制按钮 / 详情 ─────────────────── */
.recommended-card{border-color:#c9a13d;position:relative}
.recommend-badge{position:absolute;top:-9px;right:14px;background:linear-gradient(135deg,#d9b25a,#b8912e);color:#fff;font-size:10.5px;font-weight:600;padding:2.5px 9px;border-radius:99px;letter-spacing:.5px;box-shadow:0 1px 4px rgba(160,120,30,.35)}
.perf-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.perf-ring{--ring-color:#c8c8d4;--ring-pct:0deg;width:52px;height:52px;border-radius:50%;background:conic-gradient(var(--ring-color) var(--ring-pct),#eef0f4 0);display:flex;align-items:center;justify-content:center;flex:none}
.perf-ring-inner{width:40px;height:40px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.perf-ring-inner b{font-size:11.5px}
.perf-ring-inner small{font-size:8.5px;color:#9aa0ad}
.perf-avg{font-size:12.5px;font-weight:600}
.copy-id{width:26px;height:26px;min-width:26px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.copy-id svg{width:13px;height:13px}
button.icon-button[data-action="model-detail"]{width:auto;min-width:0;padding:4px 10px;font-size:12px;border-radius:8px}
.model-detail .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin-top:14px;padding:14px 0;border-top:1px solid var(--border,#eceef2);border-bottom:1px solid var(--border,#eceef2)}
.model-detail .detail-grid small{display:block;margin-bottom:2px}
.model-detail-price{font-size:15px;font-weight:600;color:#333}
@media (max-width:640px){.model-detail .detail-grid{grid-template-columns:1fr}}

/* ── 详情弹窗页签（概览 / API）────────────────────────────────────── */
.detail-tabs{display:flex;gap:6px;border-bottom:1px solid var(--border,#eceef2);margin-bottom:4px}
.detail-tab{background:none;border:0;padding:9px 16px;font-size:13.5px;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;font-family:inherit}
.detail-tab:hover{color:#111827}
.detail-tab.active{color:#1f2937;font-weight:600;border-bottom-color:#2f6b4f}
.detail-pane{padding-top:12px}
.api-block{margin-bottom:18px}
.api-block h4{font-size:13.5px;font-weight:600}
.api-block pre.code{max-height:220px;overflow:auto;white-space:pre;font-size:12px;line-height:1.55}
.api-block .text-link{font-size:12px;display:inline-flex;align-items:center;gap:4px}
.api-block .text-link svg{width:12px;height:12px}

/* ── 创作空间：提交进度 / 上传按钮 / 音频视频素材 ─────────────────── */
/* The submit feedback. Four states driven by the job's real status, so the
 * customer can see the task actually left instead of watching a toast fade. */
.studio-steps{list-style:none;display:flex;gap:0;margin:0 0 18px;padding:16px 18px;background:#f7faf4;border:1px solid var(--line);border-radius:10px}
.studio-step{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;position:relative;font-size:10.5px;color:#a3ad9c;text-align:center}
.studio-step+.studio-step:before{content:"";position:absolute;left:-50%;top:11px;width:100%;height:2px;background:#e4eadf;z-index:0}
.studio-step.done+.studio-step:before,.studio-step.current+.studio-step:before{background:var(--green)}
.studio-step .step-mark{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#e9eee4;color:#a3ad9c;font-size:10.5px;font-weight:600;position:relative;z-index:1;border:2px solid #f7faf4}
.studio-step .step-mark svg{width:12px;height:12px}
.studio-step.done .step-mark{background:var(--green);color:#fff}
.studio-step.current .step-mark{background:#fff;border-color:var(--green);color:var(--green)}
.studio-step.current .step-mark .dot{width:7px;height:7px;border-radius:50%;background:var(--green);animation:pulse 1.1s ease-in-out infinite}
.studio-step.current{color:var(--green);font-weight:600}
.studio-step.done{color:#6f8a63}
.studio-step.dead .step-mark{background:#f0d9d2;border-color:#f7faf4;color:#a1594a}
.studio-step.dead{color:#a1594a}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.75)}}
.spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;animation:spin .7s linear infinite}
.btn.is-loading{pointer-events:none;opacity:.85}
.btn.is-submitted{background:var(--dark)!important;border-color:var(--dark)!important;color:#fff}
/* Upload straight from the studio, next to the picker it fills. */
.studio-upload{margin-top:9px;font-size:11px}
.studio-upload svg{width:13px;height:13px}
/* Audio and video assets get their own player instead of a broken <img>. */
.asset-preview.asset-audio{padding:12px;background:#f0f4ec}
.asset-preview.asset-audio audio{width:100%}
.asset-preview.asset-video video{height:100%;width:100%;object-fit:cover;background:#1f2b24}
@media(max-width:700px){
 .studio-steps{padding:13px 10px}
 .studio-step{font-size:9.5px;gap:5px}
 .studio-step .step-mark{width:20px;height:20px}
 .studio-step+.studio-step:before{top:9px}
}

/* ── 创作空间：参考素材三卡片（虚线投放区风格）────────────────── */
.studio-cards{display:grid;gap:14px}
/* Maintenance banner. Sits between the topbar and <main>, so it never covers
 * content and never scrolls away with it. Same green language as .notice, with
 * an amber variant for "this one matters". */
.site-notice{display:flex;align-items:flex-start;gap:10px;margin:0 36px;margin-top:16px;padding:12px 14px;border-radius:9px;background:#f0f5ec;border:1px solid #dce7d7;color:#5d7a52;font-size:12px;line-height:1.8}
.site-notice.is-warning{background:#fff7e7;border-color:#f1e2bf;color:#96702f}
.site-notice .sn-icon{flex:none;margin-top:1px;display:grid;place-items:center}
.site-notice .sn-icon svg{width:16px;height:16px}
.site-notice .sn-body{min-width:0;flex:1}
.site-notice .sn-body p{margin:0;overflow-wrap:anywhere}
.site-notice .sn-close{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:6px;color:inherit;opacity:.7}
.site-notice .sn-close:hover{opacity:1;background:#0000000f}
.site-notice .sn-close svg{width:13px;height:13px;stroke-width:2.2}
@media(max-width:980px){.site-notice{margin:12px 20px 0}}
@media(max-width:700px){.site-notice{margin:10px 14px 0;padding:10px 12px;font-size:11.5px}}
/* Header buttons for 联系我们 / 站点公告 (2026-11-16).
 *
 * They are .icon-button like the help link next to them, so the row reads as one
 * set instead of four different button styles. The differences are only the
 * ones that carry meaning: a dot for "there is a QR to scan", and the amber tint
 * for an important notice — the same colour the banner uses, so the header and
 * the banner agree about what counts as urgent. */
.topbar .icon-button{cursor:pointer}
.topbar .icon-button.has-dot{position:relative}
.topbar .icon-button.has-dot::after{content:"";position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:var(--green);border:1.5px solid #fff}
.topbar .icon-button.is-warning{color:#96702f;border-color:#f1e2bf;background:#fff7e7}
/* Labelled header buttons (联系方式 / 公告). Same family as the 积分 pill so the
 * bar reads as one system: bordered chip, icon + short label. The dot and the
 * amber warning tint carry over unchanged, just repositioned for the wider box. */
.topbar-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#385733;font-size:12px;white-space:nowrap;cursor:pointer}
.topbar-chip svg{width:15px;height:15px}
.topbar-chip:hover{border-color:#cfe0c9;background:#f6faf3}
.topbar-chip.has-dot{position:relative}
.topbar-chip.has-dot::after{content:"";position:absolute;top:-3px;right:-3px;width:7px;height:7px;border-radius:50%;background:var(--green);border:1.5px solid #fff}
.topbar-chip.is-warning{color:#96702f;border-color:#f1e2bf;background:#fff7e7}
.topbar-chip.is-warning:hover{background:#fdf3dd;border-color:#e8d3a4}
/* On a phone the bar holds 徽章+积分+两枚按钮+问号, which with labels no longer
 * fits: shrink the chips' padding and font, and let the row wrap rather than
 * push the page sideways. */
@media(max-width:700px){
 .topbar-chip{height:30px;padding:0 9px 0 7px;font-size:11px;gap:5px}
 .topbar-chip svg{width:14px;height:14px}
}
/* Below 460px even the shrunk labels do not fit beside 积分 and the help
 * button, and wrapping squeezes the breadcrumbs into a vertical mess (seen on
 * the 375px screenshot on 2026-11-17). Icons only there; the labelled chips
 * come back above 460px. */
@media(max-width:460px){
 .topbar-chip span{display:none}
 .topbar-chip{padding:0 8px}
}
/* The notice/contact cards inside the dialog. */
.contact-card{display:grid;gap:18px}
.contact-card.two-col{grid-template-columns:minmax(0,1fr) 180px;align-items:start;gap:22px}
.contact-list{display:grid;gap:2px;min-width:0}
.contact-row{display:flex;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.contact-row:last-child{border-bottom:0}
.contact-label{flex:none;width:52px;color:var(--muted);font-size:11px}
.contact-value{flex:1;min-width:0;font-size:12.5px;overflow-wrap:anywhere}
.contact-note{margin:10px 0 0;color:var(--muted);font-size:11.5px;line-height:1.9;overflow-wrap:anywhere}
.contact-qr{margin:0;text-align:center}
.contact-qr img{display:block;width:180px;height:180px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff;padding:6px}
.contact-qr figcaption{margin-top:7px;color:var(--muted);font-size:10.5px}
.contact-empty{margin:0;padding:18px 0;color:var(--muted);font-size:12px;text-align:center}
.notice-card{display:flex;align-items:flex-start;gap:10px;padding:14px;border-radius:9px;background:#f0f5ec;border:1px solid #dce7d7;color:#5d7a52}
.notice-card.is-warning{background:#fff7e7;border-color:#f1e2bf;color:#96702f}
.notice-card .sn-icon{flex:none;margin-top:1px}
.notice-card .sn-icon svg{width:16px;height:16px}
.notice-card .sn-body{min-width:0;flex:1}
.notice-card .sn-body p{margin:0;font-size:12.5px;line-height:1.9;overflow-wrap:anywhere}
.notice-card .sn-body small{display:block;margin-top:8px}
@media(max-width:700px){.contact-card.two-col{grid-template-columns:1fr}.contact-qr img{width:180px;height:180px;max-height:none;margin:0 auto}}
/* The admin-side uploader. Two columns on wide screens (buttons beside the
 * preview) so replacing a QR does not require scrolling past it; stacked on
 * narrow ones so the picture stays legible. */
.contact-qr-upload{display:flex;align-items:flex-start;gap:16px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.contact-qr-upload>div:last-child{flex:1;min-width:0;line-height:1.9}
.contact-qr-preview{display:block;width:132px;height:132px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff;padding:5px}
.contact-qr-upload label.btn{cursor:pointer}
@media(max-width:700px){.contact-qr-upload{flex-direction:column;gap:12px}}
/* Day + customer selectors for the concurrency/spend panel. */
.jobs-scope{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.jobs-scope .js-field{display:flex;flex-direction:column;gap:4px;font-size:10.5px;color:#8ba08a}
.jobs-scope .js-field input,.jobs-scope .js-field select{border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px 10px;font-size:12px;color:#415b3d;min-height:34px;min-width:150px}
/* Spend curve: money actually charged per hour. */
.spend-curve{grid-column:1 / -1;margin-top:4px;padding-top:14px;border-top:1px solid var(--line)}
.sc-head{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;color:#8ba08a;margin-bottom:6px}
.sc-head b{font-size:15px;color:#3a5b40;font-variant-numeric:tabular-nums}
.sc-svg{width:100%;height:64px;display:block}
.sc-foot{display:flex;justify-content:space-between;font-size:9.5px;color:#a8b3a0;margin-top:4px}
/* Concurrency panel: live count, today's peak, and the day's shape. */
.concurrency-panel{display:grid;grid-template-columns:190px 1fr;gap:20px;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px 20px;margin-bottom:16px}
.cc-stats{display:flex;gap:22px}
.cc-stat{text-align:left}
.cc-num{font-size:27px;font-weight:600;letter-spacing:-.5px;color:#3a5b40;font-variant-numeric:tabular-nums;line-height:1.2}
.cc-num.live{color:var(--green)}
.cc-label{font-size:10.5px;color:#8ba08a;margin-top:3px}
.cc-chart{min-width:0}
.cc-bars{display:flex;align-items:flex-end;gap:3px;height:52px}
.cc-bar{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;position:relative}
.cc-bar i{display:block;width:100%;background:#c7dcc4;border-radius:3px 3px 0 0;min-height:2px;transition:background .15s}
.cc-bar:hover i{background:#8fae86}
.cc-bar.is-now i{background:var(--green)}
.cc-bar em{position:absolute;bottom:-15px;font-size:8px;font-style:normal;color:#a8b3a0}
.cc-bar:nth-child(even) em{display:none}
.job-range{margin-bottom:12px}
.job-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 0 2px}
@media(max-width:900px){.concurrency-panel{grid-template-columns:1fr;gap:14px}.cc-bars{height:44px}}
/* Task detail (admin reconciliation): a key/value grid, then the prompt, then
 * the result. Dense on purpose — the operator reads this to answer "what did
 * this customer actually buy". */
/* The model id under the detail title, with a copy button beside it. */
.detail-id-row{display:flex;align-items:center;gap:8px;margin:2px 0 10px;min-width:0}
.detail-id-row .mono{font-size:11px;color:#8ba08a;overflow-wrap:anywhere;min-width:0;flex:1}
.detail-id-row .icon-button{flex:none;height:26px;width:26px;border-radius:6px}
.detail-id-row .icon-button svg{width:13px;height:13px}
.job-detail .jd-grid{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin-bottom:16px;font-size:11.5px}
.job-detail .jd-row{display:contents}
.job-detail .jd-key{color:#8ba08a;white-space:nowrap}
.job-detail .jd-val{color:#3a5b40;overflow-wrap:anywhere;line-height:1.7}
.job-detail .jd-val code{font-size:11px;background:#f2f6ee;border:1px solid #dce7d4;border-radius:4px;padding:1px 5px}
.job-detail .jd-section{margin-top:14px}
.job-detail .jd-section h4{font-size:11px;font-weight:600;color:#657c5d;margin:0 0 7px}
.job-detail .jd-prompt{font-size:11.5px;line-height:1.8;color:#44603f;background:#f7faf3;border:1px solid #e3ecd9;border-radius:8px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow-y:auto}
.job-model-line{display:block;font-size:10px;color:#a1aa96;margin-top:3px;overflow:hidden;text-overflow:ellipsis;max-width:280px}
/* @ mention chooser.
 *
 * Bigger and thumbnail-led on purpose: the customer types "@" while looking at
 * the caret, and picks by recognising a picture. A tight list of filenames
 * anchored under a tall textarea was both far from the eye and hard to aim at.
 */
.mention-pop{position:absolute;z-index:60;background:#fff;border:1px solid #cfdcc7;border-radius:11px;box-shadow:0 14px 44px #23391d2e;overflow:hidden;max-height:min(340px,60vh);overflow-y:auto}
.mention-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:11px;color:#5d7a52;padding:10px 13px;border-bottom:1px solid var(--line);background:#f7faf3;font-weight:600}
.mention-head .mention-hint{font-size:9.5px;font-weight:400;color:#9aa894;white-space:nowrap}
.mention-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 12px;font-size:12px;color:#44603f;background:#fff;border:0;border-bottom:1px solid #f2f6ee;cursor:pointer}
.mention-item:last-child{border-bottom:0}
.mention-item:hover,.mention-item.active{background:#eef5e9}
.mention-item.active{box-shadow:inset 3px 0 0 var(--green)}
.mention-item .mi-thumb{width:38px;height:38px;border-radius:7px;object-fit:cover;flex:none;background:#eef2e9;border:1px solid var(--line)}
.mention-item .mi-thumb.mi-icon{display:grid;place-items:center;color:#8aa07f}
.mention-item .mi-thumb.mi-icon svg{width:17px;height:17px}
.mention-item .mi-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.mention-item .mention-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mention-item .mi-meta{font-size:10px;color:#9aa894}
@media(max-width:700px){.mention-pop{max-height:min(280px,52vh)}.mention-item{padding:8px 10px}.mention-item .mi-thumb{width:32px;height:32px}}

/* Thumbnail lightbox: the big view behind a tile click. */
.lightbox{display:flex;flex-direction:column;gap:12px}
.lightbox .lb-media{max-width:100%;max-height:60vh;border-radius:9px;display:block;margin:0 auto;background:#eef2e9}
.lightbox .lb-media.lb-empty{padding:40px 20px;text-align:center;color:#9aa894;display:grid;place-items:center;gap:10px}
.lightbox .lb-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#7b8e6c;flex-wrap:wrap}
.lightbox .lb-toggle input{accent-color:var(--green)}
.lightbox .lb-toggle .lb-toggle-label{margin-left:2px}
/* Result history: a card per job, newest first. The old panel held one job and
 * reset on reload; this is the account's generation record. */
.sh-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.sh-toolbar .sh-search{flex:1;min-width:150px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 11px;font-size:12px;color:#415b3d;min-height:36px}
.sh-toolbar .sh-date{border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px 10px;font-size:12px;color:#415b3d;min-height:36px}
/* Today's counters. Zero-count buckets stay hidden; 今天完成 always shows. */
.sh-counts{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:#f7faf3}
.sh-counts .sc-item{font-size:11px;color:#64785a;display:inline-flex;align-items:baseline;gap:5px}
.sh-counts .sc-item b{font-size:15px;color:#3a5b40;font-variant-numeric:tabular-nums}
/* What was asked for, leading each history card. */
.sh-prompt{font-size:11.5px;line-height:1.8;color:#44603f;background:#f7faf3;border:1px solid #e3ecd9;border-radius:8px;padding:9px 12px;margin-bottom:10px;overflow-wrap:anywhere;white-space:pre-wrap}
.sh-refs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.sh-ref{width:44px;height:44px;border-radius:7px;overflow:hidden;border:1px solid var(--line);background:#eef2e9;display:grid;place-items:center;cursor:zoom-in;flex:none}
.sh-ref:hover{border-color:#b7cbb9}
.sh-ref img{width:100%;height:100%;object-fit:cover;display:block}
.sh-ref .sh-ref-icon{color:#8aa07f}.sh-ref .sh-ref-icon svg{width:16px;height:16px}
/* Copyable job id. */
.sh-id{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:10.5px;color:#8ba08a}
.sh-id .mono{overflow-wrap:anywhere}
.sh-copy{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--green);padding:3px 7px;border:1px solid #d5e0cf;border-radius:6px;background:#fff;flex:none}
.sh-copy:hover{background:#f2f6ee}
.sh-copy svg{width:12px;height:12px}
.sh-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px 16px;margin-bottom:12px}
.sh-card.is-live{border-color:#b7cbb9;background:#fbfdfa}
.sh-card .studio-steps{margin-bottom:12px}
.sh-card .job-summary{margin-bottom:12px;background:#f7faf3}
.sh-card .result-images{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.sh-card video{max-height:420px}
.sh-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}
.sh-pager .sh-page-label{font-size:11px;color:#879b76;font-variant-numeric:tabular-nums}
.sh-pager .sh-page-num{min-width:30px;padding:5px 8px}
.sh-pager .sh-page-num.active{background:var(--green);border-color:var(--green);color:#fff}
.sh-jump{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#879b76}
.sh-jump-input{width:62px;border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:12px;color:#415b3d;text-align:center}
.sh-none{margin-top:8px}
/* One-line note for a settled job without media — replaces the tall empty()
 * block that used to leave a blank slab in the history flow. */
.sh-quiet{font-size:11px;color:#8ba08a;margin:4px 0 0;line-height:1.8}
/* --- Result grid (2026-11-15) -------------------------------------------
 * Cover-first cards in an auto-fill grid. The measured width of the result
 * panel at the operator's viewport is 774px; minmax(214px,1fr) puts three
 * 237px cards there — the same shape as the 即梦 batch page (212px cards),
 * which is what was asked for ("我改成我截图中那样"). Four columns need
 * ≥930px, so three is the honest maximum at this width.
 *
 * The card is a button: the whole surface opens the detail dialog, so it
 * gets a hover lift and a visible focus ring rather than nested controls. */
.shg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(214px,1fr));gap:14px;align-items:start}
.shg-card{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;flex-direction:column}
.shg-card:hover{border-color:#b7cbb9;box-shadow:0 4px 14px #23391d12;transform:translateY(-2px)}
.shg-card:focus-visible{outline:3px solid #91bea3;outline-offset:2px}
.shg-card.is-live{border-color:#b7cbb9;background:#fbfdfa}
/* The cover is the only thing that changes shape between a finished job and
 * one still running, so it carries the status: a clip/image when there is one,
 * a spinner or the reason when there is not. */
.shg-cover{position:relative;aspect-ratio:16/9;background:#eef2e9;overflow:hidden;display:grid;place-items:center}
.shg-cover img,.shg-cover video{width:100%;height:100%;object-fit:cover;display:block}
.shg-cover video{pointer-events:none}
.shg-cover-note{font-size:10.5px;color:#8ba08a;text-align:center;padding:0 10px;line-height:1.6}
.shg-cover-live{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10.5px;color:#7d9f66}
.shg-spin{width:19px;height:19px;border:2px solid #cbd9cd;border-top-color:var(--green);border-radius:50%;animation:spin .9s linear infinite}
.shg-badge{position:absolute;top:7px;left:7px}
.shg-badge .pill{font-size:9.5px;padding:2px 6px;box-shadow:0 1px 3px #23391d1a}
.shg-kind{position:absolute;top:7px;right:7px;background:#ffffffd9;border:1px solid var(--line);color:#6b8260;border-radius:5px;padding:2px 6px;font-size:9.5px;white-space:nowrap}
.shg-body{padding:9px 11px 10px;display:flex;flex-direction:column;gap:5px;flex:1}
.shg-title{font-size:11.5px;font-weight:650;line-height:1.5;color:#3a5b40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Two lines, hard-stopped. The full text is one click away in the dialog —
 * this is a scanning surface, not a reading surface. */
.shg-prompt{font-size:10.5px;line-height:1.65;color:#7d8d83;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.6em;overflow-wrap:anywhere}
.shg-prompt-empty{color:#aeb8ab;font-style:italic}
.shg-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px;border-top:1px solid #f0f3ee;font-size:10px;color:#9aa894}
.shg-when{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shg-cost{white-space:nowrap;color:#879b76}
.shg-cost b{color:#3a5b40;font-weight:650;font-variant-numeric:tabular-nums}
/* Detail dialog: the parts that no longer fit on a card. */
.sh-detail-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.sh-detail-model{font-size:13px;font-weight:650;color:#3a5b40;overflow-wrap:anywhere}
.sh-detail-time{font-size:10.5px;color:#9aa894;font-variant-numeric:tabular-nums}
@media(max-width:700px){.shg-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.shg-prompt{-webkit-line-clamp:2}}
/* The history flows with the page instead of owning an internal scrollbar: a
 * fixed-height box was what produced the large blank area under a short list
 * ("底下的空白是干嘛的" — 2026-11-15). */
.studio-history{padding:20px 0 0}

@media(max-width:700px){.sh-card{padding:12px}.sh-card video{max-height:300px}}
.studio-drop{border:1.5px dashed #c8d6c2;border-radius:12px;background:#fbfdfa;padding:13px 12px;text-align:center;transition:border-color .15s,background .15s}

.studio-drop:hover{border-color:#8fae86;background:#f5f9f2}
.studio-drop .sd-icon{color:#7d9f66;margin-bottom:5px}
.studio-drop .sd-icon svg{width:17px;height:17px}
.studio-drop .sd-title{font-size:12.5px;font-weight:600;color:#3a5b40}
.studio-drop .sd-hint{font-size:10.5px;color:#8ba08a;margin-top:4px;line-height:1.65}
.studio-drop .sd-limits{font-size:10px;color:#9aa894;margin-top:3px}
.studio-drop .sd-picked{font-size:11px;color:#4e9163;margin-top:8px;font-weight:550}
.studio-drop .sd-actions{display:flex;gap:7px;justify-content:center;margin-top:10px;flex-wrap:wrap}
.studio-drop .sd-actions .btn{padding:5px 11px;min-height:28px;font-size:11px}
.studio-drop .sd-actions .btn.ghost{background:transparent;border-color:#d5e0cf;color:#6b8260}
.studio-drop .sd-actions .btn.ghost:hover{background:#f2f6ee}
/* Thumbnails, one row that wraps. The old file list was one full-width text row
 * per file, so four references made the card taller than the result panel and
 * the only cue to which image was which was its filename. */
.studio-thumbs{margin-top:9px;text-align:left}
.studio-thumbs .sth-empty{margin:0;font-size:10.5px;color:#9aa894}
.sth-row{display:flex;flex-wrap:wrap;gap:7px;max-height:126px;overflow-y:auto;overscroll-behavior:contain;padding:1px}
/* A tile is now picture + filename, stacked. The picture keeps its 56×56 box;
 * the label below is what makes a row of thumbnails readable at all — the
 * customer has to match a tile to the "@名字" they just typed. */
.sth{position:relative;display:flex;flex-direction:column;align-items:center;flex:none;width:62px;cursor:pointer;transition:border-color .15s}
.sth .sth-pic{position:relative;display:block;width:56px;height:56px;border-radius:8px;overflow:hidden;background:#eef2e9;border:1.5px solid var(--line);transition:border-color .15s}
.sth:hover .sth-pic{border-color:#b7cbb9}
.sth .sth-name{display:block;width:100%;margin-top:3px;font-size:9.5px;line-height:1.4;color:#7b8e6c;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sth .sth-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sth .sth-pic .sth-icon{display:grid;place-items:center;width:100%;height:100%;color:#8aa07f}
.sth .sth-icon svg{width:20px;height:20px}
/* The checkbox stays in the DOM because the submit reads it by name; it is
 * visually hidden and driven by clicking the tile. */
/* Delete. Visually 16px so it does not eat the picture, but the hit area is
 * padded out to ~28px with a transparent border, which is the smallest target
 * that is still reliably clickable with a mouse and usable on touch.
 *
 * Always visible, not hover-only: the complaint that started this change was
 * "上传之后没法删除了" — an affordance you can only find by hovering is not a
 * way to delete something. It darkens on hover instead. */
.sth-del{position:absolute;right:3px;top:0;z-index:2;width:28px;height:28px;display:grid;place-items:center;padding:0;border:6px solid transparent;background-clip:content-box;border-radius:0 8px 0 8px;background-color:#203d3599;color:#fff;transition:background-color .12s}
.sth-del svg{width:11px;height:11px;stroke-width:2.6}
.sth-del:hover{background-color:var(--danger)}
.sth-del:focus-visible{outline:2px solid #fff;outline-offset:-2px}
/* Uploading tile: local preview underneath, progress bar across the bottom,
 * percentage on top. The percentage is text, not just a colour, so progress is
 * readable without relying on hue. */
.sth-pending{cursor:default;border-style:dashed}
.sth-pending.is-failed{border-color:#e0b6ab;background:#fdf3ef}
.sth-pending.is-failed img{filter:grayscale(1) brightness(.92)}
.sth-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#203d3533}
.sth-bar i{display:block;height:100%;background:var(--green);transition:width .15s linear}
.sth-bar i.indeterminate{animation:sth-slide 1.1s ease-in-out infinite}
@keyframes sth-slide{0%{margin-left:-35%}100%{margin-left:100%}}
.sth-pct{position:absolute;left:0;right:0;bottom:3px;font-size:9px;line-height:13px;color:#fff;background:#203d3573;text-align:center;letter-spacing:.2px}
.sth-pending.is-failed .sth-pct{background:#a15b4dd9}
@media(max-width:700px){.studio-drop{padding:11px 9px}.studio-drop .sd-actions .btn{padding:5px 9px}}

/* --- Result clip in the detail dialog (2026-11-21) -----------------------
 * The studio's detail dialog puts a <video> straight into .dialog-body, and
 * there was no rule for it: a 1280px-wide clip rendered at its natural size,
 * overflowed the 560px dialog and produced a horizontal scrollbar. Capping by
 * max-width *and* max-height keeps the clip inside without letterboxing, and
 * the dialog itself now takes the clip's own ratio — a 9:16 result gets a tall
 * narrow box instead of being squeezed into a landscape one. */
.dialog-body video{display:block;max-width:100%;max-height:min(70vh,620px);width:auto;height:auto;object-fit:contain;background:#0f1511;border-radius:9px;margin:0 auto 10px}
dialog[data-ratio="9:16"]{width:min(430px,calc(100% - 30px))}
dialog[data-ratio="3:4"]{width:min(520px,calc(100% - 30px))}
dialog[data-ratio="1:1"]{width:min(600px,calc(100% - 30px))}
dialog[data-ratio="4:3"]{width:min(760px,calc(100% - 30px))}
dialog[data-ratio="16:9"]{width:min(880px,calc(100% - 30px))}
dialog[data-ratio="21:9"]{width:min(980px,calc(100% - 30px))}
@media(max-width:700px){dialog[data-ratio]{width:calc(100% - 20px)}}
