/* =========================================================
   ЛДССИРГ v2 — минималистичный дизайн в стиле X
   Чёрный фон. Белые акценты. Без визуального шума.
   ========================================================= */

:root{
  --bg:           #000000;
  --bg-elev:      #16181c;
  --bg-hover:     #181818;
  --bg-hover-2:   #1d1f23;
  --border:       #2f3336;
  --border-soft:  #202327;
  --text:         #e7e9ea;
  --text-strong:  #ffffff;
  --muted:        #71767b;
  --muted-2:      #8b98a5;
  --accent:       #ffffff;
  --accent-text:  #0f1419;
  --danger:       #f4212e;
  --like:         #f91880;
  --comment:      #1d9bf0;
  --radius:       16px;
  --radius-sm:    9999px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Inter", Arial, sans-serif;

  --col-side:     275px;
  --col-main:     600px;
  --col-right:    350px;
  --header-h:     53px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body, .app, .main{
  overflow-wrap:anywhere;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.3125;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
  animation:page-in .18s ease-out both;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }
button{ font-family:inherit; cursor:pointer; outline:none; }
button:focus{ outline:none; box-shadow:none; }
button:focus-visible{ outline:none; box-shadow:none; }
input, textarea, select{ font-family:inherit; }
a, button, input, textarea, select{
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:#2f3336; border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:#3d4145; }
::-webkit-scrollbar-track{ background:transparent; }

/* =========================================================
   Общая раскладка
   ========================================================= */
.app{
  display:grid;
  grid-template-columns: var(--col-side) var(--col-main) var(--col-right);
  justify-content:center;
  gap:0;
  max-width: calc(var(--col-side) + var(--col-main) + var(--col-right) + 40px);
  margin:0 auto;
  min-height:100vh;
}
.app:has(.main.dm){
  grid-template-columns: var(--col-side) minmax(760px, 980px);
  max-width: calc(var(--col-side) + 980px + 40px);
}

/* =========================================================
   Левый сайдбар
   ========================================================= */
.sidebar{
  position:sticky; top:0; align-self:start;
  height:100vh;
  padding:6px 12px 16px;
  display:flex; flex-direction:column;
  gap:2px;
  border-right:0;
  overflow-y:auto;
}
.sidebar::-webkit-scrollbar{ width:0; }

.brand{
  height:50px;
  display:flex; align-items:center; justify-content:flex-start;
  gap:12px;
  border-radius:50%;
  margin:4px 0 6px;
  padding:0 12px;
  width:fit-content;
  max-width:100%;
}
.brand img{
  width:30px; height:30px;
  object-fit:cover;
  border-radius:6px;
  display:block;
  flex-shrink:0;
}
.brand-text{
  color:var(--text-strong);
  font-size:22px;
  font-weight:800;
  white-space:nowrap;
  letter-spacing:0;
}

.nav-item{
  display:flex; align-items:center; gap:18px;
  padding:12px 16px 12px 12px;
  border-radius:9999px;
  font-size:20px;
  font-weight:400;
  color:var(--text);
  transition:background .15s;
  width:fit-content;
  max-width:100%;
  position:relative;
}
.nav-item:hover{ background:var(--bg-hover); }
.nav-item.active{ font-weight:700; }
.nav-item .nav-icon{
  width:26px; height:26px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.nav-item svg{
  width:26px; height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nav-item.active svg{ stroke-width:2.5; }
.nav-item .nav-label{ white-space:nowrap; }
.nav-badge{
  min-width:18px; height:18px;
  background:var(--text-strong);
  color:#000;
  border-radius:9999px;
  font-size:11px;
  font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 6px;
  margin-left:6px;
  position:absolute;
  top:6px; left:24px;
}

.post-btn{
  margin-top:14px;
  width:90%;
  padding:15px 0;
  background:var(--accent);
  color:var(--accent-text);
  border:0;
  border-radius:9999px;
  font-size:17px;
  font-weight:700;
  transition:background .15s, opacity .15s;
}
.post-btn:hover{ background:#d7dbdc; }
.post-btn:disabled{ opacity:.5; cursor:not-allowed; }

.sidebar-spacer{ flex:1; }

.sidebar-user{
  margin-bottom:12px;
  padding:12px;
  border-radius:9999px;
  display:flex; align-items:center; gap:10px;
  cursor:pointer;
  transition:background .15s;
}
.sidebar-user:hover{ background:var(--bg-hover); }
.sidebar-user .su-info{ flex:1; min-width:0; overflow:hidden; }
.sidebar-user .su-name{
  font-weight:700; color:var(--text-strong);
  font-size:15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sidebar-user .su-handle{
  color:var(--muted);
  font-size:15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sidebar-user .su-dots{
  color:var(--text); font-size:18px; padding:0 4px;
}

.sidebar-login{
  margin:8px 0 8px;
  padding:14px 14px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  text-align:center;
  flex-shrink:0;
}
.sidebar-login .sl-title{ font-weight:700; color:var(--text-strong); margin-bottom:6px; font-size:14px; }
.sidebar-login .sl-sub{ font-size:13px; color:var(--muted); margin-bottom:12px; line-height:1.3; }
.sidebar-login .btn{ font-size:14px; }

/* =========================================================
   Центральная колонка
   ========================================================= */
.main{
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
  min-height:100vh;
}

.header{
  position:sticky; top:0; z-index:20;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}
.header-title{
  padding:12px 16px 0;
  font-size:20px; font-weight:800; color:var(--text-strong);
  display:flex; align-items:center; gap:14px;
}
.header-title .back-btn{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:0; color:var(--text);
  font-size:20px;
}
.header-title .back-btn:hover{ background:var(--bg-hover-2); }
.header-title .ht-sub{
  font-size:13px; color:var(--muted); font-weight:400;
  display:block; margin-top:1px;
}

.tabs{
  display:flex;
  height:53px;
  margin-top:0;
}
.tab{
  flex:1;
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:15px; font-weight:500;
  position:relative;
  transition:background .15s, color .15s;
}
.tab:hover{ background:var(--bg-hover); color:var(--text); }
.tab.active{ color:var(--text-strong); font-weight:700; }
.tab.active::after{
  content:""; position:absolute; bottom:0; left:50%;
  transform:translateX(-50%);
  height:4px; width:56px;
  background:var(--accent);
  border-radius:4px;
}

/* =========================================================
   Compose
   ========================================================= */
.compose{
  display:flex; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
}
.compose .compose-body{ flex:1; min-width:0; }
.compose textarea{
  width:100%;
  background:transparent;
  border:0;
  color:var(--text);
  font-size:20px;
  line-height:1.4;
  resize:none;
  outline:none;
  padding:10px 0 0;
  min-height:52px;
  max-height:300px;
  font-family:inherit;
}
.compose textarea::placeholder{ color:var(--muted); }

.compose-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:8px;
  border-top:1px solid var(--border-soft);
  margin-top:8px;
}
.compose-meta{ display:flex; align-items:center; gap:14px; color:var(--muted); font-size:13px; }
.compose-toggle{
  display:inline-flex; align-items:center;
  background:transparent;
  border:1px solid var(--border);
  border-radius:9999px;
  padding:0;
  overflow:hidden;
}
.compose-toggle-btn{
  background:transparent;
  color:var(--muted);
  border:0;
  padding:6px 14px;
  font-size:13px; font-weight:600;
  transition:background .12s, color .12s;
  cursor:pointer;
}
.compose-toggle-btn:hover{ color:var(--text); }
.compose-toggle-btn.active{
  background:var(--accent);
  color:var(--accent-text);
}
.compose-count{ font-variant-numeric:tabular-nums; }
.compose-count.warn{ color:#f7b500; }
.compose-count.over{ color:var(--danger); }
.compose-icon-btn{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--comment);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .12s;
}
.compose-icon-btn:hover{ background:rgba(29,155,240,.1); }
.compose-icon-btn svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.comment-compose{
  align-items:flex-start;
}
.comment-compose-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.comment-compose-meta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.comment-compose-meta .compose-icon-btn{
  flex:0 0 34px;
}
.comment-compose-meta span{
  flex:0 0 auto;
  font-variant-numeric:tabular-nums;
}
.comment-compose-bar .btn{
  flex:0 0 auto;
}
.compose-images{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:8px 0 0;
}
.comment-images{
  max-width:360px;
}
.compose-image{
  position:relative;
  aspect-ratio:16/10;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:var(--bg-elev);
}
.compose-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.compose-image-remove{
  position:absolute;
  top:8px;
  right:8px;
  width:28px;
  height:28px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.75);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

.btn{
  display:inline-block;
  background:var(--accent); color:var(--accent-text);
  border:0; border-radius:9999px;
  padding:10px 18px;
  font-weight:700; font-size:14px;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  transition:background .15s ease, opacity .15s ease, transform .12s ease;
  white-space:nowrap;
}
.btn:hover{ background:#d7dbdc; }
.btn:active{ transform:scale(.975); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.btn-ghost{
  background:transparent; color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover{ background:var(--bg-hover); }

.btn-danger{
  background:transparent;
  color:var(--danger);
  border:1px solid var(--danger);
}
.btn-danger:hover{ background: rgba(244,33,46,.1); }

.btn-sm{ padding:7px 14px; font-size:13px; }
.btn-full{ display:block; width:100%; padding:12px 0; box-sizing:border-box; }

/* =========================================================
   Аватары
   ========================================================= */
.avatar{
  width:40px; height:40px;
  border-radius:50%;
  background:#3a3a3a;
  color:var(--text-strong);
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
  font-size:16px;
  overflow:hidden;
  flex-shrink:0;
}
.avatar img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.avatar img.mc-head{
  image-rendering:pixelated;
}
.avatar.sm{ width:32px; height:32px; font-size:13px; }
.avatar.lg{ width:48px; height:48px; font-size:18px; }
.avatar.xl{
  width:134px; height:134px;
  font-size:48px;
  border:4px solid var(--bg);
}

/* =========================================================
   Пост
   ========================================================= */
.post{
  display:flex; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  cursor:pointer;
  transition:background .12s ease, transform .12s ease;
  animation:feed-item-in .18s ease-out both;
}
#feed-container .post,
#profile-posts .post{
  content-visibility:auto;
  contain-intrinsic-size:180px;
}
.post:hover{ background:#08080a; }
.post.official{ background: rgba(255,255,255,.015); }
.post .post-col{ flex:1; min-width:0; }

.post-head{
  display:flex; align-items:center; gap:5px;
  flex-wrap:nowrap;
  font-size:15px;
  margin-bottom:2px;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.post-name{
  color:var(--text-strong);
  font-weight:700;
  white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
  min-width:0;
  max-width:100%;
  flex:0 1 auto;
}
.post-name:hover{ text-decoration:underline; }
.post-handle, .post-time{
  color:var(--muted);
  font-weight:400;
  white-space:nowrap;
  flex-shrink:0;
}
.post-sep{ color:var(--muted); flex-shrink:0; }
.post-time:hover{ text-decoration:underline; }
.post-tools{
  display:inline-flex;
  align-items:center;
  gap:2px;
  margin-left:auto;
  flex-shrink:0;
}
.post-tool{
  appearance:none;
  -webkit-appearance:none;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  padding:0;
  transition:background .12s ease, color .12s ease, transform .12s ease;
}
.post-tool:hover{ color:var(--comment); background:rgba(29,155,240,.1); }
.post-tool:active{ transform:scale(.92); }
.post-tool.danger:hover{ color:var(--danger); background:rgba(244,33,46,.1); }
.post-tool svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.post-text{
  color:var(--text);
  font-size:15px;
  line-height:1.3125;
  word-wrap:break-word;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  margin:2px 0 12px;
}
.mention{
  color:var(--comment);
  font-weight:600;
}
.mention:hover{
  text-decoration:underline;
}
.post-images{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px;
  margin:10px 0 12px;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:var(--border-soft);
}
.post-images.count-1{ grid-template-columns:1fr; }
.post-images img{
  width:100%;
  height:100%;
  min-height:220px;
  max-height:420px;
  object-fit:contain;
  display:block;
  background:var(--bg-elev);
}
.post-images.count-1 img{
  aspect-ratio:16/10;
  max-height:520px;
}

.post-mini-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  width:100%;
  margin:4px 0 -2px;
  color:var(--muted);
}
.post-mini-actions-modal{
  margin-top:0;
  padding-bottom:10px;
  border-bottom:1px solid var(--border-soft);
}
.post-mini-action{
  --mini-color:var(--muted);
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:34px;
  height:32px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  line-height:1;
  font-variant-numeric:tabular-nums;
  outline:none;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
  transition:color .12s ease, transform .12s ease;
}
.post-mini-action.is-comment{ --mini-color:var(--comment); justify-self:start; }
.post-mini-action.is-like{ --mini-color:var(--like); justify-self:center; }
.post-mini-action.is-delete{ --mini-color:var(--danger); justify-self:end; }
.post-mini-action:hover,
.post-mini-action:focus,
.post-mini-action:focus-visible,
.post-mini-action:active{
  color:var(--mini-color);
  background:transparent;
  outline:none;
  box-shadow:none;
}
.post-mini-action .pa-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
  will-change:transform;
}
.post-mini-action svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.post-mini-action.is-comment svg{
  width:17px;
  height:17px;
  fill:currentColor;
  stroke:none;
}
.post-mini-action.liked{
  color:var(--like);
}
.post-mini-action:active{
  transform:scale(.94);
}
.post-mini-action.liked svg{
  fill:currentColor;
}
.post-mini-action.like-animating .pa-icon{
  animation:post-like-pop .28s cubic-bezier(.2,.8,.2,1);
}
.post-mini-spacer{
  width:34px;
  height:32px;
  justify-self:end;
}
@keyframes post-like-pop{
  0%{ transform:scale(1); }
  25%{ transform:scale(.72); }
  62%{ transform:scale(1.32); }
  100%{ transform:scale(1); }
}

/* Бейджи ролей */
.role-badge{
  display:inline-flex; align-items:center;
  font-size:12px;
  font-weight:600;
  padding:0;
  color:var(--accent);
  flex:0 0 auto;
}
.role-badge svg{
  width:18px; height:18px;
  fill:currentColor;
  stroke:none;
}
.role-badge.supreme{ color:#f5a524; }
.role-badge.official{ color:#1d9bf0; }
.role-badge.admin{ color:#f4212e; }
.role-badge.verified{ color:#1d9bf0; }

/* =========================================================
   Правая колонка
   ========================================================= */
.right{
  padding:0 0 0 30px;
  position:sticky; top:0; align-self:start;
  height:100vh;
  overflow-y:auto;
}
.search-wrap{
  position:sticky; top:0;
  background:var(--bg);
  padding:8px 0 12px;
  z-index:10;
}
.search-input{
  width:100%;
  background:var(--bg-elev);
  border:1px solid transparent;
  border-radius:9999px;
  padding:11px 14px 11px 44px;
  color:var(--text);
  font-size:15px;
  outline:none;
  transition:background .15s, border-color .15s;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2371767b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:14px center;
}
.search-input:focus{
  background:var(--bg);
  border-color:var(--accent);
}

.widget{
  background:var(--bg-elev);
  border-radius:16px;
  margin-bottom:16px;
  overflow:hidden;
}
.widget-title{
  padding:12px 16px;
  font-size:20px;
  font-weight:800;
  color:var(--text-strong);
}
.widget-item{
  padding:12px 16px;
  border-top:1px solid var(--border-soft);
  cursor:pointer;
  transition:background .12s;
}
.widget-item:hover{ background:var(--bg-hover-2); }
.widget-foot{
  padding:14px 16px;
  color:var(--comment);
  font-size:15px;
  border-top:1px solid var(--border-soft);
  cursor:pointer;
}
.widget-foot:hover{ color:#0f7dc8; }

.suggest-item{
  display:flex; align-items:center; gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--border-soft);
  cursor:pointer;
  transition:background .12s;
}
.suggest-item:hover{ background:var(--bg-hover-2); }
.suggest-item .si-info{ flex:1; min-width:0; }
.suggest-item .si-name{
  color:var(--text-strong); font-weight:700; font-size:15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:flex; align-items:center; gap:4px;
}
.suggest-item .si-handle{
  color:var(--muted); font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* =========================================================
   Пустые состояния
   ========================================================= */
.empty{
  padding:48px 24px;
  text-align:center;
  color:var(--muted);
  font-size:15px;
}
.empty-big{
  padding:64px 32px;
  text-align:center;
}
.empty-big h2{
  color:var(--text-strong);
  font-size:28px;
  font-weight:800;
  margin:0 0 8px;
}
.empty-big p{
  color:var(--muted);
  font-size:15px;
  margin:0 0 16px;
}

/* =========================================================
   Профиль
   ========================================================= */
.profile-banner{
  height:200px;
  background: linear-gradient(135deg,#1a1a1a 0%, #0a0a0a 100%);
  position:relative;
}
.profile-meta{
  padding:12px 16px;
  position:relative;
}
.profile-ava{
  width:134px; height:134px;
  border-radius:50%;
  margin-top:-77px;
  background:var(--bg);
  border:4px solid var(--bg);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:64px; font-weight:700; color:var(--text-strong);
}
.profile-ava img{
  width:100%; height:100%; object-fit:cover;
  image-rendering:pixelated;
}
.profile-top-row{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:8px;
}
.profile-actions{ padding-top:12px; display:flex; gap:8px; }
.profile-name{
  font-size:20px; font-weight:800; color:var(--text-strong);
  display:flex; align-items:center; gap:6px;
  margin-top:8px;
}
.profile-handle{
  font-size:15px; color:var(--muted);
  margin-top:2px;
}
.profile-bio{
  margin-top:12px; color:var(--text); font-size:15px;
  white-space:pre-wrap; word-wrap:break-word;
}
.profile-meta-row{
  display:flex; gap:18px; flex-wrap:wrap;
  margin-top:12px;
  color:var(--muted); font-size:15px;
}
.profile-stats{
  display:flex; gap:18px; margin-top:12px;
  font-size:14px;
}
.profile-stats b{ color:var(--text-strong); }

/* Редактор профиля */
.edit-form{
  padding:16px;
  border-bottom:1px solid var(--border);
}
.edit-form label{
  display:block;
  font-size:13px; color:var(--muted);
  margin:12px 0 4px;
}
.input{
  width:100%;
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:6px;
  padding:10px 12px;
  font-size:15px;
  outline:none;
  transition:border-color .15s;
}
.input:focus{ border-color:var(--accent); }
textarea.input{ resize:vertical; min-height:80px; font-family:inherit; }
.avatar-picker{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
}
.avatar-picker-preview{
  width:72px;
  height:72px;
  border-radius:50%;
  background:#3a3a3a;
  color:var(--text-strong);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
  font-size:28px;
  font-weight:800;
}
.avatar-picker-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.avatar-picker-preview img.mc-head{
  image-rendering:pixelated;
}
.avatar-picker-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.avatar-picker-note{
  width:100%;
  color:var(--muted);
  font-size:12px;
}

/* =========================================================
   Сообщения
   ========================================================= */
.dm-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr);
  height:100vh;
}
.main.dm{
  display:grid;
  grid-template-columns: 315px minmax(0, 1fr);
  height:100vh;
  width:100%;
}
.dm-list{
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.dm-list-head{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:20px; font-weight:800; color:var(--text-strong);
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.dm-list-head .icon-btn{
  width:34px; height:34px; border-radius:50%;
  border:0; background:transparent; color:var(--text);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.dm-list-head .icon-btn:hover{ background:var(--bg-hover-2); }
.dm-list-body{ flex:1; overflow-y:auto; }

.dm-new-panel{
  padding:12px;
  border-bottom:1px solid var(--border);
  background:#0a0a0a;
}
.dm-new-panel input{
  width:100%;
  background:var(--bg-elev);
  border:1px solid transparent;
  border-radius:9999px;
  padding:9px 14px;
  color:var(--text);
  font-size:14px;
  outline:none;
}
.dm-new-panel input:focus{ background:var(--bg); border-color:var(--accent); }
.dm-new-err{ color:var(--danger); font-size:13px; margin-top:8px; }

.dm-item{
  display:flex; gap:12px;
  padding:12px 16px;
  cursor:pointer;
  transition:background .12s ease, transform .12s ease;
  animation:feed-item-in .16s ease-out both;
  border-bottom:0;
  align-items:center;
}
.dm-item:active,
.post:active,
.nav-item:active,
.mobile-nav a:active{
  transform:scale(.985);
}
.dm-item:hover{ background:var(--bg-hover); }
.dm-item.active{ background:var(--bg-hover-2); border-left:2px solid var(--accent); padding-left:14px; }
.dm-item-body{ flex:1; min-width:0; }
.dm-item-top{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-width:0; }
.dm-item-name{
  color:var(--text-strong); font-weight:700; font-size:15px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  min-width:0;
}
.dm-item-time{ color:var(--muted); font-size:13px; flex-shrink:0; }
.dm-item-prev{
  color:var(--muted); font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-top:2px;
}
.dm-item.unread .dm-item-prev{ color:var(--text); }
.dm-item.unread .dm-item-name::after{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--accent); display:inline-block; margin-left:6px;
  vertical-align:middle;
}

.dm-conv{
  display:flex; flex-direction:column;
  height:100vh;
  overflow:hidden;
}
.dm-conv-head{
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:12px;
  flex-shrink:0;
}
.dm-back{
  display:none;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--text);
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.dm-back:hover{ background:var(--bg-hover-2); }
.dm-back svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.dm-conv-head .info{ flex:1; min-width:0; }
.dm-conv-head .name{
  color:var(--text-strong); font-weight:800; font-size:16px;
  display:flex; align-items:center; gap:4px;
  min-width:0;
}
.dm-conv-head .name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dm-conv-head .handle{ color:var(--muted); font-size:13px; }

.dm-msgs{
  flex:1; overflow-y:auto;
  padding:16px;
  display:flex; flex-direction:column; gap:4px;
}
.dm-bubble{
  max-width:75%;
  padding:10px 14px;
  border-radius:18px;
  font-size:15px;
  line-height:1.35;
  word-wrap:break-word;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  animation:message-in .14s ease-out;
}
.dm-bubble.theirs{
  background:var(--bg-elev);
  color:var(--text);
  align-self:flex-start;
  border-bottom-left-radius:4px;
}
.dm-bubble.mine{
  background:var(--accent);
  color:var(--accent-text);
  align-self:flex-end;
  border-bottom-right-radius:4px;
}
.dm-time{
  font-size:11px; color:var(--muted);
  padding:0 6px;
  margin-bottom:6px;
}
.dm-time.mine{ align-self:flex-end; }

.dm-input-row{
  display:flex; align-items:flex-end; gap:8px;
  padding:12px 16px;
  border-top:1px solid var(--border);
  background:#080808;
  flex-shrink:0;
}
.dm-input{
  flex:1;
  background:var(--bg-elev);
  border:0;
  border-radius:18px;
  padding:10px 16px;
  color:var(--text);
  font-size:15px;
  outline:none;
  resize:none;
  font-family:inherit;
  min-height:40px; max-height:160px;
  line-height:1.3;
}
.dm-send{
  width:36px; height:36px; border-radius:50%;
  background:var(--accent); color:var(--accent-text);
  border:0;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, opacity .15s;
  flex-shrink:0;
}
.dm-send:hover{ background:#d7dbdc; }
.dm-send:disabled{ opacity:.4; cursor:not-allowed; }
.dm-send svg{ width:18px; height:18px; fill:currentColor; }

.dm-empty{
  flex:1; display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  color:var(--muted);
  padding:32px;
  text-align:center;
}
.dm-empty h2{ color:var(--text-strong); font-size:24px; margin:0 0 8px; }

/* =========================================================
   Модал поста
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0;
  background: rgba(91,112,131,.4);
  display:none;
  align-items:flex-start; justify-content:center;
  padding:48px 16px;
  overflow-y:auto;
  z-index:100;
}
.modal-overlay.open{
  display:flex;
  animation:overlay-in .16s ease-out both;
}
.modal{
  background:var(--bg);
  border-radius:16px;
  border:1px solid var(--border);
  width:600px; max-width:100%;
  overflow:hidden;
  transform-origin:50% 24px;
}
.modal-overlay.open .modal{
  animation:modal-in .18s cubic-bezier(.2,.8,.2,1) both;
}
.modal-head{
  display:flex; align-items:center;
  padding:8px 16px;
  border-bottom:1px solid var(--border);
}
.modal-head h3{ margin:0; font-size:20px; font-weight:800; color:var(--text-strong); flex:1; }
.modal-close{
  width:34px; height:34px; border-radius:50%;
  background:transparent; border:0; color:var(--text);
  font-size:20px;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.modal-close:hover{ background:var(--bg-hover-2); }

.edit-post-overlay{
  align-items:flex-start;
}
.edit-post-dialog{
  width:min(600px, 100%);
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
}
.edit-post-dialog .modal-head{
  position:sticky;
  top:0;
  background:rgba(0,0,0,.9);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.edit-post-body{
  padding:16px;
}
#edit-post-text{
  width:100%;
  min-height:180px;
  max-height:52vh;
  resize:vertical;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:20px;
  line-height:1.35;
}
#edit-post-text::placeholder{ color:var(--muted); }
.edit-post-footer{
  display:flex;
  justify-content:flex-end;
  padding-top:12px;
  border-top:1px solid var(--border-soft);
}

.comment{
  display:flex; gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border-soft);
  animation:feed-item-in .16s ease-out both;
}
.comment.reply{
  position:relative;
  margin-left:40px;
  padding-left:12px;
  border-left:2px solid var(--border-soft);
}
.comment.reply.depth-2,
.comment.reply.depth-3{
  margin-left:64px;
}
.comment .post-col{ flex:1; min-width:0; }
.comment .post-images{
  max-width:360px;
  margin:8px 0 10px;
  border-radius:12px;
}
.comment .post-images img{
  min-height:140px;
  max-height:260px;
}
.comment .post-images.count-1 img{
  aspect-ratio:16/10;
  max-height:300px;
}
.comment-text{
  color:var(--text); font-size:15px; margin:2px 0 8px;
  white-space:pre-wrap; word-wrap:break-word;
}
.comment-acts{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; }
.comment-act{
  background:transparent; border:0;
  color:var(--muted); font-size:13px;
  padding:0;
  display:flex; align-items:center; gap:4px;
  outline:none;
  box-shadow:none;
  transition:color .12s ease, transform .12s ease;
}
.comment-act:focus,
.comment-act:focus-visible,
.comment-act:active{ outline:none; box-shadow:none; }
.comment-act:hover{ color:var(--like); }
.comment-act:active{ transform:scale(.94); }
.comment-act.liked{ color:var(--like); }
.comment-act.liked svg{ fill:var(--like); }
.comment-act svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.comment-act.reply-btn{
  gap:5px;
}
.comment-act.reply-btn svg{
  width:15px;
  height:15px;
}
.comment-act.del:hover{ color:var(--danger); }
.comment-act.edit-btn:hover{ color:var(--comment); }
.comment-act.reply-btn:hover{ color:var(--comment); }
.reply-target{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:fit-content;
  max-width:100%;
  margin:0 0 8px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:9999px;
  color:var(--muted);
  font-size:13px;
  line-height:1.2;
}
.reply-target button{
  width:18px;
  height:18px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
}
.reply-target button:hover{
  background:var(--bg-hover-2);
  color:var(--text);
}

/* =========================================================
   Уведомления
   ========================================================= */
.notif{
  display:flex; gap:14px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  cursor:pointer;
  transition:background .12s;
}
.notif:hover{ background:#08080a; }
.notif.unread{ background: rgba(29,155,240,.05); }
.notif-icon{
  width:32px; height:32px;
  flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.notif-icon svg{ width:28px; height:28px; }
.notif-icon.like svg{ fill:var(--like); stroke:none; }
.notif-icon.repost svg{ fill:none; stroke:#00ba7c; stroke-width:2; }
.notif-icon.comment svg{ fill:var(--comment); stroke:none; }
.notif-icon.dm svg{ fill:none; stroke:#a855f7; stroke-width:2; }
.notif-body{ flex:1; min-width:0; }
.notif-text{ color:var(--text); margin-top:4px; }
.notif-text b{ color:var(--text-strong); }

/* =========================================================
   Логин-страница
   ========================================================= */
.auth-page{
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:32px 16px;
  background:var(--bg);
}
.auth-card{
  width:100%; max-width:380px;
  display:flex; flex-direction:column; gap:16px;
}
.auth-brand{
  text-align:center;
  margin-bottom:8px;
}
.auth-brand img{
  width:48px; height:48px; border-radius:8px;
  display:inline-block;
}
.auth-brand h1{
  font-size:28px; font-weight:800; color:var(--text-strong);
  margin:14px 0 4px;
  letter-spacing:-.5px;
}
.auth-brand p{ color:var(--muted); font-size:14px; margin:0; }
.auth-tabs{
  display:flex; border-bottom:1px solid var(--border);
}
.auth-tab{
  flex:1; padding:14px;
  background:transparent; border:0;
  color:var(--muted); font-weight:600; font-size:15px;
  position:relative;
}
.auth-tab.active{ color:var(--text-strong); }
.auth-tab.active::after{
  content:""; position:absolute; bottom:-1px; left:0; right:0;
  height:3px; background:var(--accent);
  border-radius:3px;
}
.auth-warning{
  color:#f7b500;
  font-size:13px;
  line-height:1.35;
  padding:10px 12px;
  border:1px solid rgba(247,181,0,.34);
  border-radius:8px;
  background:rgba(247,181,0,.08);
}
.error-msg{
  color:var(--danger); font-size:13px;
  padding:8px 12px;
  background: rgba(244,33,46,.08);
  border-radius:8px;
}

/* =========================================================
   Админка
   ========================================================= */
.admin-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:start;
  column-gap:12px;
  row-gap:8px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
}
.admin-row > .avatar{
  grid-column:1;
  grid-row:1 / span 2;
}
.admin-row .info{
  grid-column:2;
  min-width:0;
}
.admin-row .info > div{
  min-width:0;
}
.admin-row .actions{
  grid-column:2;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  min-width:0;
}
.admin-row .actions .btn{
  max-width:100%;
}
.admin-row > span{
  grid-column:2;
  justify-self:start;
}
.admin-section{
  padding:16px;
  border-bottom:1px solid var(--border);
}
.admin-section h3{
  margin:0 0 12px;
  font-size:18px; color:var(--text-strong);
}
.settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.setting-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.setting-field span{
  color:var(--muted);
  font-size:13px;
}
.danger-card{
  padding:16px;
  border:1px solid rgba(244,33,46,.4);
  border-radius:12px;
  margin-bottom:12px;
  background: rgba(244,33,46,.04);
}
.danger-card h4{
  margin:0 0 8px;
  color:var(--danger);
}
.danger-card p{
  margin:0 0 12px;
  color:var(--muted); font-size:13px;
}

/* =========================================================
   Toast
   ========================================================= */
.toast{
  position:fixed;
  bottom:32px; left:50%;
  transform:translateX(-50%) translateY(20px);
  background:var(--accent); color:var(--accent-text);
  padding:12px 20px;
  border-radius:9999px;
  font-weight:600; font-size:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s;
  z-index:9999;
  max-width:90vw;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.error{ background:var(--danger); color:#fff; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1100px){
  .app{ grid-template-columns: var(--col-side) var(--col-main); max-width: calc(var(--col-side) + var(--col-main) + 40px); }
  .app:has(.main.dm){ grid-template-columns: var(--col-side) minmax(0, 1fr); max-width:100%; }
  .right{ display:none; }
}
@media (max-width: 900px){
  :root{ --col-side: 80px; }
  .nav-item .nav-label{ display:none; }
  .brand{ width:50px; justify-content:center; padding:0; }
  .brand-text{ display:none; }
  .post-btn{ width:50px; height:50px; padding:0; font-size:0; background:var(--accent); position:relative; }
  .post-btn::after{
    content:""; position:absolute; inset:0;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='%230f1419'%3E%3Cpath d='M19.4 7.34L16.66 4.6A2 2 0 0014.53 4l-9 9-2 7 7-2 9-9a2 2 0 00.13-1.66z'/%3E%3Cline x1='17' y1='6' x2='12' y2='11' stroke='%230f1419' stroke-width='2'/%3E%3C/svg%3E") center/22px no-repeat;
  }
  .sidebar-user .su-info{ display:none; }
  .sidebar-user .su-dots{ display:none; }
  .auth-brand h1{ font-size:24px; }
}
@media (max-width: 680px){
  .app{ grid-template-columns: 1fr; max-width:100%; }
  .app:has(.main.dm){
    grid-template-columns:minmax(0, 1fr);
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .sidebar{ display:none; }
  .main{
    width:100%;
    min-width:0;
    border-left:0;
    border-right:0;
  }
  .header-title{
    min-height:48px;
    padding:10px 14px 0;
    font-size:18px;
  }
  .tabs{ height:48px; }
  .tab{ font-size:14px; }
  .compose{
    gap:10px;
    padding:10px 12px;
  }
  .compose textarea{
    min-height:44px;
    font-size:18px;
    padding-top:6px;
  }
  .compose-bar{
    align-items:flex-end;
    gap:10px;
  }
  .compose-meta{
    gap:8px;
    flex-wrap:wrap;
  }
  .compose-toggle-btn{
    padding:6px 10px;
    font-size:12px;
  }
  .comment-compose{
    padding:10px 12px;
  }
  .comment-compose-bar{
    align-items:center;
    gap:8px;
  }
  .comment-compose-meta{
    gap:8px;
    flex-wrap:nowrap;
  }
  .comment-compose-meta .compose-icon-btn{
    width:34px;
    height:34px;
  }
  .comment-compose-bar .btn{
    padding:8px 14px;
    font-size:14px;
  }
  .compose-images{
    grid-template-columns:1fr;
  }
  .compose-image{
    aspect-ratio:4/3;
    border-radius:12px;
  }
  .post{
    gap:10px;
    padding:10px 12px;
  }
  .post-head{
    gap:4px;
    font-size:14px;
  }
  .post-text{
    font-size:15px;
    line-height:1.35;
    margin-bottom:10px;
  }
  .post-images{
    border-radius:12px;
    margin:8px 0 10px;
  }
  .post-images img{
    min-height:0;
    max-height:70vh;
    height:auto;
  }
  .post-images.count-1 img{
    aspect-ratio:auto;
  }
  .modal-overlay{
    align-items:stretch;
    justify-content:stretch;
    padding:0;
    background:var(--bg);
  }
  .modal{
    width:100%;
    min-height:100dvh;
    max-width:none;
    border:0;
    border-radius:0;
    display:flex;
    flex-direction:column;
  }
  .edit-post-dialog{
    width:100%;
    min-height:100dvh;
    border:0;
    border-radius:0;
  }
  #edit-post-text{
    min-height:220px;
    font-size:19px;
  }
  .modal-head{
    position:sticky;
    top:0;
    z-index:2;
    background:rgba(0,0,0,.88);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  #modal-comments{
    flex:1;
    min-height:0;
  }
  #modal-compose-wrap{
    position:sticky;
    bottom:0;
    background:var(--bg);
    border-top:1px solid var(--border);
  }
  .comment{
    gap:10px;
    padding:10px 12px;
  }
  .comment.reply{
    margin-left:28px;
    padding-left:10px;
  }
  .comment.reply.depth-2,
  .comment.reply.depth-3{
    margin-left:42px;
  }
  .comment-acts{
    gap:14px;
  }
  .admin-row{
    padding:12px;
  }
  .admin-row .actions{
    width:100%;
  }
  .admin-row .actions .btn{
    flex:1 1 auto;
  }
  .admin-section{
    padding:12px;
  }
  .avatar-picker{
    align-items:flex-start;
  }
  .avatar-picker-actions .btn{
    flex:1 1 auto;
  }
  .main.dm{
    display:block;
    width:100%;
    max-width:100vw;
    height:calc(100dvh - 60px - env(safe-area-inset-bottom));
    min-height:0;
    overflow:hidden;
  }
  .main.dm .dm-list{
    display:flex;
    height:100%;
    border-right:0;
  }
  .main.dm .dm-conv{
    display:none;
    height:100%;
  }
  .main.dm.dm-has-open .dm-list{ display:none; }
  .main.dm.dm-has-open .dm-conv{ display:flex; }
  .dm-list-head{
    padding:12px;
    min-height:54px;
  }
  .dm-new-panel{ padding:10px 12px; }
  .dm-item{
    gap:10px;
    padding:12px;
  }
  .dm-item.active{
    border-left:0;
    padding-left:12px;
    background:transparent;
  }
  .dm-item-name{ font-size:15px; }
  .dm-item-prev{ font-size:13px; }
  .dm-conv-head{
    padding:9px 12px;
    min-height:54px;
  }
  .dm-back{ display:flex; }
  .dm-conv-head .avatar{
    width:34px;
    height:34px;
  }
  .dm-msgs{ padding:12px; }
  .dm-bubble{
    max-width:88%;
    overflow-wrap:anywhere;
  }
  .dm-input-row{
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-nav{ display:flex !important; }
  html, body{ overflow-x:hidden; }
  body{ padding-bottom:calc(60px + env(safe-area-inset-bottom)); }
}

.mobile-nav{
  display:none;
  position:fixed; bottom:0; left:0; right:0;
  height:calc(54px + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
  border-top:1px solid var(--border);
  z-index:50;
  justify-content:space-around; align-items:center;
}
.mobile-nav a{
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
  border-radius:50%;
  transition:background .12s ease, transform .12s ease, color .12s ease;
}
.mobile-nav a:hover{ background:var(--bg-hover); }
.mobile-nav a svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:2; }
.mobile-nav a.active svg{ stroke-width:2.5; fill:none; }

.admin-mascot{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:45;
  width:168px;
  height:252px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.62));
  transform-origin:50% 100%;
  transition:transform .16s ease, filter .16s ease, opacity .16s ease;
}
.admin-mascot img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.admin-mascot:hover{
  transform:translateY(-4px) scale(1.025);
  filter:drop-shadow(0 18px 34px rgba(0,0,0,.72));
}
.admin-mascot:active{
  transform:translateY(0) scale(.985);
}
.admin-mascot:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
  border-radius:12px;
}

@media (max-width: 1100px){
  .admin-mascot{
    display:none;
  }
}

@keyframes message-in{
  from{ opacity:.72; transform:translateY(3px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes page-in{
  from{ opacity:.92; }
  to{ opacity:1; }
}

@keyframes feed-item-in{
  from{ opacity:.78; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes overlay-in{
  from{ opacity:0; }
  to{ opacity:1; }
}

@keyframes modal-in{
  from{ opacity:.86; transform:translateY(10px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}
