*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{min-width:360px;color:#172033;background:#eef2f7;font-family:Inter,Microsoft YaHei,PingFang SC,Segoe UI,Arial,sans-serif}button,textarea,input{font:inherit}button{border:0}.auth-shell{display:grid;grid-template-columns:minmax(0,1fr) 420px;width:100%;min-height:100vh;background:linear-gradient(120deg,rgba(37,99,235,.12),transparent 36%),linear-gradient(315deg,rgba(20,184,166,.16),transparent 38%),#eef2f7}.auth-preview{display:grid;min-width:0;padding:48px;place-items:center}.auth-preview-window{width:min(860px,100%);aspect-ratio:16 / 10;overflow:hidden;border:1px solid #cfd6df;border-radius:8px;background:#fff;box-shadow:0 24px 70px #1e293b2e}.auth-preview-toolbar{display:flex;gap:8px;height:42px;align-items:center;padding:0 16px;border-bottom:1px solid #d8dee8;background:#f8fafc}.auth-preview-toolbar span{width:10px;height:10px;border-radius:50%;background:#cbd5e1}.auth-preview-canvas{display:grid;grid-template-columns:minmax(120px,180px) minmax(42px,90px) minmax(130px,190px) minmax(42px,90px) minmax(120px,180px);align-items:center;justify-content:center;gap:0;height:calc(100% - 42px);padding:42px;background:linear-gradient(#edf1f6 1px,transparent 1px),linear-gradient(90deg,#edf1f6 1px,transparent 1px),#fbfdff;background-size:26px 26px}.auth-node{display:grid;min-height:76px;padding:12px;place-items:center;text-align:center;border:2px solid #cfd6df;border-radius:8px;background:#fff;color:#1f2937;font-size:16px;font-weight:800;box-shadow:0 8px 20px #1e293b14}.auth-node.primary{border-color:#2d6cdf;background:#e8f3ff;color:#173a6b}.auth-node.accent{border-color:#c58a00;background:#fff7df;color:#4b3600}.auth-node.success{border-color:#2d8f53;background:#eaf7ef;color:#16351f}.auth-line{height:2px;background:#667085}.auth-line:after{display:block;width:0;height:0;margin-top:-5px;margin-left:auto;content:"";border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #667085}.auth-panel{display:flex;flex-direction:column;justify-content:center;gap:22px;min-width:0;padding:44px;border-left:1px solid #cfd6df;background:#ffffffe0;box-shadow:-12px 0 40px #1e293b14}.auth-brand{display:grid;gap:8px}.auth-brand span{color:#2563eb;font-size:15px;line-height:1.3;font-weight:900}.auth-brand strong{color:#182230;font-size:30px;line-height:1.18;font-weight:900}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border:1px solid #d8dee8;border-radius:8px;background:#f2f4f7}.auth-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;color:#526174;border-radius:6px;background:transparent;font-weight:800;cursor:pointer}.auth-tabs button.active{color:#1d4ed8;background:#fff;box-shadow:0 1px 3px #1e293b1f}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px}.auth-form label span{color:#344054;font-size:13px;line-height:1.3;font-weight:800}.auth-form input{width:100%;height:42px;padding:0 12px;color:#172033;border:1px solid #c8d1dc;border-radius:8px;outline:none;background:#fff}.auth-form input:focus{border-color:#4f9df7;box-shadow:0 0 0 3px #4f9df72e}.auth-submit-button,.demo-entry-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:8px;font-weight:900;cursor:pointer}.auth-submit-button{color:#fff;background:#2563eb;box-shadow:0 2px 8px #2563eb40}.auth-submit-button:hover{background:#1d4ed8}.demo-entry-button{width:100%;color:#17442e;border:1px solid #9bd9b5;background:#eaf7ef}.demo-entry-button:hover{border-color:#62c487;background:#dcf5e7}.app-shell{display:grid;grid-template-columns:minmax(0,1fr) 400px;height:100vh;min-height:640px;overflow:hidden}.app-shell.chat-closed{grid-template-columns:minmax(0,1fr) 46px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.editor-area{min-width:0;min-height:0;padding:4px;background:#eef1f5}.editor-area .diagrams-iframe{display:block;overflow:hidden;border:1px solid #cfd6df!important;border-radius:6px;background:#fff;box-shadow:0 1px 4px #1e293b1f}.chat-panel{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;overflow:hidden;border-left:1px solid #cfd6df;background:#f3f5f8}.chat-resize-handle{position:absolute;top:0;bottom:0;left:-5px;z-index:3;width:10px;cursor:col-resize;touch-action:none}.chat-resize-handle:after{position:absolute;top:0;bottom:0;left:4px;width:2px;content:"";background:transparent}.chat-resize-handle:hover:after,.chat-resize-handle:focus-visible:after,body.is-resizing-chat-panel .chat-resize-handle:after{background:#5b9de6}.chat-resize-handle:focus-visible{outline:2px solid rgba(91,157,230,.45);outline-offset:-2px}body.is-resizing-chat-panel{cursor:col-resize;-webkit-user-select:none;user-select:none}.chat-toggle{position:absolute;top:14px;left:-17px;z-index:2;display:grid;width:34px;height:34px;color:#2f3b4d;place-items:center;border:1px solid #cfd6df;border-radius:6px;background:linear-gradient(180deg,#fff,#eef3f9);box-shadow:0 2px 8px #1e293b29;cursor:pointer}.chat-toggle:hover{color:#1f5fbf;background:#e8f2ff}.chat-content{display:flex;flex:1;flex-direction:column;height:100%;min-width:0;min-height:0;overflow:hidden}.chat-header{display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid #d8dee8;background:linear-gradient(180deg,#fff,#f4f7fb)}.chat-title-block{display:grid;gap:6px;min-width:0}.chat-header h2{margin:0;color:#182230;font-size:20px;line-height:1.25;font-weight:800}.chat-header p{margin:0;color:#66758a;font-size:13px;line-height:1.45}.chat-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-width:0;color:#66758a;font-size:12px;line-height:1.35}.chat-connection-status{display:inline-flex;align-items:center;gap:7px;color:#237a46;font-size:12px;line-height:1.35;font-weight:700}.chat-connection-status span{width:7px;height:7px;border-radius:999px;background:#12b76a;box-shadow:0 0 0 3px #12b76a24}.demo-user-switch{display:inline-flex;align-items:center;gap:6px;min-width:0}.demo-user-switch span{flex:0 0 auto;color:#66758a;font-size:12px;line-height:1.35;font-weight:700}.demo-user-switch select{height:24px;max-width:118px;padding:0 6px;color:#1f3f68;border:1px solid #d6e6fb;border-radius:6px;background:#fff;font-size:12px;font-weight:800}.credit-summary{display:inline-flex;align-items:center;gap:10px;min-width:0}.credit-summary span{color:#66758a;font-size:12px;line-height:1.35;font-weight:600}.credit-summary strong{color:#1f3f68;font-size:12px;line-height:1.35;font-weight:900}.credit-summary button{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;height:24px;padding:0 8px;color:#1f5fbf;border:1px solid #d6e6fb;border-radius:999px;background:#f8fbffd1;font-size:12px;font-weight:800;cursor:pointer}.credit-summary button svg{flex:0 0 auto}.credit-summary button:hover{color:#1d4ed8;border-color:#bfd7f5;background:#e8f2ff}.credit-summary button.active{color:#fff;border-color:#2563eb;background:#2563eb}.credit-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;padding:24px;place-items:center;background:#0f172a59}.credit-modal{display:grid;gap:18px;width:min(900px,100%);padding:24px 26px 26px;border:1px solid #d8dee8;border-radius:16px;background:#fff;box-shadow:0 24px 70px #0f172a38}.credit-modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.credit-modal-header div{display:grid;gap:0}.credit-modal-header strong{color:#182230;font-size:25px;line-height:1.2;font-weight:900}.credit-modal-header button{display:grid;width:34px;height:34px;place-items:center;color:#66758a;border-radius:7px;background:transparent;cursor:pointer}.credit-modal-header button:hover{color:#8a1f11;background:#fff4f2}.credit-modal-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border:1px solid #d6e6fb;border-radius:12px;background:#f8fbff}.credit-modal-balance span{color:#66758a;font-size:13px;font-weight:800}.credit-modal-balance strong{color:#1f3f68;font-size:20px;font-weight:900}.credit-promo-card{display:grid;gap:15px;padding:18px 18px 16px;border:1px solid #fde6c8;border-radius:16px;background:linear-gradient(135deg,#fffaf3,#fff7ed 58%,#f8fbff)}.credit-promo-main{display:flex;justify-content:space-between;gap:20px}.credit-promo-heading{display:inline-flex;align-items:center;gap:10px}.credit-promo-heading strong{color:#9a3412;font-size:16px;line-height:1.3;font-weight:900}.credit-promo-heading span{flex:0 0 auto;padding:5px 10px;color:#1f5fbf;border:1px solid #cfe0f7;border-radius:999px;background:#f4f8ff;font-size:12px;line-height:1.2;font-weight:800}.credit-promo-card h3{margin:10px 0 6px;color:#182230;font-size:18px;line-height:1.3;font-weight:900}.credit-promo-card p{margin:0;color:#475569;font-size:13px;line-height:1.55}.credit-test-team{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;border:1px solid #d6e6fb;border-radius:8px;background:#f8fbffdb}.credit-test-team span{color:#1f3f68;font-size:12px;line-height:1.25;font-weight:900}.credit-test-team button{height:26px;padding:0 8px;color:#1f5fbf;border:1px solid #bfd7f5;border-radius:7px;background:#fff;font-size:12px;font-weight:800;cursor:pointer}.credit-test-team button:hover{background:#e8f2ff}.credit-team-list-wrap{display:grid;gap:10px}.credit-team-list-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.credit-team-list-title strong{color:#182230;font-size:13px;line-height:1.25;font-weight:900}.credit-team-list-title span{color:#64748b;font-size:12px;line-height:1.25;font-weight:800}.credit-team-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;max-height:260px;overflow-y:auto;padding:2px 2px 4px}.credit-team-option{display:grid;align-content:space-between;gap:12px;min-width:0;min-height:148px;padding:14px;text-align:left;border:1px solid #d8e4f2;border-radius:14px;background:#ffffffdb;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}.credit-team-option:hover{border-color:#7daeea;background:#f8fbff;transform:translateY(-1px)}.credit-team-option.selected{border-color:#2563eb;box-shadow:0 8px 22px #2563eb1f;background:#fff}.credit-team-leader{display:grid;gap:4px;min-width:0}.credit-team-leader small{color:#667085;font-size:12px;line-height:1.2;font-weight:800}.credit-team-leader strong{overflow:hidden;color:#172554;font-size:14px;line-height:1.25;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.credit-seat-row{position:relative;display:flex;align-items:center;justify-content:center;gap:18px}.credit-seat-row:before{position:absolute;right:18px;left:18px;height:1px;content:"";background:#cbd8ea}.credit-seat-node{position:relative;z-index:1;display:grid;width:42px;height:42px;place-items:center;color:#64748b;border:1px solid #d6e1ee;border-radius:50%;background:#fff;font-size:10px;line-height:1.1;font-weight:800}.credit-seat-node.filled{color:#fff;border-color:#2563eb;background:#2563eb;box-shadow:0 5px 12px #2563eb29}.credit-seat-node.your-seat{color:#fff;border-color:#ea580c;background:#ea580c;box-shadow:0 5px 12px #ea580c29}.credit-team-state{justify-self:start;padding:6px 10px;color:#9a3412;border:1px solid #fde6c8;border-radius:999px;background:#fffaf3;font-size:12px;line-height:1.2;font-weight:900}.credit-team-empty{padding:14px 16px;color:#475569;border:1px dashed #cbd5e1;border-radius:14px;background:#ffffffad;font-size:12px;line-height:1.45;font-weight:800}.credit-promo-status{display:grid;align-content:start;justify-items:end;gap:8px;flex:0 0 auto}.credit-promo-status strong{padding:5px 10px;color:#1f5fbf;border:1px solid #cfe0f7;border-radius:999px;background:#f4f8ff;font-size:13px;line-height:1.3;font-weight:900}.credit-promo-status span{padding:6px 10px;color:#9a3412;border:1px solid #fde6c8;border-radius:999px;background:#fffaf3e6;font-size:12px;line-height:1.2;font-weight:800}.credit-group-progress{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e6eef8;border-radius:12px;background:#ffffff9e}.credit-group-progress span{color:#475569;font-size:12px;line-height:1.25;font-weight:800}.credit-group-progress strong{color:#9a3412;font-size:12px;line-height:1.25;font-weight:900}.credit-section-title{color:#344054;font-size:14px;line-height:1.3;font-weight:900}.credit-loading,.credit-load-error{padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.4;font-weight:700}.credit-loading{color:#1f5fbf;border:1px solid #d6e6fb;background:#f8fbff}.credit-load-error{color:#8a1f11;border:1px solid #f3c3bb;background:#fff4f2}.credit-package-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.credit-package-button{position:relative;display:grid;gap:9px;min-width:0;padding:17px 16px;color:#1f2937;text-align:left;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}.credit-package-button:hover{border-color:#93c5fd;background:#fbfdff;box-shadow:0 6px 16px #2563eb14;transform:translateY(-1px)}.credit-package-button.selected{border:2px solid #2563eb;background:#eff6ff}.credit-package-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.credit-package-title strong{color:#182230;font-size:22px;line-height:1.2;font-weight:900}.credit-package-title em{flex:0 0 auto;padding:4px 8px;color:#1f5fbf;border:1px solid #cfe0f7;border-radius:999px;background:#f4f8ff;font-size:12px;line-height:1;font-style:normal;font-weight:900}.credit-package-price{color:#ea580c;font-size:20px;line-height:1.2;font-weight:900}.credit-package-button del{color:#94a3b8;font-size:12px;line-height:1.2}.credit-package-button i{justify-self:start;color:#9a3412;font-size:12px;line-height:1.2;font-style:normal;font-weight:800}.credit-package-button small{color:#667085;font-size:13px;line-height:1.35;font-weight:700}.credit-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid #e2e8f0}.credit-footer-summary{display:grid;gap:6px;min-width:0}.credit-footer-summary span{color:#475569;font-size:13px;line-height:1.3;font-weight:800}.credit-footer-summary strong{color:#182230;font-size:20px;line-height:1.25;font-weight:900}.credit-footer-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:10px}.credit-footer-actions button{flex:0 0 auto;min-width:122px;height:44px;border-radius:12px;font-size:15px;font-weight:900;cursor:pointer}.credit-group-buy-button{color:#fff;background:#2563eb;box-shadow:0 8px 18px #2563eb33}.credit-group-buy-button:hover{background:#1d4ed8}.credit-group-buy-button:disabled{cursor:not-allowed;background:#94a3b8;box-shadow:none}.credit-footer-actions .credit-original-price-button{color:#475569;border:1px solid #d8dee8;background:#fff;box-shadow:none}.credit-footer-actions .credit-original-price-button:hover{color:#1f5fbf;border-color:#bfd7f5;background:#f8fbff}.payment-method-modal{position:fixed;z-index:24;top:50%;left:50%;display:grid;gap:16px;width:min(420px,calc(100vw - 40px));padding:22px;border:1px solid #d8dee8;border-radius:16px;background:#fff;box-shadow:0 24px 70px #0f172a47;transform:translate(-50%,-50%)}.payment-method-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.payment-method-header div{display:grid;gap:4px}.payment-method-header span{color:#2563eb;font-size:12px;line-height:1.2;font-weight:900}.payment-method-header strong{color:#182230;font-size:22px;line-height:1.25;font-weight:900}.payment-method-header button{display:grid;width:32px;height:32px;place-items:center;color:#66758a;border-radius:7px;background:transparent;cursor:pointer}.payment-method-header button:hover{color:#8a1f11;background:#fff4f2}.payment-order-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #d6e6fb;border-radius:12px;background:#f8fbff}.payment-order-summary span{color:#667085;font-size:12px;line-height:1.35;font-weight:700}.payment-order-summary strong{color:#1f3f68;font-size:16px;line-height:1.3;font-weight:900}.payment-method-list{display:grid;gap:10px}.payment-method-list button{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px;text-align:left;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer}.payment-method-list button:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 6px 16px #2563eb14}.payment-method-list button:disabled{cursor:not-allowed;opacity:.64;box-shadow:none}.payment-icon{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;color:#fff;border-radius:50%;font-size:14px;font-weight:900}.payment-icon.wechat{background:#16a34a}.payment-icon.alipay{background:#2563eb}.payment-method-list div{display:grid;gap:3px}.payment-method-list strong{color:#182230;font-size:15px;line-height:1.3;font-weight:900}.payment-method-list span{color:#667085;font-size:12px;line-height:1.3}.payment-error{padding:10px 12px;color:#8a1f11;border:1px solid #f3c3bb;border-radius:10px;background:#fff4f2;font-size:13px;line-height:1.4;font-weight:700}.order-center{display:flex;flex:1;flex-direction:column;gap:18px;min-height:0;padding:18px;overflow-y:auto;background:#f5f8fc}.order-center-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-center-header div{display:grid;gap:4px}.order-header-actions{display:flex!important;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px!important}.order-center-header span{color:#2563eb;font-size:12px;line-height:1.2;font-weight:900}.order-center-header strong{color:#182230;font-size:22px;line-height:1.25;font-weight:900}.order-center-header button,.order-empty button,.order-pagination button,.order-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;padding:0 10px;color:#1f5fbf;border:1px solid #bfd7f5;border-radius:9px;background:#fff;font-size:12px;font-weight:800;cursor:pointer}.order-center-header button:hover,.order-empty button:hover,.order-pagination button:hover,.order-actions button:hover{background:#e8f2ff}.order-pagination button:disabled,.order-actions button:disabled{cursor:not-allowed;color:#667085;border-color:#d8dee8;background:#f2f4f7}.order-list{display:grid;gap:16px}.order-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 0}.order-pagination span{color:#667085;font-size:12px;line-height:1.25;font-weight:800}.order-pagination div{display:flex;align-items:center;justify-content:flex-end;gap:8px}.order-card{display:grid;gap:14px;padding:18px;border:1px solid #d9e5f3;border-radius:16px;background:#fff;box-shadow:0 8px 22px #1e293b12}.order-card-status{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-status-label{color:#16a34a;font-size:14px;line-height:1.2;font-weight:900}.order-status-label.waiting{color:#9a3412}.order-status-label.formed{color:#1d4ed8}.order-status-label.granted{color:#15803d}.order-status-label.failed{color:#b42318}.order-card-status em{flex:0 0 auto;padding:6px 10px;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;background:#fff7ed;font-size:12px;line-height:1.2;font-style:normal;font-weight:900}.order-card-title{display:grid;gap:5px;min-width:0}.order-card-title strong{color:#182230;font-size:18px;line-height:1.3;font-weight:900}.order-card-title span{color:#667085;font-size:12px;line-height:1.35;font-weight:800}.order-card-title .order-time-line{color:#7a8799;font-weight:700}.order-summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:12px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}.order-summary-row div{display:grid;gap:6px;min-width:0}.order-summary-row span,.order-progress-copy span{color:#667085;font-size:12px;line-height:1.25;font-weight:800}.order-summary-row strong,.order-progress-copy strong{min-width:0;overflow-wrap:anywhere;color:#182230;font-size:17px;line-height:1.35;font-weight:900}.order-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.order-group-status{display:grid;flex:1;gap:10px;min-width:0;padding:0;border:0;background:transparent}.order-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-progress-copy strong{color:#1f5fbf;font-size:13px}.order-node-progress{position:relative;display:flex;align-items:center;gap:26px;width:max-content;max-width:100%}.order-node-progress:before{position:absolute;right:10px;left:10px;height:2px;content:"";background:#d8e2ef}.order-node-progress span{position:relative;z-index:1;display:block;width:20px;height:20px;border:2px solid #d8e2ef;border-radius:50%;background:#fff}.order-node-progress span.completed{border-color:#2563eb;background:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.order-group-status p{margin:0;color:#475569;font-size:13px;line-height:1.5;font-weight:700}.order-actions{display:flex;flex:0 0 auto;justify-content:flex-end}.order-actions button{height:30px;white-space:nowrap}.order-empty{display:grid;flex:1;align-content:center;justify-items:center;gap:10px;min-height:280px;padding:24px;text-align:center;border:1px dashed #c8d1dc;border-radius:8px;background:#fff}.order-empty svg{color:#2563eb}.order-empty strong{color:#182230;font-size:18px;line-height:1.3;font-weight:900}.order-empty span{max-width:280px;color:#667085;font-size:13px;line-height:1.45;font-weight:700}.chat-header-toggle{display:grid;flex:0 0 auto;width:34px;height:34px;color:#344054;place-items:center;border:1px solid #cfd6df;border-radius:6px;background:#fff;cursor:pointer}.chat-header-toggle:hover{color:#1f5fbf;background:#e8f2ff}.message-list{display:flex;flex:1;flex-direction:column;gap:9px;min-height:0;padding:12px 14px;overflow-x:hidden;overflow-y:auto;background:linear-gradient(#edf1f6 1px,transparent 1px),linear-gradient(90deg,#edf1f6 1px,transparent 1px),#f6f8fb;background-size:24px 24px}.message-list::-webkit-scrollbar{width:6px}.message-list::-webkit-scrollbar-thumb{background:#c9ced6;border-radius:999px}.message-list::-webkit-scrollbar-track{background:transparent}.message-row{display:flex;flex-direction:column;gap:5px;min-width:0}.message-row.user{align-self:flex-end;align-items:flex-end;max-width:80%}.message-row.agent{align-self:flex-start;align-items:flex-start;max-width:88%}.message-meta{color:#66758a;font-size:11px;line-height:1.2;font-weight:700}.message-bubble{width:fit-content;max-width:100%;padding:10px 12px;color:#1f2937;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;border:1px solid #e1e7ef;border-radius:12px;background:#fff;font-size:14px;line-height:1.55;box-shadow:0 1px 3px #1e293b12}.message-row.agent .message-bubble{background:#fff}.message-row.user .message-bubble{color:#16345b;border-color:#c7dff5;background:#dceeff;box-shadow:0 1px 3px #2d6cdf14}.message-bubble.error{color:#8a1f11;border-color:#f3c3bb;background:#fff4f2}.message-bubble.loading{display:inline-flex;align-items:center;gap:8px}.pending-card{display:grid;gap:8px;min-width:240px;border-color:#d6e6fb;background:#f8fbff}.pending-card-title{display:inline-flex;align-items:center;gap:8px;color:#1f3f68;font-weight:800}.pending-card-step{color:#344054;font-size:13px;line-height:1.45}.pending-card-note{color:#667085;font-size:12px;line-height:1.45}.drawio-result-card{display:grid;gap:6px;min-width:220px;color:#1f2937}.drawio-result-card div{line-height:1.45}.undo-sync-button{justify-self:start;margin-top:4px;padding:6px 10px;color:#1f5fbf;border:1px solid #bfd7f5;border-radius:8px;background:#f4f9ff;font-size:12px;font-weight:700;cursor:pointer}.undo-sync-button:not(:disabled):hover{background:#e8f2ff}.undo-sync-button:disabled{color:#98a2b3;border-color:#e4e7ec;background:#f2f4f7;cursor:not-allowed}.api-debug-panel{flex-shrink:0;max-height:230px;min-width:0;overflow:auto;padding:10px 12px;border-top:1px solid #d8dee8;background:#101828;color:#d0d5dd;font-size:12px}.api-debug-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#f9fafb;font-weight:700}.api-debug-panel strong{padding:2px 7px;border-radius:6px;font-size:11px;line-height:1.4}.api-debug-panel strong.ok{color:#dcfae6;background:#067647}.api-debug-panel strong.error{color:#fee4e2;background:#b42318}.api-debug-meta{display:flex;justify-content:space-between;gap:10px;margin:9px 0;color:#98a2b3}.api-debug-error{margin:8px 0;padding:8px;color:#fee4e2;border:1px solid #f97066;border-radius:6px;background:#b4231838}.api-debug-panel label{display:block;margin:10px 0 4px;color:#98a2b3;font-weight:700}.api-debug-panel pre{max-height:120px;margin:0;overflow:auto;white-space:pre-wrap;word-break:break-word;color:#eaecf0;border:1px solid #344054;border-radius:6px;background:#0c111d;padding:8px;font-family:Consolas,SFMono-Regular,Menlo,monospace;line-height:1.45}.chat-input-bar{flex-shrink:0;padding:14px;border-top:1px solid #d8dee8;background:linear-gradient(180deg,#fff,#f5f7fa)}.chat-composer{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid #c8d1dc;border-radius:14px;background:#fff;box-shadow:0 1px 4px #1e293b14}.chat-composer:focus-within{border-color:#4f9df7;box-shadow:0 0 0 3px #4f9df72e,0 1px 4px #1e293b14}.chat-composer textarea{width:100%;min-height:54px;max-height:180px;padding:2px 2px 4px;resize:none;color:#1d2939;border:0;outline:none;overflow-y:auto;line-height:1.45;background:transparent;font-size:14px}.chat-composer textarea::placeholder{color:#8a95a7}.chat-composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.chat-composer-tools{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.composer-tool-button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 9px;color:#3f526d;border:1px solid transparent;border-radius:8px;background:transparent;font-size:13px;cursor:pointer}.composer-tool-button:not(:disabled):hover{color:#1f5fbf;background:#e8f2ff}.composer-tool-button:disabled{cursor:not-allowed;opacity:.45}.composer-send-button{display:grid;flex:0 0 auto;width:38px;height:38px;color:#fff;place-items:center;border-radius:10px;background:#2563eb;cursor:pointer;box-shadow:0 2px 6px #2563eb47}.composer-send-button:not(:disabled):hover{background:#1d4ed8}.composer-send-button:disabled{cursor:not-allowed;color:#98a2b3;background:#e4e7ec;box-shadow:none}.image-file-input{display:none}.image-attachment{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:6px 8px;color:#344054;border:1px solid #d8dee8;border-radius:6px;background:#f8fafc;font-size:12px;line-height:1.2}.image-attachment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-remove-button{display:grid;width:22px!important;height:22px!important;flex:0 0 auto;color:#66758a!important;place-items:center;border:1px solid transparent!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important}.image-remove-button:hover{color:#8a1f11!important;border-color:#f3c3bb!important;background:#fff4f2!important}@media(max-width:1180px){.auth-shell{grid-template-columns:1fr}.auth-preview{min-height:42vh;padding:28px}.auth-panel{border-top:1px solid #cfd6df;border-left:0}.app-shell,.app-shell.chat-closed{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,420px);height:100vh;min-height:0;overflow:hidden}.chat-panel{grid-column:1 / -1;min-height:0;border-top:1px solid #dbe1ea;border-left:0}.app-shell.chat-closed .chat-panel{min-height:54px}.chat-toggle{top:-18px;right:18px;left:auto}}@media(max-width:760px){.auth-shell{min-height:100vh}.auth-preview{display:none}.auth-panel{min-height:100vh;padding:28px 20px}.auth-brand strong{font-size:25px}.credit-modal{padding:16px}.credit-promo-main,.credit-group-progress{align-items:flex-start;flex-direction:column}.credit-promo-status{justify-items:start}.credit-team-list{grid-template-columns:1fr;max-height:320px}.credit-package-list{grid-template-columns:1fr}.credit-modal-footer{align-items:stretch;flex-direction:column}.credit-footer-actions{flex-direction:column-reverse;align-items:stretch}.credit-footer-actions button{width:100%}.order-center-header,.order-card-status,.order-bottom-row{align-items:stretch;flex-direction:column}.order-summary-row{grid-template-columns:1fr;gap:12px}.order-actions{justify-content:flex-start}.order-pagination{align-items:stretch;flex-direction:column}.order-pagination div{justify-content:flex-start}.order-node-progress{gap:22px}.app-shell,.app-shell.chat-closed{grid-template-columns:1fr;grid-template-rows:minmax(560px,70vh) auto}.editor-area{min-height:560px}}
