@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,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:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-latin-wght-normal-BgDaEnEv.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-sans:"Geist Variable", "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--radius-xs:6px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:22px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--ease-out:cubic-bezier(.22, 1, .36, 1);--ease-in-out:cubic-bezier(.65, 0, .35, 1);--dur-fast:.14s;--dur-base:.22s;--dur-slow:.42s;--sidebar-w:248px;--paper:#fff;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f0f10;--bg-glow:none;--surface:#161617;--surface-2:#1c1c1e;--surface-3:#262628;--surface-hover:#1f1f21;--border:#262628;--border-strong:#333336;--text:#ededee;--text-2:#b4b4b8;--muted:#98989c;--accent:#ededee;--accent-strong:#fff;--accent-fg:#0f0f10;--accent-soft:#ffffff0f;--accent-line:#ffffff2e;--ai:#ededee;--ai-soft:#ffffff12;--human:#ededee;--human-soft:transparent;--info:#b4b4b8;--info-soft:#ffffff0d;--danger:#e5786f;--danger-soft:#e5786f1a;--warning:#c9a66b;--warning-soft:#c9a66b1a;--success:#7fbf9a;--success-soft:#7fbf9a1a;--bubble-in:#1c1c1e;--bubble-ai:#232325;--bubble-admin:#2b2b2e;--bubble-admin-border:var(--border-strong);--accent-graphite:#ededee;--accent-blue:#8ab4f8;--accent-teal:#5cc8b8;--accent-violet:#b39cf5;--accent-rose:#f28bb6;--shadow-sm:0 1px 2px #0006;--shadow-md:0 10px 28px -12px #000000b3;--shadow-lg:0 24px 60px -20px #000c;--focus:0 0 0 2px var(--bg), 0 0 0 4px #ffffff8c}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f7f6;--bg-glow:none;--surface:#fff;--surface-2:#f4f4f3;--surface-3:#ebebea;--surface-hover:#f1f1f0;--border:#e6e6e4;--border-strong:#d6d6d3;--text:#141415;--text-2:#3d3d40;--muted:#636367;--accent:#141415;--accent-strong:#000;--accent-fg:#fff;--accent-soft:#0000000d;--accent-line:#00000029;--ai:#141415;--ai-soft:#0000000f;--human:#141415;--human-soft:transparent;--info:#3d3d40;--info-soft:#0000000a;--danger:#b4443b;--danger-soft:#b4443b14;--warning:#7a5d27;--warning-soft:#8a6a2f17;--success:#366d4e;--success-soft:#3f7d5a17;--bubble-in:#f1f1f0;--bubble-ai:#fff;--bubble-admin:#e9e9e7;--accent-graphite:#141415;--accent-blue:#1f5fcc;--accent-teal:#0f766e;--accent-violet:#6d4fd1;--accent-rose:#c2306f;--shadow-sm:0 1px 2px #0000000d;--shadow-md:0 10px 28px -14px #0000002e;--shadow-lg:0 24px 60px -24px #00000040;--focus:0 0 0 2px var(--bg), 0 0 0 4px #0000008c}:root[data-accent=blue]{--accent:var(--accent-blue);--accent-strong:#aecbfa;--accent-fg:#0f0f10;--accent-soft:#8ab4f81f;--accent-line:#8ab4f859;--bubble-ai:#1d2633;--bubble-admin:#1c2f47;--bubble-admin-border:#2c4566}:root[data-theme=light][data-accent=blue]{--accent:var(--accent-blue);--accent-strong:#174ea6;--accent-fg:#fff;--accent-soft:#1f5fcc14;--accent-line:#1f5fcc4d;--bubble-ai:#f2f6fd;--bubble-admin:#dce7fb;--bubble-admin-border:#bfd3f5}:root[data-accent=teal]{--accent:var(--accent-teal);--accent-strong:#84d8cb;--accent-fg:#0f0f10;--accent-soft:#5cc8b81f;--accent-line:#5cc8b859;--bubble-ai:#1a2a28;--bubble-admin:#18352f;--bubble-admin-border:#264d46}:root[data-theme=light][data-accent=teal]{--accent:var(--accent-teal);--accent-strong:#0b5f58;--accent-fg:#fff;--accent-soft:#0f766e14;--accent-line:#0f766e4d;--bubble-ai:#effaf8;--bubble-admin:#d5f0ec;--bubble-admin-border:#b2e0d9}:root[data-accent=violet]{--accent:var(--accent-violet);--accent-strong:#c9b8f8;--accent-fg:#0f0f10;--accent-soft:#b39cf51f;--accent-line:#b39cf559;--bubble-ai:#252134;--bubble-admin:#30284d;--bubble-admin-border:#433869}:root[data-theme=light][data-accent=violet]{--accent:var(--accent-violet);--accent-strong:#5838b8;--accent-fg:#fff;--accent-soft:#6d4fd114;--accent-line:#6d4fd14d;--bubble-ai:#f5f2fd;--bubble-admin:#e5ddfa;--bubble-admin-border:#cdc0f3}:root[data-accent=rose]{--accent:var(--accent-rose);--accent-strong:#f6aecb;--accent-fg:#0f0f10;--accent-soft:#f28bb61f;--accent-line:#f28bb659;--bubble-ai:#2d1f27;--bubble-admin:#432639;--bubble-admin-border:#5c344e}:root[data-theme=light][data-accent=rose]{--accent:var(--accent-rose);--accent-strong:#a1255b;--accent-fg:#fff;--accent-soft:#c2306f14;--accent-line:#c2306f4d;--bubble-ai:#fdf1f6;--bubble-admin:#f9dce8;--bubble-admin-border:#f0bdd2}*,:before,:after{box-sizing:border-box}html,body{min-height:100%;margin:0}body{font-family:var(--font-sans);letter-spacing:-.005em;color:var(--text);background:var(--bg);background-image:var(--bg-glow);font-feature-settings:"ss01", "cv11";font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);background-attachment:fixed;font-size:15px;line-height:1.5}#root{flex-direction:column;min-height:100svh;display:flex}h1,h2,h3,h4{color:var(--text);letter-spacing:-.02em;margin:0;font-weight:600;line-height:1.2}p{margin:0}a{color:var(--accent);text-underline-offset:3px}::selection{background:var(--accent-soft);color:var(--text)}:focus-visible{box-shadow:var(--focus);border-radius:var(--radius-sm);outline:none}code{border-radius:var(--radius-xs);background:var(--surface-3);padding:2px 6px;font-family:ui-monospace,SF Mono,Consolas,monospace;font-size:.88em}button,input,select,textarea{font:inherit;color:inherit}.app-main button:not(.btn-reset),.dialog-root button:not(.btn-reset),.login-page button:not(.btn-reset){border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);min-height:38px;color:var(--text);cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast);justify-content:center;align-items:center;gap:8px;padding:8px 14px;font-size:13.5px;font-weight:550;display:inline-flex}.app-main button:not(.btn-reset):hover:enabled,.dialog-root button:not(.btn-reset):hover:enabled{background:var(--surface-hover);border-color:var(--muted)}.app-main button:not(.btn-reset):active:enabled,.dialog-root button:not(.btn-reset):active:enabled,.login-page button:active:enabled{transform:translateY(1px)scale(.99)}.app-main button:disabled,.dialog-root button:disabled,.login-page button:disabled{opacity:.45;cursor:not-allowed}.app-main .btn-primary,.dialog-root .btn-primary,.app-main button.btn-primary:not(.btn-reset),.dialog-root button.btn-primary:not(.btn-reset),.app-main button[type=submit]:not(.btn-reset),.dialog-root button[type=submit]:not(.btn-reset),.login-page button[type=submit]{background:var(--accent);color:var(--accent-fg);border-color:#0000}.app-main .btn-primary:hover:enabled,.dialog-root .btn-primary:hover:enabled,.app-main button.btn-primary:not(.btn-reset):hover:enabled,.dialog-root button.btn-primary:not(.btn-reset):hover:enabled,.app-main button[type=submit]:not(.btn-reset):hover:enabled,.dialog-root button[type=submit]:not(.btn-reset):hover:enabled,.login-page button[type=submit]:hover:enabled{background:var(--accent-strong);border-color:#0000}.app-main input:not([type=checkbox]):not([type=radio]),.app-main select,.app-main textarea,.login-page input{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);width:100%;min-height:40px;color:var(--text);transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast);padding:9px 12px;font-size:14px}.app-main textarea{resize:vertical;line-height:1.5}.app-main select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:34px}.app-main input:hover:not(:disabled),.app-main select:hover,.app-main textarea:hover:not(:disabled){border-color:var(--muted)}.app-main :is(input,select,textarea):focus-visible,.login-page input:focus-visible{border-color:var(--accent);box-shadow:var(--focus);border-radius:var(--radius-sm)}.app-main input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);margin:0 8px 0 0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.chip{letter-spacing:0;white-space:nowrap;border:1px solid var(--border);background:var(--surface-2);height:24px;color:var(--text-2);border-radius:999px;align-items:center;gap:6px;padding:0 9px;font-size:12px;font-weight:550;display:inline-flex}.chip svg{width:13px;height:13px}.chip-ai{color:var(--ai);background:var(--ai-soft);border-color:#0000}.chip-human{color:var(--human);background:var(--human-soft);border-color:var(--border-strong)}.chip-info{color:var(--info);background:var(--info-soft);border-color:#0000}.chip-danger{color:var(--danger);background:var(--danger-soft);border-color:#0000}.chip-warning{color:var(--warning);background:var(--warning-soft);border-color:#0000}.dot{background:var(--muted);border-radius:50%;flex:none;width:8px;height:8px}.dot-success{background:var(--success);box-shadow:0 0 0 3px var(--success-soft)}.dot-danger{background:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}.dot-warning{background:var(--warning);box-shadow:0 0 0 3px var(--warning-soft)}.dot-pulse{animation:dot-pulse 2s var(--ease-in-out) infinite}.skeleton{background:var(--surface-2);border-radius:var(--radius-sm);position:relative;overflow:hidden}.skeleton:after{content:"";background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent);animation:1.4s infinite shimmer;position:absolute;inset:0;transform:translate(-100%)}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.enter{animation:enter var(--dur-slow) var(--ease-out) both;animation-delay:calc(var(--i,0) * 45ms)}@keyframes enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{transform:translate(100%)}}@keyframes dot-pulse{50%{box-shadow:0 0 0 6px #0000}}@keyframes slide-in-right{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:none}}@keyframes pop{0%{opacity:0;transform:translateY(6px)scale(.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;animation-delay:0s!important}}.offline-demo-banner{z-index:50;background:var(--surface-2);border-bottom:1px solid var(--border-strong);color:var(--text-2);text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-size:13px;font-weight:600;display:flex;position:sticky;top:0}.brand-mark{color:var(--text);flex:none;place-items:center;display:inline-grid}.brand-mark svg{width:100%;height:100%}.brand{color:var(--text);align-items:center;gap:10px;text-decoration:none;display:inline-flex}.brand-name{letter-spacing:-.03em;font-size:17px;font-weight:650;display:block}.brand-sub{color:var(--muted);letter-spacing:0;font-size:11.5px;display:block}.sidebar{height:100svh;width:var(--sidebar-w);border-right:1px solid var(--border);background:color-mix(in srgb, var(--surface) 78%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:40;flex-direction:column;flex:none;gap:24px;padding:20px 14px 16px;display:flex;position:sticky;top:0}.sidebar-brand{padding:4px 8px 0}.sidebar-nav{flex-direction:column;gap:2px;display:flex}.sidebar-section{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:0 10px 8px;font-size:11px;font-weight:600}.sidebar-section-spaced{padding-top:18px}.sidebar-link{border-radius:var(--radius-sm);height:38px;color:var(--text-2);transition:background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);align-items:center;gap:11px;padding:0 10px;font-size:14px;font-weight:500;text-decoration:none;display:flex;position:relative}.sidebar-link svg{width:18px;height:18px;color:var(--muted);transition:color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);flex:none}.sidebar-link:hover{background:var(--surface-hover);color:var(--text)}.sidebar-link:hover svg{transform:translate(1px)scale(1.06)}.sidebar-link.is-active{background:var(--surface-3);color:var(--text)}.sidebar-link.is-active svg{color:var(--text)}.sidebar-link.is-active:before{content:"";background:var(--accent);width:3px;animation:fade var(--dur-base) var(--ease-out);border-radius:0 3px 3px 0;position:absolute;top:9px;bottom:9px;left:-14px}.sidebar-footer{flex-direction:column;gap:12px;margin-top:auto;display:flex}.theme-switch{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;display:grid}.theme-option{height:28px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out), color var(--dur-fast);background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.theme-option svg{width:15px;height:15px}.theme-option:hover{color:var(--text)}.theme-option[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.user-chip{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);align-items:center;gap:10px;padding:10px;display:flex}.avatar{letter-spacing:0;width:32px;height:32px;color:var(--text-2);background:var(--surface-3);border:1px solid var(--border-strong);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:650;display:inline-grid}.user-meta{flex-direction:column;min-width:0;line-height:1.25;display:flex}.user-name{text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;font-weight:600;overflow:hidden}.user-role{color:var(--muted);font-size:12px}.icon-button{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast), color var(--dur-fast);background:0 0;border:0;flex:none;place-items:center;margin-left:auto;display:grid}.icon-button svg{width:17px;height:17px}.icon-button:hover{background:var(--danger-soft);color:var(--danger)}.topbar,.sidebar-scrim{display:none}@media (width<=900px){.topbar{z-index:30;border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--bg) 82%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);justify-content:space-between;align-items:center;height:56px;padding:0 16px;display:flex;position:sticky;top:0}.topbar-menu{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:40px;height:40px;color:var(--text);cursor:pointer;place-items:center;display:grid}.topbar-menu svg{width:19px;height:19px}.sidebar{background:var(--surface);visibility:hidden;width:min(84vw,300px);transition:transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);box-shadow:var(--shadow-lg);position:fixed;inset:0 auto 0 0;transform:translate(-102%)}.sidebar.is-open{visibility:visible;transition:transform var(--dur-slow) var(--ease-out);transform:none}.sidebar-scrim{z-index:35;opacity:0;pointer-events:none;transition:opacity var(--dur-base) var(--ease-out);background:#00000073;display:block;position:fixed;inset:0}.sidebar-scrim.is-open{opacity:1;pointer-events:auto}}.app-shell{align-items:stretch;min-height:100svh;display:flex}.app-main{min-width:0;animation:page-in var(--dur-slow) var(--ease-out) both;flex-direction:column;flex:1;padding:28px clamp(20px,3.2vw,44px) 48px;display:flex}.app-main>*{width:100%;max-width:1320px;margin-inline:auto}@keyframes page-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (width<=900px){.app-shell{flex-direction:column}.app-main{padding:20px 16px 40px}}.login-page{flex:1;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100svh;display:grid}.login-showcase{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;gap:36px;padding:40px clamp(32px,5vw,72px);display:flex;position:relative;overflow:hidden}.login-showcase:before{content:"";background-image:radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);pointer-events:none;background-size:22px 22px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#000,#0000 85%);mask-image:linear-gradient(#000,#0000 85%)}.login-showcase>*{position:relative}.login-showcase-brand{letter-spacing:-.03em;align-items:center;gap:12px;font-size:20px;font-weight:650;display:flex}.login-showcase-copy{max-width:30ch;margin-top:auto}.login-showcase-copy h2{letter-spacing:-.035em;font-size:clamp(26px,2.6vw,36px);font-weight:650;line-height:1.12}.login-showcase-copy p{max-width:44ch;color:var(--muted);margin-top:14px;font-size:15px}.login-chat{flex-direction:column;gap:10px;max-width:420px;display:flex}.login-bubble{max-width:82%;box-shadow:var(--shadow-md);opacity:0;animation:pop var(--dur-slow) var(--ease-out) forwards;border-radius:16px;padding:10px 14px;font-size:14px;line-height:1.45}.login-bubble-guest{background:var(--bubble-in);border:1px solid var(--border);border-bottom-left-radius:5px;align-self:flex-start}.login-bubble-ai,.login-bubble-human{border-bottom-right-radius:5px;align-self:flex-end}.login-bubble-ai{background:var(--bubble-ai);border:1px solid var(--border-strong)}.login-bubble-human{background:var(--bubble-admin);border:1px solid var(--bubble-admin-border)}.login-bubble-tag{color:var(--muted);align-items:center;gap:5px;margin-bottom:3px;font-size:11.5px;font-weight:650;display:flex}.login-bubble-tag svg{width:13px;height:13px}.login-features{color:var(--muted);flex-wrap:wrap;gap:8px 20px;margin:0;padding:0;font-size:13px;list-style:none;display:flex}.login-features li{align-items:center;gap:7px;display:flex}.login-features svg{width:16px;height:16px;color:var(--text-2)}.login-panel{place-items:center;padding:40px 24px;display:grid}.login-card{width:100%;max-width:380px;animation:enter var(--dur-slow) var(--ease-out) both;flex-direction:column;display:flex}.login-card-brand{margin-bottom:20px;display:none}.login-card h1{letter-spacing:-.035em;font-size:28px;font-weight:650}.login-subtitle{color:var(--muted);margin:6px 0 28px;font-size:14.5px}.login-card label{color:var(--text-2);margin:14px 0 7px;font-size:13px;font-weight:550}.login-field{align-items:center;display:flex;position:relative}.login-field>svg{width:17px;height:17px;color:var(--muted);pointer-events:none;transition:color var(--dur-fast);position:absolute;left:13px}.login-field:focus-within>svg{color:var(--text)}.login-page .login-field input{background:var(--surface);border-radius:10px;min-height:46px;padding-left:40px;padding-right:44px;font-size:15px}.login-page .login-field input::placeholder{color:color-mix(in srgb, var(--muted) 70%, transparent)}.login-page .login-field input[aria-invalid=true]{border-color:color-mix(in srgb, var(--danger) 60%, var(--border-strong))}.login-reveal{width:34px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid;position:absolute;right:6px}.login-reveal:hover{color:var(--text);background:var(--surface-hover)}.login-reveal svg{width:17px;height:17px}.login-error{background:var(--danger-soft);color:var(--danger);animation:shake .36s var(--ease-out);border-radius:10px;align-items:center;gap:8px;margin:16px 0 0;padding:10px 12px;font-size:13.5px;font-weight:500;display:flex}.login-error svg{flex:none;width:17px;height:17px}.login-page .login-card button[type=submit]{border-radius:10px;min-height:46px;margin-top:24px;font-size:15px;font-weight:600}.login-card button[type=submit] svg{width:17px;height:17px;transition:transform var(--dur-base) var(--ease-out)}.login-card button[type=submit]:hover:enabled svg{transform:translate(3px)}.login-footnote{text-align:center;color:var(--muted);margin-top:18px;font-size:12.5px}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite spin}@keyframes shake{20%,60%{transform:translate(-5px)}40%,80%{transform:translate(5px)}}@media (width<=900px){.login-page{grid-template-columns:1fr}.login-showcase{display:none}.login-card-brand{display:block}}.page-header{text-align:left;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 24px;margin-bottom:24px;display:flex}.page-header-text{min-width:0;max-width:72ch}.page-header-eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:600;display:inline-block}.page-header h1{letter-spacing:-.03em;margin:0;font-size:clamp(24px,2.4vw,30px);font-weight:650}.page-header-description{color:var(--muted);margin-top:6px;font-size:14.5px}.page-header-actions{flex-wrap:wrap;gap:8px;display:flex}.dialog-backdrop{z-index:60;overscroll-behavior:contain;background:color-mix(in srgb, var(--bg) 72%, transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:fade var(--dur-base) var(--ease-out) both;place-items:start center;padding:16px;display:grid;position:fixed;inset:0;overflow-y:auto}.dialog{width:100%;box-shadow:var(--shadow-lg);animation:pop var(--dur-base) var(--ease-out) both;margin-block:auto;padding:22px 22px 20px;position:relative}.dialog:focus-visible{border-radius:var(--radius-lg)}.dialog-md{max-width:460px}.dialog-sm{max-width:400px}.dialog-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.dialog-head h2{letter-spacing:-.02em;font-size:17px}.dialog-description{color:var(--muted);margin-top:4px;font-size:13.5px}.dialog-close{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast), color var(--dur-fast);background:0 0;border:0;flex:none;place-items:center;margin:-4px -6px 0 0;display:grid}.dialog-close:hover{background:var(--surface-hover);color:var(--text)}.dialog-close svg{width:17px;height:17px}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px;display:flex}@media (width<=480px){.dialog{padding:18px 16px 16px}.dialog-actions>*{flex:auto}}.whatsapp-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.whatsapp-actions>button{flex:auto}.whatsapp-actions-note{color:var(--muted);margin-top:14px;font-size:13px}.pairing{justify-items:center;gap:18px;display:grid}.pairing-frame{aspect-ratio:1;border-radius:var(--radius-lg);background:var(--paper);border:1px solid var(--border-strong);width:100%;max-width:292px;box-shadow:var(--shadow-sm);place-items:center;padding:14px;display:grid}.pairing-frame.is-empty{background:var(--surface-2)}.pairing-qr{width:100%;height:auto;image-rendering:pixelated;-webkit-user-select:none;user-select:none;animation:fade var(--dur-base) var(--ease-out) both;display:block}.pairing-placeholder{width:100%;height:100%;color:var(--muted);text-align:center;place-items:center;gap:10px;font-size:13px;font-weight:550;display:grid}.pairing-placeholder svg{stroke-width:1.5px;width:34px;height:34px}.pairing-skeleton{border-radius:var(--radius-md);width:100%;height:100%}.pairing-check{border:1px solid var(--border-strong);background:var(--surface);width:54px;height:54px;color:var(--text);animation:pop var(--dur-base) var(--ease-out) both;border-radius:50%;place-items:center;display:grid}.pairing-check svg{width:26px;height:26px}.pairing-side{gap:14px;width:100%;display:grid}.pairing-status{justify-content:center;align-items:center;gap:9px;min-height:22px;font-size:14px;font-weight:600;display:flex}.pairing-status:empty{display:none}.pairing-status svg{width:15px;height:15px;color:var(--muted)}.pairing-error{border-radius:var(--radius-sm);background:var(--danger-soft);color:var(--text);text-align:center;padding:10px 12px;font-size:13px}.pairing-timer{justify-items:center;gap:6px;display:grid}.pairing-bar{background:var(--surface-3);border-radius:999px;width:100%;max-width:292px;height:3px;overflow:hidden}.pairing-bar>span{background:var(--text-2);transform-origin:0;height:100%;transition:transform 1s linear;display:block}.pairing-timer-text{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12.5px}.pairing-code{color:var(--text-2);text-align:center;font-size:13px}.pairing-code code{letter-spacing:.12em;color:var(--text);font-size:14px}.pairing-steps{counter-reset:step;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);gap:8px;margin:0;padding:14px 16px;font-size:13.5px;list-style:none;display:grid}.pairing-steps li{counter-increment:step;grid-template-columns:20px 1fr;align-items:start;gap:10px;display:grid}.pairing-steps li>span{padding-top:1px}.pairing-steps li:before{content:counter(step);border:1px solid var(--border-strong);width:20px;height:20px;color:var(--text);font-variant-numeric:tabular-nums;border-radius:50%;flex:none;place-items:center;font-size:11.5px;font-weight:600;display:inline-grid}.pairing-steps b{color:var(--text);font-weight:600}@media (width<=480px),(height<=760px){.pairing{gap:14px}.pairing-frame{max-width:248px;padding:12px}.pairing-side{gap:10px}.pairing-steps{padding:12px 14px;font-size:13px}}.dashboard{text-align:left;flex-grow:1}.btn-link{border-radius:var(--radius-sm);min-height:38px;transition:background-color var(--dur-fast), transform var(--dur-fast);align-items:center;gap:8px;padding:8px 14px;font-size:13.5px;font-weight:600;text-decoration:none;display:inline-flex}.btn-link.btn-primary{background:var(--accent);color:var(--accent-fg)}.btn-link.btn-primary:hover{background:var(--accent-strong)}.btn-link svg,.dashboard .page-header-actions button svg{width:16px;height:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.stat{min-height:168px;transition:transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);flex-direction:column;padding:18px 18px 16px;display:flex;position:relative;overflow:hidden}.stat:hover{box-shadow:var(--shadow-md);border-color:var(--border-strong);transform:translateY(-2px)}.stat-accent,.stat-info,.stat-human{--stat-color:var(--text-2)}.stat-danger{--stat-color:var(--danger)}.stat-head{align-items:center;gap:10px;display:flex}.stat-icon{width:30px;height:30px;color:var(--stat-color);background:var(--surface-2);border:1px solid var(--border);border-radius:9px;place-items:center;display:grid}.stat-icon svg{width:16px;height:16px}.stat-label{color:var(--text-2);font-size:13px;font-weight:550}.stat-value{letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:16px;font-size:34px;font-weight:650;line-height:1}.stat-hint{color:var(--muted);margin-top:10px;font-size:12.5px;line-height:1.45}.stat-hint b{color:var(--text-2);font-weight:600}.split{margin-top:auto;padding-top:12px}.split-bar{border-radius:99px;gap:3px;height:6px;display:flex;overflow:hidden}.split-seg{transform-origin:0;min-width:6px;animation:grow .9s var(--ease-out) both .2s;border-radius:99px}.split-human{background:var(--text)}.split-accent{background:var(--muted)}.split-legend{color:var(--muted);flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:12px;display:flex}.split-legend b{color:var(--text);margin-left:2px;font-weight:600}.split-dot{border-radius:50%;width:7px;height:7px;margin-right:6px;display:inline-block}@keyframes grow{0%{transform:scaleX(0)}}.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);align-items:start;gap:14px;margin-top:14px;display:grid}.dashboard-side{flex-direction:column;gap:14px;display:flex}.panel{padding:18px}.panel-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.panel-head h2{letter-spacing:-.015em;font-size:15px;font-weight:600}.panel-link{color:var(--text-2);align-items:center;gap:4px;font-size:13px;font-weight:550;text-decoration:none;display:inline-flex}.panel-link svg{width:15px;height:15px;transition:transform var(--dur-base) var(--ease-out)}.panel-link:hover{color:var(--text)}.panel-link:hover svg{transform:translate(3px)}.panel-empty{text-align:center;color:var(--muted);padding:28px 8px;font-size:14px}.panel-state{color:var(--muted);align-items:center;gap:10px;padding:18px;font-size:14px;display:flex}.panel-state svg{width:18px;height:18px;color:var(--warning)}.icon-ghost{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-slow) var(--ease-out);background:0 0;border:0;place-items:center;display:grid}.icon-ghost:hover{background:var(--surface-hover);color:var(--text)}.icon-ghost:active{transform:rotate(180deg)}.icon-ghost svg{width:16px;height:16px}.recent-list{flex-direction:column;margin:0 -8px;display:flex}.recent-row{border-radius:var(--radius-md);color:inherit;transition:background-color var(--dur-fast);align-items:center;gap:12px;padding:10px 8px;text-decoration:none;display:flex}a.recent-row:hover{background:var(--surface-hover)}.recent-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.recent-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.recent-name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.recent-top time{color:var(--muted);flex:none;font-size:12px}.recent-summary{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.recent-tags{flex:none;gap:6px;display:flex}.connection{position:relative;overflow:hidden}.connection:before{content:"";background:var(--connection-color);opacity:.8;height:3px;position:absolute;inset:0 0 auto}.connection-success{--connection-color:var(--success)}.connection-warning{--connection-color:var(--warning)}.connection-danger{--connection-color:var(--danger)}.connection-main{align-items:center;gap:14px;display:flex}.connection-icon{width:44px;height:44px;color:var(--connection-color);background:color-mix(in srgb, var(--connection-color) 13%, transparent);border-radius:12px;place-items:center;display:grid}.connection-icon svg{width:21px;height:21px}.connection-label{align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex}.connection-sub{color:var(--muted);margin-top:2px;font-size:12.5px;display:block}.connection-note{border-radius:var(--radius-sm);background:var(--warning-soft);color:var(--text-2);margin-top:14px;padding:10px 12px;font-size:13px}.connection-attempts{color:var(--muted);align-items:center;gap:5px;margin-top:14px;font-size:12px;display:flex}.connection-attempts i{background:var(--surface-3);border-radius:99px;width:22px;height:5px}.connection-attempts i.is-used{background:var(--warning)}.connection-attempts span{margin-left:6px}.shortcuts{flex-direction:column;margin:0 -8px;display:flex}.shortcut{border-radius:var(--radius-md);color:inherit;transition:background-color var(--dur-fast);align-items:center;gap:12px;padding:9px 8px;text-decoration:none;display:flex}.shortcut:hover{background:var(--surface-hover)}.shortcut-icon{background:var(--surface-2);border:1px solid var(--border);width:34px;height:34px;color:var(--text-2);border-radius:10px;flex:none;place-items:center;display:grid}.shortcut-icon svg{width:17px;height:17px}.shortcut-label{font-size:13.5px;font-weight:600;display:block}.shortcut-text{color:var(--muted);font-size:12.5px;display:block}.shortcut-arrow{width:16px;height:16px;color:var(--muted);opacity:0;transition:opacity var(--dur-base), transform var(--dur-base) var(--ease-out);margin-left:auto;transform:translate(-4px)}.shortcut:hover .shortcut-arrow{opacity:1;transform:none}@media (width<=1180px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=560px){.stats{grid-template-columns:minmax(0,1fr)}.recent-tags .chip:last-child{display:none}}.inbox{text-align:left;flex-direction:column;flex-grow:1;min-height:0;display:flex}.inbox .page-header-actions button svg{width:16px;height:16px}.inbox-filters{flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:14px;display:flex}.inbox-filters-icon{width:16px;height:16px;color:var(--muted);margin-right:2px}.inbox-filter{align-items:center;display:flex;position:relative}.inbox-filter label{color:var(--muted);pointer-events:none;font-size:12px;font-weight:550;position:absolute;left:12px}.app-main .inbox-filter select{text-indent:0;background-color:var(--surface);border-radius:999px;width:auto;min-height:34px;padding:6px 32px 6px 0;font-size:13px;font-weight:550}.app-main #inbox-channel,.app-main #inbox-status{padding-left:58px}.app-main #inbox-mode{padding-left:96px}.app-main .inbox-filters .inbox-clear{min-height:34px;color:var(--muted);background:0 0;border-color:#0000;border-radius:999px;padding:6px 12px;font-size:13px}.app-main .inbox-filters .inbox-clear:hover:enabled{background:var(--surface-hover);color:var(--text);border-color:#0000}.app-main .inbox-filters .inbox-clear:disabled{opacity:0;pointer-events:none}.inbox-clear svg{width:14px;height:14px}.inbox-shell{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:14px;height:clamp(560px,100svh - 244px,1100px);min-height:0;display:grid}.inbox-pane{flex-direction:column;min-height:0;display:flex;overflow:hidden}.inbox-results{overscroll-behavior:contain;flex:1;min-height:0;padding:6px;overflow-y:auto}.inbox-loading{color:var(--muted);padding:6px 10px 2px;font-size:12.5px}.inbox-skeleton{gap:12px;padding:12px 10px;display:flex}.inbox-skeleton-avatar{border-radius:50%;flex:none;width:38px;height:38px}.inbox-skeleton-lines{flex-direction:column;flex:1;gap:8px;display:flex}.inbox-skeleton-lines .skeleton{height:10px}.inbox-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.inbox-row{border-radius:var(--radius-md);transition:background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);gap:12px;padding:12px 10px;display:flex;position:relative}.inbox-row:hover{background:var(--surface-hover)}.inbox-row.is-selected{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-strong)}.inbox-row.is-selected:before{content:"";background:var(--accent);border-radius:0 3px 3px 0;width:3px;position:absolute;top:14px;bottom:14px;left:-6px}.inbox-row:has(.inbox-open:focus-visible){box-shadow:var(--focus)}.inbox-row.is-closed .avatar{opacity:.55}.inbox-open{border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;position:absolute;inset:0}.inbox-open:focus-visible{box-shadow:none}.inbox-row-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.inbox-row-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.inbox h2.inbox-row-name{letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:600;overflow:hidden}.inbox-row-time{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.inbox-row-summary{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.inbox-row-summary.is-empty{color:var(--muted);font-style:italic}.inbox-row-author{color:var(--muted)}.inbox-row-tags{flex-wrap:wrap;align-items:center;gap:6px;margin-top:5px;display:flex}.inbox-row-tags .chip{height:22px;padding:0 8px;font-size:11.5px}.inbox-row-tags .chip svg{width:12px;height:12px}.inbox-row-status{color:var(--muted);align-items:center;gap:6px;margin-left:auto;font-size:11.5px;font-weight:550;display:inline-flex}.inbox-row-status .dot{width:6px;height:6px}.inbox-row-status.is-open .dot{background:var(--text)}.inbox-state{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:48px 20px;font-size:13.5px;display:flex}.inbox-state>svg{width:28px;height:28px;color:var(--muted);stroke-width:1.5px}.inbox h2:not(.inbox-row-name){font-size:15px;font-weight:600}.inbox-error>svg{color:var(--warning)}.inbox-error p{color:var(--text-2);max-width:34ch}.inbox-state a{color:var(--text);font-size:13px}.inbox-pagination{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding:8px;font-size:12.5px;display:flex}.app-main .inbox-pagination button{background:0 0;border-color:#0000;gap:4px;min-height:32px;padding:4px 10px;font-size:12.5px}.app-main .inbox-pagination button:hover:enabled{border-color:var(--border)}.inbox-pagination svg{width:15px;height:15px}.inbox-placeholder{text-align:center;color:var(--muted);background:radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--text) 3%, transparent), transparent 60%), var(--surface);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:32px;font-size:13.5px;display:flex}.inbox-placeholder-icon{border:1px solid var(--border);background:var(--surface-2);width:52px;height:52px;color:var(--text-2);border-radius:16px;place-items:center;margin-bottom:6px;display:grid}.inbox-placeholder-icon svg{stroke-width:1.6px;width:22px;height:22px}.inbox-placeholder-title{color:var(--text);font-size:15px;font-weight:600}.inbox-placeholder p:last-child{max-width:36ch}@media (width<=1100px){.inbox-shell{grid-template-columns:minmax(280px,320px) minmax(0,1fr)}}@media (width<=900px){.inbox-shell{grid-template-columns:minmax(0,1fr);height:auto}.inbox-pane{max-height:none}.inbox-results{overflow:visible}.inbox-placeholder,.has-selection .inbox-pane,.has-selection .inbox-filters,.has-selection .page-header,.inbox-filters-icon{display:none}}@media (width<=560px){.inbox-filters{scrollbar-width:none;flex-wrap:nowrap;margin-inline:-16px;padding:2px 16px 4px;overflow-x:auto}.inbox-filter,.inbox-clear{flex:none}}.evolution-status{border-bottom:1px solid var(--border);background:var(--surface);color:var(--muted);align-items:center;gap:10px;padding:8px 16px;font-size:12.5px;display:flex}.evolution-success{--evolution-color:var(--success)}.evolution-warning{--evolution-color:var(--warning)}.evolution-danger{--evolution-color:var(--danger)}.evolution-loading{--evolution-color:var(--muted)}.evolution-icon{width:26px;height:26px;color:var(--evolution-color);background:color-mix(in srgb, var(--evolution-color) 12%, transparent);border-radius:8px;flex:none;place-items:center;display:grid}.evolution-icon svg{width:14px;height:14px}.evolution-text{flex-wrap:wrap;flex:1;align-items:center;gap:2px 14px;min-width:0;display:flex}.evolution-label{color:var(--text);align-items:center;gap:7px;font-weight:600;display:inline-flex}.evolution-label .dot{width:6px;height:6px}.evolution-details{flex-wrap:wrap;gap:2px 12px;display:flex}.evolution-alert{color:var(--text-2);flex-basis:100%;order:3}.evolution-alert:before{content:"";vertical-align:1px;background:var(--warning);border-radius:50%;width:6px;height:6px;margin-right:7px;display:inline-block}.evolution-refresh{border-radius:var(--radius-sm);min-height:28px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast), color var(--dur-fast);background:0 0;border:0;flex:none;align-items:center;gap:6px;padding:4px 9px;font-size:12px;font-weight:550;display:inline-flex}.evolution-refresh:hover{background:var(--surface-hover);color:var(--text)}.evolution-refresh svg{width:13px;height:13px;transition:transform var(--dur-slow) var(--ease-out)}.evolution-refresh:active svg{transform:rotate(180deg)}@media (width<=560px){.evolution-status{padding:8px 12px}.evolution-refresh span{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}.evolution-text .whatsapp-actions,.evolution-text .whatsapp-actions-note{flex-basis:100%;order:4;margin-top:10px}.evolution-status:has(.whatsapp-actions){align-items:flex-start}.evolution-status:has(.whatsapp-actions) .evolution-refresh{margin-top:-2px}.evolution-text .whatsapp-actions>button{flex:none}.handoff-panel{border-top:1px solid var(--border);background:var(--surface);flex-direction:column;gap:10px;padding:12px 16px 14px;display:flex}.handoff-bar{align-items:center;gap:12px;display:flex}.handoff-icon{border:1px solid var(--border);background:var(--surface-2);width:32px;height:32px;color:var(--text-2);border-radius:10px;flex:none;place-items:center;display:grid}.handoff-state-human .handoff-icon{background:var(--text);color:var(--bg);border-color:#0000}.handoff-state-closed .handoff-icon{color:var(--muted)}.handoff-icon svg{width:16px;height:16px}.handoff-text{flex:1;min-width:0}.handoff-panel h3{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:11px;font-weight:600}.handoff-text p{color:var(--text-2);margin-top:1px;font-size:13.5px}.handoff-text .handoff-summary{color:var(--text);font-weight:550}.handoff-summary:focus-visible{box-shadow:var(--focus)}.handoff-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.app-main .handoff-actions button{min-height:34px;padding:6px 12px;font-size:13px}.handoff-actions svg{width:15px;height:15px}.handoff-notice,.handoff-note{color:var(--muted);font-size:12.5px}.handoff-error{border-radius:var(--radius-sm);background:var(--danger-soft);color:var(--text-2);flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 12px;font-size:13px;display:flex}.handoff-error>svg{width:15px;height:15px;color:var(--danger);flex:none}.handoff-error p{flex:1;min-width:20ch}.handoff-error a{color:var(--text)}.handoff-composer{flex-direction:column;gap:6px;display:flex}.handoff-composer label{color:var(--muted);font-size:12px;font-weight:550}.handoff-composer-box{border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface-2);transition:border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)}.handoff-composer-box:focus-within{border-color:var(--text-2);box-shadow:var(--focus)}.app-main .handoff-composer textarea{resize:none;field-sizing:content;background:0 0;border:0;min-height:52px;max-height:220px;padding:10px 12px 4px;display:block}.app-main .handoff-composer textarea:focus-visible{box-shadow:none}.handoff-composer textarea::placeholder{color:var(--muted)}.handoff-composer-actions{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:8px;padding:6px 6px 6px 12px;font-size:11.5px;display:flex}.handoff-composer-actions .is-near-limit{color:var(--warning)}.app-main .handoff-composer-actions button{min-height:32px;padding:5px 12px;font-size:13px}.handoff-composer-actions svg{width:15px;height:15px}@media (width<=560px){.handoff-panel{padding:10px 12px 12px}.handoff-bar{flex-wrap:wrap}.handoff-actions{justify-content:stretch;width:100%}.app-main .handoff-actions button{flex:1}}.timeline-panel{min-width:0;min-height:0;animation:slide-in-right var(--dur-slow) var(--ease-out) both;flex-direction:column;display:flex;overflow:hidden}.timeline-header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:14px 16px;display:flex}.timeline-title{flex:1;min-width:0}.timeline-header h2{letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap;font-size:15.5px;font-weight:600;overflow:hidden}.timeline-header h2:focus-visible{box-shadow:none;text-underline-offset:4px;text-decoration:underline;-webkit-text-decoration-color:var(--border-strong);text-decoration-color:var(--border-strong)}.timeline-subtitle{color:var(--muted);align-items:center;gap:6px;margin-top:2px;font-size:12.5px;display:flex}.timeline-subtitle svg{width:13px;height:13px}.timeline-close-back{display:none}.timeline-body{background:var(--bg);flex-direction:column;flex:1;min-height:0;display:flex}.timeline-toolbar{color:var(--muted);border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 14px;padding:8px 16px;font-size:12px;display:flex}.timeline-caption{align-items:center;gap:8px;display:flex}.timeline-caption .dot{background:var(--text-2);width:6px;height:6px}.timeline-progress{font-variant-numeric:tabular-nums}.timeline-history-actions{flex-wrap:wrap;justify-content:center;gap:8px;padding:10px 16px 0;display:flex}.app-main .timeline-history-actions button{background:var(--surface);border-radius:999px;min-height:30px;padding:4px 12px;font-size:12.5px}.timeline-error{border-radius:var(--radius-md);border:1px solid color-mix(in srgb, var(--warning) 35%, transparent);background:var(--warning-soft);color:var(--text-2);flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 16px 0;padding:10px 12px;font-size:13px;display:flex}.timeline-error>svg{width:16px;height:16px;color:var(--warning);flex:none}.timeline-error p{flex:1;min-width:18ch}.app-main .timeline-error button{min-height:30px;padding:4px 10px;font-size:12.5px}.timeline-error a{color:var(--text);font-size:12.5px}.timeline-viewport{overscroll-behavior:contain;overflow-anchor:none;flex:1;min-height:0;padding:16px;scroll-padding-bottom:16px;overflow:auto}.timeline-viewport:focus-visible{box-shadow:inset 0 0 0 2px var(--border-strong);border-radius:0}.timeline-skeleton{flex-direction:column;gap:12px;display:flex}.timeline-skeleton .skeleton{border-radius:14px}.timeline-skeleton .skeleton:nth-child(2){align-self:flex-end}.timeline-empty{min-height:160px;color:var(--muted);place-items:center;font-size:13.5px;display:grid}.timeline-messages{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.timeline-message{animation:pop var(--dur-base) var(--ease-out) both;display:flex}.timeline-outbound{justify-content:flex-end}.timeline-bubble{border:1px solid var(--border);background:var(--bubble-in);border-radius:16px;min-width:140px;max-width:min(78%,560px);padding:9px 12px 8px}.timeline-inbound .timeline-bubble{border-bottom-left-radius:6px}.timeline-from-ai .timeline-bubble{background:var(--bubble-ai);border-bottom-right-radius:6px}.timeline-from-admin .timeline-bubble{background:var(--bubble-admin);border-color:var(--bubble-admin-border);border-bottom-right-radius:6px}.timeline-from-system{justify-content:center}.timeline-from-system .timeline-bubble{text-align:center;background:0 0;border-style:dashed;border-radius:999px;max-width:min(90%,520px);padding:6px 12px}.timeline-from-system .timeline-message-meta{justify-content:center}.timeline-from-system .timeline-content{color:var(--muted);margin-top:2px;font-size:12.5px}.timeline-from-system .timeline-delivery{display:none}.timeline-message-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:4px 12px;font-size:11.5px;display:flex}.timeline-author{min-width:0;color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:5px;font-weight:600;display:inline-flex;overflow:hidden}.timeline-author svg{flex:none;width:12px;height:12px}.timeline-message-meta time{font-variant-numeric:tabular-nums;flex:none}.timeline-content{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);margin-top:4px;font-size:14px;line-height:1.5}.timeline-delivery{color:var(--muted);justify-content:flex-end;align-items:center;gap:5px;margin-top:6px;font-size:11.5px;font-weight:500;display:flex}.timeline-delivery svg{flex:none;width:13px;height:13px}.timeline-delivery.tone-read{color:var(--text)}.timeline-delivery.tone-ok{color:var(--text-2)}.timeline-delivery.tone-warning svg{color:var(--warning)}.timeline-delivery.tone-danger{color:var(--danger)}.delivery-actions{border-radius:var(--radius-md);border:1px solid color-mix(in srgb, var(--warning) 30%, transparent);background:var(--warning-soft);color:var(--text-2);flex-direction:column;gap:8px;margin-top:10px;padding:10px;font-size:12.5px;display:flex}.delivery-actions label{color:var(--text);align-items:flex-start;gap:2px;font-size:12.5px;font-weight:550;display:flex}.delivery-actions label input[type=checkbox]{margin-top:2px}.delivery-actions textarea{min-height:5rem}.app-main .delivery-actions button{background:var(--surface);min-height:32px;padding:5px 12px;font-size:12.5px}.app-main .delivery-actions button.btn-primary{background:var(--accent);color:var(--accent-fg)}.delivery-actions-row{flex-wrap:wrap;gap:6px;display:flex}.delivery-hint{color:var(--warning);margin-top:8px;font-size:12px}@media (width<=900px){.timeline-panel{height:calc(100svh - 104px);min-height:480px}.timeline-toolbar{flex-wrap:nowrap}.timeline-caption{white-space:nowrap;text-overflow:ellipsis;min-width:0;display:block;overflow:hidden}.timeline-caption .dot{vertical-align:1px;margin-right:8px;display:inline-block}.timeline-progress{flex:none}.timeline-header{padding:12px}.timeline-close{order:-1;margin-right:-4px}.timeline-close-x{display:none}.timeline-close-back{display:block}.timeline-viewport{padding:12px}.timeline-toolbar{padding:8px 12px}.timeline-bubble{max-width:88%}}.page{text-align:left;flex-direction:column;flex-grow:1;display:flex}.page-placeholder{flex-direction:column;min-height:420px;display:flex;position:relative;overflow:hidden}.placeholder-preview{padding:18px 20px 0;-webkit-mask-image:linear-gradient(#000 30%,#0000 95%);mask-image:linear-gradient(#000 30%,#0000 95%)}.placeholder-row{border-bottom:1px solid var(--border);grid-template-columns:2fr 1.4fr 1fr 1fr;align-items:center;gap:16px;padding:14px 4px;display:grid}.placeholder-head{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding-top:0;font-size:11px;font-weight:600}.placeholder-row i{background:var(--surface-3);height:9px;width:calc(var(--w,.7) * 100%);animation:enter var(--dur-slow) var(--ease-out) both;animation-delay:calc(var(--i,0) * 70ms + .12s);border-radius:99px}.placeholder-row i:nth-child(2){width:calc(var(--w,.7) * 70%)}.placeholder-row i:nth-child(3){width:40%}.placeholder-row i:nth-child(4){width:64px;height:18px}.placeholder-body{text-align:center;flex-direction:column;align-items:center;gap:10px;margin-top:-36px;padding:0 24px 44px;display:flex}.placeholder-icon{border:1px solid var(--border);background:var(--surface-2);width:52px;height:52px;color:var(--text-2);border-radius:16px;place-items:center;margin-bottom:4px;display:grid}.placeholder-icon svg{stroke-width:1.6px;width:22px;height:22px}.page-placeholder-badge{font-weight:600}.placeholder-title{letter-spacing:-.015em;max-width:40ch;font-size:16px;font-weight:600}.placeholder-text{max-width:46ch;color:var(--muted);font-size:13.5px}.placeholder-link{color:var(--text);align-items:center;gap:6px;margin-top:6px;font-size:13.5px;font-weight:600;text-decoration:none;display:inline-flex}.placeholder-link svg{width:15px;height:15px;transition:transform var(--dur-base) var(--ease-out)}.placeholder-link:hover svg{transform:translate(3px)}@media (width<=640px){.placeholder-row{grid-template-columns:2fr 1fr}.placeholder-row>:nth-child(n+3){display:none}}.faq-page{gap:0}.faq-page .page-header-actions button svg{width:16px;height:16px}.faq-restricted{max-width:560px;color:var(--text-2);align-items:center;gap:12px;padding:18px;font-size:14px;display:flex}.faq-restricted svg{width:18px;height:18px;color:var(--muted);flex:none}.faq-banner{border-radius:var(--radius-md);color:var(--text);animation:pop var(--dur-base) var(--ease-out) both;align-items:flex-start;gap:10px;margin-bottom:14px;padding:11px 14px;font-size:13.5px;display:flex}.faq-banner svg{flex:none;width:17px;height:17px;margin-top:1px}.faq-banner-error{background:var(--danger-soft);border:1px solid color-mix(in srgb, var(--danger) 30%, transparent)}.faq-banner-error svg{color:var(--danger)}.faq-banner-success{background:var(--success-soft);border:1px solid color-mix(in srgb, var(--success) 30%, transparent)}.faq-banner-success svg{color:var(--success)}.faq-loading{color:var(--muted);font-size:13px}.faq-skeleton{gap:14px;margin-top:12px;display:grid}.faq-skeleton .skeleton{border-radius:var(--radius-lg)}.faq-status{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.faq-status .dot{width:6px;height:6px;box-shadow:none}.faq-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:20px;display:grid}.faq-fieldset{border:0;flex-direction:column;gap:12px;min-width:0;margin:0;padding:0;display:flex}.faq-fieldset:disabled{opacity:.7}.faq-page label{color:var(--text-2);flex-direction:column;gap:6px;font-size:13px;font-weight:550;display:flex}.faq-section{padding:18px}.faq-section-head h2{letter-spacing:-.015em;font-size:15px;font-weight:600}.faq-section-head p{color:var(--muted);margin-top:2px;font-size:13px}.faq-section .faq-section-head{margin-bottom:16px}.faq-entries-head{margin-top:12px}.faq-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;display:grid}.faq-entry{min-width:0;animation:enter var(--dur-slow) var(--ease-out) both;margin:0;padding:16px 18px 18px;position:relative}.faq-entry legend{float:left;color:var(--text);align-items:center;gap:10px;margin-bottom:14px;padding:0;font-size:13.5px;font-weight:600;display:flex}.faq-entry-number{border:1px solid var(--border-strong);background:var(--surface-2);font-variant-numeric:tabular-nums;min-width:24px;height:24px;color:var(--text-2);border-radius:7px;place-items:center;padding:0 6px;font-size:12px;display:grid}.faq-entry-fields{clear:both;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px 16px;display:grid}.faq-entry-answer{grid-column:1/-1}.app-main .faq-entry-id input{font-family:ui-monospace,SF Mono,Consolas,monospace;font-size:13px}.app-main .faq-entry .faq-remove{min-height:30px;color:var(--muted);background:0 0;border-color:#0000;gap:6px;padding:4px 10px;font-size:12.5px;position:absolute;top:12px;right:12px}.app-main .faq-entry .faq-remove:hover:enabled{background:var(--danger-soft);color:var(--danger);border-color:#0000}.app-main .faq-entry .faq-remove:disabled{opacity:.35}.faq-remove svg{width:14px;height:14px}.app-main button.faq-add{border:1px dashed var(--border-strong);border-radius:var(--radius-lg);min-height:48px;color:var(--text-2);background:0 0}.app-main button.faq-add:hover:enabled{background:var(--surface);color:var(--text);border-style:solid}.faq-add svg{width:16px;height:16px}.faq-publish{z-index:5;border:1px solid var(--border);border-radius:var(--radius-lg);background:color-mix(in srgb, var(--surface) 88%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:var(--shadow-md);transition:border-color var(--dur-base);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 16px;margin-top:4px;padding:12px 12px 12px 18px;display:flex;position:sticky;bottom:16px}.faq-publish.is-dirty{border-color:var(--border-strong)}.faq-page .faq-approval{color:var(--text);flex-direction:row;align-items:center;gap:2px}.faq-publish-hint{color:var(--muted);font-size:13px}.faq-publish button svg{width:15px;height:15px}.faq-history{padding:18px;position:sticky;top:24px}.faq-history h2{margin-bottom:14px;font-size:14px;font-weight:600}.faq-history ol{margin:0;padding:0;list-style:none}.faq-history li{flex-direction:column;gap:2px;padding:0 0 16px 22px;display:flex;position:relative}.faq-history li:before{content:"";border:2px solid var(--border-strong);background:var(--surface);border-radius:50%;width:9px;height:9px;position:absolute;top:6px;left:3px}.faq-history li:not(:last-child):after{content:"";background:var(--border);width:1px;position:absolute;top:19px;bottom:2px;left:7px}.faq-history li.is-current:before{border-color:var(--text);background:var(--text)}.faq-history-version{font-size:13.5px;font-weight:600}.faq-history-meta,.faq-history-empty{color:var(--muted);font-size:12.5px}@media (width<=1100px){.faq-layout{grid-template-columns:minmax(0,1fr)}.faq-history{position:static}}@media (width<=640px){.faq-grid,.faq-entry-fields{grid-template-columns:minmax(0,1fr)}.faq-entry{padding:14px}.app-main .faq-entry .faq-remove{float:right;margin:-4px -6px 0 0;position:static}.faq-publish{bottom:8px}.faq-publish button{width:100%}}.operational-reports{text-align:left;flex-direction:column;gap:14px;display:flex}.operational-reports .page-header{margin-bottom:10px}.operational-reports .page-header-actions button svg{width:16px;height:16px}.report-live:empty{display:none}.report-loading{color:var(--muted);font-size:13px}.report-failed{color:var(--text-2);align-items:center;gap:10px;padding:16px 18px;font-size:14px;display:flex}.report-failed svg{width:18px;height:18px;color:var(--warning);flex:none}.report-meta{color:var(--muted);flex-wrap:wrap;gap:6px 22px;font-size:12.5px;display:flex}.report-meta p{align-items:center;gap:7px;display:flex}.report-meta svg{flex:none;width:14px;height:14px}.report-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;display:grid}.report-grid>.report-card{grid-column:span 2}.report-grid>.report-card:nth-child(n+4){grid-column:span 3}.report-card{overflow-wrap:anywhere;min-width:0;transition:border-color var(--dur-base), box-shadow var(--dur-base) var(--ease-out);flex-direction:column;gap:14px;padding:18px;display:flex}.report-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}.report-card-head{align-items:center;gap:10px;display:flex}.report-card-head h2{letter-spacing:-.01em;color:var(--text-2);font-size:13.5px;font-weight:600}.report-icon{border:1px solid var(--border);background:var(--surface-2);width:30px;height:30px;color:var(--text-2);border-radius:9px;flex:none;place-items:center;display:grid}.report-danger .report-icon{color:var(--danger)}.report-icon svg{width:16px;height:16px}.report-total{letter-spacing:-.04em;font-variant-numeric:tabular-nums;align-items:baseline;gap:8px;font-size:34px;font-weight:650;line-height:1;display:flex}.report-total span{letter-spacing:0;color:var(--muted);font-size:12.5px;font-weight:500}.report-figures{flex-direction:column;margin:0;display:flex}.report-figures>div{border-top:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;font-size:13px;display:flex}.report-figures dt{color:var(--muted);align-items:center;gap:8px;display:flex}.report-figures dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:600}.report-figures>.report-hero{border-top:0;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding:0 0 12px}.report-hero dd{letter-spacing:-.04em;text-align:left;font-size:34px;font-weight:650;line-height:1}.report-hero dd.is-empty{letter-spacing:-.01em;color:var(--muted);font-size:15px;font-weight:550;line-height:1.3}.report-note{color:var(--muted);font-size:12.5px;line-height:1.5}.report-card .report-note:first-of-type{margin-top:auto}.report-ratio{border-radius:99px;gap:3px;height:6px;display:flex;overflow:hidden}.report-ratio-seg{transform-origin:0;min-width:6px;animation:grow .9s var(--ease-out) both .2s;border-radius:99px}.seg-0{background:var(--text)}.seg-1{background:var(--muted)}.report-swatch{border-radius:50%;width:7px;height:7px;display:inline-block}.report-coverage,.report-connection{color:var(--text-2);flex-direction:column;gap:10px;padding:18px;font-size:13.5px;display:flex}.report-coverage-alert{border-radius:var(--radius-sm);background:var(--warning-soft);color:var(--text);padding:10px 12px}.report-connection{padding:0;overflow:hidden}.report-connection .report-card-head{flex-wrap:wrap;gap:2px 12px;padding:16px 18px 12px}.report-connection .report-card-head p{color:var(--muted);font-size:12.5px}.report-connection .evolution-status{border-bottom:0;border-top:1px solid var(--border);padding:12px 18px}@media (width<=1180px){.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid>.report-card,.report-grid>.report-card:nth-child(n+4){grid-column:auto}}@media (width<=640px){.report-grid{grid-template-columns:minmax(0,1fr)}}.settings-card{flex-direction:column;gap:24px;max-width:640px;padding:24px;display:flex}.settings-title{font-size:16px}.settings-group{border:0;flex-direction:column;gap:10px;min-width:0;margin:0;padding:0;display:flex}.settings-label{color:var(--text-2);align-items:baseline;gap:8px;margin-bottom:10px;padding:0;font-size:13px;font-weight:600;display:flex}.settings-value{color:var(--muted);font-weight:500}.settings-hint{color:var(--muted);margin-top:-6px;font-size:13px}.settings-segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:min(100%,360px);padding:3px;display:inline-grid}.settings-segment{height:32px;color:var(--muted);cursor:pointer;transition:background-color var(--dur-fast) var(--ease-out), color var(--dur-fast);border-radius:7px;justify-content:center;align-items:center;gap:7px;font-size:13px;font-weight:550;display:inline-flex}.settings-segment svg{width:15px;height:15px}.settings-segment:hover{color:var(--text)}.settings-segment:has(input:checked){background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.settings-segment:has(input:focus-visible){box-shadow:var(--focus)}.accent-options{flex-wrap:wrap;gap:14px;display:flex}.accent-option{cursor:pointer;border-radius:50%;display:inline-grid}.accent-swatch{background:var(--swatch);width:32px;height:32px;color:var(--accent-fg);box-shadow:inset 0 0 0 1px var(--border-strong);transition:box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);border-radius:50%;place-items:center;display:grid}.accent-swatch svg{opacity:0;width:16px;height:16px;transition:opacity var(--dur-fast), transform var(--dur-base) var(--ease-out);transform:scale(.6)}.accent-option:hover .accent-swatch{transform:scale(1.06)}.accent-option:has(input:checked) .accent-swatch{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--swatch)}.accent-option:has(input:checked) .accent-swatch svg{opacity:1;transform:none}.accent-option:has(input:focus-visible) .accent-swatch{box-shadow:var(--focus)}.settings-preview{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--bg);flex-direction:column;gap:8px;padding:16px;display:flex}.settings-preview-label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:11px;font-weight:600}.preview-bubble{border:1px solid var(--border);max-width:78%;color:var(--text);border-radius:16px;padding:8px 12px;font-size:13.5px;line-height:1.45}.preview-guest{background:var(--bubble-in);border-bottom-left-radius:6px;align-self:flex-start}.preview-ai,.preview-admin{border-bottom-right-radius:6px;align-self:flex-end}.preview-ai{background:var(--bubble-ai)}.preview-admin{background:var(--bubble-admin);border-color:var(--bubble-admin-border)}.preview-author{color:var(--text-2);margin-bottom:2px;font-size:11.5px;font-weight:600;display:block}.preview-button{border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-fg);align-self:flex-end;margin-top:4px;padding:6px 14px;font-size:13px;font-weight:550}@media (width<=560px){.settings-card{padding:18px}.preview-bubble{max-width:92%}}
