html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}body{margin:0;background:#f5f7fb}.login-wrap{display:grid;min-height:100vh;place-items:center;background:linear-gradient(135deg,rgba(22,119,255,.08),transparent 34%),linear-gradient(315deg,rgba(0,179,164,.08),transparent 36%),#f5f7fb}.login-card{width:min(420px,calc(100vw - 32px))}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand-mark{display:grid;width:28px;height:28px;place-items:center;border-radius:7px;background:#111827;color:#fff;font-size:13px}.toolbar-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.accounts-page{display:flex;flex-direction:column;gap:14px}.accounts-stats{display:grid;grid-template-columns:repeat(4,minmax(132px,1fr));gap:12px}.accounts-stat-card{min-width:0;border-color:#e6eaf0}.accounts-stat-card .ant-statistic-title{margin-bottom:4px;color:#64748b}.accounts-stat-card .ant-statistic-content{font-size:22px;font-weight:650}@media (max-width: 900px){.accounts-stats{grid-template-columns:repeat(2,minmax(132px,1fr))}}.account-refresh-progress{border-color:#dbeafe}.account-refresh-head{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.account-refresh-head{margin-bottom:8px;color:#475569}.accounts-page .ant-pro-table-list-toolbar-container,.accounts-page .ant-pro-table-list-toolbar-right{flex-wrap:wrap;row-gap:8px}.accounts-page .ant-table-thead>tr>th,.accounts-page .ant-statistic-title{white-space:nowrap}.logs-page{min-width:0}.logs-rpm-tag{margin-inline-end:0;font-weight:600;white-space:nowrap}.account-json{max-height:420px;margin:0;overflow:auto;padding:12px;border:1px solid #e5e7eb;border-radius:6px;background:#0f172a;color:#e5e7eb;white-space:pre-wrap;overflow-wrap:anywhere}.images-page{min-width:0}.image-storage-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.image-storage-card{min-width:0;border-color:#e6eaf0}.image-storage-card .ant-statistic-title{margin-bottom:4px;color:#64748b}.image-storage-card .ant-statistic-content{font-size:22px;font-weight:650}.image-studio{display:grid;height:calc(100vh - 104px);min-height:640px;grid-template-columns:280px minmax(360px,420px) minmax(460px,1fr);gap:14px;overflow:hidden}.image-studio-panel{min-width:0;overflow:hidden;padding:18px;border:1px solid #e6eaf0;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0f172a0a}.image-panel-head,.image-ref-head,.image-history-top,.image-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.image-panel-head h4,.image-form-panel h3,.image-ref-head h5{margin:0}.image-history-panel,.image-form-panel,.image-preview-panel{display:flex;min-height:0;flex-direction:column;gap:14px}.image-history-list,.image-form-panel,.image-preview-panel .ant-spin-nested-loading,.image-preview-panel .ant-spin-container{min-height:0}.image-history-list,.image-form-panel{overflow-y:auto;padding-right:2px}.image-form-panel{scrollbar-width:thin;scrollbar-color:#9ca3af transparent}.image-form-panel::-webkit-scrollbar{width:6px}.image-form-panel::-webkit-scrollbar-thumb{border-radius:999px;background:#9ca3af}.image-history-item{display:flex;gap:10px;margin-top:10px;padding:10px;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer}.image-history-item.active{border-color:#1677ff;background:#f5f9ff}.image-history-main{min-width:0;flex:1}.image-history-prompt{display:-webkit-box;margin-top:8px;overflow:hidden;color:#111827;-webkit-box-orient:vertical;-webkit-line-clamp:2}.image-history-meta{margin-top:6px;color:#64748b;font-size:12px}.image-history-thumbs,.image-ref-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.image-history-thumbs img,.image-ref-item img{width:48px;height:48px;border-radius:6px;object-fit:cover}.image-studio-prompt{height:160px!important;resize:none}.image-ref-list{min-height:88px;align-items:center;padding:10px;border:1px dashed #d9dee7;border-radius:8px;color:#8c8c8c}.image-ref-item{position:relative}.image-ref-item .ant-btn{position:absolute;right:-6px;top:-6px}.image-param-block{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.image-segment{display:grid;gap:12px}.image-segment .ant-radio-button-wrapper{height:40px;border:1px solid #ded8d0;border-radius:20px;text-align:center}.image-segment .ant-radio-button-wrapper:before{display:none}.image-quality-segment,.image-count-segment{grid-template-columns:repeat(4,minmax(0,1fr))}.image-size-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.image-dimension-row{display:grid;grid-template-columns:1fr 24px 1fr;gap:10px;align-items:center}.image-dimension-row label{display:flex;height:44px;align-items:center;gap:8px;padding:0 12px;border-radius:14px;background:#e9e6df}.image-dimension-row label span{color:#7a746c;font-weight:650}.image-dimension-row .ant-input-number,.image-dimension-row .ant-input-number-focused,.image-dimension-row .ant-input-number:hover{width:100%;border:0;background:transparent;box-shadow:none}.image-dim-link{color:#9ca3af;text-align:center}.image-ratio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.image-ratio-card{display:flex;height:90px;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #ded8d0;border-radius:14px;background:#fff;color:#111827;cursor:pointer}.image-ratio-card.active{border-color:#111827}.image-ratio-icon{display:block;border:2px solid #2b2926}.image-ratio-auto{display:grid;height:34px;place-items:center}.image-preview-empty{display:grid;height:100%;min-height:360px;place-items:center;border:1px dashed #d9dee7;border-radius:8px}.image-preview-grid{display:grid;height:calc(100vh - 190px);align-items:start;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;overflow:auto;padding-right:4px}.image-preview-item{display:flex;min-width:0;align-self:start;overflow:hidden;flex-direction:column;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.image-preview-item.failed{border-color:#fecaca}.image-preview-media{flex:0 0 auto;aspect-ratio:3 / 2;overflow:hidden;background:#f8fafc}.image-preview-media .ant-image,.image-preview-media img{display:block;width:100%;height:100%}.image-preview-media img{object-fit:cover}.image-preview-loading{display:grid;width:100%;height:100%;place-items:center;color:#94a3b8;font-size:12px}.image-preview-failed{padding:16px;color:#ef4444;text-align:center}.image-preview-footer{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:1px solid #eef0f4;background:#fff}.image-preview-text{min-width:0}.image-preview-text .ant-typography{display:block}.image-preview-text span{display:block;margin-top:4px;color:#64748b;font-size:12px;white-space:nowrap}.log-duration{display:inline-flex;min-width:72px;justify-content:center;padding:3px 8px;border:1px solid #d8dee8;border-radius:999px;background:#f8fafc;color:#475569;font-weight:600;font-variant-numeric:tabular-nums}.log-duration.fast{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.log-duration.mid{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.log-duration.warn{border-color:#fde68a;background:#fffbeb;color:#b45309}.log-duration.slow{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.log-duration.empty{color:#94a3b8}.text-chat-page{display:flex;height:calc(100vh - 136px);min-height:560px;flex-direction:column;gap:12px;overflow:hidden}.text-chat-toolbar{display:grid;grid-template-columns:220px minmax(240px,1fr) auto;gap:10px}.text-chat-panel{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden;border:1px solid #e6eaf0;border-radius:8px;background:#fff}.text-chat-messages{display:flex;min-height:0;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:18px}.text-chat-message{width:min(78%,860px);min-width:0;padding:12px 14px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc}.text-chat-message.user{align-self:flex-end;border-color:#c7ddff;background:#f3f8ff}.text-chat-message.assistant{align-self:flex-start}.text-chat-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:12px}.text-chat-message pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.6}.text-chat-thinking{align-self:flex-start;color:#64748b}.text-chat-inputbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;border-top:1px solid #eef0f4}@media (max-width: 1180px){.image-studio{height:auto;grid-template-columns:1fr;overflow:visible}.image-preview-grid{height:auto}}@media (max-width: 760px){.text-chat-toolbar,.text-chat-inputbar{grid-template-columns:1fr}.text-chat-message{width:100%}}.register-page{display:flex;height:calc(100vh - 136px);min-height:0;flex-direction:column;gap:12px;overflow:hidden}.register-note{flex:0 0 auto}.register-split{flex:1;min-height:0}.register-split>.ant-col{height:100%;min-width:0}.register-card{height:100%;min-width:0;overflow:hidden}.register-config-card .ant-pro-card-body{overflow:hidden}.register-config-card .ant-form-item{margin-bottom:14px}.register-side{display:flex;height:100%;min-height:0;flex-direction:column;gap:16px}.register-stats-card{flex:0 0 auto;height:auto}.register-stats-card .ant-pro-card-body{padding-top:14px}.register-stats-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.register-stats-title{margin-top:2px;color:#111827;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15}.register-success-rate{min-width:86px;text-align:right}.register-success-rate span,.register-success-rate b{display:block}.register-success-rate span{color:#16a34a;font-size:24px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.15}.register-success-rate b{margin-top:2px;color:#64748b;font-size:12px;font-weight:500}.register-gauge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e6eaf0;border-radius:8px;background:#fbfcff}.register-gauge{display:grid;min-width:0;justify-items:center;gap:4px;text-align:center}.register-gauge .ant-progress-text{color:#111827!important;font-size:15px!important;font-weight:750;font-variant-numeric:tabular-nums}.register-gauge>span{margin-top:2px;color:#111827;font-size:13px;font-weight:700}.register-gauge>b{max-width:100%;overflow:hidden;color:#64748b;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.register-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.register-metric{min-width:0;padding:10px;border:1px solid #e6eaf0;border-radius:8px;background:#fff}.register-metric span,.register-metric strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.register-metric span{color:#64748b;font-size:12px}.register-metric strong{margin-top:4px;color:#111827;font-size:18px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.2}.register-metric.good strong{color:#16a34a}.register-metric.bad strong{color:#dc2626}.register-metric.live{border-color:#bbf7d0;background:#f0fdf4}.register-stats-updated{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:12px}.register-log-card{display:flex;flex:1;min-height:0;flex-direction:column}.register-log-card .ant-pro-card-body{flex:1;min-height:0;overflow:hidden}.register-log-list{height:100%;overflow-x:hidden;overflow-y:auto}.register-log-list .ant-list-item{align-items:flex-start;padding:8px 0}.register-log-line{width:100%;min-width:0}.register-log-time{flex:0 0 150px;white-space:nowrap}.register-log-text{max-width:calc(100% - 220px);min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}@media (max-width: 760px){.register-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.register-gauge-grid{grid-template-columns:1fr}}
