:root {
  --bg: #f3f8ff;
  --panel: #ffffff;
  --panel-soft: #eef5ff;
  --text: #17315b;
  --muted: #5d7294;
  --line: #d9e7ff;
  --primary: #2f7cff;
  --primary-2: #65a6ff;
  --danger: #f0546a;
}
[data-theme="dark"] {
  --bg: #0e1728;
  --panel: #13213a;
  --panel-soft: #192b49;
  --text: #e8f1ff;
  --muted: #9bb1d1;
  --line: #2d436a;
  --primary: #4d8cff;
  --primary-2: #71a8ff;
  --danger: #ff6f87;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, Inter, Segoe UI, Arial, sans-serif; background: linear-gradient(180deg, #e9f2ff, #f7fbff); color: var(--text); transition: background .25s ease, color .25s ease; }
[data-theme="dark"] body, body[data-theme="dark"] { background: linear-gradient(180deg, #0d1628, #111d33); }
a { color: #1e66de; text-decoration: none; }
a:hover { text-decoration: underline; }
.mobile-topbar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7fbff; position: sticky; top: 0; z-index: 11; }
.mobile-topbar .logo { margin: 0; font-size: 22px; }
.mobile-topbar .logo img { width: 30px; height: 30px; border-radius: 8px; }
.menu-toggle { border: 1px solid #b8d2ff; background: #fff; color: #1f58b3; border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.auth-layout { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 24px; }
.auth-content { width: 100%; }
.sidebar { background: #f7fbff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 700; margin-bottom: 12px; color: #1960d2; }
.logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 14px rgba(31, 118, 255, 0.2); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--text); border: 1px solid transparent; }
.nav-link .bi { font-size: 16px; line-height: 1; }
.nav-link:hover, .nav-link.active { background: #eaf2ff; border-color: #cfe0ff; text-decoration: none; }
.nav-link-with-badge { position: relative; padding-right: 52px; }
.nav-new-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(120deg, #2f7cff, #5898ff);
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1;
  flex-shrink: 0;
}
.zen-quick-link .nav-new-badge { margin-left: 6px; vertical-align: middle; }
.logout-btn { margin-top: auto; display: inline-block; text-align: center; border-radius: 12px; background: linear-gradient(120deg, #2f7cff, #5898ff); color: #fff; padding: 12px 14px; }
.content { padding: 28px; animation: fadeIn .25s ease-out; min-width: 0; overflow-x: hidden; }
.site-footer { display: flex; gap: 14px; justify-content: center; padding: 16px; border-top: 1px solid #d9e7ff; background: #f7fbff; color: var(--muted); }
.top-search { margin-bottom: 22px; }
.top-search,
.top-search form { display: flex; width: min(920px, 100%); background: var(--panel); border: 1px solid #cfe0ff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 26px rgba(56, 117, 217, 0.08); }
.top-search input { flex: 1; border: 0; background: transparent; color: var(--text); font-size: 16px; padding: 14px 16px; min-height: 48px; }
.top-search button { border: 0; width: 56px; background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.card { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f8fbff); padding: 18px; box-shadow: 0 10px 24px rgba(40, 96, 183, 0.08); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(40, 96, 183, 0.12); }
.card, .tg-side, .tg-chat, .auth-card, .gif-picker, .user-row, .message-list, textarea, input[type="text"], input[type="email"], input[type="number"], input[type="password"], select {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.sidebar, .mobile-topbar, .site-footer { background: var(--panel-soft); border-color: var(--line); }
.card h3 { margin: 0 0 14px; font-size: 24px; color: #1a4c9e; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.list { display: grid; gap: 12px; }
textarea, input[type="text"], input[type="email"], input[type="number"], input[type="password"] { width: 100%; border: 1px solid #cfe0ff; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--text); background: #fff; }
select { width: 100%; border: 1px solid #cfe0ff; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--text); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
form input[type="text"], form input[type="email"], form input[type="password"], form textarea, form select, form input[type="file"] { margin-bottom: 10px; }
input[type="file"] {
  width: 100%;
  border: 1px dashed #b9d2ff;
  border-radius: 12px;
  padding: 10px;
  background: #f7fbff;
  color: #1a3f7a;
}
input[type="file"]::file-selector-button {
  border: 0;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  margin-right: 10px;
  cursor: pointer;
}
label { display: block; margin: 10px 0 6px; color: var(--muted); }
.btn { border: 0; background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; border-radius: 12px; padding: 9px 14px; cursor: pointer; display: inline-block; }
.btn-secondary { background: #7eaef8; }
.btn.wide { width: 100%; margin-top: 14px; }
.alert { background: #ffe8ec; border: 1px solid #ffc6d0; color: #b9304a; border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.ok { background: #e8f8ef; border: 1px solid #b8edcc; color: #1f7c4c; border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.message-list { height: 400px; overflow-y: auto; background: #f8fbff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.msg-item { padding: 8px 0; border-bottom: 1px solid #dfeafc; }
.msg-item:last-child { border-bottom: none; }
.msg-own { background: #e8f1ff; border: 1px solid #d0e2ff; border-radius: 10px; padding: 10px; margin-left: 80px; }
.msg-state { color: var(--muted); margin-left: 6px; }
.post-media { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin-top: 8px; border: 1px solid #d8e7ff; }
.search-tabs { display: flex; gap: 8px; margin: 10px 0 16px; flex-wrap: wrap; }
.search-tabs a { border: 1px solid #cfe0ff; border-radius: 10px; padding: 7px 10px; color: var(--muted); background: #f5f9ff; }
.search-tabs a.active { background: #e7f1ff; color: #1d56b2; border-color: #9fc2ff; }
.dm-layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; min-height: calc(100vh - 120px); }
.dm-list-page { max-width: 840px; }
.dm-sidebar { background: #fff; border: 1px solid #d9e7ff; border-radius: 16px; padding: 12px; display: grid; gap: 12px; align-content: start; max-height: calc(100vh - 120px); overflow: auto; }
.dm-sidebar h3, .dm-sidebar h4 { margin: 0; color: #1b58b8; }
.dm-search { display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
.dm-dialogs { display: grid; gap: 8px; }
.dm-dialog { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; transition: .2s ease; }
.dm-dialog:hover { border-color: #9fc2ff; background: #f6fbff; text-decoration: none; }
.dm-dialog.active { border-color: #8eb8ff; box-shadow: 0 8px 16px rgba(47, 124, 255, 0.12); background: #eef5ff; }
.dm-dialog-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dm-main { background: #fff; border: 1px solid #d9e7ff; border-radius: 16px; padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 10px; min-height: 640px; }
.dm-empty { height: 100%; min-height: 280px; display: grid; place-content: center; text-align: center; }
.dm-header { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #e4efff; }
.dm-header h3 { margin: 0; font-size: 18px; }
.dm-chat-page { height: calc(100vh - 120px); display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 0; }
.dm-chat-page.dm-chat-telegram { border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
.dm-chat-page.dm-chat-telegram .dm-message { border-radius: 10px; }
.layout:has(> .content > .dm-chat-page.dm-chat-telegram) {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.layout:has(> .content > .dm-chat-page.dm-chat-telegram) > aside.sidebar {
  min-height: 0;
  max-height: 100dvh;
}
.layout > .content:has(> .dm-chat-page.dm-chat-telegram) {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dm-chat-page.dm-chat-telegram {
  flex: 1;
  min-height: 0;
  height: auto !important;
  max-height: none;
}
@media (min-width: 960px) {
  .layout { min-height: 100vh; align-items: stretch; }
}
.birth-gate-modal { z-index: 10000; pointer-events: auto; }
.birth-gate-modal .modal-card { max-width: 400px; }
.repost-embed { margin-top: 10px; background: #f4f8ff; border: 1px solid #d5e4ff; }
.dm-chat-header { flex-shrink: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #dfeafc; background: var(--panel); }
.dm-room { display: grid; grid-template-rows: 1fr auto auto; gap: 8px; min-height: 0; }
.dm-chat-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; overflow: hidden; }
.dm-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.dm-chat-shell > .meta[data-dm-typing] { flex-shrink: 0; }
.dm-message { border: 1px solid #dce8ff; border-radius: 14px; padding: 10px; background: #f8fbff; animation: fadeIn .2s ease-out; }
.dm-message.own { margin-left: 70px; background: #eaf3ff; border-color: #bfd9ff; }
.dm-message-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dm-message p { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.dm-req-actions { display: flex; gap: 6px; }
.msg-reaction { font-size: 15px; }
.badge-unread { background: #2f7cff; color: #fff; border-radius: 999px; padding: 3px 8px; font-size: 12px; min-width: 26px; text-align: center; }
.user-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid #dfeafc; border-radius: 12px; background: #f9fcff; }
.channel-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid #dfeafc; border-radius: 12px; background: #f9fcff; color: inherit; text-decoration: none; }
.channel-row:hover { background: #eef5ff; border-color: #b7d1ff; text-decoration: none; }
.channel-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e7f1ff; color: #1f58b3; font-size: 20px; }
.channel-icon img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid #d9e7ff; }
.avatar-sm { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid #d5e5ff; }
.profile-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.inline { display: inline-block; }
.dm-composer { display: grid; grid-template-columns: 44px 44px 1fr 44px; gap: 8px; align-items: center; }
.dm-media-btn, .dm-send-btn { height: 42px; width: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #cfe0ff; background: #f5f9ff; color: #1f58b3; cursor: pointer; }
.dm-composer-fixed { flex-shrink: 0; z-index: 2; background: var(--panel); padding: 10px 10px 12px; border-top: 1px solid #e2ecff; margin: 0; }
[data-theme="dark"] .dm-composer-fixed { border-top-color: var(--line); }
.product-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-padding-inline: 6px;
}
.product-card {
  flex: 0 0 min(280px, calc(100% - 16px));
  scroll-snap-align: start;
  border: 1px solid #d5e4ff;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
}
.product-card-media { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; max-width: 100%; }
.product-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid #e2ecff; }
.product-thumb.placeholder { width: 72px; height: 72px; background: #eef4ff; }
.product-card h4 { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; word-break: break-word; }
.product-desc { font-size: 14px; color: var(--muted); margin: 6px 0; max-height: 4.5em; overflow: hidden; }
.product-badge { position: absolute; top: 10px; right: 10px; background: #e53935; color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.product-old-price { text-decoration: line-through; opacity: 0.75; }
.product-price { font-weight: 600; color: #1b58b8; }
.product-card-mobile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-card-mobile .product-card-text { width: 100%; text-align: center; padding-top: 8px; }
.product-card-mobile .product-card-text .btn { margin-top: 8px; }
.product-gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  background: var(--panel-soft);
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.product-gallery-scroll .product-gallery-img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.product-gallery-scroll .product-thumb.placeholder {
  flex: 0 0 100%;
  width: 100%;
  min-height: 180px;
  max-height: 240px;
}
.feed-compact .content .list > .card,
.feed-compact .content .list .card.card { padding: 12px; }
.feed-compact .post-author img { width: 28px; height: 28px; }
.channel-feed-card { border-left: 4px solid var(--primary); }
.msg-actions { position: relative; display: flex; gap: 6px; margin-top: 6px; }
.dm-message .msg-actions { opacity: 0; pointer-events: none; transform: translateY(-2px); transition: .18s ease; }
.dm-message:hover .msg-actions,
.dm-message.actions-open .msg-actions { opacity: 1; pointer-events: auto; transform: translateY(0); }
.reply-preview, .reply-hint { border-left: 3px solid var(--primary); background: rgba(47,124,255,.08); border-radius: 10px; padding: 7px 9px; margin: 6px 0; color: var(--muted); font-size: 13px; }
.dm-composer .reply-hint { grid-column: 1 / -1; }
.dm-reaction-picker { position: absolute; display: flex; gap: 6px; padding: 6px; margin-top: 4px; border: 1px solid #cfe0ff; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(26, 56, 104, .16); }
.dm-reaction-picker button { border: 0; background: transparent; cursor: pointer; font-size: 18px; padding: 0 2px; color: #1f58b3; }
.dm-reaction-picker button .bi { font-size: 18px; line-height: 1; }
.profile-public-head { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.legal h4 { margin: 1.25rem 0 0.45rem; font-size: 1.05rem; color: #1a4c9e; }
.legal h4:first-of-type { margin-top: 0.75rem; }
.legal > p { margin: 0.5rem 0; line-height: 1.55; color: var(--text, #2d466d); }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li { margin-bottom: 8px; color: var(--muted); }
.gif-picker { margin-top: 10px; border: 1px solid #d5e4ff; border-radius: 12px; padding: 10px; background: #f9fcff; }
.gif-picker-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; }
.gif-item { border: 1px solid #cfe0ff; border-radius: 10px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; }
.gif-item img { width: 100%; height: 80px; object-fit: cover; display: block; }
.post-actions { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.icon-btn { border: 1px solid #cfe0ff; background: #f5f9ff; color: #1f58b3; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.icon-btn:hover { background: #e7f1ff; text-decoration: none; }
.icon-btn .bi { margin-right: 0; }
.icon-heart::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.1 21.35l-1.1-1C5.14 15.24 2 12.39 2 8.86C2 6 4.24 4 7.08 4c1.63 0 3.2.76 4.22 2.01A5.6 5.6 0 0 1 15.52 4C18.36 4 20.6 6 20.6 8.86c0 3.53-3.14 6.38-8.99 11.49z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.1 21.35l-1.1-1C5.14 15.24 2 12.39 2 8.86C2 6 4.24 4 7.08 4c1.63 0 3.2.76 4.22 2.01A5.6 5.6 0 0 1 15.52 4C18.36 4 20.6 6 20.6 8.86c0 3.53-3.14 6.38-8.99 11.49z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}
.verified-badge { width: 10px; height: 10px; vertical-align: 0; margin-left: 4px; object-fit: contain; }
.verified-badge-icon { color: #2f7cff; font-size: 12px; vertical-align: -1px; margin-left: 4px; }
.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 8px; }
.post-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid #d9e7ff; }
.post-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.comments-box { border: 1px solid #dfeafc; border-radius: 18px; padding: 0; margin: 10px 0; background: #fff; overflow: hidden; }
.comments-box [data-comments-list] { max-height: 320px; overflow-y: auto; padding: 10px 12px; }
.comments-box form[data-comment-form] { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #e6eefc; background: #fff; }
.short-comment { border-bottom: 1px solid #edf3ff; padding: 8px 0; }
.short-comment:last-child { border-bottom: 0; }
.short-comment strong { color: #2d466d; }
.short-comment .icon-btn { margin-left: 4px; }
.editor-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.article-content { line-height: 1.7; font-size: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 18px; }
.hero-card { padding: 22px; }
.hero-title { margin: 0 0 8px; font-size: 30px; color: #1a4c9e; }
.hero-sub { margin: 0; color: var(--muted); }
.auth-shell { display: grid; place-items: center; min-height: 62vh; }

.auth-card { width: min(420px, 100%); padding: 24px; border-radius: 18px; border: 1px solid #cfe0ff; background: #fff; box-shadow: 0 14px 32px rgba(52, 113, 209, 0.11); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; }
.auth-card h2 { margin-top: 0; }
.auth-lead { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2d3d6;
  color: #1f1f1f;
}
.btn-google::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303C33.672 32.657 29.248 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='m6.306 14.691 6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.91 11.91 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.icon-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v9h-4v-6H10v6H6v-9H3z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-3v9h-4v-6H10v6H6v-9H3z'/%3E%3C/svg%3E\"); }
.icon-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 2a8 8 0 1 1 5.3 14l5.4 5.4l-1.4 1.4l-5.4-5.4A8 8 0 0 1 10 2m0 2a6 6 0 1 0 0 12a6 6 0 0 0 0-12'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 2a8 8 0 1 1 5.3 14l5.4 5.4l-1.4 1.4l-5.4-5.4A8 8 0 0 1 10 2m0 2a6 6 0 1 0 0 12a6 6 0 0 0 0-12'/%3E%3C/svg%3E\"); }
.icon-chat { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2'/%3E%3C/svg%3E\"); }
.icon-users { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a4 4 0 1 0-3.9-4A4 4 0 0 0 16 11M8 11a3 3 0 1 0-3-3a3 3 0 0 0 3 3m8 2c-2.6 0-8 1.3-8 4v3h16v-3c0-2.7-5.4-4-8-4m-8 1c-2.3 0-7 1.1-7 3.3V20h5v-3c0-1.1.6-2.1 1.7-2.8z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a4 4 0 1 0-3.9-4A4 4 0 0 0 16 11M8 11a3 3 0 1 0-3-3a3 3 0 0 0 3 3m8 2c-2.6 0-8 1.3-8 4v3h16v-3c0-2.7-5.4-4-8-4m-8 1c-2.3 0-7 1.1-7 3.3V20h5v-3c0-1.1.6-2.1 1.7-2.8z'/%3E%3C/svg%3E\"); }
.icon-feed { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v2H4zm0 5h16v2H4zm0 5h10v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v2H4zm0 5h16v2H4zm0 5h10v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E\"); }
.icon-book { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5a3 3 0 0 1 3-3h13v19H7a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v13.2A3 3 0 0 1 7 18h11V4z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5a3 3 0 0 1 3-3h13v19H7a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v13.2A3 3 0 0 1 7 18h11V4z'/%3E%3C/svg%3E\"); }
.icon-user { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4.4 0-8 1.8-8 4v2h16v-2c0-2.2-3.6-4-8-4'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5m0 2c-4.4 0-8 1.8-8 4v2h16v-2c0-2.2-3.6-4-8-4'/%3E%3C/svg%3E\"); }
.icon-plus { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E\"); }
.icon-login { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 17l1.4-1.4L8.8 13H20v-2H8.8l2.6-2.6L10 7l-5 5zm9-14H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 17l1.4-1.4L8.8 13H20v-2H8.8l2.6-2.6L10 7l-5 5zm9-14H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2'/%3E%3C/svg%3E\"); }
.icon-bell { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22m7-6V11a7 7 0 1 0-14 0v5L3 18v1h18v-1z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22m7-6V11a7 7 0 1 0-14 0v5L3 18v1h18v-1z'/%3E%3C/svg%3E\"); }
.icon-news { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h14v14H4zm2 2v2h10V7zm0 4v2h7v-2zm0 4v2h5v-2zm14-8h-2v10a2 2 0 0 1-2 2h4a2 2 0 0 0 2-2V7h-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h14v14H4zm2 2v2h10V7zm0 4v2h7v-2zm0 4v2h5v-2zm14-8h-2v10a2 2 0 0 1-2 2h4a2 2 0 0 0 2-2V7h-2z'/%3E%3C/svg%3E\"); }
.icon-settings { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 8.6l.9-1.8l2 .7l-.1 2a4.6 4.6 0 0 1 1.2 1.2l2-.1l.7 2l-1.8.9v1l1.8.9l-.7 2l-2-.1a4.6 4.6 0 0 1-1.2 1.2l.1 2l-2 .7l-.9-1.8h-1l-.9 1.8l-2-.7l.1-2a4.6 4.6 0 0 1-1.2-1.2l-2 .1l-.7-2l1.8-.9v-1l-1.8-.9l.7-2l2 .1a4.6 4.6 0 0 1 1.2-1.2l-.1-2l2-.7l.9 1.8zm0 2.4a2 2 0 1 0 0 4a2 2 0 0 0 0-4'/%3E%3C/svg%3E"); -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 8.6l.9-1.8l2 .7l-.1 2a4.6 4.6 0 0 1 1.2 1.2l2-.1l.7 2l-1.8.9v1l1.8.9l-.7 2l-2-.1a4.6 4.6 0 0 1-1.2 1.2l.1 2l-2 .7l-.9-1.8h-1l-.9 1.8l-2-.7l.1-2a4.6 4.6 0 0 1-1.2-1.2l-2 .1l-.7-2l1.8-.9v-1l-1.8-.9l.7-2l2 .1a4.6 4.6 0 0 1 1.2-1.2l-.1-2l2-.7l.9 1.8zm0 2.4a2 2 0 1 0 0 4a2 2 0 0 0 0-4'/%3E%3C/svg%3E\"); }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .mobile-topbar { display: flex; }
  .layout .sidebar { position: fixed; left: -300px; top: 0; width: 280px; height: 100vh; z-index: 20; transition: left 0.2s ease; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12); overflow-y: auto; }
  .layout.sidebar-open .sidebar { left: 0; }
  .layout .content { padding: 16px; }
  .zen-hero .zen-brand { display: none; }
  .zen-search { max-width: none; }
  .logout-btn { margin-top: 0; }
  .dm-layout { grid-template-columns: 1fr; }
  .dm-sidebar { max-height: none; }
  .layout:has(> .content > .dm-chat-page.dm-chat-telegram) {
    height: calc(100dvh - 58px);
    max-height: calc(100dvh - 58px);
  }
}
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-public-head { grid-template-columns: 1fr; }
  .auth-links { flex-direction: column; }
  .post-controls { width: 100%; }
  .dm-composer { grid-template-columns: 40px 40px 1fr 40px; }
  .layout .content { padding: 14px 12px; }
  .card { padding: 14px 12px; }
  .card h3 { font-size: 20px; }
  .zen-columns { gap: 14px; }
  .zen-news-chip {
    flex: 0 0 min(260px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 480px) {
  .layout .content { padding: 12px 10px; }
  .card { padding: 12px 10px; }
  .product-card {
    flex: 0 0 calc(100% - 8px);
    max-width: calc(100% - 8px);
  }
  .product-carousel { gap: 10px; padding-left: 4px; padding-right: 4px; }
}

.channel-manage-fold,
.channel-manage-fold form {
  overflow: visible;
  max-width: 100%;
}

.channel-manage-fold input,
.channel-manage-fold textarea,
.channel-manage-fold select {
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tt-page { height: calc(100vh - 80px); margin: -28px; background: #000; overflow: hidden; }
.tt-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; padding: 14px; display: grid; gap: 14px; place-items: start center; }
.tt-item { position: relative; height: calc(100vh - 112px); aspect-ratio: 9 / 16; scroll-snap-align: start; background: #000; border-radius: 18px; overflow: hidden; width: min(430px, calc((100vh - 112px) * 0.5625), 94vw); margin: 0 auto; }
.tt-video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.tt-center-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); border: 0; background: rgba(0,0,0,.35); color: #fff; width: 68px; height: 68px; border-radius: 50%; font-size: 34px; display: grid; place-items: center; opacity: 0; pointer-events: none; cursor: pointer; transition: opacity .35s ease, transform .35s ease; }
.tt-center-toggle.visible { opacity: .78; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.tt-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.tt-author { color: #fff; font-weight: 700; }
.tt-title { font-weight: 700; margin-top: 6px; }
.tt-desc { opacity: .95; margin-top: 6px; max-width: 560px; }
.tt-actions { display: grid; gap: 10px; justify-items: center; }
.tt-action-btn { border: 0; background: rgba(18, 18, 18, .55); color: #fff; border-radius: 18px; min-width: 56px; min-height: 52px; display: grid; place-items: center; gap: 2px; padding: 6px 10px; cursor: pointer; }
.tt-action-btn i { font-size: 20px; }
.tt-action-btn span { font-size: 12px; }
.tt-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.tt-progress-bar { width: 0%; height: 100%; background: #fff; transition: width .15s linear; }
.tt-comments { position: absolute; left: 0; right: 0; bottom: 76px; max-height: 44%; overflow-y: auto; background: rgba(7,12,22,.72); backdrop-filter: blur(4px); border-top: 1px solid rgba(255,255,255,.18); padding: 10px 12px; color: #fff; }
.tt-comments { background: transparent; border: 0; padding: 0; max-height: 74%; }
.tt-comments-sheet { background: #fff; color: #1a2a44; border-radius: 18px 18px 0 0; padding: 10px 12px; box-shadow: 0 -10px 28px rgba(0,0,0,.25); height: 100%; display: grid; grid-template-rows: auto 1fr; }
.tt-comments-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5eefb; padding-bottom: 8px; }
.tt-comments-list { overflow-y: auto; padding-top: 8px; }
.tt-comments .meta { color: #5a6b85; }
.tt-comment-form { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px 12px; background: #fff; border-top: 1px solid #e6eefc; }
.tt-comment-form input[type="text"] { background: #f8fbff; color: #172a46; border-color: #d7e5fb; }
.tt-comments.open { animation: ttUp .2s ease-out; }
.reels-create-btn { position: fixed; right: 18px; bottom: 88px; z-index: 15; width: 48px; height: 48px; display: grid; place-items: center; }

.nav-link .bi,
.icon-btn .bi,
.tt-action-btn .bi,
.channel-icon .bi { display: inline-block; line-height: 1; }

.fb-profile { padding: 0; overflow: hidden; }
.fb-cover { height: 130px; background: linear-gradient(120deg, #b9d2ff, #7bb0ff); }
.fb-head { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px; margin-top: -48px; align-items: end; }
.fb-profile .profile-public-head { padding: 16px; margin-top: -48px; align-items: end; }
.vk-profile { padding: 0; overflow: hidden; border-radius: 22px; }
.vk-profile .fb-cover { height: 170px; }
.vk-head { background: #fff; border-radius: 18px; margin: -54px 16px 16px; box-shadow: 0 12px 28px rgba(40,96,183,.10); }
.vk-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.vk-stats span { min-width: 110px; border: 1px solid #dbe8ff; border-radius: 14px; padding: 8px 10px; background: #f8fbff; color: #536987; }
.vk-stats b { display: block; color: #183b70; font-size: 18px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8,18,35,.48); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none !important; }
.modal-card { width: min(620px, 100%); max-height: 82vh; overflow: auto; background: #fff; color: #172a46; border-radius: 18px; padding: 16px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.modal-close { position: absolute; top: 10px; right: 10px; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; margin: 9px 0; }
.bar { height: 12px; background: #e8f1ff; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; }
body:has(.tt-page) .site-footer { display: none; }

[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] .tt-comments-sheet,
[data-theme="dark"] .tt-comment-form,
[data-theme="dark"] .search-hero,
[data-theme="dark"] .search-result {
  color: #111827 !important;
}
[data-theme="dark"] .tt-comments-sheet * ,
[data-theme="dark"] .tt-comment-form * {
  color: inherit;
}

.search-hero {
  border: 1px solid #dbe8ff;
  border-radius: 18px;
  background: linear-gradient(130deg, #f4f9ff, #edf5ff);
  padding: 16px;
}
.search-result {
  border: 1px solid #e0ecff;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.news-home-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.news-open-feed-btn {
  white-space: nowrap;
}
.news-home-teasers {
  display: grid;
  gap: 12px;
}
.news-home-teaser {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}
.news-home-teaser-img img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
@media (max-width: 520px) {
  .news-home-teaser {
    grid-template-columns: 72px 1fr;
  }
  .news-home-teaser-img img {
    width: 72px;
    height: 56px;
  }
}

.news-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.news-live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.news-live-card:hover {
  border-color: #9fc2ff;
  box-shadow: 0 8px 20px rgba(47, 124, 255, 0.1);
  text-decoration: none;
}
.news-live-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.news-feed-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.news-feed-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel-soft);
  overflow: hidden;
}
.news-feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-feed-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-feed-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.news-feed-card-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

@keyframes ttUp {
  from { transform: translateY(20px); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}

/* Главная в духе «Дзен»: поиск, лента новостей, плитки */
.zen-page { max-width: 1100px; margin: 0 auto; width: 100%; min-width: 0; box-sizing: border-box; }
.zen-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
  min-width: 0;
}
.zen-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: #1a4c9e;
}
.zen-brand img { border-radius: 12px; box-shadow: 0 6px 16px rgba(31, 118, 255, 0.2); }
.zen-search {
  display: flex;
  width: 100%;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(40, 96, 183, 0.1);
  min-width: 0;
}
.zen-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  padding: 14px 12px;
  min-height: 48px;
}
@media (min-width: 640px) {
  .zen-search input {
    font-size: 17px;
    padding: 16px 18px;
    min-height: 52px;
  }
}
.zen-search-btn {
  border-radius: 0 !important;
  min-width: 56px;
  border: 0 !important;
}
.zen-search-results { margin-bottom: 18px; }
.zen-hit-section { margin: 14px 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.zen-hit-list { display: grid; gap: 8px; }
.zen-hit {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.zen-hit:hover { border-color: #b7d1ff; background: #eaf2ff; text-decoration: none; }
.zen-hit .meta { display: block; margin-top: 4px; font-size: 12px; }
.zen-columns {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .zen-columns { grid-template-columns: 1fr 1fr; }
  .zen-news-strip { grid-column: 1 / -1; }
}
.zen-news-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.zen-news-chip {
  flex: 0 0 min(280px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}
.zen-news-chip:hover { border-color: #b7d1ff; text-decoration: none; }
.zen-news-chip img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel-soft);
}
.zen-news-chip-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zen-news-chip-text strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zen-masonry { display: grid; gap: 10px; }
.zen-tile {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  text-decoration: none;
  color: inherit;
}
.zen-tile:hover { border-color: var(--primary); text-decoration: none; box-shadow: 0 8px 20px rgba(47, 124, 255, 0.12); }
.zen-tile-meta { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }
.zen-tile-title {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.zen-more { margin-top: 12px; }
.zen-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.zen-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.zen-quick-link:hover { border-color: #b7d1ff; background: #f4f8ff; text-decoration: none; }

.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.forum-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.forum-card:hover {
  border-color: #b7d1ff;
  box-shadow: 0 8px 20px rgba(47, 124, 255, 0.1);
  text-decoration: none;
}
.forum-card-avatar {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.forum-card-body {
  min-width: 0;
  flex: 1;
}
.forum-card-body strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.forum-card-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Медиа в переписке форума — не на весь экран */
.forum-chat-page .dm-message .post-media {
  max-width: min(100%, 420px);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.admin-chart-wrap {
  position: relative;
  height: min(420px, 55vh);
  min-height: 280px;
  width: 100%;
  max-width: 960px;
  margin-top: 12px;
}
.admin-chart-fallback {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.admin-chart-title {
  margin-bottom: 6px;
}
.admin-verify-search {
  margin-bottom: 16px;
}
.gif-grid-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
}
.gif-grid-scroll .gif-item img { height: 88px; }
