@font-face { font-family: tsans; src: url(/fonts/tsans-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: rubik; src: url(/fonts/rubik-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
:root { --bg: #f7f1e6; --card: #fff; --ink: #2b2118; --muted: #7b6c5c; --gold: #e8b25c; --gold2: #d9a24a; --line: rgba(43,33,24,.12); --ok: #2f7d4a; --bad: #a3352a; --blue: #1d9bf0; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 tsans, rubik, system-ui, sans-serif; }
html[lang=en] body { font-family: rubik, system-ui, sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--ink); color: #fdf8ee; }
.top h1 { flex: 1; margin: 0; font-size: 18px; }
.top a { color: var(--gold); text-decoration: none; }
.me { font-size: 13px; opacity: .85; }
main { max-width: 760px; margin: 0 auto; padding: 16px; padding-bottom: 120px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.note { background: #fff6e3; border-color: #f0d9a8; }
.note b { display: block; margin-bottom: 4px; }
.rooms { display: grid; gap: 10px; }
.room { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.room .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 22px; flex: none; }
.room .tx { flex: 1; min-width: 0; }
.room h3 { margin: 0; font-size: 16px; }
.room p { margin: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ { font-size: 13px; color: var(--muted); text-align: center; flex: none; }
.occ b { display: block; font-size: 17px; color: var(--ink); }
.occ.full b { color: var(--bad); }
.btn { border: 0; border-radius: 12px; padding: 10px 16px; background: var(--gold); color: var(--ink); cursor: pointer; font-weight: 700; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.dark { background: var(--ink); color: #fdf8ee; }
.btn.bad { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.p { position: relative; text-align: center; padding: 12px 6px 8px; }
.av { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 24px; text-transform: uppercase; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .12s; }
.p.speaking .av { outline-color: #3ccf6e; }
.p .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.chk { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-inline-start: 3px; }
.p .st { font-size: 12px; color: var(--muted); min-height: 18px; }
.p .mod { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.p .mod button { font-size: 11px; padding: 3px 7px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.listeners { color: var(--muted); font-size: 13px; }
.bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(253,248,238,.96); border-top: 1px solid var(--line); }
.ptt { user-select: none; -webkit-user-select: none; touch-action: none; }
.ptt.on { background: #3ccf6e; }
.chat { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.msg { font-size: 14px; } .msg b { direction: ltr; unicode-bidi: isolate; }
.chatform { display: flex; gap: 8px; margin-top: 8px; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fdf8ee; padding: 10px 16px; border-radius: 12px; z-index: 9; max-width: 90vw; text-align: center; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #efe6d4; color: var(--muted); }
