/* Talksy Web — iOS 26 «Liquid Glass».
   Включается классом html.ios (iPhone автоматически, ?ios=1 — вручную). Все правила под html.ios. */

/* ───────── палитра ───────── */
html.ios{
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);
  --ease:cubic-bezier(.32,.72,0,1);--spring:cubic-bezier(.34,1.45,.5,1);
  color-scheme:light;
  --bg:#fff;--bg-g:#f2f2f7;--panel:#fff;--panel2:rgba(118,118,128,.12);--panel3:rgba(118,118,128,.2);--line:rgba(60,60,67,.18);
  --text:#000;--text2:rgba(60,60,67,.62);--text3:rgba(60,60,67,.32);--atext:var(--accent);--accent-soft:rgba(61,142,247,.14);
  --in:#fff;--in-text:#000;--out:linear-gradient(180deg,#4aa0ff,#2b7df2);--out-end:#2b7df2;--out-text:#fff;--in-sh:0 1px 1.5px rgba(0,0,0,.12);
  --glass:rgba(255,255,255,.58);--glass-strong:rgba(250,250,252,.78);--glass-sh:inset 0 0 0 .5px rgba(255,255,255,.7),inset 1px 1px 0 rgba(255,255,255,.8),0 6px 22px rgba(30,40,70,.16);
  --daypill:rgba(255,255,255,.62);--daytext:rgba(0,0,0,.62);--sheet:#fff;--danger:#ff3b30;--ok:#34c759;
  --doodle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%234f7ea8' stroke-opacity='.2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='40' cy='42' r='11'/%3E%3Ccircle cx='40' cy='42' r='3.5'/%3E%3Cpath transform='translate(118 28) rotate(-12)' d='M0 -14 L4.2 -4.3 14 -3.6 6.6 2.6 9 12 0 7 -9 12 -6.6 2.6 -14 -3.6 -4.2 -4.3Z'/%3E%3Cpath transform='translate(206 48) rotate(10)' d='M0 12 C-18 -2 -10 -17 0 -8 C10 -17 18 -2 0 12Z'/%3E%3Cpath transform='translate(290 40) rotate(18)' d='M-14 0 L14 -12 L6 14 L1 4 Z M1 4 L14 -12'/%3E%3Cpath transform='translate(58 126)' d='M-16 8 a8 8 0 0 1 2 -15 a11 11 0 0 1 21 -3 a9 9 0 0 1 9 18 Z'/%3E%3Cpath transform='translate(150 112) rotate(8)' d='M-4 12 V-10 L9 -13 V8 M-4 12 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0 M9 8 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0'/%3E%3Cpath transform='translate(244 130)' d='M0 0 c4 -6 12 -4 12 3 c0 9 -15 12 -20 2 c-6 -12 6 -24 20 -20 c16 5 20 25 6 34'/%3E%3Cpath transform='translate(302 158) rotate(14)' d='M4 -15 L-8 3 H0 L-4 15 L9 -4 H1Z'/%3E%3Ccircle cx='30' cy='214' r='14'/%3E%3Cpath d='M23 211 h.01 M37 211 h.01 M22.500 218 a9 7 0 0 0 15 0'/%3E%3Cg transform='translate(112 204)'%3E%3Ccircle r='4'/%3E%3Ccircle cx='0' cy='-11' r='5'/%3E%3Ccircle cx='10.500' cy='-3.500' r='5'/%3E%3Ccircle cx='6.500' cy='9' r='5'/%3E%3Ccircle cx='-6.500' cy='9' r='5'/%3E%3Ccircle cx='-10.500' cy='-3.500' r='5'/%3E%3C/g%3E%3Cg transform='translate(204 214) rotate(-6)'%3E%3Crect x='-15' y='-10' width='30' height='20' rx='3'/%3E%3Cpath d='M-15 -8 L0 3 L15 -8'/%3E%3C/g%3E%3Cpath transform='translate(282 244) rotate(-24)' d='M0 -17 C8 -9 8 5 0 13 C-8 5 -8 -9 0 -17Z M-8 5 L-14 14 L-5 11 M8 5 L14 14 L5 11 M0 -6 h.01'/%3E%3Cpath transform='translate(56 292) rotate(12)' d='M0 -14 L12 0 0 14 -12 0Z M-12 0 H12'/%3E%3Cpath transform='translate(150 286) rotate(-20)' d='M8 -13 a14 14 0 1 0 8 22 a11 11 0 0 1 -8 -22Z'/%3E%3Cpath transform='translate(232 298)' d='M0 -12 V12 M-12 0 H12 M-7 -7 L7 7 M7 -7 L-7 7'/%3E%3Cpath transform='translate(18 120) rotate(30)' d='M0 0 l5 5 l5 -5'/%3E%3Cpath transform='translate(330 100)' d='M0 0 l5 5 l5 -5'/%3E%3C/g%3E%3C/svg%3E");--wall:var(--doodle) 0 0/300px 300px,linear-gradient(180deg,#e4eef8 0%,#d3e3f2 100%);
}
html.ios[data-theme=dark]{
  color-scheme:dark;
  --bg:#000;--bg-g:#000;--panel:#1c1c1e;--panel2:#2c2c2e;--panel3:#3a3a3c;--line:rgba(255,255,255,.12);
  --text:#fff;--text2:rgba(235,235,245,.6);--text3:rgba(235,235,245,.32);--atext:#4da3ff;--accent-soft:rgba(61,142,247,.2);
  --in:#2a3b50;--in-text:#fff;--out:linear-gradient(180deg,#4aa0ff,#2b7df2);--out-end:#2b7df2;--in-sh:none;
  --glass:rgba(110,110,118,.42);--glass-strong:rgba(58,58,62,.72);--glass-sh:inset 0 0 0 .5px rgba(255,255,255,.16),inset 1px 1px 0 rgba(255,255,255,.18),inset -1px -1px 0 rgba(255,255,255,.04),0 8px 26px rgba(0,0,0,.4);
  --daypill:rgba(18,32,42,.7);--daytext:rgba(255,255,255,.85);--sheet:#1c1c1e;--danger:#ff453a;--ok:#30d158;
  --doodle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%235aa8ff' stroke-opacity='.17' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='40' cy='42' r='11'/%3E%3Ccircle cx='40' cy='42' r='3.5'/%3E%3Cpath transform='translate(118 28) rotate(-12)' d='M0 -14 L4.2 -4.3 14 -3.6 6.6 2.6 9 12 0 7 -9 12 -6.6 2.6 -14 -3.6 -4.2 -4.3Z'/%3E%3Cpath transform='translate(206 48) rotate(10)' d='M0 12 C-18 -2 -10 -17 0 -8 C10 -17 18 -2 0 12Z'/%3E%3Cpath transform='translate(290 40) rotate(18)' d='M-14 0 L14 -12 L6 14 L1 4 Z M1 4 L14 -12'/%3E%3Cpath transform='translate(58 126)' d='M-16 8 a8 8 0 0 1 2 -15 a11 11 0 0 1 21 -3 a9 9 0 0 1 9 18 Z'/%3E%3Cpath transform='translate(150 112) rotate(8)' d='M-4 12 V-10 L9 -13 V8 M-4 12 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0 M9 8 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0'/%3E%3Cpath transform='translate(244 130)' d='M0 0 c4 -6 12 -4 12 3 c0 9 -15 12 -20 2 c-6 -12 6 -24 20 -20 c16 5 20 25 6 34'/%3E%3Cpath transform='translate(302 158) rotate(14)' d='M4 -15 L-8 3 H0 L-4 15 L9 -4 H1Z'/%3E%3Ccircle cx='30' cy='214' r='14'/%3E%3Cpath d='M23 211 h.01 M37 211 h.01 M22.500 218 a9 7 0 0 0 15 0'/%3E%3Cg transform='translate(112 204)'%3E%3Ccircle r='4'/%3E%3Ccircle cx='0' cy='-11' r='5'/%3E%3Ccircle cx='10.500' cy='-3.500' r='5'/%3E%3Ccircle cx='6.500' cy='9' r='5'/%3E%3Ccircle cx='-6.500' cy='9' r='5'/%3E%3Ccircle cx='-10.500' cy='-3.500' r='5'/%3E%3C/g%3E%3Cg transform='translate(204 214) rotate(-6)'%3E%3Crect x='-15' y='-10' width='30' height='20' rx='3'/%3E%3Cpath d='M-15 -8 L0 3 L15 -8'/%3E%3C/g%3E%3Cpath transform='translate(282 244) rotate(-24)' d='M0 -17 C8 -9 8 5 0 13 C-8 5 -8 -9 0 -17Z M-8 5 L-14 14 L-5 11 M8 5 L14 14 L5 11 M0 -6 h.01'/%3E%3Cpath transform='translate(56 292) rotate(12)' d='M0 -14 L12 0 0 14 -12 0Z M-12 0 H12'/%3E%3Cpath transform='translate(150 286) rotate(-20)' d='M8 -13 a14 14 0 1 0 8 22 a11 11 0 0 1 -8 -22Z'/%3E%3Cpath transform='translate(232 298)' d='M0 -12 V12 M-12 0 H12 M-7 -7 L7 7 M7 -7 L-7 7'/%3E%3Cpath transform='translate(18 120) rotate(30)' d='M0 0 l5 5 l5 -5'/%3E%3Cpath transform='translate(330 100)' d='M0 0 l5 5 l5 -5'/%3E%3C/g%3E%3C/svg%3E");--wall:var(--doodle) 0 0/300px 300px,linear-gradient(180deg,#04080c 0%,#08121b 100%);
}
@media (prefers-color-scheme:dark){
  html.ios[data-theme=auto]{
    color-scheme:dark;
    --bg:#000;--bg-g:#000;--panel:#1c1c1e;--panel2:#2c2c2e;--panel3:#3a3a3c;--line:rgba(255,255,255,.12);
    --text:#fff;--text2:rgba(235,235,245,.6);--text3:rgba(235,235,245,.32);--atext:#4da3ff;--accent-soft:rgba(61,142,247,.2);
    --in:#2a3b50;--in-text:#fff;--out:linear-gradient(180deg,#4aa0ff,#2b7df2);--out-end:#2b7df2;--in-sh:none;
    --glass:rgba(110,110,118,.42);--glass-strong:rgba(58,58,62,.72);--glass-sh:inset 0 0 0 .5px rgba(255,255,255,.16),inset 1px 1px 0 rgba(255,255,255,.18),inset -1px -1px 0 rgba(255,255,255,.04),0 8px 26px rgba(0,0,0,.4);
    --daypill:rgba(18,32,42,.7);--daytext:rgba(255,255,255,.85);--sheet:#1c1c1e;--danger:#ff453a;--ok:#30d158;
    --doodle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%235aa8ff' stroke-opacity='.17' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='40' cy='42' r='11'/%3E%3Ccircle cx='40' cy='42' r='3.5'/%3E%3Cpath transform='translate(118 28) rotate(-12)' d='M0 -14 L4.2 -4.3 14 -3.6 6.6 2.6 9 12 0 7 -9 12 -6.6 2.6 -14 -3.6 -4.2 -4.3Z'/%3E%3Cpath transform='translate(206 48) rotate(10)' d='M0 12 C-18 -2 -10 -17 0 -8 C10 -17 18 -2 0 12Z'/%3E%3Cpath transform='translate(290 40) rotate(18)' d='M-14 0 L14 -12 L6 14 L1 4 Z M1 4 L14 -12'/%3E%3Cpath transform='translate(58 126)' d='M-16 8 a8 8 0 0 1 2 -15 a11 11 0 0 1 21 -3 a9 9 0 0 1 9 18 Z'/%3E%3Cpath transform='translate(150 112) rotate(8)' d='M-4 12 V-10 L9 -13 V8 M-4 12 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0 M9 8 a4.5 3.5 0 1 1 -9 0 a4.5 3.5 0 0 1 9 0'/%3E%3Cpath transform='translate(244 130)' d='M0 0 c4 -6 12 -4 12 3 c0 9 -15 12 -20 2 c-6 -12 6 -24 20 -20 c16 5 20 25 6 34'/%3E%3Cpath transform='translate(302 158) rotate(14)' d='M4 -15 L-8 3 H0 L-4 15 L9 -4 H1Z'/%3E%3Ccircle cx='30' cy='214' r='14'/%3E%3Cpath d='M23 211 h.01 M37 211 h.01 M22.500 218 a9 7 0 0 0 15 0'/%3E%3Cg transform='translate(112 204)'%3E%3Ccircle r='4'/%3E%3Ccircle cx='0' cy='-11' r='5'/%3E%3Ccircle cx='10.500' cy='-3.500' r='5'/%3E%3Ccircle cx='6.500' cy='9' r='5'/%3E%3Ccircle cx='-6.500' cy='9' r='5'/%3E%3Ccircle cx='-10.500' cy='-3.500' r='5'/%3E%3C/g%3E%3Cg transform='translate(204 214) rotate(-6)'%3E%3Crect x='-15' y='-10' width='30' height='20' rx='3'/%3E%3Cpath d='M-15 -8 L0 3 L15 -8'/%3E%3C/g%3E%3Cpath transform='translate(282 244) rotate(-24)' d='M0 -17 C8 -9 8 5 0 13 C-8 5 -8 -9 0 -17Z M-8 5 L-14 14 L-5 11 M8 5 L14 14 L5 11 M0 -6 h.01'/%3E%3Cpath transform='translate(56 292) rotate(12)' d='M0 -14 L12 0 0 14 -12 0Z M-12 0 H12'/%3E%3Cpath transform='translate(150 286) rotate(-20)' d='M8 -13 a14 14 0 1 0 8 22 a11 11 0 0 1 -8 -22Z'/%3E%3Cpath transform='translate(232 298)' d='M0 -12 V12 M-12 0 H12 M-7 -7 L7 7 M7 -7 L-7 7'/%3E%3Cpath transform='translate(18 120) rotate(30)' d='M0 0 l5 5 l5 -5'/%3E%3Cpath transform='translate(330 100)' d='M0 0 l5 5 l5 -5'/%3E%3C/g%3E%3C/svg%3E");--wall:var(--doodle) 0 0/300px 300px,linear-gradient(180deg,#04080c 0%,#08121b 100%);
  }
}
/* светлая тема: сгруппированные списки на сером */
html.ios:not([data-theme=dark]){--panel-g:#fff}
@media (prefers-color-scheme:dark){html.ios[data-theme=auto]{--panel-g:#1c1c1e}}
html.ios[data-theme=dark]{--panel-g:#1c1c1e}

/* ───────── база ───────── */
html.ios,html.ios body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-touch-callout:none;touch-action:manipulation;font-synthesis:none;-webkit-font-smoothing:antialiased}
html.ios body{font:var(--fs,16px)/1.32 -apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Helvetica Neue",sans-serif;letter-spacing:-.01em}
html.ios #app{position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh);overflow:hidden}
html.ios input,html.ios textarea,html.ios select{font-size:16px;-webkit-appearance:none;appearance:none;border-radius:0}
html.ios button{-webkit-user-select:none;user-select:none;touch-action:manipulation}
html.ios svg{stroke-width:2}
html.ios svg.fill{fill:currentColor;stroke:none}
html.ios .hidden{display:none!important}
html.ios ::-webkit-scrollbar{display:none}
html.ios *{scrollbar-width:none}
html.ios .noanim *,html.ios[data-anim=off] *{transition:none!important;animation:none!important}
@keyframes fade{from{opacity:0}}
@keyframes ios-in{from{transform:translateX(100%)}}
@keyframes ios-out{to{transform:translateX(100%)}}
@keyframes sheet-up{from{transform:translateY(100%)}}
@keyframes menu-pop{from{opacity:0;transform:scale(.82)}}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-14px) scale(.92)}}

/* стекло */
html.ios .gl{background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);color:var(--text);border:0}
html.ios .cbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;position:relative;color:var(--text);transition:transform .18s var(--spring)}
html.ios .cbtn:active,html.ios .gtxt:active,html.ios .tb-search:active{transform:scale(.9)}
html.ios .cbtn svg{width:22px;height:22px}
html.ios .gtxt{height:44px;padding:0 18px;border-radius:22px;font-size:17px;font-weight:500;flex:none;transition:transform .18s var(--spring)}

