:root {
  --bg: #f5f5f5;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #fff;
  --soft: #eeeeef;
  --soft-2: #e6e6e8;
  --text: #222224;
  --muted: #8f8f94;
  --line: rgba(28, 28, 30, 0.09);
  --brand: #111;
  --blue: #1d9bf0;
  --green: #23c965;
  --pink: #ff2d7a;
  --danger: #e74055;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
  --blur: blur(20px);
  --radius: 24px;
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 52% 0%, rgba(255,255,255,0.9), transparent 26rem), var(--bg);
  color: var(--text);
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 15px;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-rounded,
.mi {
  font-family: "Material Symbols Rounded";
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 520, "GRAD" -12, "opsz" 24;
}

.app-shell {
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 740px) 224px;
  gap: 26px;
  width: min(1240px, calc(100% - 88px));
  margin: 0 auto;
  padding: 32px 0 38px;
}

.sidebar {
  grid-column: 1;
  position: fixed;
  top: 32px;
  left: max(44px, calc((100vw - 1240px) / 2));
  width: 224px;
  height: calc(100vh - 70px);
}

.rightbar {
  grid-column: 3;
  position: sticky;
  top: 64px;
  height: calc(100vh - 80px);
  align-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 30px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.version-pill {
  color: #b4b4b8;
  font-weight: 500;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.version-pill:hover {
  color: var(--blue);
  background: rgba(29, 155, 240, 0.08);
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 17px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.025);
  font-weight: 700;
}

.nav-item .event-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #c8fff0, #d8d4ff 55%, #fff 70%);
  box-shadow: 0 8px 20px rgba(29, 155, 240, 0.16);
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 22px;
  padding: 0 0 20px;
}

.club-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7d7d82;
  font-weight: 600;
  padding-left: 18px;
  font-size: 15px;
}

.logout-btn,
.soft-btn,
.black-btn,
.ghost-btn,
.danger-btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.soft-btn {
  background: var(--panel-solid);
}

.logout-btn {
  background: transparent;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.black-btn {
  background: var(--brand);
  color: #fff;
}

.ghost-btn {
  background: var(--soft);
}

.danger-btn {
  background: rgba(231, 64, 85, 0.1);
  color: var(--danger);
}

.black-btn:disabled,
.soft-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.logout-btn:hover,
.soft-btn:hover,
.black-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.sidebar .nav-item,
.sidebar .logout-btn {
  transform: none;
}

.sidebar .nav-item:hover,
.sidebar .logout-btn:hover {
  transform: none;
}

.rightbar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.9;
  padding-bottom: 42px;
  font-size: 14px;
}

.right-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.right-action-btn {
  min-height: 44px;
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.main {
  grid-column: 2;
  min-width: 0;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  min-height: 52px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.back-btn,
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-solid);
  color: #777;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.tabs,
.sort-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--blur);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.035);
  margin-bottom: 14px;
}

.feed-topline {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.feed-tabs {
  margin-bottom: 0;
}

.round-filter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.78);
  backdrop-filter: var(--blur);
  color: #777;
  box-shadow: 0 18px 46px rgba(0,0,0,0.04);
  display: grid;
  place-items: center;
}

.filter-summary {
  min-height: 0;
  margin: 0 10px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.tabs button,
.sort-bar button {
  border-radius: 999px;
  font-weight: 600;
  color: #7e7e84;
  font-size: 15px;
}

.tabs button.active,
.sort-bar button.active {
  background: var(--soft);
  color: var(--text);
}

.card,
.composer,
.profile-head,
.panel {
  background: var(--panel-solid);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

.profile-head {
  background: transparent;
  box-shadow: none;
}

.composer {
  padding: 18px 24px;
  margin: 0 0 14px;
}

.composer-top {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  color: #31b449;
  font-weight: 600;
  position: relative;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff3b4f;
  color: #fff;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  margin-left: auto;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.nav-badge[hidden] {
  display: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  clip-path: circle(50%);
}

.avatar.online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
}

.profile-avatar.online::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--green);
}

