﻿/* Disable pull-to-refresh in Android WebView */
html,body{overscroll-behavior-y:auto}
/* Mobile polish: стабильный размер текста при повороте iOS + убрать синюю вспышку тапа */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
:root{
  --bg:#09111b;
  --bg-soft:#101b2a;
  --bg-gradient:linear-gradient(180deg,#09111b 0%,#0d1624 40%,#08101a 100%);
  --panel:#101826;
  --panel-2:#172438;
  --panel-3:#1e2f49;
  --line:rgba(255,255,255,.08);
  --text:#f2f6fb;
  --muted:#9fb1c6;
  --accent:#33c7ff;
  --accent-2:#4fd66f;
  --danger:#ff6b6b;
  --warning:#ffbe4d;
  --topbar-bg:rgba(7,12,20,.86);
  --menu-panel-bg:rgba(8,14,24,.98);
  --drawer-bg:#0a111c;
  --popover-bg:#0f1826;
  --hero-overlay:linear-gradient(90deg,rgba(6,12,20,.92) 0%,rgba(9,16,26,.82) 45%,rgba(5,10,18,.66) 100%);
  --radius:24px;
  --shadow:0 22px 60px rgba(0,0,0,.28);
  /* Native WebView inject (Android MainActivity.injectSafeAreaInsets) может переопределить
     эти переменные реальными pixel-значениями system bars. На web-браузере остаются 0px
     и safe-area вычисляется через env() ниже. */
  --app-safe-top:0px;
  --app-safe-bottom:0px;
  --app-safe-left:0px;
  --app-safe-right:0px;
  /* Итоговые safe-* = max(web env(), native inject) — работают и в Chrome/Safari mobile
     (с viewport-fit=cover), и в Android WebView immersive. */
  --safe-top:max(env(safe-area-inset-top,0px),var(--app-safe-top,0px));
  --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--app-safe-bottom,0px));
  --safe-left:max(env(safe-area-inset-left,0px),var(--app-safe-left,0px));
  --safe-right:max(env(safe-area-inset-right,0px),var(--app-safe-right,0px));
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg-gradient);color:var(--text);font-family:"Manrope","Segoe UI",sans-serif;overflow-x:hidden}
body{padding-top:calc(78px + var(--safe-top));min-height:100vh;overflow-y:auto}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
.app-shell{min-height:100vh}
.shell{width:min(1200px,calc(100% - 32px));margin:0 auto}
.topbar{position:fixed;top:0;left:0;right:0;z-index:90;padding-top:var(--safe-top);background:var(--topbar-bg);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}
.topbar-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-left:var(--safe-left);padding-right:var(--safe-right)}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:12px}
.top-chat-btn{font-weight:700}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{width:48px;height:48px;border-radius:16px;object-fit:contain;background:transparent}
.brand img,.admin-brand img{filter:none!important;-webkit-filter:none!important;mix-blend-mode:normal;background-color:transparent}
.brand .brand-logo--light,.admin-brand .brand-logo--light{display:none}
body[data-theme-mode="light"] .brand .brand-logo--dark,
body[data-theme-mode="light"] .admin-brand .brand-logo--dark{display:none}
body[data-theme-mode="light"] .brand .brand-logo--light,
body[data-theme-mode="light"] .admin-brand .brand-logo--light{display:block}
.brand span{display:grid;gap:2px}
.brand strong{font-size:15px;letter-spacing:-.03em;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand small{color:var(--muted);max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-toggle,.chip,.icon-chip,.user-chip,.top-links a,.drawer-nav a,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text);padding:12px 16px;transition:.18s ease;cursor:pointer}
.menu-toggle:hover,.chip:hover,.icon-chip:hover,.user-chip:hover,.top-links a:hover,.drawer-nav a:hover,.btn:hover{background:rgba(51,199,255,.10);border-color:rgba(51,199,255,.28)}
.chip-accent,.btn-primary{background:linear-gradient(135deg, rgba(51,199,255,.18), rgba(79,214,111,.18));border-color:rgba(79,214,111,.34)}
.icon-chip,.menu-toggle{width:46px;height:46px;padding:0;position:relative}
.icon-chip span{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.user-chip img{width:36px;height:36px;border-radius:12px;object-fit:cover}
.user-chip--trigger{border:0;background:transparent;padding:0}
.user-chip--trigger:hover{border-color:transparent;background:transparent}
.top-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.top-links-spoiler,.top-links-spoiler__nested{position:relative}
.top-links-spoiler summary,.top-links-spoiler__nested summary{list-style:none;cursor:pointer;border-radius:18px;border:1px solid rgba(106,180,255,.28);background:linear-gradient(135deg,rgba(36,66,118,.68),rgba(12,30,62,.7));padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;letter-spacing:.01em;box-shadow:0 10px 28px rgba(0,0,0,.24);transform:translateY(0);transition:background .24s ease,border-color .24s ease,transform .16s ease,box-shadow .24s ease}
.top-links-spoiler summary::-webkit-details-marker,.top-links-spoiler__nested summary::-webkit-details-marker{display:none}
.top-links-spoiler summary:hover,.top-links-spoiler__nested summary:hover{background:rgba(51,199,255,.10);border-color:rgba(51,199,255,.28)}
.top-links-spoiler summary:active,.top-links-spoiler__nested summary:active{transform:translateY(1px) scale(.995)}
.top-links-spoiler[open] > summary,.top-links-spoiler__nested[open] > summary{background:rgba(51,199,255,.14);border-color:rgba(51,199,255,.32)}
.top-links-spoiler__menu{display:grid;gap:8px;position:absolute;top:calc(100% + 8px);right:0;min-width:220px;max-height:0;padding:0 10px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:var(--menu-panel-bg);box-shadow:var(--shadow);z-index:10;overflow:hidden;opacity:0;transform:translateY(-10px);pointer-events:none;transition:max-height .34s cubic-bezier(.22,.9,.26,1),padding .34s cubic-bezier(.22,.9,.26,1),opacity .24s ease,transform .24s ease}
.top-links-spoiler__menu--left{left:0;right:auto}
.top-links-spoiler[open] > .top-links-spoiler__menu{max-height:540px;padding:10px;opacity:1;transform:translateY(0);pointer-events:auto}
.top-links-spoiler__menu a{display:flex;align-items:center;justify-content:flex-start;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);transform:translateY(0);transition:background .18s ease,border-color .18s ease,transform .14s ease}
.top-links-spoiler__menu a:active{transform:translateY(1px)}
.top-links-spoiler__nested{display:grid;gap:8px}
.top-links-spoiler__nested .top-links-spoiler__menu{position:static;min-width:0;box-shadow:none;background:rgba(255,255,255,.02)}
.top-links-spoiler__nested[open] > .top-links-spoiler__menu{max-height:520px;padding:10px;opacity:1;transform:translateY(0);pointer-events:auto}
.top-links-spoiler__menu--nested a{font-size:13px}
.hero-section,.section{padding:22px 0}
.hero-card,.card,.stat-card,.metric-card,.admin-card,.settings-card{background:linear-gradient(180deg,rgba(16,24,38,.95),rgba(11,18,29,.98));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-card{padding:32px;position:relative;overflow:hidden}
.hero-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right, rgba(51,199,255,.18), transparent 35%), radial-gradient(circle at bottom left, rgba(79,214,111,.16), transparent 25%);pointer-events:none}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.hero-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);font-size:13px;color:var(--muted)}
.hero-card h1{margin:0;font-size:clamp(38px,7vw,68px);line-height:.95;letter-spacing:-.05em;max-width:760px}
.hero-card p{margin:16px 0 0;color:var(--muted);line-height:1.7;font-size:16px;max-width:640px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.stats-grid,.cards-grid,.info-grid,.measure-grid,.admin-grid,.quick-grid,.profile-grid,.three-grid{display:grid;gap:16px}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cards-grid,.three-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.measure-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.profile-grid{grid-template-columns:1.2fr .8fr}
.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.progress-grid{grid-template-columns:1fr 1fr;gap:16px}
.stat-card,.metric-card,.card,.admin-card,.settings-card{padding:22px}
.stat-card strong{display:block;font-size:34px;letter-spacing:-.05em}
.stat-card span,.card p,.meta,.hint,.muted{color:var(--muted)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.section-head h2,.card h2,.card h3,.admin-card h2,.admin-card h3,.settings-card h2{margin:0;letter-spacing:-.04em}
.section-head h2{font-size:clamp(28px,4vw,42px)}
.card-list{display:grid;gap:14px}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.list-row strong{display:block}
.list-row small,.list-row span{color:var(--muted)}
.notification-item.is-unread{border-color:rgba(79,214,111,.34);background:rgba(79,214,111,.08)}
.notification-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.notification-actions form{display:inline-flex}
.outdoor-admin-spoiler{padding:0;overflow:hidden}
.outdoor-admin-spoiler > summary{list-style:none;cursor:pointer;padding:16px 18px;font-size:18px;font-weight:800;letter-spacing:-.02em;border-bottom:1px solid transparent;background:rgba(255,255,255,.02)}
.outdoor-admin-spoiler > summary::-webkit-details-marker{display:none}
.outdoor-admin-spoiler[open] > summary{border-bottom-color:rgba(255,255,255,.08);background:rgba(51,199,255,.08)}
.outdoor-admin-spoiler__body{padding:14px 14px 16px}
.oauth-link-row{align-items:flex-start}
.oauth-link-row__meta{min-width:0;flex:1 1 auto}
.oauth-link-row__meta .muted,.oauth-link-row__meta a{overflow-wrap:anywhere;word-break:break-word}
.oauth-link-row__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.oauth-link-row__actions .btn{max-width:100%;white-space:normal;word-break:break-word;text-align:center}
.oauth-link-row__form{display:inline-flex}
label{display:grid;gap:8px;font-weight:700}
input,textarea,select{width:100%;padding:14px 16px;border-radius:18px;background:rgba(4,10,18,.72);border:1px solid rgba(255,255,255,.08);color:var(--text)}
textarea{min-height:120px;resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.full{grid-column:1/-1}
.profile-settings-sections{display:grid;gap:14px}
.profile-settings-section{padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);display:grid;gap:10px}
.profile-settings-section h3{margin:0}
.profile-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-setting-option{display:grid;grid-template-columns:20px 1fr;align-items:start;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);font-weight:600}
.profile-setting-option input[type="checkbox"]{width:18px;height:18px;padding:0;margin-top:2px}
.profile-setting-option strong{display:block}
.profile-setting-option small{display:block;line-height:1.45}
.table-wrap{overflow:auto;border-radius:18px;border:1px solid rgba(255,255,255,.08)}
table{width:100%;border-collapse:collapse;background:rgba(4,10,18,.68)}
th,td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top}
th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#d6e7f8;background:rgba(255,255,255,.03)}
.flash{padding:14px 16px;border-radius:18px;border:1px solid rgba(79,214,111,.34);background:rgba(79,214,111,.08);margin-bottom:14px}
.flash.is-error{border-color:rgba(255,107,107,.34);background:rgba(255,107,107,.09)}
.empty{padding:22px;border-radius:18px;border:1px dashed rgba(255,255,255,.12);color:var(--muted);background:rgba(255,255,255,.02)}
.profile-hero{display:grid;grid-template-columns:160px 1fr;gap:20px;align-items:center}
.profile-avatar{width:160px;height:160px;border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:#0e1623}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-facts{display:flex;gap:10px;flex-wrap:wrap}
.profile-cube-nav-wrap{display:block}
.profile-cube-nav{width:100%;max-width:100%;margin:0;padding:14px;display:grid;gap:10px;position:static;top:auto;z-index:1}
.profile-cube-nav__trigger{display:grid;gap:2px;width:100%;text-align:left;padding:12px 14px;border-radius:16px;border:1px solid rgba(106,180,255,.28);background:linear-gradient(135deg,rgba(36,66,118,.68),rgba(12,30,62,.7));color:var(--text);cursor:pointer}
.profile-cube-nav__trigger span{font-weight:800;letter-spacing:.01em}
.profile-cube-nav__trigger small{color:var(--muted);font-size:12px;line-height:1.35}
.profile-cube-nav__menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-height:0;overflow:hidden;opacity:0;transform:translateY(-8px);transition:max-height .28s ease,opacity .2s ease,transform .2s ease}
.profile-cube-nav.is-open .profile-cube-nav__menu{max-height:860px;opacity:1;transform:translateY(0)}
.profile-cube-nav__item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:var(--text);cursor:pointer;text-align:left}
.profile-cube-nav__item span{font-weight:700}
.profile-cube-nav__item strong{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.profile-cube-nav__item.is-open{border-color:rgba(79,214,111,.32);background:rgba(79,214,111,.1)}
.profile-cube-nav__item.is-open strong{color:#8fffb0}
.profile-collapsible-section{position:relative}
.profile-collapsible-section__panel{overflow:hidden;max-height:none;opacity:1;transform:translateY(0)}
.profile-collapsible-section.is-ready .profile-collapsible-section__panel{transition:max-height .3s ease,opacity .24s ease,transform .24s ease}
.fact-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:13px;color:var(--muted)}
.measure-bar{padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.measure-bar .top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.measure-bar .track{height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.measure-bar .fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.diff{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;border:1px solid rgba(255,255,255,.08)}
.diff.is-up{color:#8fffb0;border-color:rgba(79,214,111,.3);background:rgba(79,214,111,.08)}
.diff.is-down{color:#ff9da0;border-color:rgba(255,107,107,.3);background:rgba(255,107,107,.08)}
.diff.is-neutral{color:var(--muted)}
.footer{padding:32px 0 46px;color:var(--muted)}
.footer-grid{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:22px;border-radius:24px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.52);opacity:0;visibility:hidden;pointer-events:none;transition:.2s ease;z-index:1700}
.side-drawer{position:fixed;top:0;bottom:0;left:0;width:min(88vw,360px);padding-top:var(--safe-top);background:var(--drawer-bg);border-right:1px solid rgba(255,255,255,.08);transform:translateX(-104%);transition:transform .34s cubic-bezier(.22,.9,.26,1);z-index:1710;display:flex;flex-direction:column;box-shadow:18px 0 48px rgba(0,0,0,.32)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid rgba(255,255,255,.06)}
.drawer-close{width:40px;height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:var(--text)}
.drawer-nav{display:grid;gap:10px;padding:16px}
.drawer-nav--groups{align-content:start;overflow:auto;flex:1 1 auto;min-height:0}
.drawer-android-link{margin:0 16px 10px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid rgba(79,214,111,.34);background:linear-gradient(135deg,rgba(37,82,58,.42),rgba(18,39,30,.58));font-weight:700;color:#d9f7e6;transition:background .2s ease,border-color .2s ease,transform .15s ease}
.drawer-android-link:hover,.drawer-android-link:focus-visible{background:linear-gradient(135deg,rgba(52,113,80,.58),rgba(22,52,39,.72));border-color:rgba(109,235,153,.56);outline:none}
.drawer-android-link:active{transform:translateY(1px)}
.drawer-android-link__icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(12,22,18,.62);border:1px solid rgba(123,228,160,.34)}
.drawer-android-link__icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.drawer-app-version{margin:0 16px 16px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.03);display:grid;gap:2px;text-align:left}
.drawer-app-version:hover,.drawer-app-version:focus-visible{background:rgba(51,199,255,.12);border-color:rgba(51,199,255,.34);outline:none}
.drawer-app-version__label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.drawer-app-version__value{font-size:13px;font-weight:700;color:var(--text)}
.drawer-app-version{margin:0 16px 16px;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.drawer-app-version--interactive{cursor:pointer;user-select:none;transition:background .2s ease,border-color .2s ease,transform .15s ease}
.drawer-app-version--interactive:hover,
.drawer-app-version--interactive:focus-visible{background:rgba(78,173,255,.12);border-color:rgba(78,173,255,.42);outline:none}
.drawer-app-version--interactive:active{transform:translateY(1px)}
.drawer-nav-title{padding:2px 4px 8px;color:var(--muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.drawer-subgroup{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.02)}
.drawer-subgroup > summary{padding:12px 14px;font-weight:700}
.drawer-subgroup .drawer-subnav{padding:0 10px 10px}
.auth-popover{position:fixed;top:calc(84px + var(--safe-top));right:16px;background:var(--popover-bg);border:1px solid rgba(255,255,255,.08);border-radius:22px;box-shadow:var(--shadow);padding:12px;display:none;z-index:1720;width:min(92vw,320px)}
.auth-popover.is-open{display:grid;gap:10px}
.auth-popover a{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.auth-popover__primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.auth-popover__primary a{text-align:center;font-weight:700}
.auth-popover__divider{height:1px;background:rgba(255,255,255,.10);margin:2px 0}
.auth-popover__title{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0 2px}
.auth-popover__social{display:grid;gap:8px}
.auth-social{display:flex;align-items:center;gap:10px}
.auth-social__icon{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:800;letter-spacing:.02em;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14)}
.auth-social--vk .auth-social__icon{background:rgba(91,147,255,.18);border-color:rgba(91,147,255,.36)}
.auth-social--telegram .auth-social__icon{background:rgba(51,199,255,.18);border-color:rgba(51,199,255,.36)}
.auth-social--yandex .auth-social__icon{background:rgba(255,77,79,.16);border-color:rgba(255,77,79,.36)}
.auth-social--max .auth-social__icon{background:rgba(255,190,77,.18);border-color:rgba(255,190,77,.36)}
body.drawer-open{overflow:hidden}
body.drawer-open .drawer-overlay{opacity:1;visibility:visible;pointer-events:auto}
body.drawer-open .side-drawer{transform:translateX(0)}
body.admin-page{padding-top:0}
body.admin-page .app-shell{min-height:100vh}
body.admin-page main.section{width:100%;max-width:none;margin:0;padding:0}
.admin-shell{display:grid;grid-template-columns:290px 1fr;min-height:100vh;background:#eef2f8;color:#1d2940}
.admin-sidebar{background:#eef2f8;border-right:1px solid #d7dfeb;padding:18px;position:sticky;top:0;height:100vh;overflow:auto}
.admin-sidebar-mobile-head{display:none;align-items:center;justify-content:space-between;margin-bottom:10px}
.admin-sidebar-overlay{display:none}
.admin-brand{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#41659b;color:#fff}
.admin-brand img{width:40px;height:40px;border-radius:12px;object-fit:cover;border:0}
.admin-group{margin-top:14px;padding:10px;border-radius:16px;border:1px solid #d7dfeb;background:#f7f9fd;display:grid;gap:6px}
.admin-group h4{margin:0 0 4px;padding:0 8px;color:#667997;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.admin-group a{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-radius:12px;color:#273654;background:#fff;border:1px solid #e1e8f2;cursor:grab}
.admin-group a:hover,.admin-group a.is-active{background:#dfe8f5;border-color:#c7d4e7}
.admin-group a.is-dragging{opacity:.5}
.admin-main{padding:26px;background:#f6f8fc;min-width:0;overflow-x:clip;overflow-y:visible}
.admin-main > *{max-width:100%;min-width:0}
.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px;position:sticky;top:calc(env(safe-area-inset-top,0px));z-index:60;padding:10px 0 12px;background:rgba(246,248,252,.92);backdrop-filter:blur(8px);border-bottom:1px solid #dfe6f1}
.admin-topbar > div{min-width:0}
.admin-topbar h1{overflow-wrap:anywhere}
.admin-menu-toggle{display:none;margin-bottom:10px}
.admin-card,.settings-card{background:#fff;border:1px solid #dfe6f1;box-shadow:none;color:#1e2f49}
.admin-main .admin-card,.admin-main .settings-card,.admin-main .table-wrap,.admin-main form,.admin-main .card-list,.admin-main .list-row{max-width:100%;min-width:0}
.admin-main .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.admin-main code,.admin-main small,.admin-main .muted,.admin-main .hint{overflow-wrap:anywhere;word-break:break-word}
.admin-page input[type="checkbox"][data-setting-checkbox],
.admin-page input[type="checkbox"][data-user-form]{
  appearance:none;
  -webkit-appearance:none;
  width:48px;
  min-width:48px;
  height:28px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--line) 82%, transparent);
  background:color-mix(in srgb,var(--card) 86%, transparent);
  position:relative;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.admin-page input[type="checkbox"][data-setting-checkbox]::after,
.admin-page input[type="checkbox"][data-user-form]::after{
  content:'';
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:color-mix(in srgb,var(--text) 82%, transparent);
  transition:transform .2s ease,background .2s ease;
}
.admin-page input[type="checkbox"][data-setting-checkbox]:checked,
.admin-page input[type="checkbox"][data-user-form]:checked{
  border-color:color-mix(in srgb,var(--ok) 68%, var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--ok) 42%, transparent),color-mix(in srgb,var(--accent-soft) 42%, transparent));
}
.admin-page input[type="checkbox"][data-setting-checkbox]:checked::after,
.admin-page input[type="checkbox"][data-user-form]:checked::after{
  transform:translateX(20px);
  background:#f2fff8;
}
.admin-page input[type="checkbox"][data-setting-checkbox]:focus-visible,
.admin-page input[type="checkbox"][data-user-form]:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-soft) 40%, transparent);
}
.admin-card p,.settings-card p,.admin-card .hint,.settings-card .hint{color:#607086}
.settings-card .field-row{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;padding:18px 0;border-bottom:1px solid #edf1f7}
.settings-card .field-row:last-child{border-bottom:0}
.settings-card input,.settings-card textarea,.settings-card select,.admin-card input,.admin-card textarea,.admin-card select{background:#f8fbff;color:#20304b;border:1px solid #cfdae8}
.switch{display:inline-flex;align-items:center;gap:8px}
.admin-grid--dashboard{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);margin-top:16px}
.admin-grid--triple{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
.admin-grid--split{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}
.admin-grid--analytics-bottom{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);margin-top:16px}
.admin-inline-grid{display:grid;gap:10px}
.admin-inline-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-chats-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
body.admin-page:not([data-theme="light"]) .admin-shell{background:#08111d;color:#e7f2ff}
body.admin-page:not([data-theme="light"]) .admin-sidebar{background:#0f1a2a;border-right-color:rgba(255,255,255,.1)}
body.admin-page:not([data-theme="light"]) .admin-brand{background:linear-gradient(135deg,rgba(45,87,151,.9),rgba(26,57,102,.92));color:#fff}
body.admin-page:not([data-theme="light"]) .admin-group{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.1)}
body.admin-page:not([data-theme="light"]) .admin-group h4{color:#8fa8c7}
body.admin-page:not([data-theme="light"]) .admin-group a{color:#d9e7f8;background:rgba(255,255,255,.02);border-color:rgba(255,255,255,.1)}
body.admin-page:not([data-theme="light"]) .admin-group a:hover,
body.admin-page:not([data-theme="light"]) .admin-group a.is-active{background:rgba(123,175,255,.14);border-color:rgba(123,175,255,.3)}
body.admin-page:not([data-theme="light"]) .admin-main{background:#0b1524}
body.admin-page:not([data-theme="light"]) .admin-topbar{background:rgba(11,21,36,.92);border-bottom-color:rgba(255,255,255,.1)}
body.admin-page:not([data-theme="light"]) .admin-card,
body.admin-page:not([data-theme="light"]) .settings-card{background:linear-gradient(180deg,rgba(16,27,43,.96),rgba(11,20,33,.98));border-color:rgba(255,255,255,.1);color:#e7f2ff}
body.admin-page:not([data-theme="light"]) .admin-card p,
body.admin-page:not([data-theme="light"]) .settings-card p,
body.admin-page:not([data-theme="light"]) .admin-card .hint,
body.admin-page:not([data-theme="light"]) .settings-card .hint{color:#9eb3cd}
body.admin-page:not([data-theme="light"]) .settings-card .field-row{border-bottom-color:rgba(255,255,255,.08)}
body.admin-page:not([data-theme="light"]) .settings-card input,
body.admin-page:not([data-theme="light"]) .settings-card textarea,
body.admin-page:not([data-theme="light"]) .settings-card select,
body.admin-page:not([data-theme="light"]) .admin-card input,
body.admin-page:not([data-theme="light"]) .admin-card textarea,
body.admin-page:not([data-theme="light"]) .admin-card select{background:rgba(6,14,24,.82);border-color:rgba(255,255,255,.14);color:#e7f2ff}
body.admin-page:not([data-theme="light"]) .table-wrap{border-color:rgba(255,255,255,.12)}
body.admin-page:not([data-theme="light"]) table{background:rgba(8,15,26,.74)}
body.admin-page:not([data-theme="light"]) th{background:rgba(255,255,255,.06);color:#d9e8fb}
body.admin-page:not([data-theme="light"]) .flash{border-color:rgba(79,214,111,.38);background:rgba(79,214,111,.12)}
body.admin-page:not([data-theme="light"]) .flash.is-error{border-color:rgba(255,107,107,.4);background:rgba(255,107,107,.13)}
.desktop-only{display:flex}
.chat-mobile-only{display:none!important}
@media (max-width:1080px){
  .desktop-only{display:none}
  .hero-grid,.profile-grid,.info-grid,.cards-grid,.three-grid,.stats-grid,.measure-grid,.form-grid,.admin-shell{grid-template-columns:1fr}
  .profile-settings-list{grid-template-columns:1fr}
  .profile-cube-nav-wrap{display:block}
  .profile-cube-nav{position:static;width:100%;margin-left:0}
  .progress-grid{grid-template-columns:1fr!important}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-main .admin-grid{grid-template-columns:1fr!important}
  .admin-main .admin-chats-grid{grid-template-columns:1fr!important}
  .admin-main [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
  .admin-sidebar{position:fixed;top:0;left:0;bottom:0;height:100vh;width:min(86vw,320px);z-index:130;transform:translateX(-105%);transition:.22s ease;box-shadow:0 24px 46px rgba(0,0,0,.24)}
  .admin-sidebar-mobile-head{display:flex}
  .admin-main{padding:18px}
  .admin-menu-toggle{display:inline-flex}
  .admin-sidebar-overlay{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);border:0;padding:0;opacity:0;visibility:hidden;pointer-events:none;transition:.2s ease}
  body.admin-nav-open .admin-sidebar{transform:translateX(0)}
  body.admin-nav-open .admin-sidebar-overlay{opacity:1;visibility:visible;pointer-events:auto;display:block}
}
@media (max-width:1080px){
  .chat-mobile-only{display:inline-flex!important}
}
@media (hover:none), (pointer:coarse){
  .chat-mobile-only{display:inline-flex!important}
}
@media (max-width:760px){
  body{padding-top:calc(72px + var(--safe-top))}
  /* iOS Safari zoom-on-focus prevention: input font-size >= 16px */
  input,textarea,select{font-size:16px}
  .shell{width:min(100% - 24px, 1200px)}
  .topbar-inner{min-height:72px}
  .topbar-left{min-width:0;flex:1}
  .brand{flex:1;min-width:0}
  .topbar-actions{flex-shrink:0}
  .topbar-inner{gap:8px;padding-right:calc(var(--safe-right) + 4px)}
  .brand{gap:8px}
  .brand img{width:40px;height:40px;border-radius:12px}
  .brand strong{max-width:140px;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.1;font-size:13px}
  .brand small{display:none}
  .brand strong{display:none}
  .menu-toggle,.icon-chip{width:44px;height:44px}
  .chip,.btn{padding:10px 14px}
  .top-chat-btn{padding:10px 12px;border-radius:14px}
  .topbar-actions .user-chip span{display:none}
  .topbar-actions .user-chip--trigger{width:52px;height:52px;padding:0;border-radius:16px;overflow:visible;display:inline-flex;position:relative}
  .topbar-actions .user-chip--trigger img{width:100%;height:100%;border-radius:16px}
  .profile-hero{grid-template-columns:1fr}
  .profile-avatar{width:120px;height:120px}
  .profile-cube-nav{padding:12px}
  .profile-cube-nav__trigger{padding:11px 12px}
  .profile-cube-nav__item{padding:10px}
  .profile-cube-nav__menu{grid-template-columns:1fr}
  .settings-card .field-row{grid-template-columns:1fr}
  .quick-grid{grid-template-columns:1fr}
  .admin-main{padding:14px 12px 22px}
  .admin-topbar{gap:10px}
  .admin-topbar > div{width:100%}
  .admin-topbar .btn{max-width:100%}
  .admin-main .list-row{flex-direction:column;align-items:flex-start;gap:6px}
  .admin-main .list-row small{width:100%;text-align:left}
  .admin-main [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}
  .admin-main table{min-width:680px}
  .admin-main th,.admin-main td{padding:12px 10px}
  .admin-main td[style*="display:flex"]{align-items:flex-start}
  .admin-main td[style*="display:flex"] .btn{white-space:normal}
  .admin-inline-grid--2{grid-template-columns:1fr}
  .oauth-link-row{flex-direction:column;align-items:stretch}
  .oauth-link-row__actions{width:100%;justify-content:flex-start}
  .oauth-link-row__actions .btn{width:100%}
  .oauth-link-row__form{display:flex;width:100%}
  .oauth-link-row__form .btn{width:100%}
}
.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--danger);font-size:11px;color:#fff}
.chip-compact{padding-inline:12px}
.theme-toggle{min-width:46px}
.theme-toggle__icon{width:14px;height:14px;border-radius:999px;display:inline-block;border:1px solid rgba(255,255,255,.24);background:radial-gradient(circle at 35% 35%, #fff5b6 0%, #f0c24a 62%, #c58b28 100%);box-shadow:0 0 0 3px rgba(255,190,77,.12)}
body[data-theme-mode="dark"] .theme-toggle__icon{background:radial-gradient(circle at 65% 35%, #d7e6ff 0%, #8ca4cf 58%, #4f648e 100%);box-shadow:0 0 0 3px rgba(131,167,224,.16)}
.theme-toggle__text{display:none!important}
.btn-small{padding:10px 14px;border-radius:14px}
.badge-inline{margin-top:8px}
.drawer-group{border:1px solid rgba(255,255,255,.06);border-radius:18px;background:rgba(255,255,255,.03);overflow:hidden}
.drawer-group summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:10px;transform:translateY(0);transition:background .22s ease,transform .16s ease,border-color .22s ease}
.drawer-group summary::-webkit-details-marker{display:none}
.drawer-group summary:active{transform:translateY(1px)}
.drawer-group summary::after{content:"";width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .22s ease,opacity .22s ease;opacity:.8}
.drawer-group[open] > summary::after{transform:rotate(225deg)}
.drawer-subnav{display:grid;gap:8px;max-height:0;opacity:0;transform:translateY(-8px);overflow:hidden;padding:0 10px;transition:max-height .32s cubic-bezier(.22,.9,.26,1),padding .32s cubic-bezier(.22,.9,.26,1),opacity .24s ease,transform .24s ease}
.drawer-group[open] .drawer-subnav{max-height:min(72vh,980px);padding:0 10px 10px;opacity:1;transform:translateY(0);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.drawer-subnav a{transform:translateY(0);transition:background .18s ease,border-color .18s ease,transform .14s ease}
.drawer-subnav a:active{transform:translateY(1px)}
.nav-item-draggable{cursor:grab}
.nav-item-draggable.is-dragging{opacity:.46}
.hero-showcase{position:relative;min-height:calc(100vh - 130px);display:grid;align-items:center;padding:26px 0 34px;overflow:hidden;border-radius:40px;isolation:isolate}
.hero-showcase__backdrop{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(1.2px);transform:scale(1.04);border-radius:inherit}
.hero-showcase__backdrop::after{content:"";position:absolute;inset:0;background:var(--hero-overlay)}
.hero-showcase::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 0 120px rgba(7,12,20,.34)}
.hero-showcase::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:radial-gradient(130% 92% at 50% 50%, rgba(7,12,20,0) 56%, rgba(7,12,20,.32) 74%, rgba(7,12,20,.76) 100%)}
.hero-showcase__content{position:relative;z-index:3;display:grid;grid-template-columns:1.14fr .86fr;gap:26px;align-items:center}
.hero-showcase__left{display:grid;gap:18px;padding-left:12px}
.hero-showcase__left h1{margin:0;font-size:clamp(42px,6vw,72px);line-height:.95;letter-spacing:-.05em;max-width:720px}
.hero-showcase__left p{margin:0;max-width:620px;color:#d8e3f1;font-size:18px;line-height:1.65}
.hero-kicker{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#c8d7ea}
.hero-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:8px}
.hero-benefit{padding:18px;border-radius:20px;background:rgba(10,22,42,.72);border:1px solid rgba(93,138,255,.22);box-shadow:0 18px 30px rgba(0,0,0,.22);font-weight:700}
.hero-showcase__right{justify-self:end;width:min(430px,100%)}
.hero-mobile-portrait{display:none;overflow:hidden;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(8,19,38,.74);box-shadow:0 20px 38px rgba(0,0,0,.26)}
.hero-mobile-portrait img{width:100%;height:280px;object-fit:cover}
.portrait-card{padding:14px;border-radius:24px;background:linear-gradient(180deg,rgba(116,74,150,.2),rgba(9,18,28,.95));border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 42px rgba(0,0,0,.3)}
.portrait-card img{width:100%;max-height:520px;object-fit:cover;border-radius:20px}
.portrait-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.portrait-stats div{padding:16px 10px;border-radius:18px;background:rgba(8,19,38,.84);border:1px solid rgba(255,255,255,.08);text-align:center}
.portrait-stats strong{display:block;font-size:24px}
.portrait-stats span{display:block;margin-top:6px;color:var(--muted);font-size:13px}
.about-split{display:grid;grid-template-columns:.95fr 1.05fr;gap:24px;align-items:center}
.about-split img{width:100%;height:100%;min-height:360px;object-fit:cover;border-radius:24px}
.about-content{display:grid;gap:14px}
.about-heading{margin:0;font-size:clamp(30px,4.4vw,52px);line-height:1.05;letter-spacing:-.04em}
.about-lead{margin:0;color:var(--muted);line-height:1.75}
.about-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.about-facts{margin-top:-4px}
.about-column h4{margin:0 0 10px;font-size:24px;letter-spacing:-.02em}
.about-column ul{margin:0;padding-left:18px;display:grid;gap:10px;line-height:1.65;color:var(--text)}
.about-actions{margin-top:4px}
.about-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.direction-card img,.news-cover{width:100%;height:240px;object-fit:cover;border-radius:20px;margin-bottom:14px}
.news-cover{height:220px}
.results-preview-grid,.results-grid-page,.people-grid,.reviews-grid-page{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.result-card{display:grid;gap:14px}
.result-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.result-photo{width:100%;height:260px;object-fit:cover;border-radius:18px}
.schedule-table td,.schedule-table th{white-space:nowrap}
.schedule-table td:first-child,.schedule-table th:first-child{white-space:normal}
.schedule-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px;align-items:start}
.schedule-layout--single{grid-template-columns:minmax(0,1fr)}
.trainer-signups-card{display:grid;gap:12px;align-content:start}
.trainer-signups-card h3{margin:0}
.trainer-signups-list{display:grid;gap:10px;max-height:560px;overflow:auto;padding-right:2px}
.trainer-signup-item{display:grid;gap:8px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.trainer-signup-item__meta{display:grid;gap:4px}
.trainer-signup-item__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.review-slider{overflow:hidden;padding:18px}
.review-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(290px,1fr);gap:16px;overflow-x:auto;scroll-behavior:smooth;padding-bottom:4px}
.review-slide,.review-card{display:grid;gap:12px;padding:18px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.review-slide__footer,.review-card__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.news-card{display:grid;gap:14px}
.news-article{display:grid;gap:18px}
.news-excerpt{font-size:18px;line-height:1.7;color:#d6e4f6}
.news-body{display:grid;gap:12px;line-height:1.8;color:#eff5fb}
.zoom-photo{width:100%;max-height:320px;object-fit:cover;border-radius:18px;cursor:zoom-in}
.people-card{display:grid;gap:14px;align-content:start;text-align:left}
.people-card__avatar{margin:0 auto 8px;width:120px;height:120px}
.price-card{display:grid;gap:10px}
@media (max-width:1080px){
  .hero-showcase__content,.about-split,.results-preview-grid,.results-grid-page,.people-grid,.reviews-grid-page,.news-grid{grid-template-columns:1fr}
  .hero-showcase__left{padding-left:8px}
  .hero-benefits{grid-template-columns:1fr}
  .about-columns{grid-template-columns:1fr}
  .schedule-layout{grid-template-columns:1fr}
}
@media (max-width:760px){
  .hero-showcase{min-height:auto;padding-top:8px;border-radius:24px}
  .hero-showcase__left{padding-left:4px}
  .hero-showcase__left p{font-size:16px}
  .about-heading{font-size:34px}
  .portrait-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .portrait-stats strong{font-size:20px}
  .direction-card img,.news-cover,.result-photo{height:210px}
  .review-track{grid-auto-columns:85%}
  .result-compare{grid-template-columns:1fr}
}

body[data-theme="light"]{
  --bg:#f2f6fc;
  --bg-soft:#e6eef8;
  --bg-gradient:linear-gradient(180deg,#f6f9ff 0%,#edf3fb 45%,#e5edf8 100%);
  --panel:#ffffff;
  --panel-2:#f4f8ff;
  --panel-3:#ebf2fb;
  --line:rgba(18,43,77,.14);
  --text:#12243d;
  --muted:#5b6e86;
  --accent:#1f86ec;
  --accent-2:#17a66c;
  --danger:#d85463;
  --topbar-bg:rgba(247,251,255,.92);
  --menu-panel-bg:rgba(255,255,255,.98);
  --drawer-bg:#f7fbff;
  --popover-bg:#ffffff;
  --hero-overlay:linear-gradient(90deg,rgba(236,243,252,.88) 0%,rgba(229,238,250,.82) 45%,rgba(220,231,246,.74) 100%);
  --shadow:0 16px 44px rgba(16,41,74,.12);
}
body[data-theme="light"] .menu-toggle,
body[data-theme="light"] .chip,
body[data-theme="light"] .icon-chip,
body[data-theme="light"] .user-chip,
body[data-theme="light"] .top-links a,
body[data-theme="light"] .drawer-nav a,
body[data-theme="light"] .btn{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.14);color:var(--text)}
body[data-theme="light"] .drawer-app-version{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.14);color:#4e6581}
body[data-theme="light"] .drawer-app-version--interactive:hover,
body[data-theme="light"] .drawer-app-version--interactive:focus-visible{background:rgba(31,134,236,.12);border-color:rgba(31,134,236,.28)}
body[data-theme="light"] .drawer-android-link{color:#1c5634;border-color:rgba(35,135,78,.34);background:linear-gradient(135deg,rgba(71,173,112,.22),rgba(57,137,93,.16))}
body[data-theme="light"] .drawer-android-link:hover,
body[data-theme="light"] .drawer-android-link:focus-visible{background:linear-gradient(135deg,rgba(77,186,120,.3),rgba(52,153,97,.26));border-color:rgba(35,135,78,.48)}
body[data-theme="light"] .drawer-android-link__icon{background:rgba(255,255,255,.8);border-color:rgba(35,135,78,.28)}
body[data-theme="light"] .drawer-app-version{background:rgba(255,255,255,.86);border-color:#c7d6e8}
body[data-theme="light"] .drawer-app-version:hover,
body[data-theme="light"] .drawer-app-version:focus-visible{background:rgba(219,239,255,.9);border-color:#84b7ea}
body[data-theme="light"] .comment-editor-form.chat-form:not(.chat-form--sticky){background:rgba(255,255,255,.96)}
body[data-theme="light"] .auth-popover{background:rgba(255,255,255,.98);border-color:rgba(17,43,77,.16)}
body[data-theme="light"] .auth-popover a{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .auth-popover__divider{background:rgba(17,43,77,.14)}
body[data-theme="light"] .auth-social__icon{background:rgba(17,43,77,.08);border-color:rgba(17,43,77,.18)}
body[data-theme="light"] .menu-toggle:hover,
body[data-theme="light"] .chip:hover,
body[data-theme="light"] .icon-chip:hover,
body[data-theme="light"] .user-chip:hover,
body[data-theme="light"] .top-links a:hover,
body[data-theme="light"] .drawer-nav a:hover,
body[data-theme="light"] .btn:hover{background:rgba(31,134,236,.12);border-color:rgba(31,134,236,.28)}
body[data-theme="light"] .hero-card,
body[data-theme="light"] .card,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .metric-card{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,250,255,.98));border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .hero-card::before{background:radial-gradient(circle at top right, rgba(31,134,236,.12), transparent 35%), radial-gradient(circle at bottom left, rgba(23,166,108,.12), transparent 25%)}
body[data-theme="light"] .hero-showcase__left p{color:#2f4866}
body[data-theme="light"] .hero-kicker{color:#4c6580}
body[data-theme="light"] .hero-showcase::after{background:radial-gradient(130% 92% at 50% 50%, rgba(247,251,255,0) 56%, rgba(233,240,250,.42) 76%, rgba(229,236,247,.92) 100%)}
body[data-theme="light"] .badge,
body[data-theme="light"] .fact-chip{background:rgba(17,43,77,.06);border-color:rgba(17,43,77,.14);color:var(--muted)}
body[data-theme="light"] .list-row,
body[data-theme="light"] .contact-row,
body[data-theme="light"] .measure-bar,
body[data-theme="light"] .review-slide,
body[data-theme="light"] .review-card{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.12)}
body[data-theme="light"] .strength-progress-spoiler summary{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .strength-progress-item{background:rgba(17,43,77,.03);border-color:rgba(17,43,77,.12)}
body[data-theme="light"] .strength-progress-scale{background:rgba(17,43,77,.12)}
body[data-theme="light"] .strength-progress-empty{background:rgba(17,43,77,.03);border-color:rgba(17,43,77,.2)}
body[data-theme="light"] .strength-filter-pill.is-active{background:rgba(31,134,236,.16);border-color:rgba(31,134,236,.34)}
body[data-theme="light"] .profile-cube-nav__trigger{border-color:rgba(17,43,77,.2);background:linear-gradient(135deg,rgba(245,250,255,.98),rgba(235,243,254,.98))}
body[data-theme="light"] .profile-cube-nav__item{border-color:rgba(17,43,77,.14);background:rgba(17,43,77,.03)}
body[data-theme="light"] .profile-cube-nav__item.is-open{background:rgba(79,214,111,.12);border-color:rgba(58,168,88,.34)}
body[data-theme="light"] .admin-strength-focus-chip{border-color:rgba(17,43,77,.2);background:rgba(17,43,77,.04)}
body[data-theme="light"] .admin-strength-focus-chip:hover{background:rgba(17,43,77,.08)}
body[data-theme="light"] .admin-strength-focus-chip.is-active{border-color:rgba(31,134,236,.34);background:rgba(31,134,236,.14)}
body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select{background:#fff;border-color:rgba(17,43,77,.16);color:var(--text)}
body[data-theme="light"] table{background:#fff}
body[data-theme="light"] th{color:#2f4866;background:rgba(17,43,77,.06)}
body[data-theme="light"] .table-wrap{border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .top-links-spoiler summary,
body[data-theme="light"] .top-links-spoiler__nested summary{border-color:rgba(17,43,77,.22);background:linear-gradient(135deg,rgba(241,247,255,.98),rgba(231,241,253,.98));color:var(--text);box-shadow:0 12px 26px rgba(17,43,77,.12)}
body[data-theme="light"] .top-links-spoiler__menu a{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.12)}
body[data-theme="light"] .hero-benefit{background:rgba(255,255,255,.86);border-color:rgba(31,134,236,.2);box-shadow:0 14px 24px rgba(17,43,77,.12)}
body[data-theme="light"] .portrait-card{background:linear-gradient(180deg,rgba(183,151,213,.26),rgba(236,244,255,.98));border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .portrait-stats div{background:rgba(255,255,255,.88);border-color:rgba(17,43,77,.12)}
body[data-theme="light"] .news-excerpt,
body[data-theme="light"] .news-body{color:var(--text)}
body[data-theme="light"] .empty{background:rgba(17,43,77,.03);border-color:rgba(17,43,77,.2)}
body[data-theme="light"] .comment-editor-form,
body[data-theme="light"] .comment-card,
body[data-theme="light"] .comment-card.is-child{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.12)}
body[data-theme="light"] .comment-editor-tool{background:rgba(17,43,77,.06);border-color:rgba(17,43,77,.16)}
body[data-theme="light"] .emoji-picker{background:rgba(255,255,255,.96);border-color:rgba(17,43,77,.18)}
body[data-theme="light"] .emoji-picker__item{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.14)}
body[data-theme="light"] .comment-code{background:#f2f6fd;border-color:rgba(17,43,77,.16)}
body[data-theme="light"] .media-lightbox__caption{background:rgba(248,252,255,.96);border-color:rgba(17,43,77,.16);color:var(--text)}
body[data-theme="light"] .footer-grid{background:rgba(17,43,77,.04);border-color:rgba(17,43,77,.12)}

body[data-theme="midnight"]{
  --bg:#09111b;
  --bg-soft:#101b2a;
  --panel:#101826;
  --panel-2:#172438;
  --panel-3:#1e2f49;
  --line:rgba(255,255,255,.08);
  --text:#f2f6fb;
  --muted:#9fb1c6;
  --accent:#33c7ff;
  --accent-2:#4fd66f;
  --danger:#ff6b6b;
}
body[data-theme="sunset"]{
  --bg:#1a0f0f;
  --bg-soft:#241515;
  --panel:#2b1818;
  --panel-2:#3a1f1e;
  --panel-3:#4a2624;
  --line:rgba(255,220,200,.10);
  --text:#fff1ea;
  --muted:#d9b6a5;
  --accent:#ff885b;
  --accent-2:#f7d154;
  --danger:#ff7c90;
}
body[data-theme="forest"]{
  --bg:#08120d;
  --bg-soft:#0f1b15;
  --panel:#122018;
  --panel-2:#173124;
  --panel-3:#20402f;
  --line:rgba(213,255,229,.08);
  --text:#eefcf4;
  --muted:#a8c8b4;
  --accent:#4dcf9c;
  --accent-2:#9fd36c;
  --danger:#ff8798;
}
body[data-theme="arctic"]{
  --bg:#0a1420;
  --bg-soft:#102033;
  --panel:#13253a;
  --panel-2:#1a3150;
  --panel-3:#234570;
  --line:rgba(255,255,255,.10);
  --text:#eff8ff;
  --muted:#a7c3dc;
  --accent:#59b9ff;
  --accent-2:#9de0ff;
  --danger:#ff8598;
}

.reveal{opacity:0;transform:translateY(24px);transition:opacity .55s ease,transform .65s ease}
.reveal.is-visible{opacity:1;transform:none}
.reveal-left{transform:translateX(-28px)}
.reveal-right{transform:translateX(28px)}
.reveal-scale{transform:translateY(16px) scale(.96)}
.reveal.is-visible.reveal-left,.reveal.is-visible.reveal-right,.reveal.is-visible.reveal-scale{transform:none}

.chat-thread-list{gap:12px}
.chat-thread-item{align-items:flex-start;min-width:0;max-width:100%;overflow:hidden}
.chat-thread-item__main{display:flex;gap:14px;align-items:flex-start;min-width:0}
.chat-thread-item__main > div{min-width:0}
.chat-thread-item__avatar{width:54px;height:54px;border-radius:16px;object-fit:cover;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.chat-thread-item__preview{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.5;
  overflow-wrap:anywhere;
  word-break:break-word;
  display:flex;
  align-items:center;
  gap:8px;
}
.chat-thread-item__preview-text{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.chat-thread-item__preview-text > span:last-child{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.chat-thread-item__preview-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  line-height:1;
}
.chat-thread-item__preview-thumb{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.chat-thread-item__preview-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.chat-thread-item__preview-thumb.is-video-note,
.chat-thread-item__preview-thumb.is-video{
  border-radius:999px;
  background:radial-gradient(circle at 30% 30%, rgba(89,185,255,.34), rgba(16,34,59,.95));
}
.chat-thread-item__preview-thumb-play{
  width:0;
  height:0;
  margin-left:2px;
  border-style:solid;
  border-width:6px 0 6px 9px;
  border-color:transparent transparent transparent rgba(255,255,255,.94);
}
.chat-thread-item__meta{display:grid;justify-items:end;gap:8px;flex:0 0 auto}
.chat-thread-item .muted{overflow-wrap:anywhere;word-break:break-word}
.chat-role-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.chat-role-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;border:1px solid rgba(51,199,255,.36);background:rgba(51,199,255,.14);color:#d9f1ff;font-size:12px;font-weight:800;line-height:1.2}
.chat-card{display:grid;gap:18px}
.chat-peer-head{display:flex;align-items:center;gap:12px;min-width:0}
.chat-peer-head__meta{display:grid;gap:3px;min-width:0}
.chat-peer-head h2{margin:0;font-size:clamp(20px,4vw,34px);line-height:1.08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-peer-head p{margin:0;color:var(--muted)}
.chat-peer-head__username,.chat-peer-head__presence{font-size:13px}
.chat-box{display:grid;gap:12px;max-height:680px;overflow:auto;padding:14px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.chat-card--pm{display:flex;flex-direction:column;gap:12px;min-height:calc(100dvh - 132px)}
.chat-card--pm .section-head{align-items:center;gap:10px;margin-bottom:6px}
.chat-card--pm .section-head .btn{padding:9px 12px;border-radius:14px}
.chat-peer-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.chat-peer-call-btn{width:42px;min-width:42px;height:42px;padding:0!important;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1}
.chat-peer-actions .btn.is-active{border-color:rgba(79,214,111,.55);background:rgba(79,214,111,.2);color:#ecfff3}
.chat-peer-call-btn--hangup{order:3;border-color:rgba(255,102,132,.45)!important;background:rgba(201,52,72,.26)!important;color:#ffe8ed!important;font-size:0!important}
.chat-peer-call-btn--hangup::before{content:"📞✕";font-size:16px;line-height:1}
.chat-peer-call-btn--hangup:hover{background:rgba(201,52,72,.36)!important}
.section-head--call{align-items:center;gap:12px}
.chat-card--call{gap:10px}
.chat-thread-incoming-call{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(8,16,26,.95)}
.chat-thread-incoming-call[hidden]{display:none!important}
.chat-thread-incoming-call__avatar{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.03)}
.chat-thread-incoming-call__meta{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.chat-thread-incoming-call__meta strong{font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-thread-incoming-call__meta span{font-size:12px;color:var(--muted)}
.chat-thread-incoming-call__meta .chat-thread-incoming-call__network{font-size:11px;color:var(--muted);line-height:1.2}
.chat-thread-incoming-call__actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.chat-thread-incoming-call__actions .btn{padding:7px 10px;border-radius:10px}
.global-incoming-call{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + var(--safe-bottom));z-index:1200;display:flex;align-items:center;gap:10px;width:min(560px,calc(100% - 20px));padding:10px 12px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(8,16,26,.95);box-shadow:0 18px 34px rgba(0,0,0,.35)}
.global-incoming-call[hidden]{display:none!important}
.global-incoming-call__avatar{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.03)}
.global-incoming-call__meta{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.global-incoming-call__meta strong{font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.global-incoming-call__meta span{font-size:12px;color:var(--muted)}
.global-incoming-call__meta .global-incoming-call__network{font-size:11px;color:var(--muted);line-height:1.2}
.global-incoming-call__actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.global-incoming-call__actions .btn{padding:7px 10px;border-radius:10px}
.chat-card--call .chat-call-stage{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0}
.chat-call-stage__note{padding:10px 12px;border-radius:14px;border:1px solid rgba(51,199,255,.2);background:rgba(51,199,255,.08);color:#d9efff;font-size:13px;line-height:1.35}
.chat-call-stage__embed{flex:1 1 auto;min-height:clamp(360px,62dvh,760px);border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#02070f}
.chat-call-stage__embed iframe{width:100%!important;height:100%!important;border:0}
.chat-call-stage__fallback{padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);display:grid;gap:10px}
.chat-call-stage__fallback[hidden]{display:none!important}
.chat-layout-shell--call .chat-card--call{min-height:calc(var(--chat-viewport-height,100dvh) - var(--chat-topbar-height,74px) - 20px)}
.chat-call-native{display:grid;gap:12px;min-height:0;flex:1 1 auto}
.chat-call-native__stage{position:relative;min-height:clamp(360px,62dvh,760px);border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(51,199,255,.15),rgba(2,7,15,.95) 55%)}
.chat-call-native__remote-video{width:100%;height:100%;object-fit:cover;background:#030912}
.chat-call-native__local-video{position:absolute;right:12px;bottom:12px;width:min(34vw,220px);aspect-ratio:16/10;border-radius:14px;border:1px solid rgba(255,255,255,.28);background:#02070f;object-fit:cover;z-index:3}
.chat-call-native__audio-placeholder{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;text-align:center;background:linear-gradient(180deg,rgba(5,14,26,.4),rgba(5,14,26,.92));z-index:2}
.chat-call-native__audio-placeholder img{width:96px;height:96px;border-radius:24px;object-fit:cover;border:1px solid rgba(255,255,255,.2)}
.chat-call-native__audio-placeholder strong{font-size:20px;line-height:1.2}
.chat-call-native__audio-placeholder span{color:var(--muted);font-size:13px}
.chat-call-native__incoming{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:grid;gap:10px;min-width:min(90%,320px);padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(6,14,24,.94);z-index:4}
.chat-call-native__incoming[hidden]{display:none!important}
.chat-call-native__incoming p{margin:0;text-align:center;font-weight:800}
.chat-call-native__incoming-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.chat-call-native__error{position:absolute;left:12px;right:12px;top:12px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,122,122,.45);background:rgba(56,9,12,.86);color:#ffd4d4;z-index:5}
.chat-call-native__controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.chat-call-native__controls .btn{min-width:56px;height:46px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;border-radius:14px}
.chat-call-native__btn-hangup{background:rgba(201,52,72,.26);border-color:rgba(255,102,132,.45)}
.chat-call-native__btn-hangup:hover{background:rgba(201,52,72,.36)}
.chat-call-native__controls .btn.is-hidden{display:none!important}
.chat-card--pm .chat-box{flex:1 1 auto;height:calc(100dvh - 300px);max-height:none;scrollbar-gutter:stable both-edges;overscroll-behavior:contain;gap:10px;padding:12px}
.chat-card--pm .chat-bubble{max-width:min(680px,84%);border-radius:18px 18px 18px 6px;padding:12px 14px}
.chat-card--pm .chat-bubble-row.is-mine .chat-bubble{border-radius:18px 18px 6px 18px}
.chat-card--pm .chat-bubble__author{display:none}
.chat-card--pm .chat-bubble__meta{text-align:right;margin-top:6px;font-size:11px}
.chat-card--pm .chat-message-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chat-card--pm .chat-message-actions .btn{padding:7px 11px;border-radius:11px;font-size:12px}
.chat-message-row{display:flex;align-items:flex-start;gap:10px}
.chat-message-row.is-mine{justify-content:flex-end;flex-direction:row-reverse}
.chat-message-row.is-peer{justify-content:flex-start}
.chat-message-author{width:78px;min-width:78px;display:grid;justify-items:center;gap:6px;padding-top:2px}
.chat-message-avatar{width:48px;height:48px;border-radius:14px}
.chat-message-role{font-size:11px;color:var(--muted);text-align:center;line-height:1.2}
.chat-bubble-row{display:flex}
.chat-bubble-row.is-mine{justify-content:flex-end}
.chat-bubble-row.is-peer{justify-content:flex-start}
.chat-bubble-row.is-reply{position:relative;padding-left:calc(var(--thread-depth,0) * 22px)}
.chat-bubble-row.is-reply::before{content:"";position:absolute;left:calc((var(--thread-depth,0) * 22px) - 11px);top:8px;bottom:8px;width:2px;border-radius:2px;background:linear-gradient(180deg,rgba(51,199,255,.55),rgba(79,214,111,.45))}
.chat-bubble-row.is-mine.is-reply{padding-left:0;padding-right:calc(var(--thread-depth,0) * 22px)}
.chat-bubble-row.is-mine.is-reply::before{left:auto;right:calc((var(--thread-depth,0) * 22px) - 11px)}
.chat-bubble{max-width:min(720px,88%);padding:14px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);box-shadow:0 12px 24px rgba(0,0,0,.14)}
.chat-message-row.is-mine .chat-bubble{background:linear-gradient(135deg,rgba(51,199,255,.16),rgba(79,214,111,.14));border-color:rgba(79,214,111,.24)}
.chat-bubble-row.is-mine .chat-bubble{background:linear-gradient(135deg,rgba(51,199,255,.16),rgba(79,214,111,.14));border-color:rgba(79,214,111,.24)}
.chat-bubble__author{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}
.chat-bubble__author-link{display:inline-flex;align-items:center;gap:8px;color:inherit}
.chat-bubble__author-avatar{width:28px;height:28px;border-radius:10px;object-fit:cover;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.chat-bubble__presence-dot{width:9px;height:9px;border-radius:999px;display:inline-block;flex:0 0 auto;border:1px solid rgba(255,255,255,.35);box-shadow:0 0 0 2px rgba(6,14,24,.85)}
.chat-bubble__presence-dot.is-online{background:#4fd66f}
.chat-bubble__presence-dot.is-offline{background:#ff6b6b}
.chat-bubble__author-meta{color:var(--muted)}
.chat-bubble__reply{display:grid;gap:4px;margin:0 0 10px;padding:9px 11px;border-left:3px solid rgba(51,199,255,.52);border-radius:12px;background:linear-gradient(135deg,rgba(51,199,255,.12),rgba(79,214,111,.08))}
.chat-bubble__reply strong{font-size:12px;line-height:1.2;color:#d8edff}
.chat-bubble__reply span{font-size:13px;line-height:1.35;color:var(--muted)}
.chat-bubble__reply a{color:#9ed9ff;text-decoration:none}
.chat-bubble__reply a:hover{text-decoration:underline}
.chat-bubble__body{line-height:1.7;white-space:normal;word-break:break-word}
.chat-bubble__meta{margin-top:10px;font-size:12px;color:var(--muted)}
.chat-message-actions{margin-top:10px}
.chat-message-actions .btn{font-weight:800}
.chat-message-delete-form{display:inline-flex}
.chat-message-deleted{display:inline-flex;align-items:center;font-style:italic;color:var(--muted)}
.chat-form__actions{display:flex;justify-content:flex-end}
.chat-form--sticky{position:sticky;bottom:calc(8px + var(--safe-bottom));z-index:5;background:rgba(8,14,24,.94);backdrop-filter:blur(10px);box-shadow:0 16px 30px rgba(0,0,0,.24)}
.chat-composer{display:flex;align-items:flex-end;gap:10px}
.chat-composer__input{flex:1 1 auto;min-height:52px;max-height:180px;resize:none;overflow:auto;border-radius:16px}
.chat-composer__send{height:52px;padding:0 16px;border-radius:14px;white-space:nowrap}
.chat-composer__send.is-disabled{opacity:.6;pointer-events:none}
.chat-form--messenger{position:sticky;bottom:calc(4px + var(--safe-bottom));z-index:10;padding:8px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(8,14,24,.97)}
.chat-form--messenger .comment-editor-tools{display:none}
.chat-form--messenger .chat-composer__attach-input{
  position:fixed!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.chat-form--messenger .comment-editor-tool{width:44px;min-width:44px;height:44px;padding:0;border-radius:999px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:18px;flex:0 0 auto}
.chat-form--messenger .chat-composer{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto auto;align-items:end;gap:7px}
.chat-form--messenger .chat-composer__input{min-height:46px;max-height:118px;padding:12px 14px;border-radius:18px;order:2}
.chat-form--messenger .chat-composer__emoji{order:1}
.chat-form--messenger .chat-composer__attach{order:3}
.chat-form--messenger .chat-composer__voice{order:4}
.chat-form--messenger .chat-composer__video{order:5}
.chat-form--messenger .chat-composer__send{order:6;width:44px;min-width:44px;height:44px;padding:0;border-radius:999px;font-size:18px}
.chat-form--messenger .chat-composer__file-label{font-size:11px;line-height:1.2;color:var(--muted);padding:0 2px}
.chat-form--messenger .chat-composer__file-label--stack{display:none!important}
.chat-form--messenger .chat-composer__file-label--stack > span{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03)}
.chat-form--messenger .emoji-picker{position:absolute;left:8px;right:8px;bottom:calc(100% + 8px)}
.chat-form--messenger .chat-composer__attach-sheet-backdrop{
  position:fixed;
  inset:0;
  z-index:90;
  border:0;
  background:rgba(4,8,14,.58);
  opacity:0;
  transition:opacity .2s ease;
}
.chat-form--messenger .chat-composer__attach-sheet-backdrop.is-open{opacity:1}
.chat-form--messenger .chat-composer__attach-sheet-backdrop[hidden]{display:none!important}
.chat-form--messenger .chat-composer__attach-sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:91;
  display:grid;
  gap:10px;
  padding:10px 12px calc(12px + var(--safe-bottom));
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  border-bottom:0;
  background:linear-gradient(180deg,rgba(8,16,29,.985),rgba(6,12,24,.99));
  box-shadow:0 -16px 44px rgba(0,0,0,.45);
  transform:translateY(104%);
  transition:transform .22s cubic-bezier(.22,.9,.26,1);
}
.chat-form--messenger .chat-composer__attach-sheet.is-open{transform:translateY(0)}
.chat-form--messenger .chat-composer__attach-sheet[hidden]{display:none!important}
.chat-form--messenger .chat-composer__attach-sheet-handle{
  width:42px;
  height:4px;
  border-radius:999px;
  margin-inline:auto;
  background:rgba(182,210,238,.55);
}
.chat-form--messenger .chat-composer__attach-sheet-title{margin:0;font-size:15px;font-weight:800;letter-spacing:.01em;color:#eaf6ff}
.chat-form--messenger .chat-composer__attach-sheet-gallery{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px}
.chat-form--messenger .chat-composer__attach-sheet-camera,
.chat-form--messenger .chat-composer__attach-sheet-gallery-main{
  appearance:none;
  border:1px solid rgba(120,198,255,.42);
  background:rgba(32,95,141,.2);
  color:#ecf8ff;
  border-radius:14px;
}
.chat-form--messenger .chat-composer__attach-sheet-camera{
  min-height:100%;
  padding:10px 8px;
  display:grid;
  place-items:center;
  gap:4px;
}
.chat-form--messenger .chat-composer__attach-sheet-camera-icon{font-size:20px;line-height:1}
.chat-form--messenger .chat-composer__attach-sheet-camera-text{font-size:11px;font-weight:700;color:#c7e6ff}
.chat-form--messenger .chat-composer__attach-sheet-gallery-main{padding:10px 12px;display:grid;gap:6px;text-align:left}
.chat-form--messenger .chat-composer__attach-sheet-gallery-title{font-size:14px;font-weight:800}
.chat-form--messenger .chat-composer__attach-sheet-gallery-meta{font-size:12px;color:#b7d7f3}
.chat-form--messenger .chat-composer__attach-sheet-gallery-preview{
  width:100%;
  min-height:78px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  margin-top:2px;
  background:rgba(255,255,255,.05) center/cover no-repeat;
}
.chat-form--messenger .chat-composer__attach-sheet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chat-form--messenger .chat-composer__attach-sheet-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:#e7f4ff;
  border-radius:12px;
  padding:10px 8px;
  text-align:left;
  display:grid;
  gap:4px;
}
.chat-form--messenger .chat-composer__attach-sheet-btn strong{font-size:13px;font-weight:800}
.chat-form--messenger .chat-composer__attach-sheet-btn span{font-size:11px;line-height:1.2;color:#b7d3eb}
.chat-form--messenger .chat-composer__attach-sheet-btn--accent{border-color:rgba(78,219,145,.46);background:rgba(29,113,77,.24)}
.chat-form--messenger .chat-composer__attach-sheet-btn:disabled{opacity:.58;filter:saturate(.75)}
.chat-form--messenger .chat-composer__attach-sheet-location{
  display:grid;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.chat-form--messenger .chat-composer__attach-sheet-location[hidden]{display:none!important}
.chat-form--messenger .chat-composer__attach-sheet-location-image{
  width:100%;
  min-height:130px;
  max-height:160px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
}
.chat-form--messenger .chat-composer__attach-sheet-location-meta{margin:0;font-size:12px;color:#c8e3fa}
.chat-form--messenger .chat-composer__attach-sheet-location-map{
  width:100%;
  min-height:170px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(10,22,37,.78);
}
.chat-form--messenger .chat-composer__attach-sheet-location-map[hidden]{display:none!important}
.chat-form--messenger .chat-composer__attach-sheet-location-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chat-card--pm .chat-form--sticky{position:sticky;bottom:calc(2px + var(--safe-bottom));padding:8px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(8,14,24,.96);overflow:visible}
.chat-card--pm .chat-composer__send{font-weight:800}
.chat-card--pm .chat-form--messenger .chat-composer{
  position:relative;
  display:block;
  width:100%;
}
.chat-card--pm .chat-form--messenger .chat-composer__input{
  width:100%;
  min-height:56px;
  max-height:132px;
  padding:14px 108px 14px 56px;
  border-radius:22px;
  line-height:1.3;
}
.chat-card--pm .chat-form--messenger .comment-editor-tool,
.chat-card--pm .chat-form--messenger .chat-composer__send{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
}
.chat-card--pm .chat-form--messenger .chat-composer__emoji{left:8px}
.chat-card--pm .chat-form--messenger .chat-composer__attach{right:56px}
.chat-card--pm .chat-form--messenger .chat-composer__voice,
.chat-card--pm .chat-form--messenger .chat-composer__video{display:none!important}
.chat-card--pm .chat-form--messenger .chat-composer__send{right:8px}
.chat-presence-list{display:grid;gap:10px;margin-top:12px}
.chat-presence-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.chat-presence-item__main{display:inline-flex;align-items:center;gap:10px;min-width:0;color:inherit}
.chat-presence-item__main img{width:34px;height:34px;border-radius:10px;object-fit:cover;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}
.chat-presence-item__main strong{display:block;line-height:1.2}
.chat-presence-item__main small{display:block;color:var(--muted);line-height:1.2}
.chat-presence-item__state{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.chat-presence-item__state.is-online{background:#e7f8ec;color:#207744;border:1px solid #b9ebc7}
.chat-presence-item__state.is-offline{background:#f5f7fb;color:#5f6f87;border:1px solid #d7dfeb}
.chat-room-membership{margin-top:12px;display:grid;gap:10px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03)}
.chat-room-membership__status{margin:0;color:var(--muted);line-height:1.5}
.chat-room-membership__controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chat-room-membership__interval{display:grid;gap:6px;min-width:180px}
.chat-room-membership__interval span{font-size:12px;color:var(--muted)}
.chat-room-membership__interval select{width:auto;min-width:180px;max-width:100%}
.chat-room-moderation-alert{margin-top:10px}
.chat-participants-spoiler summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}
.chat-participants-spoiler summary::-webkit-details-marker{display:none}
.chat-participants-spoiler[open] summary{margin-bottom:10px}
.chat-readonly-note{padding:14px;color:var(--muted)}
.chat-reaction-row{margin-top:10px}

.contact-list{display:grid;gap:10px}
.contact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.contact-row__left{display:flex;align-items:center;gap:12px}
.contact-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);font-weight:800;letter-spacing:.04em}
.contact-icon.is-phone{background:rgba(79,214,111,.14)}
.contact-icon.is-tg{background:rgba(51,199,255,.16)}
.contact-icon.is-vk{background:rgba(91,147,255,.16)}
.contact-icon.is-max{background:rgba(255,190,77,.14)}

.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.achievement-card{display:grid;gap:10px;align-content:start}
.achievement-card__head{display:flex;align-items:center;gap:12px}
.achievement-card__head img{width:64px;height:64px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}
.achievement-medal-image{cursor:zoom-in}
.achievement-card__fallback{width:64px;height:64px;display:grid;place-items:center;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(255,190,77,.22),rgba(255,140,91,.16));font-size:30px}
.achievement-card p{margin:0;color:var(--muted);line-height:1.6}

.media-lightbox{position:fixed;inset:0;z-index:220;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(2,6,12,.88);backdrop-filter:blur(2px)}
.media-lightbox.is-open{display:flex}
.media-lightbox__panel{position:relative;max-width:min(96vw,1200px);max-height:92vh;display:grid;gap:10px}
.media-lightbox__img{max-width:min(96vw,1200px);max-height:82vh;border-radius:16px;border:1px solid rgba(255,255,255,.18);box-shadow:0 24px 48px rgba(0,0,0,.42);background:#050b14}
.media-lightbox__caption{padding:8px 10px;border-radius:10px;background:rgba(7,14,24,.78);border:1px solid rgba(255,255,255,.12);color:#dce8f8;font-size:14px}
.media-lightbox__close{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:12px;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(8,16,26,.94);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;z-index:230}
.media-lightbox__close:hover{background:rgba(13,26,42,.98);border-color:rgba(255,255,255,.42)}


.photo-upload-sets{display:grid;gap:12px}
.progress-upload-card{padding:16px}
.progress-upload-card h3{margin:0 0 10px}
.progress-phase-list{display:grid;gap:18px}
.progress-phase-block{display:grid;gap:10px}
.progress-phase-block h3{margin:0}
.progress-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.progress-photo-card{display:grid;gap:10px;align-content:start}
.progress-photo-card img{width:100%;max-height:260px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.1);cursor:zoom-in}
.strength-filter-form{align-items:end}
.strength-filter-block{display:grid;gap:8px}
.strength-filter-pills{display:flex;flex-wrap:wrap;gap:8px}
.strength-filter-pill{border-radius:999px;padding:10px 14px}
.strength-filter-pill.is-active{background:rgba(51,199,255,.16);border-color:rgba(51,199,255,.38)}
.strength-side-stack{display:grid;gap:16px}
.strength-progress-card{padding:16px}
.strength-progress-spoiler{display:grid;gap:10px}
.strength-progress-spoiler summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);font-weight:800;letter-spacing:.01em}
.strength-progress-spoiler summary::-webkit-details-marker{display:none}
.strength-progress-spoiler[open] summary{margin-bottom:4px}
.strength-progress-spoiler summary small{font-size:12px;color:var(--muted);font-weight:700}
.profile-progress-spoiler{padding:16px;min-width:0;max-width:100%;overflow-x:hidden}
.profile-progress-spoiler summary{margin:-2px;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-items:start;min-width:0;max-width:100%}
.profile-progress-spoiler summary > span,
.profile-progress-spoiler summary > small{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.profile-progress-spoiler__body{display:grid;gap:6px;min-width:0}
.profile-progress-spoiler__links{margin-top:6px;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;width:100%;max-width:100%;min-width:0}
.profile-progress-spoiler__links > *{min-width:0;max-width:100%}
.profile-progress-spoiler__links .btn{display:flex!important;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;padding:10px 12px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;text-align:center;line-height:1.25;border-radius:16px}
.profile-progress-spoiler__body > .section{padding:10px 0}
.profile-progress-spoiler__body > .section .section-head{margin-bottom:10px}
.strength-progress-list{display:grid;gap:10px;max-height:420px;overflow:auto;padding-right:2px}
.strength-progress-item{display:grid;gap:8px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.strength-progress-item__top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.strength-progress-item__top strong{font-size:15px;line-height:1.35}
.strength-progress-item__meta{font-size:13px;line-height:1.5}
.strength-progress-scale{height:10px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden}
.strength-progress-scale span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.strength-progress-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.strength-progress-empty{padding:12px;border-radius:12px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.02);color:var(--muted);line-height:1.5}
.body-health-grid{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:16px;align-items:start}
.body-health-gauge-card{display:grid;gap:12px;align-content:start}
.body-health-gauge{--gauge-value:0;--gauge-color:#42d884;width:176px;aspect-ratio:1;border-radius:50%;margin:0 auto;position:relative;background:conic-gradient(var(--gauge-color) calc(var(--gauge-value) * 1%),rgba(255,255,255,.12) 0)}
.body-health-gauge::before{content:"";position:absolute;inset:12px;border-radius:50%;background:linear-gradient(180deg,rgba(7,14,24,.96),rgba(10,18,30,.98));border:1px solid rgba(255,255,255,.08)}
.body-health-gauge__inner{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center;padding:18px}
.body-health-gauge__inner strong{display:block;font-size:36px;line-height:1;letter-spacing:-.04em}
.body-health-gauge__inner span{display:block;margin-top:6px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.body-health-gauge__meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.body-health-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.body-health-metric{display:grid;gap:8px;padding:16px}
.body-health-metric__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.body-health-metric__top strong{line-height:1.35}
.body-health-metric__value{font-size:28px;line-height:1;letter-spacing:-.04em}
.body-health-metric__value small{font-size:13px;color:var(--muted);margin-left:4px}
.body-health-compare{margin-top:14px;display:grid;gap:10px}
.body-health-compare h3{margin:0;font-size:24px;letter-spacing:-.04em}
.body-health-compare-spoiler{padding:0;overflow:hidden}
.body-health-compare-spoiler > summary{list-style:none;cursor:pointer;display:grid;gap:4px;padding:14px 16px;border-bottom:1px solid transparent;background:rgba(255,255,255,.03)}
.body-health-compare-spoiler > summary::-webkit-details-marker{display:none}
.body-health-compare-spoiler > summary span{font-size:22px;letter-spacing:-.04em;font-weight:800}
.body-health-compare-spoiler > summary small{color:var(--muted);font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.body-health-compare-spoiler[open] > summary{border-bottom-color:rgba(255,255,255,.08);background:rgba(51,199,255,.08)}
.body-health-compare__content{padding:12px 16px 16px;display:grid;gap:10px}
.body-health-table .diff{white-space:nowrap}

.media-lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(8,16,26,.92);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.media-lightbox__nav--prev{left:-16px}
.media-lightbox__nav--next{right:-16px}
.media-lightbox__nav:hover{background:rgba(13,26,42,.96);border-color:rgba(255,255,255,.35)}

@media (max-width:980px){
  .progress-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .body-health-grid{grid-template-columns:1fr}
}

@media (max-width:900px){
  .profile-progress-spoiler__links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:760px){
  #progress-block{min-width:0;max-width:100%;overflow-x:hidden}
  #profileProgressLinks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .progress-phase-list{gap:12px}
  .progress-photo-grid{grid-template-columns:1fr}
  .progress-upload-card{padding:12px}
  .body-health-summary{grid-template-columns:1fr}
  .body-health-gauge{width:158px}
  .body-health-metric__value{font-size:24px}
  .strength-progress-item__top{flex-direction:column;align-items:flex-start}
  .strength-progress-foot{flex-direction:column;align-items:flex-start}
  .profile-progress-spoiler__links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .media-lightbox__nav{width:38px;height:38px;font-size:20px}
  .media-lightbox__nav--prev{left:-8px}
  .media-lightbox__nav--next{right:-8px}
  .media-lightbox__close{top:calc(env(safe-area-inset-top,0px) + 8px);right:8px;width:38px;height:38px;font-size:18px}
}

@media (max-width:420px){
  .profile-progress-spoiler__links,
  #profileProgressLinks{display:grid!important;grid-template-columns:1fr!important}
}

.locked-profile{display:grid;gap:18px;padding:28px}
.locked-profile__actions{display:flex;gap:12px;flex-wrap:wrap}
.closed-note{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,190,77,.14);border:1px solid rgba(255,190,77,.22);color:#ffd48d}

.reaction-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.reaction-form{display:inline-flex}
.reaction-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.reaction-chip.is-like:hover{border-color:rgba(79,214,111,.3);background:rgba(79,214,111,.08)}
.reaction-chip.is-dislike:hover{border-color:rgba(255,107,107,.3);background:rgba(255,107,107,.08)}
.reaction-chip.is-like.is-active{border-color:rgba(79,214,111,.45);background:rgba(79,214,111,.16)}
.reaction-chip.is-dislike.is-active{border-color:rgba(255,107,107,.45);background:rgba(255,107,107,.16)}

.chat-message-reactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.chat-message-reaction-item{display:inline-grid;gap:3px;align-items:start}
.chat-message-reaction-form{display:inline-flex}
.chat-message-reaction-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#f4f8ff;font-size:13px;line-height:1.1}
.chat-message-reaction-chip span{display:inline-flex;align-items:center;font-size:12px;color:#c8d9ef}
.chat-message-reaction-chip.is-active{border-color:rgba(79,214,111,.42);background:rgba(79,214,111,.15)}
.chat-message-reaction-actors{
  font-size:11px;
  color:#9ac3e6;
  line-height:1.2;
  max-width:230px;
  overflow-wrap:anywhere;
}
.chat-bubble[data-chat-reactable="1"]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.chat-message-action-source{display:none!important}
.chat-reaction-picker-backdrop{position:fixed;inset:0;z-index:1120;background:transparent}
.chat-reaction-picker{position:fixed;left:50%;bottom:calc(var(--safe-bottom) + 76px);transform:translateX(-50%);z-index:1121;display:grid;gap:6px;padding:8px;max-width:calc(100vw - 16px);width:min(352px,calc(100vw - 16px));border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(7,14,25,.96);box-shadow:0 16px 30px rgba(0,0,0,.35)}
.chat-reaction-picker__emojis{display:flex;align-items:center;gap:6px;overflow-x:auto;padding-bottom:1px}
.chat-reaction-picker__item{width:34px;height:34px;flex:0 0 34px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center}
.chat-reaction-picker__item:hover{background:rgba(51,199,255,.15);border-color:rgba(51,199,255,.4)}
.chat-reaction-picker__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.chat-reaction-picker__action{height:34px;padding:0 9px;border-radius:9px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#f3f8ff;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-reaction-picker__action:hover{background:rgba(51,199,255,.14);border-color:rgba(51,199,255,.4)}
.chat-reaction-picker__action.is-danger:hover{background:rgba(255,107,107,.14);border-color:rgba(255,107,107,.45)}
.chat-reaction-picker__action[hidden]{display:none!important}
.chat-stream .chat-reaction-picker{bottom:calc(var(--safe-bottom) + 84px)}
.chat-reaction-picker[hidden],
.chat-reaction-picker-backdrop[hidden]{display:none!important}
@media (min-width:1101px){
  .chat-stream .chat-reaction-picker{bottom:124px}
}
.chat-common-head--room .chat-common-head__room-title{display:none!important}
.chat-common-head--room > div > h2:not(.chat-common-head__room-title){display:none!important}

.theme-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.theme-swatch{padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);display:grid;gap:10px}
.theme-swatch span{display:block;height:18px;border-radius:999px}
.theme-swatch strong{font-size:13px}

.schedule-signup-meta{display:grid;gap:4px}
.remaining-good{color:#8fffb0}
.remaining-bad{color:#ff9da0}

.result-admin-grid{display:grid;gap:16px}
.result-admin-card{padding:18px;border-radius:22px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04)}
.result-admin-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

.people-card__actions{display:flex;gap:10px;flex-wrap:wrap}
.people-card__closed{color:#ffd48d}

.admin-user-edit .table-wrap{overflow-x:auto}
.admin-user-edit table{min-width:920px}
.admin-user-edit th,.admin-user-edit td{vertical-align:top}
.admin-user-edit td input,.admin-user-edit td select,.admin-user-edit td textarea{min-width:92px}
.admin-user-edit .btn.btn-small{white-space:nowrap}
.admin-user-edit__quick-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.admin-strength-last-hint{font-size:12px;color:var(--muted);margin-top:-6px}
.admin-strength-base-pill{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border-radius:999px;background:rgba(255,190,77,.14);border:1px solid rgba(255,190,77,.34);color:#ffd58c;font-size:11px;font-weight:800;letter-spacing:.06em}
.admin-strength-week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
.admin-strength-week-card{display:grid;gap:6px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.admin-strength-week-card strong{font-size:14px;letter-spacing:.03em}
.admin-strength-week-card small{color:var(--muted);font-size:12px}
.admin-strength-week-tags{display:flex;flex-wrap:wrap;gap:6px}
.admin-strength-week-tag{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;background:rgba(51,199,255,.12);border:1px solid rgba(51,199,255,.28)}
.admin-strength-focus-row{display:flex;flex-wrap:wrap;gap:8px}
.admin-strength-focus-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:var(--text);font-weight:700;font-size:12px;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .15s ease}
.admin-strength-focus-chip:hover{background:rgba(255,255,255,.08)}
.admin-strength-focus-chip:active{transform:translateY(1px)}
.admin-strength-focus-chip.is-active{border-color:rgba(51,199,255,.48);background:rgba(51,199,255,.2)}
.admin-strength-focus-chip[data-filter-tone="chest_base"]{border-color:rgba(255,190,77,.42);background:rgba(255,190,77,.14)}
.admin-strength-focus-chip[data-filter-tone="chest_upper"]{border-color:rgba(127,199,255,.4);background:rgba(127,199,255,.12)}
.admin-strength-focus-chip[data-filter-tone="chest_lower"]{border-color:rgba(214,130,255,.38);background:rgba(214,130,255,.14)}
.admin-strength-focus-chip[data-filter-tone="legs"]{border-color:rgba(120,227,139,.42);background:rgba(120,227,139,.14)}
.admin-strength-focus-chip[data-filter-tone="back"]{border-color:rgba(255,149,113,.42);background:rgba(255,149,113,.14)}
.admin-strength-focus-chip[data-filter-tone="arms_shoulders"]{border-color:rgba(255,114,180,.42);background:rgba(255,114,180,.14)}
.admin-strength-focus-chip[data-filter-tone="base"]{border-color:rgba(255,217,111,.46);background:rgba(255,217,111,.18)}
.admin-strength-focus-chip.is-active[data-filter-tone]{box-shadow:0 0 0 1px rgba(255,255,255,.06) inset}
.admin-strength-category-help{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.45}

@media (max-width:760px){
  .side-drawer .drawer-group[open] .drawer-subnav{max-height:2000px;overflow:visible}
  .chat-bubble{max-width:100%}
  .chat-bubble-row.is-reply{padding-left:calc(var(--thread-depth,0) * 12px)}
  .chat-bubble-row.is-mine.is-reply{padding-right:calc(var(--thread-depth,0) * 12px)}
  .chat-message-author{width:62px;min-width:62px}
  .chat-message-avatar{width:40px;height:40px;border-radius:12px}
  .chat-message-role{font-size:10px}
  .chat-composer{gap:8px}
  .chat-composer__send{height:46px;padding:0 12px}
  .chat-composer__input{min-height:46px}
  .chat-form--sticky{bottom:calc(4px + var(--safe-bottom))}
  .chat-form--messenger{left:4px;right:4px;bottom:calc(2px + var(--safe-bottom));padding:6px}
  .chat-form--messenger .comment-editor-tool{width:40px;min-width:40px;height:40px;font-size:16px}
  .chat-form--messenger .chat-composer{gap:6px;grid-template-columns:auto minmax(0,1fr) auto auto auto auto}
  .chat-form--messenger .chat-composer__send{width:40px;min-width:40px;height:40px}
  .chat-form--messenger .chat-composer__input{min-height:44px;max-height:96px;padding:11px 12px}
  .chat-form--messenger .chat-composer__file-label{font-size:10px}
  .chat-form--messenger .chat-composer__file-label--stack{gap:4px}
  .chat-card--pm{min-height:calc(100dvh - 116px)}
  .chat-card--pm .section-head{gap:8px}
  .chat-card--pm .section-head .btn{padding:8px 10px;font-size:12px}
  .chat-peer-actions{width:100%;justify-content:flex-start}
  .chat-peer-call-btn{width:40px;min-width:40px;height:40px}
  .chat-thread-incoming-call{flex-wrap:wrap}
  .chat-thread-incoming-call__actions{width:100%;justify-content:flex-start}
  .global-incoming-call{flex-wrap:wrap}
  .global-incoming-call__actions{width:100%;justify-content:flex-start}
  .chat-peer-head{gap:10px}
  .chat-peer-head .chat-thread-item__avatar{width:42px;height:42px;border-radius:12px}
  .chat-peer-head h2{font-size:18px}
  .chat-peer-head__username,.chat-peer-head__presence{font-size:12px}
  .chat-card--call .chat-call-stage__embed{min-height:calc(100dvh - 320px)}
  .chat-call-native__stage{min-height:calc(100dvh - 332px)}
  .chat-call-native__local-video{width:min(42vw,160px);right:8px;bottom:8px;border-radius:12px}
  .chat-call-native__audio-placeholder img{width:84px;height:84px;border-radius:20px}
  .chat-call-native__audio-placeholder strong{font-size:18px}
  .chat-call-native__controls .btn{min-width:104px}
  .chat-card--pm .chat-box{height:calc(100dvh - 248px)}
  .chat-card--pm .chat-bubble{max-width:92%}
  .chat-card--pm .chat-composer__input{min-height:44px;max-height:96px}
  .chat-card--pm .chat-composer__send{min-width:40px}
  .chat-role-badge{font-size:11px}
  .chat-thread-item{flex-direction:column;align-items:flex-start;gap:8px}
  .chat-thread-item__meta{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .chat-thread-item__meta small{min-width:0;overflow-wrap:anywhere;word-break:break-word;text-align:right}
  .chat-presence-item{align-items:flex-start;flex-direction:column}
  .chat-room-membership__controls{flex-direction:column;align-items:flex-start}
  .chat-room-membership__interval{width:100%;min-width:0}
  .chat-room-membership__interval select{width:100%;min-width:0}
  .contact-row{align-items:flex-start;flex-direction:column}
  .theme-preview{grid-template-columns:1fr 1fr}
  .achievement-grid{grid-template-columns:1fr}
  .admin-user-edit .admin-card{padding:14px}
  .admin-user-edit .admin-user-edit__two-col{grid-template-columns:1fr!important}
  .admin-user-edit table{min-width:680px}
  .admin-user-edit .three-grid{grid-template-columns:1fr}
  .admin-user-edit__quick-nav .btn{flex:1 1 calc(50% - 8px);justify-content:center}
  .admin-strength-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.user-chip--trigger{position:relative}
.user-chip--trigger.has-alert::after{content:"";position:absolute;top:2px;right:2px;width:10px;height:10px;border-radius:999px;background:var(--danger);border:2px solid rgba(6,14,24,.95);z-index:2}
.user-chip-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger);display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:#fff;z-index:3}

.profile-drawer{position:fixed;top:0;bottom:0;right:0;width:min(88vw,360px);padding-top:var(--safe-top);background:var(--drawer-bg);border-left:1px solid rgba(255,255,255,.08);transform:translateX(104%);transition:.22s ease;z-index:1710;display:flex;flex-direction:column}
.drawer-user{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid rgba(255,255,255,.06)}
.drawer-user img{width:46px;height:46px;border-radius:14px;object-fit:cover;border:1px solid rgba(255,255,255,.12)}
.drawer-user strong{display:block}
.drawer-user small{color:var(--muted)}
.drawer-nav a{display:flex;align-items:center;justify-content:flex-start}
.drawer-nav a .count-badge{margin-left:auto}
.drawer-call-alert{display:grid;gap:5px;padding:11px 12px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(10,24,38,.9);margin-bottom:8px}
.drawer-call-alert[hidden]{display:none!important}
.drawer-call-alert small{font-size:11px;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.drawer-call-alert strong{font-size:14px;line-height:1.2}
.drawer-call-alert span{font-size:12px;color:var(--muted)}
.drawer-call-alert__actions{display:flex;gap:7px;flex-wrap:wrap}
.drawer-call-alert__actions .btn{padding:7px 10px;border-radius:10px}

body.drawer-open,body.profile-drawer-open{overflow:hidden}
body.drawer-open .drawer-overlay,body.profile-drawer-open .drawer-overlay{opacity:1;visibility:visible;pointer-events:auto}
body.drawer-open .side-drawer{transform:translateX(0)}
body.profile-drawer-open .profile-drawer{transform:translateX(0)}

@media (max-width:760px){
  .topbar-actions .user-chip--trigger span{display:none}
  .theme-toggle__text{display:none}
}

.schedule-guest-form{display:grid;gap:8px;min-width:220px}
.schedule-guest-form input{padding:10px 12px;border-radius:12px}
.schedule-bot-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.schedule-bot-check input{width:92px}

html[data-app-shell="android-webview"]{
  --safe-top:0px;
  --safe-bottom:0px;
}

.comment-editor-form{display:grid;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.comment-editor-form.chat-form:not(.chat-form--sticky){position:sticky;bottom:calc(8px + var(--safe-bottom));z-index:5;background:rgba(8,14,24,.94);backdrop-filter:blur(10px);box-shadow:0 16px 30px rgba(0,0,0,.24);padding:12px}
.comment-editor-form.chat-form:not(.chat-form--sticky) .comment-editor-title,
.comment-editor-form.chat-form:not(.chat-form--sticky) .comment-editor-tools,
.comment-editor-form.chat-form:not(.chat-form--sticky) .emoji-picker{display:none}
.comment-editor-form.chat-form:not(.chat-form--sticky) label.full{margin:0}
.comment-editor-form.chat-form:not(.chat-form--sticky) .js-comment-editor{min-height:52px;max-height:180px;resize:none;padding-right:132px}
.comment-editor-form.chat-form:not(.chat-form--sticky) .chat-form__actions{position:absolute;right:16px;bottom:16px;margin:0}
.comment-editor-form.chat-form:not(.chat-form--sticky) .chat-form__actions .btn{height:44px;padding:0 14px;border-radius:14px}
.comment-editor-title{font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-size:13px;color:#dceaff}
.comment-editor-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comment-editor-tool{min-width:36px;height:34px;padding:0 10px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:var(--text);cursor:pointer}
.comment-editor-tool:hover{background:rgba(51,199,255,.14);border-color:rgba(51,199,255,.32)}
.comment-editor-tool.is-active{background:rgba(51,199,255,.2);border-color:rgba(51,199,255,.42)}
.emoji-picker{padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(6,14,24,.86);max-height:220px;overflow:auto}
.emoji-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:6px}
.emoji-picker__item{height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);font-size:20px;line-height:1;cursor:pointer}
.emoji-picker__item:hover{background:rgba(51,199,255,.16);border-color:rgba(51,199,255,.34)}
.comment-editor-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.comment-attach{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-weight:600}
.comment-attach input[type=file]{padding:0;background:transparent;border:0}
.comment-reply-target{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:rgba(51,199,255,.10);border:1px solid rgba(51,199,255,.26)}
.comment-reply-target[hidden]{display:none!important}
.comment-reply-target [data-comment-reply-text]{flex:1;min-width:0}
.comment-reply-target [data-comment-reply-link]{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;border:1px solid rgba(51,199,255,.32);background:rgba(7,20,34,.55);color:#9ed9ff;font-size:12px;text-decoration:none;white-space:nowrap}
.comment-reply-target [data-comment-reply-link]:hover{background:rgba(24,66,104,.55);border-color:rgba(51,199,255,.52)}
.comment-reply-target__cancel{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:#dbe9ff;font-size:18px;line-height:1;cursor:pointer;flex:0 0 auto}
.comment-reply-target__cancel:hover{background:rgba(255,255,255,.1);border-color:rgba(51,199,255,.45)}

.comment-thread-list{display:grid;gap:12px;margin-top:14px}
.comment-card{display:grid;gap:12px;padding:14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07)}
.comment-card.is-child{margin-left:22px;background:rgba(255,255,255,.02)}
.comment-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.comment-author{display:flex;align-items:center;gap:10px}
.comment-author img{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.1)}
.comment-body{line-height:1.7;word-break:break-word}
.comment-actions{display:flex;gap:8px;flex-wrap:wrap}
.comment-children{display:grid;gap:10px}
.comment-image{width:100%;max-width:320px;max-height:260px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.1);cursor:zoom-in;transition:transform .18s ease}
.comment-image:hover{transform:scale(1.02)}
.comment-media{margin:10px 0}
.comment-audio{width:min(100%,360px);height:40px}
/* Telegram-style waveform audio player */
.pm-audio-player{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:20px;background:rgba(58,130,220,.08);max-width:320px;width:100%}
.pm-audio-play{width:40px;height:40px;min-width:40px;border-radius:999px;border:none;cursor:pointer;background:#3390ec;color:#fff;display:grid;place-items:center;transition:background .15s;padding:0}
.pm-audio-play:hover{background:#2b7ed6}
.pm-audio-play:active{transform:scale(.95)}
.pm-audio-play svg{width:18px;height:18px;fill:currentColor}
.pm-audio-wave-wrap{flex:1;min-width:80px;display:flex;flex-direction:column;gap:4px}
.pm-audio-wave{display:flex;align-items:flex-end;gap:2px;height:30px;cursor:pointer;position:relative}
.pm-audio-wave-bar{display:block;width:3px;min-width:3px;min-height:4px;border-radius:2px;background:#7ba3c4;transition:background .15s,height .08s ease}
.pm-audio-wave-bar.is-active{background:#3390ec}
.pm-audio-time{font-size:12px;color:#6b8299;font-variant-numeric:tabular-nums;white-space:nowrap}
[data-theme="dark"] .pm-audio-player{background:rgba(60,120,200,.12)}
[data-theme="dark"] .pm-audio-wave-bar{background:rgba(160,195,230,.55)}
[data-theme="dark"] .pm-audio-wave-bar.is-active{background:#5eb5f7}
[data-theme="dark"] .pm-audio-play{background:#5eb5f7}
[data-theme="dark"] .pm-audio-time{color:#8fadc8}
.comment-video{width:min(100%,360px);max-height:320px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:#050b14}
.comment-media--video-note{
  width:164px;
  height:164px;
  border-radius:999px;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  border:1px solid rgba(255,255,255,.18);
  background:#050b14;
}
.comment-video--note{
  width:100%;
  height:100%;
  max-height:none;
  border:0;
  border-radius:999px;
  object-fit:cover;
  background:#050b14;
  cursor:pointer;
}
.comment-video-note-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:56px;
  height:56px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(5,11,20,.64);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:opacity .2s ease,transform .2s ease,background .2s ease,border-color .2s ease;
}
.comment-video-note-play::before{
  content:"";
  width:0;
  height:0;
  margin-left:3px;
  border-style:solid;
  border-width:9px 0 9px 14px;
  border-color:transparent transparent transparent currentColor;
}
.comment-video-note-play:hover{
  background:rgba(31,76,130,.72);
  border-color:rgba(119,207,255,.52);
}
.comment-media--video-note.is-playing .comment-video-note-play{
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(.92);
}
.comment-media--file{margin:10px 0}
.comment-file-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(21,36,58,.72);
  color:#d7ebff;
  text-decoration:none;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.comment-file-link:hover{
  border-color:rgba(77,213,255,.4);
  background:rgba(30,56,88,.84);
}
.comment-media--geo{display:grid;gap:8px;max-width:min(100%,360px)}
.comment-geo-thumb{display:inline-flex;max-width:100%}
.comment-geo-image{max-width:100%!important;width:100%!important}
.comment-geo-details{
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.comment-geo-details > summary{
  list-style:none;
  cursor:pointer;
  padding:8px 10px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#d9ebff;
}
.comment-geo-details > summary::-webkit-details-marker{display:none}
.comment-geo-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:0 10px 10px;
}
.comment-geo-link{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(21,36,58,.72);
  color:#d7ebff;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}
.comment-geo-link:hover{
  border-color:rgba(77,213,255,.4);
  background:rgba(30,56,88,.84);
}
.comment-geo-link.is-muted{
  opacity:.75;
  cursor:default;
}
/* Geo map preview (new) */
.comment-geo-map-link{display:block;border-radius:12px;overflow:hidden}
.comment-geo-map{width:100%;height:auto;display:block;border-radius:12px;border:1px solid rgba(255,255,255,.1)}
.comment-geo-actions{display:flex;gap:6px;flex-wrap:wrap}
.comment-geo-btn{
  font-size:12px;padding:4px 10px;border-radius:10px;
  background:rgba(58,130,220,.12);color:#3390ec;
  text-decoration:none;border:1px solid rgba(58,130,220,.2);
  transition:background .15s;
}
.comment-geo-btn:hover{background:rgba(58,130,220,.22)}
.comment-geo-label{font-size:11px;color:var(--muted,#8aa)}
/* Contact card */
.comment-media--contact{max-width:280px;margin:6px 0}
.comment-contact-card{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:14px;
  background:rgba(58,130,220,.1);
  border:1px solid rgba(58,130,220,.2);
}
.comment-contact-icon{
  width:40px;height:40px;min-width:40px;
  border-radius:50%;background:rgba(58,130,220,.15);
  display:grid;place-items:center;font-size:20px;
}
.comment-contact-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.comment-contact-name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comment-contact-phone{font-size:12px;color:var(--muted,#8aa);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comment-contact-call{
  width:36px;height:36px;min-width:36px;border-radius:50%;
  background:#4caf50;color:#fff;display:grid;place-items:center;
  font-size:18px;text-decoration:none;transition:background .15s;
}
.comment-contact-call:hover{background:#43a047}
.comment-geo-coords{
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.comment-code{margin:10px 0;padding:10px 12px;border-radius:10px;background:#0b1220;border:1px solid rgba(255,255,255,.12);overflow:auto}
.comment-spoiler{margin:10px 0;border:1px dashed rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.03);overflow:hidden}
.comment-spoiler > summary{list-style:none;cursor:pointer;padding:9px 12px;color:var(--muted);font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.comment-spoiler > summary::-webkit-details-marker{display:none}
.comment-spoiler__body{padding:10px 12px;border-top:1px solid rgba(255,255,255,.08)}
.comment-edit-form{margin-top:10px}

@media (max-width:760px){
  .comment-card.is-child{margin-left:10px}
  .comment-card-head{flex-direction:column;align-items:flex-start}
  .comment-editor-meta{align-items:flex-start;flex-direction:column}
  .comment-editor-form.chat-form:not(.chat-form--sticky){bottom:calc(4px + var(--safe-bottom));padding:10px}
  .comment-editor-form.chat-form:not(.chat-form--sticky) .js-comment-editor{min-height:46px;padding-right:120px}
  .comment-editor-form.chat-form:not(.chat-form--sticky) .chat-form__actions{right:12px;bottom:12px}
  .comment-editor-form.chat-form:not(.chat-form--sticky) .chat-form__actions .btn{height:40px}
  .emoji-picker__grid{grid-template-columns:repeat(7,minmax(0,1fr))}
  .schedule-guest-form{min-width:0}
  html,body{overflow-x:hidden}
  .progress-grid{display:flex;flex-direction:column;gap:12px}
  .progress-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px}
  .progress-grid > *{width:100%!important;min-width:0}
  .progress-grid .table-wrap{overflow-x:auto}
  .progress-grid form,.progress-grid .card,.progress-grid .table-wrap,.progress-grid section{min-width:0;max-width:100%}
  .progress-grid input,.progress-grid select,.progress-grid textarea,.progress-grid button{max-width:100%}
  .progress-table thead{display:none}
  .progress-table,
  .progress-table tbody,
  .progress-table tr,
  .progress-table td{display:block;width:100%}
  .progress-table tr{margin:0 0 12px;padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
  .progress-table tr:last-child{margin-bottom:0}
  .progress-table td{border-bottom:0;padding:8px 0;white-space:normal}
  .progress-table td{word-break:break-word}
  .progress-table td::before{content:attr(data-label);display:block;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
  .table-wrap--horizontal{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .progress-table.strength-table{min-width:560px}
  .progress-table.strength-table thead{display:table-header-group}
  .progress-table.strength-table{display:table;width:100%}
  .progress-table.strength-table tbody{display:table-row-group}
  .progress-table.strength-table tr{display:table-row;margin:0;padding:0;border:0;border-radius:0;background:transparent}
  .progress-table.strength-table th,.progress-table.strength-table td{display:table-cell;width:auto;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap;vertical-align:top}
  .progress-table.strength-table td{word-break:normal}
  .progress-table.strength-table td::before{display:none;content:none}
  .progress-table.strength-table .strength-col-exercise{min-width:180px;white-space:normal}
  .schedule-table-wrap{overflow-x:hidden!important;overflow-y:visible;max-width:100%}
  .schedule-table{min-width:0;display:block;width:100%;table-layout:auto;background:transparent}
  .schedule-table thead{display:none}
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td{display:block;width:100%}
  .schedule-table tr{
    margin:0 0 12px;
    padding:12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    min-width:0;
    max-width:100%;
  }
  .schedule-table tr:last-child{margin-bottom:0}
  .schedule-table th,
  .schedule-table td{
    padding:7px 0;
    border-bottom:0;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    vertical-align:top;
    font-size:13px;
    line-height:1.35;
    min-width:0;
    max-width:100%;
  }
  .schedule-table td::before{
    content:attr(data-label);
    display:block;
    font-size:11px;
    letter-spacing:.05em;
    text-transform:uppercase;
    color:var(--muted);
    margin-bottom:4px;
  }
  .schedule-table td .badge-inline{margin-top:6px}
  .schedule-guest-form{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);padding:10px;border-radius:12px}
  .schedule-bot-check{flex-wrap:wrap}
  .schedule-guest-form .btn{width:100%}
}
@media (max-width:760px){
  .hero-mobile-portrait{display:block}
  .hero-showcase__right{display:none}
}
.outdoor-page{display:grid;gap:12px}
.outdoor-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;align-items:center;overflow:hidden}
.outdoor-hero h2{margin:8px 0 12px;font-size:clamp(30px,4.6vw,50px);line-height:1.02;letter-spacing:-.04em}
.outdoor-hero p{margin:0;color:var(--muted);line-height:1.7}
.outdoor-hero img{width:100%;height:100%;min-height:300px;object-fit:cover;border-radius:20px;border:1px solid rgba(255,255,255,.1)}
.outdoor-activity-grid,.outdoor-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.outdoor-activity-card,.outdoor-team-card{display:grid;gap:12px;align-content:start}
.outdoor-activity-card img{width:100%;height:220px;object-fit:cover;border-radius:18px}
.outdoor-team-card img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;border-radius:18px}
.outdoor-team-card .muted{font-weight:700}
.outdoor-team-name-link{color:inherit;text-decoration:none}
.outdoor-team-name-link:hover{text-decoration:underline}
.team-member-links{display:flex;gap:8px;flex-wrap:wrap}
.team-member-links .fact-chip{font-size:12px}
.team-photo-focus-tools{margin-top:12px;display:grid;gap:10px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03)}
.team-photo-focus-tools.is-disabled{opacity:.72}
.team-photo-focus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.team-photo-focus-grid input[type=range]{width:100%}
.team-photo-focus-preview-wrap{position:relative}
.team-photo-focus-preview{width:100%;max-width:460px;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.22)}
.team-photo-focus-empty{max-width:460px;aspect-ratio:16/9;display:grid;place-items:center;text-align:center;padding:10px;border-radius:14px;border:1px dashed rgba(255,255,255,.2);color:var(--muted);background:rgba(255,255,255,.02)}
.outdoor-telegram{display:grid;gap:10px}
.outdoor-telegram h3{margin:0}
.outdoor-telegram p{margin:0;color:var(--muted);line-height:1.7}
.outdoor-telegram a{color:var(--accent)}
.android-download-hero{display:grid;gap:16px}
.android-download-meta{display:flex;gap:10px;flex-wrap:wrap}
.android-feature-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.android-feature-card{display:grid;gap:10px;align-content:start}
.android-feature-head{display:flex;align-items:center;gap:12px}
.android-feature-head h3{margin:0}
.android-feature-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;background:rgba(31,134,236,.14);border:1px solid rgba(31,134,236,.34);color:#9ed2ff}
.android-feature-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
body[data-theme="light"] .android-feature-icon{background:rgba(31,134,236,.1);border-color:rgba(31,134,236,.24);color:#1f6ebf}

@media (max-width:980px){
  .outdoor-hero,.outdoor-activity-grid,.outdoor-team-grid{grid-template-columns:1fr}
  .outdoor-hero img{min-height:240px}
  .team-photo-focus-grid{grid-template-columns:1fr}
  .android-feature-grid{grid-template-columns:1fr}
}

/* APK lite image profile */
body[data-app-image-mode="lite"] .hero-showcase__backdrop{display:none!important;background-image:none!important}
body[data-app-image-mode="lite"] .hero-showcase::after{display:none!important}
body[data-app-image-mode="lite"] .hero-showcase::before{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important}
body[data-app-image-mode="lite"] .hero-showcase{min-height:auto!important}
body[data-app-image-mode="lite"] .hero-showcase__right,
body[data-app-image-mode="lite"] .hero-mobile-portrait,
body[data-app-image-mode="lite"] .hero-benefits{display:none!important}
body[data-app-image-mode="lite"] .hero-card::before{display:none!important}
body[data-app-image-mode="lite"] .hero-card,
body[data-app-image-mode="lite"] .card,
body[data-app-image-mode="lite"] .stat-card,
body[data-app-image-mode="lite"] .metric-card{box-shadow:none!important}
body[data-app-image-mode="lite"] .direction-card img,
body[data-app-image-mode="lite"] .news-cover,
body[data-app-image-mode="lite"] .outdoor-hero img,
body[data-app-image-mode="lite"] .outdoor-activity-card img,
body[data-app-image-mode="lite"] .outdoor-team-card img,
body[data-app-image-mode="lite"] .result-photo{height:auto!important;max-height:180px!important;object-fit:cover!important}
body[data-app-image-mode="lite"] .about-split img{min-height:220px!important}

/* Telegram-style mobile chat layout */
:root{
  --chat-topbar-height:78px;
  --chat-viewport-height:100dvh;
}
@media (max-width:1100px){
  body:not(.chat-screen-open):not(.drawer-open):not(.profile-drawer-open){
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body:not(.chat-screen-open):not(.drawer-open):not(.profile-drawer-open) .app-shell{
    height:auto!important;
    min-height:100dvh;
    overflow:visible!important;
  }
  body.chat-screen-open.chat-room-open:not(.drawer-open):not(.profile-drawer-open),
  body.chat-screen-open.chat-composer-fixed:not(.drawer-open):not(.profile-drawer-open){overflow-y:auto;overflow-x:hidden}
  body.chat-screen-open.chat-room-open .app-shell,
  body.chat-screen-open.chat-composer-fixed .app-shell{height:auto;min-height:100dvh;overflow:visible}
  body.chat-screen-open.chat-room-hub:not(.drawer-open):not(.profile-drawer-open){overflow-y:auto;overflow-x:hidden}
  body.chat-screen-open.chat-room-hub .app-shell{height:auto;min-height:100dvh;overflow:visible}
  body.chat-screen-open.chat-room-hub .chat-layout-shell.chat-no-room{height:auto;min-height:0;overflow:visible}
  body.chat-screen-open.chat-room-hub .chat-layout-shell.chat-no-room .chat-card--common{overflow:visible}
}
@media (min-width:1101px){
  body.chat-screen-open{overflow:auto}
  body.chat-screen-open .app-shell{height:auto;overflow:visible}
  .chat-layout-shell.chat-no-room{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  .chat-layout-shell.chat-no-room .chat-card--common{
    overflow:visible;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub{
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:12px;
    align-content:start;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room{
    padding:10px;
    gap:6px;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room .muted{
    margin:0;
    font-size:13px;
    line-height:1.35;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room-actions{
    gap:8px;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room-actions .btn{
    padding:8px 12px;
  }
}
body.chat-screen-open .footer{display:none!important}
body.chat-screen-open main .chat-layout-shell ~ .section{display:none!important}
.chat-layout-shell{
  display:flex;
  flex-direction:column;
  height:calc(var(--chat-viewport-height,100dvh) - (var(--chat-topbar-height) + var(--safe-top)));
  min-height:calc(var(--chat-viewport-height,100dvh) - (var(--chat-topbar-height) + var(--safe-top)));
  overflow:hidden;
}
.chat-layout-shell,
.chat-layout-shell *{min-width:0}
.chat-layout-shell.section{padding:10px 0 8px}
.chat-card--full{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  gap:12px;
  overflow:hidden;
}
.chat-card--full.chat-card--pm{min-height:0}
.chat-card--full .section-head{margin-bottom:0;flex:0 0 auto}
.chat-common-head{align-items:flex-start;gap:10px}
.chat-common-head--room>div>h2:not(.chat-common-head__room-title),
.chat-common-head--room>div>p{display:none!important}
[data-chat-settings-toggle],
[data-chat-settings-drawer],
[data-chat-settings-backdrop],
.chat-common-settings-drawer,
.chat-common-drawer-backdrop--settings{display:none!important}
.chat-no-room [data-chat-online-toggle],
.chat-no-room [data-chat-online-drawer],
.chat-no-room [data-chat-online-backdrop]{display:none!important}
.chat-card--common>.card[style*="padding:14px"]{display:none!important}
.chat-common-head__room-title{margin:0;font-size:22px;line-height:1.1}
.chat-common-head__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.chat-common-head__leave-form{margin:0;display:inline-flex}
.chat-common-head__icon-btn{width:42px;min-width:42px;height:42px;padding:0!important;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;position:relative}
.chat-common-head__icon-btn:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.7)}
.chat-common-head__room-btn{max-width:min(48vw,320px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-common-head__head-toggle{font-size:18px;font-weight:800;line-height:1}
.chat-common-head__counter{
  position:absolute;
  right:-4px;
  top:-4px;
  min-width:18px;
  height:18px;
  border-radius:999px;
  background:#2da4ff;
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}
.chat-common-drawer-backdrop{
  position:fixed;
  inset:0;
  z-index:1680;
  border:0;
  background:rgba(2,8,14,.55);
  opacity:0;
  transition:opacity .2s ease;
}
.chat-common-drawer-backdrop.is-open{opacity:1}
.chat-common-drawer-backdrop[hidden]{display:none!important}
.chat-common-sections-drawer,
.chat-common-online-drawer,
.chat-common-settings-drawer{
  position:fixed;
  top:calc(var(--chat-topbar-height,78px) + var(--safe-top));
  bottom:0;
  z-index:1690;
  width:min(86vw,360px);
  background:linear-gradient(180deg,rgba(8,16,28,.985),rgba(6,12,22,.985));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 44px rgba(0,0,0,.36);
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  overflow:auto;
  transition:transform .22s cubic-bezier(.22,.9,.26,1);
  pointer-events:none;
}
.chat-common-sections-drawer{
  left:0;
  border-right-width:1px;
  border-left-width:0;
  border-top-right-radius:16px;
  transform:translateX(-104%);
}
.chat-common-sections-drawer.is-open{transform:translateX(0)}
.chat-common-online-drawer{
  right:0;
  border-left-width:1px;
  border-right-width:0;
  border-top-left-radius:16px;
  transform:translateX(104%);
}
.chat-common-online-drawer.is-open{transform:translateX(0)}
.chat-common-settings-drawer{
  right:0;
  border-left-width:1px;
  border-right-width:0;
  border-top-left-radius:16px;
  transform:translateX(104%);
}
.chat-common-settings-drawer.is-open{transform:translateX(0)}
.chat-common-sections-drawer.is-open,
.chat-common-online-drawer.is-open,
.chat-common-settings-drawer.is-open{pointer-events:auto}
.chat-common-sections-drawer__head,
.chat-common-online-drawer__head,
.chat-common-settings-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-common-sections-drawer__close,
.chat-common-online-drawer__close,
.chat-common-settings-drawer__close{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.04);
  color:#ecf6ff;
  font-size:16px;
}
.chat-common-sections-drawer__list{display:grid;gap:8px}
.chat-common-sections-drawer__item{
  display:grid;
  gap:4px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
  padding:10px 12px;
  color:#ecf6ff;
}
.chat-common-sections-drawer__item strong{font-size:14px;line-height:1.25}
.chat-common-sections-drawer__item span{font-size:12px;color:#b8d8ef;line-height:1.35}
.chat-common-sections-drawer__item .chat-common-sections-drawer__meta{color:#d8ecff;font-weight:700}
.chat-common-sections-drawer__item.is-active{
  border-color:rgba(80,203,255,.45);
  background:rgba(39,97,138,.3);
}
.chat-common-online-drawer__body{display:grid;gap:8px}
.chat-common-settings-drawer__body{display:grid;gap:10px}
.chat-common-settings-drawer__room{display:grid;gap:4px}
.chat-common-settings-drawer__form{display:grid;gap:10px}
.chat-common-online-user{
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.chat-common-online-user__main{
  width:100%;
  border:0;
  background:transparent;
  color:#e8f4ff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  text-align:left;
}
.chat-common-online-user__identity{display:flex;align-items:center;gap:10px;min-width:0}
.chat-common-online-user__identity img{
  width:36px;
  height:36px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
}
.chat-common-online-user__identity strong{display:block;line-height:1.2}
.chat-common-online-user__identity small{
  display:block;
  color:#bdd9ef;
  font-size:11px;
  line-height:1.3;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.chat-common-online-user__state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid #a9e7bf;
  background:#e8faee;
  color:#1e7740;
}
.chat-common-online-user__actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 10px 10px;
}
.chat-common-online-user__actions .btn{padding:7px 10px;border-radius:10px}
.chat-common-online-user__state--offline{
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.07);
  color:#d3e2f1;
}
.chat-common-offline-spoiler{
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  overflow:hidden;
}
.chat-common-offline-spoiler>summary{
  cursor:pointer;
  list-style:none;
  padding:10px 12px;
  font-size:13px;
  font-weight:700;
}
.chat-common-offline-spoiler>summary::-webkit-details-marker{display:none}
.chat-common-offline-list{display:grid;gap:8px;padding:0 8px 8px}
.chat-common-hub{display:grid;gap:10px}
.chat-common-hub__room{
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  padding:12px;
  display:grid;
  gap:8px;
}
.chat-common-hub__room-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.chat-common-hub__room-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chat-common-hub__state{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.04);
}
.chat-common-hub__state.is-joined{
  border-color:rgba(81,206,132,.55);
  background:rgba(25,110,66,.24);
  color:#cdf7dd;
}
.chat-common-hub__state.is-locked{
  border-color:rgba(240,174,82,.5);
  background:rgba(118,77,26,.24);
  color:#ffe6c5;
}
.chat-room-lock-screen{
  min-height:230px;
  display:grid;
  place-items:center;
}
.chat-room-lock-screen__inner{
  width:min(100%,360px);
  display:grid;
  gap:12px;
  text-align:center;
}
.chat-room-lock-screen__inner strong{font-size:22px;line-height:1.1}
.chat-room-lock-screen__inner p{margin:0;color:#c4def2}
.chat-room-lock-screen__form{display:grid;place-items:center}
.chat-stream{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  gap:10px;
  position:relative;
  overflow:hidden;
}
.chat-stream--locked .chat-box{
  filter:blur(2.4px) saturate(.82);
  pointer-events:none;
  user-select:none;
}
.chat-room-lock-overlay{
  position:absolute;
  inset:10px 8px 8px;
  z-index:35;
  display:grid;
  place-items:center;
  padding:12px;
  pointer-events:none;
}
.chat-room-lock-overlay__card{
  width:min(100%,460px);
  display:grid;
  gap:10px;
  text-align:center;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.2);
  background:linear-gradient(160deg,rgba(5,15,33,.95),rgba(4,11,25,.97));
  box-shadow:0 22px 44px rgba(0,0,0,.44);
  pointer-events:auto;
}
.chat-room-lock-overlay__card strong{
  font-size:20px;
  line-height:1.15;
  color:#ffffff;
}
.chat-room-lock-overlay__card p{
  margin:0;
  color:#ffffff;
}
.chat-room-lock-overlay__form{
  display:grid;
  place-items:center;
}
.chat-room-lock-overlay__card .btn{
  color:#ffffff;
  border-color:rgba(255,255,255,.42);
}
.chat-stream .chat-box{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  padding-bottom:6px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
body.chat-head-collapsed .chat-common-head{
  gap:6px;
  margin:0;
  padding:0;
  min-height:0;
}
body.chat-head-collapsed .chat-common-head > div{
  display:none!important;
}
body.chat-head-collapsed .chat-common-head__actions{
  width:100%;
  justify-content:flex-start;
  gap:6px;
  min-height:0;
}
body.chat-head-collapsed .chat-common-head__actions > :not(.chat-common-head__head-toggle){
  display:none!important;
}
body.chat-head-collapsed .chat-common-head__head-toggle{
  display:inline-flex!important;
}
.chat-head-floating-toggle{
  position:fixed;
  top:calc(var(--chat-topbar-height,78px) + var(--safe-top) + 8px);
  right:6px;
  z-index:1716;
  width:42px;
  min-width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(8,18,34,.42);
  backdrop-filter:blur(5px);
  box-shadow:0 12px 24px rgba(0,0,0,.35);
  display:none!important;
}
body.chat-head-collapsed .chat-head-floating-toggle.is-visible{
  display:inline-flex!important;
}
body.chat-head-collapsed .chat-card--full{
  gap:6px;
}
.chat-stream .chat-form--messenger{
  position:sticky;
  bottom:0;
  left:auto;
  right:auto;
  margin:0;
  margin-top:auto;
  z-index:30;
  padding-bottom:calc(6px + var(--safe-bottom));
}
body.chat-screen-open.chat-room-open .chat-stream,
body.chat-screen-open.chat-composer-fixed .chat-stream{--chat-composer-fixed-height:94px}
body.chat-screen-open.chat-room-open .chat-stream .chat-box,
body.chat-screen-open.chat-composer-fixed .chat-stream .chat-box{
  padding-bottom:calc(var(--chat-composer-fixed-height) + 14px);
}
body.chat-screen-open.chat-room-open .chat-stream .chat-form--messenger,
body.chat-screen-open.chat-composer-fixed .chat-stream .chat-form--messenger{
  position:fixed;
  left:50%;
  right:auto;
  transform:translateX(-50%);
  bottom:calc(var(--safe-bottom) + 6px);
  width:min(1160px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width:1160px;
  margin:0;
  z-index:140;
}
body.drawer-open .chat-stream .chat-form--messenger,
body.profile-drawer-open .chat-stream .chat-form--messenger,
body.chat-sections-open .chat-stream .chat-form--messenger,
body.chat-online-open .chat-stream .chat-form--messenger,
body.chat-settings-open .chat-stream .chat-form--messenger{
  z-index:120;
}
.chat-stream .chat-form--messenger .chat-composer{
  position:relative;
  display:block;
  width:100%;
}
.chat-stream .chat-form--messenger .chat-composer__input{
  width:100%;
  min-height:56px;
  max-height:132px;
  padding:14px 108px 14px 56px;
  border-radius:22px;
  line-height:1.3;
}
.chat-stream .chat-form--messenger .comment-editor-tool,
.chat-stream .chat-form--messenger .chat-composer__send{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  touch-action:none;
  -webkit-touch-callout:none;
  user-select:none;
}
.chat-stream .chat-form--messenger .chat-composer__emoji{left:8px}
.chat-stream .chat-form--messenger .chat-composer__attach{right:56px}
.chat-stream .chat-form--messenger .chat-composer__voice,
.chat-stream .chat-form--messenger .chat-composer__video{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__send{right:8px}
.chat-stream .chat-form--messenger .chat-composer__send.is-send{
  background:linear-gradient(180deg,#2aa86a,#1b764b);
  border-color:rgba(59,213,136,.45);
}
.chat-stream .chat-form--messenger .chat-composer__send.is-record{
  background:linear-gradient(180deg,#2a6f9f,#1b4567);
  border-color:rgba(104,184,255,.45);
}
.chat-stream .chat-form--messenger .chat-composer__send.is-video-mode{
  background:linear-gradient(180deg,#8756e8,#5c35a8);
  border-color:rgba(177,147,255,.42);
}
.chat-stream .chat-form--messenger .chat-composer__send.is-recording{
  background:linear-gradient(180deg,#d6424f,#8f2431);
  border-color:rgba(255,133,147,.6);
  box-shadow:0 0 0 3px rgba(227,63,82,.2);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-backdrop{
  position:fixed;
  inset:0;
  z-index:90;
  border:0;
  background:rgba(4,8,14,.58);
  opacity:0;
  transition:opacity .2s ease;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-backdrop.is-open{opacity:1}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-backdrop[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:91;
  display:grid;
  gap:10px;
  padding:10px 12px calc(12px + var(--safe-bottom));
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  border-bottom:0;
  background:linear-gradient(180deg,rgba(8,16,29,.985),rgba(6,12,24,.99));
  box-shadow:0 -16px 44px rgba(0,0,0,.45);
  transform:translateY(104%);
  transition:transform .22s cubic-bezier(.22,.9,.26,1);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet.is-open{transform:translateY(0)}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-handle{
  width:42px;
  height:4px;
  border-radius:999px;
  margin-inline:auto;
  background:rgba(182,210,238,.55);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-title{
  margin:0;
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
  color:#eaf6ff;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:8px;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-camera{
  appearance:none;
  border:1px solid rgba(120,198,255,.42);
  background:rgba(32,95,141,.2);
  color:#ecf8ff;
  border-radius:14px;
  min-height:100%;
  padding:10px 8px;
  display:grid;
  place-items:center;
  gap:4px;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-camera-icon{
  font-size:20px;
  line-height:1;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-camera-text{
  font-size:11px;
  font-weight:700;
  color:#c7e6ff;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery-main{
  appearance:none;
  border:1px solid rgba(120,198,255,.42);
  background:rgba(32,95,141,.2);
  color:#ecf8ff;
  border-radius:14px;
  padding:10px 12px;
  display:grid;
  gap:6px;
  text-align:left;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery-title{
  font-size:14px;
  font-weight:800;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery-meta{
  font-size:12px;
  color:#b7d7f3;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery-preview{
  width:100%;
  min-height:78px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  margin-top:2px;
  background:rgba(255,255,255,.05) center/cover no-repeat;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:#e7f4ff;
  border-radius:12px;
  padding:10px 8px;
  text-align:left;
  display:grid;
  gap:4px;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn strong{
  font-size:13px;
  font-weight:800;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn span{
  font-size:11px;
  line-height:1.2;
  color:#b7d3eb;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn--accent{
  border-color:rgba(78,219,145,.46);
  background:rgba(29,113,77,.24);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn:disabled{
  opacity:.58;
  filter:saturate(.75);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location{
  display:grid;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-image{
  width:100%;
  min-height:130px;
  max-height:160px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-meta{
  margin:0;
  font-size:12px;
  color:#c8e3fa;
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-map{
  width:100%;
  min-height:170px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(10,22,37,.78);
}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-map[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
body.chat-screen-open.chat-attach-sheet-open{
  overflow:hidden;
  overscroll-behavior:none;
}
.chat-stream .chat-form--messenger .chat-composer__record-state{
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(177,44,63,.18);
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#ffe1e6;
}
.chat-stream .chat-form--messenger .chat-composer__record-state[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__record-live{
  margin-top:8px;
  display:flex;
  justify-content:flex-end;
}
.chat-stream .chat-form--messenger .chat-composer__record-live[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__record-live-video{
  width:110px;
  height:110px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(100,190,255,.66);
  box-shadow:0 8px 20px rgba(0,0,0,.34);
  background:#0a1220;
}
.chat-stream .chat-form--messenger .chat-composer__record-state.is-cancel{
  border-color:rgba(255,182,89,.45);
  background:rgba(155,95,31,.22);
  color:#ffe8cf;
}
.chat-stream .chat-form--messenger .chat-composer__record-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#ff5f7a;
  box-shadow:0 0 0 0 rgba(255,95,122,.65);
  animation:chat-record-pulse 1.05s infinite;
}
@keyframes chat-record-pulse{
  0%{box-shadow:0 0 0 0 rgba(255,95,122,.6)}
  75%{box-shadow:0 0 0 8px rgba(255,95,122,0)}
  100%{box-shadow:0 0 0 0 rgba(255,95,122,0)}
}
.chat-stream .chat-form--messenger .chat-composer__preview{
  margin-top:8px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(14,25,42,.85);
  display:grid;
  gap:8px;
}
.chat-stream .chat-form--messenger .chat-composer__preview[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__preview-title{
  font-size:12px;
  font-weight:800;
  color:#d8edff;
}
.chat-stream .chat-form--messenger .chat-composer__preview-media{
  max-width:100%;
  max-height:170px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:#071222;
}
.chat-stream .chat-form--messenger .chat-composer__preview.is-video-note .chat-composer__preview-media,
.chat-stream .chat-form--messenger .chat-composer__preview-media--video-note{
  width:168px;
  height:168px;
  max-height:none;
  border-radius:999px;
  object-fit:cover;
  margin-inline:auto;
}
.chat-stream .chat-form--messenger .chat-composer__preview .chat-composer__preview-video-note{
  margin-inline:auto;
}
.chat-stream .chat-form--messenger .chat-composer__preview-note{
  font-size:12px;
  color:#b9d4ef;
  line-height:1.35;
  word-break:break-word;
}
.chat-stream .chat-form--messenger .chat-composer__preview-file{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:#e7f2ff;
  padding:10px;
  font-size:13px;
  font-weight:700;
  word-break:break-word;
}
.chat-stream .chat-form--messenger .chat-composer__preview-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.chat-stream .chat-form--messenger .chat-composer__notice{
  margin-top:8px;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1.35;
}
.chat-stream .chat-form--messenger .chat-composer__notice[hidden]{display:none!important}
.chat-stream .chat-form--messenger .chat-composer__notice.is-info{
  border:1px solid rgba(92,183,255,.34);
  background:rgba(43,91,141,.2);
  color:#d5eefe;
}
.chat-stream .chat-form--messenger .chat-composer__notice.is-error{
  border:1px solid rgba(255,118,134,.38);
  background:rgba(143,37,57,.24);
  color:#ffe2e7;
}
.chat-stream .chat-form--messenger .chat-composer__mention-hint{
  margin:0 0 8px;
  font-size:12px;
  line-height:1.35;
  color:#b8d4e9;
}
.chat-stream .chat-form--messenger .chat-composer__file-label--stack{display:none}
.chat-stream .chat-readonly-note--inline{
  margin:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(7,16,32,.82);
}
.chat-stream .chat-readonly-note--inline p{
  margin:0 0 10px;
}
body.chat-record-gesture,
body.chat-record-gesture *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
.chat-participants-spoiler[open] .chat-presence-list{
  max-height:180px;
  overflow:auto;
  padding-right:2px;
}

@media (max-width:760px){
  .chat-layout-shell.section{padding:6px 0 4px}
  .chat-card--full{padding:10px}
  .chat-card--full .section-head{gap:8px}
  .chat-card--full .section-head .btn{padding:8px 10px;font-size:12px}
  .chat-common-head__actions{width:100%;justify-content:space-between}
  .chat-common-head__icon-btn{width:38px;min-width:38px;height:38px}
  .chat-common-head__room-btn{flex:1 1 auto;max-width:none}
  .chat-common-head__head-toggle{margin-left:auto}
  body.chat-screen-open .chat-common-head{gap:6px}
  body.chat-screen-open .chat-common-head__room-title{font-size:18px}
  .chat-common-sections-drawer,
  .chat-common-online-drawer,
  .chat-common-settings-drawer{
    width:min(92vw,340px);
    top:calc(var(--chat-topbar-height,78px) + var(--safe-top));
    padding:10px;
  }
  .chat-common-hub__room-actions{align-items:stretch}
  .chat-common-hub__room-actions .btn{width:100%}
  .chat-layout-shell.chat-no-room .chat-common-hub{
    justify-items:center;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room{
    width:min(100%,560px);
    margin-inline:auto;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room-actions{
    align-items:center;
    justify-content:center;
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__room-actions .btn{
    width:min(100%,520px);
  }
  .chat-layout-shell.chat-no-room .chat-common-hub__state{
    margin-inline:auto;
  }
  .chat-common-online-user__identity img{width:34px;height:34px;border-radius:11px}
  .chat-common-online-user__actions .btn{font-size:12px}
  .chat-stream .chat-box{padding:8px;gap:8px}
  body.chat-screen-open .chat-bubble{
    padding:10px 12px;
    border-radius:16px;
    max-width:96%;
    font-size:14px;
  }
  body.chat-screen-open .chat-bubble__body{font-size:14px;line-height:1.45}
  body.chat-screen-open .chat-bubble__meta{margin-top:8px;font-size:11px}
  body.chat-screen-open .chat-bubble__reply{padding:8px 10px}
  body.chat-screen-open .chat-bubble__reply strong{font-size:11px}
  body.chat-screen-open .chat-bubble__reply span{font-size:12px}
  .chat-stream .chat-form--messenger{padding:6px}
  body.chat-screen-open.chat-room-open .chat-stream,
  body.chat-screen-open.chat-composer-fixed .chat-stream{--chat-composer-fixed-height:86px}
  body.chat-screen-open.chat-room-open .chat-stream .chat-form--messenger,
  body.chat-screen-open.chat-composer-fixed .chat-stream .chat-form--messenger{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:calc(100vw - 10px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    bottom:calc(var(--safe-bottom) + 3px);
  }
  .chat-stream .chat-form--messenger .comment-editor-tool{width:38px;min-width:38px;height:38px;font-size:15px}
  .chat-stream .chat-form--messenger .chat-composer__send{width:38px;min-width:38px;height:38px;font-size:16px}
  .chat-stream .chat-form--messenger .chat-composer__input{min-height:50px;max-height:116px;padding:12px 96px 12px 48px}
  .chat-stream .chat-form--messenger .chat-composer__emoji{left:6px}
  .chat-stream .chat-form--messenger .chat-composer__attach{right:46px}
  .chat-stream .chat-form--messenger .chat-composer__send{right:6px}
  .chat-stream .chat-form--messenger .chat-composer__attach-sheet{padding:8px 10px calc(10px + var(--safe-bottom));gap:8px}
  .chat-stream .chat-form--messenger .chat-composer__attach-sheet-gallery{grid-template-columns:74px minmax(0,1fr)}
  .chat-stream .chat-form--messenger .chat-composer__attach-sheet-actions{grid-template-columns:1fr}
  .chat-stream .chat-form--messenger .chat-composer__attach-sheet-location-actions{grid-template-columns:1fr}
  .chat-stream .chat-form--messenger .chat-composer__attach-sheet-btn{padding:9px 10px}
  .chat-card--pm .chat-form--messenger .chat-composer__input{min-height:50px;max-height:116px;padding:12px 96px 12px 48px}
  .chat-card--pm .chat-form--messenger .comment-editor-tool{width:38px;min-width:38px;height:38px;font-size:15px}
  .chat-card--pm .chat-form--messenger .chat-composer__send{width:38px;min-width:38px;height:38px;font-size:16px;right:6px}
  .chat-card--pm .chat-form--messenger .chat-composer__emoji{left:6px}
  .chat-card--pm .chat-form--messenger .chat-composer__attach{right:46px}
}

body[data-theme="light"] .menu-toggle,
body[data-theme="light"] .chip,
body[data-theme="light"] .icon-chip,
body[data-theme="light"] .user-chip,
body[data-theme="light"] .top-links a,
body[data-theme="light"] .drawer-nav a,
body[data-theme="light"] .btn,
body[data-theme="light"] .hero-card,
body[data-theme="light"] .card,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .list-row,
body[data-theme="light"] .table-wrap,
body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] .chat-bubble,
body[data-theme="light"] .chat-room-membership,
body[data-theme="light"] .chat-common-hub__room,
body[data-theme="light"] .chat-common-online-user,
body[data-theme="light"] .chat-common-sections-drawer__item,
body[data-theme="light"] .chat-stream .chat-form--messenger,
body[data-theme="light"] .chat-stream .chat-form--messenger .chat-composer__input,
body[data-theme="light"] .chat-stream .chat-readonly-note--inline,
body[data-theme="light"] .chat-room-lock-overlay__card,
body[data-theme="light"] .empty{
  border-color:rgba(0,0,0,.72)!important;
}
body[data-theme="light"] .chat-common-online-drawer,
body[data-theme="light"] .chat-common-sections-drawer,
body[data-theme="light"] .chat-common-settings-drawer{
  background:linear-gradient(180deg,rgba(252,254,255,.985),rgba(244,249,255,.985));
  border-color:rgba(0,0,0,.54);
  color:#0f2441;
}
body[data-theme="light"] .chat-common-online-drawer__head strong,
body[data-theme="light"] .chat-common-sections-drawer__head strong,
body[data-theme="light"] .chat-common-settings-drawer__head strong{
  color:#0f2441;
}
body[data-theme="light"] .chat-common-online-drawer__close,
body[data-theme="light"] .chat-common-sections-drawer__close,
body[data-theme="light"] .chat-common-settings-drawer__close{
  border-color:rgba(0,0,0,.38);
  color:#0f2441;
  background:rgba(12,36,69,.06);
}
body[data-theme="light"] .chat-common-sections-drawer__item{
  background:#f3f8fe;
  color:#102746;
}
body[data-theme="light"] .chat-common-sections-drawer__item strong{
  color:#0f2644;
}
body[data-theme="light"] .chat-common-sections-drawer__item span{
  color:#35587c;
}
body[data-theme="light"] .chat-common-sections-drawer__item .chat-common-sections-drawer__meta{
  color:#244b73;
}
body[data-theme="light"] .chat-common-sections-drawer__item.is-active{
  background:#d8eaf9;
  border-color:rgba(52,110,165,.62)!important;
}
body[data-theme="light"] .chat-common-hub__state{
  font-weight:700;
  border-width:1px;
}
body[data-theme="light"] .chat-common-hub__state.is-joined{
  border-color:#19a44a !important;
  background:#dcf8e6;
  color:#0e7f33;
}
body[data-theme="light"] .chat-common-hub__state.is-locked{
  border-color:#d43232 !important;
  background:#ffe3e3;
  color:#b11f1f;
}
body[data-theme="light"] .chat-message-reaction-actors{
  color:#244f7b;
}
body[data-theme="light"] .chat-common-online-user{
  border-color:rgba(0,0,0,.28)!important;
  background:#ffffff;
}
body[data-theme="light"] .chat-common-online-user__main{
  color:#0f2441;
}
body[data-theme="light"] .chat-common-online-user__identity small{
  color:#314f74;
}
body[data-theme="light"] .chat-common-online-user__actions .btn{
  border-color:rgba(0,0,0,.42);
  color:#0f2441;
  background:#fff;
}
body[data-theme="light"] .chat-common-offline-spoiler{
  border-color:rgba(0,0,0,.26);
  background:rgba(10,30,58,.03);
}
body[data-theme="light"] .chat-room-lock-overlay__card strong,
body[data-theme="light"] .chat-room-lock-overlay__card p{
  color:#ffffff!important;
}
body[data-theme="light"] .chat-room-lock-overlay__card .btn{
  border-color:rgba(0,0,0,.72)!important;
  color:#ffffff!important;
}
body[data-theme="light"] .chat-head-floating-toggle{
  border-color:rgba(0,0,0,.65)!important;
  color:#0f2441;
  background:rgba(248,251,255,.55);
}

/* People page dark-mode override for legacy inline styles */
body[data-theme-mode="dark"] .people-grid .people-card{
  background:linear-gradient(180deg,rgba(16,30,48,.98),rgba(11,22,36,.98))!important;
  border-color:rgba(123,157,208,.38)!important;
}
body[data-theme-mode="dark"] .people-grid .people-card .people-name{
  color:#f4f8ff!important;
}
body[data-theme-mode="dark"] .people-grid .people-card .people-meta{
  color:rgba(188,208,240,.92)!important;
}
body[data-theme-mode="dark"] .people-grid .people-card .people-badge{
  color:#e7f0ff!important;
  background:rgba(121,161,226,.16)!important;
  border-color:rgba(130,169,228,.34)!important;
}
body[data-theme-mode="dark"] .people-grid .people-card .people-text{
  color:#d4e2f7!important;
}

