/* PureCore Чаты: тёмная сине-голубая тема в стиле сайта, mobile-first */
:root {
  --bg: #050b18; --bg2: #081226; --surface: #0c1a33; --surface2: #112243; --line: #1a3158;
  --text: #e8f1ff; --muted: #7f98c0; --blue: #2f7bff; --cyan: #22d3ee;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --mine: #1b4fb8; --mine2: #1e6fd0; --theirs: #112243;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
  --mine-text: var(--text);
  --bar: color-mix(in srgb, var(--bg2) 72%, transparent);
  --soft: color-mix(in srgb, var(--text) 78%, var(--muted));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, "Segoe UI", Inter, Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--muted); background: var(--bg); z-index: 100; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cyan); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- каркас ---------- */
/* строка сетки ровно по высоте окна (minmax(0,1fr)) и min-height: 0 у колонок и списков: иначе при длинной переписке
   или большом списке чатов колонки растягиваются по содержимому, вся страница «уезжает» и прокрутка с кнопками пропадают */
.app { display: grid; grid-template-columns: 100%; grid-template-rows: minmax(0, 1fr); height: 100dvh; background: var(--bg); }
.side, .chat { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.side { background: var(--bg2); border-right: 1px solid var(--line); }
.chat { background: radial-gradient(900px 400px at 60% -100px, #10306644, transparent), var(--bg); position: relative; }
@media (max-width: 819px) {
  .app .chat { position: fixed; inset: 0; height: auto; z-index: 30; transform: translateX(100%); transition: transform .22s ease; }
  body.has-island .app .chat { top: calc(60px + var(--safe-t)); }
  .app.open .chat { transform: none; }
}
@media (min-width: 820px) {
  .app { grid-template-columns: minmax(300px, 380px) 1fr; }
  .app .back { display: none; }
}

.bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(12px); min-height: 58px; }
.ibtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); flex: none; transition: background .12s, color .12s; }
.ibtn:hover, .ibtn:active { background: var(--surface2); color: var(--text); }
.ibtn.pri { background: var(--grad); color: #04122b; }
.search { flex: 1; min-width: 0; position: relative; }
.search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px 0 38px; outline: none; }
.search input:focus { border-color: #2f7bffaa; }
.search svg { position: absolute; left: 11px; top: 9px; color: var(--muted); width: 20px; height: 20px; }

.list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 calc(8px + var(--safe-b)); }
.row { display: flex; gap: 12px; align-items: center; padding: 9px 12px; cursor: pointer; border-radius: 0; position: relative; }
.row:hover { background: var(--surface); } .row.sel { background: color-mix(in srgb, var(--blue) 24%, var(--bg2)); }
.row .meta { flex: 1; min-width: 0; }
.row .t1 { display: flex; align-items: baseline; gap: 8px; }
.row .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.row .time { color: var(--muted); font-size: 12px; flex: none; }
.row .t2 { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.row .prev { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.row .prev b { color: var(--soft); font-weight: 550; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.badge.muted { background: #3a4d70; }
.empty { color: var(--muted); text-align: center; padding: 40px 20px; line-height: 1.6; }

.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #04122b; flex: none; position: relative; user-select: none; }
.av.sm { width: 36px; height: 36px; font-size: 14px; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--bg2); }

/* ---------- шапка чата ---------- */
.head { cursor: pointer; }
.head .info { flex: 1; min-width: 0; }
.head .ttl { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head .sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head .sub.on { color: var(--cyan); }

/* ---------- сообщения ---------- */
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: auto; }
.day { align-self: center; margin: 10px 0 6px; padding: 3px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); font-size: 12.5px; }
.sys { align-self: center; color: var(--muted); font-size: 12.5px; padding: 3px 10px; text-align: center; max-width: 85%; }
.m { max-width: min(78%, 560px); display: flex; flex-direction: column; }
.m.mine { align-self: flex-end; align-items: flex-end; }
.m.theirs { align-self: flex-start; }
.bub { position: relative; padding: 7px 11px 6px; border-radius: var(--radius, 16px); background: var(--theirs); border: 1px solid var(--line); word-break: break-word; white-space: pre-wrap; min-width: 64px; }
.m.mine .bub { background: linear-gradient(135deg, var(--mine), var(--mine2)); border-color: var(--mine2); color: var(--mine-text); }
.m.mine.first .bub { border-top-right-radius: 16px; } .m.mine:not(.last) .bub { border-bottom-right-radius: 6px; }
.m.theirs:not(.last) .bub { border-bottom-left-radius: 6px; }
.bub .who { font-weight: 650; font-size: 13px; margin-bottom: 1px; }
.bub .txt a { word-break: break-all; }
.bub .foot { float: right; margin: 6px 0 -2px 10px; font-size: 11px; display: flex; align-items: center; gap: 4px; line-height: 1; user-select: none; }
.bub .foot { color: var(--muted); }
.m.mine .foot { color: color-mix(in srgb, var(--mine-text) 72%, transparent); }
.foot .tick { width: 15px; height: 11px; stroke-width: 2.4; }
.foot .tick.rd { color: var(--cyan); }
.quote { border-left: 3px solid var(--cyan); background: #ffffff10; padding: 3px 8px; margin-bottom: 4px; border-radius: 4px; font-size: 13px; cursor: pointer; overflow: hidden; }
.quote b { display: block; color: var(--cyan); font-size: 12.5px; } .quote span { color: var(--soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bub img.pic { display: block; max-width: 100%; max-height: 340px; border-radius: 10px; margin: 1px 0 4px; cursor: zoom-in; background: #0004; }
.bub audio { width: 230px; max-width: 100%; height: 36px; margin: 2px 0; }
.filecard { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 0; color: inherit; text-decoration: none; min-width: 190px; }
.filecard .fi { width: 40px; height: 40px; border-radius: 12px; background: #ffffff1c; display: grid; place-items: center; flex: none; }
.filecard .fn { font-weight: 600; word-break: break-all; font-size: 14px; } .filecard .fs { font-size: 12px; opacity: .75; }
.callmsg { align-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.callmsg.bad { color: var(--bad); } .callmsg svg { width: 18px; height: 18px; }
.m.flash .bub { animation: fl 1.2s; } @keyframes fl { 0%, 60% { box-shadow: 0 0 0 3px #22d3ee88; } }
.edited { font-style: italic; }
.more { align-self: center; margin: 6px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }

.typing { height: 20px; padding: 0 16px; color: var(--cyan); font-size: 12.5px; flex: none; }

/* ---------- ввод ---------- */
.reply, .editing { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0b1730; border-top: 1px solid var(--line); }
.reply .quote { flex: 1; margin: 0; cursor: default; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(12px); }
.composer textarea { flex: 1; min-height: 42px; max-height: 140px; border-radius: 21px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; resize: none; outline: none; line-height: 1.35; overflow-y: auto; }
.composer textarea:focus { border-color: #2f7bffaa; }
.composer .ibtn { height: 42px; width: 42px; border-radius: 50%; }
.drop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #050b18d8; border: 2px dashed var(--cyan); border-radius: 12px; color: var(--cyan); font-size: 18px; pointer-events: none; }

.welcome { margin: auto; text-align: center; color: var(--muted); max-width: 360px; padding: 20px; line-height: 1.6; }
.welcome .big { font: 700 28px/1.2 ui-monospace, Consolas, monospace; color: var(--cyan); letter-spacing: .04em; margin: 8px 0 14px; user-select: all; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; }

/* ---------- окна и меню ---------- */
#layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#layer > * { pointer-events: auto; }
.scrim { position: fixed; inset: 0; background: #020611b8; backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px #000a; }
.modal h3 { margin: 0 0 12px; font-size: 18px; }
.modal .sp { height: 10px; }
.field { display: block; margin: 10px 0; } .field span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; outline: none; }
.field textarea { height: 76px; padding: 10px 12px; resize: none; }
.field input:focus, .field textarea:focus { border-color: #2f7bffaa; }
.btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.btn { height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); font-weight: 600; }
.btn.pri { background: var(--grad); color: #04122b; border: 0; } .btn.bad { color: var(--bad); border-color: #f8717155; } .btn:disabled { opacity: .5; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.err { color: var(--bad); font-size: 13.5px; min-height: 18px; margin-top: 6px; }
.found { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .chip { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; }
.chip button { border: 0; background: none; color: var(--muted); padding: 2px 6px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 8px 2px; } .mrow .meta { flex: 1; min-width: 0; } .mrow .role { color: var(--muted); font-size: 12.5px; }
.menu { position: fixed; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 40px #000a; animation: fade .1s; z-index: 70; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; }
.menu button:hover { background: var(--surface2); } .menu button.bad { color: var(--bad); } .menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--surface); border-right: 1px solid var(--line); padding: calc(14px + var(--safe-t)) 12px 14px; display: flex; flex-direction: column; gap: 4px; animation: slide .18s; z-index: 61; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
.drawer .me { padding: 8px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.drawer .me .num { font: 600 16px ui-monospace, Consolas, monospace; color: var(--cyan); letter-spacing: .05em; }
.drawer button { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border: 0; background: none; border-radius: 12px; text-align: left; font-weight: 550; }
.drawer button:hover { background: var(--surface2); } .drawer button svg { color: var(--cyan); }

#toasts { position: fixed; left: 0; right: 0; bottom: calc(80px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast { background: color-mix(in srgb, var(--surface2) 96%, transparent); color: var(--text); border: 1px solid var(--line); padding: 10px 16px; border-radius: 14px; max-width: min(92vw, 420px); box-shadow: 0 8px 30px #0008; animation: fade .15s; }
.toast.bad { border-color: #f8717188; }
.toast.up { display: flex; align-items: center; gap: 8px; pointer-events: auto; width: min(92vw, 380px); padding: 8px 8px 8px 16px; }
.toast.up .upinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.toast.up .upinfo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.up .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.toast.up .bar i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .2s; }

.lightbox { position: fixed; inset: 0; background: #000e; display: grid; place-items: center; z-index: 80; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }

/* ---------- звонки ---------- */
.call { position: fixed; inset: 0; z-index: 75; background: radial-gradient(900px 600px at 50% 0, #0f2a5c, #050b18 70%); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(30px + var(--safe-t)) 20px calc(34px + var(--safe-b)); }
.call .remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 0; }
.call .local { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); width: 108px; height: 150px; object-fit: contain; border-radius: 14px; border: 2px solid #ffffff55; background: #000; z-index: 2; transform: scaleX(-1); }
.call .top, .call .bottom { position: relative; z-index: 1; text-align: center; }
.call .nm { font-size: 26px; font-weight: 700; margin-top: 16px; text-shadow: 0 2px 10px #000a; } .call .st { color: #b8cdee; margin-top: 6px; text-shadow: 0 2px 10px #000a; }
.call .av { width: 110px; height: 110px; font-size: 44px; margin: 0 auto; }
.call.vid .av { display: none; }
.call .ctrl { display: flex; gap: 18px; justify-content: center; }
.call .cb { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #ffffff26; backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.call .cb.off { background: #fff; color: #050b18; } .call .cb.on { background: #22d3ee; color: #050b18; } .call .cb.end { background: #ef4444; } .call .cb.acc { background: #22c55e; }
.call .cb svg { width: 28px; height: 28px; }
.call .fp { color: #b8cdee; font-size: 12.5px; margin-top: 8px; opacity: .85; }

.p2pbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: #0a1630; }
.p2pbar b { color: var(--cyan); } .p2pbar .code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--text); }
.state { width: 9px; height: 9px; border-radius: 50%; background: #64748b; flex: none; } .state.on { background: var(--ok); } .state.wait { background: var(--warn); }
.lock { color: var(--cyan); }

/* --- реакции, голос, кнопка «вниз», запись */
.menu .reactrow { display: flex; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .reactrow button { width: auto; padding: 4px 6px; font-size: 22px; line-height: 1; border-radius: 10px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.rx { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: #ffffff10; color: var(--text); font-size: 13px; line-height: 1.5; }
.rx.me { background: #22d3ee26; border-color: #22d3ee88; }
.voice { display: flex; align-items: center; gap: 8px; }
.voice svg { color: var(--cyan); flex: none; width: 20px; height: 20px; }
.fab { position: absolute; right: 14px; bottom: calc(80px + var(--safe-b)); z-index: 6; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--text); display: grid; place-items: center; box-shadow: 0 6px 20px #0008; }
.fab[hidden] { display: none; }
.fab .cnt { position: absolute; top: -8px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grad); color: #04122b; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.composer.rec { align-items: center; }
.composer.rec .recinfo { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.prev .draft { color: #f87171; }
.hint.warn { color: #fbbf24; }

/* --- «остров» свёрнутого звонка и сайты PureCore внутри приложения */
.call .tl { position: absolute; left: 14px; top: calc(14px + var(--safe-t)); z-index: 3; display: flex; gap: 10px; }
.call .tl[hidden] { display: none; }
.call .cb.sm { width: 44px; height: 44px; }
.call .cb.sm svg { width: 22px; height: 22px; }
.call.min:not(.vid) { opacity: 0; pointer-events: none; z-index: -1; }
.call.min.vid { inset: auto 12px calc(88px + var(--safe-b)) auto; width: 118px; height: 158px; padding: 0; border-radius: 16px; overflow: hidden; z-index: 76; background: #000; border: 2px solid #ffffff44; box-shadow: 0 10px 30px #000a; cursor: pointer; }
.call.min .top, .call.min .bottom, .call.min .local, .call.min .tl { display: none; }
/* свёрнутое окошко перетаскивается (calls.js minDrag); экран собеседника — альбомное, чтобы его было видно */
.call.min.vid { touch-action: none; user-select: none; cursor: grab; }
.call.min.vid.dragging { cursor: grabbing; transition: none; box-shadow: 0 16px 40px #000c; }
.call.min.vid.rscreen { width: 256px; height: 160px; }
@media (max-width: 600px) { .call.min.vid.rscreen { width: 200px; height: 125px; } }
.island { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 10px; height: 46px; min-width: 232px; max-width: min(94vw, 360px); padding: 0 6px 0 7px; border-radius: 23px; background: #000; border: 1px solid #ffffff22; box-shadow: 0 10px 34px #000c, 0 0 0 1px #22d3ee22; color: #fff; cursor: pointer; animation: island .28s cubic-bezier(.2, 1.3, .4, 1); }
.island[hidden] { display: none; }
@keyframes island { from { transform: translateX(-50%) scale(.55); opacity: 0; } }
.island .av { width: 32px; height: 32px; font-size: 13px; }
.island .isl-m { flex: 1; min-width: 0; line-height: 1.15; }
.island .isl-n { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island .isl-t { font-size: 12px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.island .isl-b { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff1f; color: #fff; display: grid; place-items: center; flex: none; }
.island .isl-b.off { background: #fff; color: #000; }
.island .isl-b.end { background: #ef4444; }
.island .isl-b svg { width: 18px; height: 18px; }
body.has-island #app { padding-top: calc(60px + var(--safe-t)); box-sizing: border-box; }
body.has-island .bar { padding-top: 8px; }
body.site-open { }
.site { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; }
.site[hidden] { display: none; }
.site .sbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--bg2); flex: none; }
body.has-island .site .sbar { padding-top: calc(60px + var(--safe-t)); }
.site .schips { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.site .schips::-webkit-scrollbar { display: none; }
.schip { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13.5px; }
.schip.on { background: var(--grad); color: #04122b; border-color: transparent; font-weight: 650; }
.site .sframe { flex: 1; width: 100%; border: 0; background: #050b18; }

.site .sshow { display: none; position: absolute; top: calc(8px + var(--safe-t)); left: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff33; background: #000a; color: #fff; place-items: center; backdrop-filter: blur(8px); }
.site .sshow svg { transform: rotate(-90deg); }
.site.full .sbar { display: none; }
.site.full .sshow { display: grid; }
body.has-island .site.full .sshow { top: calc(62px + var(--safe-t)); }
body.has-island .site.full .sframe { margin-top: 0; }

/* нет связи с сервером: заметная полоска, пока идёт переподключение */
body.offline::before { content: "Нет соединения, подключаемся…"; position: fixed; top: 0; left: 0; right: 0; z-index: 96; padding: calc(3px + var(--safe-t)) 8px 3px; text-align: center; font-size: 12.5px; background: #7c2d12; color: #fff; pointer-events: none; }

.cloud .meter { height: 8px; border-radius: 6px; background: #0a1731; margin: 6px 0; overflow: hidden; }
.cloud .meter i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.cloud .meter i.warn { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; user-select: none; }
.av .dot { z-index: 2; }

/* --- групповой звонок: плитки участников */
.call.group .top .av { display: none; }
.call.group .top { padding-top: 4px; }
.call.group .top .nm { font-size: 18px; margin-top: 0; }
.call.group .stage { position: absolute; inset: calc(70px + var(--safe-t)) 6px calc(118px + var(--safe-b)); display: grid; gap: 6px; z-index: 0; }
.stage.n0 { display: none !important; }
.stage.n1 { grid-template: 1fr / 1fr; }
.stage.n2 { grid-template: 1fr / 1fr 1fr; }
@media (orientation: portrait) { .stage.n2 { grid-template: 1fr 1fr / 1fr; } }
.stage.n3 { grid-template: 1fr 1fr / 1fr 1fr; }
.stage.n3 .tile:nth-child(3) { grid-column: 1 / -1; }
.tile { position: relative; border-radius: 16px; overflow: hidden; background: #06101f; border: 1px solid #ffffff1f; min-width: 0; min-height: 0; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; }
.tile.hasvid video { opacity: 1; }
.tile .tph { position: absolute; inset: 0; display: grid; place-items: center; }
.tile.hasvid .tph { display: none; }
.tile .tph .av { width: 84px; height: 84px; font-size: 34px; }
.tile .tlabel { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 10px; background: #000b; font-size: 13px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.bad { outline: 2px solid #f59e0b; }
.call.group.min { opacity: 0; pointer-events: none; z-index: -1; }
.call .local { max-width: 40vw; }
.callbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0b2a1c; border-bottom: 1px solid #14532d; color: #bbf7d0; flex: none; }
.callbar .t { flex: 1; min-width: 0; font-size: 14px; }
.callbar .btn { height: 34px; padding: 0 14px; background: #22c55e; border: 0; color: #04210f; font-weight: 700; }
/* низкие экраны (телефон в горизонтали): меньше полей вокруг плиток */
@media (max-height: 560px) {
  .call.group .stage { inset: calc(46px + var(--safe-t)) 6px calc(78px + var(--safe-b)); }
  .call.group .top { padding-top: 0; }
  .call.group .top .nm { font-size: 15px; }
  .call.group .top .fp { display: none; }
  .call .cb { width: 50px; height: 50px; }
  .call { padding-top: calc(12px + var(--safe-t)); padding-bottom: calc(14px + var(--safe-b)); }
  .tile .tph .av { width: 56px; height: 56px; font-size: 24px; }
}

.call .diag { margin-top: 8px; padding: 4px 10px; border-radius: 10px; background: #000a; color: #a5f3fc; font: 11.5px/1.4 ui-monospace, Consolas, monospace; max-width: 92vw; word-break: break-word; }
.call .diag[hidden] { display: none; }
.call .nm { cursor: pointer; }

/* --- жалобы и модерация */
.radios { display: grid; gap: 2px; margin: 10px 0 6px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.radio:hover { background: var(--surface2); } .radio input { width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
.banbar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #3b0d0d; border-top: 1px solid #7f1d1d; color: #fecaca; font-size: 13.5px; flex: none; }
.composer textarea:disabled { opacity: .5; }
.modp { position: fixed; inset: 0; z-index: 56; background: var(--bg); display: flex; flex-direction: column; }
.modp[hidden] { display: none; }
.modp .mbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--bg2); flex: none; }
body.has-island .modp .mbar { padding-top: calc(60px + var(--safe-t)); }
.modp .mbar h3 { margin: 0; flex: 1; font-size: 17px; }
.modp .mtabs { display: flex; gap: 6px; padding: 8px 10px; flex: none; overflow-x: auto; }
.modp .mtab { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.modp .mtab.on { background: var(--grad); color: #04122b; border-color: transparent; font-weight: 650; }
.modp .mbody { flex: 1; overflow-y: auto; padding: 4px 12px calc(20px + var(--safe-b)); max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 10px 0; }
.mcard .mh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; }
.mcard .chip { padding: 2px 9px; border-radius: 99px; background: var(--surface2); font-size: 12px; font-weight: 500; border: 1px solid var(--line); }
.mcard .chip.warn { background: #422006; border-color: #92400e; color: #fde68a; }
.mcard .chip.bad { background: #3b0d0d; border-color: #7f1d1d; color: #fecaca; }
.mctx { margin: 10px 0; padding: 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.mctx .cm { padding: 6px 8px; border-radius: 10px; } .mctx .cm.flag { background: #3b0d0d; border: 1px solid #7f1d1d; }
.mctx .cm b { color: var(--cyan); font-weight: 600; } .mctx .cm .t { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.mctx img { max-width: 220px; max-height: 180px; border-radius: 8px; display: block; margin-top: 4px; }
.macts { display: flex; flex-wrap: wrap; gap: 6px; }
.macts .btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
.mempty { text-align: center; color: var(--muted); padding: 40px 10px; }
.mrow2 { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mrow2 .meta { flex: 1; min-width: 0; } .mrow2 .s { color: var(--muted); font-size: 12.5px; }
.modp select, .modal select { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 10px; }

/* ---------- показ экрана ---------- */
.call .sharebar { position: absolute; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #22d3ee; color: #050b18; font-weight: 600; font-size: 14px; box-shadow: 0 6px 24px #0008; white-space: nowrap; }
.call .sharebar[hidden] { display: none; }
.call .sharebar button { border: 0; border-radius: 10px; padding: 6px 12px; background: #050b18; color: #fff; font-weight: 600; cursor: pointer; }
.call .sharemenu { position: absolute; z-index: 4; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; min-width: 300px; box-shadow: 0 14px 40px #000a; animation: fade .1s; }
.call .sharemenu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; color: var(--text); cursor: pointer; }
.call .sharemenu button:hover { background: var(--surface2); }
.call .sharemenu b { display: block; font-size: 15px; } .call .sharemenu small { color: var(--muted); font-size: 12.5px; }
.call.rscreen .remote { object-fit: contain !important; background: #000; }
.call.rscreen .top .av { display: none; }
.stage .tile.screen { grid-column: 1 / -1; }
.stage .tile.screen video { object-fit: contain !important; }
.stage.focus { grid-template: 1fr / 1fr !important; }
.stage.focus .tile:not(.big) { display: none; }
.stage .tile.screen::after { content: "⤢"; position: absolute; right: 8px; top: 6px; font-size: 18px; color: #fff; opacity: .7; pointer-events: none; }

/* ---------- свой выбор экрана (приложение для Windows) ---------- */
.cappick { position: absolute; inset: 0; z-index: 6; background: #000b; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.cp-panel { width: min(980px, 100%); max-height: min(720px, 100%); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px #000c; overflow: hidden; }
.cp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-size: 18px; }
.cp-x { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.cp-x:hover { background: var(--surface2); color: var(--text); }
.cp-tabs { display: flex; gap: 6px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.cp-tabs button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: none; color: var(--muted); padding: 8px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.cp-tabs button.on { background: #22d3ee1f; border-color: var(--cyan); color: var(--text); }
.cp-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding: 14px 16px; align-content: start; }
.cp-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: 14px; background: var(--bg2); color: var(--text); text-align: left; cursor: pointer; min-width: 0; }
.cp-item:hover { border-color: var(--cyan); background: var(--surface2); }
.cp-item.min { opacity: .65; }
.cp-thumb { aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #000; display: grid; place-items: center; }
.cp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cp-noimg { display: grid; place-items: center; gap: 4px; color: var(--muted); }
.cp-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-app { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 15px; }
.cp-empty { grid-column: 1 / -1; color: var(--muted); padding: 30px; text-align: center; }
.cp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cp-mode { display: flex; gap: 6px; }
.cp-mode button { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: none; color: var(--text); padding: 6px 12px; border-radius: 12px; cursor: pointer; }
.cp-mode button small { color: var(--muted); font-size: 11.5px; }
.cp-mode button.on { border-color: var(--cyan); background: #22d3ee1f; }
.cp-cancel { border: 0; background: var(--surface2); color: var(--text); padding: 10px 18px; border-radius: 12px; font-weight: 600; cursor: pointer; }

/* ---------- стикеры ---------- */
.stkpanel { position: fixed; z-index: 70; width: min(360px, calc(100vw - 12px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px #000a; display: flex; flex-direction: column; overflow: hidden; animation: fade .1s; }
.stk-body { height: 260px; overflow-y: auto; padding: 8px; }
.stk-emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.stk-emoji button { border: 0; background: none; font-size: 22px; padding: 5px 0; border-radius: 8px; cursor: pointer; }
.stk-emoji button:hover { background: var(--surface2); }
/* сетка стикеров: клетки строго квадратные и одинаковые — картинка любого размера (высокая, широкая GIF)
   вписывается внутрь и не распирает клетку (minmax(0, 1fr) + min-width: 0, иначе ширина картинки растягивает колонку) */
.stk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stk-grid.big { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); max-height: 50vh; overflow-y: auto; margin: 10px 0; }
.stk-cell { position: relative; aspect-ratio: 1; width: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 0; background: none; border-radius: 10px; padding: 4px; cursor: pointer; display: block; }
.stk-cell:hover { background: var(--surface2); }
.stk-cell img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stk-cell .stk-x { position: absolute; top: 0; right: 0; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: none; }
.stk-cell.del:hover .stk-x { display: block; }
@media (pointer: coarse) { .stk-cell.del .stk-x { display: block; } }
.stk-empty { color: var(--muted); padding: 24px 12px; text-align: center; white-space: pre-line; }
.stk-tabs { display: flex; gap: 2px; padding: 4px 6px; border-top: 1px solid var(--line); overflow-x: auto; }
.stk-tab { flex: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 20px; display: grid; place-items: center; color: var(--muted); padding: 4px; }
.stk-tab img { max-width: 30px; max-height: 30px; object-fit: contain; }
.stk-tab.on { background: var(--surface2); }
.stk-tab.gear { margin-left: auto; }
.bub.stk { background: none !important; border: 0 !important; padding: 0; min-width: 0; }
.bub.stk .foot { float: none; display: inline-flex; margin: 2px 0 0; padding: 2px 7px; border-radius: 10px; background: #0009; color: #cfe0ff; }
.m.mine .bub.stk { text-align: right; }
.bub img.sticker { display: block; width: 160px; height: 160px; object-fit: contain; cursor: pointer; }
.bub.stk .quote { background: var(--theirs); border-radius: 10px; padding: 4px 8px; margin-bottom: 4px; }
.stk-new { display: flex; gap: 8px; margin: 10px 0 4px; }
.stk-new input { flex: 1; }
.stk-mgr { display: flex; flex-direction: column; gap: 14px; max-height: 55vh; overflow-y: auto; margin-top: 10px; }
.stk-pack { border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.stk-pack.drop { border-color: var(--cyan); background: #22d3ee14; }
.stk-phead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }

/* ---------- обновление приложения ---------- */
.updbar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; margin: 6px 8px 2px; padding: 8px 8px 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); font-size: 13.5px; cursor: pointer; min-height: 40px; }
.updbar[hidden] { display: none; }
.updbar span { flex: 1; min-width: 0; position: relative; }
.updbar button { position: relative; flex: none; border: 0; border-radius: 9px; padding: 6px 12px; background: var(--grad); color: #04122b; font-weight: 700; cursor: pointer; }
.updbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: color-mix(in srgb, var(--cyan) 22%, transparent); transition: width .25s; }
.updbar.busy::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, #ffffff1c 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.upd-ov { position: fixed; inset: 0; z-index: 70; background: #020611c4; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.upd-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; box-shadow: 0 24px 70px #000b; animation: pop .22s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.upd-ring { position: relative; width: 132px; height: 132px; margin-bottom: 6px; }
.upd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.upd-ring circle { fill: none; stroke-width: 9; }
.upd-track { stroke: var(--surface2); }
.upd-arc { stroke: url(#updg); stroke-linecap: round; transition: stroke-dashoffset .35s ease, stroke .2s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 55%, transparent)); }
.upd-card.spin .upd-ring svg { animation: updspin 1.1s linear infinite; }
@keyframes updspin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.upd-card.spin .upd-arc { stroke-dashoffset: 230 !important; }
.upd-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.upd-pct b { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.upd-pct i { font-style: normal; font-size: 16px; color: var(--muted); margin-left: 2px; font-weight: 700; align-self: flex-end; margin-bottom: 50px; }
.upd-pct i:empty { display: none; }
.upd-card.new .upd-pct b { animation: bob 1.6s ease-in-out infinite; color: var(--cyan); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.upd-card.ok .upd-pct b { color: var(--ok); } .upd-card.ok .upd-arc { stroke: var(--ok); filter: none; }
.upd-card.bad .upd-pct b { color: var(--bad); } .upd-card.bad .upd-arc { stroke: var(--bad); filter: none; }
.upd-t { font-size: 19px; font-weight: 750; }
.upd-s { color: var(--muted); font-size: 14px; line-height: 1.45; min-height: 20px; font-variant-numeric: tabular-nums; }
.upd-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.upd-btns:empty { display: none; }
.upd-btns .btn { min-width: 110px; }

/* ---------- фон переписки (тема) ---------- */
.chat { isolation: isolate; }
html.wall .chat::before { content: ""; position: absolute; inset: calc(-1 * var(--wall-blur, 0px)); z-index: -1; pointer-events: none;
  background: var(--wall-color) var(--wall-img) center / var(--wall-size) var(--wall-repeat); filter: blur(var(--wall-blur)); }
html.wall .chat::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(0, 0, 0, var(--wall-dim)); }
html.wall .chat { overflow: hidden; }

/* ---------- настройки ---------- */
.setp { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; animation: fade .12s; }
body.has-island .setp { top: calc(60px + var(--safe-t)); }
.set-bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--bar); min-height: 58px; }
.set-title { font-weight: 700; font-size: 17px; }
.set-main { flex: 1; min-height: 0; display: flex; }
.set-nav { width: 280px; flex: none; border-right: 1px solid var(--line); background: var(--bg2); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; background: none; border-radius: 12px; text-align: left; font-weight: 550; color: var(--text); cursor: pointer; }
.set-nav button svg { color: var(--cyan); }
.set-nav button:hover { background: var(--surface); } .set-nav button.on { background: color-mix(in srgb, var(--blue) 24%, var(--bg2)); }
.set-nav .chev { margin-left: auto; color: var(--muted); display: none; }
.set-who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.set-who div { display: flex; flex-direction: column; } .set-who span { color: var(--cyan); font: 600 13px ui-monospace, Consolas, monospace; }
.set-body { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.set-sh { margin: 0 0 2px; font-size: 22px; }
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.set-h0 { font-weight: 700; font-size: 15px; }
.set-h { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 2px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 6px 0; cursor: pointer; }
.set-row + .set-row { border-top: 1px solid var(--line); padding-top: 12px; }
.set-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .set-t span { color: var(--muted); font-size: 13px; }
.set-me { display: flex; align-items: center; gap: 14px; } .set-me .av { width: 64px; height: 64px; font-size: 26px; }
.set-me-t { display: flex; flex-direction: column; gap: 2px; } .set-me-t b { font-size: 19px; }
.set-num { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--cyan); font: 600 16px ui-monospace, Consolas, monospace; cursor: pointer; }
.set-foot { display: flex; justify-content: space-between; gap: 10px; }
.set-warn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); font-size: 13.5px; }
.set-warn span { flex: 1; }
.set-big { font-size: 22px; font-weight: 700; } .set-big span { font-size: 14px; color: var(--muted); font-weight: 500; }
.set-list { display: flex; flex-direction: column; gap: 6px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
a.btn.pri { color: #04122b; }
input.sw { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--surface2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
input.sw:checked { background: var(--grad); border-color: transparent; } input.sw:checked::after { transform: translateX(20px); background: #fff; }
@media (max-width: 819px) {
  .set-nav { width: 100%; border-right: 0; }
  .set-nav .chev { display: block; }
  .set-body { display: none; padding: 14px 12px 40px; }
  .setp.in .set-nav { display: none; } .setp.in .set-body { display: flex; }
  .set-sh { display: none; }
}

/* ---------- темы ---------- */
.th-sec { display: flex; flex-direction: column; gap: 8px; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.th-cur .th-card { max-width: 340px; }
.th-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.th-meta { display: flex; flex-direction: column; } .th-meta b { font-size: 14px; } .th-meta span { color: var(--muted); font-size: 12px; }
.th-act { display: flex; gap: 6px; flex-wrap: wrap; }
.th-prev { height: 96px; border-radius: 10px; border: 1px solid; display: flex; overflow: hidden; }
.th-side { width: 30%; border-right: 1px solid; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.th-side i { height: 9px; border-radius: 5px; opacity: .9; }
.th-msgs { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.th-b { align-self: flex-start; font-size: 11px; padding: 3px 8px; border: 1px solid transparent; }
.th-b.me { align-self: flex-end; }
.th-acc { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; }
.th-find { display: flex; gap: 8px; } .th-find input { flex: 1; }
.th-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.th-col { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.th-col input[type=color], .th-inline input[type=color] { width: 34px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.th-wall { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.th-wallprev { width: 120px; height: 72px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 12px; background: var(--bg); }
.th-wallprev img { width: 100%; height: 100%; object-fit: cover; }
.th-wallbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.th-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.th-range { display: grid; grid-template-columns: 170px 1fr 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.th-range input { width: 100%; accent-color: var(--cyan); } .th-val { color: var(--muted); text-align: right; }
.th-save { display: flex; flex-direction: column; gap: 6px; }
.modal:has(.th-colors) { width: min(720px, 96vw); max-height: 92vh; overflow-y: auto; }

/* ---------- каналы и ранги ---------- */
.chico { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--cyan); }
.rk { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 650; line-height: 1.5; color: var(--rk); background: color-mix(in srgb, var(--rk) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rk) 45%, transparent); white-space: nowrap; vertical-align: 1px; }
.bub .who .rk { margin-left: 6px; font-size: 10.5px; padding: 0 6px; }
.m.post { max-width: min(92%, 620px); width: 100%; }
.m.post .bub { border-radius: var(--radius, 16px); }
.m.post + .m.post { margin-top: 6px; }
.bub .foot .sign { opacity: .85; margin-right: 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer.robar { justify-content: center; align-items: center; min-height: 58px; }
.composer.robar .hint { display: flex; align-items: center; gap: 6px; }
.robtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; color: var(--cyan); background: transparent; border-color: transparent; }
.robtn:hover { background: var(--surface); }
.modal.wide { width: min(620px, 100%); }
.modal.wide .set-card { margin-top: 10px; }
.ch-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 4px; }
.ch-head h3 { margin: 6px 0 0; }
.ch-about { white-space: pre-wrap; color: var(--text); background: var(--surface2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.ch-row { display: flex; align-items: center; gap: 8px; }
.ch-row input:not([type=color]) { flex: 1; min-width: 0; }
.ch-row input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: none; flex: none; cursor: pointer; }
.ch-ranks { display: flex; flex-direction: column; gap: 6px; }
.ch-rank { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ch-rank .hint { font-size: 12.5px; }
.ch-members { max-height: 340px; overflow-y: auto; }
.ch-members .mrow .role { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-sel { height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); padding: 0 6px; max-width: 150px; }
.ch-link { display: block; padding: 9px 11px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font: 13px ui-monospace, Consolas, monospace; word-break: break-all; user-select: all; color: var(--cyan); }
.ch-rk { border-left: 4px solid var(--rk); }
.ch-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; }
.ch-perm { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; } .ch-perm.off { opacity: .5; cursor: default; }
.ch-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; margin-top: 10px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ch-item .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ch-item .meta span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal .search { display: block; } .modal .search svg { position: absolute; left: 11px; top: 10px; color: var(--muted); }

/* ---------- голосовые ---------- */
.vmsg { display: flex; align-items: center; gap: 10px; width: 270px; max-width: 100%; padding: 2px 0; white-space: normal; }
.vplay { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--grad); color: #04122b; padding: 0; }
.vplay svg { width: 22px; height: 22px; }
.m.mine .vplay { background: color-mix(in srgb, var(--mine-text) 92%, transparent); color: var(--mine); }
.vbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vwave { position: relative; height: 30px; cursor: pointer; touch-action: none; }
.vbars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.vbars i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.vbars.on i { background: var(--cyan); }
.m.mine .vbars i { background: color-mix(in srgb, var(--mine-text) 38%, transparent); }
.m.mine .vbars.on i { background: var(--mine-text); }
.vbars.on { clip-path: inset(0 100% 0 0); }
.vmeta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m.mine .vmeta { color: color-mix(in srgb, var(--mine-text) 75%, transparent); }
.vspd { border: 0; border-radius: 8px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; cursor: pointer; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.vmsg.playing .vplay { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent); }
.vplay.up { position: relative; background: color-mix(in srgb, var(--mine-text) 22%, transparent); color: var(--mine-text); }
.vring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.vring svg:first-child { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); animation: vspin 1.6s linear infinite; }
.vring svg:last-child { width: 18px; height: 18px; }
.vr-t { fill: none; stroke: color-mix(in srgb, var(--mine-text) 22%, transparent); stroke-width: 3; }
.vr-a { fill: none; stroke: var(--mine-text); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .25s; }
@keyframes vspin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.m.pend { opacity: .92; }
.vlive { flex: 1; height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; min-width: 0; }
.vlive i { flex: none; width: 3px; border-radius: 2px; background: var(--cyan); animation: vin .15s ease-out; }
@keyframes vin { from { transform: scaleY(.2); } }
.rectime { min-width: 42px; }
.ch-row input:not([type=color]), .modal .search input { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; outline: none; color: var(--text); font-weight: 600; }
.ch-row input:not([type=color]):focus { border-color: #2f7bffaa; }
.ch-row input:disabled { opacity: .7; }
.modal .search input { width: 100%; padding-left: 38px; font-weight: 400; }

/* ---------- превью ссылок и просмотр в чате ---------- */
.bub.haslk { min-width: min(300px, 100%); }
.lk { display: flex; gap: 10px; margin: 6px 0 2px; padding: 6px 10px 8px; border-left: 3px solid var(--cyan); border-radius: 4px 10px 10px 4px; background: color-mix(in srgb, var(--cyan) 9%, transparent); cursor: pointer; white-space: normal; max-width: 420px; }
.lk:hover { background: color-mix(in srgb, var(--cyan) 15%, transparent); }
.lk.wide { flex-direction: column; gap: 6px; }
.m.mine .lk { border-left-color: var(--mine-text); background: color-mix(in srgb, var(--mine-text) 12%, transparent); }
.lk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-site { font-size: 12.5px; font-weight: 700; color: var(--cyan); }
.m.mine .lk-site { color: var(--mine-text); }
.lk-title { font-weight: 650; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-desc { font-size: 13px; line-height: 1.35; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lk-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #0004; }
.lk-media { position: relative; }
.lk-big { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; background: #0004; }
.lk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #000a; color: #fff; padding-left: 4px; }
.lv { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); animation: fade .15s; }
.lv-bar { display: flex; align-items: center; gap: 6px; padding: calc(6px + var(--safe-t, 0px)) 8px 6px; min-height: 58px; border-bottom: 1px solid var(--line); background: var(--bar, var(--surface)); }
.lv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.lv-t span { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.lv-body { position: relative; flex: 1; min-height: 0; background: var(--bg); }  /* прозрачные «тёмные» страницы ложатся на фон темы, светлые браузер рисует на своём белом */
.lv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.lv-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); background: var(--bg); z-index: 1; pointer-events: none; }
.lv-load i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface2); border-top-color: var(--cyan); animation: sp .8s linear infinite; }
body > .lv { position: fixed; z-index: 58; }

/* ---------- показ звука ---------- */
.xaudio { display: none; }
.sharemenu .sm-snd { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); margin-top: 4px; cursor: pointer; text-align: left; }
.sharemenu .sm-snd div { display: flex; flex-direction: column; } .sharemenu .sm-snd small { color: var(--muted); font-size: 12px; }
.cp-snd { display: flex; align-items: center; gap: 10px; cursor: pointer; max-width: 340px; font-size: 13px; }
.cp-snd div { display: flex; flex-direction: column; } .cp-snd small { color: var(--muted); font-size: 11.5px; }
.cp-auds { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.cp-aud { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.cp-aud:hover { border-color: var(--cyan); }
.cp-aud svg { color: var(--cyan); flex: none; }
.cp-aud div { display: flex; flex-direction: column; min-width: 0; } .cp-aud small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- видеозвонок на телефоне (как в Telegram) ---------- */
/* размытие фона под кнопками поверх живого видео пересчитывается каждый кадр — на телефонах тормозит */
.call .cb { backdrop-filter: none; background: #0f172acc; }
.call:not(.vid) .cb { background: #ffffff26; }
/* кнопки помещаются на любом экране (в приложении их до 7) */
.call .ctrl { gap: clamp(5px, 2.2vw, 18px); flex-wrap: nowrap; max-width: 100%; }
.call .cb:not(.sm) { width: clamp(38px, 11.5vw, 62px); height: clamp(38px, 11.5vw, 62px); flex: none; }
.call .cb:not(.sm) svg { width: clamp(22px, 6.2vw, 28px); height: clamp(22px, 6.2vw, 28px); }
/* надписи и кнопки прячутся сами (касание — вернуть) */
.call .top, .call .bottom, .call .tl, .call .local { transition: opacity .25s, translate .2s; }
.call.idle .top, .call.idle .bottom, .call.idle .tl { opacity: 0; pointer-events: none; }
.call .fp { max-width: 70vw; margin-left: auto; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* своё окошко: угол задаётся data-pip; перетаскивание пальцем */
.call .local { touch-action: none; cursor: grab; }
.call[data-pip="tr"] .local { top: calc(14px + var(--safe-t)); right: 14px; bottom: auto; left: auto; }
.call[data-pip="tl"] .local { top: calc(70px + var(--safe-t)); left: 14px; bottom: auto; right: auto; }
.call[data-pip="br"] .local { bottom: calc(118px + var(--safe-b)); right: 14px; top: auto; left: auto; }
.call[data-pip="bl"] .local { bottom: calc(118px + var(--safe-b)); left: 14px; top: auto; right: auto; }
.call.idle[data-pip^="b"] .local { bottom: calc(24px + var(--safe-b)); }
.call .local.drag { transition: none; z-index: 5; cursor: grabbing; }
/* до соединения — своя камера на весь экран */
.call.pre .local { inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none; aspect-ratio: auto !important; border: 0; border-radius: 0; object-fit: cover !important; z-index: 0; }
.call.pre .remote { opacity: 0 !important; }
.call.pre .top, .call.pre .bottom { text-shadow: 0 2px 12px #000; }
/* касание по окошку — поменять местами своё и чужое видео */
.call.swap:not(.pre):not(.min) .local { inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none; aspect-ratio: auto !important; border: 0; border-radius: 0; object-fit: cover !important; z-index: 0; }
.call.swap:not(.pre):not(.min) .remote { inset: auto; width: 108px; height: 150px; border-radius: 14px; border: 2px solid #ffffff55; z-index: 2; object-fit: cover !important; }
.call.swap[data-pip="tr"]:not(.pre) .remote { top: calc(14px + var(--safe-t)); right: 14px; }
.call.swap[data-pip="tl"]:not(.pre) .remote { top: calc(70px + var(--safe-t)); left: 14px; }
.call.swap[data-pip="br"]:not(.pre) .remote { bottom: calc(118px + var(--safe-b)); right: 14px; }
.call.swap[data-pip="bl"]:not(.pre) .remote { bottom: calc(118px + var(--safe-b)); left: 14px; }

/* ---------- 360°-просмотр ---------- */
.v360-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: none; cursor: grab; background: #000; }
.v360-canvas:active { cursor: grabbing; }
.call .is360 .remote, .call.is360 .remote, .tile.is360 video { visibility: hidden; }
.call.is360 .top { z-index: 3; }
.v360-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(110px + var(--safe-b, 0px)); z-index: 4; display: flex; gap: 6px; align-items: center; padding: 5px; border-radius: 14px; background: #0f172acc; }
.tile .v360-bar { bottom: 8px; transform: translateX(-50%) scale(.85); }
.v360-bar button { border: 0; border-radius: 10px; padding: 6px 10px; background: #ffffff1f; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.v360-bar button.on, .v360-bar button.vr { background: #22d3ee; color: #04122b; }
.v360-tag { font-weight: 800; color: #22d3ee; padding: 0 6px; font-size: 13px; }
.call.idle .v360-bar { opacity: 0; pointer-events: none; }

/* журнал приложения (Настройки -> О приложении) */
.diag-log { margin: 10px 0; max-height: 50dvh; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.45 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; user-select: text; }
/* Quest: спрятать окно звонка в меню кнопки Meta */
.call .cb.sm.qhide { width: auto; display: inline-flex; flex-direction: row; align-items: center; padding: 0 16px 0 12px; gap: 6px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .call .cb.sm.qhide { width: 44px; padding: 0; justify-content: center; } .call .cb.sm.qhide span { display: none; } }
.call .cb.sm.qhide svg { width: 18px; height: 18px; }

/* закреплённое сообщение */
.pinbar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; background: var(--bar); border-bottom: 1px solid var(--line); cursor: pointer; flex: none; color: var(--cyan); }
.pinbar .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; }
.pinbar .t b { font-weight: 600; font-size: 12px; }
.pinbar .t span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinbar .ibtn { width: 34px; height: 34px; flex: none; }

/* опрос */
.poll { min-width: min(280px, 64vw); display: flex; flex-direction: column; gap: 6px; padding: 2px 0 4px; }
.poll-q { font-weight: 700; font-size: 15px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.poll-k { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.poll-o { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line); background: #ffffff08; color: inherit;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; overflow: hidden; font: inherit; font-size: 14px; }
.poll-o:hover:not(:disabled) { border-color: var(--cyan); }
.poll-o:disabled { cursor: default; }
.poll-o.me { border-color: var(--cyan); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22d3ee33, #3b82f633); transition: width .35s ease; z-index: 0; }
.poll-mark { position: relative; width: 16px; flex: none; color: var(--cyan); font-weight: 700; }
.poll-t { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.poll-p { position: relative; font-weight: 700; font-size: 13px; }
.poll-f { font-size: 12px; color: var(--muted); }
.poll-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.poll-multi { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; cursor: pointer; }
.modal .poll-opts + .btn { margin-bottom: 4px; }

/* комментарии к постам канала */
.cmt-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 4px 2px; border: 0; border-top: 1px solid #ffffff14; background: none; color: var(--cyan); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cmt-btn span { flex: 1; text-align: left; }
.cmt-btn:hover span { text-decoration: underline; }
.thread { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: radial-gradient(900px 400px at 60% -100px, #10306644, transparent), var(--bg); animation: fade .12s; }
.thread .thread-list { flex: 1; }
.thread-root { padding-bottom: 4px; }
.thread-root .m { opacity: .95; }

/* голосовая комната */
.callbar.voice { background: #102542; border-bottom-color: #1e3a8a; color: #bfdbfe; }
.callbar.voice .btn { background: #3b82f6; color: #fff; }
.callbar .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vavs { display: flex; flex: none; }
.vavs .av { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; border: 2px solid #102542; }
.vchip { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #1e3a8a; color: #bfdbfe; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.stage.voice { grid-template: none !important; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; grid-auto-rows: minmax(110px, 1fr); }

/* iPhone: подсказка над списком чатов (поставить на экран «Домой» / включить уведомления) */
.ioshint:empty { display: none; }
.ioshint-in { display: flex; align-items: center; gap: 10px; margin: 8px 10px 2px; padding: 10px 6px 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #2f7bff22, #22d3ee1c); border: 1px solid #22d3ee44; color: var(--cyan); }
.ioshint-in .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; color: var(--text); }
.ioshint-in .t b { font-size: 14px; }
.ioshint-in .t span { font-size: 12px; color: var(--muted); }
.ioshint-in .btn { flex: none; text-decoration: none; }
.ioshint-in .ibtn { width: 32px; height: 32px; flex: none; }