.editor {
  min-height: 54px;
  padding: 2px 0;
  outline: none;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: 48px;
}

.composer-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.composer-category {
  min-height: 42px;
  border-radius: 16px;
  padding: 0 14px;
  background: var(--soft);
  color: #777;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.composer-category .mi {
  font-size: 20px;
}

.composer-menu {
  min-width: 220px;
}

.tool-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #888;
}

.post-card {
  padding: 14px 20px 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 0;
}

.post-card .avatar {
  width: 30px;
  height: 30px;
}

.post-card .mi {
  font-size: 20px;
}

.post-head,
.comment-head,
.notification-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author {
  font-weight: 650;
  color: #18aee5;
}

.role-icon {
  color: var(--blue);
  font-size: 20px;
  vertical-align: middle;
}

.time,
.muted {
  color: var(--muted);
  font-weight: 500;
}

.post-menu {
  margin-left: auto;
  color: #818187;
}

.post-body {
  margin: 5px 0 10px 40px;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-body a,
.post-body .mention,
.tag-link {
  color: var(--blue);
}

.post-media-placeholder,
.poll-box {
  margin: 10px 0 8px 40px;
  border-radius: 16px;
  background: #f3f3f4;
  border: 1px solid var(--line);
}

.poll-box {
  padding: 20px;
}

.poll-option {
  height: 52px;
  border-radius: 12px;
  background: #eeeeef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 500;
  margin-top: 10px;
}

.poll-option.winner {
  background: #111;
  color: #fff;
}

.post-actions {
  margin-left: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #85858a;
  font-weight: 500;
  min-height: 22px;
  font-size: 14px;
  border: 0;
  flex-wrap: wrap;
}

.post-card,
.post-card::before,
.post-card::after,
.post-actions,
.post-actions::before,
.post-actions::after {
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  background-image: none !important;
}

.post-card::before,
.post-card::after,
.post-actions::before,
.post-actions::after {
  content: none !important;
  display: none !important;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a8a90;
}

.action.active {
  color: var(--pink);
}

.action.humor-rate.active {
  color: #28b956;
}

.humor-rate {
  max-width: none;
  white-space: nowrap;
}

.humor-rate.active,
.humor-rate.active .mi {
  color: #28b956;
}

.views {
  margin-left: auto;
}

.floating-create {
  position: fixed;
  right: max(44px, calc((100vw - 1240px) / 2 + 20px));
  bottom: 32px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 44px rgba(0,0,0,0.16), 0 0 0 1px rgba(255,255,255,0.8) inset;
  display: grid;
  place-items: center;
  z-index: 10;
}

.floating-create .mi {
  font-size: 34px;
  color: #111;
}

.search-input {
  min-height: 54px;
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  padding: 0 22px 0 58px;
  font-weight: 500;
  color: var(--text);
}

.search-wrap {
  position: relative;
  margin-bottom: 24px;
}

.search-wrap .mi {
  position: absolute;
  top: 15px;
  left: 22px;
  color: #8b8b90;
}

.panel {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 15px;
  font-size: 21px;
  font-weight: 700;
}

.random-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.random-panel .field {
  margin: 0;
}

.random-panel .black-btn {
  min-height: 54px;
  padding-inline: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.random-result .post-card {
  margin-bottom: 0;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.clan-chip,
.tag-row,
.user-row {
  border-radius: 18px;
  background: var(--soft);
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-weight: 600;
}

.tag-list,
.user-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.follow-modal-list {
  gap: 0;
}

.follow-user-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.follow-user-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
}

.follow-user-main .avatar {
  width: 54px;
  height: 54px;
  font-size: 25px;
}

.follow-user-main strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
}

.follow-user-main .muted {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 500;
}

.follow-user-action {
  min-width: 136px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.follow-user-action.active {
  background: var(--soft);
  color: var(--text);
}

.empty-follow-list {
  padding: 18px 0 4px;
}

.tag-row {
  justify-content: flex-start;
  min-height: 66px;
}

.tag-index {
  width: 38px;
  text-align: center;
  color: #8c8c91;
}

.notification-card {
  width: 100%;
  padding: 18px 22px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  background: var(--panel-solid);
  border-radius: var(--radius);
  text-align: left;
}

.notification-card.unread {
  box-shadow: 0 0 0 2px rgba(29,155,240,0.1) inset;
}

.notification-card.is-disabled {
  opacity: 0.62;
  cursor: default;
}

.notification-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f0f1;
  display: grid;
  place-items: center;
  color: #31b449;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.notification-type {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ff2d7a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.notification-type.comment,
.notification-type.mention {
  background: var(--blue);
}

.notification-type.favorite,
.notification-type.follow_post {
  background: #ffb020;
}

.notification-type.humor {
  background: #23c965;
}

.notification-type.mute,
.notification-type.block,
.notification-type.post_deleted,
.notification-type.report,
.notification-type.moderation {
  background: #8f8f94;
}

.notification-content {
  min-width: 0;
}

.notification-body {
  color: var(--text);
  line-height: 1.42;
  font-weight: 400;
}

.profile-cover {
  height: 210px;
  border-radius: var(--radius);
  background: linear-gradient(0deg, rgba(255,255,255,0.2), rgba(255,255,255,0.7)), var(--profile-color, #ddd);
  overflow: hidden;
  position: relative;
}

.profile-cover::before {
  content: "хаха  рж";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  color: rgba(0,0,0,0.78);
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  transform: rotate(2deg);
}

.profile-info {
  margin-top: -50px;
  padding: 0 30px 20px;
  position: relative;
}

.profile-avatar {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 7px solid #fff;
  background: #e9e9ea;
  display: grid;
  place-items: center;
  font-size: 42px;
  overflow: visible;
  position: relative;
}

.profile-avatar-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e9e9ea;
}

.profile-avatar-crop img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar img {
  border-radius: 0;
  clip-path: none;
}

.notification-avatar img,
.user-row img,
.follow-user-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  clip-path: circle(50%);
}

.profile-actions {
  position: absolute;
  right: 30px;
  top: 66px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-last-seen {
  margin-top: 4px;
  font-size: 14px;
}

.profile-name {
  margin: 22px 0 2px;
  font-size: 30px;
  font-weight: 700;
}

.profile-stats {
  display: flex;
  gap: 18px;
  margin: 18px 0 15px;
  color: #85858b;
  font-weight: 500;
}

.profile-stats strong {
  color: #111;
}

.profile-extra {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 20px 40px;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card .black-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 20px;
}

.auth-logo {
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 54px;
  letter-spacing: 0;
}

.auth-card h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 600;
}

.auth-card p {
  margin: 9px 0 44px;
  color: var(--muted);
  font-weight: 400;
  font-size: 17px;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 16px;
}

.input {
  width: 100%;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7f8;
  padding: 0 20px;
  outline: 0;
  color: var(--text);
  font-weight: 400;
  font-size: 16px;
}

.input::placeholder {
  color: #a8a8ad;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap .input {
  padding-right: 62px;
}

.password-eye {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #8f8f94;
}

.password-eye .mi {
  font-size: 24px;
}

textarea.input {
  padding-top: 16px;
  min-height: 112px;
  resize: vertical;
}

.input:focus {
  border-color: rgba(29,155,240,0.3);
  background: #fff;
}

.auth-foot {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 400;
  font-size: 16px;
}

.link {
  color: var(--blue);
  font-weight: 600;
}

.forgot-row {
  text-align: right;
  margin: 10px 0 40px;
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(4px);
}

.modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: pop 0.18s ease;
}

