:root{color:#16211c;font-synthesis:none;text-rendering:optimizelegibility;--ink:#16211c;--muted:#66716b;--line:#dce2dc;--paper:#fbfcf9;--green:#1f6b4f;--green-dark:#174e3b;--green-pale:#e6f0e9;--danger:#9b3c38;background:#f3f5ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,input,textarea,summary{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{box-shadow:0 0 0 3px #83bca7}code{letter-spacing:.08em;color:var(--muted);font:600 .72rem ui-monospace,SFMono-Regular,Consolas,monospace}.brand{letter-spacing:-.02em;align-items:center;gap:.55rem;font-weight:760;display:flex}.brand span{color:var(--green);font-size:1.45rem}.eyebrow{color:var(--green);letter-spacing:.13em;text-transform:uppercase;margin:0 0 .55rem;font-size:.72rem;font-weight:800}.muted,small{color:var(--muted)}.danger{color:var(--danger)!important}.access-shell{grid-template-rows:auto 1fr auto;min-height:100vh;padding:2rem clamp(1rem,5vw,4rem);display:grid}.access-shell>.brand{justify-self:start}.access-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;align-self:center;width:min(100%,560px);margin:2rem auto;padding:clamp(1.5rem,5vw,3.2rem);box-shadow:0 24px 70px #2d4a3830}.access-card h1{letter-spacing:-.06em;max-width:10ch;margin:0;font:500 clamp(2.4rem,7vw,4.6rem)/.98 Georgia,serif}.lede{color:var(--muted);margin:1.25rem 0 2rem;line-height:1.6}form{gap:1rem;display:grid}label{gap:.45rem;font-size:.82rem;font-weight:720;display:grid}label small{font-weight:450}input,textarea{width:100%;color:var(--ink);resize:vertical;background:#fff;border:1px solid #cdd5ce;border-radius:9px;padding:.78rem .9rem}textarea{line-height:1.45}input:hover,textarea:hover{border-color:#9eaaa1}.primary{color:#fff;background:var(--green);border:0;border-radius:9px;padding:.85rem 1.15rem;font-weight:750}.primary:hover{background:var(--green-dark)}.text-button{background:0 0;border:0;padding:.25rem}.privacy-note{color:var(--muted);justify-self:center;font-size:.78rem}.privacy-note span{color:#3c8b69;font-size:.6rem}.key-preview{background:var(--green-pale);border-radius:10px;gap:.7rem;padding:1rem;font-size:.82rem;display:grid}.key-preview ul{margin:0;padding-left:1.2rem}.check{grid-template-columns:auto 1fr;align-items:start;font-weight:550}.check input{width:auto;margin-top:.15rem}.error,.storage-error{color:#7b2825;background:#fff0ef;border:1px solid #e6b7b4;border-radius:8px;margin:0;padding:.75rem 1rem;font-size:.85rem}.chat-shell{border:1px solid var(--line);background:var(--paper);border-radius:16px;width:min(960px,100% - 2rem);min-height:calc(100vh - 2rem);margin:1rem auto;overflow:hidden;box-shadow:0 20px 70px #2d4a3820}.app-header{border-bottom:1px solid var(--line);grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;min-height:70px;padding:.8rem 1.25rem;display:grid}.identity-summary{align-items:center;gap:.7rem;font-size:.82rem;display:flex}.connection{color:var(--muted);align-items:center;gap:.35rem;display:inline-flex}.connection:before{content:"";background:#a5ada8;border-radius:50%;width:.48rem;height:.48rem}.connection.online:before{background:#3c8b69}.connection.connecting:before{background:#c69435}.header-actions{justify-self:end;gap:.4rem;display:flex}.header-actions button,.conversation-header button,.contact-actions button,.dialog-buttons button{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:7px;padding:.48rem .65rem;font-size:.76rem}.storage-error{border-radius:0}.toast{z-index:20;color:#fff;background:#763936;border-radius:8px;align-items:center;gap:1rem;margin:0;padding:.75rem 1rem;font-size:.82rem;display:flex;position:fixed;top:1rem;left:50%;translate:-50%;box-shadow:0 8px 30px #0003}.toast button{color:inherit;background:0 0;border:0;font-size:1.2rem}.chat-layout{grid-template-columns:300px 1fr;min-height:calc(100vh - 104px);display:grid}.chat-list{border-right:1px solid var(--line);background:#f7f9f5}.panel-title{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:68px;padding:0 1rem;display:flex}.panel-title h1{margin:0;font-size:.95rem}.add{color:#fff;background:var(--green);border:0;border-radius:50%;width:2rem;height:2rem;font-size:1.35rem;line-height:1}.empty-list,.conversation-empty{min-height:400px;color:var(--muted);text-align:center;align-content:center;justify-items:center;gap:.55rem;padding:2rem;display:grid}.empty-list>span,.conversation-empty>span{color:#a8bbb0;font-size:2rem}.empty-list p,.conversation-empty p{max-width:28ch;margin:0;font-size:.82rem;line-height:1.5}.contact-row{width:100%;min-height:70px;color:var(--ink);text-align:left;background:0 0;border:0;border-bottom:1px solid #e7ebe7;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.8rem 1rem;display:grid}.contact-row:hover,.contact-row.selected{background:var(--green-pale)}.contact-row>span:nth-child(2){gap:.24rem;min-width:0;display:grid}.contact-row strong{text-overflow:ellipsis;overflow:hidden}.avatar{width:2.25rem;height:2.25rem;color:var(--green-dark);background:#dce9df;border-radius:50%;flex:none;place-items:center;font-weight:800;display:inline-grid}.contact-status{align-items:center;gap:.35rem;font-size:.7rem;display:flex}.contact-status:before{content:"";background:#a7afaa;border-radius:50%;width:.4rem;height:.4rem}.contact-status.active:before{background:#3c8b69}.contact-status.pending:before{background:#c69435}.contact-status.blocked:before{background:#b95650}.unread{color:#fff;background:var(--green);text-align:center;border-radius:1rem;min-width:1.25rem;padding:.18rem .35rem;font-size:.68rem}.conversation{background:#fff;grid-template-rows:auto 1fr auto;min-width:0;display:grid}.conversation-header{border-bottom:1px solid var(--line);align-items:center;gap:.7rem;min-height:68px;padding:.7rem 1rem;display:flex}.conversation-header h2{margin:0 0 .1rem;font-size:.9rem}.conversation-header .avatar{width:2rem;height:2rem}.back{display:none}.contact-actions{margin-left:auto;position:relative}.contact-actions summary{cursor:pointer;letter-spacing:.1em;border-radius:6px;padding:.35rem;font-weight:800;list-style:none}.contact-actions summary::-webkit-details-marker{display:none}.contact-actions>div{z-index:5;border:1px solid var(--line);background:#fff;border-radius:9px;width:170px;padding:.4rem;display:grid;position:absolute;top:2rem;right:0;box-shadow:0 8px 25px #0002}.contact-actions button{text-align:left;border:0}.messages{background:linear-gradient(#fbfcf9eb,#fbfcf9eb),radial-gradient(#c7d7cc 1px,#0000 1px) 0 0/18px 18px;flex-direction:column;gap:.65rem;min-height:0;max-height:calc(100vh - 250px);padding:1.25rem;display:flex;overflow-y:auto}.empty-conversation{color:var(--muted);margin:auto;font-size:.8rem}.message{border:1px solid var(--line);background:#fff;border-radius:12px 12px 12px 3px;max-width:min(76%,440px);padding:.65rem .8rem .5rem;box-shadow:0 2px 5px #0000000b}.message.outgoing{background:var(--green-pale);border-color:#cee0d5;border-radius:12px 12px 3px;align-self:flex-end}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.45}.message footer{color:var(--muted);text-align:right;margin-top:.25rem;font-size:.64rem}.local-event{color:var(--muted);text-align:center;align-self:center;margin:.5rem;font-size:.67rem}.composer{border-top:1px solid var(--line);grid-template-columns:1fr auto;align-items:end;gap:.6rem;padding:.8rem 1rem;display:grid;position:relative}.composer label{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.composer textarea{resize:none;padding-right:4rem}.composer small{font-size:.62rem;position:absolute;bottom:1.15rem;right:4.8rem}.send{color:#fff;background:var(--green);border:0;border-radius:50%;width:2.55rem;height:2.55rem;font-size:1.35rem}dialog{border:1px solid var(--line);width:min(520px,100% - 2rem);color:var(--ink);background:var(--paper);border-radius:15px;padding:0;box-shadow:0 25px 80px #17241c66}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#13251c80}dialog form{padding:1.4rem}dialog form>p{color:var(--muted);margin:-.25rem 0 .5rem;font-size:.8rem}.dialog-title{justify-content:space-between;align-items:start;display:flex}.dialog-title h2{margin:0;font:500 1.8rem Georgia,serif}.dialog-title>button{background:0 0;border:0;font-size:1.5rem}.dialog-buttons{justify-content:flex-end;gap:.5rem;display:flex}.dialog-buttons .primary{color:#fff;background:var(--green)}@media (width<=720px){.access-shell{padding:1rem}.access-card{margin:1.5rem auto;padding:1.4rem}.chat-shell{border:0;border-radius:0;width:100%;min-height:100vh;margin:0}.app-header{grid-template-columns:1fr auto;padding:.65rem 1rem}.identity-summary{justify-self:end}.identity-summary code{display:none}.header-actions{border-top:1px solid var(--line);grid-column:1/-1;justify-content:flex-end;justify-self:stretch;padding-top:.55rem}.chat-layout{min-height:calc(100vh - 116px);display:block}.chat-list{border:0;min-height:calc(100vh - 116px)}.conversation{min-height:calc(100vh - 116px);display:none}.conversation-open .chat-list{display:none}.conversation-open .conversation{display:grid}.back{align-items:center;gap:.25rem;display:inline-flex;border:0!important;padding-left:0!important}.back span{width:1px;height:1px;position:absolute;overflow:hidden}.messages{max-height:calc(100vh - 270px)}}@media (prefers-reduced-motion:no-preference){button{transition:background-color .15s,border-color .15s,transform .15s}button:active{transform:translateY(1px)}}
