@font-face{font-family:Unbounded;src:url("fonts/Unbounded.ttf") format("truetype");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/IBMPlexMono-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/IBMPlexMono-Medium.ttf") format("truetype");font-weight:500 700;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#080c09;--panel:#111612;--line:#263328;--green:#9cec91;--text:#e9eee9;--muted:#88948a;--grid:rgba(93,145,95,.075)}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}body{background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:48px 48px}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#141b16;color:var(--text);border-radius:10px;padding:11px 15px;min-height:44px}button:hover{border-color:#789c76}button:disabled{opacity:.5;cursor:wait}input,textarea{width:100%;color:var(--text);background:#101612;border:1px solid var(--line);border-radius:10px;padding:13px;outline:none}input:focus,textarea:focus{border-color:var(--green)}input[type=search]{appearance:none}label{display:block;color:#bec8bf;font-size:14px;margin:16px 0}label input{margin-top:8px}h1,h2,p{margin:0}h1{font-size:34px;letter-spacing:-1.1px}h2{font-size:19px}a{color:var(--green)}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:750;letter-spacing:3px}.mark{font-family:monospace;color:var(--green);font-weight:400;font-size:30px;border:1px solid #486244;padding:5px;letter-spacing:-4px;padding-right:10px}.network-dot,.blink{width:6px;height:6px;background:var(--green);border-radius:50%;margin-left:auto}.eyebrow,.section-line,.channel{font:11px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--green);letter-spacing:1.2px}.section-line{display:flex;justify-content:space-between;margin:28px 0 22px;font-size:10px}.section-line span:last-child{color:var(--muted)}.muted{color:var(--muted);line-height:1.5}.auth{max-width:420px;padding:70px 24px 35px;margin:auto}.auth .eyebrow{margin:24px 0 55px}.auth h1{margin-bottom:10px}.auth form{margin-top:32px}.primary{background:var(--green);color:#102411;border:none;width:100%;font-weight:650;display:flex;justify-content:space-between;margin-top:22px}.footnote{font-size:12px;line-height:1.6;color:var(--muted);margin-top:24px}.error{color:#ffa99d;font-size:14px;line-height:1.5;margin-top:14px}.shell{height:100dvh;max-width:1460px;margin:auto;display:grid;grid-template-columns:350px 1fr;border-left:1px solid var(--line);border-right:1px solid var(--line)}#sidebar{background:#0a100c;display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0}.side-header{padding:28px 22px 18px}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.square{font-size:24px;padding:4px;min-width:44px;display:inline-flex;justify-content:center;align-items:center;background:transparent}.title-row .square{color:var(--green);border-color:#4b6547}#chat-list{padding:4px 13px;overflow-y:auto;flex:1}.chat-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:17px 12px;border:1px solid transparent;border-bottom-color:#1d2820;border-radius:10px;margin-bottom:4px;background:transparent}.chat-row.active{background:#142117;border-color:#63845d}.avatar{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:#202b22;color:#c5d1c6;font-size:20px;font-weight:600}.chat-info{min-width:0;flex:1}.chat-info strong{display:block;margin-bottom:7px;font-size:16px}.chat-info small{display:block;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{background:var(--green);color:#0a260b;min-width:21px;height:21px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:bold}.side-footer{border-top:1px solid var(--line);padding:12px 16px max(12px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;flex-wrap:wrap}.side-footer button{border:0;background:transparent;font-size:18px;padding:8px}.side-footer button span{font-size:12px}.side-footer>span{font-size:11px;color:var(--muted);margin-left:auto}#conversation{min-width:0;min-height:0}#empty-chat{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px}#empty-chat p{color:var(--muted);font-size:14px}.large-mark{font:80px monospace;color:#314a34;letter-spacing:-15px;margin-right:20px}#chat-view{height:100%;display:flex;flex-direction:column}.chat-header{background:#0b110df5;padding:17px 24px;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.chat-header h2{margin-bottom:5px}#back{display:none}.channel{margin-left:auto;color:#5d785d;font-size:10px}#messages{flex:1;overflow-y:auto;padding:28px 26px 18px;display:flex;flex-direction:column;gap:15px;overscroll-behavior:contain;scroll-behavior:smooth}.message{max-width:min(80%,480px);align-self:flex-start;background:#151d17f2;border:1px solid #354337;border-radius:5px 15px 15px;padding:12px 14px;overflow-wrap:anywhere;position:relative}.message.mine{align-self:flex-end;background:#14281a;border-color:#426440;border-radius:15px 5px 15px 15px}.message .sender{display:block;font-size:12px;font-weight:600;color:var(--green);margin-bottom:7px}.message .body{white-space:pre-wrap;font-size:15px;line-height:1.5}.message .meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;color:var(--muted);font:10px monospace;margin-top:8px}.message .delete{font:11px sans-serif;min-height:30px;padding:4px 8px;border:0;background:transparent;color:#9cae9e}.message.deleted .body{font-style:italic;color:var(--muted)}.message img{max-width:100%;max-height:380px;border-radius:7px;display:block}.message audio{max-width:100%;width:270px;height:45px}.date-separator{align-self:center;font:10px monospace;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:5px 11px}.load-more{align-self:center;font-size:12px}.empty-note{text-align:center;color:var(--muted);margin:auto;font-size:14px}#composer{display:flex;gap:9px;align-items:flex-end;padding:14px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#0b110df5}#message-input{resize:none;max-height:130px;line-height:22px;padding:11px 13px;background:#151c17}#composer .square{height:46px;color:var(--green);border-color:#344a34;flex-shrink:0}.send{height:46px;min-width:46px;padding:8px;color:#0b240c;background:var(--green);font-size:25px;border:0}#record.recording{background:#682a2a;color:#fff;border-color:#ff8989}#upload-status{padding:8px 20px;background:#101911;font-size:12px}dialog{width:min(620px,calc(100% - 24px));max-height:90dvh;background:#0d150f;color:var(--text);border:1px solid #4c6548;border-radius:16px;padding:22px}dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#modal-content{font-size:14px;line-height:1.6}#modal-content button{margin:5px 5px 5px 0}#modal-content h3{margin:22px 0 8px}.panel-row{border-bottom:1px solid var(--line);padding:12px 0}.panel-row small{display:block;color:var(--muted);overflow-wrap:anywhere}.invite-output{width:100%;margin-top:10px;font-size:12px}.admin-transcript{max-height:48dvh;overflow:auto;background:#090e0a;padding:12px;border:1px solid var(--line)}.admin-message{border-bottom:1px solid var(--line);padding:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.admin-message img{max-width:100%;max-height:200px}.admin-message audio{max-width:100%}.deleted-label{color:#ffb0a2;font:11px monospace}#toast{position:fixed;z-index:100;bottom:100px;left:50%;transform:translateX(-50%);background:#26352a;color:#efffef;border:1px solid #718d6b;border-radius:10px;padding:12px 18px;max-width:90%;font-size:14px;box-shadow:0 8px 30px #0008}button:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:700px){.shell{display:block;border:0}#sidebar{height:100%}.side-header{padding-top:max(24px,env(safe-area-inset-top));padding-left:22px;padding-right:22px}#conversation{display:none;height:100%}.shell.chat-open #sidebar{display:none}.shell.chat-open #conversation{display:block}#empty-chat{display:none}#back{display:inline-flex;font-size:33px;border:0;margin-left:-10px}.chat-header{padding: max(13px,env(safe-area-inset-top)) 16px 13px;gap:10px}.chat-header .avatar{width:38px;height:38px;font-size:18px}.chat-header h2{font-size:17px}.channel{font-size:9px}#messages{padding:22px 15px 15px}.message{max-width:86%;padding:10px 12px}#composer{padding-left:10px;padding-right:10px;gap:6px}#composer .square{min-width:40px}.auth{padding-top:max(55px,env(safe-area-inset-top))}.side-footer{min-height:70px}.message .body{font-size:16px}.brand{font-size:25px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* SECTION — typography and motion, v1.1 */
:root{--font-display:Unbounded,-apple-system,sans-serif;--font-mono:"IBM Plex Mono",ui-monospace,monospace;--ease-out:cubic-bezier(.2,.75,.25,1)}
.brand{font-family:var(--font-display);font-size:23px;font-weight:650;letter-spacing:1.2px;gap:11px}
.mark{font-family:var(--font-mono);font-size:26px;letter-spacing:-5px}
h1,h2{font-family:var(--font-display);font-weight:550;letter-spacing:-.6px}
h1{font-size:29px;line-height:1.35}h2{font-size:17px;line-height:1.4}
.auth h1{font-size:29px}.auth .brand{font-size:26px}.auth .eyebrow{font-size:10px;line-height:1.8;letter-spacing:.6px}
.eyebrow,.section-line,.channel,.message .meta,.date-separator{font-family:var(--font-mono)}
.eyebrow,.section-line,.channel{letter-spacing:.65px}.channel{font-size:9px}.section-line{font-size:9px}
button,label,.footnote,.side-footer>span{font-family:var(--font-mono)}
button{font-size:13px;font-weight:500;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s var(--ease-out)}
button:active{transform:scale(.97)}button:disabled{transform:none}
button:hover{box-shadow:0 0 0 1px rgba(156,236,145,.1)}
.square,.send{font-family:-apple-system,sans-serif}.square{font-size:24px}.send{font-size:25px}
.chat-row{position:relative;transition:background-color .24s,border-color .24s,transform .18s}
.chat-row.active{background:linear-gradient(110deg,#192b1d,#101b13);border-color:#6a9263;box-shadow:inset 3px 0 0 #9cec91}
.chat-info strong{font-family:var(--font-mono);font-size:15px;font-weight:500;letter-spacing:-.3px}
.chat-info small{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.35}
.avatar{font-family:var(--font-mono);font-size:20px;font-weight:400}.badge{font-family:var(--font-mono)}
input,textarea{transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus{box-shadow:0 0 0 3px rgba(156,236,145,.055)}
#search{font-family:var(--font-mono);font-size:13px}#message-input{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
.message .body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.05px;line-height:1.55}
.message .sender{font-family:var(--font-mono);font-weight:500;font-size:11px}.message .delete{font-family:var(--font-mono);font-size:10px}
.chat-header{box-shadow:0 6px 22px #0002}.chat-header h2{font-size:16px}.side-footer button span{font-size:10px}
.auth{animation:section-arrive .45s var(--ease-out) both}.shell{animation:section-arrive .35s var(--ease-out) both}
.message.fresh{animation:section-message .32s var(--ease-out) both;transform-origin:bottom left}.message.mine.fresh{transform-origin:bottom right}
.network-dot,.blink{box-shadow:0 0 9px #9cec9133;animation:section-online 4s ease-in-out infinite}
#record.recording{animation:section-record 1.2s ease-in-out infinite;box-shadow:0 0 0 5px #eb676718}
dialog[open]{animation:section-dialog .22s var(--ease-out) both}dialog::backdrop{animation:section-backdrop .2s ease both}
#toast:not([hidden]){animation:section-toast .2s var(--ease-out) both}
@keyframes section-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes section-message{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes section-online{0%,100%{box-shadow:0 0 5px #9cec9122}50%{box-shadow:0 0 11px #9cec9155}}
@keyframes section-record{0%,100%{box-shadow:0 0 0 2px #eb676720}50%{box-shadow:0 0 0 7px #eb676712}}
@keyframes section-dialog{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes section-backdrop{from{background:#0000;backdrop-filter:blur(0)}to{background:#000b;backdrop-filter:blur(8px)}}
@keyframes section-toast{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(max-width:700px){.brand{font-size:23px}.chat-header h2{font-size:14px}.chat-header .eyebrow{font-size:9px}.channel{font-size:8px;letter-spacing:0}.chat-info strong{font-size:15px}.section-line{margin-top:25px}.auth h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* SECTION 1.2: Cyrillic typography throughout conversations and input. */
html,body,input,textarea,#message-input,.message .body,.chat-info small,.muted,.empty-note,.admin-message{font-family:var(--font-mono);font-weight:400}
.message .body{font-size:15px;line-height:1.6;letter-spacing:-.2px}
#message-input{font-size:16px;line-height:24px;letter-spacing:-.25px}
.chat-info small{font-size:12px;line-height:1.45;letter-spacing:-.2px}
.chat-info strong{font-size:15px}
@media(max-width:700px){.message .body{font-size:15px}.chat-header h2{font-size:14px}}

/* SECTION 1.3: expressive Unbounded conversation typography. */
.message .body,#message-input{font-family:var(--font-display);font-weight:400;font-style:normal;letter-spacing:-.25px}
.message .body{font-size:13px;line-height:1.75}
#message-input{font-size:16px;line-height:26px;letter-spacing:-.45px}
.message.deleted .body{font-style:normal;font-size:12px}
@media(max-width:700px){.message .body{font-size:13px}.message.deleted .body{font-size:12px}}