.modal.small {
  width: min(400px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: var(--blur);
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
}

.filter-block {
  margin-bottom: 22px;
}

.filter-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  border-radius: 14px;
  background: var(--soft);
  color: #777;
  font-weight: 600;
}

.filter-chip.active {
  background: var(--brand);
  color: #fff;
}

.legal-text {
  color: #777;
  line-height: 1.65;
  font-weight: 400;
}

.menu-pop {
  position: absolute;
  z-index: 40;
  min-width: 230px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.14);
}

.menu-pop button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 500;
  text-align: left;
}

.menu-pop button:hover {
  background: rgba(0,0,0,0.05);
}

.menu-pop .danger {
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.ios-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: min(420px, calc(100% - 30px));
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.16);
  font-weight: 500;
}

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(720px, calc(100% - 30px));
  background: rgba(255,255,255,0.94);
  backdrop-filter: var(--blur);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.14);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.cookie-bar .spacer {
  flex: 1;
}

.bottom-nav {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-twofa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-tile {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
}

.stat-tile strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toggle-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
}

.toggle-row input {
  width: 22px;
  height: 22px;
}

.policy-editor {
  display: grid;
  gap: 18px;
}

.policy-card {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.policy-card:last-of-type {
  border-bottom: 0;
}

.policy-textarea {
  min-height: 220px;
}

.profile-section-title {
  margin: 18px 0 16px;
  padding: 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.profile-post-tabs {
  margin: 12px 0 18px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(7, 38px);
  gap: 10px;
  margin-top: 8px;
}

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 8px 18px rgba(0,0,0,0.12);
}

.swatch.active {
  outline: 3px solid #111;
}

.comment-box {
  padding: 18px 30px;
  border-top: 1px solid var(--line);
}

.comment-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.comment-card.highlight {
  background: rgba(29,155,240,0.1);
  margin-inline: -20px;
  padding-inline: 20px;
  border-radius: 16px;
}

.comment-menu {
  margin-left: auto;
  color: #818187;
  min-width: 32px;
  min-height: 32px;
}

.comment-report-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
}

