@font-face{font-family:Studio;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#f8f9fd;color:#17203b;font-family:Studio,Inter,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}a{color:#5145ee;text-decoration:none}button{border:1px solid #dfe3ef;border-radius:9px;background:#fff;color:#18213c;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600}button:hover{background:#f0f1ff;border-color:#bdb9ff}button:disabled{opacity:.5;cursor:wait}.primary{background:#5147f4;color:#fff;border-color:#5147f4;box-shadow:0 4px 10px #5147f41a}.primary:hover{background:#4338dc;color:white}.danger{color:#bb263f}.quiet{border:0;background:transparent;color:#5147f4;padding:7px}.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid #e6e9f1;display:flex;flex-direction:column;padding:24px 14px 16px;z-index:10}.brand{font-size:22px;color:#111a31;font-weight:750;display:flex;gap:11px;align-items:center;padding:0 13px 26px}.brand .icon{color:#5147f4;width:31px;height:31px;stroke-width:1.8}.workspace{padding:12px;border:1px solid #e3e7f0;border-radius:10px;display:flex;gap:10px;align-items:center;margin-bottom:18px;font-weight:600}.workspace .small{font-weight:400}.nav{display:grid;gap:4px;overflow:auto}.nav button{justify-content:flex-start;border:0;background:transparent;color:#57627f;font-weight:500;padding:12px 14px;position:relative}.nav button.active{background:#eeefff;color:#5147f4;font-weight:650}.nav button.active:before{content:'';position:absolute;left:-14px;top:5px;bottom:5px;background:#5147f4;width:4px;border-radius:4px}.nav-label{font-size:10px;letter-spacing:1.2px;font-weight:700;color:#9aa3b8;margin:19px 14px 7px;text-transform:uppercase}.side-bottom{margin-top:auto;border-top:1px solid #edf0f5;padding:16px 10px 0;display:flex;gap:10px;align-items:center}.avatar{background:#eeeaff;color:#6150b9;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;font-weight:700;flex-shrink:0}.side-bottom .small{font-size:10px;letter-spacing:.7px}.topbar{height:70px;margin-left:232px;padding:0 32px;border-bottom:1px solid #e6e9f1;display:flex;align-items:center;justify-content:space-between;background:#fff9}.breadcrumb{display:flex;align-items:center;gap:12px;color:#8690a7;font-size:13px}.breadcrumb strong{color:#24304d;font-weight:600}.search{width:330px;position:relative}.search input{padding:10px 15px 10px 37px;background:white;border:1px solid #e0e4ee;border-radius:9px;width:100%;font-size:12px}.search .icon{position:absolute;left:11px;top:9px;color:#8a92a5;width:17px}.top-right{display:flex;gap:22px;align-items:center}.main{margin-left:232px;padding:32px;max-width:1810px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#838ba5;font-weight:700;margin-bottom:7px}h1{font-size:30px;letter-spacing:-1px;margin:0 0 8px;color:#121b34;font-weight:720}h2{margin:0;font-size:17px;letter-spacing:-.3px}h3{margin:0 0 8px;font-size:15px}.subtitle,.muted{color:#7b859d;line-height:1.6}.subtitle{font-size:15px}.small{font-size:12px;color:#8490a8;line-height:1.5}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.metric{background:#fff;border:1px solid #e5e8f1;border-radius:12px;padding:22px 18px;display:flex;gap:15px;align-items:center}.metric-icon{width:49px;height:49px;display:grid;place-items:center;border-radius:13px;background:#edf1ff;color:#5147f4}.metric-icon.mint{background:#e7faf2;color:#06986a}.metric-icon.purple{background:#f0edff;color:#8663ed}.metric-icon.blue{background:#eaf6ff;color:#2183e7}.metric-value{font-size:27px;font-weight:730;line-height:1.3;color:#111b35}.metric-label{font-size:12px;color:#828ba2}.grid-main{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(280px,1fr);gap:22px;margin-bottom:22px}.panel{background:white;border:1px solid #e5e8f1;border-radius:12px;padding:23px;margin-bottom:22px;overflow:hidden}.grid-main .panel{margin-bottom:0}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.stack{display:grid;gap:14px}.empty{text-align:center;padding:30px 18px;color:#8490a8;line-height:1.7}.empty .metric-icon{margin:0 auto 14px;width:58px;height:58px}.empty strong{display:block;color:#394560;font-size:15px;margin:9px 0 4px}.flow{display:flex;gap:8px;align-items:center;padding:6px 0 24px}.step{flex:1;min-width:0;border:1px solid #e3e7f1;border-radius:10px;padding:20px 8px;text-align:center;background:#fcfdff}.step .metric-icon{margin:0 auto 14px}.step .name{font-size:12px;font-weight:650;margin-bottom:6px}.step small{display:block;font-size:11px;color:#919bb0}.arrow{color:#c3cadd}.flow-note{display:flex;gap:8px;align-items:center;font-size:11px;color:#8d98ad;border-top:1px solid #f0f1f6;padding-top:15px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;font-size:11px;padding:5px 9px;font-weight:600;background:#f0f2f7;color:#7d879c;white-space:nowrap}.status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.green{background:#e9faf1;color:#07935a}.amber{background:#fff5df;color:#b57b12}.red{background:#fff0f2;color:#c23f58}.indigo{background:#eeecff;color:#6053e9}.notice{display:flex;gap:13px;padding:17px 0;border-bottom:1px solid #eef0f5;align-items:center}.notice:last-child{border-bottom:0}.notice-title{font-size:12px;font-weight:650;margin-bottom:5px}.notice .metric-icon{width:39px;height:39px;border-radius:10px;flex-shrink:0}.notice button{font-size:11px;padding:7px 9px;margin-left:auto}.tip{background:#f1fbfc;border:1px solid #d9f1f3;padding:18px;border-radius:11px;display:flex;gap:13px;align-items:start}.tip .icon{color:#18a09d}.tip .small{margin:7px 0 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.agent-card{border:1px solid #e7eaf2;border-radius:10px;background:#fff;padding:21px;display:flex;gap:16px;align-items:start}.agent-card .metric-icon{width:48px;height:48px;flex-shrink:0}.agent-info{flex:1;min-width:0}.agent-info p{font-size:12px;line-height:1.65;color:#8790a5;min-height:40px;margin:0 0 15px}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}.card-foot button{padding:6px 10px;font-size:11px}.connections{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.connection{padding:16px;border:1px solid #e5e8f0;border-radius:10px;display:flex;align-items:center;gap:12px}.connection .provider{background:#f2f3fb;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;color:#5147f4;font-weight:750}.connection strong{font-size:13px}.add-connection{border-style:dashed;color:#5147f4;background:#fafaff}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;color:#7d879d;font-weight:600;background:#fafbfe;padding:13px;border-bottom:1px solid #e9ecf4}td{padding:15px 13px;border-bottom:1px solid #eef0f6;font-size:12px;vertical-align:middle}td button{padding:6px 10px;font-size:11px}td .small{font-size:11px;max-width:400px}tr:last-child td{border-bottom:0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tag{font-size:10px;color:#7d76aa;background:#f4f1ff;padding:4px 7px;border-radius:5px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-art{background:#eeedff;padding:64px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art:after{content:'';width:500px;height:500px;border:1px solid #d7d2ff;border-radius:50%;position:absolute;bottom:-270px;right:-150px;box-shadow:0 0 0 70px #e7e4ff,0 0 0 71px #d7d2ff,0 0 0 140px #eae8ff}.auth-art .brand{padding:0 0 65px;font-size:27px}.auth-art h1{font-size:47px;max-width:500px;line-height:1.15;letter-spacing:-1.8px}.auth-art p{font-size:16px;line-height:1.8;color:#7b78a0;max-width:420px}.auth-form{display:flex;justify-content:center;align-items:center;padding:40px}.auth-form form{width:370px}.auth-form h1{font-size:27px}.auth-form .subtitle{font-size:13px;margin-bottom:30px}.field{margin-bottom:18px}.field label{display:block;font-size:12px;font-weight:650;margin-bottom:8px;color:#4c5770}.field input,.field select,.field textarea{border:1px solid #dfe3ed;border-radius:8px;width:100%;padding:11px 12px;color:#26324b;background:white}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #cecaff;border-color:#7167f8}.field textarea{min-height:95px;resize:vertical}.field .hint{font-size:11px;color:#8d96aa;line-height:1.6;margin-top:5px}.field input[type=checkbox]{width:auto}.full{width:100%}.error{background:#fff0f2;color:#b33a4c;padding:12px;border-radius:8px;margin-bottom:15px;font-size:12px;line-height:1.6}.help-box{padding:14px 17px;background:#f7f7ff;border:1px solid #e8e6fb;border-radius:9px;color:#706d90;font-size:12px;line-height:1.8;margin:15px 0 23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid .wide{grid-column:1/-1}.login-footer{color:#9ba2b3;font-size:11px;margin-top:30px;text-align:center}dialog{border:1px solid #e0e4f0;border-radius:16px;box-shadow:0 25px 100px #151b4f33;width:660px;max-width:95vw;max-height:90vh;padding:28px}dialog::backdrop{background:#1d23494d;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.dialog-foot{border-top:1px solid #eef0f5;padding-top:20px;display:flex;justify-content:flex-end;gap:10px}.dialog-error{color:#b23248;font-size:12px;margin:12px 0}.code{background:#f4f5fa;padding:16px;border-radius:9px;font-family:Consolas,monospace;overflow-wrap:anywhere;font-size:13px;user-select:all;white-space:pre-wrap}.loading{padding:100px;text-align:center;color:#8b90a8}#toast{position:fixed;bottom:26px;right:30px;max-width:430px;padding:15px 20px;border-radius:10px;background:#202943;color:white;box-shadow:0 8px 30px #161c3333;z-index:50;display:none;font-size:13px}.disabled-banner{display:flex;gap:10px;align-items:center;background:#fff9eb;border:1px solid #f3e7c9;border-radius:9px;padding:13px 16px;color:#9d7a28;font-size:12px;margin-bottom:20px}.progress{height:6px;background:#edf0f7;border-radius:8px;overflow:hidden;margin:10px 0}.progress progress{width:100%;height:6px;accent-color:#5147f4;border:0}details{margin:12px 0}summary{cursor:pointer;color:#5147f4}.pair-actions{display:flex;gap:10px;margin:16px 0}.two{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.checklist label{display:flex;align-items:center;gap:7px;margin:9px 0;font-size:12px}.checklist input{width:auto}.hidden{display:none!important}@media(min-width:1700px){.main{padding:40px 50px}}@media(max-width:1150px){.metrics{gap:10px}.metric{padding:15px 12px}.metric-icon{width:39px;height:39px}.grid-main{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.connections{grid-template-columns:repeat(2,1fr)}.sidebar{width:210px}.main,.topbar{margin-left:210px}.search{width:250px}.auth-art{padding:38px}.auth-art h1{font-size:38px}}@media(max-width:760px){.sidebar{width:70px;padding:18px 7px}.brand{padding:0 10px 20px}.brand span,.workspace,.nav span,.side-bottom>div:not(.avatar),.nav-label{display:none}.nav button{padding:13px;justify-content:center}.side-bottom{padding:13px 10px}.main{margin-left:70px;padding:20px 16px}.topbar{margin-left:70px;padding:0 18px;height:60px}.search{width:180px}.breadcrumb{display:none}.metrics{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start}h1{font-size:25px}.subtitle{font-size:13px}.cards,.two{grid-template-columns:1fr}.panel{padding:17px}.flow{overflow-x:auto}.step{min-width:115px}.auth-page{grid-template-columns:1fr}.auth-art{display:none}.auth-form{padding:30px}.form-grid{grid-template-columns:1fr}.main .page-head button{font-size:12px;padding:9px}.connections{grid-template-columns:1fr}.top-right{width:100%;justify-content:space-between}}
.flow-footer{margin-top:20px}
.progress progress{display:block;appearance:none;-webkit-appearance:none}
.progress progress::-webkit-progress-bar{background:#edf0f7;border-radius:8px}
.progress progress::-webkit-progress-value{background:#5147f4;border-radius:8px}
.progress progress::-moz-progress-bar{background:#5147f4;border-radius:8px}

.client-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px;border-bottom:1px solid #e4e7f2;padding-bottom:12px}.client-tabs [aria-selected="true"]{background:#5046f5;color:white;border-color:#5046f5}.wide{grid-column:1/-1}#mapping-progress{min-height:24px;margin-top:16px}

/* Keep the client identity visible while scrolling nested client forms. */
.dialog-head.client-context-head{position:sticky;top:-28px;z-index:2;background:#fff;padding:18px 0;gap:16px}.client-context-head h2{overflow-wrap:anywhere}.client-context-head button{flex-shrink:0}

/* Client forms keep the same footprint across tabs and mapping editors. */
dialog.client-modal{width:min(960px,95vw);height:min(760px,90dvh);max-height:90dvh}.client-toolbar{display:flex;justify-content:flex-end;margin:0 0 20px}.client-toolbar button{width:176px;height:44px;padding:10px 16px;white-space:nowrap;flex-shrink:0}.client-section-heading{margin-bottom:24px}.client-section-heading h3{margin:0 0 10px}.client-section-heading p{margin:0}.client-modal td:last-child{min-width:150px}.client-modal .client-tabs{flex-wrap:wrap}
/* Agent profiles use the available workspace; identity and instructions stay separate. */
.agent-photo{width:76px;height:76px;object-fit:cover;border-radius:18px;flex:0 0 76px}.agent-placeholder{display:grid;place-items:center;background:#eef0ff;color:#5346ff}.agent-placeholder svg{width:40px;height:40px}
.agent-profile-grid{display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);gap:24px;align-items:start}.agent-identity{display:flex;flex-direction:column;gap:16px}.agent-identity .field{margin:0}.agent-identity textarea{min-height:110px}.profile-portrait{display:block;width:160px;height:160px;border-radius:28px;object-fit:cover;margin:0 auto}.photo-label{text-align:center;color:#5046f5;cursor:pointer;font-weight:600}.photo-input{max-width:100%;font-size:12px}.version-chip{text-align:center;background:#efedff;color:#4438ce;border-radius:12px;padding:10px}.agent-identity p{margin:0}.profile-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 22px;position:sticky;top:0;background:#f7f8fd;padding:12px 0;z-index:5}.profile-actions>div{display:flex;gap:12px;align-items:center}.profile-actions .button{padding:10px 14px;border:1px solid #dce1ef;border-radius:10px;background:white;text-decoration:none;color:inherit}.instructions-panel{min-width:0}.markdown-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:12px 0;border-block:1px solid #e6e9f3;margin-bottom:18px}.markdown-toolbar button{font-size:13px;padding:8px 12px}.markdown-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.markdown-source label,.preview-label{display:block;margin-bottom:10px;font-weight:600;color:#57627a}.markdown-source textarea{width:100%;min-height:560px;resize:vertical;font:14px/1.7 Consolas,monospace;tab-size:2;padding:16px}.markdown-preview{min-width:0;overflow-wrap:anywhere;line-height:1.7;background:#fafbfe;border:1px solid #e6e9f3;border-radius:12px;padding:20px;max-height:760px;overflow:auto}.markdown-preview h1{font-size:25px}.markdown-preview h2{font-size:21px}.markdown-preview h3{font-size:18px}.markdown-preview pre{overflow:auto;background:#eff1f7;padding:12px;border-radius:8px}.markdown-preview code{font-family:Consolas,monospace}.markdown-preview blockquote{margin:12px 0;border-left:3px solid #6458fa;padding-left:14px;color:#64708a}.client-back{margin-right:auto}
@media(max-width:1200px){.markdown-columns{grid-template-columns:1fr}.markdown-source textarea{min-height:400px}.markdown-preview{max-height:450px}}
@media(max-width:800px){.agent-profile-grid{grid-template-columns:1fr}.profile-actions{position:static;flex-wrap:wrap}.profile-actions>div{flex-wrap:wrap}.agent-identity{max-width:none}.markdown-source textarea{min-height:320px}}
/* Shared reading mode and opt-in Markdown editing. */
[hidden]{display:none!important}.md-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.md-heading h3{margin:0}.md-modes{display:flex;gap:6px;flex-wrap:wrap}.md-modes button{font-size:13px;white-space:nowrap}.md-modes button[aria-pressed=true]{background:#eeecff;color:#493cde;border-color:#c9c2ff}.md-raw{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f8fc;border:1px solid #e2e6f0;border-radius:12px;padding:22px;font:14px/1.7 Consolas,monospace;max-height:720px;overflow:auto}.md-field{margin-bottom:22px}.md-rendered{max-height:none}.md-editor .markdown-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.md-editor textarea{border:1px solid #dce1ee;border-radius:12px}.md-field[data-field=description] textarea{min-height:220px}.md-field[data-field=description] .md-preview{max-height:350px}.library-actions{display:flex;gap:12px}.library-filters{margin-bottom:22px}.library-selects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0}.library-filters .field{margin:0}.library-search input{width:100%}.library-count{color:#69758a;margin-bottom:16px}.library-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}.library-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:450px}.last-opened td{background:#eaf3ff!important}.last-opened td:first-child{border-left:3px solid #81b4f5}#library-results[aria-busy=true]{opacity:.65;pointer-events:none}#library-record-form>.panel{margin-bottom:24px}
@media(max-width:1000px){.library-selects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.library-selects,.md-editor .markdown-columns{grid-template-columns:1fr}.library-actions{flex-wrap:wrap}.library-pagination{flex-wrap:wrap}}

/* Access profiles: full-page details and integration permission sections. */
.access-search{max-width:600px;margin-bottom:24px}.access-permission-tools{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin:24px 0}.access-permission-tools>.field{min-width:240px;flex:1}.access-section{border:1px solid #e1e6f0;border-radius:14px;margin:18px 0;overflow:hidden}.access-section>summary{padding:20px;background:#f7f8fe;cursor:pointer;font-weight:700;display:flex;gap:15px;align-items:center}.access-section>p{padding:0 20px}.access-permission-row{display:grid;grid-template-columns:minmax(250px,1fr) 185px 185px;gap:22px;padding:20px;border-top:1px solid #edf0f7;align-items:center}.access-permission-row code{display:block;color:#687696;font-size:12px;margin-top:7px}.access-permission-row p{margin:7px 0 0}.access-permission-row .field{margin:0}.access-permission-row label{font-size:12px}.access-permission-row select{width:100%}#access-general{max-width:1000px}#access-profile-form .client-tabs{margin-bottom:24px}#access-profile-form .client-tabs button{min-width:150px}.checklist label{display:flex;align-items:center;gap:10px}.checklist input[type=checkbox]{width:auto;flex-shrink:0}#access-profile-form textarea{max-width:100%;min-height:160px}
@media(max-width:1050px){.access-permission-row{grid-template-columns:1fr 1fr}.access-permission-row>div:first-child{grid-column:1/-1}}
@media(max-width:650px){.access-permission-row{grid-template-columns:1fr}.access-permission-tools>.field{min-width:100%}}

.flow-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px}.flow-catalog ol{padding-left:22px;line-height:2}.execution-steps{list-style:none;padding:0;display:grid;gap:14px}.execution-step{display:flex;gap:18px;border:1px solid var(--border,#e2e6f3);border-radius:12px;padding:18px}.execution-step.working{border-color:#5046f5;background:#f4f3ff}.execution-step.completed .step-number{background:#e1f8ef;color:#078254}.step-number{flex:0 0 36px;height:36px;border-radius:50%;background:#eef0f8;display:grid;place-items:center}.step-content{flex:1;min-width:0}.execution-step .panel-header{margin-bottom:8px}td progress{display:block;width:130px;height:6px;margin-top:8px}@media(max-width:600px){.flow-catalog{grid-template-columns:1fr}.execution-step .panel-header{display:block}}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#c23f58;background:#fffafb}.field.invalid input:focus,.field.invalid select:focus,.field.invalid textarea:focus{outline-color:#f3c3cc;border-color:#c23f58}.field-error{font-size:11px;color:#b23248;line-height:1.5;margin-top:5px;font-weight:600}.field.invalid .hint{display:none}
.chat{background:#f3f4fa;border:1px solid #e6e8f2;border-radius:14px;padding:18px 16px;display:flex;flex-direction:column;gap:14px;margin-top:14px}.chat-day{align-self:center;font-size:11px;color:#7d879d;background:#e7e9f4;border-radius:12px;padding:4px 12px;text-transform:capitalize}.chat-system{align-self:center;font-size:12px;color:#5f6984;background:#fff;border:1px dashed #d6dbea;border-radius:10px;padding:8px 14px;max-width:85%;text-align:center}.chat-system.error{color:#b33a4c;background:#fff0f2;border-color:#f3c9d1}.chat-row{display:flex;gap:10px;align-items:flex-end}.chat-row.right{justify-content:flex-end}.chat-col{display:flex;flex-direction:column;max-width:min(680px,80%);min-width:0}.chat-row.right .chat-col{align-items:flex-end}.chat-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:12px;margin:0 6px 4px;color:#3f4a66}.chat-time{color:#9aa3b8;font-size:11px;font-weight:400}.chat-label{font-size:10px;color:#6f68a8;background:#efecff;border-radius:5px;padding:2px 6px}.chat-bubble{background:#fff;border:1px solid #e3e6f0;border-radius:16px 16px 16px 4px;padding:10px 14px;font-size:13px;line-height:1.55;color:#1f2a44;overflow-wrap:anywhere;box-shadow:0 1px 2px #1b22440d;max-width:100%;min-width:0}.chat-row.right .chat-bubble{background:#5147f4;color:#fff;border-color:#5147f4;border-radius:16px 16px 4px 16px}.chat-row.right .chat-bubble code{background:#ffffff2e;color:#fff}.chat-row.internal .chat-bubble{background:#f8f6ff;border-style:dashed;border-color:#cdc6ff}.chat-bubble p{margin:0 0 6px}.chat-bubble p:last-child{margin-bottom:0}.chat-bubble code{background:#eef0f7;border-radius:4px;padding:1px 5px;font-family:Consolas,monospace;font-size:12px}.chat-bubble pre{background:#eef0f7;border-radius:8px;padding:10px;overflow:auto;font-size:12px;margin:6px 0;white-space:pre-wrap}.chat-bubble pre code{background:none;padding:0}.chat-bubble ul{margin:4px 0 6px;padding-left:20px}.chat-bubble blockquote{margin:4px 0;padding-left:10px;border-left:3px solid #d6d1ff;color:#5f6984}.chat-table{overflow-x:auto;max-width:100%;margin:6px 0}.chat-bubble table{width:auto}.chat-bubble th,.chat-bubble td{padding:6px 10px;border:1px solid #e3e6f0;font-size:12px;vertical-align:top}.chat-bubble th{background:#f6f7fb;color:#3f4a66}.chat-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#eeeaff}.chat-avatar.initials{display:grid;place-items:center;color:#6150b9;font-weight:700;font-size:12px}.chat-meta{margin:4px 6px 0;font-size:11px;color:#8490a8}.chat-meta summary{color:#8490a8;font-size:11px}.chat-meta[open]{background:#fff;border:1px solid #e6e8f2;border-radius:10px;padding:8px 12px}.chat-typing{font-style:italic;color:#8490a8}.chat-summary{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px;color:#5f6984;margin-bottom:6px}@media(max-width:760px){.chat{padding:12px 8px}.chat-col{max-width:88%}.chat-avatar{width:28px;height:28px}}
