:root{
  --am7-bg:#050b11;
  --am7-panel:#08131d;
  --am7-panel2:#0a1722;
  --am7-border:rgba(135,165,195,.16);
  --am7-text:#f7f9fb;
  --am7-muted:#9aa9b8;
  --am7-orange:#ff7200;
  --am7-lime:#8dff45;
}

html,body{overflow-x:hidden}

/* server-native profile */
.profile-menu-v140{position:relative}
.profile-menu-v140>summary{list-style:none;cursor:pointer}
.profile-menu-v140>summary::-webkit-details-marker{display:none}
.profile-chevron-v140{font-style:normal;transition:transform .15s ease}
.profile-menu-v140[open] .profile-chevron-v140{transform:rotate(180deg)}

.profile-dropdown-v140{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:30000;
  width:250px;
  padding:8px;
  border:1px solid rgba(132,160,187,.22);
  border-radius:12px;
  background:#08121b;
  box-shadow:0 22px 50px rgba(0,0,0,.52);
}
.profile-dropdown-head-v140{
  padding:9px 11px 11px;
  margin-bottom:5px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.profile-dropdown-head-v140 b{display:block;color:#fff;font-size:12px}
.profile-dropdown-head-v140 small{
  display:block;margin-top:3px;overflow:hidden;color:#788997;
  font-size:10px;text-overflow:ellipsis;
}
.profile-dropdown-v140>a,
.profile-dropdown-v140 form button{
  width:100%;
  min-height:44px;
  padding:0 11px;
  display:grid;
  grid-template-columns:24px 1fr;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#b9c5cf;
  text-align:left;
  text-decoration:none;
  font:700 12.5px/1 inherit;
  cursor:pointer;
}
.profile-dropdown-v140>a:hover,
.profile-dropdown-v140 form button:hover{
  color:#fff;background:rgba(255,255,255,.045);
}
.profile-dropdown-v140>a>span,
.profile-dropdown-v140 form button>span{color:#ff7b12;text-align:center}
.profile-dropdown-v140 .profile-admin-v140{color:#ffa052}
.profile-dropdown-sep-v140{height:1px;margin:7px 6px;background:rgba(255,255,255,.075)}
.profile-dropdown-v140 form{margin:0}

/* catalog */
#arex-catalog-native-root{
  width:min(1600px,calc(100% - 48px));
  min-height:620px;
  margin:14px auto 54px;
  position:relative;
  z-index:20;
}
.am7-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  margin-bottom:14px;
}
.am7-categories,.am7-stats{
  background:rgba(7,17,27,.94);
  border:1px solid var(--am7-border);
  border-radius:13px;
}
.am7-categories{
  display:flex;
  align-items:stretch;
  overflow:visible;
  min-width:0;
}
.am7-cat-wrap{position:relative;display:flex}
.am7-cat-wrap:hover{z-index:10020}
.am7-cat{
  min-height:58px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-right:1px solid rgba(255,255,255,.05);
  background:transparent;
  color:#b7c3cf;
  font:700 14px/1 inherit;
  white-space:nowrap;
  cursor:pointer;
  transition:.15s ease;
}
.am7-cat:hover,.am7-cat.is-active{color:#fff;background:rgba(255,114,0,.06)}
.am7-cat.is-active{color:#ff830f;box-shadow:inset 0 -2px 0 var(--am7-orange)}
.am7-mode-drop{
  position:absolute;
  top:100%;
  left:0;
  min-width:238px;
  padding:10px;
  background:#081521;
  border:1px solid rgba(128,158,190,.22);
  border-radius:0 0 12px 12px;
  box-shadow:0 22px 52px rgba(0,0,0,.52);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px);
  transition:.15s ease;
  z-index:10030;
}
.am7-cat-wrap:hover .am7-mode-drop,
.am7-cat-wrap.is-open .am7-mode-drop{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;
}
.am7-drop-title{
  padding:5px 9px 8px;color:#f0f4f8;font-size:12px;font-weight:900;
}
.am7-mode{
  width:100%;
  min-height:40px;
  padding:0 9px;
  display:grid;
  grid-template-columns:20px 1fr auto;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#afbdc9;
  text-align:left;
  cursor:pointer;
}
.am7-mode:hover,.am7-mode.is-active{color:#fff;background:rgba(255,122,0,.10)}
.am7-mode.is-active{box-shadow:inset 2px 0 0 var(--am7-orange)}
.am7-mode-count{
  color:var(--am7-lime);
  font-size:12px;
  font-weight:900;
  text-shadow:0 0 10px rgba(141,255,69,.28);
}
.am7-stats{display:flex;overflow:hidden}
.am7-stat{
  min-width:142px;
  padding:9px 16px;
  display:flex;
  align-items:center;
  gap:11px;
  border-right:1px solid rgba(255,255,255,.055);
}
.am7-stat:last-child{border-right:0}
.am7-stat-icon{
  width:35px;height:35px;border-radius:9px;display:grid;place-items:center;
  color:#ff7a00;background:rgba(255,114,0,.09);
}
.am7-stat:nth-child(2) .am7-stat-icon{color:#3398ff;background:rgba(51,152,255,.08)}
.am7-stat-value{color:#fff;font-size:20px;font-weight:900;line-height:1}
.am7-stat-label{margin-top:4px;color:#8797a5;font-size:11px}
.am7-heading{
  min-height:104px;
  padding:13px 0 16px;
  margin-bottom:16px;
  display:grid;
  grid-template-columns:minmax(245px,.62fr) minmax(760px,2.15fr);
  align-items:center;
  gap:28px;
  border-bottom:1px solid rgba(255,255,255,.055);
}
.am7-heading h1{margin:0;color:#fff;font-size:31px;line-height:1;font-weight:900}
.am7-heading p{margin:8px 0 0;color:#91a0af;font-size:13px}
.am7-toolbar{
  width:100%;
  display:grid;
  grid-template-columns:minmax(300px,1.55fr) minmax(165px,.72fr) minmax(190px,.85fr) 104px;
  align-items:center;
  gap:10px;
}
.am7-toolbar input,.am7-toolbar select,.am7-toolbar button{
  width:100%;min-width:0;height:48px;margin:0;padding:0 13px;
  border:1px solid rgba(129,160,191,.19);border-radius:9px;
  background:#091520;color:#eef3f7;
}
.am7-toolbar button{
  background:var(--am7-orange);border-color:var(--am7-orange);font-weight:900;cursor:pointer;
}
.am7-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.am7-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(132,165,198,.20);
  border-radius:12px;
  background:linear-gradient(180deg,#0a1621,#07111a);
  cursor:pointer;
  transition:.16s ease;
}
.am7-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,122,0,.44);
  box-shadow:0 14px 30px rgba(0,0,0,.30);
}
.am7-cover{
  position:relative;height:158px;overflow:hidden;
  background:linear-gradient(135deg,#0d1b28,#07111a);
}
.am7-cover img{display:block;width:100%;height:100%;object-fit:cover}
.am7-badge,.am7-version{
  position:absolute;top:9px;min-height:27px;padding:0 9px;
  display:inline-flex;align-items:center;border-radius:7px;color:#fff;font-size:10.5px;font-weight:900;
}
.am7-badge{left:9px;background:#ff7414}
.am7-version{right:9px;background:rgba(2,8,13,.82)}
.am7-badge[data-kind="Плагины"]{background:#ef4444}
.am7-badge[data-kind="Сборки"]{background:#17b76a}
.am7-badge[data-kind="Моды"]{background:#16a34a}
.am7-badge[data-kind="Модели"]{background:#2563eb}
.am7-badge[data-kind="Звуки"]{background:#9333ea}
.am7-badge[data-kind="Конфиги"]{background:#0891b2}
.am7-body{padding:13px 14px 12px;display:flex;flex-direction:column;flex:1}
.am7-title{
  margin:0 0 7px;color:#fff;font-size:16.5px;line-height:1.18;font-weight:900;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.am7-desc{
  margin:0 0 10px;min-height:34px;color:#a7b3bf;font-size:12.5px;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.am7-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}
.am7-tag{
  min-height:23px;padding:0 8px;display:inline-flex;align-items:center;
  border:1px solid rgba(138,167,195,.17);border-radius:999px;
  background:rgba(18,35,49,.86);color:#bdc8d2;font-size:10.5px;
}
.am7-pagination{
  margin:22px 0 30px;padding:14px 15px;display:flex;align-items:center;
  justify-content:space-between;gap:16px;border:1px solid rgba(129,159,190,.14);
  border-radius:12px;background:rgba(7,16,25,.88);
}
.am7-page-info{color:#91a1b0;font-size:12px}
.am7-page-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.am7-page{
  min-width:38px;height:38px;padding:0 11px;border:1px solid rgba(128,159,190,.17);
  border-radius:8px;background:#091520;color:#b7c4d0;font-weight:800;cursor:pointer;
}
.am7-page.is-active{background:var(--am7-orange);border-color:var(--am7-orange);color:#fff}
.am7-page:disabled{opacity:.35;cursor:default}
.am7-dots{padding:0 4px;color:#718190}
.am7-empty{
  grid-column:1/-1;padding:34px;border:1px solid rgba(129,159,190,.14);
  border-radius:12px;background:rgba(7,16,25,.75);color:#94a3b1;
}
body.am7-loading .am7-grid,
body.am7-loading .am7-pagination{opacity:.42;pointer-events:none}

@media(max-width:1320px){
  .am7-top{grid-template-columns:1fr}
  .am7-stats{width:max-content;max-width:100%}
  .am7-heading{grid-template-columns:1fr;gap:12px}
  .am7-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  #arex-catalog-native-root{width:calc(100% - 24px)}
  .am7-categories{overflow-x:auto}
  .am7-toolbar{grid-template-columns:1fr 1fr}
  .am7-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  #arex-catalog-native-root{width:calc(100% - 18px)}
  .am7-toolbar{grid-template-columns:1fr}
  .am7-grid{grid-template-columns:1fr}
  .am7-pagination{flex-direction:column;align-items:flex-start}
}

/* AREXMODS_V143_MODE_PARTITION */
.am7-mode-count{
  min-width:34px;
  text-align:right;
}

/* AREXMODS_V144_DYNAMIC_TITLE */
.am7-heading h1,
.am7-heading p{
  transition:opacity .12s ease;
}