.comment-report-card:hover {
  background: rgba(0,0,0,0.03);
}

.comment-report-body {
  margin: 4px 0 8px;
  font-weight: 500;
  line-height: 1.45;
}

.bottom-comment {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 36;
  width: min(760px, calc(100vw - 620px));
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.post-route .main {
  padding-bottom: 84px;
}

.send-comment-btn {
  color: var(--blue);
}

.loader {
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  padding: 22px;
}

@keyframes pop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 980px) {
  body {
    background: #fff;
    font-size: 14px;
  }

  .layout {
    display: block;
    width: 100%;
    padding: calc(env(safe-area-inset-top) + 18px) 0 calc(env(safe-area-inset-bottom) + 148px);
  }

  .sidebar,
  .rightbar {
    display: none;
  }

  .main {
    width: 100%;
  }

  .page-title-row {
    justify-content: center;
    padding: 0 18px;
    margin-bottom: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-title-row .back-btn {
    position: absolute;
    left: 18px;
  }

  .tabs {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 5;
    margin: 0 18px 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.52);
  }

  .feed-topline {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 18;
    grid-template-columns: 1fr 46px;
    gap: 8px;
    margin: 0 18px 12px;
  }

  .feed-topline .tabs {
    position: static;
    margin: 0;
  }

  .round-filter-btn {
    width: 46px;
    height: 46px;
  }

  .filter-summary {
    margin: -4px 22px 10px;
    font-size: 13px;
  }

  .composer {
    display: none;
  }

  .post-card {
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    background-image: none;
    border-bottom: 0;
    margin: 0;
    padding: 12px 18px 11px;
  }

  .post-card .avatar {
    width: 42px;
    height: 42px;
  }

  .post-head {
    gap: 10px;
    align-items: flex-start;
  }

  .post-author {
    font-size: 18px;
    line-height: 1.15;
  }

  .time {
    font-size: 17px;
  }

  .post-body,
  .post-actions,
  .post-media-placeholder,
  .poll-box {
    margin-left: 56px;
  }

  .post-body {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.26;
    font-weight: 400;
  }

  .post-actions {
    gap: 18px;
    font-size: 16px;
    min-height: 26px;
    border: 0;
    box-shadow: none;
  }

  .post-actions .mi {
    font-size: 27px;
  }

  .humor-rate {
    font-size: 13px;
    gap: 4px;
  }

  .views {
    margin-left: auto;
  }

  .bottom-nav {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 45;
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(var(--bottom-nav-count, 4), minmax(0, 1fr));
    background: rgba(255,255,255,0.74);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.54);
    border-radius: 34px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    padding: 6px;
    overflow: hidden;
  }

  .bottom-nav button {
    position: relative;
    min-width: 0;
    min-height: 58px;
    border-radius: 28px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    display: grid;
    grid-template-rows: 32px 16px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    color: #111;
  }

  .bottom-nav button.active {
    background: rgba(29,155,240,0.13);
    color: var(--blue);
  }

  .bottom-nav .mi {
    font-size: 31px;
  }

  .bottom-nav button > span:not(.mi):not(.nav-badge) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav .nav-badge {
    position: absolute;
    top: 4px;
    right: 18%;
    margin: 0;
  }

  #app.post-route .bottom-nav,
  #app.post-route .floating-create {
    display: none;
  }

  .floating-create {
    right: 26px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 88px);
    width: 58px;
    height: 58px;
  }

  .panel {
    margin: 0 18px 18px;
    border-radius: 20px;
    background: #f0f0f5;
    padding: 18px;
  }

  .clan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-wrap {
    margin: 0 18px 18px;
  }

  .search-input {
    min-height: 52px;
    border-radius: 16px;
  }

  .notification-card {
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 48px 1fr;
    gap: 12px;
    min-height: 76px;
    padding: 13px 18px;
    font-size: 18px;
    background: transparent;
  }

  .notification-avatar {
    width: 48px;
    height: 48px;
  }

  .bottom-comment {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    transform: none;
    grid-template-columns: 48px 1fr 48px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .post-route .main {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .notification-card .notification-head {
    align-items: baseline;
    gap: 8px;
  }

  .notification-card .time {
    font-size: 15px;
  }

  .notification-body {
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .profile-head {
    border-radius: 0;
    box-shadow: none;
    text-align: center;
  }

  .profile-cover {
    border-radius: 0;
    height: 172px;
  }

  .profile-info {
    padding: 0 18px 22px;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-actions {
    position: static;
    justify-content: center;
    margin: 16px 0;
    gap: 8px;
  }

  .profile-actions .black-btn,
  .profile-actions .ghost-btn {
    min-height: 48px;
    width: auto;
    border-radius: 19px;
    padding-inline: 14px;
  }

  .profile-name {
    font-size: 32px;
    margin-top: 16px;
  }

  .profile-post-tabs {
    margin: 0 18px 14px;
  }

  .profile-stats {
    justify-content: center;
  }

  .auth-page {
    align-items: start;
    padding: calc(env(safe-area-inset-top) + 72px) 24px 32px;
  }

  .auth-logo {
    margin-bottom: 48px;
    font-size: 32px;
  }

  .auth-card h1 {
    text-align: center;
    font-size: 30px;
  }

  .auth-card p {
    text-align: center;
  }

  .input {
    height: 62px;
    min-height: 62px;
    border: 0;
    background: #f4f4f5;
    border-radius: 16px;
    font-size: 16px;
  }

  .black-btn {
    min-height: 58px;
    border-radius: 23px;
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0 0 calc(max(12px, env(safe-area-inset-bottom)) + 86px);
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - max(12px, env(safe-area-inset-bottom)) - 110px);
    border-radius: 26px;
  }

  .modal.small {
    width: min(420px, calc(100% - 28px));
  }

  .modal-body {
    padding-bottom: 24px;
  }

  .cookie-bar {
    display: grid;
    bottom: calc(env(safe-area-inset-bottom) + 102px);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.post-card .post-actions,
.post-card .post-actions *,
.post-card .action,
.post-card .views {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration: none !important;
}

.post-card,
.post-card > * {
  border: 0 !important;
  box-shadow: none !important;
}

.post-card .post-actions {
  background: transparent !important;
  background-image: none !important;
}
