/* Kaush LiveMap — стили веб-приложения по макету дизайнера */
:root {
  --bg: #000;
  --card: #1c1c1e;
  --field: #2c2c2e;
  --chip: #232325;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #8e8e93;
  --accent: #6155f5;
  --accent-dim: #1d1a46;
  --accent-dim-text: #6d68a6;
  --live: #ff3b30;
  --danger: #ff453a;
  --glass: rgba(44, 44, 48, 0.72);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: calc(62px + var(--safe-bottom));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font: 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
#app { position: fixed; inset: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: block; }
.ic.accent { color: var(--accent); }
.ic.big { font-size: 52px; }

/* ---------- общие элементы ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { max-width: 480px; width: 100%; margin: 0 auto; padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); }
.page.tabbed { padding-bottom: calc(var(--tabbar) + 24px); }
.spacer { flex: 1; }
.big-title { font-size: 40px; font-weight: 800; letter-spacing: -0.6px; margin: 44px 0 26px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 58px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: 19px; transition: background 0.2s, color 0.2s; }
.btn.dim, .btn:disabled { background: var(--accent-dim); color: var(--accent-dim-text); }
.btn.red { background: var(--live); }
.btn.narrow { width: auto; min-width: 240px; padding: 0 40px; display: inline-flex; }
.btn:active { transform: scale(0.99); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 19px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; flex: none; }
.pill .ic { font-size: 20px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(12, 12, 14, 0.92); color: #fff; font-size: 28px; flex: none; }
.round.sm { width: 38px; height: 38px; font-size: 22px; background: var(--field); }
.round.glass { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.link-btn { color: var(--accent); font-size: 16px; }
.link-btn:disabled { color: var(--muted); }
.error { color: #ff6b6b; font-size: 15px; min-height: 20px; margin: 10px 0 12px; }
.note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; }
.chip .ic { font-size: 17px; }
.chip.warn { background: rgba(255, 69, 58, 0.85); }
.live-badge { display: inline-flex; align-items: center; background: var(--live); height: 26px; padding: 0 10px; border-radius: 13px; font-size: 14px; font-weight: 800; letter-spacing: 0.4px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; color: #fff; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.md { width: 46px; height: 46px; font-size: 20px; }
.avatar.xl { width: 88px; height: 88px; font-size: 38px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--safe-bottom)); margin: 0 auto; max-width: 440px; background: rgba(28, 28, 30, 0.97); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; z-index: 60; display: flex; gap: 12px; align-items: center; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
body.has-tabbar .toast { bottom: calc(var(--tabbar) + 12px); }
.toast button { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* поля ввода — «таблетки» из макета */
.lbl { display: block; font-size: 18px; font-weight: 700; margin: 22px 0 12px; }
.input-wrap { position: relative; }
.input { width: 100%; height: 58px; background: var(--field); border: 1.5px solid transparent; border-radius: 29px; padding: 0 22px; color: var(--text); outline: none; font-size: 18px; }
.input::placeholder { color: #7c7c80; }
.input:focus { border-color: var(--accent); }
.input-wrap .eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #9a9a9e; font-size: 26px; }
.input-wrap .eye + .input, .input-wrap .input:has(+ .eye) { padding-right: 60px; }
.hint-small { display: block; color: var(--muted); font-size: 13px; margin: 8px 4px 0; }
.input.bad { border-color: #ff453a; }
.field-err { display: block; color: #ff453a; font-size: 14px; margin: 8px 4px 0; min-height: 0; }
.field-err:empty { display: none; }
.auth-back { margin: -6px 0 18px -8px; }
.code-input { letter-spacing: 12px; text-align: center; font-size: 26px !important; }

/* ---------- вход и регистрация ---------- */
.auth { padding-top: calc(56px + var(--safe-top)); }
.auth .logo { width: 76px; height: 76px; display: block; margin-bottom: 26px; }
.auth-title { font-size: 44px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 8px; }
.auth .subtitle { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.auth form .btn { margin-top: 6px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 17px; margin: 26px 0 0; }
.auth-foot a { font-weight: 600; }
.auth-foot.small { margin-top: 16px; font-size: 15px; }
.muted-link { color: var(--muted) !important; font-weight: 400 !important; }

/* ---------- нижняя панель ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar); padding: 6px 8px var(--safe-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: #1c1c1e; border-top: 1px solid rgba(255, 255, 255, 0.05); z-index: 20; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding-top: 2px; color: #8e8e93; font-size: 11px; font-weight: 500; }
.tab .ic { font-size: 28px; }
.tab .disc { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; }
.tab .disc .ic { font-size: 16px; }
.tab.on { color: var(--accent); }
.tab.on .disc { background: var(--accent); border-color: var(--accent); color: #fff; }

/* переключатель «Карта | Список» и поиск */
.seg { display: grid; grid-template-columns: 1fr 1fr; height: 46px; padding: 4px; border-radius: 23px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.three > * { font-size: 16px; }
.seg > * { display: flex; align-items: center; justify-content: center; border-radius: 19px; color: #a1a7b5; font-size: 16px; font-weight: 600; }
.seg > .on { color: #fff; background: rgba(28, 32, 42, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.seg.solid { background: #141416; border: 1px solid #2a2a2c; }
.seg.solid > .on { background: #3a3a3c; }
.glass { background: rgba(40, 46, 60, 0.62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.08); }
.search { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 8px 0 16px; color: #a1a7b5; }
.search > .ic { font-size: 24px; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; color: #fff; }
.search input::placeholder { color: #a1a7b5; }
.filter-btn { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1c1c1e; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.filter-btn.on { background: var(--accent); color: #fff; }
.suggest { border-radius: 14px; overflow: hidden; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 16px; }
.suggest button:first-child { border-top: 0; background: rgba(97, 85, 245, 0.16); }
.sg-main { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sub { flex: 1; min-width: 0; color: #a1a7b5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pin { font-size: 20px; color: #a1a7b5; }
.sg-check { font-size: 20px; color: #3d8bff; }

/* ---------- карта ---------- */
.map { position: absolute; inset: 0; background: #3a4560; isolation: isolate; z-index: 0; }
.map-top { position: absolute; top: calc(12px + var(--safe-top)); left: 16px; right: 16px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; z-index: 5; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.status-pill { align-self: center; background: rgba(0, 0, 0, 0.8); border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.map-tools.hide { opacity: 0; pointer-events: none; }
.map-tools { position: absolute; right: 16px; bottom: calc(var(--tabbar) + 20px); display: flex; flex-direction: column; gap: 12px; z-index: 6; transition: bottom 0.25s ease, opacity 0.2s; }
.map-tools .round { width: 50px; height: 50px; font-size: 26px; background: rgba(20, 24, 32, 0.88); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(0, 0, 0, 0.45) !important; color: #aaa; }
.maplibregl-ctrl-attrib a { color: #aaa; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
#map .maplibregl-ctrl-bottom-right, #map .maplibregl-ctrl-bottom-left { bottom: var(--tabbar); }

/* пин стримера: аватар в белой рамке, транспорт, ник, «фары» и пульс */
/* Положение и сдвиг пина задаёт сама карта (position/transform на этом элементе не трогаем) */
.pin { width: 60px; height: 60px; cursor: pointer; }
.pin .face { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 25px; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); z-index: 2; }
.pin .pulse { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(97, 85, 245, 0.75); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
.pin .beam { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; pointer-events: none; transition: transform 0.8s ease; z-index: 0; }
.pin .beam::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 50%, 33% 0, 67% 0); background: linear-gradient(to top, rgba(255, 238, 170, 0.55) 30%, rgba(255, 238, 170, 0) 100%); }
.pin .veh { position: absolute; right: -6px; bottom: -4px; width: 24px; height: 24px; border-radius: 7px; background: rgba(110, 112, 122, 0.82); display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; z-index: 3; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.pin .nick { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); min-width: 64px; text-align: center; white-space: nowrap; font-size: 11px; font-weight: 500; background: rgba(28, 30, 38, 0.72); padding: 2px 10px; border-radius: 9px; z-index: 2; }
.pin.selected { z-index: 5; }
.pin .face, .pin .veh { transition: transform 0.25s ease; }
.pin.selected .face { transform: scale(1.25); }
.pin.selected .veh { transform: translate(4px, 4px); }
.pin.selected .face { box-shadow: 0 0 0 4px var(--accent), 0 0 0 10px rgba(97, 85, 245, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45); }
.pin.selected .pulse { display: none; }
.pin.selected .beam::before { background: linear-gradient(to top, rgba(140, 130, 255, 0.6) 30%, rgba(140, 130, 255, 0) 100%); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.far .pin, .compact .pin { width: 42px; height: 42px; }
.far .pin .face, .compact .pin .face { font-size: 18px; border-width: 2.5px; }
.far .pin .beam, .compact .pin .beam { width: 120px; height: 120px; }
.far .pin .veh, .compact .pin .veh { width: 19px; height: 19px; font-size: 12px; border-radius: 6px; right: -5px; bottom: -3px; }
.far .pin .nick, .compact .pin .nick { top: 47px; font-size: 10px; min-width: 0; padding: 1px 7px; }
.far .pin .nick { display: none; }
.far .pin.selected .nick { display: block; }


/* шторка эфира по нажатию на точку (макет: чёрная, с ручкой) */
.scard { position: absolute; left: 0; right: 0; bottom: var(--tabbar); max-width: 560px; margin: 0 auto; background: #000; border-radius: 22px 22px 0 0; padding: 8px 18px 16px; z-index: 10; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45); animation: up 0.25s ease; transition: transform 0.2s ease; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { width: 38px; height: 4px; border-radius: 2px; background: #48484a; margin: 0 auto 12px; }
.scard-head { display: flex; align-items: center; gap: 10px; }
.scard-head .who { flex: 1; min-width: 0; }
.scard-head .who b { display: block; font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard-head .who span { display: block; color: #8e8e93; font-size: 13px; }
.x-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 26px; }
.scard-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.btn2 { height: 38px; border-radius: 19px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; }
.btn2.dark { background: #1c1c1e; color: #7d73ff; }
.frame { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: #161618; cursor: pointer; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #161618; }
.frame-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #000) 0%, #101012 80%); }
.live-pill { position: absolute; left: 12px; top: 12px; background: var(--live); color: #fff; font-size: 14px; font-weight: 600; height: 24px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; z-index: 2; }
.frame .eye-pill { z-index: 2; }
.frame-veh { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 9px; background: rgba(110, 112, 122, 0.8); display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; }
.scard-text { color: #8e8e93; font-size: 14px; line-height: 1.4; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.emo { font-size: 20px; line-height: 1; width: 26px; text-align: center; flex: none; }

/* метки на кадре */
.eye-pill { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0, 0, 0, 0.5); font-size: 14px; font-weight: 600; }
.eye-pill .ic { font-size: 17px; }
.vchip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 11px; border-radius: 15px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; font-weight: 600; }
.vchip .ic { font-size: 18px; }

/* ---------- список эфиров: лента карточек с кадром ---------- */
.list-screen { background: #000; }
.list-page { display: flex; flex-direction: column; gap: 10px; padding-top: calc(12px + var(--safe-top)); padding-bottom: calc(var(--tabbar) + 20px); }
.list-page .glass { background: #1c1c1e; border-color: #2a2a2c; }
.list-page .seg > .on { background: #3a3a3c; }
.feed { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.post { display: block; text-align: left; width: 100%; }
.post .frame { height: auto; aspect-ratio: 16 / 10; border-radius: 16px; }
.post-text { margin: 10px 0 0; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #8e8e93; font-size: 14px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 12px; }
.empty b { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.empty p { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 340px; }
.empty.tall { padding-top: 22vh; }
.center-screen { align-items: center; justify-content: center; }
.center-screen .logo { width: 72px; height: 72px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }

/* ---------- экран зрителя и свой эфир: видео 2/3, карта 1/3 ---------- */
.viewer { background: #000; }
.viewer-video { position: relative; height: 66.6%; background: #000; overflow: hidden; flex: none; }
.viewer-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 24%, transparent 55%, rgba(0,0,0,0.7)); }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; color: rgba(255, 255, 255, 0.85); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, #000) 0%, color-mix(in srgb, var(--c) 22%, #000) 55%, #050507 100%); }
.ph-text { white-space: pre-line; font-size: 15px; }
.v-header { position: absolute; top: calc(12px + var(--safe-top)); left: 8px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.v-back { width: 30px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex: none; }
.v-back.inline { margin: 8px 0 -30px -8px; }
.v-header .who { flex: 1; min-width: 0; }
.v-header .who b { display: block; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-header .who small { display: flex; align-items: center; gap: 5px; font-size: 14px; opacity: 0.85; }
.v-header .who small .ic { font-size: 17px; }
.v-header .pill { height: 30px; padding: 0 12px 0 8px; font-size: 14px; gap: 4px; }
.v-header .pill .ic { font-size: 18px; }
.v-header .live-badge { height: 22px; padding: 0 8px; font-size: 12px; border-radius: 11px; }
.v-header .avatar.md { width: 38px; height: 38px; font-size: 17px; }
.v-more { position: absolute; right: 12px; top: calc(64px + var(--safe-top)); z-index: 3; }
.v-info { position: absolute; left: 16px; bottom: 76px; right: 160px; z-index: 3; }
.v-info h2 { font-size: 19px; margin: 8px 0 0; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.v-info .speed { font-size: 14px; opacity: 0.85; margin-top: 2px; }
.pad { position: absolute; right: 10px; bottom: 72px; width: 140px; height: 140px; border-radius: 50%; background: rgba(0, 0, 0, 0.34); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 3; }
.pad button { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: flex; align-items: center; justify-content: center; }
.pad button span { display: block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid rgba(255, 255, 255, 0.95); }
.pad button.diag span { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 9px; border-bottom-color: rgba(255, 255, 255, 0.72); }
.pad button:active span { border-bottom-color: var(--accent); }
.pad .center { position: absolute; inset: 46px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 600; opacity: 0.85; }
.v-actions { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0 14px; z-index: 4; }
.v-actions .comment { flex: 1; min-width: 0; height: 46px; border-radius: 23px; background: rgba(28, 28, 30, 0.88); color: #8e8e93; font-size: 16px; text-align: left; padding: 0 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-actions .round { width: 46px; height: 46px; font-size: 23px; background: rgba(28, 28, 30, 0.88); }
.v-actions .liked { color: #ff375f; }
.flight { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(97, 85, 245, 0.94); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 5; white-space: nowrap; }
.sound-btn { position: absolute; left: 50%; top: 54%; transform: translateX(-50%); z-index: 5; }
.viewer-map { position: relative; flex: 1; overflow: hidden; z-index: 2; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.weather { position: absolute; left: 12px; top: 12px; z-index: 3; }

/* меню и листы */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 92%; display: flex; flex-direction: column; padding: 8px 10px calc(10px + var(--safe-bottom)); animation: up 0.2s ease; }
.sheet-list, .sheet h3, .sheet p { background: var(--card); }
.sheet h3 { margin: 0; padding: 16px 18px 4px; font-size: 15px; color: var(--muted); font-weight: 600; text-align: center; border-radius: 20px 20px 0 0; }
.sheet p { margin: 0; padding: 4px 18px 12px; color: var(--muted); font-size: 14px; text-align: center; }
.sheet h3 + .sheet-list, .sheet p + .sheet-list { border-radius: 0 0 20px 20px; }
.sheet-list { border-radius: 20px; overflow-y: auto; min-height: 0; flex: 0 1 auto; -webkit-overflow-scrolling: touch; }
.sheet > * { flex: none; }
.sheet > .sheet-list { flex: 0 1 auto; }
.sheet h3:only-of-type ~ .sheet-list { border-top: 1px solid var(--line); }
.sheet-list button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; font-size: 17px; border-top: 1px solid var(--line); }
.sheet-list button:first-child { border-top: 0; }
.sheet-list button .ic { font-size: 22px; color: var(--muted); }
.sheet-list button:active { background: var(--field); }
.sheet-list button.danger, .sheet-list button.danger .ic { color: var(--danger); }
.sheet-list button.picked { color: #fff; }
.sheet-list .tick-ic { margin-left: auto; color: var(--accent) !important; }
.sheet-btn { margin-top: 8px; height: 52px; border-radius: 20px; }
.sheet .cancel { display: block; width: 100%; margin-top: 8px; padding: 16px; border-radius: 20px; background: var(--card); font-size: 17px; font-weight: 600; text-align: center; }

/* ---------- «В эфир» ---------- */
.golive { background: linear-gradient(180deg, #221d5e 0%, #120f38 32%, #07061a 55%, #000 80%); }
.gl-hero { flex: 1; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(20px + var(--safe-top)) 24px 24px; color: #a7a3c4; text-align: center; }
.gl-hero .ic { font-size: 64px; }
.gl-hero p { margin: 0; font-size: 16px; }
.gl-sheet { flex: none; background: var(--card); border-radius: 34px 34px 0 0; padding: 24px 22px calc(var(--tabbar) + 18px); width: 100%; max-width: 560px; margin: 0 auto; }
.gl-sheet h1 { font-size: 32px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.4px; }
.gl-sheet .lbl { margin: 18px 0 10px; }
.gl-sheet .input { height: 54px; }
.gl-sheet .fchips { margin-left: -22px; margin-right: -22px; padding: 0 22px; }
.gl-sheet .fchip { background: var(--field); height: 44px; border-radius: 22px; }
.gl-sheet .fchip.on { background: var(--accent); }
.hint { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.hint .ic { font-size: 22px; color: #9a9a9e; transform: scaleX(-1); }
.gl-sheet .error { margin: 4px 0 8px; min-height: 8px; }
.fine { color: #6c6c70; font-size: 12px; margin: 10px 0 0; text-align: center; }

/* ---------- свой эфир ---------- */
.host-top { position: absolute; top: calc(12px + var(--safe-top)); left: 14px; right: 14px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.host-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.host-chips { flex: 1; }
.host-bottom #status { flex-basis: 100%; order: -1; }
.red-pill { background: var(--live); height: 42px; padding: 0 20px; border-radius: 21px; }
.compass { display: inline-flex; transition: transform 0.4s ease; }
.tick { font-variant-numeric: tabular-nums; }

/* выпадающий список транспорта (макет: «Укажите транспорт») */
.select { position: relative; }
.select-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; padding: 0 20px; border-radius: 27px; background: var(--field); color: #7c7c80; font-size: 18px; text-align: left; }
.select.chosen .select-head { color: #fff; }
.select-head #vehLabel { display: flex; align-items: center; gap: 10px; }
.select .chev { display: flex; font-size: 18px; color: #9a9a9e; }
.select .chev .ic { transform: rotate(-90deg); transition: transform 0.2s; }
.select.open .chev .ic { transform: rotate(90deg); }
.select-list { margin-top: 6px; border-radius: 18px; overflow: hidden; background: #3a3a3c; max-height: 290px; overflow-y: auto; }
.select-list button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 18px; font-size: 17px; text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.select-list button:first-child { border-top: 0; }
.select-list button.on { background: rgba(97, 85, 245, 0.35); }

/* ---------- профиль ---------- */
.p-head { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.p-info { min-width: 0; }
.p-nick { font-size: 27px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { color: var(--muted); font-size: 17px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { background: var(--card); border-radius: 26px; margin-top: 22px; }
.p-tab { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 20px 36px; text-align: center; }
.p-tab .ic.big { font-size: 46px; }
.p-tab p { margin: 0; color: var(--muted); font-size: 17px; }
.settings { padding: 6px 20px 6px; }
.settings h3 { font-size: 20px; font-weight: 700; margin: 18px 0 6px; }
.settings .item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 18px; text-align: left; }
.settings h3 + .item { border-top: 0; }
.settings .item:first-child { border-top: 0; }
.settings .item .ic { font-size: 24px; }
.settings .item .val { margin-left: auto; color: var(--muted); font-size: 16px; }
.settings .item .val.link { color: var(--accent); font-weight: 600; }
.settings .item.danger { color: var(--danger); }
.settings .item.muted { color: var(--muted); }

@media (max-width: 370px) {
  .big-title { font-size: 34px; }
  .auth-title { font-size: 38px; }
  .v-header .pill { padding: 0 12px; }
  .v-header .pill .ic { display: none; }
}
