:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#203437;background:#edf2f3;font-size:16px;--accent:#126d63;--border:#dce5e6;--muted:#64797d}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--accent)}[hidden]{display:none!important}.topbar{height:76px;background:#102f32;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:26px;font-weight:700;letter-spacing:-1px;color:#fff;text-decoration:none}.brand-icon{width:35px;height:35px;border-radius:11px;background:#bce9da;color:#103b36;display:grid;place-items:center;font-size:26px;line-height:1}.alpha{font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;color:#adc5c5;margin-left:3px}.topbar-actions{display:flex;align-items:center;gap:20px}.topbar #connection{font-size:14px;color:#b5d1ce}.topbar .button{color:white;border-color:#426264;background:transparent}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);height:calc(100dvh - 108px);max-width:1440px;margin:16px auto;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 30px #1b45440a}.sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border);background:#fbfdfd}.identity-box{padding:24px 22px 20px;border-bottom:1px solid var(--border)}label{font-size:14px;font-weight:600;display:block;margin-bottom:8px}.identity-row{display:flex;gap:8px}.identity-row select{min-width:0;flex:1}.identity-box p{margin:10px 0 0;font-size:13px;overflow-wrap:anywhere}.identity-box #unlock-button{margin-top:12px}.muted{color:var(--muted);font-size:14px;line-height:1.5}.section-title{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 8px}.section-title h2{font-size:14px;margin:0;color:var(--muted);font-weight:600}.square-button{background:transparent;border:0;color:#42615f;width:36px;height:36px;display:grid;place-items:center;font-size:25px;border-radius:8px;flex-shrink:0}.square-button:hover{background:#e7f1ee}.chat-list{overflow:auto;flex:1;padding:4px 10px}.sidebar-empty{font-size:14px;line-height:1.6;padding:12px;color:var(--muted)}.chat-button{border:0;background:transparent;display:flex;gap:12px;width:100%;text-align:left;padding:14px 12px;border-radius:10px;color:inherit;align-items:center}.chat-button:hover{background:#edf4f2}.chat-button.active{background:#e4f1eb}.avatar{width:42px;height:42px;border-radius:13px;background:#dceae6;color:#28665c;display:grid;place-items:center;font-size:18px;font-weight:650;flex-shrink:0}.chat-info{min-width:0;flex:1}.chat-info strong{display:block;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.chat-info p{margin:5px 0 0;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-time{font-size:12px;color:#6f8587;align-self:flex-start;padding-top:3px}.sidebar-footer{border-top:1px solid var(--border);padding:16px 18px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.lock-icon{font-size:20px;color:var(--accent)}.conversation{min-width:0;min-height:0;position:relative;background:#f2f6f5}.welcome{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px}.welcome-symbol{font-size:56px;line-height:1;width:96px;height:96px;display:grid;place-items:center;border-radius:28px;background:#dceee5;color:#1e6d59;margin-bottom:14px;font-weight:700}.welcome h1{font-size:26px;letter-spacing:-.6px;margin:16px 0 10px}.welcome p{color:var(--muted);line-height:1.7;margin:0 0 24px;max-width:430px}.welcome .welcome-footnote{font-size:13px;margin-top:26px}.chat-view{height:100%;display:flex;flex-direction:column;min-height:0}.conversation-header{display:flex;gap:14px;align-items:center;padding:18px 24px;border-bottom:1px solid var(--border);background:#fff}.peer-heading{min-width:0;flex:1}.peer-heading h1{font-size:18px;margin:0;overflow:hidden;text-overflow:ellipsis}.peer-heading p{margin:4px 0 0;font-size:13px}.messages{flex:1;overflow:auto;padding:26px 30px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain}.messages-empty{align-self:center;color:var(--muted);text-align:center;font-size:14px;line-height:1.6;margin:auto}.message{max-width:min(80%,640px);align-self:flex-start;min-width:160px}.message.own{align-self:flex-end}.bubble{padding:14px 17px;border:1px solid #e0e8e5;border-radius:3px 15px 15px;background:#fff;box-shadow:0 2px 4px #173a3003}.own .bubble{background:#dff0e6;border-color:#d3e8dc;border-radius:15px 3px 15px 15px}.bubble .message-subject{font-weight:650;font-size:14px;margin:0 0 7px}.bubble .message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:0;font-size:16px}.bubble .message-content.code{font-family:ui-monospace,monospace;font-size:13px;max-height:300px;overflow:auto}.message-meta{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:7px 3px 0;color:#6b807b;font-size:12px}.reply-action{font:inherit;border:0;color:#52796d;background:transparent;padding:0}.message-reply{font-size:12px;border-left:3px solid #91b5a6;padding-left:8px;color:#567467;margin-bottom:8px;overflow-wrap:anywhere}.message-image{display:block;max-width:100%;max-height:330px;border-radius:8px;margin:8px 0}.download-link{display:inline-flex;gap:8px;overflow-wrap:anywhere;font-size:14px;margin:6px 0}.message-error{color:#9c3f36;font-size:14px}.composer{padding:16px 24px 18px;border-top:1px solid var(--border);background:#fff}.subject{border:0!important;border-radius:0!important;border-bottom:1px solid #e9eeee!important;padding:8px 0!important;font-size:14px!important}.composer textarea{resize:vertical;min-height:70px;max-height:220px;border:0;padding:12px 0;font-size:16px;line-height:1.5;outline:none;width:100%}.composer-footer{display:flex;align-items:center;gap:12px;margin-top:3px}.composer-footer .muted{font-size:12px;flex:1;text-align:right}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:8px;padding:11px 17px;font-size:14px;font-weight:600;background:#fff;color:#284c48;text-decoration:none}.button:hover{filter:brightness(.97)}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button.subtle{background:transparent}.button.compact{padding:8px 12px}.full-width{width:100%;margin-top:16px}.attachment-control label{margin:0;cursor:pointer}.reply-preview,.attachment-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf5f1;border-left:3px solid #85b29f;padding:3px 8px 3px 12px;font-size:13px;overflow-wrap:anywhere;margin-bottom:8px}.attachment-preview{border-left:0;margin-top:6px}.notice{max-width:1440px;margin:10px auto 0;background:#fff5dd;color:#71571d;border:1px solid #ead9a9;padding:10px 18px;font-size:14px;line-height:1.5;border-radius:8px}.notice.error{background:#fff0ec;border-color:#eccdc4;color:#8f3c2d}.notice:not([hidden])+.workspace{height:calc(100dvh - 164px);margin-top:10px}.modal{width:min(460px,calc(100vw - 28px));border:1px solid var(--border);border-radius:16px;padding:25px;color:#203437;box-shadow:0 24px 90px #06272230;max-height:calc(100dvh - 40px)}.modal::backdrop{background:#0b272b88;backdrop-filter:blur(3px)}.small-modal{max-width:380px}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.modal-heading h2{font-size:21px;letter-spacing:-.4px;margin:0}.modal label{margin-top:16px}.modal-heading+.muted{margin-top:0}.modal input:not([type=checkbox]),.modal select,select{width:100%;border:1px solid #cad9d7;border-radius:8px;background:#fff;color:inherit;padding:11px 12px;min-height:43px;font-size:16px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23516f68' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:32px}.modal input[type=file]{font-size:14px;padding:9px}.field-help{color:var(--muted);font-size:13px;line-height:1.5;margin:7px 0 0}.key-note{background:#eff5f2;border-radius:8px;padding:12px;font-size:13px;line-height:1.55;color:#42645b;margin:18px 0 0}.form-error{font-size:14px;line-height:1.5;color:#a14332;margin:12px 0 0}.form-progress{font-size:14px;color:var(--accent);line-height:1.5}.checkbox-label{display:flex;gap:10px;font-weight:400;align-items:flex-start;font-size:14px;line-height:1.5}.checkbox-label input{margin-top:4px}.profile-item{padding:16px 0;border-bottom:1px solid var(--border)}.profile-item strong{font-size:16px}.profile-item .fingerprint{font-family:ui-monospace,monospace;overflow-wrap:anywhere;font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0}.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.profile-actions .button{padding:7px 10px;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mobile-only{display:none}:focus-visible{outline:3px solid #68ab98;outline-offset:3px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:1px}.composer textarea:focus-visible{outline:0}.subject:focus-visible{outline:0!important}
.key-file-picker{display:flex;align-items:center;gap:12px}.key-file-picker .button{flex-shrink:0}.key-file-picker span{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:14px}
@media(min-width:1500px){.workspace{margin-top:24px;height:calc(100dvh - 124px)}}
@media(max-width:900px){.topbar{padding:0 18px}.workspace{margin:0;border-radius:0;border:0;height:calc(100dvh - 76px);grid-template-columns:270px minmax(0,1fr)}.messages{padding:20px}.composer{padding:14px 18px}.composer-footer .muted{display:none}.composer-footer{justify-content:space-between}.message{max-width:90%}.notice{margin:0;border-radius:0}.notice:not([hidden])+.workspace{margin:0;height:calc(100dvh - 134px)}}
@media(max-width:620px){.topbar{height:64px}.brand{font-size:23px}.brand-icon{width:31px;height:31px}.alpha{font-size:10px}.topbar-actions{gap:10px}.topbar #connection{max-width:110px;font-size:12px}.topbar .button{padding:7px 10px;font-size:13px}.workspace{display:block;height:calc(100dvh - 64px)}.sidebar{height:100%;border:0}.conversation{display:none;height:100%}.workspace.chat-open .sidebar{display:none}.workspace.chat-open .conversation{display:block}.mobile-only{display:grid}.conversation-header{padding:12px;gap:9px}.conversation-header .avatar{width:34px;height:34px;font-size:16px}.peer-heading h1{font-size:16px}.conversation-header .button{padding:7px 9px;font-size:12px}.messages{padding:18px 12px}.message{max-width:92%}.composer{padding:10px 14px 15px}.composer textarea{min-height:65px}.notice:not([hidden])+.workspace{height:calc(100dvh - 122px)}.identity-box{padding:18px}.welcome{padding:24px}.modal{padding:20px}.bubble{padding:12px 14px}}