/* ───────── оболочка ───────── */
html.ios .shell,html.ios .shell.info-open{display:block;position:relative;height:100%;overflow:hidden;background:var(--bg)}
html.ios .side,html.ios .chat,html.ios .info{position:absolute;inset:0;max-width:none;min-width:0}
html.ios .side{display:block;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;background:var(--bg);border:0;padding-bottom:calc(var(--sab) + 104px);transition:transform .42s var(--ease),filter .42s var(--ease);will-change:transform}
html.ios .shell.chat-open .side{transform:translateX(-28%);filter:brightness(.55)}
html.ios .chat{display:flex;flex-direction:column;z-index:5;background:var(--wall);transform:translateX(100%);transition:transform .42s var(--ease),filter .42s var(--ease);box-shadow:-12px 0 44px rgba(0,0,0,.4);will-change:transform;overflow:hidden}
html.ios .shell.chat-open .chat{transform:none}
html.ios .shell.chat-open.info-open .chat{transform:translateX(-28%);filter:brightness(.55)}
html.ios .info{z-index:8;background:var(--bg-g);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;border:0;animation:ios-in .42s var(--ease);box-shadow:-12px 0 44px rgba(0,0,0,.4);padding-bottom:calc(var(--sab) + 30px)}
html.ios .info.out{animation:ios-out .3s var(--ease) forwards}

