@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/roboto-logo.woff2') format('woff2')}
:root{color-scheme:dark;--bg:#080e1a;--surface:#0c1526;--surface-raised:#101d32;--line:#21304a;--line-soft:#19263c;--ink:#edf3ff;--muted:#95a5bf;--quiet:#70819f;--blue:#99bdff;--blue-bright:#bdd2ff;--focus:#8cb2ff;--danger:#f4a7ac;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;font-weight:400;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{width:100%;height:100%;margin:0}
body{overflow:hidden;background:radial-gradient(ellipse at 50% -40%,#142342 0,transparent 65%),var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
button{border:0}
svg{display:block;flex:none}
.app-shell{width:min(100%,1016px);height:100%;height:100dvh;margin:0 auto;padding:28px 40px 20px;display:flex;flex-direction:column;gap:20px}
.site-header{display:flex;justify-content:space-between;align-items:center;min-height:34px;flex:none}
.brand-block{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:none}
.brand-tagline{font-size:10px;line-height:1.3;letter-spacing:.15px;color:var(--muted);white-space:nowrap}
.brand{display:inline-flex;align-items:baseline;gap:1px;font-size:23px;line-height:1;font-weight:620;letter-spacing:-.9px}
.brand-symbol{font-family:'Roboto',sans-serif;font-style:normal;font-weight:400;letter-spacing:0;line-height:1;white-space:nowrap}.brand-mark{color:var(--blue)}
.brand-period{color:var(--blue)}
.quiet-button{padding:10px 0;background:transparent;color:var(--muted);font-size:12px;line-height:1.4;border-radius:4px;transition:color .15s ease}
.quiet-button:hover{color:var(--ink)}
.privacy-trigger{display:inline-flex;align-items:center;gap:7px}
.privacy-trigger svg{height:17px;width:17px}
.main-content{display:flex;min-height:0;flex:1;align-items:center;width:100%}
.view{width:100%;min-height:0;max-height:100%}
.compose-view{display:flex;flex-direction:column;width:min(100%,720px);margin:auto;gap:25px;height:min(100%,646px)}
.view-intro{flex:none}
p,h1,h2,h3{margin:0}
.eyebrow{font-size:10px;line-height:1.4;letter-spacing:1.65px;text-transform:uppercase;color:var(--blue);font-weight:550;margin-bottom:12px}
h1{font-size:clamp(28px,4.5vw,43px);line-height:1.15;font-weight:480;letter-spacing:-1.5px}
.intro-detail{color:var(--muted);font-size:13px;line-height:1.65;margin-top:12px}
.compose-body{min-height:0;flex:1;display:flex;flex-direction:column;gap:14px}
.message-field{display:flex;flex:1;min-height:85px;flex-direction:column;gap:9px}
.field-heading{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px;color:var(--ink)}
.field-heading span{font-size:10px;color:var(--quiet)}
textarea{display:block;flex:1;min-height:50px;width:100%;resize:none;border:1px solid var(--line);border-radius:15px;padding:19px 21px;background:var(--surface);color:var(--ink);font-size:16px;line-height:1.65;caret-color:var(--blue);overflow-wrap:anywhere;transition:border-color .15s ease}
textarea::placeholder{color:#647592}
textarea:hover{border-color:#304364}
textarea:focus{border-color:var(--focus)}
textarea:focus-visible{outline-offset:2px}
.lifetime-options{margin:0;padding:0;border:0;min-width:0;flex:none}
.lifetime-options legend{font-size:11px;color:var(--muted);padding:0;margin-bottom:9px}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode-option{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;background:transparent;border:1px solid var(--line-soft);border-radius:11px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.mode-option:has(input:checked){background:#101d34;border-color:#456394}
.mode-option:hover{border-color:#4b6082}
.mode-option input{appearance:none;flex:none;width:14px;height:14px;margin:2px 0 0;border:1px solid #5c7194;border-radius:50%;background:transparent}
.mode-option input:checked{border-color:var(--blue);box-shadow:inset 0 0 0 3px #101d34;background:var(--blue)}
.mode-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.mode-copy strong{font-size:12px;line-height:1.4;font-weight:550;color:var(--ink)}
.mode-copy>span{font-size:10px;line-height:1.5;color:var(--muted)}
.lifetime-note{font-size:10px;line-height:1.5;color:var(--quiet);margin-top:-5px;flex:none}
.error-message{color:var(--danger);font-size:12px;line-height:1.4;flex:none}
.compose-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;flex:none;margin-top:1px}
.action-note{font-size:10px;color:var(--quiet);line-height:1.5}
.button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:44px;padding:12px 21px;border-radius:9px;font-size:12px;line-height:1.4;font-weight:600;white-space:nowrap;transition:background .15s ease,transform .15s ease}
.button-primary{background:var(--blue);color:#101d36;box-shadow:inset 0 1px 0 #dce8ff66}
.button-primary:hover{background:var(--blue-bright)}
.button-primary:active{transform:translateY(1px)}
.button>span{font-size:18px;line-height:1}
.button svg{width:17px;height:17px}
.site-footer{display:flex;justify-content:space-between;align-items:center;color:var(--quiet);font-size:9px;line-height:1.5;letter-spacing:.2px;flex:none}
.message-view{height:min(100%,690px);display:flex;flex-direction:column;gap:15px}
.message-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex:none}
.message-heading h1{font-size:clamp(25px,3.5vw,34px);letter-spacing:-1px}
.message-heading .eyebrow{display:flex;align-items:center;gap:7px;margin-bottom:9px}
.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--blue);box-shadow:0 0 10px #99bdff4d}
.watcher-stat{text-align:right;flex:none;align-self:center;padding-left:18px;border-left:1px solid var(--line)}
.watcher-stat strong{display:block;font-size:26px;line-height:1;font-weight:450;font-variant-numeric:tabular-nums;color:var(--blue)}
.watcher-stat span{display:block;margin-top:7px;font-size:9px;color:var(--muted)}
.message-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px;flex:none}
.plain-label{color:var(--quiet);white-space:nowrap}
.message-paper{flex:1;min-height:55px;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;padding:30px 34px;border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--ink);font-size:clamp(16px,2vw,19px);line-height:1.8;tab-size:4}
.message-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;flex:none}
.secondary-actions{display:flex;align-items:center;gap:25px}
.end-button{color:#cc949e}
.end-button:hover{color:#ffc1c6}
.message-notes{display:flex;flex-direction:column;gap:4px;flex:none}
.message-footnote{font-size:10px;line-height:1.5;color:var(--quiet);flex:none}
.unavailable-view{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;margin:auto;padding:25px 0}
.empty-mark{display:grid;place-items:center;width:76px;height:76px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:#7d94bc;margin-bottom:29px}
.empty-mark .brand-symbol{font-size:42px}
.unavailable-view h1{font-size:clamp(26px,4vw,38px);letter-spacing:-1.1px}
.unavailable-view .intro-detail{max-width:380px;margin-top:13px}
.unavailable-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:29px;max-width:100%;flex:none}
#retry-message-button:not([hidden])+#new-message-link{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
#retry-message-button:not([hidden])+#new-message-link:hover{background:var(--surface);color:var(--ink)}
.toast{position:fixed;z-index:20;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 18px;background:#1a2b46;border:1px solid #3b5377;border-radius:10px;box-shadow:0 8px 35px #0006;color:var(--ink);font-size:12px;line-height:1.5;text-align:center}
dialog{color:var(--ink);background:#0d1729;border:1px solid #2c3e5c;border-radius:20px;padding:26px;width:min(540px,calc(100% - 32px));max-height:calc(100% - 40px);box-shadow:0 30px 100px #0009}
dialog::backdrop{background:#030711cf;backdrop-filter:blur(6px)}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.dialog-heading .eyebrow{margin-bottom:8px}
h2{font-size:24px;line-height:1.25;letter-spacing:-.65px;font-weight:500}
.icon-button{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:7px;color:var(--muted);background:#19273e}
.icon-button:hover{color:var(--ink);background:#263956}
.icon-button svg{height:18px;width:18px}
.privacy-content{font-size:12px;line-height:1.75;color:var(--muted);margin-top:22px}
.privacy-item{margin-top:18px}
.privacy-item h3{font-size:12px;font-weight:550;color:var(--ink);margin-bottom:4px}
*{scrollbar-width:thin;scrollbar-color:#334864 transparent}
@media(min-height:950px){.app-shell{padding-top:36px;padding-bottom:27px;gap:36px}.compose-view{height:680px}}
@media(max-width:600px){.brand-block{gap:4px}.brand-tagline{font-size:9px}.app-shell{padding:20px 21px 15px;gap:23px}.brand{font-size:22px}.privacy-trigger{font-size:11px}.compose-view{gap:24px;height:100%}.eyebrow{font-size:9px;margin-bottom:10px}h1{font-size:34px;letter-spacing:-1.2px}.intro-detail{font-size:12px;margin-top:10px;max-width:290px}.compose-body{gap:13px}.message-field{gap:9px}textarea{padding:15px 17px;font-size:15px}.field-heading{font-size:11px}.field-heading span{font-size:9px}.mode-grid{gap:8px}.mode-option{padding:11px 10px;gap:8px}.mode-copy strong{font-size:11px}.mode-copy>span{font-size:9px;line-height:1.5}.mode-option input{width:13px;height:13px}.lifetime-note{font-size:9px}.compose-actions{align-items:center;gap:12px}.action-note{font-size:9px;max-width:145px}.button{padding:12px 16px;font-size:11px}.site-footer{font-size:8px;gap:12px}.message-view{height:100%;gap:12px}.message-heading{gap:13px}.message-heading h1{font-size:27px}.message-heading .intro-detail{font-size:11px}.watcher-stat{padding-left:12px}.watcher-stat strong{font-size:24px}.watcher-stat span{font-size:8px;max-width:45px;line-height:1.5}.message-meta{font-size:9px;gap:8px;align-items:flex-start}.plain-label{font-size:8px}.message-paper{padding:20px 21px;font-size:16px;line-height:1.75;border-radius:13px}.message-actions{gap:12px;flex-wrap:wrap}.secondary-actions{gap:19px}.secondary-actions .quiet-button{font-size:10px}.message-actions .button{margin-left:auto}.message-footnote{font-size:9px}.unavailable-view .intro-detail{max-width:300px}.unavailable-view h1{font-size:29px}dialog{padding:21px;border-radius:16px}h2{font-size:22px}.privacy-content{font-size:11px}.privacy-item h3{font-size:11px}}
@media(max-width:360px){.app-shell{padding-left:16px;padding-right:16px}.mode-option{gap:6px;padding:10px 8px}.mode-copy strong{font-size:10px}.mode-copy>span{font-size:8.5px}.lifetime-note{font-size:8.5px}.message-meta{flex-direction:column;gap:3px}.secondary-actions{gap:14px}.message-actions{gap:6px}.message-actions .button{padding:10px 12px;min-height:38px}.message-heading h1{font-size:24px}.action-note{max-width:118px}}
@media(max-height:680px){.app-shell{padding-top:15px;padding-bottom:12px;gap:14px}.compose-view{gap:15px}.compose-body{gap:10px}.view-intro .eyebrow{margin-bottom:7px}h1{font-size:30px}.intro-detail{margin-top:7px}.mode-option{padding-top:10px;padding-bottom:10px}.mode-copy{gap:3px}.lifetime-options legend{margin-bottom:7px}.lifetime-note{margin-top:-3px}.message-view{gap:10px}.message-heading h1{font-size:27px}.message-paper{padding:18px 23px}.empty-mark{width:61px;height:61px;border-radius:17px;margin-bottom:20px}.unavailable-actions{margin-top:23px}.unavailable-view h1{font-size:29px}}
@media(max-height:520px){.brand-block{gap:3px}.brand-tagline{font-size:8px}.app-shell{padding-top:10px;padding-bottom:8px;gap:10px}.site-header{min-height:28px}.brand{font-size:20px}.privacy-trigger{padding:6px 0;font-size:10px}.view-intro .eyebrow,.view-intro .intro-detail{display:none}.compose-view{gap:10px}h1{font-size:25px;letter-spacing:-.7px}.compose-body{gap:8px}.message-field{min-height:54px;gap:5px}.field-heading{font-size:10px}.field-heading span{font-size:8px}textarea{min-height:32px;padding:9px 12px;font-size:13px;line-height:1.5;border-radius:9px}.lifetime-options legend{font-size:9px;margin-bottom:5px}.mode-option{padding:7px 9px;border-radius:8px;gap:7px}.mode-copy strong{font-size:10px}.mode-copy>span{font-size:8px}.mode-option input{width:12px;height:12px;margin-top:1px}.lifetime-note{font-size:8px;margin-top:-2px}.button{min-height:34px;padding:8px 14px;font-size:10px;border-radius:7px}.button>span{font-size:15px}.action-note{font-size:8px}.site-footer{font-size:8px}.message-view{gap:8px}.message-heading .eyebrow{font-size:8px;margin-bottom:5px}.message-heading h1{font-size:24px}.message-heading .intro-detail{font-size:10px;line-height:1.4;margin-top:5px}.message-meta{font-size:8px;margin-top:0;flex-direction:row}.message-paper{font-size:14px;line-height:1.6;padding:12px 16px;min-height:30px}.message-footnote{font-size:8px}.watcher-stat strong{font-size:21px}.watcher-stat span{margin-top:5px}.message-actions .quiet-button{padding:6px 0;font-size:9px}.message-actions .button{min-height:33px;padding:8px 12px;font-size:10px}.unavailable-view{padding:6px 0}.empty-mark{width:47px;height:47px;border-radius:13px;margin-bottom:13px}.empty-mark .brand-symbol{font-size:32px}.unavailable-view .eyebrow{font-size:8px;margin-bottom:7px}.unavailable-view h1{font-size:25px}.unavailable-view .intro-detail{font-size:11px;margin-top:8px}.unavailable-actions{margin-top:17px}.error-message{font-size:10px}}
@media(max-height:360px){.app-shell{gap:7px;padding-top:7px;padding-bottom:6px}.site-header{min-height:25px}.compose-view{gap:7px}.compose-view h1{font-size:22px}.compose-body{gap:6px}.lifetime-options legend{display:none}.mode-option{padding:6px 8px}.mode-copy{gap:2px}.lifetime-note{font-size:7.5px}.message-view{gap:6px}.message-heading .eyebrow{display:none}.message-heading h1{font-size:21px}.message-heading .intro-detail{font-size:9px}.message-paper{padding:10px 14px}.message-footnote{font-size:7.5px}.message-actions .quiet-button{font-size:8px}.secondary-actions{gap:12px}.site-footer{font-size:7px}.empty-mark{display:none}.unavailable-actions{margin-top:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Group chat and locally held signing identities. */
.header-actions{display:flex;align-items:center;gap:20px}
.compose-switch{display:inline-flex;gap:4px;background:#0c1729;border:1px solid var(--line);padding:4px;border-radius:10px;margin-bottom:16px}
.compose-switch button{background:transparent;color:var(--muted);font-size:11px;padding:7px 15px;border-radius:6px}
.compose-switch button[aria-pressed=true]{background:#213654;color:var(--ink)}
.group-intro{flex:1;min-height:100px;border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:30px;display:flex;flex-direction:column;justify-content:center;gap:17px}
.group-intro p{color:var(--muted);font-size:13px;line-height:1.7;max-width:490px}
.group-intro>span:last-child{font-size:10px;color:var(--quiet)}
.group-glyph{font-size:38px;color:var(--blue)}
.group-view{height:100%}
.group-view .message-heading h1{font-size:28px;overflow-wrap:anywhere}
.group-view .message-heading .eyebrow{display:none}
.group-view .message-heading .intro-detail{font-size:11px;margin-top:7px}
.group-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex:none;min-width:0}
.identity-chip{padding:6px 9px;border-radius:6px;border:1px solid #334766;background:#112039;color:var(--blue);font:10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;max-width:100%;overflow-wrap:anywhere;text-align:left}
.short-ids{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);white-space:nowrap}
.short-ids input{accent-color:var(--blue);margin:0}
.room-id{margin-left:auto;padding:3px 0;font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;min-width:0;max-width:100%}
.peer-list{display:flex;flex:none;gap:7px;overflow:auto;max-height:48px;align-items:center}
.peer-chip{display:inline-block;flex:none;padding:4px 7px;border:1px solid var(--line-soft);border-radius:5px;font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);max-width:260px;overflow-wrap:anywhere}
.peer-list:empty{display:none}
.chat-panel{display:flex;flex:1;min-height:80px;flex-direction:column;gap:8px}
.chat-log{flex:1;min-height:45px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:17px;display:flex;flex-direction:column;gap:12px}
.chat-empty{margin:auto;max-width:340px;padding:12px;color:var(--quiet);font-size:12px;line-height:1.8;text-align:center}
.chat-message{border-left:2px solid #2c415f;padding:7px 11px;max-width:94%;align-self:flex-start;min-width:100px}
.own-message{background:#14233b;border-left-color:#729be0;align-self:flex-end;border-radius:6px}
.chat-message-meta{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;color:var(--quiet);margin-bottom:5px;font-size:9px;line-height:1.5}
.chat-author{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--blue);overflow-wrap:anywhere;min-width:0}
.chat-message-meta time{white-space:nowrap;flex:none}
.chat-message-text{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-form{display:flex;flex:none;gap:9px;align-items:stretch}
.chat-form textarea{height:52px;min-height:44px;max-height:100px;padding:12px 14px;font-size:13px;border-radius:9px}
.chat-form button{flex:none}
.chat-status{flex:none;min-height:14px;color:var(--quiet);font-size:9px;line-height:1.6}
.group-view .message-actions .secondary-actions{gap:15px}
.group-view .message-notes{font-size:9px}
.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}
.button-secondary{background:#162740;border:1px solid #304565;color:var(--blue);box-shadow:none}
.button-secondary:hover{background:#213753}
.identity-dialog{width:min(620px,calc(100% - 32px));}
.identity-dialog details{border-top:1px solid var(--line);margin-top:17px;padding-top:15px}
.identity-dialog summary{font-size:12px;color:var(--blue);cursor:pointer}
.identity-dialog label{display:block;font-size:11px;color:var(--muted);margin:14px 0 7px}
.identity-dialog input:not([type=checkbox]),.identity-dialog textarea{display:block;flex:none;width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 11px;background:#080f1d;color:var(--ink);font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.identity-dialog input[type=file]{font-family:inherit;font-size:11px}
.identity-dialog textarea{resize:vertical;min-height:70px;max-height:220px}
.identity-dialog .button{margin-top:13px}
.identity-help{font-size:11px;line-height:1.75;color:var(--muted);margin:13px 0}
.identity-fingerprint{display:block;padding:12px;background:#080f1d;border:1px solid var(--line);border-radius:7px;color:var(--blue);font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;margin-top:16px}
.identity-status{font-size:11px;line-height:1.7;color:var(--muted);margin:5px 0 12px}
.identity-status.error-message{color:var(--danger)}
.link-identity-section{border-top:1px solid var(--line);margin-top:18px}
@media(max-width:600px){
 .header-actions{gap:12px}.header-actions>.quiet-button{font-size:11px}
 .compose-switch{margin-bottom:13px}.compose-switch button{padding:6px 13px;font-size:10px}
 .group-intro{padding:22px;gap:14px}.group-intro h2{font-size:23px}.group-intro p{font-size:12px}
 .group-view{gap:8px}.group-view .message-heading h1{font-size:23px;letter-spacing:-.7px}.group-view .message-heading .intro-detail{font-size:10px;line-height:1.5}
 .group-meta{gap:7px}.identity-chip{font-size:9px;max-width:calc(100% - 72px)}.short-ids{font-size:9px}
 .room-id{width:100%;margin:0;font-size:8px}.group-view .message-meta{font-size:8px;margin:0;flex-direction:row}
 .chat-log{padding:10px;gap:8px;border-radius:10px}.chat-message{padding:6px 8px;max-width:100%}.chat-message-text{font-size:13px}
 .chat-message-meta{gap:7px;font-size:8px}.chat-form{gap:7px}.chat-form textarea{height:47px;min-height:40px;padding:10px 11px;font-size:12px}
 .chat-form button{padding:10px 12px}.chat-status{font-size:8px}
 .group-view .message-footnote{font-size:8px}.group-view .message-notes{gap:2px}
}
@media(max-height:680px){.compose-switch{margin-bottom:9px}.compose-switch button{padding:5px 12px}.compose-view .view-intro .eyebrow{display:none}.group-intro{padding:20px;gap:12px}.group-glyph{font-size:28px}.group-intro p{font-size:11px}}
@media(max-height:520px){
 .compose-switch{margin:0 15px 0 0;vertical-align:middle}.compose-view .view-intro{display:flex;align-items:center}.compose-view .view-intro h1{font-size:25px}
 .group-intro{padding:16px;gap:8px}.group-intro h2{font-size:19px}.group-intro p{font-size:10px;line-height:1.5}.group-glyph{display:none}.group-intro>span:last-child{font-size:8px}
 .group-view{gap:5px}.group-view .message-heading h1{font-size:21px}.group-view .message-heading .intro-detail{display:none}.group-meta{flex-wrap:nowrap}.identity-chip{font-size:8px}.room-id{width:auto;margin-left:auto;font-size:8px;max-width:38%}
 .peer-list{max-height:23px}.peer-chip{font-size:8px;padding:2px 5px}.chat-panel{gap:4px}.chat-log{padding:7px;gap:5px}.chat-form textarea{height:34px;min-height:30px;padding:6px 10px;font-size:11px}
 .chat-message{padding:4px 7px}.chat-message-text{font-size:12px;line-height:1.5}.chat-message-meta{margin-bottom:2px}
 .chat-status{font-size:8px;min-height:11px}.group-view .message-notes{display:none}
}

.message-sender{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:none;color:var(--muted);font-size:10px;line-height:1.5}
#sender-caption{flex:none}
.message-sender .identity-chip{min-width:0;max-width:100%}
.message-sender .short-ids{margin-left:auto}
@media(max-width:600px){.message-sender{gap:6px;font-size:9px}.message-sender .identity-chip{font-size:8px;padding:5px 7px;max-width:100%}.message-sender .short-ids{font-size:8px}}
@media(max-height:520px){.message-sender{gap:7px;font-size:8px}.message-sender .identity-chip{font-size:8px;padding:3px 6px}.message-sender .short-ids{font-size:8px}}

.site-footer{flex-wrap:wrap;align-items:center;row-gap:6px}
.stats-summary{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 13px;margin-left:auto;padding:0;background:none;color:var(--quiet);font-size:inherit;line-height:1.5;text-align:right;border-radius:4px}
.stats-summary strong{color:var(--muted);font-weight:550;font-variant-numeric:tabular-nums}
.stats-summary:hover,.stats-summary:hover strong{color:var(--blue)}
.stats-grid{display:grid;gap:0;margin:20px 0 14px}
.stats-grid>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;min-width:0;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.stats-grid strong{grid-column:2;grid-row:1;font-size:26px;font-weight:500;color:var(--blue);font-variant-numeric:tabular-nums;white-space:nowrap}.stats-grid strong.long-count{font-size:18px}
.stats-grid span{grid-column:1;grid-row:1;font-size:11px;line-height:1.5;color:var(--muted)}
.stats-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px}
.stats-actions p{margin:0;font-size:10px}
.stats-actions button{flex:none}
#stats-dialog .privacy-content{margin-top:0}
@media(max-width:600px){.stats-summary{gap:5px 10px;font-size:8px}.stats-grid{margin-top:18px}.stats-grid>div{gap:12px}.stats-grid strong{font-size:22px}.stats-grid strong.long-count{font-size:12px}.stats-grid span{font-size:10px}.stats-actions{align-items:flex-start}.stats-actions p{font-size:9px}}
@media(max-height:520px){.stats-summary{font-size:8px}.site-footer{row-gap:3px}.stats-grid{margin-top:17px}.stats-grid strong{font-size:24px}}
@media(max-width:600px) and (min-height:521px) and (max-height:680px){.group-intro{padding:14px 18px;gap:8px}.group-glyph{font-size:22px}}

/* Current membership and locally observed room activity. */
.participants-panel{display:flex;align-items:center;flex:none;gap:12px;min-width:0}
.participants-button{display:inline-flex;align-items:center;flex:none;gap:7px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#101d31;color:var(--muted);font-size:10px;line-height:1.5;white-space:nowrap}
.participants-button:hover{border-color:#456394;color:var(--ink)}
.participants-button strong{color:var(--blue);font-weight:550;font-variant-numeric:tabular-nums}
.participants-more{font-size:9px;color:var(--quiet);margin-left:4px}
.participants-panel .peer-list{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;padding:2px 0;max-height:none}
.participants-panel .peer-chip{max-width:none;white-space:nowrap;overflow-wrap:normal}
.peer-chip[data-self=true]{border-color:#304767;color:var(--blue)}
.peer-chip[data-status=connecting],.peer-chip[data-status=reconnecting]{color:var(--quiet);border-style:dashed}
.participants-list{list-style:none;margin:20px 0 0;padding:0}
.participant-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px 16px;padding:13px 0;border-bottom:1px solid var(--line-soft)}
.participant-name{font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--blue);overflow-wrap:anywhere;min-width:0}
.participant-status{font-size:10px;line-height:1.8;color:var(--muted);white-space:nowrap}
.participant-status[data-status=connecting],.participant-status[data-status=reconnecting]{color:var(--quiet)}
.participant-link{grid-column:1/-1;font-size:9px;color:var(--muted)}
.participants-note{font-size:10px}
.chat-notice{display:flex;align-items:baseline;align-self:stretch;justify-content:center;gap:10px;padding:5px 0;color:var(--quiet);font-size:10px;line-height:1.6;text-align:center}
.chat-notice-label{overflow-wrap:anywhere;min-width:0}
.chat-notice-identity{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted)}
.chat-notice time{flex:none;font-size:9px;white-space:nowrap}
@media(max-width:600px){.participants-panel{gap:8px}.participants-button{font-size:9px;gap:5px;padding:5px 7px}.participants-more{display:none}.participant-row{gap:5px 10px}.participant-name{font-size:10px}.participant-status{font-size:9px}.chat-notice{font-size:9px;gap:7px}.chat-notice time{font-size:8px}}
@media(max-height:520px){.participants-panel{gap:8px}.participants-button{padding:3px 6px;font-size:8px;gap:5px}.participants-more{font-size:8px}.participants-panel .peer-list{padding:0}.chat-notice{font-size:8px;padding:3px 0}.chat-notice time{font-size:8px}}

/* Encrypted files are explicitly selected, received, and saved. */
.attachment-composer{flex:none;min-width:0}.attachment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--quiet);font-size:9px}.attach-button{display:inline-flex;align-items:center;gap:5px;padding:4px 0;color:var(--blue);font-size:11px}.attach-button>span{font-size:17px;line-height:1}.attachment-drafts{display:flex;flex:none;gap:6px;max-width:100%;overflow-x:auto;padding:3px 0}.attachment-drafts:empty{display:none}.attachment-draft{display:flex;flex:none;align-items:center;gap:8px;max-width:220px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:10px;color:var(--muted)}.attachment-draft-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-remove{flex:none;background:transparent;color:var(--muted);font-size:16px;padding:0 3px}.attachment-remove:hover{color:var(--ink)}
.message-attachments{flex:0 1 auto;max-height:32%;overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:0}.attachment-card{display:flex;flex:none;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#101c30;min-width:0;max-width:100%;white-space:normal}.attachment-details{flex:1;min-width:0}.attachment-name{font-size:12px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}.attachment-description{font-size:9px;line-height:1.6;color:var(--muted)}.attachment-action{flex:none;padding:6px 9px;border:1px solid #385172;border-radius:5px;color:var(--blue);background:#162740;font-size:10px}.attachment-action:disabled{cursor:default}.attachment-progress{display:block;width:100%;height:5px;margin-top:5px;accent-color:var(--blue)}.attachment-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-width:430px;min-width:0}.attachment-notice{font-size:9px;color:var(--quiet);line-height:1.5}.chat-form .chat-attach{padding:0 8px;font-size:23px;border:1px solid var(--line);border-radius:7px}.bundle-progress{display:flex;flex-direction:column;gap:8px;margin:auto 0;color:var(--muted);font-size:12px}.bundle-progress progress{width:100%;height:6px;accent-color:var(--blue)}.bundle-progress>span{font-size:10px}
@media(max-width:600px){.attachment-toolbar{font-size:8px}.attach-button{font-size:10px}.attachment-draft{max-width:170px;font-size:9px}.attachment-card{padding:7px 8px;gap:8px}.attachment-name{font-size:11px}.attachment-description,.attachment-notice{font-size:8px}.attachment-action{font-size:9px;padding:5px 6px}.chat-form .chat-attach{padding:0 7px;font-size:21px}.attachment-list{max-width:100%}.message-attachments{max-height:35%}}
@media(max-height:520px){.attachment-toolbar{font-size:8px}.attach-button{font-size:9px;padding:2px 0}.attachment-drafts{padding:1px 0}.attachment-draft{padding:3px 6px;font-size:8px;max-width:190px}.attachment-card{padding:5px 7px;gap:8px}.attachment-name{font-size:10px}.attachment-description,.attachment-notice{font-size:8px}.attachment-action{font-size:8px;padding:4px 6px}.attachment-list{margin-top:5px;gap:4px}.chat-form .chat-attach{font-size:19px;padding:0 7px}.message-attachments{max-height:38%}}

.message-view.files-only .message-attachments{flex:1;max-height:none;min-height:0}
@media(max-width:600px) and (max-height:680px){.compose-view:has(.attachment-draft){gap:10px}.compose-view:has(.attachment-draft) .message-field{min-height:70px;gap:6px}.compose-view:has(.attachment-draft) textarea{min-height:44px;padding-top:10px;padding-bottom:10px}}

.attachment-forget{flex:none;padding:5px 2px;background:transparent;color:var(--muted);font-size:9px}.attachment-forget:hover{color:var(--ink)}

.chat-delivery{margin-top:6px;font-size:10px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}

/* Live rooms put the conversation first; the landing page keeps its original layout. */
body[data-phase=live] .app-shell{padding:14px 28px 12px;gap:12px}
body[data-phase=live] .main-content{align-items:stretch}
body[data-phase=live] .message-view{gap:10px}
body[data-phase=live] .message-heading{gap:12px}
body[data-phase=live] .message-heading>div:first-child{flex:1;min-width:0}
body[data-phase=live] .message-heading h1{font-size:24px;line-height:1.25}
body[data-phase=live] .message-heading .eyebrow{display:none}
.session-details-button{flex:none;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
.session-toolbar{display:flex;align-items:center;gap:12px;flex:none;min-width:0}
.session-toolbar .participants-panel{flex:1;min-width:0}
.session-toolbar .message-actions{margin-left:auto;gap:16px;flex-wrap:nowrap}
.session-toolbar .secondary-actions{gap:14px}
.session-toolbar .message-actions .button{min-height:40px;padding:8px 12px}
.session-toolbar .message-actions .share-label{font:inherit}
.session-status{flex:none;font-size:11px;line-height:1.5;color:var(--muted)}
.session-details-content{display:flex;flex-direction:column;gap:18px;margin-top:18px;min-width:0}
.session-details-content .intro-detail{margin:0;font-size:13px;line-height:1.65}
.session-details-content .group-meta{flex-wrap:wrap;gap:10px}
.session-details-content .room-id{width:100%;max-width:100%;margin:0;font-size:10px;text-align:left}
.session-details-content .identity-chip{max-width:100%;font-size:11px}
.session-details-content .short-ids{font-size:12px;min-height:36px}
.session-details-content .message-meta{flex-direction:column;align-items:flex-start;font-size:12px;gap:6px}
.session-details-content .plain-label,.session-details-content .message-footnote,.session-details-content .attachment-notice{font-size:12px;line-height:1.7;white-space:normal}
.session-details-content .message-notes{display:flex;gap:8px}
.session-details-content .site-footer{border-top:1px solid var(--line);padding-top:16px;gap:10px;font-size:10px}
.session-details-content .stats-summary{font-size:10px}
body[data-phase=live][data-room-mode=group] .app-shell{height:min(100dvh,var(--held-viewport-height,100dvh));transform:translateY(var(--held-viewport-top,0px))}
body[data-phase=live][data-room-mode=group] .watcher-stat{display:none}
body[data-phase=live][data-room-mode=group] .chat-panel{min-height:0;gap:8px}
body[data-phase=live][data-room-mode=group] .chat-log{min-height:0}
body[data-phase=live][data-room-mode=group] .chat-form textarea{height:52px;min-height:48px;max-height:132px;font-size:16px;line-height:1.5;padding:12px}
body[data-phase=live][data-room-mode=group] .chat-form button{min-height:48px}
body[data-phase=live][data-room-mode=group] .chat-message-text{font-size:15px;line-height:1.65}
body[data-phase=live][data-room-mode=group][data-keyboard=open] .site-header{display:none}
/* Immutable messages read like documents, including their full attachment list. */
body[data-phase=live]:not([data-room-mode=group]){height:auto;min-height:100%;overflow:auto}
body[data-phase=live]:not([data-room-mode=group]) .app-shell{height:auto;min-height:100dvh}
body[data-phase=live]:not([data-room-mode=group]) .main-content{flex:1 0 auto}
body[data-phase=live]:not([data-room-mode=group]) .message-view{height:auto;max-height:none;min-height:70dvh}
body[data-phase=live]:not([data-room-mode=group]) .session-toolbar{position:sticky;top:0;z-index:2;background:var(--bg);padding:8px 0;border-bottom:1px solid var(--line-soft)}
body[data-phase=live]:not([data-room-mode=group]) .message-paper{flex:1 0 auto;min-height:50dvh;overflow:visible}
body[data-phase=live]:not([data-room-mode=group]) .message-attachments,
body[data-phase=live]:not([data-room-mode=group]) .message-view.files-only .message-attachments{flex:0 0 auto;max-height:none;overflow:visible}
@media(max-width:600px){
 body[data-phase=live] .app-shell{padding:10px 12px max(8px,env(safe-area-inset-bottom));gap:10px}
 body[data-phase=live] .site-header{min-height:36px}
 body[data-phase=live] .header-actions{gap:14px}
 body[data-phase=live] .header-actions .quiet-button{min-height:40px}
 body[data-phase=live] .message-heading h1{font-size:20px;letter-spacing:-.5px}
 body[data-phase=live] .message-heading{gap:8px}
 body[data-phase=live] .watcher-stat{padding-left:9px}
 body[data-phase=live] .watcher-stat strong{font-size:19px}
 body[data-phase=live] .watcher-stat span{margin-top:3px}
 .session-toolbar{gap:8px}
 .session-toolbar .peer-list{display:none}
 .session-toolbar .participants-button{font-size:11px;min-height:40px;padding:8px}
 .session-toolbar .message-actions{gap:8px}
 .session-toolbar .message-actions .quiet-button{min-height:40px;font-size:11px;padding:8px 2px}
 .session-toolbar .secondary-actions{gap:10px}
 .session-toolbar .message-actions .button{font-size:11px;min-height:40px;padding:8px 10px}
 .session-toolbar .message-actions .button svg{width:15px;height:15px}
 body[data-phase=live][data-room-mode=group] .chat-log{border-radius:10px;padding:10px}
 body[data-phase=live][data-room-mode=group] .chat-message-text{font-size:15px}
 body[data-phase=live][data-room-mode=group] .chat-form{gap:7px}
 body[data-phase=live][data-room-mode=group] .chat-form button{padding:10px 12px}
 body[data-phase=live][data-room-mode=group] .chat-form .chat-attach{padding:0 11px}
 body[data-phase=live]:not([data-room-mode=group]) .message-paper{padding:18px;font-size:17px}
 body[data-phase=live] .message-sender .identity-chip{font-size:10px}
}
@media(max-height:520px){
 body[data-phase=live] .app-shell{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom));gap:6px}
 body[data-phase=live] .message-view{gap:6px}
 body[data-phase=live] .message-heading h1{font-size:19px}
 body[data-phase=live] .brand-tagline{display:none}
 body[data-phase=live] .site-header{min-height:26px}
 body[data-phase=live] .header-actions .quiet-button{min-height:28px;padding:4px 0}
 body[data-phase=live] .session-details-button{min-height:34px;padding:6px 10px}
}

body[data-phase=live] .app-shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-top:max(10px,env(safe-area-inset-top))}
body[data-phase=live] .chat-status{font-size:11px;line-height:1.5}

/* Sharing controls keep their meaning on small screens. */
.compose-start{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.compose-start .compose-switch{margin:0;flex:none}
.pairing-receive{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--blue);font-size:12px;white-space:nowrap;border-radius:9px}
.pairing-receive svg{width:17px;height:17px}
.share-actions{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
.copy-link-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px!important;white-space:nowrap}
.copy-link-button svg{width:17px;height:17px}
.pairing-share{min-height:44px!important;padding:11px 17px!important;gap:8px;white-space:nowrap}
.pairing-share .pairing-share-label{display:inline;font-size:inherit;line-height:inherit}
.pairing-dialog{width:min(490px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.pairing-dialog .intro-detail{max-width:none;font-size:13px}
.pairing-options{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.pairing-methods{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.pairing-methods>.pairing-help{margin:0 0 4px}
.pairing-method{display:flex;align-items:center;gap:13px;width:100%;padding:16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);transition:border-color .15s,background .15s}
.pairing-method:hover{background:#13213a;border-color:#526c94}
.pairing-method>svg{width:27px;height:27px;color:var(--blue)}
.pairing-method>span:not(.pairing-method-arrow){display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.pairing-method strong{font-size:14px;font-weight:600;line-height:1.4}
.pairing-method small{font-size:12px;color:var(--muted);line-height:1.6}
.pairing-method-arrow{font-size:18px;color:var(--blue)}
.pairing-code-form{display:flex;flex-direction:column;gap:10px;margin-top:10px;padding-top:16px;border-top:1px solid var(--line-soft)}
.pairing-dialog label{font-size:12px;line-height:1.6;color:var(--muted)}
.pairing-code-form input,.pairing-code-panel input{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);padding:13px 12px;font:16px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.pairing-code-form input::placeholder{font-family:inherit;font-size:13px;color:var(--quiet)}
.pairing-code-form .button{align-self:flex-start}
.pairing-code-panel{margin-top:20px}
.pairing-code-panel input{margin-top:8px;color:var(--blue);font-size:20px;letter-spacing:.4px;text-align:center}
.pairing-help{font-size:12px;color:var(--muted);line-height:1.7;margin-top:14px;overflow-wrap:anywhere}
.pairing-help strong,.pairing-instructions strong{font-weight:550;color:var(--ink)}
.pairing-help a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.pairing-qr-panel{margin-top:20px;text-align:center}
#pairing-qr{display:block;width:min(264px,100%);height:auto;margin:auto;border-radius:6px;image-rendering:pixelated}
.pairing-instructions{margin:18px 0 0;padding-left:20px;font-size:12px;line-height:1.7;color:var(--muted);text-align:left}
.pairing-instructions li+li{margin-top:7px}
.pairing-scanner-panel{margin-top:18px}
#pairing-camera{display:block;width:100%;max-height:280px;aspect-ratio:1;object-fit:cover;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.pairing-scanner-panel .button{margin-top:12px}
.pairing-confirm-panel{margin-top:18px;padding:14px;border:1px solid #385271;border-radius:12px;background:var(--surface)}
.pairing-confirm-panel>.pairing-help:first-child{margin:0}
.pairing-verification{display:block;font:600 30px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:4px;color:var(--blue);text-align:center;margin:13px 0;overflow-wrap:anywhere}
.pairing-match{display:flex;align-items:flex-start;gap:8px}
.pairing-match input{flex:none;accent-color:var(--blue);width:16px;height:16px;margin:2px 0 0}
#pairing-approve{margin-top:14px;width:100%}
.pairing-status-row{display:flex;align-items:baseline;gap:14px;margin-top:18px;min-width:0}
.pairing-status{flex:1;min-width:0;font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.pairing-status-row:has(.pairing-status:empty):has(.pairing-countdown[hidden]){display:none}
.pairing-countdown{flex:none;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--blue);font-variant-numeric:tabular-nums;margin-left:auto}
#pairing-error{margin-top:12px}
.pairing-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:8px;color:var(--blue);font-size:12px}
.pairing-storage-note{font-size:11px;border-top:1px solid var(--line);padding-top:14px;margin-top:20px;color:var(--quiet)}
@media(max-width:600px){
 .compose-start{gap:8px;margin-bottom:13px}.pairing-receive{font-size:11px;padding:8px;min-height:40px;gap:5px}
 .share-actions{gap:3px}.copy-link-button{width:44px;min-height:44px!important;padding:8px!important}.copy-link-button .share-label{display:none}
 .pairing-share{padding:10px 12px!important;font-size:12px!important}.pairing-share .pairing-share-label{display:inline}
 .pairing-dialog{padding:20px}.pairing-dialog h2{font-size:21px}.pairing-dialog .intro-detail{font-size:12px}
 .pairing-dialog .button{min-height:44px;font-size:12px;padding:12px 14px}
 .pairing-method{gap:10px;padding:13px}.pairing-method strong{font-size:13px}.pairing-method small{font-size:11px}.pairing-method>svg{width:24px;height:24px}
 .pairing-code-panel input{font-size:17px;letter-spacing:0;padding:12px 8px}
 .pairing-verification{font-size:28px;letter-spacing:3px}
}
@media(max-width:360px){
 .session-toolbar .secondary-actions{gap:6px}.session-toolbar .message-actions{gap:5px}.session-toolbar .share-actions{gap:0}
 .pairing-share{padding:10px!important;gap:6px}.pairing-share svg{width:15px;height:15px}
 .pairing-dialog{padding:17px}.pairing-dialog h2{font-size:20px}.pairing-code-panel input{font-size:15px}
 .compose-start .compose-switch button{padding-left:10px;padding-right:10px}.pairing-receive{padding-left:7px;padding-right:7px}
}
@media(max-height:680px){.compose-start{margin-bottom:9px}}
@media(max-height:520px){
 .compose-view .view-intro{gap:12px;flex-wrap:wrap}.compose-start{margin:0;gap:10px;flex:1;max-width:340px}
 .pairing-receive{min-height:32px;padding:5px 9px;font-size:10px}.pairing-dialog .intro-detail{display:block}.pairing-dialog .eyebrow{display:block}
}
