@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #0c0d12; --bg-2: #111218; --panel: #15171f; --panel-2: #1a1d26; --panel-3: #222633;
  --line: #20242f; --line-2: #2a2f3d;
  --ink: #f2f4f8; --ink-2: #c9cedb; --ink-3: #98a0b3; --ink-4: #6d7488;
  --accent: #5b8def; --accent-2: #8b7cf6; --accent-ink: #fff; --accent-soft: rgba(91, 141, 239, .14);
  --ok: #3fb27f; --warn: #e0a43b; --live: #e5534b; --idle: #e0a43b; --dnd: #e5534b;
  --glow: rgba(91, 141, 239, .28);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7fb; --bg-2: #eef0f6; --panel: #ffffff; --panel-2: #f3f5fa; --panel-3: #e9ecf4;
  --line: #e2e5ee; --line-2: #d3d8e4;
  --ink: #12141b; --ink-2: #353a49; --ink-3: #5d6477; --ink-4: #8a91a3;
  --accent: #3f74e0; --accent-2: #7461ee; --accent-soft: rgba(63, 116, 224, .1);
  --glow: rgba(63, 116, 224, .18); --shadow: 0 24px 60px -25px rgba(30, 40, 80, .3);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb; --bg-2: #eef0f6; --panel: #ffffff; --panel-2: #f3f5fa; --panel-3: #e9ecf4;
    --line: #e2e5ee; --line-2: #d3d8e4;
    --ink: #12141b; --ink-2: #353a49; --ink-3: #5d6477; --ink-4: #8a91a3;
    --accent: #3f74e0; --accent-2: #7461ee; --accent-soft: rgba(63, 116, 224, .1);
    --glow: rgba(63, 116, 224, .18); --shadow: 0 24px 60px -25px rgba(30, 40, 80, .3);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.7 "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-weight: 700; box-shadow: 0 8px 24px -10px var(--glow);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--block { width: 100%; padding-block: 11px; }
.btn--ghost { background: var(--panel-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }
.btn--danger { background: var(--live); box-shadow: none; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--panel-3); color: var(--ink); }
.icon-btn.is-on { color: var(--live); }
.icon-btn.is-active { color: var(--accent); background: var(--accent-soft); }
.only-mobile { display: none; }

.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth {
  position: fixed; inset: 0; overflow: auto; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(600px 400px at 80% 0%, rgba(91, 141, 239, .18), transparent 70%),
    radial-gradient(500px 400px at 10% 100%, rgba(139, 124, 246, .14), transparent 70%),
    var(--bg);
}
.auth__card {
  width: min(420px, 100%); padding: 28px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 11px; }
