@font-face{font-family:Be Vietnam Pro;src:url('/runtime/fonts/BeVietnamPro-Regular.ttf');font-weight:400;font-display:swap}
@font-face{font-family:Be Vietnam Pro;src:url('/runtime/fonts/BeVietnamPro-Medium.ttf');font-weight:500 800;font-display:swap}
@font-face{font-family:Barlow Condensed;src:url('/runtime/fonts/BarlowCondensed-Medium.ttf');font-weight:500;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url('/runtime/fonts/IBMPlexSans-Variable.ttf') format('truetype');font-style:normal;font-weight:100 700;font-display:swap}
:root{color-scheme:dark;--bg:#0c0e10;--panel:#111417;--raised:#191d21;--line:#2c3032;--text:#e9e5db;--muted:#a2a29c;--accent:#d5b077;--dim:#7b684d;--display:'Barlow Condensed',sans-serif;--body:'Be Vietnam Pro',sans-serif;font-family:var(--body);font-size:14.5px;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:transparent;border:0}a{color:var(--accent);text-underline-offset:4px}button:hover{color:var(--accent)}button:disabled{opacity:.45;cursor:wait}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}::selection{background:#6c5434;color:#fff}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#424345;border-radius:8px}
.app-shell{height:100dvh;min-height:480px;display:grid;grid-template-columns:240px minmax(0,1fr) 270px;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:var(--panel);border-right:1px solid var(--line);min-height:0;padding:14px 13.5px 0}.brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;padding:0 0 16px}.brand img{width:85px;height:57.5px;object-fit:cover}.brand>span{text-align:center;font:500 12px var(--display);letter-spacing:1.6px;color:var(--accent)}.brand small{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-top:5px}.new-chat{border:1px solid #78603e;background:#241f17;display:flex;align-items:center;gap:8.5px;min-height:36px;padding:6px 10px;border-radius:4px;text-align:left;font-size:13px;white-space:nowrap}.new-chat:hover{background:#30291e;border-color:var(--accent)}kbd{font:11.5px var(--display);border:1px solid #645138;padding:1px 4px;border-radius:2px;color:var(--muted);margin-left:auto}.section-label,.tiny-label{font:500 12px var(--display);letter-spacing:2px;color:var(--muted)}.sidebar>.section-label{display:flex;justify-content:space-between;margin:18px 8.5px 8px}.sessions{overflow-y:auto;flex:1;min-height:40px}.session-item{display:flex;align-items:center;gap:2px;width:100%;background:transparent;border:1px solid transparent;border-radius:4px;padding:0;margin-bottom:3px}
.session-open{flex:1;min-width:0;text-align:left;padding:7px 2px 7px 9px;border-radius:3px}
.session-delete{display:grid;place-items:center;flex-shrink:0;width:26px;height:28px;padding:4px;margin-right:4px;border-radius:3px;color:var(--muted);opacity:.55}
.session-delete svg{width:14px;height:14px}
.session-item:hover .session-delete,.session-delete:focus-visible{opacity:1}
.session-delete:hover{color:#edb293;background:#392521;opacity:1}
.session-item.active{background:#202226;border-color:#3a3b3c;border-left-color:var(--accent)}.session-item:hover{background:var(--raised)}.session-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:1.35}.session-item small{display:block;font-size:11.5px;line-height:1.3;color:var(--muted);margin-top:2px}.empty-note{font-size:13px;color:var(--muted);line-height:1.8}.sessions>.empty-note{padding:0 8.5px}.sidebar-bottom{padding-top:8px;margin-top:10px;border-top:1px solid var(--line)}.nav-button{display:flex;align-items:center;gap:10px;width:100%;min-height:32px;padding:4px 8.5px;text-align:left;font-size:13px}.nav-button>span:first-child{width:20px;font-size:19.5px;color:var(--accent)}.nav-button>span:last-child:not(:first-child){margin-left:auto;font:12px var(--display)}.local-profile{display:flex;align-items:center;gap:8px;padding:10px 0;margin-top:8px;border-top:1px solid var(--line);font-size:11.5px}.profile-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid #4c453a;background:#27231e;border-radius:50%;flex-shrink:0}.local-profile small{display:block;font-size:10px;margin-top:3px;color:var(--muted)}.private-badge{font:11px var(--display);letter-spacing:1px;margin-left:auto;color:var(--accent)}
.main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;gap:13px;min-height:64px;padding:10px 24px;border-bottom:1px solid var(--line);background:#0e1012;flex-shrink:0}.header-title{min-width:0}.tiny-label{color:var(--accent);font-size:11.5px}.header-title h1{margin:4px 0 0;font-weight:500;font-size:14.5px;white-space:nowrap}.header-title h1>span:last-child{color:var(--muted);font-size:13px;font-weight:400}.header-dot{color:var(--dim);padding:0 7px}.header-actions{display:flex;align-items:center;gap:5px;margin-left:auto}select{background:#191c1f;color:var(--text);border:1px solid #3d3d38;border-radius:4px;max-width:190px;min-height:36px;padding:6px 7px;font-size:12px}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;flex-shrink:0;font-size:22px}.icon-button:hover{background:var(--raised)}.mobile-only,.avatar-toggle{display:none}.setup-banner{padding:12px 25.5px;background:#292216;border-bottom:1px solid #645139;color:#e3c794;font-size:13px;line-height:1.8}.conversation{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0;scroll-behavior:smooth}.welcome{width:min(100%,740px);margin:auto;padding:47.5px 32.5px 34px}.welcome-mark{display:flex;align-items:center;gap:10px;font:500 12px var(--display);letter-spacing:2px;color:var(--accent);margin-bottom:24px}.welcome-mark:before{content:'';width:30px;height:1px;background:var(--accent)}.welcome h2{font-size:clamp(24px,2.1vw,35px);line-height:1.5;letter-spacing:-1.2px;margin:0 0 15.5px;font-weight:500}.welcome h2 em{font-style:normal;color:var(--accent)}.welcome>p{font-size:14px;line-height:1.95;color:var(--muted);max-width:590px;margin:0 0 27px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.suggestions button{position:relative;display:block;border:1px solid var(--line);border-radius:4px;background:linear-gradient(120deg,#191c1e,#121517);text-align:left;min-height:90px;padding:15.5px 27px 15.5px 15.5px;font-size:13px;line-height:1.7}.suggestions button:hover{border-color:#78603e;background:#22221e}.suggestions button>span{display:block;font:500 11.5px var(--display);letter-spacing:1.6px;color:var(--accent);margin-bottom:10px}.suggestions b{position:absolute;right:16px;bottom:18px;color:var(--accent);font-weight:400}.messages{max-width:820px;margin:0 auto;padding:14px 28px 18px}.message{display:flex;gap:10px;margin:14px 0 22px;min-width:0}.message-avatar{width:28px;height:32px;background:#24211c;color:var(--accent);border:1px solid #645139;display:grid;place-items:center;flex-shrink:0;border-radius:4px;font:500 20.5px var(--display)}.message-main{min-width:0;max-width:100%}.message-label{font:500 11.5px var(--display);letter-spacing:2px;color:var(--accent);margin:2px 0 6px}.message-body{font-size:13.5px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}.message.user{justify-content:flex-end;margin:6px 0 18px}.user .message-main{background:#25251f;border:1px solid #414034;border-radius:10px 10px 2px 10px;padding:7px 12px;max-width:88%}.user .message-label{display:none}.user .message-body{font-size:13.5px;line-height:1.7}.message-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:6px}.text-button{padding:2px 0;min-height:24px;font-size:11.5px;color:var(--muted)}.pending .message-body:empty:after{content:'Đang suy nghĩ…';color:var(--muted);font-size:13.5px;animation:breath 1.7s infinite}.interrupted-label{font-size:11.5px;color:#e2aa8c;margin-top:10px}.web-sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.web-sources a{font-size:11.5px;text-decoration:none;border:1px solid #494334;border-radius:4px;padding:4px 7px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-sources a:hover{background:#28251e}
.composer-region{width:100%;max-width:900px;margin:0 auto;padding:6px 24px 10px;background:var(--bg);flex-shrink:0}.composer-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;min-height:24px;font-size:11.5px;color:var(--muted)}.mode-hint{display:flex;gap:7px;align-items:center;min-width:0;line-height:1.6}.context-dot{width:4px;height:4px;background:var(--accent);border-radius:50%;flex-shrink:0}.search-toggle{display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;min-height:24px}.search-toggle svg{width:16px;height:16px}.search-toggle input{accent-color:var(--accent);width:15px;height:15px;margin:0}.search-toggle:has(input:checked){color:var(--accent)}.composer{display:flex;align-items:flex-end;gap:10px;border:1px solid #5e5545;background:#1a1d1f;border-radius:6px;padding:5px 8px 5px 12px;box-shadow:0 8px 35px #0003}.composer:focus-within{border-color:var(--accent)}.composer textarea{resize:none;min-width:0;flex:1;max-height:160px;min-height:32px;background:none;border:0;color:var(--text);font-size:13.5px;line-height:1.55;padding:4px 0;outline:none}.composer textarea::placeholder{color:#92938c}.composer button{display:grid;place-items:center;background:var(--accent);color:#171812;width:32px;height:32px;border-radius:3px;flex-shrink:0}.composer button:hover{background:#edc88d}.composer-footer{display:flex;justify-content:space-between;gap:10px;margin-top:6px;font-size:10px;color:#8f908a;line-height:1.7}.faded{padding:0 5px;color:#63645e}.error-notice{display:flex;align-items:center;gap:10px;background:#34231e;border:1px solid #86553e;border-radius:4px;padding:10px 12px;margin-bottom:10px;font-size:12px;line-height:1.8}.error-notice>span{flex:1}.error-notice button{padding:5px;white-space:nowrap;color:#e9b38c}
.character-panel{background:var(--panel);border-left:1px solid var(--line);padding:0 15.5px;display:flex;flex-direction:column;min-height:0;overflow:auto}.connection{display:flex;align-items:center;gap:7.5px;min-height:52px;font:500 11.5px var(--display);letter-spacing:1.6px;color:var(--muted)}#connection-dot{width:6px;height:6px;background:#a28b68;border-radius:50%}#connection-dot.ready{background:#94b997;box-shadow:0 0 0 4px #94b99712}.signal{margin-left:auto;color:var(--accent);letter-spacing:2px}.avatar-stage{height:clamp(234px,34.2vh,378px);min-height:234px;width:100%;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#49453e88,#1b1f2288 65%);border:1px solid #5b5140;border-radius:2px;flex-shrink:0}.portrait-grid{position:absolute;inset:0;background-image:linear-gradient(#b7a37b09 1px,transparent 1px),linear-gradient(90deg,#b7a37b09 1px,transparent 1px);background-size:28px 28px}.stage-corner{position:absolute;width:15px;height:15px;border-color:var(--accent);z-index:2;pointer-events:none}.top-left{left:0;top:0;border-left:2px solid;border-top:2px solid}.bottom-right{right:0;bottom:0;border-right:2px solid;border-bottom:2px solid}.portrait-coordinate{position:absolute;left:12px;top:12px;font:500 10px/1.5 var(--display);letter-spacing:1.5px;color:#c9bdab;z-index:2;pointer-events:none}#kurisu-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}#avatar-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18.5px;text-align:center}#avatar-fallback img{width:45%;max-width:125px}#avatar-fallback p{font-size:12px;line-height:1.8;color:var(--muted)}.portrait-caption{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:8.5px;padding:24px 10px 10px;background:linear-gradient(transparent,#101215dd);font:500 10px var(--display);letter-spacing:1.4px;color:#ccbea6;pointer-events:none}.character-info{padding:14px 6px 12px}.character-info .section-label{font-size:11px}.character-info h2{display:flex;align-items:baseline;gap:6px;white-space:nowrap;font:500 28px/1.1 var(--display);letter-spacing:.6px;margin:10px 0 7px}.character-info h2 em{display:inline;font-style:normal;color:var(--accent);margin:0}.japanese-name{font-size:12px;letter-spacing:4px;color:#bcb8ae}.character-tags{display:flex;gap:6px;margin-top:10px}.character-tags>span{font:500 11.5px var(--display);letter-spacing:.7px;border:1px solid #484438;border-radius:2px;padding:4px 6px;color:#bbb3a5}.character-info>p{font-size:13px;color:#b6b3a9;margin:12px 0 0;line-height:1.7}.archive-card{display:flex;gap:8px;margin:0 4px;padding:12px 0;border-top:1px solid var(--line)}.archive-icon{font-size:24px;color:var(--dim)}.archive-card strong{font:500 10px var(--display);letter-spacing:.8px;color:var(--accent)}.archive-card p{font-size:11.5px;color:var(--muted);line-height:1.65;margin:5px 0 0}.panel-footer{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding:12px 0 8px;border-top:1px solid var(--line);font:500 9px var(--display);letter-spacing:.8px;color:#8b8c85}
.sheet-dialog{background:#15191c;color:var(--text);border:1px solid #62543e;border-radius:6px;padding:25.5px;max-width:640px;width:calc(100% - 32px);max-height:85dvh;overflow-y:auto;box-shadow:0 20px 90px #0008}.sheet-dialog::backdrop{background:#030506bd;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15.5px;margin-bottom:17px}.sheet-dialog h2{font-weight:500;font-size:22px;line-height:1.5;margin:7px 0 0}.dialog-description,.privacy-note{font-size:13px;line-height:1.9;color:var(--muted)}.sheet-dialog label{display:block;font-size:13px;margin:15.5px 0 8.5px}.sheet-dialog input,.sheet-dialog textarea{width:100%;border:1px solid #45483f;background:#0c0f12;border-radius:4px;color:var(--text);padding:10px;font-size:14.5px;line-height:1.7;resize:vertical}.sheet-dialog .sr-only{margin:0}.primary-button{background:var(--accent);color:#171a18;border:1px solid var(--accent);min-height:44px;padding:8.5px 15.5px;border-radius:3px;margin-top:10px;font-size:13px}.primary-button:hover{background:#e4c590;color:#171a18}.memory-item{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding:12px 0;font-size:13.5px;line-height:1.8;overflow-wrap:anywhere}.memory-item>span{flex:1;min-width:0}.memory-list{margin-top:20.5px}.privacy-note{font-size:11.5px;border-top:1px solid var(--line);padding-top:15.5px;margin-bottom:0}.dialog-error{font-size:13px;color:#edb293}.canon-entry{padding:15.5px 0;border-bottom:1px solid var(--line)}.canon-entry summary{cursor:pointer;font-size:14.5px;line-height:1.7}.canon-entry p{white-space:pre-wrap;font-size:13px;line-height:1.95;color:#cccac0}.canon-entry .meta{display:block;font:500 11.5px var(--display);letter-spacing:1px;color:var(--muted);margin-top:10px}.canon-entry a{display:block;font-size:11.5px;margin-top:8.5px}.login-logo{width:85px;display:block;margin:0 auto 13.5px}.login-dialog>.tiny-label{display:block;margin-top:8.5px}.login-dialog>p{font-size:13px;line-height:1.8;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 17px;max-width:calc(100% - 32px);background:#2c291f;border:1px solid #8b7149;border-radius:4px;box-shadow:0 5px 30px #0008;z-index:50;font-size:13px;line-height:1.7}
.voice-bubble{position:absolute;z-index:3;left:9px;right:9px;bottom:32px;padding:8px 10px 10px;background:#15191bf2;border:1px solid #a18457;border-radius:6px;box-shadow:0 5px 22px #0006;backdrop-filter:blur(7px)}
.voice-bubble:before{content:'';position:absolute;top:-6px;left:24px;width:10px;height:10px;background:#15191b;border-top:1px solid #a18457;border-left:1px solid #a18457;transform:rotate(45deg)}
.voice-bubble-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--accent);font:500 10px var(--display);letter-spacing:1.5px}
.voice-bubble-heading i{font-style:normal;letter-spacing:1px;margin-left:5px}.voice-bubble-heading button{padding:0 2px;line-height:16px;font:16px var(--body);color:var(--muted)}
.voice-bubble[data-speaking=true] i{animation:breath .7s infinite}
.voice-bubble p{margin:5px 0 0;font-size:12px;line-height:1.65;color:var(--text);overflow-wrap:anywhere}
.voice-controls{padding:8px 3px 2px;flex-shrink:0}.voice-buttons{display:flex;align-items:center;justify-content:space-between;gap:5px}
.voice-buttons button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:28px;border:1px solid #41413a;border-radius:3px;padding:4px 7px;font-size:10.5px;white-space:nowrap}
.voice-buttons svg{width:14px;height:14px}.voice-buttons button.active{color:var(--accent);border-color:#79633e;background:#262219}.voice-buttons button:hover{border-color:var(--accent)}
.voice-choice{margin-top:5px}.voice-choice select{width:100%;min-width:0;max-width:100%;height:27px;padding:3px 6px;background:#191d21;color:var(--text);border:1px solid #41413a;border-radius:3px;font-size:11px}.voice-settings small{display:block;font-size:9px;margin-top:4px;color:var(--muted)}
.voice-settings{font-size:10px;color:var(--muted);line-height:1.7;margin-top:4px}.voice-settings summary{cursor:pointer;min-height:22px;padding:2px 0}.voice-settings>div{padding:7px 0 5px;border-bottom:1px solid var(--line)}
.voice-settings label{display:flex;align-items:center;gap:8px;min-height:28px}.voice-settings input[type=range]{min-width:0;flex:1;width:90px;accent-color:var(--accent)}.voice-settings input[type=checkbox]{accent-color:var(--accent);margin:0}.voice-settings p{margin:4px 0 0;font-size:10px}
.welcome-overline{font:500 12px var(--display);letter-spacing:1.6px;margin-bottom:12px;color:#bab6a9}.welcome-overline span{margin-left:10px;font-family:var(--body);font-size:11px;letter-spacing:2px;color:var(--muted)}
@keyframes breath{50%{opacity:.45}}
@media(min-width:1700px){.app-shell{grid-template-columns:250px minmax(0,1fr) 288px}.brand img{width:95px;height:62.5px}.chat-header{padding:10px 30px}.character-panel{padding:0 18.5px}.welcome{padding-top:72px}.message-body{font-size:14px}.avatar-stage{height:36.9vh;max-height:405px}}
@media(max-width:1250px){.app-shell{grid-template-columns:220px minmax(0,1fr) 243px}.sidebar{padding-left:10px;padding-right:10px}.new-chat{font-size:12px}.new-chat kbd{display:none}.chat-header{padding:10px 18px}.header-title h1>span{display:none}.messages{padding:14px 20px}.composer-region{padding-left:18.5px;padding-right:18.5px}.character-panel{padding:0 12px}.character-info h2{font-size:28px}.welcome{padding:34px 20.5px}.header-actions select{max-width:175px;font-size:11.5px}}
@media(max-width:1100px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.avatar-toggle{display:inline-flex}.character-panel{position:fixed;right:0;top:0;bottom:0;width:288px;max-width:calc(100vw - 20px);z-index:25;transform:translateX(100%);transition:transform .2s;box-shadow:-20px 0 60px #0007}.character-panel.open{transform:translateX(0)}.connection{min-height:52px}.character-panel .avatar-stage{height:35.1dvh}.character-info{padding-top:14px}.header-title h1>span{display:inline}.header-actions select{max-width:190px}}
@media(max-width:760px){.app-shell{grid-template-columns:minmax(0,1fr);min-height:0}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;max-width:calc(100vw - 42px);z-index:30;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 60px #0008}.sidebar.open{transform:translateX(0)}.mobile-only{display:inline-flex}.chat-header{min-height:68px;padding:8px 12px;gap:4px;flex-wrap:wrap}.header-title{flex:1}.header-title .tiny-label{font-size:10px;letter-spacing:1.5px}.header-title h1{font-size:14.5px}.header-title h1>span{display:none}.header-actions{gap:1px}.header-actions select{font-size:11.5px;max-width:156px;min-height:32px}.header-actions .icon-button{width:32px;height:32px}.header-actions #export{display:none}.messages{padding:10px 14px}.message{gap:8px;margin-bottom:18px}.message-avatar{width:26px;height:30px;font-size:17.5px}.message-body{font-size:13.5px;line-height:1.7}.message-label{font-size:11px;letter-spacing:1.5px}.message.user .message-main{max-width:93%;padding:7px 10px}.welcome{padding:30px 18.5px}.welcome-mark{font-size:11px;margin-bottom:18.5px}.welcome h2{font-size:26px;letter-spacing:-.7px}.welcome>p{font-size:13.5px;margin-bottom:20.5px}.suggestions{gap:8.5px}.suggestions button{font-size:12px;padding:12px 20.5px 12px 12px;min-height:94px}.suggestions button>span{font-size:10px;letter-spacing:1px;line-height:1.5}.composer-region{padding:5px 12px 8px}.composer-context{align-items:flex-start;font-size:10px;gap:7px;margin-bottom:5px}.mode-hint{max-width:57%;min-height:24px}.search-toggle{font-size:11px;gap:5px}.search-toggle svg{width:14px}.composer{padding:5px 7px 5px 10px;gap:7px}.composer-footer>span:last-child{display:none}.composer-footer{margin-top:5px}.sheet-dialog{padding:18.5px}.sheet-dialog h2{font-size:21.5px}.character-panel{width:270px}.setup-banner{padding:10px 15.5px;font-size:12px}}
@media(max-width:420px){.header-actions{width:100%;justify-content:flex-end;margin-top:-4px}.header-actions select{margin-right:auto;max-width:calc(100% - 110px)}.chat-header{min-height:90px}.header-title h1>span{display:inline;font-size:11.5px}.welcome h2{font-size:24px}.welcome{padding-top:24px}.suggestions{grid-template-columns:1fr}.suggestions button{min-height:68px}.suggestions button>span{margin-bottom:5px}.composer-context{font-size:9px}.mode-hint{max-width:54%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){.composer textarea,.sheet-dialog input,.sheet-dialog textarea{font-size:16px}}

/* Account controls keep the compact sidebar layout. */
.sidebar{--sidebar-gutter:13.5px}@media(max-width:1250px){.sidebar{--sidebar-gutter:10px}}
.local-profile{width:calc(100% + 2 * var(--sidebar-gutter));margin-left:calc(-1 * var(--sidebar-gutter));margin-right:calc(-1 * var(--sidebar-gutter));padding-left:var(--sidebar-gutter);padding-right:var(--sidebar-gutter);text-align:left;border-radius:0}.local-profile:hover{background:#ffffff04}.profile-details{flex:1;min-width:0}.profile-details small{line-height:1.45}.local-profile .private-badge{flex-shrink:0}.account-dialog{max-width:460px}.account-dialog>.primary-button{margin-top:12px}
/* Markdown stays within the existing compact chat typography. */
.message-body,.composer textarea{font-family:"IBM Plex Sans","Be Vietnam Pro",sans-serif;font-weight:400;font-synthesis:style}
.message-body.markdown-body{white-space:normal}
.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}
.markdown-body p{margin:0 0 .75em}.markdown-body strong{font-weight:700}.markdown-body em{font-style:italic}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{font-family:inherit;font-size:1.1em;line-height:1.5;font-weight:700;margin:1em 0 .4em;letter-spacing:normal}.markdown-body h1{font-size:1.3em}.markdown-body h2{font-size:1.18em}
.markdown-body ul,.markdown-body ol{margin:.5em 0 .75em;padding-left:1.5em}.markdown-body li+li{margin-top:.25em}.markdown-body li>p{margin-bottom:.4em}
.markdown-body blockquote{margin:.6em 0 .75em;padding:.15em .85em;border-left:2px solid var(--accent);color:var(--muted)}.markdown-body blockquote>:last-child{margin-bottom:0}
.markdown-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.markdown-body code{font-family:Consolas,"Liberation Mono",monospace;font-size:.9em;background:#ffffff0a;border:1px solid var(--line);border-radius:3px;padding:.1em .3em;overflow-wrap:anywhere}
.markdown-body pre{max-width:100%;overflow-x:auto;white-space:pre;tab-size:2;margin:.65em 0 .8em;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:#131619;line-height:1.55}.markdown-body pre code{background:none;border:0;border-radius:0;padding:0;white-space:pre;overflow-wrap:normal}
.markdown-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:.65em 0 .8em;font-size:inherit}.markdown-body th,.markdown-body td{padding:6px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}.markdown-body th{font-weight:700;background:#ffffff06}
.markdown-body .md-align-left{text-align:left}.markdown-body .md-align-center{text-align:center}.markdown-body .md-align-right{text-align:right}
.markdown-body hr{border:0;border-top:1px solid var(--line);margin:.9em 0}
