:root{--ink:#202124;--muted:#6e7278;--line:#e6e7e9;--panel:#f7f7f8;--sidebar:#26222b;--sidebar-2:#332d38;--accent:#5c3d75;--accent-bright:#765394;--chat-bg:#f2f4f7;--message-user-bg:#dfeeff;--white:#fff}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:var(--ink);-webkit-font-smoothing:antialiased;background:#ecebed;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea{font:inherit}button{color:inherit}.app-shell{background:var(--white);grid-template-columns:292px minmax(0,1fr);width:100%;min-height:100vh;display:grid}.sidebar{color:#f8f4fa;background:linear-gradient(160deg, var(--sidebar-2), var(--sidebar));border-right:1px solid #19171c;flex-direction:column;min-width:0;height:100vh;display:flex}.workspace-header{border-bottom:1px solid #ffffff1a;align-items:center;gap:11px;height:72px;padding:13px 16px;display:flex}.workspace-mark{object-fit:contain;flex:none;width:38px;height:38px}.workspace-copy{flex-direction:column;min-width:0;display:flex}.workspace-copy strong{letter-spacing:-.01em;font-size:15px}.workspace-copy span{color:#bdb4c2;margin-top:2px;font-size:11px}.icon-button,.mini-button,.composer-tool,.more-button{cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.compose-button{color:#2f2833;background:#fff;border-radius:50%;width:34px;height:34px;margin-left:auto;text-decoration:none;position:relative}.sidebar-action-tooltip{z-index:30;color:#fff;white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none;background:#16131a;border-radius:5px;padding:6px 9px;font-size:11px;font-weight:500;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 4px 12px #00000040}.compose-button:hover .sidebar-action-tooltip,.compose-button:focus-visible .sidebar-action-tooltip,.new-chat-button:hover .sidebar-action-tooltip,.new-chat-button:focus-visible .sidebar-action-tooltip{visibility:visible;opacity:1}.debug-toggle{color:#ded6e1;border-radius:7px}.debug-toggle:hover{background:#ffffff17}.debug-toggle-active{color:#fff;background:var(--accent-bright)}.debug-toggle-active:hover{background:var(--accent-bright)}.mobile-close{display:none}.search-box{color:#bdb4c2;background:#ffffff17;border:1px solid #ffffff14;border-radius:7px;align-items:center;gap:8px;margin:14px 14px 8px;padding:8px 10px;display:flex}.search-box:focus-within{border-color:#ffffff4d}.search-box input{color:#fff;background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:13px}.search-box input::placeholder{color:#bdb4c2}.search-box kbd{color:#a9a0ad;white-space:nowrap;background:#00000026;border-radius:4px;padding:2px 5px;font:10px inherit}.chat-nav{flex:1;min-height:0;padding:13px 10px;overflow-y:auto}.nav-title{color:#c9c1cd;justify-content:space-between;align-items:center;padding:0 7px 8px;display:flex}.nav-title>span{text-transform:uppercase;letter-spacing:.07em;align-items:center;gap:5px;font-size:12px;font-weight:700;display:flex}.mini-button{color:#cec6d1;border-radius:5px;width:25px;height:25px}.mini-button:hover{background:#ffffff17}.new-chat-button{position:relative}.agent-list{flex-direction:column;gap:3px;display:flex}.agent-row{color:#ddd7e0;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:10px;width:100%;padding:9px;display:flex}.agent-row:hover{background:#ffffff12}.agent-row-active{color:#fff;background:var(--accent-bright)}.agent-row-active:hover{background:var(--accent-bright)}.agent-row>svg{opacity:0;margin-left:auto}.agent-row:hover>svg,.agent-row-active>svg{opacity:.65}.agent-row-copy{flex-direction:column;flex:1;min-width:0;display:flex}.agent-row-copy strong{font-size:13px}.agent-row-copy span{color:#aaa1ae;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:11px;overflow:hidden}.agent-row-active .agent-row-copy span{color:#e1d6e8}.empty-search{color:#9f96a3;padding:14px 9px;font-size:12px}.avatar{color:#fff;letter-spacing:.02em;border-radius:10px;flex:none;place-items:center;width:42px;height:42px;font-size:12px;font-weight:800;display:grid;position:relative}.avatar-small{border-radius:8px;width:34px;height:34px;font-size:10px}.presence{border:2px solid var(--sidebar-2);background:#8e9297;border-radius:50%;width:11px;height:11px;position:absolute;bottom:-2px;right:-2px}.presence-online{background:#47b882}.presence-away{background:#e3ac52}.sidebar-footer{background:#00000026;border-top:1px solid #ffffff14;align-items:center;gap:10px;padding:13px 16px;display:flex}.user-avatar{color:#fff;background:#a45a78;border-radius:8px;flex:none;place-items:center;width:34px;height:34px;font-size:10px;font-weight:800;display:grid}.sidebar-footer>span:nth-child(2){flex-direction:column;font-size:12px;display:flex}.sidebar-footer small{color:#aaa1ae;margin-top:2px;font-size:10px}.more-button{color:#ded6e1;margin-left:auto;font-size:11px}.more-button:hover{color:#fff;text-decoration:underline}.conversation{background:var(--chat-bg);flex-direction:column;min-width:0;height:100vh;display:flex}.conversation-header{z-index:2;border-bottom:1px solid var(--line);background:#fffffff5;flex:none;align-items:center;gap:12px;height:72px;padding:0 27px;display:flex;box-shadow:0 1px 5px #19191e09}.conversation-header .presence{display:none}.conversation-title{min-width:0}.conversation-title>div{align-items:center;gap:7px;display:flex}.conversation-title h1{letter-spacing:-.01em;margin:0;font-size:16px;line-height:1.2}.conversation-title p{color:var(--muted);margin:4px 0 0;font-size:11px}.status-dot{background:#999;border-radius:50%;width:7px;height:7px}.status-online{background:#3eae78}.status-away{background:#e0a544}.conversation-actions{align-items:center;gap:12px;margin-left:auto;display:flex}.header-relationship{flex-direction:column;gap:3px;min-width:0;display:flex;position:relative}.header-relationship label{color:var(--muted);white-space:nowrap;font-size:10px}.header-relationship select{color:#575b60;background:#fff;border:1px solid #dedfe1;border-radius:6px;width:160px;max-width:100%;padding:5px 7px;font-size:11px}.header-relationship-status{z-index:1;min-width:100%;color:var(--muted);border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:4px;padding:5px 7px;font-size:11px;position:absolute;top:100%;right:0;box-shadow:0 2px 6px #19191e14}.header-relationship-status.status-error{color:#c14545}.header-action{color:#575b60;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #dedfe1;border-radius:6px;align-items:center;gap:7px;padding:7px 11px;font-size:11px;font-weight:600;display:flex}.header-action:hover{background:#f7f7f8}.menu-button{display:none}.message-scroll{background:var(--chat-bg);scroll-behavior:smooth;flex:1;min-height:0;overflow-y:auto}.message-column{width:min(860px,100%);margin:0 auto;padding:45px 42px 28px}.conversation-intro{border-bottom:1px solid var(--line);padding:8px 0 28px}.conversation-intro .presence{border-color:#fff}.conversation-intro h2{letter-spacing:-.02em;margin:14px 0 6px;font-size:20px}.conversation-intro p{max-width:620px;color:var(--muted);margin:0;font-size:13px;line-height:1.55}.message{align-items:flex-start;gap:12px;padding:20px 0 3px;display:flex}.message-current-user{flex-direction:row-reverse;justify-content:flex-start}.message-current-user .message-body{background:var(--message-user-bg);border-color:#c9def4}.message-current-user .message-body p{text-align:left}.message-current-user .message-meta{justify-content:flex-end}.message-current-user .message-debug{text-align:left;margin-left:auto}.message .avatar{border-radius:8px;width:36px;height:36px;font-size:10px}.message .presence{display:none}.message-user-avatar{width:36px;height:36px}.message-body{background:var(--white);border:1px solid #e0e3e7;border-radius:12px;width:fit-content;min-width:0;max-width:72%;padding:10px 14px 11px;box-shadow:0 1px 2px #191e260a}.message-meta{align-items:baseline;gap:8px;display:flex}.message-meta strong{font-size:13px}.message-meta time{color:#91959a;font-size:10px}.message-body p{color:#35383c;overflow-wrap:anywhere;white-space:pre-wrap;margin:5px 0 0;font-size:13px;line-height:1.58}.typing-bubble{align-items:center;gap:5px;min-height:36px;padding:10px 14px;display:flex}.typing-dot{background:#8a6da0;border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite typing-pulse}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typing-pulse{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.typing-dot{opacity:.8;animation:none}}.message-debug{color:#565b62;background:#f7f7f8;border:1px solid #dedfe2;border-left:3px solid #8a6da0;border-radius:6px;width:min(540px,100%);margin-top:10px;padding:9px 11px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px}.message-debug-error{border-left-color:#cf5b5b}.message-debug-header{border-bottom:1px solid #e4e5e7;justify-content:space-between;align-items:center;gap:14px;padding-bottom:6px;display:flex}.message-debug-header strong{color:#33373c;text-transform:uppercase;letter-spacing:.08em;font-size:10px}.message-debug-header span{color:#85898f}.message-debug dl{gap:5px;margin:7px 0 0;display:grid}.message-debug dl>div{grid-template-columns:140px minmax(0,1fr);gap:8px;display:grid}.message-debug dt{color:#85898f}.message-debug dd{color:#3f4348;overflow-wrap:anywhere;margin:0}.message-debug-error dd{color:#a33d3d}.message-debug-breakdown{border-top:1px solid #e4e5e7;margin-top:8px;padding-top:8px}.empty-conversation{color:#a0a3a8;text-align:center;padding:50px 0}.empty-conversation svg{color:#b5a1c4}.empty-conversation h3{color:#55595e;margin:12px 0 5px;font-size:14px}.empty-conversation p{margin:0;font-size:12px}.composer-wrap{width:min(860px,100%);margin:0 auto;padding:12px 42px 20px}.composer{border:1px solid #cfd1d4;border-radius:9px;transition:border-color .15s,box-shadow .15s;overflow:hidden;box-shadow:0 2px 8px #1414190d}.composer:focus-within{border-color:#8a6da0;box-shadow:0 0 0 3px #704c8c17}.composer textarea{color:#292c30;resize:none;background:#fff;border:0;outline:0;width:100%;min-height:54px;max-height:150px;padding:15px 16px 8px;font-size:13px;line-height:1.45;display:block}.composer textarea::placeholder{color:#999da2}.composer-actions{justify-content:space-between;align-items:center;padding:5px 7px 7px 10px;display:flex}.composer-actions>div{gap:3px;display:flex}.composer-tool{color:#676b70;border-radius:5px;width:29px;height:29px}.composer-tool:hover{background:#f0f0f1}.send-button{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:6px;place-items:center;width:31px;height:29px;margin-left:auto;display:grid}.send-button:disabled{color:#a5a7aa;cursor:default;background:#ececee}.composer-hint{color:#9a9da1;text-align:right;margin:7px 2px 0;font-size:9px}.composer-hint strong{color:#72767b;font-weight:600}.sidebar-scrim{display:none}@media (max-width:760px){.app-shell{display:block}.sidebar{z-index:20;width:min(310px,86vw);transition:transform .2s;position:fixed;inset:0 auto 0 0;transform:translate(-102%);box-shadow:12px 0 35px #0003}.sidebar-open{transform:translate(0)}.sidebar-scrim{z-index:19;background:#19161c73;border:0;width:100%;display:block;position:fixed;inset:0}.compose-button{display:none}.mobile-close{color:#ded6e1;width:34px;height:34px;margin-left:auto;display:grid}.conversation-header{height:66px;padding:0 16px}.menu-button{color:#55595e;width:30px;height:34px;margin-left:-5px;display:grid}.conversation-header>.avatar{border-radius:8px;width:36px;height:36px}.conversation-actions{gap:6px}.header-relationship label{display:none}.header-relationship select{width:140px}.header-action{padding:7px;font-size:0}.message-column{padding:28px 20px 22px}.message-body{max-width:82%}.composer-wrap{padding:10px 14px 13px}.composer-hint{display:none}}.page-shell{background:#ecebed;min-height:100vh}.page-header{border-bottom:1px solid var(--line);background:#fffffff5;align-items:center;gap:12px;height:72px;padding:0 27px;display:flex;box-shadow:0 1px 5px #19191e09}.page-header h1{letter-spacing:-.01em;margin:0;font-size:16px}.page-header .nav-link{color:var(--accent);margin-left:auto;font-size:13px;font-weight:600;text-decoration:none}.page-header .nav-link:hover{text-decoration:underline}.page-body{flex-direction:column;gap:20px;width:min(760px,100%);margin:0 auto;padding:32px 24px 60px;display:flex}.card{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:20px 22px;box-shadow:0 2px 8px #1414190a}.card h2{letter-spacing:-.01em;margin:0 0 14px;font-size:14px}.card .card-hint{color:var(--muted);margin:-8px 0 14px;font-size:12px;line-height:1.5}.card-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.card-heading h2{margin:0}.btn-new-agent{align-items:center;gap:6px;padding:7px 12px;display:inline-flex}.btn-new-agent span{font-size:17px;font-weight:400;line-height:10px}.field-row{flex-wrap:wrap;gap:14px;margin-bottom:12px;display:flex}.field{flex-direction:column;flex:1;gap:5px;min-width:160px;display:flex}.field label{color:var(--muted);font-size:11.5px;font-weight:600}.field input,.field select,.field textarea{color:var(--ink);background:#fff;border:1px solid #cfd1d4;border-radius:7px;outline:0;padding:8px 10px;font-size:13px;transition:border-color .15s,box-shadow .15s}.field textarea{resize:vertical;min-height:84px;line-height:1.45}.field input:focus,.field select:focus,.field textarea:focus{border-color:#8a6da0;box-shadow:0 0 0 3px #704c8c17}.btn-primary{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:7px;padding:8px 16px;font-size:13px;font-weight:600}.btn-primary:hover{background:var(--accent-bright)}.btn-primary:disabled{color:#a5a7aa;cursor:default;background:#ececee}.btn-secondary{color:#55595e;cursor:pointer;background:#fff;border:1px solid #cfd1d4;border-radius:7px;padding:8px 16px;font-size:13px;font-weight:600}.btn-secondary:hover{background:#f7f7f8}.modal-backdrop{z-index:50;background:#19161c85;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal-card{background:var(--white);border:1px solid var(--line);border-radius:11px;width:min(680px,100%);max-height:calc(100vh - 48px);padding:20px 22px 22px;overflow-y:auto;box-shadow:0 18px 55px #14141933}.modal-heading{align-items:center;gap:16px;margin-bottom:18px;display:flex}.modal-heading h2{letter-spacing:-.01em;margin:0;font-size:16px}.modal-close{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;margin-left:auto;padding:0;font-size:24px;line-height:1;display:grid}.modal-close:hover{color:var(--ink);background:var(--panel)}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.profile-main-stats{margin-bottom:18px}.profiles-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.profiles-heading h3{margin:0;font-size:13px}.profiles-heading p{color:var(--muted);margin:3px 0 0;font-size:11.5px}.profile-list{flex-direction:column;gap:10px;margin-bottom:16px;display:flex}.profile-card{border:1px solid var(--line);border-radius:8px;min-width:0;margin:0;padding:12px 14px}.profile-card legend{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:0 5px;font-size:10.5px;font-weight:700}.profile-card-heading{align-items:flex-end;gap:12px;margin-bottom:12px;display:flex}.profile-card-heading .field{max-width:260px}.profile-test-button{color:var(--accent);cursor:pointer;background:#f7f3fa;border:1px solid #d8cde0;border-radius:6px;margin-left:auto;padding:5px 9px;font-size:11px;font-weight:600}.profile-test-button:hover{background:#eee5f3}.profile-card-heading .profile-remove{margin-left:0}.profile-card input:disabled{color:#777b80;background:#f2f2f3}.profile-remove{color:#b34848;cursor:pointer;background:0 0;border:0;margin:0 0 8px auto;padding:0;font-size:11.5px;font-weight:600}.profile-remove:hover{text-decoration:underline}.profile-rules-heading{justify-content:space-between;align-items:center;gap:12px;margin:14px 0 8px;display:flex}.profile-rules-heading h4{margin:0;font-size:12px}.profile-rules-heading p{color:var(--muted);margin:3px 0 0;font-size:11px}.profile-rules-heading .btn-secondary{flex:none;padding:6px 10px;font-size:11px}.profile-rules-heading .btn-secondary:disabled{color:#a5a7aa;cursor:default;background:#ececee}.profile-rule{border:1px solid var(--line);background:#faf9fb;border-radius:7px;margin-top:8px;padding:11px}.profile-rule-heading{justify-content:space-between;align-items:center;margin-bottom:9px;font-size:11.5px;display:flex}.profile-rule-heading button{color:#b34848;cursor:pointer;background:0 0;border:0;padding:0;font-size:11px;font-weight:600}.profile-rule .field{margin-bottom:9px}.rule-values{border:1px solid var(--line);background:#fff;border-radius:6px;max-height:150px;padding:4px;overflow-y:auto}.rule-value{color:var(--ink);cursor:pointer;align-items:flex-start;gap:7px;padding:5px 6px;font-size:11.5px;display:flex}.rule-value:hover{background:#f7f3fa}.rule-value input{accent-color:var(--accent);flex:none;margin:1px 0 0}.rule-value span{overflow-wrap:anywhere;min-width:0}.rule-value small{color:var(--muted);font-size:10px;display:block}.rule-values .card-hint{margin:6px}.profile-test-backdrop{z-index:60}.profile-test-modal{width:min(560px,100%)}.profile-test-values{gap:10px;margin-bottom:20px;display:grid}.profile-test-values section{border:1px solid var(--line);background:#faf9fb;border-radius:7px;padding:11px 12px}.profile-test-values h3,.profile-test-result h3{margin:0 0 9px;font-size:12px}.profile-test-values h3 span{color:var(--muted);font-weight:400}.profile-test-values dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;display:grid}.profile-test-values dt{color:var(--muted);font-size:11px}.profile-test-values dd{margin:2px 0 0;font-size:12px;font-weight:600}.profile-test-modal form{gap:14px;display:grid}.profile-test-tone-control{background:#fff;border:1px solid #cfd1d4;border-radius:7px;flex-wrap:wrap;align-items:center;gap:5px;min-height:39px;padding:5px;display:flex}.profile-test-tone-control:focus-within{border-color:var(--accent)}.profile-test-tone-chip{max-width:100%;color:var(--accent);overflow-wrap:anywhere;background:#f1eaf6;border-radius:5px;align-items:center;gap:4px;padding:4px 6px 4px 9px;font-size:11.5px;display:inline-flex}.profile-test-tone-chip button{width:16px;height:16px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:3px;flex:none;place-items:center;padding:0;font-size:15px;line-height:1;display:grid}.profile-test-tone-chip button:hover{background:#e2d3eb}.profile-test-tone-chip button:disabled{opacity:.5;cursor:default}.profile-test-tone-trigger{min-height:27px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;flex:1 0 110px;justify-content:space-between;align-items:center;padding:3px 5px;font-size:12px;display:flex}.profile-test-tone-trigger:hover{background:#f7f3fa}.profile-test-tone-trigger:disabled{color:var(--muted);cursor:default}.profile-test-tone-trigger span{color:var(--muted);font-size:17px;line-height:1}.profile-test-tone-menu{border:1px solid var(--line);background:#fff;border-radius:7px;margin-top:5px;padding:7px}.profile-test-tone-menu input[type=search]{width:100%;margin-bottom:6px}.profile-test-tone-options{max-height:175px;overflow-y:auto}.profile-test-tone-options label{cursor:pointer;align-items:center;gap:8px;padding:5px 4px;font-size:12px;display:flex}.profile-test-tone-options label:hover{background:#f7f3fa}.profile-test-tone-options input{width:auto;margin:0}.profile-test-result{background:#f7f3fa;border:1px solid #ded1e7;border-radius:7px;padding:11px 12px}.profile-test-result ol{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.profile-test-result li{color:var(--accent);background:#fff;border:1px solid #ded1e7;border-radius:999px;padding:4px 8px;font-size:11px}.profile-test-result p{color:var(--muted);margin:0;font-size:12px}.profile-test-all-result{background:#f7f3fa;border:1px solid #ded1e7;border-radius:7px;padding:11px 12px}.profile-test-all-result h3{margin:0;font-size:12px}.profile-test-all-result .card-hint{margin:5px 0 9px}.profile-test-all-table{background:#fff;border-radius:5px;max-height:260px;overflow:auto}.profile-test-all-table table{border-collapse:collapse;text-align:left;width:100%;font-size:11.5px}.profile-test-all-table th,.profile-test-all-table td{border-bottom:1px solid var(--line);vertical-align:top;padding:7px 9px}.profile-test-all-table thead th{background:#fff;position:sticky;top:0}.profile-test-all-table tbody th{width:35%;font-weight:600}.profile-test-all-table .status-error{color:#c14545}.entity-list{flex-direction:column;gap:2px;display:flex}.entity-row{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:8px 0;font-size:13px;display:flex}.entity-row:last-child{border-bottom:0}.entity-agent-identity{overflow-wrap:anywhere;flex-direction:column;flex:0 180px;gap:3px;min-width:130px;display:flex}.entity-owner{color:var(--muted);font-size:11px;font-weight:400}.entity-row .entity-meta{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;font-size:11.5px}.entity-edit{color:var(--accent);cursor:pointer;background:#fff;border:1px solid #d8cde0;border-radius:6px;margin-left:auto;padding:4px 9px;font-size:11.5px;font-weight:600}.entity-edit:hover{background:#f7f3fa}.modal-loading{color:var(--muted);text-align:center;margin:28px 0;font-size:13px}.modal-card .card-hint{color:var(--muted);font-size:11.5px;line-height:1.4}.status-line{color:var(--muted);margin:10px 0 0;font-size:12px}.status-line.status-error{color:#c14545}.retry-message{border:1px solid;border-radius:8px;width:min(860px,100% - 28px);margin:8px auto;padding:10px 12px}.retry-message button{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0 2px;text-decoration:underline}.retry-message button:disabled{cursor:wait;opacity:.6}@media (max-width:560px){.modal-backdrop{align-items:end;padding:12px}.modal-card{max-height:calc(100vh - 24px);padding:18px}.profiles-heading{align-items:flex-end}}.avatar-cluster{flex:none;width:34px;height:34px;position:relative}.avatar-cluster .avatar-small{border:2px solid var(--sidebar-2);width:24px;height:24px;font-size:9px;position:absolute}.avatar-cluster .avatar-small:first-child{z-index:3;top:0;left:0}.avatar-cluster .avatar-small:nth-child(2){z-index:2;top:6px;left:11px}.avatar-cluster .avatar-small:nth-child(3){z-index:1;top:12px;left:22px}.avatar-cluster-overflow{z-index:1;color:#ded6e1;border:2px solid var(--sidebar-2);background:#4a4350;border-radius:50%;place-items:center;width:24px;height:24px;font-size:8px;font-weight:700;display:grid;position:absolute;top:12px;left:22px}.new-chat-panel{flex-direction:column;gap:10px;padding:4px 7px 10px;display:flex}.new-chat-panel label{color:#c9c1cd;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;font-size:11px;font-weight:600;display:block}.new-chat-panel input[type=text]{color:#fff;background:#ffffff17;border:1px solid #ffffff1f;border-radius:6px;outline:0;width:100%;padding:7px 9px;font-size:13px}.new-chat-panel input[type=text]::placeholder{color:#9d94a1}.new-chat-panel input[type=text]:focus{border-color:#ffffff59}.new-chat-panel .chat-mode-check{color:#ddd7e0;text-transform:none;letter-spacing:0;cursor:pointer;align-items:center;gap:8px;margin:0;font-size:12.5px;display:flex}.chat-mode-check input{flex:none;margin:0}.new-chat-mode{align-items:center;gap:6px;display:flex}.new-chat-mode .chat-mode-help-text{top:auto;bottom:calc(100% + 7px)}.agent-checklist{flex-direction:column;gap:4px;max-height:160px;display:flex;overflow-y:auto}.agent-checklist label{color:#ddd7e0;text-transform:none;letter-spacing:0;border-radius:5px;align-items:center;gap:7px;margin:0;padding:5px 6px;font-size:12.5px;font-weight:400;display:flex}.agent-checklist label:hover{background:#ffffff0f}.new-chat-actions{gap:8px;display:flex}.new-chat-actions button{cursor:pointer;border-radius:6px;flex:1;padding:7px;font-size:12px;font-weight:600}.new-chat-actions .btn-create{color:#2f2833;background:#fff;border:0}.new-chat-actions .btn-create:disabled{color:#b7aebc;cursor:default;background:#e4dfe6}.new-chat-actions .btn-cancel{color:#ddd7e0;background:0 0;border:1px solid #ffffff26}.reply-request-row{flex-wrap:wrap;gap:6px;width:min(860px,100%);margin:0 auto;padding:0 42px 8px;display:flex}.pill-button{color:#4d3d63;cursor:pointer;background:#eee7f4;border:1px solid #e0d4ec;border-radius:999px;padding:5px 11px;font-size:11.5px;font-weight:600}.pill-button:hover{background:#e6dbf1}.pill-button:disabled{color:#a5a7aa;cursor:default;background:#ececee;border-color:#ececee}.send-as-select{color:#575b60;background:#fff;border:1px solid #dedfe1;border-radius:6px;padding:6px 8px;font-size:11.5px;font-weight:600}.message-tone{color:#8a6da0;font-size:10px}.message-actions{align-items:center;gap:4px;margin-left:6px;display:inline-flex}.message-action-btn{color:var(--muted);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:3px;padding:2px 7px;font-size:10px;display:inline-flex}.message-action-btn:hover{color:var(--ink);background:var(--panel)}.message-action-btn:disabled{opacity:.45;cursor:default}.message-delete-btn:hover{color:#a33d3d;background:#fff4f4;border-color:#ebcccc}.message-edit-form{align-items:flex-start;gap:6px;margin-top:5px;display:flex}.message-edit-form textarea{resize:vertical;border:1px solid #cfd1d4;border-radius:6px;flex:1;min-width:0;min-height:90px;padding:6px 8px;font-size:12.5px;line-height:1.5}.message-edit-form button{cursor:pointer;border-radius:6px;padding:6px 10px;font-size:11px;font-weight:600}.details-scrim{z-index:24;background:#19161c59;border:0;width:100%;position:fixed;inset:0}.details-drawer{z-index:25;border-left:1px solid var(--line);background:#fff;flex-direction:column;width:min(420px,92vw);transition:transform .2s;display:flex;position:fixed;top:0;bottom:0;right:0;transform:translate(102%);box-shadow:-12px 0 35px #0000001f}.details-drawer-open{transform:translate(0)}.details-drawer-header{border-bottom:1px solid var(--line);flex:none;align-items:center;gap:10px;height:60px;padding:0 16px;display:flex}.details-drawer-header h2{margin:0;font-size:14px}.details-drawer-header button{margin-left:auto}.details-drawer-body{flex:1;min-height:0;padding:16px;overflow-y:auto}.detail-list dt{text-transform:uppercase;letter-spacing:.04em;color:var(--accent);margin-top:12px;font-size:10.5px;font-weight:700}.detail-list dt:first-child{margin-top:0}.detail-list dd{color:#35383c;margin:3px 0 0;font-size:12.5px;line-height:1.5}.detail-list .detail-agent-background{white-space:pre-wrap;overflow-wrap:anywhere}.detail-section{margin-top:22px}.detail-section:first-child{margin-top:0}.detail-section h3{text-transform:uppercase;letter-spacing:.05em;color:var(--ink);border-bottom:1px solid var(--line);margin:0 0 10px;padding-bottom:6px;font-size:12px;font-weight:700}.personality-details{gap:10px;display:grid}.personality-empty{color:var(--muted);margin:0;font-size:12px}.personality-profile{border:1px solid var(--line);background:#faf9fb;border-radius:8px;min-width:0;padding:11px 12px}.personality-profile h4{color:var(--ink);overflow-wrap:anywhere;margin:0 0 9px;font-size:12px}.personality-profile h5{color:var(--accent);text-transform:uppercase;letter-spacing:.04em;margin:12px 0 6px;font-size:10.5px}.personality-profile h5 span{color:var(--muted);letter-spacing:normal;text-transform:none;font-weight:400}.personality-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:0;display:grid}.personality-values div{min-width:0}.personality-values dt{color:var(--muted);font-size:10.5px}.personality-values dd{color:var(--ink);margin:2px 0 0;font-size:12px;font-weight:600}.personality-rules{gap:7px;margin:0;padding:0;list-style:none;display:grid}.personality-rules li{overflow-wrap:anywhere;gap:2px;font-size:11px;display:grid}.personality-rules strong{color:var(--muted);font-weight:600}.personality-rules span{color:var(--ink)}.detail-section-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px;display:flex}.detail-section-heading h3{border-bottom:0;margin:0}.detail-section-action{color:var(--accent);cursor:pointer;background:0 0;border:0;font-size:11px;font-weight:700}.detail-section-action:disabled{color:var(--muted);cursor:default}.chat-settings-form,.chat-agent-add-form{flex-direction:column;gap:10px;display:flex}.chat-settings-mode{cursor:pointer;align-items:center;gap:8px;font-size:12.5px;display:flex}.chat-settings-mode input{margin:0}.chat-mode-detail-label{align-items:center;gap:6px;display:flex}.chat-mode-help{flex:none;align-items:center;display:inline-flex;position:relative}.chat-mode-help button{width:17px;height:17px;color:var(--accent);cursor:help;background:#f1ebf5;border:1px solid #d8cde0;border-radius:50%;padding:0;font-size:11px;font-weight:700;line-height:1}.chat-mode-help button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-mode-help-text{z-index:30;color:#33373c;border:1px solid var(--line);letter-spacing:normal;text-transform:none;visibility:hidden;opacity:0;pointer-events:none;background:#fff;border-radius:7px;width:min(260px,100vw - 32px);padding:10px 12px;font-size:11.5px;font-weight:400;line-height:1.45;position:absolute;top:calc(100% + 7px);left:-130px;box-shadow:0 8px 24px #1414192e}.chat-mode-help:hover .chat-mode-help-text,.chat-mode-help:focus-within .chat-mode-help-text,.chat-mode-help-open .chat-mode-help-text{visibility:visible;opacity:1}.chat-settings-actions{gap:8px;display:flex}.chat-settings-actions button{flex:1}.relationship-description{color:var(--muted);margin:0 0 12px;font-size:11.5px}.relationship-fields{flex-direction:column;gap:12px;display:flex}.relationship-field{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);align-items:center;gap:6px 10px;display:grid}.relationship-field label{overflow-wrap:anywhere;min-width:0}.relationship-field select{width:100%;min-width:0}.relationship-status{color:var(--muted);grid-column:1/-1;font-size:11px}.relationship-status.status-error{color:#c14545}.memory-tabs{background:#f2f2f3;border-radius:9px;gap:6px;margin:16px 0 10px;padding:4px;display:flex}.memory-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:7px 4px;font-size:12px}.memory-tabs button.active{color:var(--accent);background:#fff;box-shadow:0 1px 4px #00000014}.progress-track{background:var(--line);border-radius:4px;height:6px;margin-bottom:5px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:4px;height:100%;transition:width .25s}.progress-fill.ready{background:#3fb87f}.progress-label{color:var(--muted);margin-bottom:12px;font-size:11px}.progress-label strong{color:var(--ink)}.memory-block{font-size:12.5px;line-height:1.55}.memory-details summary{border-bottom:1px solid var(--line);color:var(--ink);text-transform:uppercase;letter-spacing:.05em;cursor:pointer;justify-content:space-between;align-items:center;gap:10px;padding-bottom:6px;font-size:12px;font-weight:700;list-style:none;display:flex}.memory-details summary::-webkit-details-marker{display:none}.memory-details summary:after{content:"⌄";color:var(--muted);flex:none;font-size:17px;line-height:1;transition:transform .15s}.memory-details[open] summary:after{transform:rotate(180deg)}.memory-details summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.memory-details .memory-block{padding-top:10px}.memory-block h4{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:12px 0 3px;font-size:11px}.memory-block h4:first-child{margin-top:0}.memory-block ul{margin:0;padding-left:18px}.episode-card{border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.episode-card:last-child{border-bottom:0}.public-shell{color:#28212f;background:radial-gradient(circle at 75% 12%,#f9dfca 0,#0000 32%),linear-gradient(145deg,#f9f5f8,#efebf2 62%,#f8eee8);min-height:100vh}.public-header{justify-content:space-between;align-items:center;width:min(1160px,100%);margin:0 auto;padding:24px 32px;display:flex}.public-brand{color:#35283e;letter-spacing:-.03em;align-items:center;gap:10px;font-size:19px;font-weight:800;text-decoration:none;display:inline-flex}.public-brand img{object-fit:contain}.public-hero{grid-template-columns:minmax(0,1fr) minmax(320px,.82fr);align-items:center;gap:72px;width:min(1160px,100%);min-height:570px;margin:0 auto;padding:56px 32px 85px;display:grid}.public-eyebrow{color:#8e5471;letter-spacing:.16em;text-transform:uppercase;font-size:11px;font-weight:800;display:inline-block}.public-hero h1{letter-spacing:-.055em;max-width:680px;margin:16px 0 20px;font-size:clamp(44px,5.5vw,72px);line-height:1.06}.public-hero-copy>p:not(.public-note):not(.public-error){color:#605868;max-width:510px;font-size:17px;line-height:1.6}.public-hero-actions{flex-wrap:wrap;gap:12px;margin-top:28px;display:flex}.public-primary,.public-secondary{cursor:pointer;border-radius:9px;justify-content:center;align-items:center;min-height:44px;padding:11px 18px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}.public-primary{color:#fff;background:#674079;border:1px solid #674079}.public-primary:hover{background:#7a508e}.public-primary:disabled,.public-secondary:disabled{opacity:.6;cursor:default}.public-secondary{color:#60436e;background:#fff;border:1px solid #d9ccdf}.public-secondary:hover{background:#fbf8fc}.public-note{color:#81778a;margin-top:16px;font-size:12px}.public-error{color:#b2344b;font-size:12px}.public-waitlist{background:#fff;border:1px solid #e8dfe9;border-radius:18px;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);align-items:center;gap:48px;width:min(1096px,100% - 64px);margin:0 auto 70px;padding:38px 42px;display:grid;box-shadow:0 8px 32px #462d500d}.public-waitlist h2{letter-spacing:-.035em;margin:10px 0;font-size:29px}.public-waitlist p{color:#6f6675;max-width:460px;font-size:13px;line-height:1.55}.public-waitlist label,.login-card label{color:#514758;margin-bottom:7px;font-size:11px;font-weight:700;display:block}.public-waitlist-row{gap:8px;display:flex}.public-waitlist input,.login-card input{color:#29212e;background:#fff;border:1px solid #d5ced9;border-radius:8px;width:100%;min-width:0;padding:11px 12px;font-size:13px}.public-waitlist-row button{color:#fff;cursor:pointer;background:#674079;border:0;border-radius:8px;flex:none;padding:0 15px;font-size:12px;font-weight:700}.public-waitlist-row button:disabled{opacity:.6;cursor:default}.public-waitlist .public-form-message{color:#5c3d75;margin:8px 0 0;font-size:11px}.public-footer{color:#8b8190;text-align:center;padding:0 32px 28px;font-size:11px}.login-card{background:#fff;border:1px solid #e5dce8;border-radius:16px;width:min(420px,100%);padding:34px;box-shadow:0 20px 70px #482d541f}.public-login-card{justify-self:end}.login-card h2{letter-spacing:-.035em;margin:10px 0 8px;font-size:26px}.login-card>p{color:#726878;font-size:13px;line-height:1.5}.login-card form{flex-direction:column;margin-top:23px;display:flex}.login-card form label:not(:first-child){margin-top:15px}.login-card form .public-primary{width:100%;margin-top:22px}.login-card .login-waitlist{text-align:center;margin:20px 0 0;font-size:12px}.login-waitlist a{color:#674079;font-weight:700}.guest-name-backdrop{z-index:100;background:#1e162380;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.guest-name-dialog{background:#fff;border-radius:16px;width:min(380px,100%);padding:28px;box-shadow:0 24px 70px #1e162340}.guest-name-dialog h2{letter-spacing:-.03em;margin:0 0 20px;font-size:22px}.guest-name-dialog label{color:#514758;margin-bottom:8px;font-size:12px;font-weight:700;display:block}.guest-name-dialog input{color:#29212e;background:#fff;border:1px solid #d5ced9;border-radius:8px;width:100%;padding:11px 12px;font-size:14px}.guest-name-dialog .public-error{margin:9px 0 0}.guest-name-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.guest-quota-panel{margin:22px 0 18px}.get-more-description{color:#6f6675;margin:-6px 0 20px;font-size:13px;line-height:1.55}.guest-name-dialog .public-form-message{color:#5c3d75;margin:10px 0 0;font-size:12px}.text-action{color:#674079;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.content-limit-error{color:#c14545;font-size:12px}@media (max-width:760px){.public-header{padding:18px 20px}.public-hero{grid-template-columns:1fr;gap:36px;min-height:0;padding:58px 24px 62px}.public-login-card{justify-self:start}.public-waitlist{grid-template-columns:1fr;gap:22px;width:calc(100% - 32px);padding:28px 22px}}@media (max-width:430px){.public-hero h1{font-size:43px}.public-waitlist-row{flex-direction:column}.public-waitlist-row button{min-height:42px}}.episode-card .episode-meta{color:var(--muted);margin-top:3px;font-size:10.5px}