.brand small { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 6px; margin-inline-start: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px; border-radius: 9px; cursor: pointer; color: var(--ink-3); font-weight: 700; }
.seg button[aria-selected="true"] { background: var(--panel-3); color: var(--ink); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form input, .composer textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form input[dir="ltr"] { text-align: left; }
.form__error { color: var(--live); font-size: 13px; }
.auth__foot { text-align: center; }

.shell { position: fixed; inset: 0; display: grid; grid-template-columns: 72px 260px minmax(0, 1fr); }
.rail {
  background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 0; overflow-y: auto; scrollbar-width: none; border-inline-end: 1px solid var(--line);
}
.rail::-webkit-scrollbar { display: none; }
.rail__sep { width: 32px; height: 2px; border-radius: 2px; background: var(--line-2); margin: 2px 0; }
.srv {
  position: relative; width: 48px; height: 48px; flex: none; border-radius: 16px; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer; overflow: visible;
  background: var(--panel-2); color: var(--ink-2); font-weight: 800; font-size: 17px;
  transition: border-radius .18s, background .18s, color .18s;
}
.srv img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.srv:hover, .srv.is-on { border-radius: 14px; background: var(--accent); color: #fff; }
.srv::before {
  content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 4px; height: 0;
  border-radius: 0 4px 4px 0; background: var(--ink); transform: translateY(-50%); transition: height .18s;
}
[dir="rtl"] .srv::before { border-radius: 4px 0 0 4px; }
.srv:hover::before { height: 18px; }
.srv.is-on::before { height: 36px; }
.srv--add { color: var(--ok); background: var(--panel-2); }
.srv--add:hover { background: var(--ok); }
.srv .badge-voice { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); border: 3px solid var(--bg); }

.side { background: var(--panel); display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--line); }
.side__head { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__head span { overflow: hidden; text-overflow: ellipsis; }
.side__list { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.cat {
  display: flex; align-items: center; gap: 4px; width: 100%; padding: 14px 6px 4px; border: 0; background: none; cursor: pointer;
  color: var(--ink-4); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-align: start;
}
.cat:hover { color: var(--ink-2); }
.cat svg { width: 12px; height: 12px; transition: transform .15s; }
.cat.is-collapsed svg { transform: rotate(90deg); }
[dir="rtl"] .cat.is-collapsed svg { transform: rotate(90deg); }
.ch {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; margin: 1px 0;
  border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--ink-3); text-align: start;
}
.ch svg { width: 18px; height: 18px; color: var(--ink-4); }
.ch span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch:hover { background: var(--panel-3); color: var(--ink-2); }
.ch.is-on { background: var(--panel-3); color: var(--ink); }
.ch.is-unread { color: var(--ink); font-weight: 700; }
.ch.is-live svg { color: var(--ok); }
.ch .count { font-size: 11px; color: var(--ink-4); }
.vlist { display: grid; gap: 1px; padding: 0 30px 4px 0; }
[dir="ltr"] .vlist { padding: 0 0 4px 30px; }
.vstatus { padding: 0 30px 2px 0; color: var(--ink-4); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="ltr"] .vstatus { padding: 0 0 2px 30px; }
.vuser { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; color: var(--ink-3); font-size: 13.5px; }
.vuser span.name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vuser svg { width: 15px; height: 15px; color: var(--ink-4); }
.vuser .live-tag { font-size: 10px; font-weight: 800; color: #fff; background: var(--live); padding: 0 6px; border-radius: 5px; }

.av {
  --h: 220; position: relative; flex: none; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: hsl(var(--h) 55% 46%); color: #fff; font-weight: 800; font-size: 13px;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av--xs { width: 22px; height: 22px; font-size: 10px; }
.av--lg { width: 40px; height: 40px; font-size: 15px; }
.av--xl { width: 84px; height: 84px; font-size: 30px; }
.av.is-speaking { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ok); }
.av-wrap { position: relative; flex: none; display: inline-grid; }
.av-wrap .pres { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--panel); background: var(--ink-4); }
.pres--online { background: var(--ok) !important; }
.pres--idle { background: var(--idle) !important; }
.pres--dnd { background: var(--dnd) !important; }

.callbar { flex: none; margin: 0 8px 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.callbar__row { display: flex; align-items: center; gap: 8px; }
.callbar__state { flex: 1; min-width: 0; line-height: 1.4; }
.callbar__state b { display: block; font-size: 13px; color: var(--ok); }
.callbar__state b.is-warn { color: var(--warn); }
.callbar__state span { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.callbar__state span:hover { color: var(--ink); text-decoration: underline; }
.callbar__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.callbar__tools .btn { padding: 6px; }

.me { flex: none; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--bg-2); border-top: 1px solid var(--line); }
.me__who { flex: 1; min-width: 0; line-height: 1.3; }
.me__who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__who span { display: block; font-size: 11.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .icon-btn { width: 32px; height: 32px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.main__head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.main__title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.main__title svg { color: var(--ink-4); }
.main__title .topic { font-weight: 400; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-inline-start: 1px solid var(--line-2); padding-inline-start: 10px; }
.conn { font-size: 12px; color: var(--warn); display: inline-flex; align-items: center; gap: 6px; }
.main__body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }

.empty { margin: auto; display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; max-width: 420px; }
.empty .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty .big svg { width: 30px; height: 30px; }

.msgs { flex: 1; overflow-y: auto; padding: 16px 0 8px; display: flex; flex-direction: column; }
.msgs__top { padding: 16px 20px 24px; display: grid; gap: 6px; }
.msgs__top .big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); }
.msgs__top .big svg { width: 28px; height: 28px; }
.day { display: flex; align-items: center; gap: 12px; margin: 14px 20px 6px; color: var(--ink-4); font-size: 12px; font-weight: 700; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 2px 20px; }
.msg:hover { background: color-mix(in srgb, var(--panel-3) 45%, transparent); }
.msg--head { margin-top: 12px; padding-top: 4px; }
.msg__gutter { grid-row: span 2; }
.msg__time-inline { font-size: 10.5px; color: var(--ink-4); opacity: 0; text-align: center; padding-top: 4px; direction: ltr; }
.msg:hover .msg__time-inline { opacity: 1; }
.msg__meta { display: flex; align-items: baseline; gap: 8px; }
.msg__meta b { font-weight: 700; color: var(--ink); }
.msg__meta time { font-size: 11.5px; color: var(--ink-4); }
.msg__body { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.msg__body .edited { font-size: 10.5px; color: var(--ink-4); margin-inline-start: 4px; }
.msg--pending .msg__body { opacity: .55; }
.msg--failed .msg__body { color: var(--live); }
.msg--system { color: var(--ink-3); font-size: 13.5px; }
.msg--system .msg__gutter { display: grid; place-items: center; color: var(--ok); }
.msg__reply { font-size: 12.5px; color: var(--ink-4); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.atts img { max-width: min(360px, 100%); max-height: 280px; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.att-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; padding: 0 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.react.is-me { border-color: var(--accent); background: var(--accent-soft); }
.loader { display: grid; place-items: center; padding: 12px; }

.composer { flex: none; padding: 0 16px 16px; }
.composer__box { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
[dir="rtl"] .composer__box { padding: 6px 10px 6px 6px; }
.composer textarea { border: 0; background: transparent; resize: none; max-height: 200px; padding: 6px 2px; box-shadow: none !important; line-height: 1.6; unicode-bidi: plaintext; }
.composer__typing { height: 20px; font-size: 12px; color: var(--ink-3); padding: 2px 4px 0; }
.composer__locked { padding: 10px 14px; border-radius: 12px; background: var(--panel-2); color: var(--ink-3); font-size: 13.5px; }

.call { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #07080b; color: #f2f4f8; }
:root[data-theme="light"] .call { background: #10121a; }
.call__stage { flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.call__grid { flex: 1; min-height: 0; display: grid; gap: 12px; align-content: center; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); overflow-y: auto; }
.call__grid.has-stage { flex: none; grid-template-columns: repeat(auto-fill, 140px); justify-content: center; align-content: start; max-height: 140px; }
.tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: #171a23; display: grid; place-items: center;
  border: 2px solid transparent; transition: border-color .12s; overflow: hidden;
}
.has-stage .tile { aspect-ratio: 16 / 11; }
.has-stage .tile .av--xl { width: 48px; height: 48px; font-size: 18px; }
.tile.is-speaking { border-color: var(--ok); }
.tile__name { position: absolute; bottom: 8px; inset-inline-start: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile__name svg { width: 14px; height: 14px; color: #ff8b84; }
.tile__vol { position: absolute; top: 8px; inset-inline-end: 8px; opacity: 0; transition: opacity .15s; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); }
.tile:hover .tile__vol, .tile__vol:focus-within { opacity: 1; }
.tile__vol input { width: 90px; accent-color: var(--accent); }
.tile__vol svg { width: 14px; height: 14px; }
.feeds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.feed-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font-size: 13px; }
.feed-chip:hover { background: rgba(255,255,255,.12); }
.feed-chip.is-on { background: var(--accent); border-color: transparent; }
.feed-chip.is-p2p { cursor: help; opacity: .7; }
.feed-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.stage { flex: 1; min-height: 0; position: relative; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage__bar { position: absolute; top: 10px; inset-inline: 10px; display: flex; align-items: center; gap: 8px; }
.stage__bar span { padding: 3px 10px; border-radius: 8px; background: rgba(0,0,0,.6); font-size: 13px; }
.stage__bar .spacer { flex: 1; }
.stage__bar .icon-btn { background: rgba(0,0,0,.6); color: #fff; }
.stage__wait { position: absolute; display: grid; justify-items: center; gap: 10px; color: #c9cedb; }
.stage__paused { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(7, 8, 11, .82); font-weight: 700; }
.call__bar { flex: none; display: flex; justify-content: center; gap: 10px; padding: 12px 16px 18px; flex-wrap: wrap; }
.cbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #222633; color: #f2f4f8; transition: background .15s, transform .15s; }
.cbtn:hover { background: #2c3141; }
.cbtn:active { transform: scale(.96); }
.cbtn svg { width: 22px; height: 22px; }
.cbtn.is-off { background: #f2f4f8; color: #111; }
.cbtn.is-active { background: var(--accent); }
.cbtn--leave { background: var(--live); width: 64px; border-radius: 26px; }
.cbtn--leave:hover { background: #f0645c; }
.call__notice { margin: 0 auto; padding: 8px 14px; border-radius: 10px; background: rgba(224, 164, 59, .14); color: #f1c47a; font-size: 13px; text-align: center; max-width: 560px; }
.call__join { margin: auto; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.call__join .avs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 360px; }

.dialog { border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: min(400px, calc(100% - 32px)); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.dialog input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); outline: none; text-align: left; }
.dialog__actions { display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--panel-3); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; }
.toast.is-error { border-color: color-mix(in srgb, var(--live) 50%, var(--line-2)); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

@media (max-width: 820px) {
  .only-mobile { display: inline-grid; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail, .side { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform .22s ease; }
  .rail { inset-inline-start: 0; width: 72px; }
  .side { inset-inline-start: 72px; width: min(280px, calc(100vw - 88px)); }
  [dir="rtl"] .shell:not(.is-drawer) .rail, [dir="rtl"] .shell:not(.is-drawer) .side { transform: translateX(calc(100% + 360px)); }
  [dir="ltr"] .shell:not(.is-drawer) .rail, [dir="ltr"] .shell:not(.is-drawer) .side { transform: translateX(calc(-100% - 360px)); }
  .scrim { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); }
  .msg { padding-inline: 12px; column-gap: 10px; }
  .composer { padding: 0 10px 10px; }
  .call__stage { padding: 10px; }
  .call__grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .cbtn { width: 48px; height: 48px; }
  .tile__vol { opacity: 1; }
}
