:root{--bg:#f7f8fc;--paper:#fff;--ink:#22263c;--muted:#687086;--line:#e9ebf3;--primary:#6554dc;--primary-soft:#efedff;--green:#209b77;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 "Microsoft YaHei","PingFang SC","Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-color:var(--primary)}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.35}h2{font-size:20px}h3{font-size:16px}small,.muted{color:var(--muted)}[hidden]{display:none!important}.header{height:82px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 38px;gap:64px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:11px;align-items:center;font-size:21px;font-weight:750;white-space:nowrap}.brand-symbol{display:grid;place-items:center;background:var(--primary);color:#fff;width:40px;height:40px;border-radius:13px;font-size:29px}.brand small{display:block;font-size:8px;letter-spacing:2px;line-height:1.3}.top-nav{display:flex;gap:36px;height:100%;align-items:center}.top-nav a{height:100%;display:flex;align-items:center;gap:8px;color:#73788c;position:relative}.top-nav a.active{color:var(--primary);font-weight:650}.top-nav a.active:after{content:"";position:absolute;height:3px;background:var(--primary);bottom:0;left:0;right:0;border-radius:3px}.header-account{margin-left:auto;display:flex;align-items:center;gap:12px}.avatar{border-radius:50%;width:33px;height:33px;display:grid;place-items:center;background:#edeaff;color:var(--primary);font-weight:650}.mobile-toggle{display:none}.workspace{display:flex;min-height:calc(100vh - 82px)}.sidebar{width:232px;flex-shrink:0;padding:32px 22px 24px;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:82px;height:calc(100vh - 82px)}.sidebar-caption{font-size:11px;letter-spacing:1px;color:#989bad;margin:0 14px 18px}.sidebar nav a{display:flex;align-items:center;gap:14px;padding:12px 15px;margin-bottom:6px;border-radius:10px;color:#73788b}.sidebar nav a span{font-size:20px;width:21px;text-align:center}.sidebar nav a:hover{background:#f7f6ff}.sidebar nav a.active{background:var(--primary-soft);color:var(--primary);font-weight:650}.nav-divider{border-top:1px solid var(--line);margin:22px 14px}.sidebar-bottom{margin-top:auto;padding-top:28px}.help-card{background:linear-gradient(135deg,#f1efff,#f8f9fd);border:1px solid #eae6fc;border-radius:13px;padding:17px}.help-card b{display:block;margin:8px 0;font-size:13px}.help-card p{font-size:11px;color:#9291a7}.help-card a{font-size:12px;color:var(--primary);display:block;margin-top:12px}.tiny-label{font-size:8px;letter-spacing:1px;color:#9690bb}.sidebar-bottom>small{display:block;text-align:center;font-size:10px;margin-top:20px}.main{padding:38px 44px 60px;max-width:1560px;width:calc(100% - 232px);margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:#989bae;font-weight:650;margin-bottom:9px}.page-heading p{color:var(--muted);margin-top:10px;font-size:13px}.button{border:1px solid transparent;border-radius:9px;background:var(--primary);color:#fff;padding:11px 21px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:550;white-space:nowrap;transition:.18s}.button:hover{background:#5543ca;transform:none}.button.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.button.secondary:hover{border-color:#bbb2eb;background:#f9f8ff}.button.small{padding:7px 13px;font-size:12px}.button.danger{background:#fff2f1;color:#c75b54}.text-button{background:none;border:0;color:var(--primary);padding:0;font-size:12px}.hero{padding:35px 37px;border-radius:var(--radius);background:linear-gradient(105deg,#eeeaff 0%,#f4f0ff 48%,#eaf3ff 100%);display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;border:1px solid #e7e2f9;margin-bottom:25px}.hero h2{font-size:27px;margin:10px 0}.hero p{color:#82809a;font-size:13px;max-width:470px}.hero .button{margin-top:23px}.hero-art{width:210px;height:160px;position:relative;flex-shrink:0;margin-right:24px}.orb{position:absolute;border-radius:32px;background:linear-gradient(140deg,#afa3ff,#6b5bdd);width:108px;height:108px;top:20px;left:60px;transform:rotate(-19deg);box-shadow:12px 22px 35px #8274d737;display:grid;place-items:center;color:white;font-size:55px}.orb:before,.orb:after{content:"✧";position:absolute;font-size:36px;color:#9c90db;left:-57px;top:45px}.orb:after{left:135px;top:-12px;font-size:27px}.art-chip{position:absolute;bottom:2px;left:14px;background:#ffffffdd;border:1px solid white;border-radius:10px;padding:8px 16px;color:#8275cd;font-size:10px;box-shadow:0 8px 20px #51468210;letter-spacing:2px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:22px 24px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#7c8195;font-size:12px}.stat-top span{background:#f3f1fc;padding:3px 8px;border-radius:7px;color:#8b7bd5}.stat b{display:block;font-size:29px;letter-spacing:-.8px;font-weight:650;margin:12px 0 3px}.stat small{font-size:10px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.quick{border:1px solid var(--line);padding:23px;background:#fff;border-radius:15px;display:flex;align-items:center;gap:15px;transition:.2s}.quick:hover{border-color:#c9c0ed;transform:none}.quick i{font-style:normal;font-size:24px;background:#f0edff;color:#8475d4;padding:5px 14px;border-radius:11px}.quick b{display:block;font-size:13px}.quick small{font-size:11px}.quick em{font-style:normal;color:#aaa1d4;margin-left:auto}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:25px;margin-bottom:22px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:21px}.section-head p{font-size:12px;color:var(--muted);margin-top:5px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{background:#fafbfe;color:#9397a7;font-weight:500;padding:13px 14px}td{border-bottom:1px solid #f1f2f7;padding:17px 14px}tr:last-child td{border-bottom:0}td.wrap{white-space:normal;min-width:140px;max-width:300px;overflow-wrap:anywhere}.mono{font-family:Consolas,monospace;font-size:11px;color:#777f95}.badge{padding:4px 10px;border-radius:6px;font-size:11px;color:#7c8195;background:#f1f2f6;display:inline-block}.badge.good{background:#e9f8f1;color:#269474}.badge.bad{background:#fff0ef;color:#cb6b65}.badge.busy{background:#efedff;color:#8272ca}.empty{padding:45px 20px;text-align:center;color:#999dad}.empty b{display:block;color:#646a81;margin:12px 0 5px}.empty-symbol{font-size:30px;color:#bdb4e5}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:200px;max-width:350px}.search input{width:100%;padding-left:35px}.search:before{content:"⌕";position:absolute;left:13px;top:7px;color:#9396ab;font-size:21px}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{background:transparent;color:#8a8da1;border:1px solid transparent;border-radius:8px;padding:8px 15px;cursor:pointer}.chip.active{background:var(--primary-soft);color:var(--primary);border-color:#e4defc}.model-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.model-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;flex-direction:column;min-height:250px;transition:.2s}.model-card:hover{box-shadow:0 8px 30px #33296308;border-color:#cfc6ef}.model-icon{width:43px;height:43px;border-radius:12px;background:#edeaff;color:#897ad5;font-size:25px;display:grid;place-items:center;margin-bottom:19px}.model-card h3{margin-bottom:4px;overflow-wrap:anywhere}.model-card p{font-size:12px;color:var(--muted);margin:13px 0 20px;line-height:1.8}.model-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:17px;border-top:1px solid #f1f1f7}.model-foot small{font-size:10px}.two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.field{margin-bottom:18px}.form-grid .field{margin-bottom:0}.field.full{grid-column:1/-1}.field label{display:block;font-size:12px;font-weight:550;margin-bottom:8px}.field small{display:block;margin-top:6px;font-size:11px}input,select,textarea{border:1px solid #e3e5ef;border-radius:8px;background:#fff;padding:10px 13px;color:var(--ink);width:100%;min-width:0}textarea{resize:vertical;min-height:110px}input:focus,select:focus,textarea:focus{border-color:#a397e2;box-shadow:0 0 0 3px #6554dc0b}input::placeholder,textarea::placeholder{color:#b1b3c0;font-size:12px}.form-actions{margin-top:24px;display:flex;align-items:center;gap:15px}.note{padding:16px 18px;border-radius:10px;background:#f5f3ff;color:#8175ad;font-size:12px;line-height:1.9;margin-bottom:20px}.note.success{background:#eef9f3;color:#438768}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:20px;font-size:12px;color:var(--muted)}.result-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;max-height:450px;overflow:auto}.result-media{max-width:100%;max-height:400px;border-radius:10px;display:block;margin:14px auto}.task-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:25px}.task-detail-grid>div>span:first-child{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.task-detail-grid b{font-weight:500;font-size:13px}progress{height:5px;width:100%;accent-color:var(--primary)}.code{border:1px solid #e9e7f1;border-radius:12px;background:#f9f9fc;padding:19px;font:12px/1.9 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;margin:15px 0}.key-reveal{padding:18px;background:#f2f0ff;border:1px solid #dcd6f5;border-radius:12px;margin:20px 0;overflow-wrap:anywhere}.key-reveal code{display:block;padding:15px 0}.loading{min-height:230px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.spinner{width:18px;height:18px;border:2px solid #e5dff5;border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);background:#2e3048;color:white;padding:13px 24px;border-radius:10px;z-index:100;box-shadow:0 10px 40px #29244030;max-width:90vw;font-size:13px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:780px;width:90vw;max-height:85vh;box-shadow:0 25px 100px #20203830;color:var(--ink)}dialog::backdrop{background:#26243e60;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.icon-button{border:0;background:#f5f4fa;border-radius:7px;width:30px;height:30px;font-size:20px;color:#83849a}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 82px)}.auth-story{background:linear-gradient(140deg,#eeeaff,#f0f4ff);padding:90px 12%;display:flex;flex-direction:column;justify-content:center}.auth-story h1{font-size:47px;line-height:1.35;margin:20px 0}.auth-story p{color:#8986a0;max-width:390px;line-height:2}.auth-story .hero-art{margin:45px auto}.auth-form{display:flex;justify-content:center;align-items:center;padding:40px}.auth-box{width:390px;max-width:100%}.auth-box h2{font-size:27px;margin:0 0 8px}.auth-box>p{color:var(--muted);font-size:13px;margin-bottom:28px}.auth-box .button{width:100%}.auth-bottom{text-align:center;font-size:12px;color:#9093a8;margin-top:22px}.auth-bottom a{color:var(--primary)}.form-error{color:#bc605d;font-size:12px;margin-bottom:15px;min-height:18px}.docs-layout{display:grid;grid-template-columns:240px minmax(0,1fr) 190px;gap:45px;width:90%;max-width:1600px;margin:auto;padding:34px 0}.docs-sidebar{position:sticky;top:112px;height:calc(100vh - 150px);overflow:auto}.docs-sidebar input{background:#fff;font-size:12px;margin-bottom:28px}.docs-group{font-size:10px;letter-spacing:1px;color:#9b9bad;margin:22px 12px 10px}.docs-sidebar a{display:block;font-size:12px;color:#7f8195;padding:9px 13px;border-radius:8px;margin:4px 0;overflow-wrap:anywhere}.docs-sidebar a.active{color:var(--primary);background:var(--primary-soft);font-weight:600}.docs-article{padding:15px 0 80px;min-width:0}.docs-article h1{font-size:34px;margin:10px 0 18px}.docs-article h2{font-size:22px;margin:38px 0 16px;scroll-margin-top:105px}.docs-article h3{font-size:17px;margin:26px 0 12px;scroll-margin-top:105px}.docs-article p,.docs-article li{font-size:14px;color:#73798d;line-height:1.95;margin:14px 0}.docs-article a{color:var(--primary)}.docs-article code:not(pre code){background:#f0eef8;border-radius:5px;color:#786aa7;font-size:12px;padding:3px 6px}.docs-article pre{position:relative;background:#252739;color:#e1e1ed;border-radius:13px;padding:25px;font:12px/1.9 Consolas,monospace;overflow:auto;white-space:pre}.docs-article pre button{position:absolute;right:12px;top:10px;border:1px solid #555365;background:#35364b;color:#dddbea;border-radius:5px;font-size:10px;padding:3px 8px}.docs-article table{white-space:normal;border:1px solid var(--line);margin:18px 0}.docs-article blockquote{border-left:3px solid #bdb4ea;margin:20px 0;background:#f1eefb;padding:12px 20px;color:#858097}.docs-toc{position:sticky;top:122px;align-self:start;border-left:1px solid var(--line);padding-left:20px;font-size:11px}.docs-toc b{font-weight:550;display:block;margin-bottom:15px}.docs-toc a{display:block;color:#9296a8;margin:11px 0}.docs-footer{border-top:1px solid var(--line);margin-top:45px;padding-top:25px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.recharge-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.amount-choice{padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:center;font-size:21px;color:#72728b}.amount-choice.active{border-color:var(--primary);background:#f4f1ff;color:var(--primary)}.amount-choice small{font-size:10px;display:block}.error-panel{text-align:center;padding:45px;background:white;border:1px solid var(--line);border-radius:15px}.error-panel p{color:var(--muted);margin:12px}.status-dot{width:6px;height:6px;background:#5dbb94;border-radius:50%;display:inline-block;margin-right:6px}@media(min-width:1700px){.main{padding-left:65px;padding-right:65px}}@media(max-width:1200px){.header{gap:35px;padding:0 24px}.main{padding:30px 26px}.model-grid{grid-template-columns:repeat(2,1fr)}.docs-layout{grid-template-columns:210px minmax(0,1fr);gap:30px}.docs-toc{display:none}.hero-art{margin-right:0}.stat{padding:20px 16px}}@media(max-width:900px){.sidebar{width:190px;padding:28px 12px}.main{width:calc(100% - 190px);padding:25px 20px}.stats{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.top-nav{gap:20px}.hero-art{display:none}.hero{padding:26px}.model-grid{grid-template-columns:1fr}.auth-story{padding:50px 10%}.auth-story h1{font-size:35px}}@media(max-width:650px){.header{height:68px;padding:0 16px;gap:15px}.brand{font-size:18px}.brand-symbol{width:34px;height:34px;font-size:25px}.top-nav{gap:15px;margin-left:auto;font-size:12px}.top-nav a:first-child{display:none}.header-account{display:none}.mobile-toggle{display:block;border:0;background:#f1eefb;color:var(--primary);border-radius:6px;padding:5px 10px}.sidebar{position:fixed;left:0;top:68px;height:calc(100vh - 68px);z-index:15;transform:translateX(-100%);transition:.2s;box-shadow:10px 0 40px #38344415}.sidebar.open{transform:translateX(0)}.workspace{min-height:calc(100vh - 68px)}.main{width:100%;padding:25px 18px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:26px}.page-heading .button{font-size:11px;padding:9px 12px}.hero h2{font-size:23px}.stats{gap:10px}.stat b{font-size:25px}.form-grid{grid-template-columns:1fr}.model-grid{gap:14px}.panel{padding:19px}.auth-layout{grid-template-columns:1fr}.auth-story{display:none}.auth-form{padding:45px 25px}.docs-layout{grid-template-columns:1fr;padding:20px;gap:0}.docs-sidebar{position:static;height:auto;margin-bottom:20px;padding:10px;border:1px solid var(--line);border-radius:12px}.docs-sidebar input{margin-bottom:8px}.docs-sidebar .docs-group{margin-top:12px}.docs-article h1{font-size:29px}.recharge-options{gap:8px}.amount-choice{padding:12px}.task-detail-grid{grid-template-columns:1fr}}

.mobile-logout{display:none}@media(max-width:650px){.mobile-logout{display:block;margin:18px auto}.docs-sidebar{display:none}.docs-sidebar.open{display:block}}

@media(max-width:650px){.sidebar{overflow-y:auto}.sidebar-bottom{padding-bottom:20px}}

.ui-icon{width:22px;height:22px;flex-shrink:0;display:block}.model-icon .ui-icon{width:26px;height:26px}
.docs-article p,.docs-article li{color:#505a70;font-size:15px}.docs-sidebar a{color:#596277;font-size:14px}.docs-group{font-size:12px;color:#727a8d}.sidebar nav a{color:#586176}.field label,th,td,.model-card p{font-size:13px}.stat small,.quick small,.field small,.model-foot small{font-size:12px;color:#687086}.eyebrow{color:#737d90}.page-heading p{font-size:14px}.sidebar-caption{font-size:12px;color:#737d90}.model-prices{margin-top:auto;padding:8px 0 16px}.price-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;padding:6px 0;border-bottom:1px dashed #ececf5}.price-row span{color:#637087}.price-row b{font-weight:600;color:#40376d;text-align:right}.price-row small{display:block;color:#72798b;font-size:11px;font-weight:400}.model-foot{margin-top:0}.task-search-form{display:flex;gap:9px;align-items:center;flex:1;min-width:220px}.task-search-form .search{max-width:320px}.docs-article pre{font-size:13px;line-height:1.8;tab-size:2}

.model-card{padding:20px}.model-foot{justify-content:flex-end}.price-row{flex-direction:column;align-items:flex-start;gap:3px}.price-row b{white-space:nowrap;font-size:12px;text-align:left}.price-row .price-unit{display:inline;font-size:10px;white-space:nowrap}

.request-preview .section-head{align-items:flex-start;gap:10px}.request-preview h3{font-size:15px}.request-preview .code{max-height:460px;overflow:auto;white-space:pre;font-size:12px;line-height:1.8}.request-endpoint{display:flex;gap:10px;align-items:center;font-size:12px}.request-endpoint span{color:#24876b;background:#e9f6ef;padding:3px 7px;border-radius:5px;font-weight:600}.request-preview-status{font-size:12px;color:var(--muted);margin:10px 0 16px;line-height:1.8}

/* Compact workspace headings. */
.main{padding-top:24px}
.page-heading{margin-bottom:20px;align-items:center}
.page-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:16px;row-gap:4px;min-width:0}
.page-heading .eyebrow{display:none}
.page-heading h1{font-size:25px;line-height:1.4;letter-spacing:0;flex-shrink:0}
.page-heading p{margin:0;font-size:13px;line-height:1.6}
.page-heading .button{padding:9px 16px;font-size:13px}
@media(max-width:650px){.main{padding-top:18px}.page-heading{margin-bottom:16px;gap:12px}.page-heading>div{column-gap:10px;row-gap:2px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.page-heading .button{padding:8px 11px;font-size:12px}}

.result-asset{margin:18px 0 24px}.result-asset figcaption{text-align:center;margin-top:10px}

.task-parameters{max-height:360px;white-space:pre;}

dialog:has(.task-detail-grid){max-width:1180px;width:90vw;}
/* Shared search inputs: fixed icon geometry and consistent alignment. */
.search{min-width:180px;max-width:360px}
.search input{min-height:46px;padding:11px 14px 11px 44px;font-size:14px;border-radius:10px;background:#fcfcff}
.search input::placeholder{font-size:13px;color:#8991a3}
.search:before{content:"";position:absolute;left:15px;top:50%;transform:translateY(-50%);width:20px;height:20px;background:var(--muted);pointer-events:none;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 5 5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.docs-search{margin-bottom:24px;width:100%;min-width:0}.docs-sidebar .docs-search input{margin-bottom:0}
.dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.task-toolbar select{max-width:180px;min-height:46px}.task-search-form{min-width:240px}.task-search-form .search{max-width:none}
.key-filter-toolbar select{max-width:330px;min-height:46px}.task-actions{display:flex;align-items:center;gap:14px}
.model-picker{position:relative}.model-picker>summary{padding:11px 36px 11px 13px;border:1px solid #e3e5ef;border-radius:9px;cursor:pointer;list-style:none;position:relative;font-size:14px;background:#fff}
.model-picker>summary::-webkit-details-marker{display:none}.model-picker>summary:after{content:"⌄";position:absolute;right:14px;top:9px;color:var(--muted)}
.model-picker[open]>summary{border-color:#a397e2;box-shadow:0 0 0 3px #6554dc0b}
.model-picker-panel{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:10;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #27213e18;padding:12px}
.model-picker-panel .search{max-width:none;min-width:0;margin-bottom:10px}.model-picker-results{max-height:280px;overflow-y:auto}
.model-option{width:100%;display:block;text-align:left;border:0;background:#fff;border-radius:8px;padding:10px 12px;color:var(--ink)}
.model-option:hover,.model-option:focus-visible,.model-option.selected{background:var(--primary-soft);color:var(--primary)}
.model-option b{display:block;font-size:14px;font-weight:550}.model-option small{display:block;font-size:12px;margin-top:2px}.picker-empty{font-size:13px;color:var(--muted);text-align:center;padding:20px}
.usage-filter{align-items:flex-end}.usage-filter .field{margin:0;max-width:210px;flex:1}.usage-filter>span{padding-bottom:10px}.usage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.usage-days{border:1px solid var(--line);border-radius:12px;overflow:hidden}.usage-day+ .usage-day{border-top:1px solid var(--line)}
.usage-day summary{display:flex;gap:16px;align-items:center;padding:16px 20px;cursor:pointer;font-size:14px;list-style:none}.usage-day summary::-webkit-details-marker{display:none}
.usage-day summary>b{flex:1;font-weight:550}.usage-day summary>span{min-width:115px;text-align:right;color:var(--muted)}.usage-day summary>span:last-child{min-width:85px;color:var(--primary)}
.usage-day summary:hover,.usage-day[open] summary{background:#f8f7ff}.usage-product-detail{padding:5px 20px 18px}.usage-product-detail .empty{padding:20px}
@media(max-width:1200px){.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.task-search-form{width:100%;min-width:0}.key-filter-toolbar .search,.key-filter-toolbar select{width:100%;max-width:none}.usage-filter .field{min-width:125px}.usage-day summary{flex-wrap:wrap;padding:14px;gap:8px}.usage-day summary>b{flex-basis:100%}.usage-day summary>span{min-width:0;flex:1;text-align:left}.usage-product-detail{padding:0 10px 10px}.dashboard-stats .stat:last-child{grid-column:1/-1}.docs-search{margin-bottom:12px}.model-picker-panel{padding:8px}}
.sidebar{overflow-y:auto}
@media(max-width:650px){.task-toolbar select{flex:1;min-width:125px;max-width:none}.task-search-form{flex:0 0 100%;width:100%}.task-search-form .search{min-width:0}.task-search-form .button{flex-shrink:0}}
@media(max-width:650px){.usage-filter .field{flex:0 0 100%;max-width:none}.usage-filter>span{display:none}}
/* Integrated task filters. */
.task-toolbar{gap:10px;margin-bottom:12px;align-items:center}
.task-toolbar select{flex:0 0 138px;max-width:none;min-width:0;font-size:13px}
.task-toolbar #task-source{flex-basis:160px}
.task-toolbar .task-model-search{flex:1 1 170px;max-width:none;min-width:150px}
.task-toolbar>.button{flex-shrink:0;min-height:46px}
.task-record-count{text-align:right;font-size:12px;color:var(--muted);margin-bottom:18px}
.task-key-picker{position:relative;flex:0 0 215px;min-width:0}
.task-key-picker>summary{list-style:none;cursor:pointer;position:relative;min-height:46px;padding:11px 31px 11px 13px;border:1px solid #e3e5ef;border-radius:9px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff}
.task-key-picker>summary::-webkit-details-marker{display:none}.task-key-picker>summary::marker{content:""}
.task-key-picker[open]>summary{border-color:#a397e2;box-shadow:0 0 0 3px #6554dc0b}
.task-key-panel{position:absolute;top:calc(100% + 7px);left:0;width:300px;max-width:calc(100vw - 70px);z-index:10;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px #27213e18;padding:12px}
.task-key-panel .search{min-width:0;margin-bottom:8px;max-width:none}
/* Usage report views. */
.usage-controls{padding:18px 22px;margin-bottom:20px}
.usage-filter{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.usage-date-range{display:flex;gap:14px;align-items:flex-end;flex:1;max-width:465px}
.usage-date-range .field{margin:0;flex:1;max-width:none;min-width:0}.usage-date-range label{color:var(--muted);font-size:12px;font-weight:400}.usage-date-range input{min-height:44px;font-size:14px}
.usage-date-divider{padding-bottom:10px;color:#a4a9b8}.usage-filter-actions{display:flex;gap:10px;align-items:center}
.usage-report{padding:0;overflow:hidden}.usage-report-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid var(--line)}
.usage-tabs{display:flex;gap:4px;padding:5px;border-radius:12px;background:#f3f3f9}
.usage-tab{padding:9px 17px;border:0;border-radius:8px;background:transparent;color:#747c90;white-space:nowrap;font-size:14px;transition:background .15s,color .15s}
.usage-tab:hover{color:var(--primary)}.usage-tab.active{background:#fff;color:var(--primary);box-shadow:0 2px 7px #2f245c0b;font-weight:600}.usage-tab:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.usage-range{color:var(--muted);font-size:12px;white-space:nowrap}
.usage-report [role=tabpanel]{padding:24px}.usage-overview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.usage-overview-stats .stat{background:#fafbff;border-color:#edf0f8;padding:20px}.usage-overview-stats .stat:nth-child(2){background:linear-gradient(120deg,#f6f3ff,#fbfaff);border-color:#eee8ff}.usage-overview-stats .stat:nth-child(2) b{color:var(--primary)}
.usage-trends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.usage-trend{border:1px solid var(--line);border-radius:14px;padding:20px 18px 14px;background:#fff;min-width:0}
.usage-trend-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.usage-trend-head h3{font-size:14px;font-weight:550}.usage-trend-head>span{font-size:11px;color:var(--muted);background:#f5f4fb;border-radius:5px;padding:3px 7px}
.usage-chart-scroll{overflow-x:auto}.usage-chart{display:flex;gap:5px;min-height:180px;padding-top:2px}
.usage-bar-column{flex:1;min-width:17px;display:flex;flex-direction:column;align-items:center;position:relative}
.usage-bar-value{font-size:10px;line-height:20px;color:#858197;white-space:nowrap;visibility:hidden}.usage-bar-column:hover .usage-bar-value{visibility:visible}
.usage-bar-track{height:125px;width:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #e9eaf2;background:repeating-linear-gradient(to top,transparent 0,transparent 30px,#f6f6fa 30px,#f6f6fa 31px)}
.usage-bar{width:72%;max-width:25px;border-radius:5px 5px 0 0;background:linear-gradient(0deg,#8f7ee6,#bcaff6);min-height:0;transition:opacity .15s}.tasks-chart .usage-bar{background:linear-gradient(0deg,#5baeb4,#9bd1d4)}.usage-bar-column:hover .usage-bar{opacity:.75}
.usage-bar-date{font-size:9px;color:#9ba2b2;line-height:26px;white-space:nowrap}
.usage-points{color:var(--primary);font-weight:550}
@media(max-width:1100px){.task-toolbar .task-model-search{flex-basis:240px}.usage-report-head{flex-wrap:wrap;gap:10px}.usage-trends{grid-template-columns:1fr}}
@media(max-width:650px){.task-toolbar select,.task-toolbar #task-source{flex:1 1 calc(50% - 5px);min-width:0;max-width:none}.task-key-picker{flex:0 0 100%}.task-key-panel{width:100%;max-width:none}.task-toolbar .task-model-search{flex:1 1 calc(100% - 90px);min-width:0}.task-toolbar>.button{padding:10px 18px}.usage-controls{padding:16px}.usage-filter{gap:14px}.usage-date-range{width:100%;flex-basis:100%;flex-wrap:wrap;gap:10px}.usage-date-range .field{flex:1 1 100%;min-width:0}.usage-date-divider{display:none}.usage-filter-actions{width:100%}.usage-filter-actions .button{flex:1;font-size:13px}.usage-report-head{padding:14px}.usage-tabs{width:100%;gap:2px}.usage-tab{flex:1;padding:9px 8px;font-size:13px}.usage-report [role=tabpanel]{padding:16px}.usage-overview-stats{grid-template-columns:1fr;gap:10px;margin-bottom:16px}.usage-overview-stats .stat{padding:16px 18px}.usage-overview-stats .stat b{font-size:26px;margin:4px 0}.usage-trend{padding:16px 12px 10px}.usage-trend-head{margin-bottom:15px}.usage-trends{gap:12px}}

/* Consistent disclosure arrows and task date filters. */
.model-picker>summary:after{content:"";display:inline-block;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s;color:var(--muted)}
.model-picker>summary:after{position:absolute;right:15px;top:calc(50% - 6px)}
.model-picker[open]>summary:after{transform:translateY(3px) rotate(225deg)}
.task-toolbar{--filter-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23687086' stroke-width='1.5'/%3E%3C/svg%3E")}
.task-toolbar select{appearance:none;padding-right:34px;background:#fff var(--filter-chevron) right 11px center/16px 16px no-repeat}
.task-key-picker>summary{padding-right:34px}
.task-key-picker>summary:after{content:"";position:absolute;right:11px;top:50%;width:16px;height:16px;background:var(--filter-chevron) center/16px 16px no-repeat;transform:translateY(-50%);transition:transform .15s;pointer-events:none}
.task-key-picker[open]>summary:after{transform:translateY(-50%) rotate(180deg)}
.usage-day summary .text-button{display:inline-flex;justify-content:flex-end;align-items:center;gap:9px;white-space:nowrap}
.usage-day summary .chevron{display:block;flex:0 0 16px;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/16px 16px no-repeat;transform:rotate(0deg);transform-origin:center;transition:transform .15s}
.usage-day[open] summary .chevron{transform:rotate(180deg)}
.task-date-range{display:flex;align-items:center;gap:8px;flex:0 1 310px;min-width:0}.task-date-range>span{white-space:nowrap;font-size:12px}.task-date-range input{flex:1;min-width:0;min-height:46px;font-size:13px;padding:10px}
.task-detail-grid>div{min-width:0}.task-detail-grid .badge{white-space:nowrap}.task-detail-grid .mono{overflow-wrap:anywhere}
.wallet-stats{grid-template-columns:minmax(0,1fr);max-width:420px}
@media(max-width:650px){.task-date-range{flex:1 1 100%;flex-wrap:wrap}.task-date-range input{width:calc(50% - 15px)}.usage-day summary .text-button{justify-content:flex-start}}