/* ───────── шапка списка ───────── */
html.ios .ios-head{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(var(--sat) + 8px) 16px 8px;min-height:calc(var(--sat) + 60px)}
html.ios .ios-head::before,html.ios .chat-top::before{content:"";position:absolute;left:0;right:0;top:0;bottom:-26px;z-index:-1;pointer-events:none;background:linear-gradient(var(--bg) 20%,transparent)}
html.ios .ios-head::after,html.ios .chat-top::after{content:"";position:absolute;left:0;right:0;top:0;bottom:-26px;z-index:-2;pointer-events:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);-webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}
html.ios .htitle{position:absolute;left:96px;right:96px;top:calc(var(--sat) + 8px);height:44px;line-height:44px;text-align:center;font-size:17px;font-weight:600;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ios .hsp{width:44px;flex:none}
html.ios .sfield{flex:1;height:44px;border-radius:22px;display:flex;align-items:center;gap:8px;padding:0 14px;color:var(--text2)}
html.ios .sfield svg{width:19px;height:19px}
html.ios .sfield input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--text);height:44px;caret-color:var(--accent)}
html.ios .sfield input::placeholder{color:var(--text2)}
html.ios .sfield .xs{width:24px;height:24px;border-radius:50%;background:var(--text3);color:#fff;display:grid;place-items:center}
html.ios .sfield .xs svg{width:13px;height:13px;stroke-width:3}
html.ios .stories{padding:2px 16px 10px;gap:12px}
html.ios .st-it{width:64px;font-size:12px;color:var(--text2);gap:5px}
html.ios .ring{padding:2.5px;background:linear-gradient(135deg,#5aa5ff,#3d8ef7)}
html.ios .ring.seen{background:var(--line)}
html.ios .ring.none{background:none}
html.ios .ring>.av{border:2.5px solid var(--bg)}
html.ios .ring .plus{background:var(--accent);border-color:var(--bg);right:-1px;bottom:-1px}
html.ios .tabs{padding:0 16px 8px;gap:6px}
html.ios .tab{height:34px;padding:0 14px;border-radius:17px;font-size:15px;font-weight:500;color:var(--text2);display:inline-flex;align-items:center}
html.ios .tab.on{background:var(--accent-soft);color:var(--atext);font-weight:600}
html.ios .tab .n{background:var(--accent);color:#fff;min-width:19px;height:19px;border-radius:10px;padding:0 6px;font-size:12px;display:inline-grid;place-items:center}
html.ios .shell.searching .stories,html.ios .shell.view-contacts .stories,html.ios .shell.view-contacts .tabs{display:none}
html.ios .list{overflow:visible;padding:0;min-height:0}
html.ios .sect{padding:14px 16px 6px;font-size:14px;font-weight:600;color:var(--text2);letter-spacing:0}
html.ios .empty{padding:60px 30px;color:var(--text2);font-size:16px}

/* строки чатов */
html.ios .row{gap:13px;padding:0 0 0 16px;min-height:78px;border-radius:0;align-items:center;background:none;position:relative;transition:background .12s}
html.ios .row:hover{background:none}
html.ios .row:active{background:var(--panel2)}
html.ios .row.on{background:none;color:inherit}
html.ios .row .mid{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:10px 16px 10px 0;border-bottom:.5px solid var(--line)}
html.ios .row .l1{gap:6px}
html.ios .row .name{font-size:17px;font-weight:600;letter-spacing:-.015em;color:var(--text)}
html.ios .row .name .ti,html.ios .row .name svg{color:var(--text3)}
html.ios .row .time{font-size:15px;color:var(--text3);flex:none}
html.ios .row .l2{align-items:flex-start;gap:8px}
html.ios .row .sub{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;font-size:16px;line-height:1.28;color:var(--text2);overflow:hidden}
html.ios .row .l2>svg{width:17px;height:17px;color:var(--text3);margin-top:2px}
html.ios .row .l1>svg{width:15px;height:15px;color:var(--text3)}
html.ios .badge{min-width:24px;height:24px;border-radius:12px;padding:0 7px;font-size:14px;font-weight:600;background:var(--accent);margin-top:1px}
html.ios .badge.muted{background:rgba(120,120,128,.55)}
html.ios .av{text-shadow:none;font-weight:600}
html.ios .row .archic{width:56px;height:56px;border-radius:50%;background:linear-gradient(180deg,#58a8ff,#3d8ef7);color:#fff}
html.ios .row .archic svg,html.ios .row .archic .ti{width:26px;height:26px;color:#fff}
html.ios .row.arch{opacity:1}
html.ios .row.editing{padding-left:12px}
html.ios .ecirc{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--text3);flex:none;display:grid;place-items:center;color:transparent;transition:background .15s,border-color .15s}
html.ios .ecirc svg{width:14px;height:14px;stroke-width:3.4}
html.ios .ecirc.on{background:var(--accent);border-color:var(--accent);color:#fff}
html.ios .ncard{margin:4px 16px 8px;border-radius:22px;background:var(--panel);border:0}
html.ios .fab{display:none}

/* ───────── плавающий таб-бар ───────── */
html.ios .ios-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:52;display:flex;gap:10px;align-items:center;padding:0 16px calc(var(--sab) + 6px);pointer-events:none;transition:transform .45s var(--ease),opacity .25s}
html.ios .ios-tabbar>*{pointer-events:auto}
html.ios .tb-pill{flex:1;display:flex;height:64px;border-radius:32px;padding:4px;gap:2px;min-width:0}
html.ios .tb{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:28px;color:var(--text);transition:background .25s,color .25s,transform .2s var(--spring)}
html.ios .tb:active{transform:scale(.94)}
html.ios .tb.on{background:rgba(0,0,0,.26);color:var(--accent)}
html.ios:not([data-theme=dark]) .tb.on{background:rgba(0,0,0,.07)}
@media (prefers-color-scheme:dark){html.ios[data-theme=auto] .tb.on{background:rgba(0,0,0,.26)}}
html.ios .tbi{position:relative;display:grid;place-items:center;height:26px}
html.ios .tbi svg{width:26px;height:26px}
html.ios .tbl{font-size:11px;font-weight:600;letter-spacing:0;line-height:1}
html.ios .tbn{position:absolute;top:-6px;left:50%;margin-left:6px;min-width:20px;height:20px;border-radius:10px;padding:0 6px;background:#ff3b30;color:#fff;font-size:12px;font-weight:600;line-height:20px;text-align:center;box-shadow:0 0 0 2px rgba(0,0,0,.0)}
html.ios .tb-search{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex:none;transition:transform .2s var(--spring)}
html.ios .tb-search svg{width:26px;height:26px}
html.ios.in-chat .ios-tabbar,html.ios.searching .ios-tabbar,html.ios.kb .ios-tabbar,html.ios:has(.spage.open) .ios-tabbar,html.ios:has(#iosedit) .ios-tabbar{transform:translateY(150%);opacity:0;pointer-events:none}
html.ios.in-chat .ios-tabbar>*,html.ios.searching .ios-tabbar>*{pointer-events:none}
html.ios .ios-edit{position:fixed;left:16px;right:16px;bottom:calc(var(--sab) + 6px);z-index:53;height:64px;border-radius:32px;display:flex;padding:4px;animation:sheet-up .4s var(--ease)}
html.ios .ios-edit button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--accent);font-size:11px;font-weight:600;border-radius:28px}
html.ios .ios-edit button.dis{color:var(--text3)}
html.ios .ios-edit button svg{width:24px;height:24px}
html.ios .ios-edit button:active{background:rgba(0,0,0,.2)}

/* ───────── экран чата ───────── */
html.ios .chat-top{position:absolute;top:0;left:0;right:0;z-index:12;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:calc(var(--sat) + 6px) 12px 6px;min-height:0;background:none;border:0;border-radius:0;box-shadow:none}
html.ios .chat-top::before{background:linear-gradient(rgba(0,0,0,.34),transparent);opacity:.9}
html.ios:not([data-theme=dark]) .chat-top::before{background:linear-gradient(rgba(255,255,255,.55),transparent)}
@media (prefers-color-scheme:dark){html.ios[data-theme=auto] .chat-top::before{background:linear-gradient(rgba(0,0,0,.34),transparent)}}
html.ios .chat-top .back{justify-self:start;width:auto;min-width:44px;padding:0 13px 0 10px;border-radius:22px;display:flex;align-items:center;gap:3px}
html.ios .chat-top .back svg{width:20px;height:20px;stroke-width:2.6}
html.ios .bkn{font-size:16px;font-weight:600;color:var(--text2);padding-right:2px}
html.ios .chat-top .who{justify-self:center;min-width:0;max-width:calc(100vw - 190px);height:46px;border-radius:23px;padding:0 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;text-align:center}
html.ios .chat-top .nm{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;font-size:16px;font-weight:600;line-height:1.15;letter-spacing:-.015em}
html.ios .chat-top .nmt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html.ios .chat-top .st{font-size:12.5px;line-height:1.15;color:var(--text2);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.ios .chat-top .st.live{color:var(--atext)}
html.ios .chat-top .avb{justify-self:end;padding:0;overflow:hidden;width:46px;height:46px}
html.ios .chat-top .avb .av{width:100%!important;height:100%!important;font-size:19px!important}
html.ios .pinbar,html.ios #pinbar.pinbar{position:absolute;top:calc(var(--sat) + 66px);left:12px;right:12px;z-index:11;margin:0;min-height:50px;padding:6px 6px 6px 16px;border-radius:25px;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);color:var(--atext);gap:12px}
html.ios .pinbar .pt b{font-size:14px;font-weight:600;color:var(--text)}
html.ios .pinbar .pt span{font-size:15px;color:var(--text2)}
html.ios .pinbar .ibtn{width:38px;height:38px;color:var(--text2);background:none}

html.ios .msgs{position:absolute;inset:0;padding:calc(var(--sat) + 72px) 8px calc(var(--barh,62px) + 14px);gap:9px;scroll-behavior:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
html.ios .chat:has(.pinbar) .msgs{padding-top:calc(var(--sat) + 130px)}
html.ios .day{margin:12px 0 8px;padding:5px 12px;border-radius:14px;font-size:13px;font-weight:500;background:var(--daypill);color:var(--daytext);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:none}
html.ios .newdiv{background:var(--daypill);color:var(--daytext);border-radius:0;align-self:stretch;text-align:center;margin:10px -8px;padding:6px;font-weight:500}
html.ios .m{gap:6px;content-visibility:visible;contain-intrinsic-size:auto}
html.ios .m .sel{border-color:rgba(255,255,255,.7);background:rgba(0,0,0,.25);width:24px;height:24px;margin-bottom:6px}
html.ios .m.picked .sel{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 4px var(--accent);background-image:none}
html.ios .m.picked .bub{outline:0}
html.ios .bub{position:relative;max-width:min(80%,440px);padding:9px 14px 8px;border-radius:var(--r);background:var(--in);color:var(--in-text);box-shadow:var(--in-sh);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;animation:msgin .22s var(--ease)}
html.ios .bub a,html.ios .bub .mention{-webkit-touch-callout:default}
html.ios .m.out .bub{background:var(--out);color:var(--out-text);border-radius:var(--r)}
html.ios .m.out .bub a{color:#fff}
html.ios .bub .who{font-size:14px;font-weight:600}
html.ios .bub .txt{line-height:1.3;font-weight:400;font-size:16.5px}
html.ios .bub{box-shadow:0 1px 2px rgba(0,0,0,.25)}
html.ios .m.out .bub{box-shadow:0 1px 6px rgba(43,125,242,.35)}
html.ios .m.out .bub .txt{color:#fff}
/* группировка: стыки и «хвостик» у последнего в серии */
html.ios .m.out+.m:not(.out),html.ios .m:not(.out)+.m.out{margin-top:16px}
html.ios .reacts+.meta{float:none;display:flex;justify-content:flex-end;margin:6px 0 0;top:0}
html.ios .m:not(.out)+.m:not(.out) .bub{border-top-left-radius:6px}
html.ios .m:not(.out):has(+.m:not(.out)) .bub{border-bottom-left-radius:6px}
html.ios .m.out+.m.out .bub{border-top-right-radius:6px}
html.ios .m.out:has(+.m.out) .bub{border-bottom-right-radius:6px}
html.ios .m:not(.out):not(:has(+.m:not(.out))) .bub{border-bottom-left-radius:4px}
html.ios .m.out:not(:has(+.m.out)) .bub{border-bottom-right-radius:4px}
html.ios .m:not(.out):not(:has(+.m:not(.out))) .bub:not(.sticker)::after,
html.ios .m.out:not(:has(+.m.out)) .bub:not(.sticker)::after{content:"";position:absolute;bottom:0;width:11px;height:15px;-webkit-mask:var(--tail) center/100% 100% no-repeat;mask:var(--tail) center/100% 100% no-repeat}
html.ios .m.out:not(:has(+.m.out)) .bub:not(.sticker)::after{right:-8px;background:var(--out-end);--tail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 15'%3E%3Cpath d='M0 0v15h1.2C5.400 15 8.600 13.900 11 12.300 7.200 11.500 3.500 8.400 2.200 4.500L1.600 0z'/%3E%3C/svg%3E")}
html.ios .m:not(.out):not(:has(+.m:not(.out))) .bub:not(.sticker)::after{left:-8px;background:var(--in);--tail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 15'%3E%3Cpath d='M11 0v15H9.800C5.600 15 2.400 13.900 0 12.300 3.800 11.500 7.500 8.400 8.800 4.500L9.400 0z'/%3E%3C/svg%3E")}
html.ios .bub.sticker{background:none!important;box-shadow:none}
html.ios .bub.mo{padding:3px 3px 4px}
html.ios .bub .media{margin:0 0 3px;border-radius:calc(var(--r) - 3px)}
html.ios .bub .media img,html.ios .bub .media video{border-radius:calc(var(--r) - 3px)}
html.ios .bub.mo .meta{position:absolute;right:9px;bottom:8px;margin:0;float:none;top:auto;background:rgba(0,0,0,.42);color:#fff;padding:2px 8px;border-radius:11px;opacity:1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.ios .meta{font-size:11.5px;opacity:1;color:var(--text2);gap:3px;margin-left:10px;top:2px}
html.ios .m.out .meta{color:rgba(255,255,255,.88)}
html.ios .m:not(.out) .meta{color:rgba(255,255,255,.55)}
html.ios[data-theme=light] .m:not(.out) .meta{color:rgba(60,60,67,.55)}
@media (prefers-color-scheme:light){html.ios[data-theme=auto] .m:not(.out) .meta{color:rgba(60,60,67,.55)}}
html.ios .meta .ti.tk{width:16px;height:16px;vertical-align:-3.5px}
html.ios .reply{border-left:2.5px solid var(--atext);background:rgba(120,140,170,.16);border-radius:4px 8px 8px 4px;padding:3px 9px;opacity:1}
html.ios .m.out .reply{border-left-color:#fff;background:rgba(255,255,255,.16)}
html.ios .reply b{font-size:14px;color:var(--atext)}
html.ios .m.out .reply b{color:#fff}
html.ios .reacts{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0 2px;clear:both}
html.ios .react{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px 0 8px;border-radius:14px;background:rgba(255,255,255,.12);color:inherit;font-size:14px;font-weight:600;line-height:1;transition:transform .2s var(--spring)}
html.ios .react:active{transform:scale(.92)}
html.ios .m:not(.out) .react{background:rgba(77,163,255,.22);color:#9fd0ff}
html.ios[data-theme=light] .m:not(.out) .react{background:rgba(61,142,247,.14);color:#1c6fe0}
@media (prefers-color-scheme:light){html.ios[data-theme=auto] .m:not(.out) .react{background:rgba(61,142,247,.14);color:#1c6fe0}}
html.ios .m.out .react{background:rgba(255,255,255,.26);color:#fff}
html.ios .react.mine{background:var(--accent);color:#fff;outline:0;box-shadow:0 0 0 1.5px rgba(255,255,255,.35) inset}
html.ios .m.out .react.mine{background:#fff;color:#1c6fe0;box-shadow:none}
html.ios .m.hit .bub{outline:2px solid var(--accent)}
html.ios .poll .po{border-radius:12px}
html.ios .todown{right:14px;bottom:calc(var(--barh,62px) + 16px);width:44px;height:44px;border-radius:50%;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);color:var(--text);z-index:9}
html.ios .todown .badge{top:-9px;right:-3px}

/* поле ввода */
html.ios #bottom{position:absolute;left:0;right:0;bottom:0;z-index:10}
html.ios .bar{padding:6px 10px calc(var(--sab) + 6px);gap:8px;background:none}
html.ios.kb .bar{padding-bottom:8px}
html.ios .comp{display:flex;align-items:flex-end;gap:8px;background:none;box-shadow:none;padding:0;border-radius:0}
html.ios .comp .cbtn{width:46px;height:46px}
html.ios .comp .pill{flex:1;min-width:0;display:flex;align-items:flex-end;min-height:46px;border-radius:23px;padding:0 4px 0 16px;gap:2px}
html.ios .comp textarea{flex:1;min-width:0;font-size:16px;line-height:22px;padding:12px 0;min-height:46px;max-height:128px;color:var(--text);caret-color:var(--accent);background:none;border:0;outline:0}
html.ios .comp textarea::placeholder{color:var(--text2)}
html.ios .comp .inb{width:38px;height:46px;display:grid;place-items:center;color:var(--text2);flex:none}
html.ios .comp .inb svg{width:23px;height:23px}
html.ios .comp .send{border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 4px 16px rgba(61,142,247,.5);animation:send-pop .3s var(--spring)}
html.ios .comp .send svg{width:22px;height:22px;stroke-width:2.8}
@keyframes send-pop{from{transform:scale(.5);opacity:0}}
html.ios .comp .mic{color:var(--text)}
html.ios .ctx{border-radius:22px;padding:8px 10px 8px 16px;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh)}
html.ios .ctx .t{border-left-color:var(--accent)}
html.ios .selbar{margin:0;border-radius:30px;padding:8px 12px;height:60px;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);margin:6px 10px calc(var(--sab) + 6px)}
html.ios .selbar .ibtn{width:44px;height:44px;color:var(--accent)}
html.ios .blocked{margin:6px 10px calc(var(--sab) + 6px);border-radius:26px;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);color:var(--text2)}
html.ios .recui{background:var(--glass);border-radius:26px;padding:8px 14px}
html.ios .picker{left:10px;right:10px;width:auto;max-width:none;bottom:calc(var(--barh,62px) + 8px);border-radius:28px;background:var(--glass-strong);-webkit-backdrop-filter:blur(30px) saturate(1.9);backdrop-filter:blur(30px) saturate(1.9);border:0;box-shadow:var(--glass-sh);padding:10px;animation:sheet-up .35s var(--ease)}
html.ios .ptabs button.on{background:var(--accent-soft)}
html.ios .upl{height:4px}
html.ios .drop{display:none}

/* ───────── контекстное меню ───────── */
html.ios .menu-layer{position:fixed;inset:0;z-index:100}
html.ios .menu-scrim{position:absolute;inset:0;background:rgba(0,0,0,.34);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);animation:fade .25s}
html.ios:not([data-theme=dark]) .menu-scrim{background:rgba(255,255,255,.3)}
@media (prefers-color-scheme:dark){html.ios[data-theme=auto] .menu-scrim{background:rgba(0,0,0,.34)}}
html.ios .menu{position:absolute;z-index:2;width:272px;min-width:0;max-width:calc(100vw - 24px);padding:6px;border-radius:28px;background:var(--glass-strong);-webkit-backdrop-filter:blur(34px) saturate(1.9);backdrop-filter:blur(34px) saturate(1.9);box-shadow:var(--glass-sh);border:0;animation:menu-pop .38s var(--spring)}
html.ios .menu-react{position:absolute;z-index:2;display:flex;gap:0;padding:5px 8px;border-radius:26px;background:var(--glass-strong);-webkit-backdrop-filter:blur(34px) saturate(1.9);backdrop-filter:blur(34px) saturate(1.9);box-shadow:var(--glass-sh);animation:menu-pop .38s var(--spring)}
html.ios .menu-react button{font-size:27px;width:42px;height:42px;border-radius:50%;transition:transform .2s var(--spring)}
html.ios .menu-react button:active{transform:scale(1.3)}
html.ios .menu-clone{position:fixed!important;margin:0;z-index:1;pointer-events:none;transition:transform .42s var(--ease);content-visibility:visible}
html.ios .menu-clone .bub{animation:none}
html.ios .mi{height:50px;padding:0 16px;gap:15px;border-radius:22px;font-size:17px;color:var(--text);letter-spacing:-.01em;transition:background .12s}
html.ios .mi:active,html.ios .mi:hover{background:rgba(120,120,128,.22)}
html.ios .mi svg,html.ios .mi .ti{width:23px;height:23px;color:var(--text);stroke-width:1.9}
html.ios .mi.danger,html.ios .mi.danger svg,html.ios .mi.danger .ti{color:var(--danger)}
html.ios .msep{height:1px;margin:4px 16px;background:var(--line)}
html.ios .drhead{border-color:var(--line)}

/* ───────── профиль (info) ───────── */
html.ios .info-hd{position:absolute;top:0;left:0;right:0;z-index:6;display:flex;justify-content:space-between;padding:calc(var(--sat) + 8px) 14px 0;pointer-events:none;font-size:17px}
html.ios .info-hd>*{pointer-events:auto}
html.ios .ihero{padding:calc(var(--sat) + 30px) 0 4px;text-align:center}
html.ios .ibanner{display:none}
html.ios .iav{margin-top:0}
html.ios .iav>*{border:0;border-radius:50%;box-sizing:border-box}
html.ios .inm{font-size:28px;font-weight:700;margin-top:12px;letter-spacing:-.02em;padding:0 20px}
html.ios .ist{font-size:16px;color:var(--text2);margin-top:2px}
html.ios .iacts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(58px,1fr);gap:6px;padding:16px 16px 6px;overflow-x:auto;justify-content:stretch}
html.ios .atile{min-width:0;height:74px;border-radius:20px;background:var(--panel-g);color:var(--atext);font-size:12px;gap:5px;padding:10px 4px 8px;justify-content:center;font-weight:500;transition:transform .2s var(--spring),background .15s}
html.ios .atile:hover{transform:none;background:var(--panel-g)}
html.ios .atile:active{transform:scale(.94);background:var(--panel2)}
html.ios .atile .ai{width:auto;height:auto;background:none;color:var(--atext)}
html.ios .atile .ai svg,html.ios .atile .ai .ti{width:26px;height:26px;color:var(--atext)}
html.ios .atile.danger,html.ios .atile.danger .ai,html.ios .atile.danger .ai svg{color:var(--danger);background:var(--panel-g)}
html.ios .info .card{margin:10px 16px;background:var(--panel-g);border-radius:22px;padding:0;overflow:hidden}
html.ios .kv{display:flex;flex-direction:column-reverse;gap:1px;padding:11px 16px 11px;border-bottom:.5px solid var(--line);word-break:break-word}
html.ios .kv:last-child{border-bottom:0}
html.ios .kv .k{font-size:14px;color:var(--text2)}
html.ios .kv .v{font-size:17px;color:var(--text)}
html.ios .kv.cp .v{color:var(--atext)}
html.ios .kv.cp:hover{background:none}
html.ios .kv.cp:active{background:var(--panel2)}
html.ios .info .mi{height:52px;border-radius:0;padding:0 16px;color:var(--atext);width:100%;border-bottom:.5px solid var(--line)}
html.ios .info .mi:last-child{border-bottom:0}
html.ios .info .mi.danger{color:var(--danger)}
html.ios .info .sect{padding:18px 32px 6px;text-transform:none}
html.ios .mtabs{margin-top:14px}
html.ios .mtbar{margin:0 16px 10px;padding:3px;border:0;border-radius:20px;background:var(--panel-g);gap:2px;overflow-x:auto}
html.ios .mt{flex:1;height:34px;padding:0 12px;border:0;border-radius:17px;font-size:14px;font-weight:500;color:var(--text);transition:background .2s}
html.ios .mt.on{background:var(--panel3);color:var(--text)}
html.ios .mgrid{padding:0 16px;gap:3px}
html.ios .mgrid img,html.ios .mgrid video{border-radius:8px}
html.ios .mem{padding:9px 16px;gap:12px}
html.ios .mem:hover{background:none}
html.ios .ggrid.mini{padding:0 16px}
html.ios .gcell{background:var(--panel-g);border-radius:20px}
html.ios .hint{color:var(--text2);padding:0 16px}
html.ios #sbar,html.ios .sbar{position:absolute;top:calc(var(--sat) + 66px);left:12px;right:12px;z-index:13;margin:0;height:50px;padding:0 8px 0 16px;border-radius:25px;background:var(--glass-strong);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh)}
html.ios .sbar input{font-size:16px;color:var(--text)}

/* ───────── настройки ───────── */
html.ios .spage{position:fixed;left:0;right:0;top:var(--vvt,0px);bottom:auto;height:var(--vvh,100dvh);width:auto;z-index:50;background:var(--bg-g);display:block;border:0;animation:fade .2s}
html.ios .sx{display:none}
html.ios .sside{width:auto;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;background:none;border:0;padding:calc(var(--sat) + 14px) 16px calc(var(--sab) + 110px);display:block;transition:transform .42s var(--ease),filter .42s var(--ease)}
html.ios .spage.open .sside{transform:translateX(-28%);filter:brightness(.55)}
html.ios .shero{padding:10px 0 6px}
html.ios .sbanner{display:none}
html.ios .sav{margin-top:0}
html.ios .sav>*{border:0;box-sizing:border-box}
html.ios .snm{font-size:26px;font-weight:700;letter-spacing:-.02em;margin-top:12px}
html.ios .ssub{font-size:16px;color:var(--text2)}
html.ios .sid{display:none}
html.ios .snav{background:var(--panel-g);border-radius:22px;padding:0;margin:20px 0 0;gap:0;overflow:hidden}
html.ios .sn{height:54px;padding:0 16px;border-radius:0;gap:14px;font-size:17px;font-weight:400;position:relative;width:100%;color:var(--text)}
html.ios .sn::before{content:"";position:absolute;left:60px;right:0;bottom:0;height:.5px;background:var(--line)}
html.ios .sn:last-child::before{display:none}
html.ios .sn::after{content:"";width:8px;height:8px;border-right:2px solid var(--text3);border-top:2px solid var(--text3);transform:rotate(45deg);margin-left:auto;flex:none}
html.ios .sn:hover{background:none}
html.ios .sn:active{background:var(--panel2)}
html.ios .sn.on{background:none;font-weight:400;color:var(--text)}
html.ios .snav .se{width:30px;height:30px;border-radius:8px;color:#fff;display:grid;place-items:center;flex:none;font-size:15px}
html.ios .snav .sn:nth-child(8) .se{background:#ff9f0a}
html.ios .snav .sn:nth-child(9) .se{background:#64748b}
html.ios .se .ti,html.ios .se .pic{width:19px;height:19px;color:#fff!important;filter:none}
html.ios .se .pic{object-fit:contain}
html.ios .spage .smain{display:none;position:absolute;inset:0;max-width:none;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--bg-g);padding:calc(var(--sat) + 68px) 16px calc(var(--sab) + 40px);box-shadow:-12px 0 44px rgba(0,0,0,.4)}
html.ios .spage.open .smain{display:block;animation:ios-in .42s var(--ease)}
html.ios .sback{position:fixed;display:grid;left:12px;top:calc(var(--vvt,0px) + var(--sat) + 8px);z-index:6;width:44px;height:44px;border-radius:50%;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);color:var(--text);place-items:center;margin:0}
html.ios .stitle{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--vvt,0px) + var(--sat) + 8px);z-index:5;margin:0;height:44px;line-height:44px;padding:0 20px;border-radius:22px;font-size:17px;font-weight:600;background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);max-width:calc(100vw - 150px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ios .spage .sect{padding:20px 16px 7px;font-size:13px;font-weight:400;text-transform:uppercase;color:var(--text2);letter-spacing:.01em}
html.ios .spage .card,html.ios .spage .card.sc{background:var(--panel-g);border-radius:22px;margin:0 0 4px;padding:0;overflow:hidden}
html.ios .spage .pad{padding:14px 16px}
html.ios .spage .mi{height:52px;padding:0 16px;border-radius:0;width:100%;border-bottom:.5px solid var(--line);font-size:17px}
html.ios .spage .mi:last-child{border-bottom:0}
html.ios .spage .mi .sp{flex:1}
html.ios .srow{padding:12px 16px;min-height:54px;border-bottom:.5px solid var(--line);gap:12px}
html.ios .srow:last-child{border-bottom:0}
html.ios .srow:hover:not(.static){background:none}
html.ios .smid b{font-weight:400;font-size:17px}
html.ios .smid small{font-size:13px;color:var(--text2)}
html.ios .spage .kv{padding:11px 16px}
html.ios .spage .btn{margin-top:12px}
html.ios .spage .dev{border-color:var(--line)}
html.ios .spage .acts .btn{margin-top:0}
html.ios .sw{width:51px;height:31px;border-radius:16px;background:rgba(120,120,128,.32);transition:background .25s}
html.ios .sw::after{top:2px;left:2px;width:27px;height:27px;box-shadow:0 3px 8px rgba(0,0,0,.28),0 1px 1px rgba(0,0,0,.16);transition:transform .3s var(--spring)}
html.ios .sw.on{background:var(--ok)}
html.ios .sw.on::after{transform:translateX(20px)}
html.ios .chip{height:36px;padding:0 15px;border-radius:18px;background:var(--panel2);font-size:15px;border:0;display:inline-flex;align-items:center}
html.ios .chip.on{background:var(--accent);color:#fff}
html.ios .sw-col{width:38px;height:38px}
html.ios .lbl{color:var(--text2)}
html.ios select.field.sm{height:36px;padding:0 10px;border-radius:10px}

/* ───────── формы, кнопки, листы ───────── */
html.ios .field{height:52px;padding:0 16px;border-radius:16px;border:0;background:var(--panel2);color:var(--text);font-size:16px;outline:0;margin-bottom:10px;caret-color:var(--accent)}
html.ios .field:focus{box-shadow:0 0 0 2px var(--accent)}
html.ios .field::placeholder{color:var(--text3)}
html.ios .field.ta{height:auto;padding:14px 16px}
html.ios .field.sm,html.ios .btn.sm{height:36px;border-radius:18px}
html.ios .btn{height:52px;border-radius:26px;background:var(--accent);color:#fff;font-size:17px;font-weight:600;letter-spacing:-.01em;transition:transform .2s var(--spring),opacity .15s;padding:0 20px}
html.ios .btn:active{transform:scale(.97)}
html.ios .btn.ghost{background:var(--panel2);color:var(--atext)}
html.ios .btn.danger{background:rgba(255,59,48,.15);color:var(--danger)}
html.ios .btn.sm{padding:0 16px;font-size:15px}
html.ios .link{color:var(--atext);font-size:16px}
html.ios .err{color:var(--danger)}
html.ios .ltabs,html.ios .ptabs2{background:var(--panel2);border-radius:20px;padding:3px}
html.ios .ltabs button,html.ios .ptabs2 button{height:36px;padding:0 8px;border-radius:17px;color:var(--text);font-weight:500;font-size:15px}
html.ios .ltabs button.on,html.ios .ptabs2 button.on{background:var(--panel3);color:var(--text);box-shadow:none}
html.ios[data-theme=light] .ltabs button.on,html.ios:not([data-theme]) .ltabs button.on{background:#fff}

html.ios .modal-bg{position:fixed;left:0;right:0;top:var(--vvt,0px);bottom:auto;height:var(--vvh,100dvh);display:flex;align-items:flex-end;justify-content:center;padding:0;background:rgba(0,0,0,.42);animation:fade .28s;transition:opacity .22s;z-index:60}
html.ios .modal{position:relative;width:100%;max-width:560px;max-height:calc(100% - var(--sat) - 12px);border-radius:34px 34px 0 0;padding:34px 20px calc(var(--sab) + 20px);background:var(--sheet);box-shadow:0 -10px 50px rgba(0,0,0,.35);animation:sheet-up .46s var(--ease);transition:transform .3s var(--ease);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html.ios .modal .grab{position:absolute;top:9px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:3px;background:var(--text3);z-index:3}
html.ios .modal .mclose{position:absolute;left:14px;top:14px;width:40px;height:40px;z-index:3;background:var(--panel2);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.ios .modal .mclose svg{width:18px;height:18px}
html.ios .modal:has(.wal) .mclose{display:none}
html.ios .modal h3{text-align:center;font-size:17px;font-weight:600;line-height:40px;margin:0 44px 14px}
html.ios .modal .acts{gap:10px;margin-top:16px}
html.ios .modal .acts .btn{height:50px;padding:0 12px}
html.ios .walbox{padding:30px 0 calc(var(--sab) + 10px)}
html.ios .wcard{border-radius:26px}
html.ios .wtile,html.ios .wrow,html.ios .gcell{background:var(--panel2)}
html.ios .wh{padding-top:6px}
html.ios .chk2,html.ios .lbl{color:var(--text2)}
html.ios .lightbox,html.ios .story{z-index:90}
html.ios .toast{top:calc(var(--sat) + 10px);bottom:auto;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:24px;background:var(--glass-strong);color:var(--text);-webkit-backdrop-filter:blur(30px) saturate(1.9);backdrop-filter:blur(30px) saturate(1.9);box-shadow:var(--glass-sh);font-size:15px;font-weight:500;animation:toast-in .45s var(--spring);z-index:120;max-width:calc(100vw - 32px);text-align:center;transition:opacity .22s,transform .22s}
html.ios .toast.out{opacity:0;transform:translate(-50%,-10px)}
html.ios .offline{bottom:auto;top:0;padding-top:calc(var(--sat) + 4px);z-index:130}

/* ───────── вход ───────── */
html.ios .login{background:var(--bg);align-items:center;padding:calc(var(--sat) + 20px) 20px calc(var(--sab) + 20px);overflow-y:auto}
html.ios .login-card{background:none;box-shadow:none;max-width:420px;padding:10px 0}
html.ios .logo{width:92px;height:92px;border-radius:26px;background:linear-gradient(180deg,#5aa8ff,#3d8ef7);box-shadow:0 12px 36px rgba(61,142,247,.45);margin-bottom:20px}
html.ios .logo .pic{width:92px;height:92px;border-radius:26px}
html.ios .login h1{font-size:30px;font-weight:700;letter-spacing:-.025em}
html.ios .login p{font-size:16px;color:var(--text2);line-height:1.35}
html.ios .phrow .field.cc{width:122px}
html.ios .field.code{font-size:28px;letter-spacing:12px}
html.ios .hint{color:var(--text2)}

/* ───────── выделение: копируется только текст сообщения ───────── */
html.ios *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html.ios input,html.ios textarea,html.ios .bub .txt,html.ios .bub .txt *{-webkit-user-select:text;user-select:text}
html.ios .bub .media img{-webkit-touch-callout:default}
html.ios ::selection{background:rgba(61,142,247,.35)}
html.ios .menu-layer *{-webkit-user-select:none;user-select:none}

/* ───────── голосовые ───────── */
html.ios .vox{display:flex;align-items:center;gap:11px;min-width:218px;padding:2px 2px 0 0}
html.ios .vplay{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.25)}
html.ios .vplay svg{width:22px;height:22px;fill:currentColor;stroke:none;margin-left:2px}
html.ios .vox:has(.vplay svg path[d^="M7.5"]) .vplay svg{margin-left:0}
html.ios .m.out .vplay{background:#fff;color:#2b7df2}
html.ios .vmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
html.ios .vname{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
html.ios .wave{display:flex;align-items:center;gap:2px;height:28px;cursor:pointer;touch-action:manipulation}
html.ios .wave i{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:currentColor;opacity:.32;transition:opacity .15s;align-self:center}
html.ios .wave i.on{opacity:1}
html.ios .m:not(.out) .wave{color:var(--accent)}
html.ios .m.out .wave{color:#fff}
html.ios .vt{font-size:12px;font-variant-numeric:tabular-nums;opacity:.8}
html.ios .m.out .vt{color:rgba(255,255,255,.9)}
html.ios .vox audio{display:none}

/* ───────── кружки ───────── */
html.ios .bub.rnd{padding:0;background:none!important;box-shadow:none!important;border-radius:50%;max-width:none;overflow:visible}
html.ios .bub.rnd::after{display:none!important}
html.ios .round{position:relative;width:min(240px,64vw);aspect-ratio:1;border-radius:50%;overflow:hidden;background:#000;cursor:pointer;-webkit-mask-image:-webkit-radial-gradient(white,black)}
html.ios .round video{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;pointer-events:none}
html.ios .rring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;opacity:0;transition:opacity .2s;pointer-events:none}
html.ios .round.live .rring{opacity:.95}
html.ios .rdur{position:absolute;left:12px;bottom:12px;padding:2px 9px;border-radius:12px;background:rgba(0,0,0,.45);color:#fff;font-size:12px;font-variant-numeric:tabular-nums}
html.ios .rdur:empty{display:none}
html.ios .bub.rnd .meta{position:absolute;right:6px;bottom:8px;float:none;margin:0;padding:2px 9px;border-radius:12px;background:rgba(0,0,0,.45);color:#fff!important;top:auto}
html.ios .bub.rnd .reacts{margin:6px 0 0;justify-content:flex-end}

/* предпросмотр записи кружка */
html.ios .rprev{position:absolute;left:50%;bottom:calc(var(--barh,62px) + 22px);transform:translateX(-50%);width:min(250px,66vw);aspect-ratio:1;border-radius:50%;z-index:8;overflow:hidden;background:#000;box-shadow:0 10px 40px rgba(0,0,0,.55),0 0 0 3px rgba(255,255,255,.16);animation:rp-in .28s var(--spring)}
html.ios .rprev video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);border-radius:50%}
html.ios .rprev .rring{opacity:1;stroke:#ff453a;stroke-width:4}
@keyframes rp-in{from{transform:translateX(-50%) scale(.6);opacity:0}}

/* ───────── запись: оверлей поверх ввода, кнопка под пальцем остаётся ───────── */
html.ios .comp{position:relative}
html.ios .comp .mic{touch-action:none;transition:transform .2s var(--spring),background .2s}
html.ios .comp .mic.hot{transform:scale(1.35);background:var(--accent);color:#fff;z-index:12;box-shadow:0 0 0 10px rgba(61,142,247,.22)}
html.ios .recov{position:absolute;left:0;right:56px;top:0;bottom:0;z-index:10;display:flex;align-items:center;gap:10px;padding:0 16px;border-radius:23px;background:var(--glass-strong);-webkit-backdrop-filter:blur(26px) saturate(1.9);backdrop-filter:blur(26px) saturate(1.9);box-shadow:var(--glass-sh);animation:rec-in .22s var(--spring)}
html.ios .recov.locked{right:0;padding:0 6px 0 6px}
html.ios .recov .rdot{width:11px;height:11px;border-radius:50%;background:#ff453a;animation:rec 1s infinite alternate;flex:none;margin:0}
html.ios .recov.locked .rdot{margin-left:8px}
html.ios .recov .rt{font-weight:600;font-variant-numeric:tabular-nums;font-size:17px}
html.ios .recov .rhint{flex:1;min-width:0;color:var(--text2);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translateX(var(--dx,0))}
html.ios .recov .rtrash{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#ff453a;flex:none}
html.ios .recov .rsend{width:46px;height:46px;flex:none}
@keyframes rec-in{from{opacity:0;transform:scale(.96)}}

/* ───────── кастомные эмодзи в поле ввода ───────── */
html.ios .tawrap{position:relative;flex:1;min-width:0;display:flex}
html.ios .tawrap textarea{position:relative;width:100%;z-index:1;background:transparent}
html.ios .tawrap textarea.hasce{color:transparent;-webkit-text-fill-color:transparent;caret-color:var(--text)}
html.ios .tamir{position:absolute;inset:0;z-index:0;padding:12px 0;font:16px/22px -apple-system,system-ui,sans-serif;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;pointer-events:none;color:var(--text)}
html.ios .tamir .cemoji{width:1em;height:1em;margin:0;vertical-align:-.16em;object-fit:contain}
html.ios .row .sub .cemoji{width:1.15em;height:1.15em;vertical-align:-.2em;margin:0 1px}

/* ───────── подарки в чате: карточка по центру ───────── */
html.ios .m.gift{justify-content:center;margin-top:14px;margin-bottom:6px}
html.ios .m.gift .sel{position:absolute;left:4px}
html.ios .bub.giftc{max-width:none;width:min(256px,70vw);padding:0;background:none!important;box-shadow:none!important;border-radius:0;color:var(--text);animation:msgin .3s var(--ease)}
html.ios .bub.giftc::after{display:none!important}
html.ios .gcard{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 18px 18px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.05)),var(--panel-g);-webkit-backdrop-filter:blur(24px) saturate(1.8);backdrop-filter:blur(24px) saturate(1.8);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.18),0 6px 24px rgba(0,0,0,.28)}
html.ios .gcard.prem{background:radial-gradient(120% 70% at 50% 0%,rgba(150,120,255,.38),transparent 70%),var(--panel-g)}
html.ios .gspark{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 18% 22%,rgba(255,255,255,.9) 0 1.2px,transparent 2px),radial-gradient(circle at 82% 16%,rgba(255,255,255,.8) 0 1.4px,transparent 2.4px),radial-gradient(circle at 70% 46%,rgba(255,255,255,.6) 0 1px,transparent 2px),radial-gradient(circle at 26% 54%,rgba(255,255,255,.55) 0 1px,transparent 2px),radial-gradient(circle at 90% 62%,rgba(255,255,255,.5) 0 1.2px,transparent 2px);opacity:.55}
html.ios .gart{position:relative;width:112px;height:112px;object-fit:contain;display:grid;place-items:center;filter:drop-shadow(0 8px 14px rgba(0,0,0,.35));animation:gfloat 3.2s ease-in-out infinite}
html.ios .gart.emo{font-size:84px;line-height:112px;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35))}
@keyframes gfloat{50%{transform:translateY(-4px)}}
html.ios .gt{position:relative;margin-top:12px;font-size:17px;font-weight:700;line-height:1.25;color:var(--text)}
html.ios .gs{position:relative;margin-top:2px;font-size:15px;color:var(--text2)}
html.ios .gbtn{position:relative;margin-top:14px;height:40px;padding:0 24px;border-radius:20px;background:var(--glass-strong);color:var(--text);font-weight:600;font-size:15px;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14)}
html.ios .gbtn:active{transform:scale(.96)}
html.ios .bub.giftc .meta{float:none;display:block;text-align:center;margin:7px 0 0;color:var(--text3)!important;position:static}
html.ios .bub.giftc .reacts{justify-content:center}

/* ───────── подарки в профиле: плитки с цветным фоном ───────── */
html.ios .ggrid.mini{grid-template-columns:repeat(3,1fr);gap:8px;padding:0 16px 16px}
html.ios .gcell.gtile{position:relative;aspect-ratio:1;padding:0;border-radius:18px;justify-content:center;background:radial-gradient(circle at 50% 38%,var(--g1),var(--g2));overflow:hidden;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.2)}
html.ios .gcell.gtile .gimg{background:none;width:72%!important;height:72%!important;font-size:40px!important}
html.ios .gcell.gtile .gnum{position:absolute;top:7px;right:-14px;transform:rotate(45deg);width:56px;text-align:center;font:600 9px/1 -apple-system,system-ui,sans-serif;font-style:normal;color:#fff;background:rgba(0,0,0,.22);padding:2px 0}

/* ───────── «Подарить Premium» ───────── */
html.ios .premhead{position:relative;text-align:center;padding:6px 0 18px;border-radius:24px;margin:0 0 10px;background:radial-gradient(120% 80% at 50% 0%,rgba(150,120,255,.28),transparent 70%)}
html.ios .pstars{position:absolute;inset:0;pointer-events:none;opacity:.6;background:radial-gradient(circle at 12% 18%,#ffd66b 0 1.6px,transparent 2.4px),radial-gradient(circle at 84% 12%,#ffd66b 0 2px,transparent 3px),radial-gradient(circle at 24% 62%,#ffd66b 0 1.2px,transparent 2px),radial-gradient(circle at 92% 54%,#ffd66b 0 1.4px,transparent 2px),radial-gradient(circle at 60% 8%,#fff 0 1px,transparent 2px)}
html.ios .pcrown{position:relative;width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(120,90,255,.5))}
html.ios .premhead h3{position:relative;margin:6px 0 2px;font-size:22px}
html.ios .premhead p{position:relative;margin:0 14px}
html.ios .pplans{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 4px 0}
html.ios .pcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:96px;padding:10px 4px;border-radius:18px;background:var(--panel2);box-shadow:inset 0 0 0 .5px var(--line)}
html.ios .pcard b{font-size:15px}
html.ios .pcard small{color:var(--text2)}
html.ios .pcard .gp{margin-top:6px;color:var(--atext);font-weight:600;font-size:13px}
html.ios .gshead{text-align:center;margin:18px 0 2px;font-size:20px}
html.ios .gssub{text-align:center;margin:0 0 12px}

/* баннер нового сообщения, пока приложение открыто */
.nbanner{position:fixed;left:10px;right:10px;top:calc(env(safe-area-inset-top) + 8px);z-index:200;display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:24px;background:var(--glass-strong,#2a2a2e);-webkit-backdrop-filter:blur(28px) saturate(1.9);backdrop-filter:blur(28px) saturate(1.9);box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 0 0 .5px rgba(255,255,255,.14);color:var(--text,#fff);animation:nb-in .35s cubic-bezier(.32,.72,0,1)}
.nbanner.out{opacity:0;transform:translateY(-20px);transition:.3s}
.nbanner .nt{display:flex;flex-direction:column;min-width:0}
.nbanner .nt b{font-size:15px}.nbanner .nt span{font-size:14px;color:var(--text2,#aaa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes nb-in{from{transform:translateY(-120%)}}

/* ═════════ Настройки: новый дизайн + анимации ═════════ */
@keyframes rise{from{opacity:0;transform:translateY(18px) scale(.98)}}
@keyframes popin{from{opacity:0;transform:scale(.86)}60%{transform:scale(1.03)}}
@keyframes shimmer{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}
@keyframes ring-spin{to{transform:rotate(360deg)}}
@keyframes aura{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.12);opacity:.85}}

/* шапка */
html.ios .shero{position:relative;display:flex;flex-direction:column;align-items:center;padding:8px 0 4px;text-align:center}
html.ios .shero::before{content:"";position:absolute;top:-30px;left:50%;width:240px;height:240px;margin-left:-120px;border-radius:50%;background:radial-gradient(circle,var(--accent) 0,transparent 68%);filter:blur(30px);opacity:.5;animation:aura 5s ease-in-out infinite;pointer-events:none}
html.ios .sav{position:relative;padding:4px;border-radius:50%;animation:popin .6s var(--spring) both}
html.ios .sav::before{content:"";position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(from 0deg,var(--accent),#c36bff,#ff7ab6,var(--accent));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));animation:ring-spin 6s linear infinite}
html.ios .snm,html.ios .ssub{position:relative;animation:rise .5s var(--ease) both}
html.ios .snm{animation-delay:.08s}html.ios .ssub{animation-delay:.14s}
html.ios .sqs{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;margin-top:18px}
html.ios .sq{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 2px 10px;border-radius:20px;background:var(--panel-g);font-size:12px;font-weight:500;color:var(--text);box-shadow:inset 0 0 0 .5px var(--line);animation:rise .5s var(--ease) both;transition:transform .18s var(--spring)}
html.ios .sq:nth-child(1){animation-delay:.18s}html.ios .sq:nth-child(2){animation-delay:.23s}html.ios .sq:nth-child(3){animation-delay:.28s}html.ios .sq:nth-child(4){animation-delay:.33s}
html.ios .sq:active{transform:scale(.92)}
html.ios .sqi{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:#fff;font-size:18px;box-shadow:0 4px 10px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.35)}
html.ios .sqi svg,html.ios .se svg{width:20px;height:20px}
html.ios .ssearch{position:relative;width:100%;height:42px;margin-top:14px;padding:0 16px 0 40px;border-radius:21px;border:0;outline:0;font-size:16px;color:var(--text);background:var(--panel-g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") 13px 50%/19px no-repeat;box-shadow:inset 0 0 0 .5px var(--line);animation:rise .5s .38s var(--ease) both;transition:box-shadow .2s}
html.ios .ssearch:focus{box-shadow:inset 0 0 0 1.5px var(--accent)}

/* список разделов — сгруппированные карточки */
html.ios .snav{background:none;border-radius:0;overflow:visible;margin:18px 0 0;display:flex;flex-direction:column;gap:14px}
html.ios .sgrp{background:var(--panel-g);border-radius:22px;overflow:hidden;box-shadow:inset 0 0 0 .5px var(--line)}
html.ios .sn{height:56px;animation:rise .5s var(--ease) both;animation-delay:calc(var(--i,0)*45ms + .3s);transition:background .15s,transform .15s}
html.ios .sn .se{width:32px;height:32px;border-radius:10px;font-size:16px;box-shadow:0 3px 8px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.35)}
html.ios .sn .st{flex:1;text-align:left}
html.ios .sn .sv{color:var(--text3);font-size:16px}
html.ios .sn:active{background:var(--panel2);transform:scale(.985)}
html.ios .sn::before{left:58px}

/* страница раздела */
html.ios .spage .smain>*:not(.sback):not(.stitle){animation:rise .55s var(--ease) both}
html.ios .spage .smain>:nth-child(3){animation-delay:.03s}html.ios .spage .smain>:nth-child(4){animation-delay:.07s}html.ios .spage .smain>:nth-child(5){animation-delay:.11s}html.ios .spage .smain>:nth-child(6){animation-delay:.15s}html.ios .spage .smain>:nth-child(7){animation-delay:.19s}html.ios .spage .smain>:nth-child(8){animation-delay:.23s}html.ios .spage .smain>:nth-child(n+9){animation-delay:.27s}
html.ios .spage .sect{padding:22px 18px 8px;font-size:12.5px;font-weight:600;letter-spacing:.06em;color:var(--atext)}
html.ios .spage .card,html.ios .spage .card.sc{border-radius:24px;box-shadow:inset 0 0 0 .5px var(--line)}
html.ios .spage .mi,html.ios .spage .srow,html.ios .spage .sw-row{transition:background .15s}
html.ios .spage .mi:active,html.ios .spage .srow:active{background:var(--panel2)}
html.ios .spage .field{height:48px;border-radius:14px;background:var(--panel2);border:0;padding:0 14px;margin-bottom:10px;font-size:16px;transition:box-shadow .2s,background .2s}
html.ios .spage .field:focus{box-shadow:0 0 0 2px var(--accent);background:var(--panel-g)}
html.ios .spage .btn{height:50px;border-radius:25px;font-weight:600;background:linear-gradient(135deg,var(--accent),var(--accent2,var(--accent)));box-shadow:0 6px 18px rgba(61,142,247,.35)}
html.ios .spage .btn.ghost{background:var(--panel2);box-shadow:none;color:var(--atext)}
html.ios .spage .btn.danger{background:rgba(255,69,58,.15);color:#ff453a;box-shadow:none}
html.ios .spage .lbl{padding:8px 2px 6px;color:var(--text2);font-size:13px}

/* переключатели с «пружиной» */
html.ios .sw{transition:background .3s var(--ease)}
html.ios .sw::after{transition:transform .4s var(--spring),width .2s}
html.ios .sw:active::after{width:28px}

/* ═════════ общие анимации ═════════ */
html.ios .btn,html.ios .cbtn,html.ios .chip,html.ios .atile,html.ios .pcard,html.ios .gbtn,html.ios .tab,html.ios .back,html.ios .avb,html.ios .who{transition:transform .2s var(--spring),background .2s,opacity .2s}
html.ios .btn:active,html.ios .cbtn:active,html.ios .chip:active,html.ios .atile:active,html.ios .pcard:active,html.ios .tab:active,html.ios .back:active,html.ios .avb:active{transform:scale(.94)}
html.ios .list.enter .row,html.ios #list.enter .row{animation:rise .5s var(--ease) both}
html.ios #list.enter .row:nth-child(2){animation-delay:.04s}html.ios #list.enter .row:nth-child(3){animation-delay:.08s}html.ios #list.enter .row:nth-child(4){animation-delay:.12s}html.ios #list.enter .row:nth-child(5){animation-delay:.16s}html.ios #list.enter .row:nth-child(6){animation-delay:.2s}html.ios #list.enter .row:nth-child(7){animation-delay:.24s}html.ios #list.enter .row:nth-child(8){animation-delay:.28s}html.ios #list.enter .row:nth-child(n+9){animation-delay:.32s}
html.ios .row{transition:background .18s,transform .18s}
html.ios .row:active{transform:scale(.985)}
html.ios .badge{animation:popin .4s var(--spring)}
html.ios .react{animation:popin .35s var(--spring)}
html.ios .ios-tabbar .tb.on .tbi{animation:popin .4s var(--spring)}
html.ios .menu .mi{animation:rise .32s var(--ease) both}
html.ios .menu .mi:nth-child(2){animation-delay:.03s}html.ios .menu .mi:nth-child(3){animation-delay:.06s}html.ios .menu .mi:nth-child(4){animation-delay:.09s}html.ios .menu .mi:nth-child(5){animation-delay:.12s}html.ios .menu .mi:nth-child(n+6){animation-delay:.15s}
html.ios .menu-react button{animation:popin .45s var(--spring) both}
html.ios .menu-react button:nth-child(2){animation-delay:.04s}html.ios .menu-react button:nth-child(3){animation-delay:.08s}html.ios .menu-react button:nth-child(4){animation-delay:.12s}html.ios .menu-react button:nth-child(5){animation-delay:.16s}html.ios .menu-react button:nth-child(6){animation-delay:.2s}
html.ios .day{animation:rise .4s var(--ease) both}
html.ios .todown{animation:popin .35s var(--spring)}
html.ios .modal{animation:sheet-up .45s var(--spring)}
@keyframes sheet-up{from{transform:translateY(100%)}}
html.ios .wrow,html.ios .gcell,html.ios .wtile{animation:rise .45s var(--ease) both}
html.ios .gcell:nth-child(2n){animation-delay:.04s}html.ios .gcell:nth-child(3n){animation-delay:.08s}
html.ios .toast{animation:rise .35s var(--spring)}
html.ios .info .atile{animation:popin .45s var(--spring) both}
html.ios .info .atile:nth-child(2){animation-delay:.05s}html.ios .info .atile:nth-child(3){animation-delay:.1s}html.ios .info .atile:nth-child(4){animation-delay:.15s}html.ios .info .atile:nth-child(5){animation-delay:.2s}

/* скелетон при загрузке чата */
html.ios .skel{height:42px;border-radius:20px;background:linear-gradient(90deg,var(--in) 0,rgba(255,255,255,.16) 50%,var(--in) 100%) 0 0/200px 100%;animation:shimmer 1.2s infinite linear,fade .3s both;align-self:flex-start;margin:0 0 9px 8px;opacity:.7}
html.ios .skel.out{align-self:flex-end;margin:0 8px 9px 0;background:linear-gradient(90deg,#2b7df2 0,#6fb0ff 50%,#2b7df2 100%) 0 0/200px 100%}
html.ios .msgs{display:flex;flex-direction:column}
@media (prefers-reduced-motion:reduce){html.ios *{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}}
