:root{color-scheme:light;--bg: #f6f8ff;--surface: #ffffff;--surface-soft: #f9fbff;--line: #e5e9f5;--line-strong: #cfd6ea;--text: #161b2d;--muted: #6f7b92;--blue: #3657ff;--violet: #725cff;--cyan: #18c4d6;--green: #22aa66;--red: #ef334d;--shadow: 0 18px 48px rgba(31, 45, 91, .08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}[data-theme=dark]{--bg: #0d1220;--surface: #12192a;--surface-soft: #182136;--line: #27324a;--line-strong: #3a4763;--text: #edf3ff;--muted: #9aa9c2;--blue: #6d87ff;--violet: #9a7cff;--cyan: #35d6e5;--green: #43cf85;--red: #ff5e73;--shadow: 0 18px 48px rgba(0, 0, 0, .24)}[data-theme=aurora]{--bg: #effcfb;--surface: rgba(255, 255, 255, .92);--surface-soft: #eafaf8;--line: #c9ece9;--line-strong: #9bdedc;--text: #0e2d36;--muted: #52767c;--blue: #00a6ff;--violet: #7c5cff;--cyan: #00d5c8;--green: #00b987;--red: #ef334d;--shadow: 0 20px 54px rgba(0, 159, 178, .13)}[data-font-size=small]{--app-font-size: 13px;--title-scale: .94}[data-font-size=standard]{--app-font-size: 14px;--title-scale: 1}[data-font-size=large]{--app-font-size: 15.5px;--title-scale: 1.06}[data-density=compact]{--panel-padding: 14px;--control-height: 36px;--content-gap: 12px}[data-density=comfortable]{--panel-padding: 18px;--control-height: 42px;--content-gap: 16px}*{box-sizing:border-box}html,body,#app{height:100%}body{min-width:1280px;margin:0;overflow:hidden;color:var(--text);font-size:var(--app-font-size, 14px);background:radial-gradient(circle at 50% 0%,rgba(80,96,255,.09),transparent 34rem),var(--bg)}[data-theme]{color:var(--text);background:radial-gradient(circle at 50% 0%,color-mix(in srgb,var(--blue) 10%,transparent),transparent 34rem),var(--bg)}[data-theme=aurora]{background:radial-gradient(circle at 18% 16%,rgba(0,213,200,.22),transparent 24rem),radial-gradient(circle at 82% 10%,rgba(124,92,255,.18),transparent 26rem),linear-gradient(135deg,#effcfb,#f8fbff 52%,#f3f0ff)}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select,[data-theme=dark] .auth-card,[data-theme=dark] .public-preview,[data-theme=dark] .preview-grid article,[data-theme=dark] .preview-chat,[data-theme=dark] .panel-card,[data-theme=dark] .profile-card,[data-theme=dark] .chat-sidebar,[data-theme=dark] .chat-panel,[data-theme=dark] .image-form-card,[data-theme=dark] .image-result-card,[data-theme=dark] .status-card,[data-theme=dark] .sidebar,[data-theme=dark] .topbar{color:var(--text);background:var(--surface)}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#72819d}[data-theme=dark] .ghost-btn,[data-theme=dark] .tool-btn,[data-theme=dark] .composer-toolbar button:not(.send-btn),[data-theme=dark] .message-body footer button,[data-theme=dark] .conversation-delete{color:#c3cee2;background:#172033;border-color:#33405a}[data-theme=dark] .primary-btn,[data-theme=dark] .send-btn{color:#fff;background:linear-gradient(135deg,#657dff,#9a7cff)}[data-theme=dark] .main-nav button.active,[data-theme=dark] .main-nav button:hover,[data-theme=dark] .conversation-list article.active,[data-theme=dark] .conversation-list article:hover{background:#202b43}[data-theme=dark] .main-nav button span{color:#dbe4ff;background:#202b43}button,input,textarea,select{font:inherit}button{border:0;cursor:pointer}input,textarea,select{outline:none}.auth-page{height:100vh;overflow:auto;padding:26px 34px;background:radial-gradient(circle at 26% 22%,rgba(85,105,255,.16),transparent 28rem),linear-gradient(135deg,#eef3ff,#fff 58%,#eef6ff)}.public-actions,.hero-actions{display:flex;align-items:center;gap:12px}.public-layout{min-height:calc(100vh - 86px);width:min(1240px,100%);display:grid;grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);gap:54px;align-items:center;margin:0 auto}.public-hero h1{max-width:680px;margin:0 0 18px;font-size:56px;line-height:1.08}.public-hero p{max-width:580px;color:var(--muted);line-height:1.9}.hero-actions{margin-top:28px}.hero-actions .primary-btn,.hero-actions .ghost-btn{min-width:132px}.public-preview{padding:18px;border:1px solid var(--line);border-radius:24px;background:#ffffffc7;box-shadow:0 26px 80px #1f2d5b1f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.preview-top{display:flex;align-items:center;gap:12px;padding:12px 12px 18px}.preview-top span{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--blue),var(--violet))}.preview-top em{margin-left:auto;color:var(--blue);font-style:normal;font-weight:800}.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.preview-grid article,.preview-chat{border:1px solid var(--line);border-radius:14px;background:var(--surface)}.preview-grid article{min-height:128px;padding:16px}.preview-grid b{display:block;margin-bottom:10px}.preview-grid p,.preview-chat p{margin:0;color:var(--muted);line-height:1.7}.preview-chat{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:center;margin-top:12px;padding:18px}.preview-chat span{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-weight:900}.auth-header,.brand,.app-shell,.topbar,.top-actions,.status-card div,.section-head,.composer-toolbar{display:flex;align-items:center}.auth-header,.topbar,.section-head{justify-content:space-between}.brand{gap:12px}.brand strong{font-size:22px}.brand-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#00b4ff,#4d55ff 52%,#7b5cff);box-shadow:0 12px 26px #3657ff47;transform:rotate(35deg)}[data-theme=aurora] .brand-mark{background:linear-gradient(135deg,#23f1d3,#19adff 50%,#9a7bff);box-shadow:0 12px 28px #00b7c047}.auth-layout{min-height:calc(100vh - 86px);width:min(1180px,100%);display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:76px;align-items:center;margin:0 auto}.auth-visual h1{max-width:620px;margin:0 0 18px;font-size:48px;line-height:1.16}.auth-visual p{max-width:560px;color:var(--muted);line-height:1.8}.eyebrow{color:var(--blue)!important;font-weight:900}.orbital-card{position:relative;width:340px;height:250px;display:grid;place-items:center;margin-top:48px;border-radius:42px;background:radial-gradient(circle,rgba(63,86,255,.2),transparent 62%),#ffffff6b}.orbital-card span{color:#5867ff;font-size:88px;font-weight:900}.orbital-card i{position:absolute;top:48px;right:32px;bottom:48px;left:32px;border:2px solid rgba(82,96,255,.18);border-radius:50%;transform:rotate(-12deg)}.orbital-card i:last-child{top:76px;right:22px;bottom:76px;left:22px;transform:rotate(24deg)}.auth-card,.panel-card,.profile-card,.chat-sidebar,.chat-panel,.inspector,.image-form-card,.image-result-card,.status-card{border:1px solid var(--line);border-radius:12px;background:#ffffffe6;box-shadow:var(--shadow)}.auth-card{display:grid;gap:16px;padding:30px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.auth-modal{width:min(430px,calc(100vw - 42px));padding:0;overflow:hidden}.auth-modal header{display:flex;justify-content:space-between;gap:14px;padding:22px 24px 16px;border-bottom:1px solid var(--line)}.auth-modal header p,.auth-modal header h2{margin:0}.auth-modal header p{color:var(--blue);font-size:12px;font-weight:900}.auth-modal header button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:var(--surface)}.auth-modal>label,.auth-modal>button,.auth-modal>small,.auth-modal>p{margin-inline:24px}.auth-modal>label:first-of-type{margin-top:20px}.auth-modal>p:last-child,.auth-modal>small:last-child,.auth-modal>button:last-of-type{margin-bottom:24px}.auth-card h2,.auth-card p{margin:0}.auth-card p,.auth-card small,.muted-text{color:var(--muted);line-height:1.65}.auth-card label,.panel-card label,.profile-card label,.profile-section-card label,.image-form-card label{display:grid;gap:8px;color:#4e5a72;font-size:14px}.auth-card input,.panel-card input,.panel-card textarea,.panel-card select,.profile-card input,.profile-card textarea,.profile-card select,.profile-section-card input,.profile-section-card textarea,.profile-section-card select,.image-form-card input,.image-form-card textarea,.image-form-card select,.search-field input,.compact-select select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff}.auth-card input,.panel-card input,.panel-card select,.profile-card input,.profile-card select,.profile-section-card input,.profile-section-card select,.image-form-card input,.image-form-card select,.search-field input,.compact-select select{height:var(--control-height, 42px);padding:0 12px}.auth-card textarea,.panel-card textarea,.profile-card textarea,.profile-section-card textarea,.image-form-card textarea{min-height:120px;padding:12px;resize:vertical}.primary-btn,.send-btn{height:var(--control-height, 42px);padding:0 18px;border-radius:8px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 10px 22px #3657ff3d}[data-theme=aurora] .primary-btn,[data-theme=aurora] .send-btn{color:#062f37;background:linear-gradient(135deg,#35f0de,#28baff 55%,#9b78ff);box-shadow:0 12px 26px #00b5be38}.primary-btn:disabled,.send-btn:disabled{cursor:not-allowed;opacity:.62}.ghost-btn,.tool-btn{height:38px;padding:0 14px;border:1px solid var(--line);border-radius:8px;color:#536078;background:#fff}.error{color:var(--muted)!important}.auth-tip{position:relative;display:flex;align-items:flex-start;gap:10px;padding:12px 14px 12px 42px;border:1px solid rgba(54,87,255,.14);border-radius:12px;color:#536078!important;background:linear-gradient(135deg,#3657ff14,#725cff0f),var(--surface);line-height:1.65}.auth-tip:before{content:"i";position:absolute;left:14px;top:14px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-size:12px;font-weight:900;font-style:normal;line-height:1}.app-shell{height:100vh;overflow:hidden;align-items:stretch}.sidebar{width:248px;min-height:0;display:grid;grid-template-rows:auto 1fr auto;gap:22px;overflow:hidden;padding:24px 16px;border-right:1px solid var(--line);background:#ffffffe0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.side-brand{padding:0 8px 12px}.side-brand strong{font-size:20px}.main-nav{display:grid;align-content:start;gap:10px;min-height:0;overflow:auto}.main-nav button{display:grid;grid-template-columns:46px minmax(0,1fr);gap:2px 12px;align-items:center;min-height:68px;padding:12px;border-radius:12px;color:#48566e;background:transparent;text-align:left}.main-nav button span{grid-row:span 2;width:42px;height:42px;display:grid;place-items:center;border-radius:10px;color:var(--blue);background:#eef1ff;font-size:12px;font-weight:800}.main-nav button b{font-size:15px}.main-nav button small{color:var(--muted)}.main-nav button.active,.main-nav button:hover{background:#eef1ff}.main-nav button.active span{color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet))}.status-card{padding:16px}.status-card div{gap:8px}.status-card p{margin:8px 0 0;color:var(--muted);font-size:13px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--red)}.status-dot.online{background:var(--green)}.workspace{flex:1;min-width:0;min-height:0;height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.topbar{height:82px;gap:24px;padding:0 30px;border-bottom:1px solid var(--line);background:#ffffffd6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.topbar p,.topbar h1{margin:0}.topbar p{color:var(--blue);font-size:13px;font-weight:800}.topbar h1{margin-top:4px;font-size:calc(26px * var(--title-scale, 1))}.top-actions{gap:14px}.theme-switcher{display:grid;grid-template-columns:repeat(3,auto);gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.theme-switcher button{height:30px;padding:0 10px;border-radius:7px;color:var(--muted);background:transparent}.theme-switcher button.active{color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet))}[data-theme=aurora] .theme-switcher{border-color:#00b5be52;background:#e8fffcbd;box-shadow:inset 0 0 0 1px #ffffff8f}[data-theme=aurora] .theme-switcher button.active{color:#042c32;background:linear-gradient(135deg,#38f1df,#32b8ff 55%,#9d7dff);box-shadow:0 8px 20px #00b5be3d}.compact-select{display:flex;align-items:center;gap:8px;color:var(--muted)}.compact-select select{width:150px}.top-quota-pill{min-width:118px;height:38px;display:grid;align-content:center;gap:2px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.top-quota-pill span{color:var(--muted);font-size:11px;line-height:1}.top-quota-pill strong{color:var(--text);font-size:13px;line-height:1;white-space:nowrap}.upgrade-entry-btn{height:38px;padding:0 14px;border-radius:10px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 10px 24px #3657ff2e;white-space:nowrap}.chat-workbench{display:grid;grid-template-columns:270px minmax(0,1fr) 310px;gap:var(--content-gap, 16px);min-height:0;height:100%;overflow:hidden;padding:var(--content-gap, 16px)}.chat-sidebar,.chat-panel,.inspector{min-height:0}.chat-sidebar{display:grid;grid-template-rows:auto auto 1fr;gap:14px;overflow:hidden;padding:16px}.search-field span{display:block;margin-bottom:8px;color:var(--muted);font-size:13px}.conversation-list{display:grid;align-content:start;gap:8px;overflow:auto}.conversation-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:12px;border-radius:9px}.conversation-main{display:grid;gap:4px;min-width:0;color:#344057;background:transparent;text-align:left}.conversation-list article.active,.conversation-list article:hover{color:var(--blue);background:#eef1ff}.conversation-list article.active .conversation-main,.conversation-list article:hover .conversation-main{color:var(--blue)}.conversation-list small{color:var(--muted)}.conversation-actions{display:flex;gap:4px;opacity:0;transition:opacity .16s ease}.conversation-list article:hover .conversation-actions,.conversation-list article.active .conversation-actions{opacity:1}.conversation-delete{width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:var(--surface)}.conversation-delete svg{width:14px;height:14px}.conversation-delete:hover{color:var(--red);border-color:color-mix(in srgb,var(--red) 42%,var(--line));background:color-mix(in srgb,var(--red) 8%,var(--surface))}.chat-panel{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.message-list{padding:24px;overflow:auto}.message{max-width:860px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;margin-bottom:18px}.message-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-size:13px;font-weight:900}.message.user .message-avatar{background:#33415c}.message-body{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.message-body header,.message-body footer{display:flex;align-items:center;gap:10px}.message-body header{justify-content:space-between;margin-bottom:8px}.message-body strong{display:block;color:#3b4760}.message-body small{color:var(--muted)}.message-content{margin:0;line-height:1.8}.message-content h2,.message-content h3{margin:12px 0 6px}.message-content code{padding:2px 5px;border-radius:5px;background:var(--surface-soft)}.message-content pre{margin:10px 0;white-space:pre-wrap}.message-body footer{margin-top:12px}.message-body footer button{height:28px;padding:0 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--surface)}.thinking-message .message-body{background:linear-gradient(180deg,var(--surface),var(--surface-soft))}.thinking-content{display:inline-flex;align-items:center;gap:7px;min-height:32px;color:var(--muted);line-height:1.6}.thinking-content span{color:var(--text);font-weight:700}.thinking-content i{width:6px;height:6px;display:block;border-radius:50%;background:var(--blue);opacity:.35;animation:thinking-dot 1.2s infinite ease-in-out}.thinking-content i:nth-child(3){animation-delay:.16s}.thinking-content i:nth-child(4){animation-delay:.32s}@keyframes thinking-dot{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}.message.user{margin-left:auto;grid-template-columns:minmax(0,1fr) 38px}.message.user .message-body{grid-column:1;grid-row:1;color:#1c2750;background:#eef1ff}.message.user .message-avatar{grid-column:2;grid-row:1}[data-theme=dark] .message.user .message-body{color:var(--text);background:#1d2942}[data-theme=dark] .message-body strong{color:var(--text)}.chat-empty{display:grid;justify-items:center;gap:12px;max-width:820px;margin:90px auto 30px;text-align:center}.chat-empty>span{width:70px;height:70px;display:grid;place-items:center;border-radius:20px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-weight:900}.chat-empty h2,.chat-empty p{margin:0}.chat-empty p{max-width:520px;color:var(--muted);line-height:1.7}.chat-empty div{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.chat-empty button{min-height:82px;padding:14px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);text-align:left}[data-theme=dark] .auth-page,[data-theme=dark].auth-page{background:radial-gradient(circle at 26% 22%,rgba(91,124,255,.16),transparent 28rem),linear-gradient(135deg,#0d1220,#11192a 58%,#0b1020)}[data-theme=dark] .auth-visual p,[data-theme=dark] .auth-card p,[data-theme=dark] .auth-card small,[data-theme=dark] .panel-card p,[data-theme=dark] .image-form-card p,[data-theme=dark] .image-result-card p,[data-theme=dark] .empty-state p,[data-theme=dark] .chat-empty p{color:var(--muted)}[data-theme=dark] .search-field input,[data-theme=dark] .compact-select select,[data-theme=dark] .panel-card input,[data-theme=dark] .panel-card textarea,[data-theme=dark] .panel-card select,[data-theme=dark] .profile-card input,[data-theme=dark] .profile-card textarea,[data-theme=dark] .profile-card select,[data-theme=dark] .profile-section-card input,[data-theme=dark] .profile-section-card textarea,[data-theme=dark] .profile-section-card select,[data-theme=dark] .image-form-card input,[data-theme=dark] .image-form-card textarea,[data-theme=dark] .image-form-card select,[data-theme=dark] .auth-card input{color:var(--text);background:#0f1728;border-color:#33405a}[data-theme=dark] .theme-switcher{background:#0f1728;border-color:#33405a}[data-theme=dark] .theme-switcher button:not(.active){color:#aab7cf}[data-theme=dark] .status-card,[data-theme=dark] .panel-card,[data-theme=dark] .chat-sidebar,[data-theme=dark] .chat-panel,[data-theme=dark] .image-form-card,[data-theme=dark] .image-result-card{border-color:#26334d}[data-theme=dark] .message.assistant,[data-theme=dark] .message-body,[data-theme=dark] .chat-empty button{border-color:#26334d;background:#121a2d}[data-theme=dark] .message-content code,[data-theme=dark] pre{background:#0f1728}[data-theme=dark] .conversation-main{color:#d6def0}[data-theme=dark] .conversation-list article:not(.active) .conversation-main small{color:#7f8ca6}[data-theme=dark] .prompt-presets button,[data-theme=dark] .prompt-actions button,[data-theme=dark] .image-card-actions button,[data-theme=dark] .image-card-actions a,[data-theme=dark] .image-card-meta button,[data-theme=dark] .history-strip button,[data-theme=dark] .image-form-tip,[data-theme=dark] .config-row,[data-theme=dark] .user-row,[data-theme=dark] .user-quota-summary article,[data-theme=dark] .config-help-grid div,[data-theme=dark] .edit-config-btn,[data-theme=dark] .delete-config-btn,[data-theme=dark] .config-modal-body .check-row,[data-theme=dark] .choice-grid button{color:#c3cee2;background:#172033;border-color:#33405a}[data-theme=dark] .choice-grid button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#657dff,#9a7cff)}[data-theme=dark] .image-form-head>span{color:#dbe4ff;background:#202b43}[data-theme=dark] .config-table-card,[data-theme=dark] .users-table-card,[data-theme=dark] .config-help-card,[data-theme=dark] .config-modal{border-color:#26334d;background:var(--surface)}[data-theme=dark] .config-modal-body input,[data-theme=dark] .config-modal-body textarea,[data-theme=dark] .config-modal-body select,[data-theme=dark] .config-modal header button{color:var(--text);background:#0f1728;border-color:#33405a}[data-theme=dark] .auth-modal header button{color:var(--text);background:#0f1728;border-color:#33405a}[data-theme=dark] .auth-tip{color:#c3cee2!important;border-color:#6d87ff3d;background:linear-gradient(135deg,#6d87ff21,#9a7cff17),#121a2d}[data-theme=aurora] .auth-tip{color:#41666d!important;border-color:#00b5be33;background:linear-gradient(135deg,#00d5c81f,#7c5cff12),var(--surface)}[data-theme=aurora] .auth-tip:before{color:#062f37;background:linear-gradient(135deg,#35f0de,#28baff 55%,#9b78ff)}.chat-empty button small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}.composer{display:grid;gap:12px;margin:0 18px 18px;padding:14px;border:1px solid #7d86ff;border-radius:14px;background:var(--surface);box-shadow:0 12px 34px #3657ff1f}.composer textarea{min-height:96px;border:0;color:var(--text);background:transparent;resize:vertical;font-size:15px}.composer-toolbar{gap:8px}.composer-toolbar button:not(.send-btn){height:34px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:#56637a;background:var(--surface)}.send-btn{margin-left:auto}.inspector{display:grid;align-content:start;gap:16px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0;border:0;background:transparent;box-shadow:none}.panel-card{display:grid;gap:14px;padding:var(--panel-padding, 18px)}.mini-status{display:grid;gap:10px;margin:0}.mini-status div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.mini-status dt{color:var(--muted)}.mini-status dd{margin:0;font-weight:800}.panel-card h2,.image-form-card h2,.image-result-card h2{margin:0;font-size:18px}.panel-card p,.image-form-card p,.image-result-card p,.empty-state p{margin:0;color:var(--muted);line-height:1.65}.tool-btn{width:100%}.profile-workbench{min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start;overflow:auto;padding:22px}.profile-main,.profile-side{min-width:0;display:grid;gap:18px}.profile-side{position:sticky;top:0}.profile-section-card,.profile-card{display:grid;gap:16px;align-content:start;padding:calc(var(--panel-padding, 18px) + 4px);border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.profile-section-card h2,.profile-section-card p,.profile-card h2,.profile-card p{margin:0}.profile-section-card p,.profile-card p{color:var(--muted);line-height:1.65}.profile-hero-card{position:relative;min-height:228px;display:grid;grid-template-columns:122px minmax(0,1fr) 190px 184px;align-items:center;gap:26px;overflow:hidden;padding:30px;border:1px solid rgba(165,183,255,.38);border-radius:18px;background:radial-gradient(circle at 74% 46%,rgba(116,95,255,.26),transparent 18rem),linear-gradient(115deg,#e8f5ffeb,#f4efffeb),var(--surface);box-shadow:var(--shadow)}.profile-hero-card:after{content:"";position:absolute;inset:auto 56px -90px auto;width:220px;height:220px;border-radius:42px;border:24px solid rgba(86,103,255,.14);transform:rotate(26deg)}.profile-portrait{width:122px;height:122px;display:grid;place-items:center;border:4px solid rgba(255,255,255,.92);border-radius:50%;color:#fff;background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.34),transparent 35%),linear-gradient(135deg,var(--blue),var(--violet));font-size:42px;font-weight:900;box-shadow:0 18px 42px #3657ff47;z-index:1}.profile-hero-info{position:relative;z-index:1;display:grid;gap:8px}.profile-name-row{display:flex;align-items:center;gap:12px}.profile-name-row h2{margin:0;font-size:clamp(30px,2.4vw,42px);line-height:1.05}.profile-name-row span{height:30px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;color:#ffe8a3;background:#1d2448;font-weight:800}.profile-hero-info p,.profile-hero-info small{margin:0;color:var(--muted)}.profile-hero-info strong{color:#526074;font-size:17px;font-weight:700}.profile-ai-badge{position:relative;z-index:1;justify-self:center;width:min(220px,100%);aspect-ratio:1.45;display:grid;place-items:center}.profile-ai-badge span{width:130px;height:104px;display:grid;place-items:center;border-radius:28px;color:#fff;background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.36),transparent 34%),linear-gradient(135deg,#6a8aff,#8362ff);box-shadow:0 20px 46px #5565ff57,inset 0 0 0 1px #ffffff47;font-size:52px;font-weight:900}.profile-hero-expire{position:relative;z-index:1;display:grid;gap:8px;min-width:176px;padding-left:22px;border-left:1px solid rgba(94,112,180,.18)}.profile-hero-expire span,.profile-hero-expire small{color:var(--muted);font-weight:700}.profile-hero-expire strong{font-size:22px;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}.profile-overview-metrics{position:relative;z-index:1;grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.profile-overview-metrics article{display:flex;align-items:center;gap:14px;min-height:92px;padding:16px;border:1px solid rgba(216,225,244,.78);border-radius:16px;background:#ffffffbd;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.profile-overview-metrics p,.profile-overview-metrics strong,.profile-overview-metrics small{display:block;margin:0}.profile-overview-metrics p{color:var(--muted);font-weight:800}.profile-overview-metrics strong{margin-top:4px;font-size:24px;line-height:1.08}.profile-overview-metrics small{margin-top:5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.profile-stat-card{min-height:118px;display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.profile-stat-icon,.profile-action-icon{flex:0 0 auto;display:grid;place-items:center;border-radius:14px}.profile-stat-icon{width:56px;height:56px}.profile-stat-icon svg,.profile-action-icon svg,.profile-notice-card button svg{width:21px;height:21px}.profile-stat-icon.blue,.profile-action-icon.blue{color:#2577ff;background:#eaf2ff}.profile-stat-icon.violet,.profile-action-icon.violet{color:#7b4dff;background:#f2edff}.profile-stat-icon.green,.profile-action-icon.green{color:#18a878;background:#e8fbf5}.profile-stat-icon.orange,.profile-action-icon.orange{color:#f59a22;background:#fff3e4}.profile-stat-card p,.profile-stat-card strong,.profile-stat-card small{margin:0}.profile-stat-card p{color:var(--muted);font-weight:800}.profile-stat-card strong{display:block;margin-top:4px;font-size:28px;line-height:1.1}.profile-stat-card small{display:block;margin-top:6px;color:var(--muted)}.profile-action-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.profile-action-board button{min-height:112px;display:grid;grid-template-columns:52px minmax(0,1fr) 18px;align-items:center;gap:14px;padding:20px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--text);background:transparent;text-align:left}.profile-action-board button:nth-child(3n){border-right:0}.profile-action-board button:nth-last-child(-n+3){border-bottom:0}.profile-action-board button:hover{background:var(--surface-soft)}.profile-action-icon{width:46px;height:46px}.profile-action-board strong,.profile-action-board small{display:block}.profile-action-board small{margin-top:4px;color:var(--muted);line-height:1.5}.profile-action-board>button>svg{width:16px;height:16px;color:#9aa6bd}.profile-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-action-grid button{min-height:84px;display:grid;grid-template-columns:46px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;color:var(--text);background:var(--surface);text-align:left;box-shadow:0 10px 24px #253e760a;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.profile-action-grid button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--blue) 34%,var(--line));box-shadow:0 16px 34px #3a50b41a}.profile-action-grid strong,.profile-action-grid small{display:block}.profile-action-grid small{margin-top:4px;color:var(--muted);line-height:1.45}.profile-action-grid>button>svg{width:16px;height:16px;color:#9aa6bd}.profile-inline-card,.profile-security-card,.profile-notice-card{border-radius:16px;box-shadow:var(--shadow)}.profile-settings-card{gap:14px}.profile-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line)}.profile-tabs button{position:relative;min-height:40px;padding:0 4px;border:0;color:var(--muted);background:transparent;font-weight:800}.profile-tabs button.active{color:var(--blue)}.profile-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:999px;background:linear-gradient(135deg,var(--blue),var(--violet))}.profile-tab-panel{display:grid;gap:16px;padding-top:4px}.profile-preference-layout{display:grid;gap:16px}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-form-grid.single{grid-template-columns:1fr}.profile-form-grid .span-all{grid-column:1 / -1}.settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px}.settings-footer .success-tip,.settings-footer .form-error{flex:1}.settings-hint{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.preference-block{display:grid;gap:10px}.preference-block>span{color:var(--muted);font-weight:700}.choice-grid{display:grid;gap:10px}.choice-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choice-grid button{min-height:var(--control-height, 42px);padding:0 12px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface-soft)}.choice-grid button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--blue),var(--violet))}[data-theme=aurora] .choice-grid button.active{color:#062f37;background:linear-gradient(135deg,#35f0de,#28baff 55%,#9b78ff)}.success-tip{margin:0;padding:12px 14px;border:1px solid rgba(34,170,102,.22);border-radius:10px;color:var(--green)!important;background:#22aa6614}.account-meta{display:grid;gap:10px;margin:0}.account-meta div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.account-meta dt{color:var(--muted)}.account-meta dd{margin:0;font-weight:800}.profile-pro-card{display:grid;gap:14px;overflow:hidden;padding:22px;border:1px solid rgba(133,143,255,.34);border-radius:20px;color:#fff;background:radial-gradient(circle at 85% 18%,rgba(155,121,255,.34),transparent 12rem),radial-gradient(circle at 20% 92%,rgba(76,141,255,.2),transparent 13rem),linear-gradient(145deg,#121946,#18135a 56%,#101638);box-shadow:0 24px 54px #19184b38}.profile-pro-card h2,.profile-pro-card p{margin:0}.profile-pro-card h2{color:#ffe19b;font-size:26px;line-height:1.15}.profile-pro-card p{width:fit-content;padding:8px 14px;border-radius:999px;color:#d8dcff;background:#ffffff1a}.profile-pro-card ul,.profile-notice-card ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}.profile-pro-card li{position:relative;padding-left:28px;color:#edf0ff;font-weight:700;line-height:1.5}.profile-pro-card li:before{content:"";position:absolute;left:0;top:2px;width:16px;height:16px;border:2px solid rgba(255,230,170,.9);border-radius:5px}.profile-pro-card .primary-btn{width:100%;height:46px;margin-top:8px;font-size:14px}.pro-card-title{display:grid;gap:6px}.pro-card-title span{color:#ffe19b;font-weight:900}.profile-security-card .full{width:100%}.upgrade-contact-card{display:grid;gap:6px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:#ffffff17}.upgrade-contact-card span,.upgrade-contact-card small{color:#cfd7ff}.upgrade-contact-card strong{color:#fff;font-size:18px}.upgrade-contact-card small{line-height:1.55}.upgrade-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:2px}.upgrade-actions .primary-btn,.upgrade-actions .ghost-btn{width:100%;height:44px;margin:0}.upgrade-actions .ghost-btn{color:#e8ecff;border-color:#ffffff2e;background:#ffffff14}.upgrade-modal{width:min(980px,100%)}.upgrade-modal-body{display:grid;gap:18px;overflow:auto;padding:22px}.upgrade-current-row{display:grid;grid-template-columns:160px 160px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.upgrade-current-row div{display:grid;gap:4px}.upgrade-current-row span,.upgrade-plan-card dt{color:var(--muted);font-size:12px}.upgrade-current-row strong,.upgrade-plan-card dd{margin:0;font-weight:900}.upgrade-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.upgrade-plan-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.upgrade-plan-card.current{border-color:color-mix(in srgb,var(--blue) 42%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 8%,transparent),transparent),var(--surface)}.upgrade-plan-card.disabled{opacity:.56}.upgrade-plan-head{display:flex;justify-content:space-between;gap:12px}.upgrade-plan-head h3,.upgrade-plan-card p,.upgrade-plan-card dl{margin:0}.upgrade-plan-head span{display:inline-flex;margin-bottom:8px;padding:4px 8px;border-radius:999px;color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent);font-size:12px;font-weight:900}.upgrade-plan-head>strong{color:var(--blue);white-space:nowrap}.upgrade-plan-card p{min-height:44px;color:var(--muted);line-height:1.55}.upgrade-plan-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.upgrade-plan-card dl div{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.upgrade-plan-card .primary-btn{width:100%}.upgrade-contact-card.compact{border-color:var(--line);color:var(--text);background:var(--surface-soft)}.upgrade-contact-card.compact span,.upgrade-contact-card.compact small{color:var(--muted)}.upgrade-contact-card.compact strong{color:var(--text)}.upgrade-contact-card.compact .ghost-btn{color:var(--blue);border-color:var(--line);background:var(--surface)}.profile-notice-card .section-head{align-items:center}.profile-notice-card .section-head button{display:inline-flex;align-items:center;gap:4px;border:0;color:var(--muted);background:transparent}.profile-notice-card li{display:flex;justify-content:space-between;gap:14px;color:var(--muted)}.profile-notice-card li span{position:relative;padding-left:14px}.profile-notice-card li span:before{content:"";position:absolute;left:0;top:.72em;width:5px;height:5px;border-radius:50%;background:#9ba8c3}.profile-notice-card time{flex:0 0 auto;color:#98a4b8}.password-modal{width:min(560px,100%)}.password-modal-body{display:grid;gap:14px;padding:22px}[data-theme=dark] .profile-hero-card{background:radial-gradient(circle at 74% 46%,rgba(116,95,255,.2),transparent 18rem),linear-gradient(115deg,#151d31,#1b2038);border-color:#26334d}[data-theme=aurora] .profile-hero-card{border-color:#00c0c83d;background:radial-gradient(circle at 76% 44%,rgba(0,213,200,.26),transparent 17rem),radial-gradient(circle at 91% 20%,rgba(124,92,255,.22),transparent 13rem),linear-gradient(115deg,#e0fffbf2,#f4f6fff0)}[data-theme=aurora] .profile-ai-badge span,[data-theme=aurora] .profile-portrait{color:#063038;background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.44),transparent 34%),linear-gradient(135deg,#35f0de,#26b8ff 55%,#9d7dff);box-shadow:0 18px 42px #00b5be42}[data-theme=aurora] .profile-pro-card{background:radial-gradient(circle at 83% 16%,rgba(44,239,218,.22),transparent 12rem),radial-gradient(circle at 20% 92%,rgba(124,92,255,.24),transparent 14rem),linear-gradient(145deg,#073d48,#092b53 58%,#11114f)}[data-theme=aurora] .main-nav button.active,[data-theme=aurora] .main-nav button:hover,[data-theme=aurora] .conversation-list article.active,[data-theme=aurora] .conversation-list article:hover{background:linear-gradient(135deg,#00d5c824,#7c5cff1f)}[data-theme=aurora] .main-nav button.active span,[data-theme=aurora] .main-nav button:hover span{color:#062f37;background:linear-gradient(135deg,#35f0de,#28baff 55%,#9b78ff)}[data-theme=dark] .profile-hero-info strong{color:#dce4f5}[data-theme=dark] .profile-stat-card,[data-theme=dark] .profile-action-board,[data-theme=dark] .profile-action-grid button,[data-theme=dark] .profile-section-card,[data-theme=dark] .profile-overview-metrics article,[data-theme=dark] .profile-inline-card,[data-theme=dark] .profile-security-card,[data-theme=dark] .profile-notice-card{border-color:#26334d;background:var(--surface)}[data-theme=dark] .profile-action-board button{border-color:#26334d}[data-theme=dark] .profile-action-board button:hover{background:#172033}@media (max-width: 1500px){.profile-workbench{grid-template-columns:minmax(0,1fr) 330px}.profile-hero-card{grid-template-columns:108px minmax(0,1fr)}.profile-hero-expire{grid-column:1 / -1;padding-left:0;padding-top:16px;border-left:0;border-top:1px solid rgba(94,112,180,.18)}.profile-portrait{width:108px;height:108px;font-size:36px}.profile-ai-badge{display:none}.profile-stat-grid,.profile-overview-metrics,.profile-action-grid,.profile-action-board{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-action-board button{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.profile-action-board button:nth-child(3n){border-right:1px solid var(--line)}.profile-action-board button:nth-child(2n){border-right:0}.profile-action-board button:nth-last-child(-n+3){border-bottom:1px solid var(--line)}.profile-action-board button:nth-last-child(-n+1){border-bottom:0}.profile-action-board button:last-child{grid-column:span 2;border-right:0}}@media (max-width: 1200px){.profile-workbench{grid-template-columns:1fr}.profile-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-pro-card{grid-row:span 2}}@media (max-width: 860px){.profile-workbench{padding:14px}.profile-side,.profile-overview-metrics,.profile-action-grid,.profile-form-grid{grid-template-columns:1fr}.profile-hero-card{padding:22px}.profile-tabs{overflow:auto;gap:16px}}.image-workbench{display:grid;grid-template-columns:430px minmax(0,1fr);gap:var(--content-gap, 16px);min-height:0;height:100%;overflow:auto;padding:var(--content-gap, 16px)}.image-form-card,.image-result-card{padding:calc(var(--panel-padding, 18px) + 4px)}.image-form-head{display:flex;justify-content:space-between;gap:14px}.image-form-head h2,.image-form-head p{margin:0}.image-form-head>span{width:fit-content;height:28px;padding:0 10px;display:grid;place-items:center;border-radius:999px;color:var(--blue);background:var(--surface-soft);font-size:12px;font-weight:800;white-space:nowrap}.image-form-card form{display:grid;gap:16px;margin-top:18px}.prompt-actions{display:flex;gap:10px}.prompt-actions button,.image-card-actions button,.image-card-actions a{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:1px solid var(--line);border-radius:8px;color:var(--blue);background:var(--surface);text-decoration:none}.prompt-actions svg,.image-card-actions svg,.image-card-meta button svg,.image-loading svg{width:16px;height:16px}.prompt-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.prompt-presets button{min-height:72px;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface-soft);text-align:left}.prompt-presets strong,.prompt-presets small{display:block}.prompt-presets small{margin-top:5px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.image-form-tip{margin:0;padding:10px 12px;border-radius:8px;color:var(--muted);background:var(--surface-soft);line-height:1.6}.image-result-card{min-height:calc(100vh - 118px)}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.image-grid article{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.image-grid img{width:100%;aspect-ratio:1;display:block;object-fit:cover;background:#eef1ff}.image-card-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 12px 6px}.image-card-meta div{min-width:0}.image-card-meta strong,.image-card-meta small{display:block}.image-card-meta small,.image-grid article>p{color:var(--muted)}.image-card-meta button{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--surface)}.image-grid article>p{min-height:42px;display:-webkit-box;overflow:hidden;margin:0;padding:0 12px;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.55}.image-card-actions{display:flex;gap:8px;padding:12px}.image-card-actions button,.image-card-actions a{flex:1}.image-loading{min-height:520px;display:grid;place-items:center;align-content:center;gap:12px;margin-top:18px;border:1px dashed var(--line-strong);border-radius:14px;background:linear-gradient(135deg,#3657ff0d,#18c4d60d),var(--surface);text-align:center}.image-loading span{width:72px;height:72px;display:grid;place-items:center;border-radius:20px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));animation:pulse-card 1.4s ease-in-out infinite}.image-loading p{max-width:380px}.empty-state{height:520px;display:grid;place-items:center;align-content:center;gap:16px;margin-top:18px;border:1px dashed var(--line-strong);border-radius:14px;background:linear-gradient(135deg,#3657ff0d,#18c4d60d),var(--surface);text-align:center}.image-history{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.history-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:12px}.history-strip button{overflow:hidden;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.history-strip img{width:100%;aspect-ratio:1;display:block;object-fit:cover}@keyframes pulse-card{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.82}}.empty-state span{width:86px;height:86px;display:grid;place-items:center;border-radius:24px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-weight:900}.empty-state p{max-width:420px}.config-workbench,.users-workbench,.plans-workbench{min-height:0;height:100%;overflow:auto;padding:var(--content-gap, 16px)}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.config-table-card,.users-table-card,.config-help-card{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.config-help-card{margin-top:18px}.user-quota-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.user-quota-summary article{padding:16px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 6%,transparent),transparent),var(--surface-soft)}.user-quota-summary span,.user-quota-summary strong,.user-quota-summary small{display:block}.user-quota-summary span,.user-quota-summary small{color:var(--muted)}.user-quota-summary strong{margin:7px 0 5px;font-size:18px}.plan-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px}.plan-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 7%,transparent),transparent 45%),var(--surface-soft)}.plan-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.plan-card-head strong{color:var(--muted);font-size:12px}.plan-card h3,.plan-card p,.plan-metrics{margin:0}.plan-card p{min-height:42px;color:var(--muted);line-height:1.6}.plan-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-metrics div{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.plan-metrics dt,.plan-metrics dd{margin:0}.plan-metrics dt{color:var(--muted);font-size:12px}.plan-metrics dd{margin-top:4px;overflow:hidden;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.config-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.config-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.config-page-head h2,.config-page-head p,.config-help-card h2,.config-help-card p{margin:0}.config-page-head p,.config-help-card p{margin-top:6px;color:var(--muted);line-height:1.7}.config-table{display:grid;gap:12px}.config-row{display:grid;grid-template-columns:minmax(300px,1fr) minmax(150px,180px) 140px 100px 126px;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.user-table{display:grid;gap:12px}.user-row{display:grid;grid-template-columns:minmax(280px,1fr) 150px 160px 150px 126px;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.user-row-main{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center}.user-row-main>span{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));font-weight:900}.user-row-main h3,.user-row-main p{margin:0}.user-row-main p{margin-top:5px;color:var(--muted)}.user-row-meta{display:grid;gap:5px}.user-row-meta span{color:var(--muted);font-size:12px}.user-row-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.membership-pill{width:fit-content;padding:5px 9px;border-radius:999px;font-size:12px}.membership-pill.free{color:#637088;background:#eef2f8}.membership-pill.trial_vip{color:#8a5a00;background:#fff1cc}.membership-pill.vip{color:#224dff;background:#e9eeff}.membership-pill.svip{color:#7a3dff;background:#f1e9ff}.config-row-main{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center}.config-row-main h3,.config-row-main p{margin:0}.config-row-main h3{display:flex;align-items:center;gap:8px;min-width:0}.config-row-main h3 em{padding:3px 7px;border-radius:999px;color:var(--blue);background:#3553ff1a;font-size:11px;font-style:normal}.config-row-main p{margin-top:5px;color:var(--muted);line-height:1.55}.config-badge{width:52px;height:52px;display:grid;place-items:center;border-radius:14px;color:#fff;font-size:12px;font-weight:900}.config-badge.blue{background:linear-gradient(135deg,var(--blue),var(--violet))}.config-badge.violet{background:linear-gradient(135deg,#8a5cff,#a779ff)}.config-badge.green{background:linear-gradient(135deg,#2a6,#18c4d6)}.config-row-meta{display:grid;gap:5px}.config-row-meta span{color:var(--muted);font-size:12px}.config-row-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-row-meta .ok{color:var(--green)}.config-row-meta .warn{color:#b98200}.config-row-meta .danger{color:var(--red)}.edit-config-btn{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;color:var(--blue);background:var(--surface)}.edit-config-btn svg{width:15px;height:15px}.edit-config-btn.full{width:100%}.config-row-actions{display:flex;gap:8px;justify-content:flex-end}.delete-config-btn{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;color:var(--red);background:var(--surface)}.delete-config-btn svg{width:15px;height:15px}.config-row-url{grid-column:1 / -1;margin:-4px 0 0 66px;overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.config-help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.config-help-grid div{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.config-help-grid span{color:var(--muted);font-size:12px}.ghost-btn.full{width:100%;margin-top:14px}.empty-state.small{min-height:220px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:36px;background:#0a101e6b;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.config-modal{width:min(820px,100%);max-height:calc(100vh - 72px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 28px 80px #15234938}.config-modal header,.config-modal footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line)}.config-modal footer{justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0}.config-modal header p,.config-modal header h2{margin:0}.config-modal header p{color:var(--blue);font-size:12px;font-weight:900}.config-modal header button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:var(--surface)}.config-modal header svg{width:16px;height:16px}.config-modal-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow:auto;padding:22px}.config-modal-body label{display:grid;gap:8px;color:var(--muted)}.config-modal-body input,.config-modal-body textarea,.config-modal-body select{width:100%;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--surface)}.config-modal-body input,.config-modal-body select{height:42px;padding:0 12px}.config-modal-body textarea{padding:12px;resize:vertical}.config-modal-body .span-all,.server-modal-body{grid-column:1 / -1}.config-modal-body .check-row{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.config-modal-body .check-row input{width:16px;height:16px;padding:0}.plan-modal{width:min(920px,100%)}.plan-model-picker{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.plan-model-picker h3,.plan-model-picker p{margin:0}.plan-model-picker p{margin-top:4px;color:var(--muted)}.plan-model-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-error{margin:0;padding:12px 14px;border:1px solid rgba(239,68,68,.24);border-radius:10px;color:var(--red);background:#ef444414}.server-modal-body{grid-template-columns:1fr}.config-list{display:grid;gap:12px;margin:0}.config-list div{display:flex;justify-content:space-between;gap:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}.config-list dt{color:var(--muted)}.config-list dd{margin:0;font-weight:800}pre{overflow:auto;margin:0;padding:14px;border-radius:10px;color:#27324a;background:#f3f6ff;line-height:1.6}@media (max-width: 1280px){.plan-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.top-actions{gap:8px}.compact-select{gap:6px}.compact-select span{display:none}.compact-select select{width:132px}.top-quota-pill{min-width:96px;padding:0 10px}.upgrade-entry-btn{padding:0 10px}.upgrade-plan-grid,.upgrade-current-row{grid-template-columns:1fr}}
