.page{max-width:1080px;margin:0 auto;padding:16px}.top-bar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:56px;background-color:var(--theme-bg-card);border-bottom:1px solid var(--theme-border-light)}.top-bar-left{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.top-bar-logo{width:32px;height:32px;border-radius:8px;object-fit:cover;flex-shrink:0}.top-bar-title{font-size:18px;font-weight:700;color:var(--theme-text-primary)}.top-bar-right{display:flex;align-items:center;gap:6px}.top-bar-action{display:flex;align-items:center;gap:4px;cursor:pointer;color:var(--theme-text-secondary);padding:6px 10px;border-radius:8px;transition:all .2s}.top-bar-action:hover{background-color:var(--theme-bg-hover);color:var(--theme-primary)}.action-svg{flex-shrink:0}.top-select{border:none;background:transparent;outline:none;font-size:13px;font-family:inherit;color:inherit;cursor:pointer;padding:0;max-width:110px}.top-select option{background:var(--theme-bg-card);color:var(--theme-text-primary)}.secure-hint{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--theme-warning);background:var(--theme-primary-light);border:1px solid var(--theme-border);border-radius:6px;padding:5px 10px;margin-right:6px}.intro-card{padding:20px 24px}.intro-head{display:flex;align-items:center;margin-bottom:12px}.intro-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--theme-primary);background:var(--theme-primary-light);border:1px solid var(--theme-primary);border-radius:999px;padding:4px 12px}.intro-desc{font-size:13px;color:var(--theme-text-secondary);line-height:1.6;margin-bottom:16px}.intro-features{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.feature{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:10px;background:var(--theme-bg-hover);border:1px solid var(--theme-border-light)}.feature-icon{flex-shrink:0;width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--theme-primary);background:var(--theme-primary-light)}.feature-text{display:flex;flex-direction:column;gap:3px}.feature-title{font-size:13px;font-weight:600;color:var(--theme-text-primary)}.feature-desc{font-size:12px;color:var(--theme-text-secondary);line-height:1.5}.main-content{display:grid;grid-template-columns:1fr;gap:16px;align-items:start;max-width:960px;margin:24px auto 40px;padding:0 16px}.title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px}.title-row .section-title{margin-bottom:0}.save-hint{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--theme-text-secondary)}.clear-saved{margin-left:4px;padding:2px 8px;border:1px solid var(--theme-border);border-radius:6px;background:var(--theme-bg-card);color:var(--theme-error);font-size:12px;cursor:pointer}.clear-saved:hover{background:var(--theme-primary-light)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:5px;position:relative}.field.span2{grid-column:span 2}.label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--theme-text-secondary)}.key-link{display:inline-flex;align-items:center;gap:3px;color:var(--theme-primary);text-decoration:none;font-size:11px;cursor:pointer;white-space:nowrap}.key-link:hover{text-decoration:underline}.field input,.field select,.field textarea{border:1px solid var(--theme-border);border-radius:8px;padding:9px 10px;font-size:13px;font-family:inherit;background:var(--theme-input-bg);color:var(--theme-text-primary);outline:none;transition:border-color .15s,box-shadow .15s;width:100%}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--theme-primary);box-shadow:0 0 0 3px var(--theme-primary-light);background:var(--theme-input-bg)}.field input::placeholder,.field textarea::placeholder{color:var(--theme-text-placeholder)}.field textarea{resize:vertical}.field .eye{position:absolute;right:8px;top:26px;border:none;background:none;color:var(--theme-text-placeholder);cursor:pointer;padding:2px}.field .eye:hover{color:var(--theme-text-primary)}.field .custom-input{margin-top:2px}.mcp-card .mcp-desc{font-size:13px;color:var(--theme-text-secondary);margin:2px 0 12px;line-height:1.6}.mcp-card .mcp-desc code{background:var(--theme-bg-input);padding:1px 6px;border-radius:4px;font-size:12px}.mcp-empty{padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.6;color:var(--theme-text-secondary);background:var(--theme-bg-input);border:1px dashed var(--theme-border)}.mcp-config-row{display:flex;align-items:flex-end;gap:10px;margin-bottom:10px}.mcp-mac-row{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--theme-text-secondary)}.mcp-mac-row input{width:90px;padding:6px 8px;border-radius:6px;border:1px solid var(--theme-border);background:var(--theme-bg-input);color:var(--theme-text-primary);font-size:14px;letter-spacing:1px}.btn-copy{padding:6px 14px;border-radius:6px;border:1px solid var(--theme-primary);background:transparent;color:var(--theme-primary);font-size:13px;cursor:pointer}.btn-copy:hover:not(:disabled){background:var(--theme-primary-light)}.btn-copy:disabled{opacity:.5;cursor:not-allowed}.mcp-config{margin:0;padding:12px;border-radius:8px;background:var(--theme-bg-input);color:var(--theme-text-primary);font-size:12px;line-height:1.6;overflow-x:auto;border:1px solid var(--theme-border)}.flash-info{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.info-row{display:flex;justify-content:space-between;font-size:13px}.info-row span{color:var(--theme-text-secondary)}.info-row b{font-weight:600;color:var(--theme-text-primary);word-break:break-all;text-align:right}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--theme-text-secondary);margin-bottom:14px;cursor:pointer}.checkbox-row input{accent-color:var(--theme-primary)}.flash-baud-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--theme-text-secondary);margin-bottom:14px}.flash-baud-row select{width:130px;padding:6px 10px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-input-bg);color:var(--theme-text-primary);font-size:12px;font-family:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.flash-baud-row select:focus{border-color:var(--theme-primary);box-shadow:0 0 0 3px var(--theme-primary-light)}.flash-baud-row select:disabled{opacity:.55;cursor:not-allowed}.btn-flash{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:none;border-radius:10px;background:var(--theme-primary);color:var(--theme-text-inverse);font-size:15px;font-weight:600;padding:13px 0;cursor:pointer;transition:background .15s,opacity .15s}.btn-flash:hover:not(:disabled){background:var(--theme-primary-dark)}.btn-flash:disabled{opacity:.55;cursor:not-allowed}.flash-progress-wrap{margin-top:14px;height:8px;border-radius:4px;background:var(--theme-bg-hover);overflow:hidden}.progress-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--theme-primary),var(--theme-accent));transition:width .2s}.flash-status{margin-top:8px;font-size:12px;color:var(--theme-text-secondary);min-height:16px}.monitor-row{display:flex;align-items:center;gap:8px;margin-top:10px}.btn-monitor{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--theme-primary);background:transparent;color:var(--theme-primary);border-radius:8px;padding:5px 12px;font-size:12px;cursor:pointer;transition:background .15s,opacity .15s}.btn-monitor:hover:not(:disabled){background:var(--theme-primary-light)}.btn-monitor:disabled{opacity:.45;cursor:not-allowed}.monitor-state{display:inline-flex;align-items:center;gap:5px;margin-left:auto;font-size:12px;color:var(--theme-text-secondary)}.monitor-dot{width:8px;height:8px;border-radius:50%;background:#64748b;transition:background .2s}.monitor-state.on .monitor-dot{background:#4ade80;box-shadow:0 0 6px #4ade80;animation:monitor-pulse 1.6s ease-in-out infinite}@keyframes monitor-pulse{0%,to{opacity:1}50%{opacity:.4}}.monitor-state.on{color:#4ade80}.log-actions{display:flex;align-items:center;gap:8px;margin-top:8px}.btn-log-action{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--theme-border);background:transparent;color:var(--theme-text-secondary);border-radius:8px;padding:4px 10px;font-size:12px;cursor:pointer;transition:background .15s,color .15s,border-color .15s,opacity .15s}.btn-log-action:hover:not(:disabled){background:var(--theme-primary-light);color:var(--theme-primary);border-color:var(--theme-primary)}.btn-log-action:disabled{opacity:.4;cursor:not-allowed}.btn-log-clear:hover:not(:disabled){background:#f871711f;color:#f87171;border-color:#f87171}.log-box{margin-top:14px;height:260px;overflow-y:auto;background:var(--theme-log-bg);border-radius:10px;padding:10px 12px;font-family:SF Mono,Menlo,Consolas,monospace;font-size:12px;line-height:1.7}.log-line{color:var(--theme-log-text);word-break:break-all}.log-line .log-time{color:#64748b;margin-right:6px}.log-line.info{color:#7dd3fc}.log-line.success{color:#4ade80}.log-line.error{color:#f87171}.log-line.dev{color:#cbd5e1}.log-empty{color:#475569}.emote-empty{padding:18px 0;font-size:13px;color:var(--theme-text-placeholder);text-align:center}.preset-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:14px}.emote-tip-bar{font-size:13px;color:var(--theme-text-secondary);line-height:1.6;margin-bottom:10px}.preset-card{position:relative;flex:0 0 168px;display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--theme-border-light);border-radius:12px;background:var(--theme-bg-hover);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.preset-card:hover{border-color:var(--theme-primary);box-shadow:0 0 0 3px var(--theme-primary-light);background:var(--theme-input-bg)}.preset-card.active{border-color:var(--theme-primary);background:var(--theme-primary-light)}.preset-card.applying{opacity:.6;cursor:wait}.preset-card.applying:hover{box-shadow:none;border-color:var(--theme-border-light)}.preset-check{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;background:var(--theme-primary);color:var(--theme-text-inverse);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px #00000040}.preset-cover{width:100%;height:96px;object-fit:contain;border-radius:8px;background:var(--theme-log-bg)}.preset-cover.factory{display:flex;align-items:center;justify-content:center;background:var(--theme-bg-hover);color:var(--theme-text-secondary);font-size:14px}.preset-info{display:flex;flex-direction:column;gap:2px}.preset-name{font-size:13px;font-weight:600;color:var(--theme-text-primary)}.preset-desc{font-size:11px;color:var(--theme-text-placeholder);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden}.preset-btn{margin-top:auto;padding:6px 0;border:none;border-radius:8px;background:var(--theme-primary);color:var(--theme-text-inverse);font-size:12px;cursor:pointer;transition:background .15s}.preset-btn:hover{background:var(--theme-primary-dark)}.preset-btn:disabled{opacity:.6;cursor:default}.preset-btn.ghost{background:var(--theme-border);color:var(--theme-text-secondary)}.preset-btn.ghost:hover{background:var(--theme-text-placeholder)}.emote-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.emote-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 4px 8px;border:1px solid var(--theme-border-light);border-radius:10px;background:var(--theme-bg-hover);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.emote-item:hover{border-color:var(--theme-primary);box-shadow:0 0 0 3px var(--theme-primary-light);background:var(--theme-input-bg)}.emote-item.customized{border-color:var(--theme-primary);background:var(--theme-primary-light)}.emote-face{width:34px;height:34px;color:var(--theme-text-placeholder)}.emote-face-img{width:34px;height:34px;object-fit:contain;border-radius:4px;background:var(--theme-input-bg)}.emote-item.customized .emote-face{color:var(--theme-primary)}.emote-label{font-size:12px;font-weight:600;color:var(--theme-text-primary)}.emote-en{font-size:10px;color:var(--theme-text-placeholder);word-break:break-all;text-align:center}.emote-badge{margin-top:2px;padding:2px 8px;border-radius:999px;font-size:10px;color:var(--theme-primary);background:var(--theme-primary-light);border:1px solid var(--theme-primary);cursor:pointer;transition:background .15s,color .15s}.emote-badge:hover{background:var(--theme-primary);color:var(--theme-text-inverse)}.emote-badge.plain{background:transparent;color:var(--theme-text-placeholder);border-color:var(--theme-border);cursor:default}.emote-replace-mask{position:absolute;top:6px;left:50%;transform:translate(-50%);padding:2px 8px;border-radius:999px;background:var(--theme-primary);color:var(--theme-text-inverse);font-size:10px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}.emote-item:hover .emote-replace-mask{opacity:1}.emote-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12px;color:var(--theme-text-secondary)}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;background:var(--theme-bg-mask)}.modal{width:340px;background:var(--theme-bg-card);border-radius:14px;padding:20px;border:1px solid var(--theme-border-light);box-shadow:var(--theme-shadow-lg)}.modal-title{margin:0 0 6px;font-size:16px;font-weight:600;color:var(--theme-text-primary)}.modal-sub{margin:0 0 14px;font-size:12px;color:var(--theme-text-secondary)}.modal-preview{display:flex;align-items:center;justify-content:center;height:200px;border-radius:10px;overflow:hidden;background:var(--theme-log-bg);margin-bottom:16px}.modal-preview img{max-width:100%;max-height:100%;object-fit:contain}.preview-tip{font-size:13px;line-height:1.8;text-align:center;color:#94a3b8;white-space:pre-line}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.btn-ghost{padding:8px 18px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-input-bg);color:var(--theme-text-secondary);font-size:13px;cursor:pointer;transition:border-color .15s}.btn-ghost:hover{border-color:var(--theme-text-placeholder)}.btn-primary{padding:8px 18px;border:none;border-radius:8px;background:var(--theme-primary);color:var(--theme-text-inverse);font-size:13px;font-weight:600;cursor:pointer}.btn-primary:hover:not(:disabled){background:var(--theme-primary-dark)}.btn-primary:disabled{opacity:.55;cursor:not-allowed}@media (max-width: 860px){.form-grid{grid-template-columns:1fr}.field.span2{grid-column:span 1}.emote-grid{grid-template-columns:repeat(3,1fr)}.emote-foot{flex-direction:column;gap:4px;align-items:flex-start}.top-bar{padding:0 12px}.secure-hint{display:none}.main-content{margin-top:16px}.intro-features{grid-template-columns:1fr}}:root{--theme-primary: #07c160;--theme-primary-light: rgba(7, 193, 96, .1);--theme-primary-dark: #05964e;--theme-accent: #00a870;--theme-accent-light: rgba(0, 168, 112, .1);--theme-accent-dark: #008858;--theme-bg-page: #f8f8f8;--theme-bg-card: #ffffff;--theme-bg-hover: #f1f1f1;--theme-bg-mask: rgba(0, 0, 0, .5);--theme-text-primary: #333333;--theme-text-secondary: #666666;--theme-text-placeholder: #999999;--theme-text-inverse: #ffffff;--theme-border: #e5e5e5;--theme-border-light: #f0f0f0;--theme-success: #07c160;--theme-warning: #faad14;--theme-error: #ff4d4f;--theme-info: #1890ff;--theme-shadow: 0 2px 12px rgba(0, 0, 0, .08);--theme-shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);--theme-glow-primary: 0 0 20px rgba(7, 193, 96, .3);--theme-glow-accent: 0 0 20px rgba(0, 168, 112, .3);--theme-input-bg: #ffffff;--theme-log-bg: #0f172a;--theme-log-text: #cbd5e1}[data-theme=blue]{--theme-primary: #007aff;--theme-primary-light: rgba(0, 122, 255, .1);--theme-primary-dark: #0055cc;--theme-accent: #3399ff;--theme-accent-light: rgba(51, 153, 255, .1);--theme-accent-dark: #0066cc;--theme-bg-page: #f5f7fa;--theme-bg-card: #ffffff;--theme-bg-hover: #eef2f7;--theme-bg-mask: rgba(0, 0, 0, .5);--theme-text-primary: #333333;--theme-text-secondary: #666666;--theme-text-placeholder: #999999;--theme-text-inverse: #ffffff;--theme-border: #d9e3f0;--theme-border-light: #eef2f7;--theme-success: #07c160;--theme-warning: #faad14;--theme-error: #ff4d4f;--theme-info: #007aff;--theme-shadow: 0 2px 12px rgba(0, 122, 255, .08);--theme-shadow-lg: 0 8px 24px rgba(0, 122, 255, .12);--theme-glow-primary: 0 0 20px rgba(0, 122, 255, .3);--theme-glow-accent: 0 0 20px rgba(51, 153, 255, .3);--theme-input-bg: #ffffff;--theme-log-bg: #0f172a;--theme-log-text: #cbd5e1}[data-theme=cyberpunk]{--theme-primary: #00ff88;--theme-primary-light: rgba(0, 255, 136, .15);--theme-primary-dark: #00cc6a;--theme-accent: #9d4edd;--theme-accent-light: rgba(157, 78, 221, .15);--theme-accent-dark: #7b2cbf;--theme-bg-page: #0a0a0f;--theme-bg-card: #15151f;--theme-bg-hover: #1f1f2e;--theme-bg-mask: rgba(0, 0, 0, .7);--theme-text-primary: #ffffff;--theme-text-secondary: #a0a0b0;--theme-text-placeholder: #606070;--theme-text-inverse: #0a0a0f;--theme-border: #2a2a3a;--theme-border-light: #1f1f2e;--theme-success: #00ff88;--theme-warning: #ffaa00;--theme-error: #ff3366;--theme-info: #00ccff;--theme-shadow: 0 2px 12px rgba(0, 255, 136, .1);--theme-shadow-lg: 0 8px 32px rgba(157, 78, 221, .2);--theme-glow-primary: 0 0 20px rgba(0, 255, 136, .4);--theme-glow-accent: 0 0 20px rgba(157, 78, 221, .4);--theme-input-bg: #1f1f2e;--theme-log-bg: #0a0a0f;--theme-log-text: #cbd5e1}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Microsoft YaHei,Helvetica Neue,Arial,sans-serif;background-color:var(--theme-bg-page);color:var(--theme-text-primary);transition:background-color .3s ease,color .3s ease}#app{min-height:100%}.theme-card{background-color:var(--theme-bg-card);border-radius:12px;padding:24px;border:1px solid var(--theme-border-light);box-shadow:var(--theme-shadow);transition:all .3s ease}.theme-card:hover{box-shadow:var(--theme-shadow-lg)}.section-title{font-size:18px;font-weight:700;color:var(--theme-text-primary);margin-bottom:16px;display:flex;align-items:center;gap:8px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--theme-border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--theme-text-placeholder)}[data-theme=cyberpunk] .theme-card{border-color:var(--theme-border)}[data-theme=cyberpunk] .btn-primary,[data-theme=cyberpunk] .btn-flash{background:transparent;border:1px solid var(--theme-primary);color:var(--theme-primary);box-shadow:var(--theme-glow-primary),inset 0 0 12px var(--theme-primary-light)}[data-theme=cyberpunk] .btn-primary:hover:not(:disabled),[data-theme=cyberpunk] .btn-flash:hover:not(:disabled){background:var(--theme-primary-light);color:var(--theme-primary)}[data-theme=cyberpunk] .btn-primary:disabled,[data-theme=cyberpunk] .btn-flash:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}[data-theme=cyberpunk] .top-bar{position:relative;background:linear-gradient(135deg,var(--theme-bg-card) 0%,rgba(0,255,136,.08) 45%,rgba(157,78,221,.12) 100%);border-bottom-color:#00ff8840}[data-theme=cyberpunk] .top-bar:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent 0%,var(--theme-primary) 25%,var(--theme-accent) 75%,transparent 100%);box-shadow:0 0 10px var(--theme-primary),0 0 20px var(--theme-accent)}[data-theme=cyberpunk] .top-bar-logo{box-shadow:0 0 12px var(--theme-glow-primary);border-radius:8px}[data-theme=cyberpunk] .top-bar-title{text-shadow:0 0 12px var(--theme-primary-light)}[data-theme=cyberpunk] .field input,[data-theme=cyberpunk] .field select,[data-theme=cyberpunk] .field textarea{background:var(--theme-bg-hover);border-color:var(--theme-border);color:var(--theme-text-primary)}[data-theme=cyberpunk] .field input::placeholder,[data-theme=cyberpunk] .field textarea::placeholder{color:var(--theme-text-placeholder)}[data-theme=cyberpunk] .field select option{background:var(--theme-bg-card);color:var(--theme-text-primary)}
