:root {
  --accent: #d7192a;
  --on-accent: #ffffff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="dark"] {
  --bg: #0e0e10; --panel: #17171a; --border: #26262b; --bubble: #1e1e23; --quote: #2a2a30; --photo: #2a2a30;
  --text: #f2f2f4; --muted: #a0a0a8; --icon: #c8c8ce; --input: #0e0e10; --input-border: #2c2c32;
  --chip: #1e1e23; --chip-border: #3a3a42; --mention: #ff8a92; --divider: #1c1c20; --overlay: rgba(0,0,0,.72);
  --hover: #24242a; --danger: #ff8a92; --mark: #5a1a20;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eeeff2; --panel: #ffffff; --border: #dcdce1; --bubble: #ffffff; --quote: #f0f0f3; --photo: #e3e3e8;
  --text: #141416; --muted: #5c5c66; --icon: #3a3a42; --input: #f4f4f6; --input-border: #d4d4da;
  --chip: #ffffff; --chip-border: #d4d4da; --mention: #c0142a; --divider: #e2e2e7; --overlay: rgba(0,0,0,.5);
  --hover: #f0f0f3; --danger: #c0142a; --mark: #ffd7db;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; position: fixed; inset: 0; width: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; font-size: 15px; }
body { overscroll-behavior: none; }
/* Без клавиатуры чат прибит к краям экрана (top+bottom), без единиц vh:
   на iPhone в режиме приложения 100vh/100dvh короче экрана на высоту статус-бара. */
#app { position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
/* С клавиатурой - высота видимой области над ней */
body.kb #app { bottom: auto; height: var(--app-h); transform: translateY(var(--app-top, 0px)); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; font-size: 16px; color: var(--text); }
a { color: var(--mention); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex-shrink: 0; }

/* общие элементы */
.boot { flex: 1; display: flex; align-items: center; justify-content: center; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; letter-spacing: .5px; }
.logo.big { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; }
.btn { height: 50px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn:disabled { opacity: .5; }
.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn.small { height: 40px; font-size: 14px; border-radius: 10px; width: auto; padding: 0 14px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--chip-border); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input { height: 50px; border: 1px solid var(--input-border); border-radius: 14px; background: var(--input); padding: 0 16px; width: 100%; }
.err { color: var(--danger); font-size: 14px; min-height: 18px; }
.muted { color: var(--muted); }
.iconbtn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--icon); display: flex; align-items: center; justify-content: center; border-radius: 12px; padding: 0; flex-shrink: 0; }
.iconbtn:active { background: var(--hover); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; overflow: hidden; background-size: cover; background-position: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.c0 { background: #2f4a6b; } .c1 { background: #5a3d6e; } .c2 { background: #3d5e45; } .c3 { background: #6b5a2f; }
.c4 { background: #7a1d24; } .c5 { background: #2f5f66; } .c6 { background: #6b3a2f; } .c7 { background: #4a4a6b; }
[data-theme="light"] .c0 { background: #3b6aa8; } [data-theme="light"] .c1 { background: #7b4fa0; } [data-theme="light"] .c2 { background: #3f7a4f; } [data-theme="light"] .c3 { background: #8a6d22; }
[data-theme="light"] .c4 { background: #a3222d; } [data-theme="light"] .c5 { background: #2f7a84; } [data-theme="light"] .c6 { background: #94492f; } [data-theme="light"] .c7 { background: #55558a; }
.n0 { color: #7fb2ff; } .n1 { color: #d39bff; } .n2 { color: #7fd69a; } .n3 { color: #e8c470; } .n4 { color: #ff8a92; } .n5 { color: #6fd3dd; } .n6 { color: #ffa47f; } .n7 { color: #a9a9ff; }
[data-theme="light"] .n0 { color: #1f5fbf; } [data-theme="light"] .n1 { color: #7a3fb0; } [data-theme="light"] .n2 { color: #2c7a43; } [data-theme="light"] .n3 { color: #8a6000; }
[data-theme="light"] .n4 { color: #b0101f; } [data-theme="light"] .n5 { color: #11707a; } [data-theme="light"] .n6 { color: #a04010; } [data-theme="light"] .n7 { color: #4a4ab0; }

/* экраны входа */
.center-screen { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: calc(48px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); max-width: 460px; width: 100%; margin: 0 auto; }
.center-screen h1 { margin: 0; font-size: 25px; line-height: 1.25; text-align: center; }
.center-screen p { margin: 0; line-height: 1.5; color: var(--muted); text-align: center; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.step b { width: 26px; height: 26px; border-radius: 50%; background: var(--quote); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* блокировка */
.dots { display: flex; gap: 14px; justify-content: center; height: 18px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.dots span.on { background: var(--text); border-color: var(--text); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.keypad button { height: 76px; border-radius: 50%; border: 0; background: var(--panel); font-size: 28px; font-weight: 500; }
.keypad button:active { background: var(--hover); }
.keypad button.ghost { background: transparent; font-size: 15px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* чат */
.topbar { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-top)) 6px 8px 12px; background: var(--panel); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.topbar .title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; padding-left: 6px; border: 0; background: none; text-align: left; }
.topbar .title b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title span { font-size: 13px; color: var(--muted); }
.pinned { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 16px; background: var(--panel); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.pinned .ptext { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.pinned .ptext small { font-size: 12px; font-weight: 600; color: var(--mention); }
.pinned .ptext span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinned svg.pin { color: var(--mention); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--quote); font-size: 14px; flex-shrink: 0; }
.banner span { flex: 1; }

.list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; position: relative; }
.list .loadmore { align-self: center; font-size: 13px; color: var(--muted); padding: 8px; }
.day { align-self: center; font-size: 12px; color: var(--muted); background: var(--divider); padding: 5px 12px; border-radius: 999px; margin: 8px 0; }
.row { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; position: relative; touch-action: pan-y; }
.row.me { align-self: flex-end; flex-direction: row-reverse; }
.row .avatar.spacer { visibility: hidden; }
.row.grouped { margin-top: -1px; }
.row.flash .bubble { outline: 2px solid var(--accent); outline-offset: 2px; }
.col { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.row.me .col { align-items: flex-end; }
.bubble { background: var(--bubble); border-radius: 16px 16px 16px 4px; padding: 7px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 64px; max-width: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.row.me .bubble { background: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; }
.bubble .author { font-size: 13px; font-weight: 600; }
.bubble .text { font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.bubble .text a { color: inherit; text-decoration: underline; }
.row.me .bubble .text .mention { color: #fff; text-decoration: underline; }
.mention { color: var(--mention); font-weight: 600; }
.bubble .meta { font-size: 11px; color: var(--muted); align-self: flex-end; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.row.me .bubble .meta { color: #fff; }
.bubble.deleted { font-style: italic; color: var(--muted); background: transparent; border: 1px dashed var(--chip-border); }
.row.me .bubble.deleted { background: transparent; color: var(--muted); }
.row.me .bubble.deleted .meta { color: var(--muted); }
.quote { background: var(--quote); border-radius: 8px; padding: 5px 9px; display: flex; flex-direction: column; gap: 1px; border: 0; text-align: left; max-width: 100%; min-width: 0; }
.row.me .quote { background: rgba(255,255,255,.18); color: #fff; }
.quote b { font-size: 12px; }
.quote span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.row.me .quote span, .row.me .quote b { color: #fff; }
.photos { display: grid; gap: 3px; border-radius: 12px; overflow: hidden; margin: 0 -7px; width: min(260px, 66vw); }
.photos.n1 { grid-template-columns: 1fr; }
.photos.n2, .photos.n4 { grid-template-columns: 1fr 1fr; }
.photos.n3, .photos.n5, .photos.n6, .photos.n7, .photos.n8, .photos.n9, .photos.n10 { grid-template-columns: 1fr 1fr 1fr; }
.photos button { border: 0; padding: 0; background: var(--photo); display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.photos.n1 button { aspect-ratio: auto; max-height: 340px; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble.has-photo { padding-top: 4px; }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; }
.reacts button { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--chip); border: 1px solid var(--chip-border); display: flex; gap: 4px; align-items: center; height: 26px; }
.reacts button.mine { border-color: var(--accent); }
.readinfo { font-size: 11px; color: var(--muted); padding-right: 2px; border: 0; background: none; }

.voice { display: flex; align-items: center; gap: 10px; width: 240px; max-width: 100%; }
.voice .play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.row.me .voice .play { background: #fff; color: var(--accent); }
.voice .wave { flex: 0 0 30px; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.voice .wave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: currentColor; opacity: .4; }
.voice .wave i.on { opacity: 1; }
.voice .vmeta { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; }
.voice .speed { border: 1px solid currentColor; background: transparent; border-radius: 8px; font-size: 11px; padding: 1px 6px; opacity: .85; }

.newmsgs { position: absolute; right: 14px; bottom: 90px; z-index: 5; border: 0; background: var(--accent); color: #fff; border-radius: 999px; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }

/* композер */
.composer { background: var(--panel); border-top: 1px solid var(--border); padding: 8px 10px max(8px, calc(var(--safe-bottom) - 6px)); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; position: relative; }
body.kb .composer { padding-bottom: 8px; }
.composer .ctx { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.composer .ctx svg { color: var(--accent); }
.composer .ctx div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.composer .ctx b { font-size: 13px; color: var(--mention); }
.composer .ctx span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .line { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--input-border); border-radius: 22px; background: var(--input); padding: 11px 16px; line-height: 20px; outline: none; }
.sendbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sendbtn.rec { transform: scale(1.35); }
.tray { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.tray .th { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--photo); }
.tray .th img { width: 100%; height: 100%; object-fit: cover; }
.tray .th button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; }
.tray .th .prog { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.recbar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px; flex: 1; }
.recbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.recbar .hint { flex: 1; text-align: center; color: var(--muted); font-size: 14px; }
@keyframes blink { 50% { opacity: .2; } }
.suggest { position: absolute; left: 10px; right: 10px; bottom: 100%; margin-bottom: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.suggest button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; background: none; text-align: left; font-size: 15px; min-height: 48px; }
.suggest button:active, .suggest button.sel { background: var(--hover); }

/* листы и меню */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; flex-direction: column; }
.menu { margin: auto 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 360px; width: calc(100% - 32px); align-self: center; }
.menu .rbar { display: flex; gap: 6px; background: var(--bubble); border: 1px solid var(--chip-border); border-radius: 999px; padding: 6px; align-self: center; }
.menu .rbar button { width: 50px; height: 50px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; padding: 0; }
.menu .rbar button.mine { background: var(--quote); }
.menu .preview { pointer-events: none; max-height: 30vh; overflow: hidden; border-radius: 16px; }
.menu .items { background: var(--bubble); border: 1px solid var(--chip-border); border-radius: 16px; overflow: hidden; }
.menu .items button { width: 100%; height: 50px; border: 0; border-bottom: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 16px; text-align: left; }
.menu .items button:last-child { border-bottom: 0; }
.menu .items button small { color: var(--muted); font-size: 13px; }
.menu .items button.danger { color: var(--danger); }
.sheet { margin-top: auto; background: var(--panel); border-radius: 20px 20px 0 0; max-height: 80vh; overflow-y: auto; padding: 8px 0 calc(16px + var(--safe-bottom)); }
.sheet h3 { margin: 8px 16px 8px; font-size: 16px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--chip-border); margin: 4px auto 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 56px; }
.person .avatar { width: 40px; height: 40px; font-size: 15px; }
.person .pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person .pinfo b { font-weight: 500; font-size: 15px; }
.person .pinfo span { font-size: 12px; color: var(--muted); }

/* просмотр фото */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; color: #fff; }
.viewer .vtop { display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-top)) 8px 8px; position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.viewer .vtop .iconbtn { color: #fff; }
.viewer .vtop .vt { flex: 1; font-size: 14px; display: flex; flex-direction: column; }
.viewer .vtop .vt small { color: #c8c8ce; font-size: 12px; }
.viewer .stage { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.viewer .stage img { max-width: 100%; max-height: 100%; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.viewer .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 16px calc(16px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 15px; line-height: 1.4; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 64px; border: 0; background: rgba(0,0,0,.35); color: #fff; border-radius: 12px; }
.viewer .nav.prev { left: 6px; } .viewer .nav.next { right: 6px; }

/* страницы */
.page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page .body { flex: 1; overflow-y: auto; padding: 16px 16px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 20px; }
.page .body.flush { padding: 0 0 calc(24px + var(--safe-bottom)); gap: 0; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section > .label { font-size: 13px; color: var(--muted); padding: 0 4px; }
.group { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); min-height: 56px; }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .grow small { font-size: 12px; color: var(--muted); }
button.item { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; text-align: left; font-size: 15px; }
.switch { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--chip-border); padding: 3px; display: flex; flex-shrink: 0; transition: background .15s; }
.switch span { width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.times { display: flex; gap: 10px; padding: 12px 14px; }
.times label { display: flex; flex-direction: column; gap: 4px; flex: 1; font-size: 12px; color: var(--muted); }
.times input { height: 42px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--input); padding: 0 10px; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile .avatar { width: 72px; height: 72px; font-size: 28px; }
.profile .pcol { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.profile .pcol .btns { display: flex; gap: 8px; flex-wrap: wrap; }

.searchbar { flex: 1; height: 44px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--input); padding: 0 14px; min-width: 0; outline: none; }
.result { display: flex; gap: 12px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; width: 100%; }
.result .avatar { width: 40px; height: 40px; font-size: 15px; }
.result .rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result .rhead { display: flex; justify-content: space-between; gap: 8px; }
.result .rhead b { font-size: 15px; }
.result .rhead span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.result .rtext { font-size: 14px; line-height: 1.4; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
mark { background: var(--mark); color: var(--text); border-radius: 3px; padding: 0 2px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

.gal-title { font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 16px 6px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.gal button { aspect-ratio: 1 / 1; border: 0; padding: 0; background: var(--photo); overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }

.invite-link { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px dashed var(--chip-border); border-radius: 12px; padding: 10px 12px; }
.invite-link code { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--quote); color: var(--muted); }
.tag.admin { background: var(--accent); color: #fff; }
.staff-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px 66px; }
.sess { font-size: 12px; color: var(--muted); padding: 0 14px 10px 66px; display: flex; flex-direction: column; gap: 6px; }
.sess div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.sess button { border: 0; background: none; color: var(--danger); font-size: 12px; padding: 4px 0; }

.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); transform: translateX(-50%); background: #2a2a30; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 100; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
