:root{--ink:#20283b;--muted:#788095;--accent:#6159d9;--accent-hover:#5048c0;--line:#e8eaf1;--surface:#fff;--canvas:#f7f8fb;--sidebar:#f0f2f8;--danger:#b44a48;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button,input,textarea,a{ -webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #aca7f0;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}button{border:0}input,textarea,select{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}input,select{width:100%;min-width:0;max-width:100%;padding:13px 15px;min-height:48px}label{display:block;font-size:13px;font-weight:650;margin:24px 0 9px}input::placeholder,textarea::placeholder{color:#9a9eae}.muted{color:var(--muted);font-size:13px}.primary{background:var(--accent);color:white;border-radius:10px;font-weight:650;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:46px}.primary:hover:enabled{background:var(--accent-hover)}.brand{display:flex;align-items:center;gap:12px;font-size:29px;font-weight:750;letter-spacing:-1.1px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent);color:white;font-size:32px;line-height:1;font-weight:700;padding-bottom:4px;letter-spacing:-2px}.brand-dot{color:var(--accent)}.welcome{display:grid;grid-template-columns:1.05fr 1fr;min-height:100svh;max-width:1600px;margin:auto}.welcome-copy{padding:55px clamp(36px,6vw,100px) 32px;position:relative;overflow:hidden;background:linear-gradient(155deg,#f1f0fc,#eef2fa 70%,#f3f6fc)}.welcome-heading{margin-top:76px}.eyebrow,.tiny-label,.edition,.nav-label{font-size:10px;letter-spacing:1.7px;font-weight:750;color:#8a8eaa}.welcome h1{font-size:clamp(35px,4vw,57px);line-height:1.14;letter-spacing:-2px;font-weight:660;margin:19px 0 23px}.welcome-heading p{font-size:16px;line-height:1.85;color:#777d95;max-width:345px}.orbit{height:265px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:34px;margin-top:25px}.orbit-ring{height:154px;width:250px;position:relative;border:1px solid #d9dceb;border-radius:50%;transform:rotate(-12deg)}.orbit-center{position:absolute;left:95px;top:45px;transform:rotate(12deg);background:white;box-shadow:0 9px 25px #6d6bad15;border:1px solid #e7e6f8;border-radius:22px;width:65px;height:65px;color:var(--accent);font-size:49px;font-weight:750;text-align:center;line-height:1.1}.orbit-node{position:absolute;display:grid;place-items:center;transform:rotate(12deg);height:47px;min-width:62px;padding:0 14px;border-radius:16px;background:white;border:1px solid #e1e3ef;font-size:12px;color:#777b9a;font-weight:650;box-shadow:0 5px 20px #6d6bad09}.node-one{top:5px;left:-10px}.node-two{top:0;right:-12px;color:#7563b4}.node-three{bottom:-17px;left:96px;color:#569584}.orbit-note{color:#9a9caf;font-size:11px;letter-spacing:.5px}.welcome-foot{font-size:11px;color:#9c9daf;margin-top:10px}.entry-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 32px;background:#fff}.entry-card{width:100%;max-width:365px}.small-mark{display:grid;place-items:center;background:#f2f0fd;color:var(--accent);height:46px;width:46px;border-radius:15px;font-size:25px;margin-bottom:25px}.entry-card h2{font-size:30px;letter-spacing:-1px;margin-bottom:10px;font-weight:650}.entry-card>.muted{font-size:14px;margin-bottom:35px}.entry-card .primary{width:100%;margin-top:28px;justify-content:space-between}.privacy-note{font-size:11px;color:#9a9eb1;line-height:1.7;margin:19px 0;display:flex;gap:9px}.privacy-note span{font-size:15px}.entry-help{margin-top:43px;color:#999eaf;font-size:11px;text-align:center}.form-error{color:var(--danger);font-size:12px;line-height:1.6;margin-top:16px}
.app{height:100svh;display:grid;grid-template-columns:252px minmax(0,1fr);max-width:1800px;margin:auto;background:#fff}.sidebar{background:var(--sidebar);display:flex;flex-direction:column;padding:26px 20px 18px;border-right:1px solid #e7e9f2;min-width:0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;margin:0 4px 39px}.sidebar .brand{font-size:25px;gap:10px}.sidebar .brand-mark{width:33px;height:33px;border-radius:10px;font-size:27px}.edition{font-size:8px;letter-spacing:1.3px;padding:4px 7px;background:#e7e9f2;border-radius:5px;color:#9398ad}.workspace{display:flex;align-items:center;gap:12px;padding:13px 12px;border:1px solid #e1e4ee;border-radius:11px;margin-bottom:35px;background:#f8f9fc}.workspace-icon{height:33px;width:33px;background:#e7e6f6;display:grid;place-items:center;border-radius:9px;color:#7771bc;font-size:20px}.workspace>div{min-width:0}.tiny-label{font-size:8px;letter-spacing:1px;display:block;margin-bottom:5px;color:#a0a4b8}.workspace strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis}.nav-label{display:flex;justify-content:space-between;align-items:center;padding:0 11px;font-size:9px;letter-spacing:1.4px;margin-bottom:10px}.icon-button{color:#989db0;background:transparent;border-radius:7px;min-height:34px;min-width:34px;font-size:20px;display:inline-grid;place-items:center;padding:4px}.icon-button:hover:enabled{background:#e6e7f2;color:var(--ink)}.rooms{display:flex;flex-direction:column;gap:5px;overflow-y:auto}.room{display:flex;align-items:center;gap:10px;background:transparent;text-align:left;padding:12px 13px;width:100%;border-radius:9px;font-size:12px;color:#7f849d;min-width:0}.room .hash{font-size:18px;color:#a6aac0}.room .room-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room[aria-current=page]{background:#e5e3f7;color:var(--accent);font-weight:650}.room[aria-current=page] .hash{color:#8f88d7}.room:hover{background:#e9e9f4}.sidebar-note{margin:auto 9px 30px;color:#a4a8bc;display:flex;gap:10px;padding-top:40px}.sidebar-note span{color:#afa9d8;font-size:18px}.sidebar-note p{font-size:10px;line-height:1.8;max-width:145px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid #e0e3ee;padding-top:17px}.profile-name{min-width:0;flex:1}.profile-name strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis}.profile-name>span{font-size:10px;color:#a0a5b7;display:block;margin-top:4px}
.conversation{display:flex;flex-direction:column;min-width:0;height:100%;background:#fff}.conversation-head{height:87px;flex:none;padding:0 36px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.group-icon{display:grid;place-items:center;height:38px;width:38px;border-radius:11px;background:#f1effb;color:#a29acb;font-size:24px;flex:none}.heading-text{min-width:0;flex:1}.heading-text h1{font-size:18px;font-weight:650;letter-spacing:-.25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-text .muted{display:block;font-size:10px;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:18px}.connection{display:flex;align-items:center;gap:6px;color:#92a09c;font-size:10px;white-space:nowrap}.status-dot{width:5px;height:5px;border-radius:50%;background:#7cbba3}.connection[data-state=error]{color:#bd9996}.connection[data-state=error] .status-dot{background:#bf9c94}.connection[data-state=paused] .status-dot{background:#c6c7d4}.quiet-button{background:transparent;border:1px solid var(--line);border-radius:8px;font-size:10px;min-height:33px;padding:7px 12px;color:#8c91a5}.quiet-button:hover{border-color:#b5b1df;color:var(--accent)}.history{flex:1;min-height:0;overflow-y:auto;padding:28px 36px 12px;scroll-behavior:smooth}.empty-state{height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:40px 20px}.empty-symbol{background:#f5f3fd;color:#b4a9df;width:62px;height:62px;border-radius:21px;display:grid;place-items:center;font-size:30px;margin-bottom:4px}.empty-state h2{font-size:18px;font-weight:550;letter-spacing:-.4px;color:#767b95}.empty-state p{font-size:12px;max-width:295px;line-height:1.8;color:#a1a5b7}.history-tools{padding:8px 36px;display:flex;align-items:center;gap:18px;font-size:10px;min-height:32px}.history-tools>.muted{font-size:9px;margin-right:auto}.text-button{background:transparent;color:#a2a1b9;padding:4px 0;font-size:10px}.text-button:hover{color:var(--accent)}.composer-wrap{padding:9px 36px 17px;background:#fff;flex:none}.composer-foot{font-size:9px;color:#bec1d0;text-align:center;margin-top:12px;letter-spacing:.1px}.notice{max-width:920px;margin:0 auto 10px;background:#f6f5fc;border:1px solid #ebe8f7;border-radius:8px;padding:11px 14px;font-size:11px;line-height:1.65;color:#9285b1}.notice[data-state=error]{background:#fcf5f4;border-color:#f3e6e4;color:#ab7974}.reply-preview{max-width:920px;margin:0 auto 8px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-left:3px solid #b4a7df;padding:2px 12px;color:#a196b7;font-size:11px}.reply-preview>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dialog{border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 100px #20283b25;padding:30px;width:min(430px,calc(100% - 36px));color:var(--ink)}dialog::backdrop{background:#20283b30;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:21px;letter-spacing:-.5px;font-weight:600}.dialog-form .primary{margin-top:24px;width:100%}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#34334d;color:#eeeef7;padding:12px 20px;border-radius:10px;box-shadow:0 10px 30px #20283b20;font-size:12px;max-width:calc(100% - 30px);z-index:10;text-align:center}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mobile-only{display:none}
@media (max-width:1000px){.app{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:24px 15px 18px}.conversation-head{padding:0 24px}.history{padding:25px 24px 12px}.composer-wrap{padding:9px 24px 15px}.history-tools{padding:8px 24px}.header-actions{gap:10px}.connection{display:none}.welcome-copy{padding:40px}.welcome h1{font-size:40px}.welcome-heading{margin-top:60px}}
@media (max-width:700px){.welcome{grid-template-columns:1fr}.welcome-copy{padding:25px 26px 32px}.welcome-heading{margin-top:30px}.welcome h1{font-size:clamp(26px,8.8vw,35px);letter-spacing:-1.4px}.welcome-heading p{font-size:13px;max-width:310px}.orbit,.welcome-foot{display:none}.welcome .brand{font-size:25px}.welcome .brand-mark{height:34px;width:34px;font-size:27px}.entry-panel{padding:32px 26px 40px}.entry-card{max-width:420px}.entry-card h2{font-size:25px}.small-mark{display:none}.entry-card>.muted{margin-bottom:20px}.entry-help{margin-top:22px}.app{display:flex}.sidebar{display:none}.conversation{width:100%}.conversation-head{height:73px;padding:0 16px;gap:10px}.group-icon{width:30px;height:30px;font-size:20px;border-radius:9px}.heading-text h1{font-size:16px}.header-actions{gap:5px}.quiet-button{font-size:9px;padding:6px 8px}.header-actions .icon-button{font-size:19px;min-width:29px}.history{padding:22px 17px 10px}.composer-wrap{padding:7px 13px 12px}.history-tools{padding:8px 17px;gap:12px}.history-tools>.muted{font-size:8px}.mobile-only{display:inline-grid}.composer-foot{margin-top:9px}.entry-card label{margin-top:18px}.privacy-note{font-size:10px}}
@media (prefers-reduced-motion:reduce){.history{scroll-behavior:auto}}

/* Keep secondary text readable against the light surfaces. */
.muted,.tiny-label,.edition,.nav-label,.privacy-note,.entry-help,.welcome-foot,.orbit-note,.composer-foot,.history-tools>.muted{color:#626c80}
input::placeholder,textarea::placeholder{color:#6b7487}
.welcome-heading p,.orbit-node,.profile-name>span,.sidebar-note,.room,.quiet-button,.text-button,.icon-button,.empty-state p,.empty-state h2{color:#626c80}
.reply-preview{color:#6c6187}
.connection{color:#526f64}.connection[data-state=error]{color:#94645f}
.notice{color:#716080}.notice[data-state=error]{color:#935f59}

.room{font-size:13px}.profile-name strong{font-size:12px}.profile-name>span{font-size:11px}
.composer-foot,.history-tools>.muted,.text-button{font-size:11px}
.entry-help,.privacy-note{font-size:12px}
@media (max-width:700px){.history-tools>.muted{font-size:10px}}

.conversation[data-needs-you=true]>#history,.conversation[data-needs-you=true]>.history-tools,.conversation[data-needs-you=true]>.composer-wrap{display:none!important}
#needs-you{min-height:44px;white-space:nowrap}
@media(max-width:700px){.conversation-head:has(#needs-you:not([hidden])){height:auto;min-height:73px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.header-actions:has(>#needs-you:not([hidden])){flex-basis:100%;justify-content:space-between}#needs-you{font-size:12px}}
.request-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:16px}
#needs-you-view{flex:1;min-height:0;overflow:auto}#needs-you-view>p{line-height:1.6;margin-bottom:12px}#needs-you-view button{min-height:44px}
.request-card{border:1px solid var(--line);border-radius:12px;padding:20px;margin:16px 0;overflow-wrap:anywhere}.request-card h2{font-size:16px;margin-bottom:8px}.request-card p{line-height:1.6;margin:8px 0}.request-card summary{cursor:pointer;white-space:pre-wrap;line-height:1.6;padding:10px 0}.request-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.6;max-height:40svh;overflow:auto;background:var(--canvas);padding:12px;border-radius:8px}.request-source{font-size:11px}.request-card textarea{width:100%;padding:12px;resize:vertical}.request-card form>button{margin:8px 12px 0 0}
.group-choices{max-height:240px;margin-top:18px}
.app{grid-template-rows:minmax(0,1fr)}.sidebar{min-height:0}.rooms{min-height:0}.room{flex-shrink:0}

.permission-choice{display:flex;align-items:center;gap:10px}.permission-choice input{width:18px;height:18px;min-height:18px;padding:0;flex:none;accent-color:var(--accent)}
.audience-bar .question-choice{margin:0 0 0 auto;min-height:44px;font-size:12px;font-weight:500;cursor:pointer}

#message-format{margin:0 0 10px;color:#6c6187;font-size:12px}#message-format summary{cursor:pointer;padding:6px 0}#message-schema{max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f3fd;border-radius:8px;padding:12px;margin:6px 0;font-size:11px}

.group-filter{min-height:38px;padding:9px 12px;font-size:12px;margin-bottom:10px}
.dialog-form .group-filter{margin-top:18px;margin-bottom:0}
.dialog-form .group-choices{margin-top:10px}
.group-filter-empty{padding:8px 10px;font-size:12px;line-height:1.6}
.group-actions{display:flex;align-items:center;gap:inherit}
@media (min-width:701px){
  .conversation-head{height:auto;min-height:87px;padding-top:12px;padding-bottom:12px}
  .header-actions{max-width:65%;min-width:0}
  .group-actions{flex-wrap:wrap;row-gap:6px;justify-content:flex-end}
}
@media (max-width:700px){
  .conversation-head{position:relative}
  #mobile-group-actions{min-width:40px;min-height:40px;font-size:13px;padding:6px 8px}
  .group-actions{display:none;position:absolute;right:16px;top:calc(100% - 6px);z-index:20;min-width:200px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #20283b20}
  .group-actions[data-open=true]{display:flex;flex-direction:column;align-items:stretch;gap:4px}
  .group-actions .quiet-button,.group-actions .icon-button{display:flex;align-items:center;justify-content:flex-start;min-height:42px;width:100%;padding:10px 12px;border:0;border-radius:7px;font-size:13px;text-align:left;color:var(--ink)}
  .group-actions button:hover:enabled{background:var(--canvas)}
  .desktop-only{display:none}
}

#search-dialog{width:min(720px,calc(100% - 36px));max-height:85svh;overflow-y:auto}
.search-form{display:flex;gap:10px;margin-top:20px;align-items:center}.search-form input{flex:1;min-width:0}.search-form .primary{flex:none;padding:12px 18px}
.search-help{font-size:11px;line-height:1.7;margin:12px 0 20px}#search-status{font-size:12px;margin:16px 0}#search-results{margin-top:20px}#more-search{margin-top:20px;min-height:40px}
#search-results .message-reply{opacity:1}#search-dialog .form-error{margin-top:12px}
@media (max-width:600px){#search-dialog{padding:20px}.search-form{gap:8px}.search-form .primary{padding:12px}.search-help{font-size:10px}}

.audience-bar{max-width:920px;margin:0 auto 9px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.audience-bar>span{overflow-wrap:anywhere}.audience-bar #audience-change{color:#935f59}.member-list{list-style:none;padding:0;margin:18px 0;max-height:45svh;overflow:auto}.member-list li{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.member-list strong{font-size:14px;display:block}.member-list span{font-size:12px;color:var(--muted)}.member-list button{display:block;margin-top:6px;color:#935f59}#members-dialog>.muted{margin-top:12px;overflow-wrap:anywhere}#retry-remove{margin-bottom:12px}#confirm-audience{width:100%}

.history-tools{flex-wrap:wrap}#new-messages{flex-basis:100%;text-align:left;color:var(--accent);font-weight:650}
#load-more{display:block;margin:0 auto 20px}

.room-draft{flex:none;font-size:10px;font-weight:650;color:#7b5276;background:#f5eaf0;border-radius:5px;padding:3px 6px}
.group-picker-button{flex:none;min-width:44px;min-height:44px;font-size:13px;color:var(--ink)}
#new-group{min-height:34px;padding:4px 8px}
#mobile-create-group{margin-top:14px;min-height:44px;color:var(--accent)}
@media (max-width:700px){.conversation-head{gap:8px;padding:0 12px}.conversation-head>.group-icon{display:none}.composer-foot{font-size:10px}}

.room-unread{flex:none;min-width:22px;padding:3px 6px;border-radius:12px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;text-align:center}.refresh-groups{align-self:flex-start;min-height:44px;font-size:12px;margin-bottom:6px}

#decline-group{min-height:44px;font-size:13px}
#check-invite-access{min-height:44px;font-size:14px;padding:10px 14px;margin-top:8px;color:var(--accent)}
#check-renewal{min-height:44px;font-size:14px;padding:10px 14px;color:var(--accent)}
.member-list button[data-renew]{min-height:44px;padding:8px 0;color:var(--accent)}
.member-list button[data-handoff],#ownership-list button,#workspace-owner-list button{min-height:44px;padding:8px 0;color:var(--accent)}
#workspace-people button[data-action="renew_own_login"]{min-height:44px;padding:8px 0;color:var(--accent)}
#invite-access-status{margin-top:8px;line-height:1.5}

#signup-form{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}#signup-form h2{font-size:23px}

.keyboard-keytip{position:fixed;z-index:1000;background:#34334d;color:#fff;border:1px solid #fff;border-radius:4px;padding:2px 5px;font:700 12px/1.4 system-ui;box-shadow:0 2px 6px #0003;pointer-events:none}#keyboard-help h2{margin:0 0 20px}#keyboard-help dl{display:grid;grid-template-columns:auto 1fr;gap:12px 20px;margin:0 0 24px}#keyboard-help dt{font-weight:700}#keyboard-help dd{margin:0}.entry-help a{text-decoration:underline;text-underline-offset:3px;font-weight:600}#sign-out{font-size:11px;white-space:nowrap}#export-group{font-size:11px}

.dialog-heading .icon-button,#cancel-reply{width:auto;min-width:44px;padding:8px 10px;font-size:13px;line-height:1.3}
.agent-question-setup{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px}.agent-question-setup summary{cursor:pointer;min-height:32px}.agent-question-setup p{margin:12px 0;line-height:1.6}.agent-question-setup label{display:block;margin:12px 0 8px}.agent-question-setup textarea{width:100%;max-width:100%;padding:12px;resize:vertical;font:inherit;line-height:1.6}.agent-question-setup a{text-decoration:underline;text-underline-offset:3px}.agent-question-setup button{margin-top:12px}

.account-id,#account-profile-context,#account-profile-visibility{overflow-wrap:anywhere;margin:12px 0;line-height:1.6}#account-profile-dialog textarea{width:100%;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}#account-profile-dialog .muted{font-size:12px;line-height:1.6}#reload-account-profile{min-height:44px}.account-address{overflow-wrap:anywhere;font-size:10px}.profile-name{min-width:0}.profile-name strong{overflow-wrap:anywhere}.message-profile{background:none;color:var(--accent);font:inherit;min-height:32px;padding:2px 6px;text-decoration:underline}.member-profile{color:var(--accent)!important}

#account-export-area:not([hidden]){display:grid;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
#account-export-area p{margin:0}
#account-export-area .quiet-button{min-height:44px;font-size:13px}

#account-name-help{margin-top:8px}
