@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/cd79e1ff94fa521b-s.p.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/89362aa296165c6d-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/e11f95d95ac59fa4-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/00f4982f357db61e-s.p.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/62a3c74fa0e47362-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/8201559e247ad180-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/2173e4bb28c315da-s.p.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/c6f81e539d11fc99-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/25ab8995c98996d7-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/9ddf1512dbee9c99-s.p.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8247d8d2a376ae43-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/e270c9fc4fe96f5a-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/6bb6a9cb68044e10-s.p.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/9a3689a7cda641d2-s.p.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Be Vietnam Pro;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/bed26dc8a57eea87-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Be Vietnam Pro Fallback;src:local("Arial");ascent-override:90.61%;descent-override:24.01%;line-gap-override:0.00%;size-adjust:110.36%}.__className_1216e7{font-family:Be Vietnam Pro,Be Vietnam Pro Fallback;font-style:normal}.__variable_1216e7{--font-display:"Be Vietnam Pro","Be Vietnam Pro Fallback"}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/58f386aa6b1a2a92-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/011e180705008d6f-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/7ba5fb2a8c88521c-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/92eeb95d069020cc-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d3ebbfd689654d3a-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/ef4d5661765d0e49-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d29838c109ef09b4-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/e40af3453d7c920a-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/99dcf268bda04fe5-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/98e207f02528a563-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/73cb51aac9c97f90-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d26bbd13d6b70f89-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/20535187d867b7b9-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/5356a6a4f2c8c8d8-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/db96af6b531dc71f-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:IBM Plex Mono Fallback;src:local("Arial");ascent-override:76.16%;descent-override:20.43%;line-gap-override:0.00%;size-adjust:134.59%}.__className_595324{font-family:IBM Plex Mono,IBM Plex Mono Fallback;font-style:normal}.__variable_595324{--font-mono:"IBM Plex Mono","IBM Plex Mono Fallback"}:root{--font-display:"Be Vietnam Pro","Segoe UI",sans-serif;--font-mono:"IBM Plex Mono",monospace;--bg-base:#d7dde8;--bg-soft:#f3f4f8;--panel:#ffffff;--panel-soft:#f6f7fb;--panel-line:#e2e5ef;--ink:#1c2130;--ink-soft:#72798b;--ink-muted:#8d93a6;--brand:#ff7a45;--brand-deep:#e6612c;--nav-bg:#171c2b;--nav-line:#2c3245;--ok:#24b277;--warn:#f29d35;--danger:#df4f4f;--shadow-soft:rgba(24,31,52,0.12);--shadow-hard:rgba(24,31,52,0.24)}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{font-family:var(--font-display);color:var(--ink);background:radial-gradient(circle at 20% 90%,rgba(255,122,69,.2),transparent 42%),radial-gradient(circle at 80% 10%,rgba(116,198,232,.2),transparent 38%),linear-gradient(180deg,#cfd6e3,#dbe0ea)}button,input,textarea{font:inherit}button{cursor:pointer}.config-page{min-height:100vh;padding:2.2rem 1.2rem;display:grid;place-items:center}.config-card{width:min(1080px,100%);border-radius:24px;border:1px solid rgba(255,255,255,.4);box-shadow:0 24px 60px var(--shadow-hard),inset 0 1px 0 rgba(255,255,255,.5);overflow:hidden;background:linear-gradient(135deg,rgba(23,28,43,.97),rgba(29,38,59,.95));display:grid;grid-template-columns:1.05fr 1.2fr}.config-info{padding:2.1rem;color:rgba(242,245,255,.95);border-right:1px solid rgba(255,255,255,.08);background:radial-gradient(circle at 10% 10%,rgba(255,122,69,.36),transparent 42%),radial-gradient(circle at 95% 90%,rgba(106,180,232,.26),transparent 40%)}.config-badge{display:inline-flex;align-items:center;border-radius:999px;border:1px solid rgba(255,255,255,.24);padding:.32rem .66rem;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600}.config-info h1{margin:1rem 0 .6rem;font-size:clamp(1.55rem,2.6vw,2.2rem);line-height:1.15}.config-info p{margin:0;color:rgba(221,229,247,.9);line-height:1.55}.config-info ul{margin:1.2rem 0 0;padding:0;list-style:none;display:grid;grid-gap:.55rem;gap:.55rem;color:rgba(231,237,255,.92)}.config-info li{padding-left:1.2rem;position:relative}.config-info li:before{content:"";width:.45rem;height:.45rem;border-radius:999px;background:linear-gradient(180deg,#ff9a63,#ff7a45);position:absolute;left:0;top:.42rem}.config-form-wrap{padding:1.8rem;background:linear-gradient(180deg,#f6f7fb,#f4f5fa)}.config-form{border-radius:18px;border:1px solid var(--panel-line);background:var(--panel);padding:1.1rem;display:grid;grid-gap:.85rem;gap:.85rem;box-shadow:0 12px 26px var(--shadow-soft)}.config-form-header{display:flex;justify-content:space-between;gap:.8rem;align-items:center}.config-form-header h2{margin:0;font-size:1.03rem}.config-form label{display:grid;grid-gap:.42rem;gap:.42rem;color:var(--ink-soft);font-size:.82rem}.chat-composer textarea,.config-form input{border-radius:12px;border:1px solid #d8dce8;background:#ffffff;color:var(--ink);padding:.62rem .7rem;font-size:.9rem;transition:border-color .14s ease,box-shadow .14s ease}.chat-composer textarea:focus,.config-form input:focus{outline:none;border-color:rgba(255,122,69,.62);box-shadow:0 0 0 3px rgba(255,122,69,.15)}.config-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.72rem;gap:.72rem}.checkbox-row{display:inline-flex;align-items:center;gap:.48rem;font-size:.84rem}.checkbox-row input{width:auto;margin:0}.config-actions{margin-top:.2rem;display:flex;justify-content:flex-end;gap:.62rem}.form-error{margin:0;color:var(--danger);font-size:.84rem}.ghost-btn,.primary-btn{border-radius:11px;border:1px solid transparent;padding:.55rem .88rem;font-size:.84rem;font-weight:600;transition:transform .13s ease,box-shadow .13s ease}.ghost-btn{color:var(--ink-soft);border-color:#d7dbea;background:#f9fafe}.primary-btn{color:#fff;border-color:#d95a2a;background:linear-gradient(180deg,#ff8755,#ed6b39);box-shadow:0 8px 18px rgba(237,107,57,.28)}.ghost-btn:hover,.primary-btn:hover{transform:translateY(-1px)}.ghost-btn:active,.primary-btn:active{transform:translateY(0)}.chat-loading-page,.chat-page{min-height:100vh;padding:.55rem;display:grid;place-items:center}.chat-loading-page p{margin:0;color:var(--ink-soft)}.missing-config-card{width:min(420px,100%);border-radius:16px;border:1px solid var(--panel-line);background:#fff;padding:1.1rem;display:grid;grid-gap:.6rem;gap:.6rem;text-align:center;box-shadow:0 16px 34px var(--shadow-soft)}.missing-config-card h1{margin:0;font-size:1.25rem}.missing-config-card p{margin:0;color:var(--ink-soft)}.chat-shell{width:min(1920px,calc(100vw - 1.1rem));height:calc(100vh - 1.1rem);border-radius:26px;border:1px solid rgba(255,255,255,.35);background:var(--nav-bg);box-shadow:0 32px 56px var(--shadow-hard),inset 0 1px 0 rgba(255,255,255,.1);padding:1.1rem;display:grid;grid-template-columns:250px minmax(0,1fr) 320px;grid-gap:.95rem;gap:.95rem}.chat-nav{display:grid;grid-template-rows:auto 1fr auto;grid-gap:1rem;gap:1rem;border-radius:18px;border:1px solid var(--nav-line);background:linear-gradient(180deg,#1a2133,#151a29);padding:1rem}.chat-brand{display:flex;align-items:center;gap:.58rem;color:#f6f8ff}.chat-brand-logo{width:1.85rem;height:1.85rem;border-radius:8px;display:inline-block;background-image:url(/_next/static/media/inexus.a374a6d0.png);background-size:cover;background-position:50%;background-repeat:no-repeat;box-shadow:0 4px 12px rgba(240,111,62,.3)}.chat-brand strong{font-size:1.28rem;letter-spacing:-.015em}.chat-nav-list{display:grid;align-content:start;grid-gap:.5rem;gap:.5rem}.nav-item{border:1px solid transparent;background:transparent;color:#d9dff0;border-radius:12px;text-align:left;padding:.62rem .72rem;font-size:.88rem}.nav-item:hover{border-color:#39415b;background:#252c42}.nav-item-active{border-color:#3d4560;background:linear-gradient(180deg,#2b334d,#252d42);color:#fff}.chat-nav-footer{border-top:1px solid #2f364d;padding-top:.9rem}.chat-nav-footer .ghost-btn{width:100%;background:#21283b;border-color:#343b52;color:#d9dfef}.chat-main{border-radius:18px;border:1px solid var(--panel-line);background:var(--panel);display:grid;grid-template-rows:auto auto 1fr auto auto;overflow:hidden}.chat-main-header{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.9rem 1rem;border-bottom:1px solid var(--panel-line);background:var(--panel-soft)}.chat-main-header h1{margin:0;font-size:1.42rem;letter-spacing:-.015em}.chat-main-header p{margin:.12rem 0 0;color:var(--ink-soft);font-size:.82rem}.chat-main-actions{gap:.54rem}.chat-main-actions,.status-chip{display:inline-flex;align-items:center}.status-chip{gap:.44rem;border-radius:999px;padding:.3rem .62rem;border:1px solid #d7dcea;font-size:.76rem;text-transform:capitalize;background:#fff;color:var(--ink-soft)}.status-chip i{width:.52rem;height:.52rem;border-radius:999px;background:#aab2c6}.status-connected i{background:var(--ok)}.status-connecting i{background:var(--warn)}.status-disconnected i{background:#aab2c6}.conversation-id-row{padding:.52rem 1rem;display:flex;align-items:center;gap:.54rem;border-bottom:1px solid var(--panel-line);color:var(--ink-soft);font-size:.8rem}.conversation-id-row code{font-family:var(--font-mono);font-size:.75rem;border-radius:999px;border:1px dashed #cfd5e5;padding:.22rem .56rem;background:#f8f9fd}.chat-stream{padding:1rem;overflow:auto;background:radial-gradient(circle at 90% 0,rgba(255,122,69,.12),transparent 30%),radial-gradient(circle at 0 100%,rgba(92,177,224,.11),transparent 35%),#fafbff}.chat-empty-state{border:1px dashed #d2d7e7;border-radius:14px;background:#ffffff;padding:1rem;text-align:center;color:var(--ink-soft)}.chat-empty-state h3{margin:0;color:var(--ink)}.chat-empty-state p{margin:.3rem 0 0}.message-bubble{width:-moz-fit-content;width:fit-content;max-width:min(82%,980px);margin:.46rem 0;border-radius:14px;border:1px solid #dce1ef;background:#ffffff;box-shadow:0 8px 20px rgba(22,31,54,.06);padding:.58rem .7rem}.message-user{margin-left:auto;border-color:rgba(237,107,57,.36);background:linear-gradient(180deg,rgba(255,141,92,.15),rgba(255,255,255,.95))}.message-assistant{margin-right:auto}.message-system{max-width:100%;border-style:dashed;background:#f9fbff}.message-error{max-width:100%;border-color:rgba(223,79,79,.4);background:rgba(223,79,79,.08)}.message-streaming{border-style:dashed}.message-streaming .message-text:after{content:"";display:inline-block;width:.35rem;height:1.05em;margin-left:.15rem;border-right:2px solid rgba(76,93,127,.6);vertical-align:text-bottom;animation:stream-caret .9s step-end infinite}.message-typing{border-style:dashed}.typing-row{display:inline-flex;align-items:center;gap:.32rem;min-height:1.2rem}.typing-dot{width:.42rem;height:.42rem;border-radius:999px;background:#7e8aaa;opacity:.34;animation:typing-dot 1.2s ease-in-out infinite}.typing-dot:nth-child(2){animation-delay:.17s}.typing-dot:nth-child(3){animation-delay:.34s}.message-header{display:flex;justify-content:space-between;align-items:center;gap:.42rem;margin-bottom:.2rem}.message-role{font-size:.7rem;text-transform:uppercase;font-weight:700;letter-spacing:.05em;color:var(--ink-muted)}.message-time{font-family:var(--font-mono);font-size:.71rem;color:var(--ink-muted);margin-left:auto;white-space:nowrap}.message-text{margin:0;line-height:1.45;white-space:pre-wrap;word-break:break-word}.message-text strong{font-weight:700}.message-text code{font-family:var(--font-mono);font-size:.92em;padding:.08rem .28rem;border-radius:.32rem;background:rgba(40,51,77,.08)}.message-html p{margin:.18rem 0}.message-html table{width:100%;border-collapse:separate;border-spacing:0;margin:.35rem 0;font-size:.95em;border:1px solid rgba(118,129,158,.35);border-radius:.72rem;overflow:hidden;background:#fff}.message-html td,.message-html th{border:0;padding:.36rem .5rem;vertical-align:top;text-align:left}.message-html td+td,.message-html th+th{border-left:1px solid rgba(118,129,158,.35)}.message-html tbody tr+tr td{border-top:1px solid rgba(118,129,158,.35)}.message-html thead th{background:rgba(120,134,171,.12);font-weight:700;border-bottom:1px solid rgba(118,129,158,.35)}.message-html tbody tr:nth-child(2n){background:rgba(120,134,171,.06)}.message-html thead tr:first-child th:first-child{border-top-left-radius:.72rem}.message-html thead tr:first-child th:last-child{border-top-right-radius:.72rem}.message-html tbody tr:last-child td:first-child{border-bottom-left-radius:.72rem}.message-html tbody tr:last-child td:last-child{border-bottom-right-radius:.72rem}.message-html ol,.message-html ul{margin:.3rem 0 .3rem 1.2rem;padding:0}@keyframes typing-dot{0%,80%,to{transform:translateY(0);opacity:.32}40%{transform:translateY(-.14rem);opacity:.85}}@keyframes stream-caret{0%,48%{opacity:1}49%,to{opacity:0}}@media (prefers-reduced-motion:reduce){.message-streaming .message-text:after,.typing-dot{animation:none}}.chat-composer{border-top:1px solid var(--panel-line);background:#fff;padding:.85rem 1rem 1rem;display:grid;grid-gap:.62rem;gap:.62rem}.chat-composer textarea{min-height:86px;resize:vertical;font-family:var(--font-display);font-size:.95rem}.composer-actions-row{display:flex;justify-content:flex-end;gap:.48rem}.debug-drawer{border-top:1px solid var(--panel-line);background:#f7f9ff}.debug-drawer summary{list-style:none;cursor:pointer;padding:.6rem 1rem;font-size:.8rem;color:var(--ink-soft);-webkit-user-select:none;-moz-user-select:none;user-select:none}.debug-drawer summary::-webkit-details-marker{display:none}.debug-log-list{max-height:220px;overflow:auto;padding:.3rem .7rem .8rem}.debug-log-list>p{margin:.42rem;color:var(--ink-soft);font-size:.8rem}.debug-log-item{border-radius:10px;border:1px solid #cfd5e6;margin-bottom:.45rem;overflow:hidden;background:#fff}.debug-log-item header{display:flex;justify-content:space-between;align-items:center;font-size:.73rem;padding:.36rem .48rem;border-bottom:1px solid #dbe0ee}.debug-log-item pre{margin:0;padding:.45rem .5rem;font-size:.72rem;line-height:1.3;white-space:pre-wrap;word-break:break-word;font-family:var(--font-mono)}.dir-incoming header{color:#3169b8}.dir-outgoing header{color:#c06a3a}.dir-system header{color:#4c5d7f}.chat-history-pane{border-radius:18px;border:1px solid var(--panel-line);background:var(--panel);display:grid;grid-template-rows:auto auto auto 1fr;min-height:0}.history-header{display:flex;justify-content:space-between;align-items:center;padding:.86rem .9rem;border-bottom:1px solid var(--panel-line)}.history-header h2{margin:0;font-size:1.1rem}.history-header span{border-radius:999px;border:1px solid #d7dceb;padding:.2rem .46rem;color:var(--ink-soft);font-size:.74rem}.history-actions{display:flex;gap:.5rem;padding:.72rem .9rem 0}.history-actions .ghost-btn,.history-actions .primary-btn{width:100%}.history-error{margin:.65rem .9rem 0;border-radius:10px;border:1px solid rgba(223,79,79,.35);background:rgba(223,79,79,.08);color:var(--danger);font-size:.8rem;padding:.45rem .55rem}.history-list{min-height:0;overflow:auto;padding:.72rem .9rem .9rem;display:grid;align-content:start;grid-gap:.46rem;gap:.46rem}.history-empty{margin:0;border-radius:12px;border:1px dashed #d5dbe9;color:var(--ink-soft);padding:.72rem;font-size:.84rem;background:#f8faff}.history-item{border-radius:12px;border:1px solid #d6dcec;background:#fff;text-align:left;padding:.58rem .6rem;display:grid;grid-gap:.4rem;gap:.4rem;transition:border-color .13s ease,transform .13s ease}.history-item:hover{border-color:rgba(255,122,69,.45);transform:translateY(-1px)}.history-item-active{border-color:rgba(255,122,69,.62);background:rgba(255,122,69,.08)}.history-item div{min-width:0}.history-item strong{display:block;font-size:.85rem;line-height:1.34;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.history-item p,.history-item strong{overflow:hidden;text-overflow:ellipsis}.history-item p{margin:.24rem 0 0;font-size:.72rem;color:var(--ink-muted);font-family:var(--font-mono);white-space:nowrap}.history-item span{font-size:.72rem;color:var(--ink-soft)}@media (max-width:1240px){.chat-shell{grid-template-columns:210px minmax(0,1fr) 292px}}@media (max-width:1060px){.config-card{grid-template-columns:1fr}.config-info{border-right:none;border-bottom:1px solid rgba(255,255,255,.12)}.chat-shell{height:auto;min-height:calc(100vh - 1.1rem);grid-template-columns:1fr;padding:.9rem}.chat-nav{grid-template-columns:1fr auto;grid-template-rows:auto;align-items:center}.chat-nav-list{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}.chat-nav-footer{grid-column:1/-1}.chat-main{min-height:66vh}.chat-history-pane{min-height:360px}}@media (max-width:760px){.chat-page,.config-page{padding:.55rem}.config-form-wrap,.config-info{padding:1.1rem}.config-grid-2{grid-template-columns:1fr}.chat-shell{border-radius:18px;padding:.6rem;gap:.6rem}.chat-nav{padding:.72rem;gap:.75rem}.chat-nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-main-header{flex-direction:column;align-items:flex-start}.chat-main-actions{width:100%;justify-content:space-between}.message-bubble{max-width:96%}.composer-actions-row{flex-wrap:wrap;justify-content:flex-start}.history-actions{flex-direction:column}}