@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #09090b;
  --bg-2: #111116;
  --panel: rgba(24, 24, 30, .92);
  --panel-2: rgba(34, 34, 42, .94);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f5;
  --muted: #a6a6ad;
  --red: #e1192d;
  --red-2: #ff3046;
  --green: #2bd576;
  --warning: #eab308;
  --radius: 18px;
  --shadow: 0 24px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(225, 25, 45, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .06), transparent 22%),
    linear-gradient(180deg, #050506, var(--bg));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(7, 7, 9, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #7a0b16);
  font-weight: 900;
  letter-spacing: -1px;
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav a {
  padding: 10px 12px;
  color: #d8d8dd;
  border-radius: 10px;
}
.nav a:hover { background: rgba(255,255,255,.06); }
.nav-toggle { display: none; }
.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ddd; }

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.hero-content,
.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-content {
  min-height: 420px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  position: relative;
}
.hero-content::after {
  content: '';
  position: absolute;
  inset: auto -90px -170px auto;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(225,25,45,.36), transparent 65%);
}
.hero h1,
.page-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .94;
  letter-spacing: -2.4px;
}
.hero p,
.page-head p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 760px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.status-line { display: flex; align-items: center; gap: 10px; color: #d7d7dc; margin-top: 14px; }
.status-line span { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 18px var(--green); }

.eyebrow { color: var(--red-2); text-transform: uppercase; font-size: 12px; letter-spacing: .2em; font-weight: 800; }
.panel { padding: 24px; margin-bottom: 20px; }
.panel.accent { background: linear-gradient(180deg, rgba(225,25,45,.08), rgba(24,24,30,.92)); }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-red { background: linear-gradient(135deg, var(--red), #8e101d); }
.btn-dark { background: #23232b; border: 1px solid var(--line); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-xl { padding: 14px 20px; }
.btn-small { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.text-link { color: #ff5365; font-weight: 800; }
.text-link:hover { color: #ff8793; }

.dash-list { list-style: none; padding: 0; margin: 0 0 18px; }
.dash-list li { margin: 10px 0; color: #ddd; }
.dash-list li::before { content: '- '; color: var(--red-2); font-weight: 900; }
.server-list { display: grid; gap: 12px; }
.server-card { padding: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; }
.server-card span { display: inline-block; color: #fff; background: rgba(225,25,45,.25); padding: 3px 8px; border-radius: 20px; font-size: 12px; margin: 7px 0; }
.server-card p { color: var(--muted); margin: 4px 0 0; line-height: 1.45; }

.cards-list { display: grid; gap: 14px; }
.list-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.list-card h3 { margin: 6px 0 8px; }
.list-card p { color: var(--muted); line-height: 1.55; }
.list-card.pinned { border-color: rgba(225,25,45,.4); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ddd;
  font-size: 12px;
}
.tag.danger { background: rgba(225,25,45,.18); color: #ff8a95; }
.muted { color: var(--muted); }

.page-head { margin: 6px 0 24px; }
.page-head.compact h1 { font-size: clamp(32px, 4vw, 48px); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: #ddd; }
.tab.active { background: rgba(225,25,45,.22); border-color: rgba(225,25,45,.5); color: #fff; }

.article-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.article-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.meta-box { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 14px; }
.meta-box span { color: var(--muted); margin-bottom: 8px; }
.article h1 { font-size: clamp(34px, 5vw, 58px); margin: 8px 0 24px; }
.content { color: #e9e9ec; line-height: 1.7; font-size: 16px; }
.content h2, .content h3 { margin-top: 28px; }
.content a { color: #ff5365; font-weight: 800; }
.content img { max-width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.content blockquote { border-left: 3px solid var(--red); margin: 18px 0; padding: 8px 0 8px 16px; color: #ccc; }

.forum-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.forum-card,
.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.forum-card:hover,
.topic-row:hover { border-color: rgba(225,25,45,.4); background: var(--panel-2); }
.forum-card p,
.topic-row p { color: var(--muted); line-height: 1.5; }
.forum-stats,
.topic-meta { display: grid; align-content: center; gap: 8px; min-width: 95px; text-align: right; color: var(--muted); }
.forum-stats strong { display: block; color: #fff; font-size: 22px; }
.topic-list { display: grid; gap: 12px; }
.post-list { display: grid; gap: 16px; margin-bottom: 20px; }
.post-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.post-head small { display: block; color: var(--muted); margin-top: 3px; }
.post-actions { margin-top: 16px; }
.like-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.like-btn.active { background: rgba(225,25,45,.26); border-color: rgba(225,25,45,.55); }
.hidden-post { opacity: .55; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; color: #d8d8dd; font-weight: 700; }
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.form textarea { resize: vertical; font-family: Consolas, Monaco, monospace; }
.form textarea[hidden] { display: none; }
.checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.checkbox input { width: auto; }

.table-panel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #ddd; }
code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; }
.inline-form { display: inline; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-nav a { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats-grid.big { grid-template-columns: repeat(6, 1fr); }
.stats-grid div { text-align: center; }
.stats-grid strong { display: block; font-size: 32px; }
.stats-grid span { color: var(--muted); }

.profile-card { display: grid; gap: 26px; }
.profile-main { display: flex; gap: 18px; align-items: center; }
.profile-avatar { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: #202028; display: grid; place-items: center; font-weight: 900; }
.profile-avatar.empty { border: 1px solid var(--line); }

.flash { padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; border: 1px solid var(--line); }
.flash-success { background: rgba(43,213,118,.12); color: #b7ffd3; }
.flash-warning { background: rgba(234,179,8,.12); color: #ffe8a8; }
.flash-danger { background: rgba(225,25,45,.14); color: #ffb0b8; }
.error-panel { text-align: center; padding: 50px 20px; }
.badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(225,25,45,.18); color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 10px; }

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .userbox { flex-basis: 100%; justify-content: flex-start; }
  .hero, .grid.two, .grid.three, .forum-grid, .article-layout, .stats-grid, .stats-grid.big { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .hero-content { min-height: 340px; }
  .forum-card, .topic-row { flex-direction: column; }
  .forum-stats, .topic-meta { text-align: left; display: flex; }
}

/* v0.1.2 editor / media additions */
.form-grid-tight { margin-bottom: 0; }
.rich-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101015;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.rich-toolbar button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 9px;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 800;
}
.rich-toolbar button:hover { background: rgba(225,25,45,.22); border-color: rgba(225,25,45,.45); }
.rich-editor {
  min-height: 320px;
  padding: 16px;
  outline: none;
  color: #e9e9ec;
  line-height: 1.7;
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.rich-editor h2, .rich-editor h3 { margin-top: 20px; }
.rich-editor img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.rich-help {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.cover-preview img,
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 0 0 20px;
}
.cover-preview img { max-height: 220px; margin: 0; }
.media-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}
.card-cover {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}
.table-thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.order-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.order-form input {
  width: 80px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #101015;
  color: var(--text);
}
.notification-unread { border-color: rgba(225,25,45,.55); background: rgba(225,25,45,.08); }
.notification-read { opacity: .72; }

@media (max-width: 900px) {
  .media-card { grid-template-columns: 1fr; }
  .card-cover { height: 190px; }
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1 1 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #101015;
  color: var(--text);
}
.big-search input { font-size: 17px; }
.checkbox-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}
.checkbox-line input { width: auto; }
.tag.success { background: rgba(35, 180, 95, .14); color: #9ff0bd; border-color: rgba(35, 180, 95, .35); }
.tag.warning { background: rgba(235, 170, 45, .14); color: #ffd98c; border-color: rgba(235, 170, 45, .35); }
.tag.danger { background: rgba(225, 25, 45, .14); color: #ff9ca8; border-color: rgba(225, 25, 45, .35); }
.post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.order-form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #101015;
  color: var(--text);
}

/* v0.2.1 appearance / tickets */
body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, var(--site-bg-overlay, 0)), rgba(0, 0, 0, var(--site-bg-overlay, 0))),
    var(--site-bg-image, linear-gradient(transparent, transparent)),
    radial-gradient(circle at 10% 0%, rgba(225, 25, 45, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .06), transparent 22%),
    linear-gradient(180deg, #050506, var(--bg));
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}
.brand-mark.has-image {
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn-ticket { white-space: nowrap; }
.appearance-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.appearance-preview .brand-mark { width: 72px; height: 72px; border-radius: 18px; }
.background-preview {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.background-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.ticket-message {
  display: grid;
  gap: 10px;
}
.ticket-message.admin-message {
  border-color: rgba(225,25,45,.35);
  background: rgba(225,25,45,.06);
}
.ticket-message.hidden-message { opacity: .55; }
.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.ticket-head small { display: block; color: var(--muted); margin-top: 3px; }
.ticket-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ticket-status-form select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  background: #101015;
  color: var(--text);
}

@media (max-width: 900px) {
  .appearance-preview { grid-template-columns: 1fr; }
  .btn-ticket { width: 100%; }
}

/* v0.2.2 */
body {
  font-family: Manrope, Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}
.form textarea { font-family: inherit; line-height: 1.55; }
.brand-mark.has-image { overflow: hidden; background: rgba(255,255,255,.06); }
.brand-mark.has-image img { width: 100%; height: 100%; object-fit: cover; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.sound-toggle, .notification-toggle { min-width: 38px; padding-left: 9px; padding-right: 9px; }
.notification-toggle.is-off, .nav-mobile-notification-toggle.is-off { opacity: .72; }
.tag.success { background: rgba(43, 213, 118, .16); color: #8ff0b8; }
.user-mini { display: flex; align-items: center; gap: 10px; }
.user-mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.user-mini small { display: block; color: var(--muted); margin-top: 3px; }
.user-actions-cell { min-width: 260px; }
.block-form { display: grid; gap: 8px; min-width: 230px; }
.block-form input,
.order-form input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.attachment-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.attachment-card:hover { border-color: rgba(225,25,45,.45); color: #fff; }
.attachment-card img,
.attachment-card video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #050506;
}

.attachment-file-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  text-align: center;
  color: var(--text);
}
.attachment-file-preview strong {
  font-size: 22px;
  letter-spacing: .08em;
}
.attachment-file-preview small {
  color: var(--muted);
}
.attachment-file-preview.text-file {
  background: linear-gradient(135deg, rgba(225,25,45,.12), rgba(255,255,255,.04));
}

.attachment-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eee;
  font-size: 13px;
}
.attachment-card small { color: var(--muted); }
.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}
@media (max-width: 720px) {
  .inline-form { grid-template-columns: 1fr; }
  .userbox { flex-wrap: wrap; justify-content: flex-end; }
}


/* v0.2.2.1 */
.btn-donate { white-space: nowrap; }
.profile-info { flex: 1; min-width: 0; }
.profile-game-name-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: end;
  gap: 10px;
}
.profile-game-name-form label { margin: 0; }
.profile-game-name-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.ticket-archive-row { opacity: .78; }
@media (max-width: 720px) {
  .profile-main { align-items: flex-start; }
  .profile-game-name-form { grid-template-columns: 1fr; }
  .btn-donate { width: auto; }
}

/* v0.2.2.2 */
.topbar-donate {
  margin-right: 4px;
  flex: 0 0 auto;
}
.userbox .btn-ticket,
.userbox .btn-small {
  white-space: nowrap;
}
.admin-nav a {
  padding: 14px 18px;
  min-width: 132px;
  text-align: center;
}
.profile-main {
  align-items: stretch;
}
.profile-nickname-panel {
  margin-left: auto;
  min-width: 310px;
  max-width: 380px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.profile-nickname-panel .profile-game-name-form {
  width: 100%;
  margin-top: 0;
  grid-template-columns: 1fr auto;
}
.profile-ticket-actions {
  display: flex;
  margin-top: 18px;
  clear: both;
}
.admin-comment-cell {
  min-width: 280px;
}
.admin-comment-form {
  display: grid;
  gap: 8px;
}
.admin-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #101015;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.blocked-page .topbar { display: none; }
.blocked-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.blocked-panel {
  width: 100%;
}
.notification-toast-stack {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}
.notification-toast {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(225,25,45,.45);
  border-radius: 14px;
  background: rgba(20,20,26,.96);
  box-shadow: var(--shadow);
  color: var(--text);
}
.notification-toast span {
  color: var(--muted);
  line-height: 1.45;
}
.file-error-box {
  margin: 0;
}

@media (max-width: 1080px) {
  .profile-main { flex-wrap: wrap; }
  .profile-nickname-panel { margin-left: 106px; }
}
@media (max-width: 720px) {
  .topbar-donate { order: 2; }
  .nav-toggle { order: 3; }
  .nav { order: 4; }
  .userbox { order: 5; }
  .profile-nickname-panel {
    margin-left: 0;
    min-width: 100%;
    max-width: none;
  }
  .profile-nickname-panel .profile-game-name-form { grid-template-columns: 1fr; }
  .admin-nav a { min-width: 100%; }
}

/* v0.2.2.3 */
body {
  font-family: Manrope, Segoe UI, Roboto, Arial, sans-serif;
}
.admin-users-form-panel,
.admin-users-table-panel {
  width: min(1560px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.admin-users-table-panel table {
  min-width: 1380px;
}
.notification-toast em {
  width: max-content;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.ticket-events-panel {
  margin-top: 18px;
}
.ticket-events-list {
  display: grid;
  gap: 8px;
}
.ticket-event-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.ticket-event-row small {
  color: var(--muted);
  text-align: right;
}
@media (max-width: 720px) {
  .admin-users-form-panel,
  .admin-users-table-panel {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .ticket-event-row {
    display: grid;
  }
  .ticket-event-row small {
    text-align: left;
  }
}

/* v0.2.2.4 */
.user-link {
  color: #fff;
  font-weight: 900;
  border-bottom: 1px dashed rgba(255,255,255,.24);
}
.user-link:hover {
  color: #ff6b78;
  border-bottom-color: rgba(255,83,101,.65);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.badge-row.compact {
  margin-top: 6px;
  gap: 5px;
}
.boosty-badge {
  background: linear-gradient(135deg, rgba(225,25,45,.28), rgba(255,255,255,.08));
  border: 1px solid rgba(225,25,45,.32);
  color: #fff;
  font-weight: 800;
}
.post-badges {
  margin-top: 5px;
}
.admin-badges-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.admin-badges-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #101015;
  color: var(--text);
  font: inherit;
}
.badges-cell {
  min-width: 260px;
}
.public-profile-card .profile-main,
.profile-card .profile-main {
  gap: 18px;
}
@media (max-width: 720px) {
  .admin-badges-form { grid-template-columns: 1fr; }
}
.admin-users-table-panel table {
  min-width: 1620px;
}
.stats-grid.big {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}


/* v0.2.2.5 */
.public-user-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.public-user-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.public-user-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.public-user-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.ticket-messages-list {
  display: grid;
  gap: 10px;
}
.ticket-message.panel {
  padding: 14px 16px;
  margin-bottom: 0;
  border-radius: 14px;
  gap: 8px;
}
.ticket-message .ticket-head {
  align-items: center;
}
.ticket-message .ticket-head small {
  margin-top: 1px;
  font-size: 12px;
}
.ticket-message .content {
  line-height: 1.48;
}
.ticket-message .content p:first-child { margin-top: 0; }
.ticket-message .content p:last-child { margin-bottom: 0; }
.ticket-message .attachments-grid {
  margin-top: 4px;
}
.ticket-message .post-actions {
  margin-top: 2px;
}
@media (max-width: 720px) {
  .public-user-stats { grid-template-columns: 1fr; }
  .ticket-message.panel { padding: 12px; }
}

/* v0.2.2.6 */
.collapsed-ticket-events {
  padding: 0;
  overflow: hidden;
}
.collapsed-ticket-events details {
  padding: 0;
}
.collapsed-ticket-events summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  user-select: none;
}
.collapsed-ticket-events summary::-webkit-details-marker {
  display: none;
}
.collapsed-ticket-events summary span {
  font-weight: 900;
  color: #fff;
}
.collapsed-ticket-events summary small {
  color: var(--muted);
}
.collapsed-ticket-events summary::after {
  content: 'Раскрыть';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.collapsed-ticket-events details[open] summary::after {
  content: 'Скрыть';
}
.collapsed-ticket-events .ticket-events-list {
  padding: 0 16px 16px;
}
.forum-attachments-grid {
  margin-top: 12px;
}
.form input[type="file"] {
  cursor: pointer;
}
@media (max-width: 720px) {
  .collapsed-ticket-events summary {
    display: grid;
  }
  .collapsed-ticket-events summary::after {
    width: max-content;
  }
}

/* v0.2.3 — пользовательские статусы и лимиты */
.user-status-badge {
  background: var(--badge-bg, rgba(255,255,255,.08));
  color: var(--badge-text, #fff);
  border-color: color-mix(in srgb, var(--badge-bg, #ffffff) 55%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  gap: 6px;
}

.user-status-badge .status-icon,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  margin-right: 4px;
}

.custom-status-badge {
  background: rgba(255,255,255,.08);
  color: var(--text, #fff);
}

.status-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.status-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.status-checkbox input {
  width: auto;
}

.user-statuses-form details {
  margin-bottom: 8px;
}

.user-statuses-form summary {
  cursor: pointer;
  color: var(--accent, #e1192d);
  font-weight: 700;
}

.form-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.compact-grid {
  gap: 8px;
}

.compact-grid label,
.status-create-form label {
  font-size: .82rem;
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.check-row input[type="checkbox"] {
  width: auto;
}

.profile-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0 16px;
  font-size: .9rem;
}

.profile-limits span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

/* v0.2.4 — бюрократические страницы */
.footer {
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 13px;
}
.footer-links a {
  color: #d4d4da;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}
.footer-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,83,101,.65);
}
.legal-article .content ul {
  padding-left: 22px;
}
.legal-article .content li {
  margin: 8px 0;
}
@media (max-width: 900px) {
  .footer {
    display: grid;
    justify-content: stretch;
    text-align: center;
  }
  .footer-links {
    order: 2;
  }
}

/* v0.2.5+ — DRUGOY MIR Portal и обновление каналов */
.channel-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(225,25,45,.16), rgba(255,255,255,.035) 48%, rgba(24,24,30,.92)),
    var(--panel);
  box-shadow: var(--shadow);
}
.channel-head::after {
  content: '';
  position: absolute;
  inset: auto -120px -190px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(225,25,45,.28), transparent 64%);
  pointer-events: none;
}
.channel-head-main,
.channel-head-card,
.channel-head-stats {
  position: relative;
  z-index: 1;
}
.channel-head-main h1 {
  margin-bottom: 10px;
}
.channel-head-card,
.channel-head-stats div {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  text-align: center;
}
.channel-head-card strong,
.channel-head-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}
.channel-head-card span,
.channel-head-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.channel-head-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 10px;
}
.channel-toolbar {
  margin-top: -4px;
  background: rgba(18,18,24,.86);
}
.channel-tabs {
  margin-top: -8px;
}
.channel-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.channel-item-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.channel-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225,25,45,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.channel-card-body {
  min-width: 0;
}
.channel-card-body h3 {
  font-size: 22px;
  margin: 10px 0 9px;
}
.channel-card-body p {
  margin: 0 0 12px;
}
.channel-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.channel-card-meta small {
  color: var(--muted);
}
.channel-forum-grid {
  gap: 18px;
}
.channel-forum-card {
  position: relative;
  min-height: 170px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.channel-forum-card:hover,
.channel-topic-row:hover {
  transform: translateY(-2px);
}
.channel-forum-card h2 {
  margin: 12px 0 8px;
}
.channel-topic-row {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
@media (max-width: 900px) {
  .channel-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .channel-head-card,
  .channel-head-stats div {
    text-align: left;
  }
  .channel-head-stats {
    grid-template-columns: 1fr;
  }
}

.server-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.live-server-card {
  display: grid;
  gap: 8px;
}
.server-online-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #ddd;
  font-size: 13px;
}
.server-online-line em {
  color: var(--muted);
  font-style: normal;
}
.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.server-dot.online {
  background: var(--green);
  box-shadow: 0 0 14px rgba(43, 213, 118, .8);
}
.server-dot.offline {
  background: var(--red-2);
  box-shadow: 0 0 14px rgba(255, 48, 70, .55);
}
.server-dot.muted-dot {
  background: var(--muted);
}
.server-settings-list {
  display: grid;
  gap: 16px;
  margin: 14px 0 24px;
}
.server-settings-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 16px;
}
.server-settings-card legend {
  padding: 0 8px;
  color: #fff;
  font-weight: 800;
}
.server-settings-live {
  margin-bottom: 0;
}


.servers-article-block {
  margin: 8px 0 28px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.server-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.server-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.server-summary-card strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}
.server-summary-card span {
  color: var(--muted);
  font-size: 13px;
}
.server-article-grid {
  display: grid;
  gap: 14px;
}
.server-detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.server-detail-card.is-online {
  border-color: rgba(43, 213, 118, .28);
}
.server-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.server-detail-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}
.server-detail-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.server-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.05);
}
.server-state-badge.online { border-color: rgba(43, 213, 118, .36); background: rgba(43, 213, 118, .12); }
.server-state-badge.offline { border-color: rgba(255, 48, 70, .34); background: rgba(255, 48, 70, .1); }
.server-state-badge.disabled { opacity: .85; }
.server-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.server-detail-metrics div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
}
.server-detail-metrics strong {
  display: block;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-detail-metrics span,
.server-info-row span {
  color: var(--muted);
  font-size: 13px;
}
.server-info-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 7px 0;
  color: #ddd;
}
.server-info-row strong {
  min-width: 112px;
  color: #fff;
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
}
@media (max-width: 760px) {
  .server-summary-grid,
  .server-detail-metrics {
    grid-template-columns: 1fr;
  }
  .server-detail-head {
    flex-direction: column;
  }
}


/* v0.2.8.1 */
.admin-nav a.admin-nav-alert {
  background: linear-gradient(135deg, rgba(225,25,45,.34), rgba(255,181,71,.16));
  border-color: rgba(255,181,71,.58);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 10px 30px rgba(225,25,45,.12);
}
.admin-nav a.admin-nav-alert:hover {
  transform: translateY(-1px);
  border-color: rgba(255,210,120,.88);
}
.stats-grid .panel {
  min-width: 0;
  overflow: hidden;
}
.stats-grid strong,
.stats-grid span {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}
.admin-rules-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  max-width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.admin-rules-meta strong,
.admin-rules-meta code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.admin-rules-readonly {
  max-width: 920px;
}

/* v0.2.9 — обновление дизайна каналов: вики, новости, форум */
.channel-head-v029 {
  border-color: rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,.09), transparent 24%),
    linear-gradient(135deg, rgba(225,25,45,.22), rgba(255,255,255,.045) 42%, rgba(15,15,20,.96)),
    var(--panel);
}
.channel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.compact-stats {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.v029-toolbar {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  border-color: rgba(255,255,255,.11);
  background: rgba(14,14,19,.9);
}
.v029-toolbar .big-search input {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.v029-tabs {
  gap: 8px;
}
.v029-tabs .tab {
  background: rgba(255,255,255,.045);
}
.channel-feature-strip {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr;
  gap: 16px;
  margin-bottom: 20px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225,25,45,.46);
}
.feature-card.primary { min-height: 280px; }
.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82));
}
.feature-card > div {
  position: relative;
  z-index: 1;
}
.feature-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}
.feature-card p {
  color: #d8d8dd;
  line-height: 1.5;
}
.feature-card small { color: var(--muted); }
.channel-layout-v029 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.channel-side-panel {
  position: sticky;
  top: 92px;
  margin-bottom: 0;
}
.channel-side-panel h3 {
  margin: 8px 0 12px;
}
.side-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.side-chip {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #e6e6ea;
  font-size: 13px;
  font-weight: 800;
}
.article-grid-v029,
.news-grid-v029 {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.v029-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}
.v029-card .card-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.card-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-weight: 900;
}
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.news-lead-card {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-color: rgba(225,25,45,.25);
  background:
    linear-gradient(135deg, rgba(225,25,45,.12), rgba(255,255,255,.035)),
    var(--panel);
}
.news-lead-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.news-lead-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.news-lead-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.v029-forum-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.v029-forum-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 22px;
}
.forum-card-main {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
}
.forum-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  font-size: 22px;
}
.forum-card-footer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.inline-stats {
  display: flex;
  justify-content: space-between;
  text-align: left;
  min-width: 0;
}
.latest-topic {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.v029-topic-list {
  gap: 10px;
}
.v029-topic-row {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.v029-topic-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-2), rgba(225,25,45,.2));
  opacity: .85;
}
.v029-topic-row h3 {
  margin: 2px 0 8px;
}
.v029-topic-meta strong {
  display: block;
  color: #fff;
  font-size: 24px;
}
.forum-topics-panel {
  background: rgba(18,18,24,.88);
}
.compact-channel-head .channel-head-main h1 {
  font-size: clamp(34px, 5vw, 58px);
}
.topic-hero-v029 {
  margin-bottom: 20px;
}
.v029-post-list {
  gap: 14px;
}
.v029-post-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
}
.v029-post-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.v029-post-head {
  align-items: flex-start;
}
.post-author-block {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.post-author-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(225,25,45,.34), rgba(255,255,255,.08));
  font-weight: 900;
}
.post-side-tags,
.v029-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.v029-post-actions {
  justify-content: flex-start;
  align-items: center;
}
.reply-panel-v029 {
  border-color: rgba(225,25,45,.22);
}
.article-layout-v029 {
  grid-template-columns: 290px 1fr;
}
.article-side-v029 .text-link {
  display: inline-block;
  margin-bottom: 2px;
}
.meta-box-v029 {
  background: rgba(255,255,255,.045);
}
.article-panel-v029 {
  padding: clamp(22px, 4vw, 42px);
}
.article-title-block {
  margin-bottom: 18px;
}
.article-title-block h1 {
  margin-bottom: 14px;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.article-cover-v029 {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 0 0 22px;
}
.content-v029 {
  font-size: 17px;
  line-height: 1.78;
}
.content-v029 h2 {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.search-results-panel {
  border-color: rgba(255,255,255,.12);
}
@media (max-width: 980px) {
  .channel-feature-strip,
  .news-lead-card,
  .channel-layout-v029,
  .article-layout-v029 {
    grid-template-columns: 1fr;
  }
  .channel-side-panel,
  .article-side-v029 {
    position: static;
  }
  .feature-card.primary,
  .feature-card {
    min-height: 220px;
  }
}
@media (max-width: 720px) {
  .channel-head-actions,
  .card-bottom-row,
  .inline-stats,
  .v029-post-head {
    display: grid;
  }
  .channel-head-actions .btn {
    width: 100%;
  }
  .article-grid-v029,
  .news-grid-v029,
  .v029-forum-grid {
    grid-template-columns: 1fr;
  }
  .forum-card-main {
    grid-template-columns: 1fr;
  }
  .news-lead-card img {
    min-height: 180px;
  }
}

/* v0.3.4: forum live updates and server connection helpers */
.new-posts-banner {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 25, 45, .38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(225, 25, 45, .20), rgba(24, 24, 30, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.new-posts-banner[hidden] {
  display: none !important;
}

.newly-added-post {
  animation: dmNewForumPostPulse 1.15s ease-out 1;
  border-color: rgba(225, 25, 45, .45);
}

@keyframes dmNewForumPostPulse {
  0% { opacity: .72; box-shadow: 0 0 0 rgba(225, 25, 45, 0); }
  35% { opacity: 1; box-shadow: 0 0 0 4px rgba(225, 25, 45, .18); }
  100% { opacity: 1; box-shadow: inherit; }
}

.server-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.server-connect-help {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.server-connect-help summary {
  cursor: pointer;
  font-weight: 800;
}

.server-connect-help ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.server-connect-help code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,.26);
  color: #dce7ff;
  word-break: break-all;
}

.server-settings-live {
  overflow-wrap: anywhere;
}

/* v0.3.4.2: reliable forum bottom autoscroll */
.topic-bottom-anchor {
  width: 100%;
  height: 1px;
  scroll-margin-top: 110px;
}

/* v0.3.4.4: compact forum topic view and SSE live updates */
.v029-post-list {
  gap: 9px;
  margin-bottom: 12px;
}
.v029-post-card.panel {
  padding: 13px 15px;
  margin-bottom: 0;
  border-radius: 14px;
}
.v029-post-card .content {
  margin-top: 7px;
  line-height: 1.46;
}
.v029-post-card .content p {
  margin: 0 0 8px;
}
.v029-post-head {
  gap: 10px;
  margin-bottom: 7px;
}
.post-author-block {
  gap: 9px;
}
.post-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 14px;
}
.post-head small {
  margin-top: 1px;
  font-size: 12px;
}
.post-side-tags,
.v029-post-actions {
  gap: 6px;
}
.v029-post-actions {
  margin-top: 9px;
}
.v029-post-actions .btn,
.v029-post-actions .like-btn {
  padding: 6px 10px;
  font-size: 12px;
  min-height: 0;
}
.reply-panel-v029.panel {
  padding: 16px;
  margin-top: 12px;
}
.reply-panel-v029 .section-head {
  margin-bottom: 8px;
}
.reply-panel-v029 .section-head h2 {
  margin: 4px 0 3px;
}
.reply-panel-v029 .section-head p {
  margin: 0;
  font-size: 13px;
}
.reply-panel-v029 textarea {
  min-height: 96px;
  resize: vertical;
}
.reply-panel-v029 .form {
  gap: 11px;
}
.forum-attachments-grid {
  margin-top: 8px;
  gap: 8px;
}
.forum-attachments-grid .attachment-card {
  padding: 8px;
}
.forum-attachments-grid img,
.forum-attachments-grid video {
  max-height: 170px;
  object-fit: cover;
}
.new-posts-banner {
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* v0.3.4.5: Steam avatars and role-highlighted names */
.post-author-avatar-img {
  object-fit: cover;
  background: rgba(255,255,255,.06);
}
.user-role-link.role-owner {
  color: #ffd66b;
  text-shadow: 0 0 14px rgba(255, 214, 107, .32);
  border-bottom-color: rgba(255, 214, 107, .48);
}
.user-role-link.role-owner:hover {
  color: #ffe59a;
  border-bottom-color: rgba(255, 229, 154, .9);
}
.user-role-link.role-admin {
  color: #ff7c8a;
  text-shadow: 0 0 14px rgba(225, 25, 45, .28);
  border-bottom-color: rgba(255, 124, 138, .5);
}
.user-role-link.role-admin:hover {
  color: #ff98a3;
  border-bottom-color: rgba(255, 152, 163, .9);
}
.role-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  vertical-align: middle;
}
.role-chip-owner {
  color: #201400;
  background: linear-gradient(135deg, #ffd66b, #ffb11f);
  box-shadow: 0 0 0 1px rgba(255, 214, 107, .24), 0 8px 22px rgba(255, 177, 31, .16);
}
.role-chip-admin {
  color: #fff;
  background: linear-gradient(135deg, rgba(225,25,45,.92), rgba(131,35,48,.92));
  box-shadow: 0 0 0 1px rgba(255, 124, 138, .28), 0 8px 22px rgba(225,25,45,.16);
}
.ticket-author-block {
  align-items: center;
}
.profile-avatar-visibility-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
@media (max-width: 720px) {
  .role-chip {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* v0.3.5: плавный скроллинг страниц и переходов */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* v0.3.5.1: fixes for profile controls and CSP stylesheet diagnostics */
.profile-card .profile-main {
  align-items: flex-start;
}
.profile-nickname-panel {
  flex: 0 0 360px;
  min-width: 0;
  max-width: 360px;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  align-self: flex-start;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.profile-nickname-panel .form {
  margin: 0;
}
.profile-nickname-panel .profile-game-name-form {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.profile-nickname-panel .profile-game-name-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}
.profile-nickname-panel .profile-game-name-form input {
  width: 100%;
  min-width: 0;
}
.profile-nickname-panel .btn {
  width: 100%;
  justify-content: center;
}
.profile-avatar-visibility-form {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.profile-avatar-visibility-form small {
  display: block;
  line-height: 1.45;
}
.profile-avatar-visibility-form .checkbox-line {
  align-items: flex-start;
}
.profile-avatar-visibility-form .checkbox-line span {
  line-height: 1.32;
}
@media (max-width: 1080px) {
  .profile-nickname-panel {
    flex-basis: calc(100% - 106px);
    max-width: none;
    margin-left: 106px;
  }
}
@media (max-width: 720px) {
  .profile-nickname-panel {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
  }
}

/* v0.3.6: Steam DayZ playtime cards */
.panel-soft {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.profile-playtime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.profile-playtime h3 {
  margin: 4px 0 6px;
  color: #fff;
}
.profile-playtime p {
  margin: 0;
}
.playtime-value strong {
  font-size: 28px;
  color: #fff;
}
.admin-playtime-cell {
  min-width: 140px;
}
.admin-playtime-cell strong,
.admin-playtime-cell small {
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .profile-playtime {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-playtime .btn {
    width: 100%;
    justify-content: center;
  }
}


/* v0.3.6.1: forum topic is newest-first, reply form stays above messages */
.reply-panel-top-v0361 {
  margin-bottom: 12px;
}
.forum-topic-newest-first {
  scroll-margin-top: 110px;
  overflow-anchor: none;
}
.forum-topic-newest-first .post,
.reply-panel-top-v0361 {
  overflow-anchor: none;
}
.forum-topic-newest-first .new-posts-banner {
  top: 76px;
}
.reply-panel-top-v0361 .rich-editor textarea,
.reply-panel-top-v0361 textarea {
  min-height: 84px;
}
.reply-panel-top-v0361 .section-head p {
  max-width: 820px;
}

/* v0.3.6.2: ticket conversation matches newest-first forum layout */
.ticket-reply-panel-top-v0362 {
  margin-bottom: 12px;
}
.ticket-reply-panel-top-v0362.panel {
  padding: 16px;
}
.ticket-reply-panel-top-v0362 .section-head {
  margin-bottom: 8px;
}
.ticket-reply-panel-top-v0362 .section-head h2 {
  margin: 4px 0 3px;
}
.ticket-reply-panel-top-v0362 .section-head p {
  margin: 0;
  font-size: 13px;
  max-width: 820px;
}
.ticket-reply-panel-top-v0362 textarea {
  min-height: 84px;
  resize: vertical;
}
.ticket-reply-panel-top-v0362 .form {
  gap: 11px;
}
.ticket-thread-newest-first {
  scroll-margin-top: 110px;
}
.ticket-thread-newest-first .ticket-new-messages-banner {
  top: 76px;
}
.ticket-attachments-grid {
  margin-top: 8px;
  gap: 8px;
}
.ticket-attachments-grid .attachment-card {
  padding: 8px;
}
.ticket-attachments-grid img,
.ticket-attachments-grid video {
  max-height: 170px;
  object-fit: cover;
}
.ticket-message-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
  min-height: 0;
}

/* v0.3.7: personal messages */
.messages-list .message-conversation-row.has-unread {
  border-color: rgba(225,25,45,.48);
  background: rgba(225,25,45,.075);
}
.message-search-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}
.user-picker-list {
  display: grid;
  gap: 10px;
}
.user-picker-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.user-picker-row textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #101015;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.personal-message-reply-panel.panel {
  padding: 16px;
  margin-bottom: 12px;
}
.personal-message-reply-panel textarea {
  min-height: 84px;
  resize: vertical;
}
.personal-messages-list {
  display: grid;
  gap: 10px;
  scroll-margin-top: 110px;
}
.personal-message.panel {
  padding: 14px 16px;
  margin-bottom: 0;
  border-radius: 14px;
  gap: 8px;
}
.personal-message.from-me {
  border-color: rgba(225,25,45,.28);
  background: rgba(225,25,45,.045);
}
.personal-message .content {
  line-height: 1.48;
}
.personal-message .content p:first-child { margin-top: 0; }
.personal-message .content p:last-child { margin-bottom: 0; }
.admin-personal-messages-list {
  margin-bottom: 18px;
}
@media (max-width: 860px) {
  .user-picker-row,
  .message-search-form {
    grid-template-columns: 1fr;
  }
}

/* v0.3.7.1: ЛС privacy, profile/sidebar improvements */
.personal-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.personal-room-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.personal-secure-note {
  margin-top: 6px;
}
.personal-block-warning {
  border-color: rgba(225,25,45,.36);
  background: rgba(225,25,45,.08);
  margin-bottom: 12px;
}
.danger-text { color: #ff9da8 !important; }
.user-picker-row.is-disabled {
  opacity: .58;
  border-color: rgba(255,255,255,.07);
}
.user-picker-row.is-disabled textarea,
.user-picker-row.is-disabled button {
  cursor: not-allowed;
}
.public-profile-main-v0371 {
  align-items: flex-start;
}
.public-profile-actions {
  margin-left: auto;
  min-width: 190px;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-self: flex-start;
}
.public-profile-actions .btn {
  width: 100%;
  justify-content: center;
}
.profile-playtime-actions {
  display: grid;
  gap: 9px;
  min-width: 220px;
}
.profile-playtime-actions form {
  display: grid;
  gap: 7px;
}
.compact-check {
  min-height: 0;
  font-size: 13px;
}
.profile-messages-panel {
  margin-bottom: 18px;
}
.profile-message-sidebar-list {
  display: grid;
  gap: 9px;
}
.profile-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.profile-message-row:hover {
  border-color: rgba(225,25,45,.38);
  background: rgba(225,25,45,.055);
}
.profile-message-row.has-unread {
  border-color: rgba(225,25,45,.48);
  background: rgba(225,25,45,.08);
}
.profile-message-row strong,
.profile-message-row small {
  display: block;
}
.profile-message-row small {
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.public-playtime.is-hidden-for-users {
  opacity: .82;
}
@media (max-width: 900px) {
  .personal-room-head,
  .public-profile-main-v0371 {
    flex-direction: column;
  }
  .personal-room-actions,
  .public-profile-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .profile-playtime-actions {
    width: 100%;
  }
}

.personal-attachments-grid {
  margin-top: 8px;
  gap: 8px;
}
.personal-attachments-grid .attachment-card {
  padding: 8px;
}
.personal-attachments-grid img,
.personal-attachments-grid video {
  max-height: 170px;
  object-fit: cover;
}
.user-picker-open-row {
  color: inherit;
  text-decoration: none;
}
.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: start;
}
.profile-overview-grid .profile-card {
  min-width: 0;
}
.profile-overview-grid .profile-messages-panel {
  position: sticky;
  top: 82px;
  margin-bottom: 0;
  padding: 16px;
}
.profile-overview-grid .profile-messages-panel .section-head {
  display: grid;
  gap: 10px;
}
.profile-overview-grid .profile-messages-panel .section-head .btn {
  width: 100%;
  justify-content: center;
}
.profile-message-row.sidebar-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}
.profile-message-row.sidebar-compact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
  .profile-overview-grid .profile-messages-panel {
    position: static;
  }
}

/* v0.3.7.4: у карточек базы знаний номер больше не накладывается на дату публикации. */
.article-channel-card .channel-card-meta {
  padding-right: 50px;
  min-height: 34px;
}
.article-channel-card .card-rank {
  top: 12px;
  right: 12px;
}
@media (max-width: 720px) {
  .article-channel-card .channel-card-meta {
    padding-right: 0;
  }
  .article-channel-card .card-rank {
    position: static;
    width: fit-content;
    margin-left: auto;
  }
}

/* v0.3.7.5: расширенная панель пользователей в админке. */
.admin-users-form-panel,
.admin-users-table-panel {
  width: min(1880px, calc(100vw - 24px));
}
.admin-users-table-panel table {
  min-width: 1760px;
}
@media (min-width: 1700px) {
  .admin-users-form-panel,
  .admin-users-table-panel {
    width: min(1880px, calc(100vw - 48px));
  }
}
@media (max-width: 720px) {
  .admin-users-form-panel,
  .admin-users-table-panel {
    width: 100%;
  }
}

/* v0.3.8: базовая защита контента и watermark. */
.site-watermark {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(8px);
}
.content-protected {
  -webkit-user-select: none;
  user-select: none;
}
.content-protected img,
.content-protected video {
  -webkit-user-drag: none;
  user-drag: none;
}
.content-protect-toast {
  border-color: rgba(255,181,71,.45);
}
.security-log-panel table {
  min-width: 1180px;
}
.security-log-panel td,
.security-log-panel th {
  vertical-align: top;
}
@media (max-width: 720px) {
  .site-watermark {
    right: 10px;
    bottom: 10px;
    font-size: 10px;
    opacity: .72;
  }
}

/* v0.3.9: обновлённая главная страница портала. */
.home-hero-v039 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.home-hero-main-v039,
.home-hero-side-v039 {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.home-hero-main-v039 {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(225,25,45,.22), rgba(11,11,15,.66) 42%, rgba(11,11,15,.94)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.12), transparent 28%),
    var(--panel);
}
.home-hero-main-v039::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
}
.home-hero-main-v039::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(225,25,45,.44), transparent 64%);
  pointer-events: none;
}
.home-hero-main-v039 > * {
  position: relative;
  z-index: 1;
}
.home-hero-main-v039 h1 {
  margin: 12px 0 18px;
  max-width: 780px;
  font-size: clamp(40px, 6.3vw, 78px);
  line-height: .92;
  letter-spacing: -2.8px;
}
.home-hero-main-v039 p {
  max-width: 720px;
  color: #d4d4da;
  font-size: 19px;
  line-height: 1.65;
}
.home-hero-pills-v039 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.home-hero-pills-v039 span,
.home-card-label-v039 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #ededf0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 11px;
}
.home-hero-side-v039 {
  display: grid;
  gap: 14px;
  align-content: stretch;
  padding: 18px;
}
.home-live-card-v039,
.home-mini-stats-v039,
.home-quick-links-v039 {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.home-live-card-v039 {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 230px;
  padding: 24px;
}
.home-live-card-v039 strong {
  display: block;
  font-size: 52px;
  line-height: 1;
}
.home-live-card-v039 small,
.home-live-card-v039 p,
.home-server-card-v039 p,
.home-feed-card-v039 p,
.home-final-v039 p,
.home-section-head-v039 p,
.home-steps-v039 span,
.home-mechanic-v039 p {
  color: var(--muted);
}
.home-live-card-v039 p {
  margin: 0;
}
.home-progress-v039 {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.home-progress-v039 span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--green));
}
.home-mini-stats-v039 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
}
.home-mini-stats-v039 div {
  padding: 18px;
  background: rgba(0,0,0,.14);
}
.home-mini-stats-v039 strong {
  display: block;
  font-size: 30px;
}
.home-mini-stats-v039 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.home-quick-links-v039 {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.home-quick-links-v039 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #eee;
  font-weight: 800;
}
.home-quick-links-v039 a::after {
  content: '→';
  color: var(--red-2);
}
.home-quick-links-v039 a:hover {
  background: rgba(225,25,45,.14);
}
.home-section-v039 {
  padding: clamp(22px, 3vw, 34px);
}
.home-section-head-v039 {
  align-items: flex-end;
  margin-bottom: 18px;
}
.home-section-head-v039 h2,
.home-intro-grid-v039 h2,
.home-content-grid-v039 h2,
.home-final-v039 h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1.1px;
}
.home-server-grid-v039 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.home-server-card-v039 {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.home-server-card-v039.is-online {
  border-color: rgba(43,213,118,.22);
}
.home-server-card-v039.is-offline {
  border-color: rgba(255,255,255,.08);
}
.home-server-top-v039,
.home-server-meta-v039,
.home-card-actions-v039,
.home-final-v039,
.home-final-actions-v039 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-server-top-v039 {
  justify-content: space-between;
  align-items: flex-start;
}
.home-server-top-v039 strong {
  display: block;
  font-size: 18px;
}
.home-server-top-v039 span {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(225,25,45,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.home-server-state-v039 {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.home-server-state-v039.online { background: rgba(43,213,118,.16); color: #8ff0b8; }
.home-server-state-v039.offline { background: rgba(225,25,45,.14); color: #ff9ca8; }
.home-server-state-v039.muted { background: rgba(255,255,255,.09); color: var(--muted); }
.home-server-meta-v039 {
  flex-wrap: wrap;
}
.home-server-meta-v039 span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0,0,0,.12);
  color: #dedee3;
  font-size: 13px;
}
.home-card-actions-v039 {
  justify-content: space-between;
  margin-top: auto;
}
.home-card-actions-v039 small {
  color: var(--muted);
  font-size: 12px;
}
.home-steps-v039 {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: home-steps;
}
.home-steps-v039 li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 13px 14px 13px 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  counter-increment: home-steps;
}
.home-steps-v039 li::before {
  content: counter(home-steps);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), #7c0b15);
  font-weight: 900;
}
.compact-actions-v039 {
  margin-top: 18px;
}
.home-mechanics-grid-v039 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.home-mechanic-v039 {
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
.home-mechanic-v039 span {
  font-size: 24px;
}
.home-mechanic-v039 strong {
  font-size: 16px;
}
.home-mechanic-v039 p,
.home-feed-card-v039 p {
  margin: 0;
  line-height: 1.48;
}
.home-feed-v039 {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.home-feed-card-v039 {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.04);
}
.home-feed-card-v039 h3 {
  margin: 0;
}
.home-final-v039 {
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(225,25,45,.14), rgba(255,255,255,.04)),
    var(--panel);
}
.home-final-v039 > div:first-child {
  max-width: 680px;
}
.home-final-actions-v039 {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 980px) {
  .home-hero-v039,
  .home-intro-grid-v039,
  .home-content-grid-v039 {
    grid-template-columns: 1fr;
  }
  .home-hero-main-v039 {
    min-height: 430px;
  }
  .home-final-v039 {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-final-actions-v039 {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .home-hero-main-v039 {
    min-height: 0;
    padding: 28px;
  }
  .home-hero-main-v039 h1 {
    letter-spacing: -1.4px;
  }
  .home-hero-side-v039 {
    padding: 12px;
  }
  .home-mini-stats-v039,
  .home-mechanics-grid-v039 {
    grid-template-columns: 1fr;
  }
  .home-section-head-v039,
  .home-card-actions-v039,
  .home-server-top-v039 {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-card-actions-v039 small {
    width: 100%;
  }
}

/* v0.3.9.1 — страница правил проекта */
.rules-hero-v0391 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(225,25,45,.22), transparent 26%),
    linear-gradient(135deg, rgba(225,25,45,.16), rgba(255,255,255,.04) 46%, rgba(12,12,17,.94)),
    var(--panel);
}
.rules-hero-v0391 h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
  letter-spacing: -1.8px;
}
.rules-hero-v0391 p {
  max-width: 920px;
  color: #d8d8de;
  font-size: 17px;
  line-height: 1.65;
}
.rules-meta-v0391 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.rules-meta-v0391 span,
.rules-warning-v0391 {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.rules-meta-v0391 span {
  padding: 9px 12px;
  color: var(--muted);
}
.rules-meta-v0391 strong { color: #fff; }
.rules-warning-v0391 {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 20px;
}
.rules-warning-v0391 strong {
  color: #fff;
  font-size: 22px;
}
.rules-warning-v0391 span {
  color: var(--muted);
  line-height: 1.55;
}
.rules-layout-v0391 {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rules-sidebar-v0392 {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
  align-self: start;
}
.rules-nav-v0391 {
  padding: 16px;
}
.rules-nav-v0391 strong {
  display: block;
  margin-bottom: 12px;
}
.rules-nav-v0391 nav {
  display: grid;
  gap: 7px;
}
.rules-nav-v0391 a {
  padding: 9px 10px;
  border-radius: 11px;
  color: #d8d8de;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}
.rules-nav-v0391 a:hover {
  color: #fff;
  border-color: rgba(225,25,45,.34);
  background: rgba(225,25,45,.12);
}
.rules-content-v0391 {
  display: grid;
  gap: 18px;
}
.rules-section-v0391 {
  padding: clamp(18px, 3vw, 28px);
}
.rules-section-head-v0391 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.rules-section-head-v0391 span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), #7c0b15);
  color: #fff;
  font-weight: 900;
}
.rules-section-head-v0391 h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.8px;
}
.rules-items-v0391 {
  display: grid;
  gap: 10px;
}
.rule-item-v0391 {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.rule-item-v0391 strong {
  color: #fff;
  font-size: 15px;
}
.rule-item-v0391 p {
  margin: 0;
  color: #d8d8de;
  line-height: 1.58;
  white-space: pre-line;
}
.rule-item-v0391.is-removed {
  opacity: .62;
}
.rule-item-v0391.is-removed p {
  color: var(--muted);
}
@media (max-width: 980px) {
  .rules-hero-v0391,
  .rules-layout-v0391 {
    grid-template-columns: 1fr;
  }
  .rules-sidebar-v0392 {
    position: relative;
    top: auto;
  }
  .rules-nav-v0391 nav {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}
@media (max-width: 560px) {
  .rule-item-v0391 {
    grid-template-columns: 1fr;
  }
}

/* v0.3.9.2 — поиск по правилам и редактор правил проекта */
.rules-search-v0392 {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}
.rules-search-v0392 label {
  display: grid;
  gap: 8px;
  margin: 0;
}
.rules-search-v0392 label span {
  color: #fff;
  font-weight: 900;
}
.rules-search-v0392 input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: #fff;
  padding: 0 14px;
  outline: none;
}
.rules-search-v0392 input:focus {
  border-color: rgba(225,25,45,.58);
  box-shadow: 0 0 0 3px rgba(225,25,45,.12);
}
.rules-search-v0392 small {
  color: var(--muted);
}
.is-hidden-by-search {
  display: none !important;
}
.project-rules-editor-v0392 textarea {
  resize: vertical;
}
.project-rules-textarea-v0392 {
  min-height: 620px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
  white-space: pre;
}
.project-rules-editor-help-v0392 {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.project-rules-editor-help-v0392 strong {
  color: #fff;
}
.project-rules-editor-help-v0392 code {
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 2px 6px;
}
@media (max-width: 720px) {
  .project-rules-textarea-v0392 {
    min-height: 420px;
    white-space: pre-wrap;
  }
}

/* v0.3.9.3 — отдельная страница статуса серверов */
.servers-hero-v0393 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}
.servers-hero-v0393 h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
}
.servers-hero-v0393 p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}
.servers-hero-meta-v0393 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.servers-hero-meta-v0393 span,
.servers-restart-card-v0393 {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
}
.servers-hero-meta-v0393 span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.servers-hero-meta-v0393 strong { color: #fff; }
.servers-restart-card-v0393 {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(225,25,45,.16), rgba(255,255,255,.04));
}
.servers-restart-card-v0393.is-active {
  border-color: rgba(255,181,71,.42);
  background: linear-gradient(145deg, rgba(255,181,71,.16), rgba(225,25,45,.12));
}
.servers-restart-card-v0393 span,
.servers-restart-card-v0393 small {
  color: var(--muted);
}
.servers-restart-card-v0393 strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.servers-summary-grid-v0393 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.servers-summary-card-v0393 {
  display: grid;
  gap: 6px;
  padding: 18px;
}
.servers-summary-card-v0393 span,
.servers-summary-card-v0393 small {
  color: var(--muted);
}
.servers-summary-card-v0393 strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}
.servers-status-panel-v0393 {
  margin-top: 0;
}
.servers-compare-panel-v0394 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}
.servers-compare-panel-v0394 h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 28px;
}
.servers-compare-panel-v0394 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.servers-compare-panel-stats-v0394 {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  min-width: 360px;
}
.servers-compare-panel-stats-v0394 span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.servers-compare-panel-stats-v0394 strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.servers-compare-panel-stats-v0394 small {
  color: var(--muted);
  font-size: 12px;
}
.servers-status-head-v0393 {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.servers-status-head-v0393 > div {
  min-width: 0;
}
.servers-status-head-v0393 p {
  max-width: 720px;
}
.servers-refresh-form-v0393 {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-start;
}
.servers-refresh-form-v0393 .btn {
  white-space: nowrap;
}
.servers-status-grid-v0393 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.server-status-card-v0393 {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.server-status-card-v0393.is-online {
  border-color: rgba(43,213,118,.3);
}
.server-status-card-v0393.is-offline {
  border-color: rgba(225,25,45,.24);
}
.server-status-top-v0393 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.server-status-top-v0393 h3 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: 22px;
}
.server-status-top-v0393 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.server-status-type-v0393 {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(225,25,45,.14);
  color: #ffb4bd;
  font-size: 12px;
  font-weight: 900;
}
.server-status-metrics-v0393 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.server-status-metrics-v0393 div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  min-width: 0;
}
.server-status-metrics-v0393 span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.server-status-metrics-v0393 strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.server-status-error-v0393 {
  margin: 0;
  color: #ff9ca8;
  font-size: 13px;
}
.server-status-updated-v0393 {
  color: var(--muted);
}
.servers-help-v0393 ol {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 980px) {
  .servers-hero-v0393,
  .servers-summary-grid-v0393,
  .servers-status-grid-v0393,
  .servers-compare-panel-v0394 {
    grid-template-columns: 1fr;
  }
  .servers-compare-panel-stats-v0394 {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .servers-status-head-v0393 {
    flex-direction: column;
    align-items: stretch;
  }
  .servers-refresh-form-v0393,
  .servers-refresh-form-v0393 .btn {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .server-status-top-v0393 {
    flex-direction: column;
  }
  .server-status-metrics-v0393,
  .servers-compare-panel-stats-v0394 {
    grid-template-columns: 1fr;
  }
}

/* v0.3.9.4 — страница сравнения серверов */
.compare-hero-v0394 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: stretch;
}
.compare-hero-v0394 h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
}
.compare-hero-v0394 p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}
.compare-hero-actions-v0394 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.compare-summary-v0394 {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(225,25,45,.16), rgba(255,255,255,.045));
}
.compare-summary-v0394 span,
.compare-summary-v0394 small {
  color: var(--muted);
}
.compare-summary-v0394 strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}
.compare-grid-v0394 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.compare-card-v0394 {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 20px;
}
.compare-card-v0394::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(225,25,45,.9);
}
.compare-card-v0394.accent-green::before { background: #2bd576; }
.compare-card-v0394.accent-orange::before { background: #ffb547; }
.compare-card-v0394.accent-blue::before { background: #56a7ff; }
.compare-card-v0394.is-online { border-color: rgba(43,213,118,.26); }
.compare-card-v0394.is-planned { border-color: rgba(255,181,71,.2); }
.compare-card-top-v0394 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.compare-card-top-v0394 h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 25px;
}
.compare-card-top-v0394 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.compare-label-v0394 {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(225,25,45,.14);
  color: #ffb4bd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compare-facts-v0394 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.compare-facts-v0394 div,
.compare-text-block-v0394,
.compare-live-v0394 {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.compare-facts-v0394 div {
  padding: 12px;
}
.compare-facts-v0394 span,
.compare-live-v0394 span {
  color: var(--muted);
  font-size: 12px;
}
.compare-facts-v0394 strong,
.compare-live-v0394 strong {
  color: #fff;
}
.compare-text-block-v0394 {
  padding: 14px;
}
.compare-text-block-v0394 h3,
.compare-best-v0394 h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 15px;
}
.compare-text-block-v0394 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.compare-tags-v0394 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-tags-v0394 span {
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: #e8e8ee;
  font-size: 12px;
  font-weight: 800;
}
.compare-best-v0394 ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.compare-live-v0394 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px;
}
.compare-actions-v0394 {
  margin-top: 2px;
}
.compare-table-panel-v0394 {
  margin-top: 0;
}
.compare-table-wrap-v0394 {
  overflow-x: auto;
}
.compare-table-v0394 {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.compare-table-v0394 th {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.compare-table-v0394 td {
  padding: 13px 12px;
  border-top: 1px solid rgba(255,255,255,.075);
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  line-height: 1.45;
  vertical-align: top;
}
.compare-table-v0394 td:first-child {
  border-left: 1px solid rgba(255,255,255,.075);
  border-radius: 14px 0 0 14px;
  color: #fff;
}
.compare-table-v0394 td:last-child {
  border-right: 1px solid rgba(255,255,255,.075);
  border-radius: 0 14px 14px 0;
}
@media (max-width: 980px) {
  .compare-hero-v0394,
  .compare-grid-v0394 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .compare-card-top-v0394,
  .compare-live-v0394 {
    flex-direction: column;
  }
  .compare-facts-v0394 {
    grid-template-columns: 1fr;
  }
}
.section-actions-inline-v0394 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* v0.3.9.5 — Events */
.events-hero-v0395 {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
}
.events-hero-v0395 h1 { margin-bottom: 10px; }
.events-hero-v0395 p { max-width: 760px; color: var(--muted); }
.events-hero-stats-v0395 {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
  min-width: 330px;
}
.events-hero-stats-v0395 div,
.home-event-card-v0395,
.event-info-list-v0395 dd {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}
.events-hero-stats-v0395 div {
  padding: 16px;
  text-align: center;
}
.events-hero-stats-v0395 strong {
  display: block;
  font-size: 30px;
  color: #fff;
}
.events-hero-stats-v0395 span { color: var(--muted); font-size: 13px; }
.events-filter-v0395 { margin-bottom: 18px; }
.events-filter-form-v0395 {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: end;
}
.events-filter-actions-v0395 { display: flex; gap: 8px; flex-wrap: wrap; }
.events-grid-v0395 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.event-card-v0395 {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.event-card-image-v0395 {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.event-card-body-v0395 { padding: 22px; }
.event-card-top-v0395,
.detail-top-v0395,
.home-event-top-v0395 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.event-card-v0395 h2,
.home-event-card-v0395 h3 { margin: 0 0 10px; }
.event-card-v0395 h2 a { color: inherit; text-decoration: none; }
.event-card-v0395 p,
.home-event-card-v0395 p { color: var(--muted); }
.event-state-pill-v0395 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(225,25,45,0.82);
}
.event-state-upcoming .event-state-pill-v0395 { background: rgba(58,122,255,0.82); }
.event-state-active .event-state-pill-v0395 { background: rgba(30,160,93,0.86); }
.event-state-finished .event-state-pill-v0395 { background: rgba(120,126,140,0.75); }
.event-state-cancelled .event-state-pill-v0395 { background: rgba(95,42,42,0.9); }
.event-meta-v0395 {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.event-meta-v0395.compact { margin: 12px 0; }
.event-meta-v0395 strong { color: #fff; }
.event-card-actions-v0395,
.form-actions-v0395,
.table-actions-v0395 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.event-detail-hero-v0395 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}
.event-detail-hero-v0395 h1 { margin-top: 12px; }
.event-detail-hero-v0395 p { color: var(--muted); }
.event-detail-image-v0395 {
  width: 100%;
  height: 230px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}
.event-detail-grid-v0395 { align-items: start; }
.event-info-panel-v0395 { position: sticky; top: 92px; }
.event-info-list-v0395 {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.event-info-list-v0395 dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.event-info-list-v0395 dd {
  margin: -4px 0 6px;
  padding: 12px;
  color: #fff;
}
.event-content-panel-v0395 .rich-content { line-height: 1.72; }
.event-winners-v0395 {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}
.home-events-v0395 { margin-bottom: 18px; }
.home-events-grid-v0395 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-event-card-v0395 { padding: 18px; }
.empty-state-v0395 { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .events-hero-v0395,
  .event-detail-hero-v0395 { grid-template-columns: 1fr; display: grid; }
  .events-hero-stats-v0395 { min-width: 0; width: 100%; }
  .events-filter-form-v0395 { grid-template-columns: 1fr; }
  .events-grid-v0395,
  .home-events-grid-v0395 { grid-template-columns: 1fr; }
  .event-info-panel-v0395 { position: static; }
}
.delete-event-form-v0395 {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* v0.3.9.6 — Knowledge base 2.0 */
.articles-hero-v0396 .articles-stats-v0396 {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.articles-toolbar-v0396 {
  margin-bottom: 18px;
}
.articles-filter-form-v0396 {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(170px, .9fr) minmax(160px, .8fr) minmax(160px, .8fr) auto;
  gap: 12px;
  align-items: end;
}
.articles-filter-form-v0396 label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.articles-filter-form-v0396 input,
.articles-filter-form-v0396 select {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.articles-filter-actions-v0396 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.articles-side-v0396 .side-chip {
  text-decoration: none;
}
.side-chip.active,
.articles-side-v0396 .side-chip:hover {
  border-color: rgba(225,25,45,.55);
  background: rgba(225,25,45,.18);
  color: #fff;
}
.compact-tags-v0396 .side-chip {
  font-size: 12px;
  padding: 6px 9px;
}
.article-card-v0396 .channel-card-meta {
  gap: 8px;
}
.actual-badge-v0396 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.actual-badge-v0396.is-actual {
  border-color: rgba(30,160,93,.38);
  background: rgba(30,160,93,.16);
}
.actual-badge-v0396.needs-update {
  border-color: rgba(255,185,64,.42);
  background: rgba(255,185,64,.14);
}
.actual-badge-v0396.is-deprecated {
  border-color: rgba(225,25,45,.38);
  background: rgba(225,25,45,.16);
}
.article-tags-v0396,
.article-scope-v0396 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.article-tags-v0396 span,
.article-tags-v0396 a,
.article-scope-v0396 span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: #e8e8ec;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.article-scope-v0396 span {
  color: var(--muted);
}
.article-tags-v0396.vertical,
.article-scope-v0396.vertical {
  display: grid;
  gap: 8px;
}
.article-tags-v0396.vertical a,
.article-scope-v0396.vertical span {
  width: 100%;
  border-radius: 12px;
}
.article-layout-v0396 {
  align-items: start;
}
.article-meta-box-v0396 {
  display: grid;
  gap: 8px;
}
.article-filter-box-v0396 {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
}
.actual-note-v0396 {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,185,64,.18);
  border-radius: 14px;
  background: rgba(255,185,64,.06);
  color: #efe7d3;
}
.article-helpful-v0396 {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  background: rgba(255,255,255,.035);
}
.article-helpful-v0396 h2 {
  margin: 4px 0 6px;
}
.helpful-actions-v0396 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.related-articles-v0396 {
  margin-top: 24px;
}
.related-grid-v0396 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.related-card-v0396 {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease;
}
.related-card-v0396:hover {
  transform: translateY(-2px);
  border-color: rgba(225,25,45,.36);
}
.related-card-v0396 strong {
  color: #fff;
  font-size: 18px;
}
.related-card-v0396 small {
  color: var(--muted);
  line-height: 1.5;
}
.wiki-server-scope-panel-v0396 {
  margin: 4px 0 0;
  padding: 16px;
}
.checkbox-grid-v0396 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.checkbox-card-v0396 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: #fff;
  font-weight: 800;
}
.checkbox-card-v0396 input {
  width: auto;
}
.admin-wiki-table-v0396 table {
  min-width: 1320px;
}
@media (max-width: 1120px) {
  .articles-filter-form-v0396 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .articles-hero-v0396 .articles-stats-v0396,
  .articles-filter-form-v0396,
  .related-grid-v0396 {
    grid-template-columns: 1fr;
  }
  .article-helpful-v0396 {
    display: grid;
  }
  .helpful-actions-v0396,
  .helpful-actions-v0396 form,
  .helpful-actions-v0396 .btn {
    width: 100%;
  }
}

/* v0.3.9.7 — server visibility and wiki/admin UI polish */
.server-settings-toggles-v0397 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 12px;
}
.server-settings-toggles-v0397 .checkbox-line {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.admin-wiki-table-v0396 {
  width: min(1620px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.admin-wiki-table-v0396 table {
  min-width: 1480px;
}
.admin-wiki-table-v0396 th,
.admin-wiki-table-v0396 td {
  padding: 13px 14px;
}
.admin-wiki-table-v0396 td:nth-child(3) {
  min-width: 210px;
}
.admin-wiki-table-v0396 td:last-child {
  min-width: 150px;
}
.articles-toolbar-v0396 select,
.articles-toolbar-v0396 input {
  border-color: rgba(255,255,255,.14);
  background: rgba(10,10,14,.94);
  color: #f4f4f6;
}
.articles-toolbar-v0396 select:focus,
.articles-toolbar-v0396 input:focus {
  border-color: rgba(225,25,45,.62);
  box-shadow: 0 0 0 3px rgba(225,25,45,.14);
  outline: none;
}
.articles-toolbar-v0396 select option {
  background: #101015;
  color: #f4f4f6;
}
@media (max-width: 900px) {
  .admin-wiki-table-v0396 {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}

/* v0.3.9.8 — избранное и реакции */
.favorite-box-v0398 {
  display: grid;
  gap: 10px;
}
.favorite-box-v0398 form {
  margin: 0;
}
.content-reactions-v0398 {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}
.reaction-actions-v0398 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}
.reaction-actions-v0398 form {
  margin: 0;
}
.reaction-btn-v0398 {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--text, #f5f5f7);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.reaction-btn-v0398:hover {
  border-color: rgba(225,25,45,.55);
  background: rgba(225,25,45,.10);
  transform: translateY(-1px);
}
.reaction-btn-v0398.is-active {
  border-color: rgba(225,25,45,.85);
  background: linear-gradient(135deg, rgba(225,25,45,.28), rgba(255,255,255,.06));
}
.reaction-btn-v0398 span {
  font-size: 20px;
  line-height: 1;
}
.reaction-btn-v0398 strong {
  font-size: 13px;
  line-height: 1.2;
}
.reaction-btn-v0398 em {
  min-width: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.86);
  font-style: normal;
  text-align: center;
  font-size: 12px;
}
.profile-favorites-panel-v0398 {
  align-self: start;
}
.profile-favorites-list-v0398 {
  display: grid;
  gap: 10px;
}
.favorite-row-v0398 {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: inherit;
  text-decoration: none;
}
.favorite-row-v0398:hover {
  border-color: rgba(225,25,45,.55);
  background: rgba(225,25,45,.08);
}
.favorite-row-v0398 .tag {
  justify-self: start;
}
.favorite-row-v0398 small {
  color: var(--muted, rgba(255,255,255,.62));
}
@media (max-width: 720px) {
  .reaction-actions-v0398 {
    grid-template-columns: 1fr;
  }
}


/* v0.3.10 — profile 2.0 layout and compact article reactions */
.profile-shell-v0310 {
  display: grid;
  gap: 18px;
}
.profile-card-v0310 {
  margin-bottom: 0;
}
.profile-card-v0310 .profile-main {
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-card-v0310 .profile-info {
  flex: 1 1 280px;
  min-width: 0;
}
.profile-card-v0310 .profile-info h2 {
  margin-bottom: 8px;
}
.profile-card-v0310 .profile-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.profile-secondary-grid-v0310 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 18px;
  align-items: start;
}
.profile-secondary-grid-v0310 .profile-messages-panel,
.profile-secondary-grid-v0310 .profile-favorites-panel-v0310 {
  min-width: 0;
  margin-bottom: 0;
}
.profile-messages-panel-v0310 {
  position: static;
  padding: 16px;
}
.profile-messages-panel-v0310 .section-head {
  display: grid;
  gap: 12px;
}
.profile-messages-panel-v0310 .section-head .btn {
  width: 100%;
  justify-content: center;
  min-height: 38px;
}
.profile-messages-panel-v0310 .profile-message-sidebar-list {
  margin-top: 12px;
}
.profile-favorites-panel-v0310 .section-head {
  margin-bottom: 10px;
}
.profile-favorites-panel-v0310 .favorite-row-v0398 {
  padding: 10px 12px;
}
.content-reactions-v0310.panel {
  margin-top: 14px;
  padding: 12px 14px;
  gap: 8px;
}
.content-reactions-head-v0310 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.content-reactions-head-v0310 h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}
.content-reactions-head-v0310 .muted {
  max-width: 260px;
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.25;
}
.reaction-actions-v0310 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.reaction-btn-v0310 {
  min-height: 38px;
  padding: 6px 9px;
  gap: 7px;
  border-radius: 11px;
}
.reaction-btn-v0310 span {
  font-size: 15px;
}
.reaction-btn-v0310 strong {
  font-size: 11px;
  line-height: 1.1;
}
.reaction-btn-v0310 em {
  min-width: 22px;
  padding: 3px 6px;
  font-size: 10px;
}
@media (max-width: 1180px) {
  .profile-secondary-grid-v0310 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .content-reactions-head-v0310 {
    display: grid;
  }
  .content-reactions-head-v0310 .muted {
    max-width: none;
    text-align: left;
  }
  .reaction-actions-v0310 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .reaction-actions-v0310 {
    grid-template-columns: 1fr;
  }
}

/* v0.3.10 layout fix: профиль — основная колонка + аккуратный сайдбар */
.profile-layout-v0310 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}
.profile-main-column-v0310,
.profile-sidebar-v0310 {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.profile-sidebar-v0310 {
  align-self: start;
}
.profile-layout-v0310 .profile-card-v0310,
.profile-layout-v0310 .profile-tickets-panel-v0310,
.profile-layout-v0310 .profile-messages-panel-v0310,
.profile-layout-v0310 .profile-favorites-panel-v0310 {
  margin-bottom: 0;
  min-width: 0;
}
.profile-layout-v0310 .profile-card-v0310 {
  width: 100%;
}
.profile-sidebar-v0310 .profile-messages-panel-v0310,
.profile-sidebar-v0310 .profile-favorites-panel-v0310 {
  padding: 16px;
}
.profile-sidebar-v0310 .profile-messages-panel-v0310 .section-head,
.profile-sidebar-v0310 .profile-favorites-panel-v0310 .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.profile-sidebar-v0310 .profile-messages-panel-v0310 .section-head .btn {
  width: 100%;
  justify-content: center;
  min-height: 34px;
  margin-top: 2px;
}
.profile-sidebar-v0310 .profile-message-sidebar-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.profile-sidebar-v0310 .profile-message-row.sidebar-compact {
  padding: 10px 12px;
  min-height: 42px;
}
.profile-sidebar-v0310 .profile-favorites-list-v0398 {
  gap: 8px;
}
.profile-sidebar-v0310 .favorite-row-v0398 {
  padding: 10px 12px;
}
.profile-tickets-panel-v0310 .section-head {
  align-items: flex-start;
}
@media (max-width: 1180px) {
  .profile-layout-v0310 {
    grid-template-columns: 1fr;
  }
  .profile-sidebar-v0310 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .profile-sidebar-v0310 {
    grid-template-columns: 1fr;
  }
  .profile-layout-v0310 .profile-card-v0310 .profile-main {
    display: grid;
  }
}

/* v0.3.10 profile columns fix: ЛС слева, профиль по центру, избранное справа */
.profile-layout-v0310.profile-layout-three-v0310 {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(520px, 1fr) minmax(230px, 320px);
  gap: 20px;
  align-items: start;
}
.profile-layout-three-v0310 .profile-main-column-v0310,
.profile-layout-three-v0310 .profile-side-column-v0310 {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
  align-items: start;
}
.profile-layout-three-v0310 .profile-card-v0310,
.profile-layout-three-v0310 .profile-tickets-panel-v0310,
.profile-layout-three-v0310 .profile-messages-panel-v0310,
.profile-layout-three-v0310 .profile-favorites-panel-v0310 {
  width: 100%;
  min-width: 0;
  margin: 0;
  position: relative;
  height: auto;
  min-height: 0;
  align-self: start;
}
.profile-layout-three-v0310 .profile-card-v0310 {
  z-index: 1;
  overflow: visible;
}
.profile-layout-three-v0310 .profile-tickets-panel-v0310 {
  z-index: 0;
  clear: both;
}
.profile-layout-three-v0310 .profile-messages-panel-v0310,
.profile-layout-three-v0310 .profile-favorites-panel-v0310 {
  padding: 16px;
}
.profile-layout-three-v0310 .profile-messages-panel-v0310 .section-head,
.profile-layout-three-v0310 .profile-favorites-panel-v0310 .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.profile-layout-three-v0310 .profile-messages-panel-v0310 .section-head .btn {
  width: 100%;
  justify-content: center;
  min-height: 34px;
  margin-top: 4px;
}
.profile-layout-three-v0310 .profile-message-sidebar-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.profile-layout-three-v0310 .profile-message-row.sidebar-compact {
  padding: 10px 12px;
  min-height: 42px;
}
.profile-layout-three-v0310 .profile-favorites-list-v0398 {
  display: grid;
  gap: 8px;
}
.profile-layout-three-v0310 .favorite-row-v0398 {
  padding: 10px 12px;
}
.profile-layout-three-v0310 .profile-tickets-panel-v0310 .section-head {
  align-items: flex-start;
}
@media (max-width: 1380px) {
  .profile-layout-v0310.profile-layout-three-v0310 {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
  }
}
@media (max-width: 1180px) {
  .profile-layout-v0310.profile-layout-three-v0310 {
    grid-template-columns: 1fr;
  }
  .profile-layout-three-v0310 .profile-center-column-v0310 {
    order: 1;
  }
  .profile-layout-three-v0310 .profile-left-column-v0310 {
    order: 2;
  }
  .profile-layout-three-v0310 .profile-right-column-v0310 {
    order: 3;
  }
}

/* v0.3.10 profile center width fix: возвращаем ширину центральной колонке ЛК, не меняя порядок блоков */
.profile-layout-v0310.profile-layout-three-v0310 {
  width: min(1520px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  grid-template-columns: minmax(220px, 280px) minmax(780px, 1fr) minmax(220px, 280px);
}

@media (max-width: 1380px) {
  .profile-layout-v0310.profile-layout-three-v0310 {
    width: min(1280px, calc(100vw - 32px));
    grid-template-columns: minmax(190px, 240px) minmax(700px, 1fr) minmax(190px, 240px);
  }
}

@media (max-width: 1180px) {
  .profile-layout-v0310.profile-layout-three-v0310 {
    width: 100%;
    margin-left: 0;
    transform: none;
    grid-template-columns: 1fr;
  }
}

/* v0.3.11 — Центр помощи */
.help-hero-v0311 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  align-items: stretch;
}
.help-hero-main-v0311 h1 { margin-bottom: 10px; }
.help-hero-main-v0311 p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}
.help-hero-actions-v0311 { margin-top: 18px; }
.help-hero-side-v0311 {
  display: grid;
  gap: 12px;
}
.help-hero-side-v0311 div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.help-hero-side-v0311 span,
.help-ticket-item-v0311 small,
.help-article-item-v0311 span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.help-hero-side-v0311 strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 22px;
}
.help-before-v0311 { margin-top: 18px; }
.help-section-head-v0311 { margin-bottom: 14px; }
.help-check-grid-v0311,
.help-card-grid-v0311 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.help-check-grid-v0311 a,
.help-card-v0311,
.help-article-item-v0311,
.help-ticket-item-v0311 {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.help-check-grid-v0311 a {
  padding: 14px;
}
.help-check-grid-v0311 a:hover,
.help-card-v0311:hover,
.help-article-item-v0311:hover,
.help-ticket-item-v0311:hover {
  border-color: rgba(225,25,45,.42);
  background: rgba(225,25,45,.07);
  transform: translateY(-1px);
}
.help-check-grid-v0311 strong,
.help-card-v0311 h3,
.help-article-item-v0311 strong,
.help-ticket-item-v0311 strong {
  color: #fff;
}
.help-check-grid-v0311 span,
.help-card-v0311 p,
.help-article-item-v0311 p {
  color: var(--muted);
  line-height: 1.5;
}
.help-layout-v0311 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.help-main-v0311,
.help-side-v0311,
.help-contact-list-v0311,
.help-ticket-list-v0311,
.help-articles-list-v0311 {
  display: grid;
  gap: 14px;
}
.help-card-grid-v0311 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.help-card-v0311 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}
.help-card-icon-v0311 {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(225,25,45,.13);
  border: 1px solid rgba(225,25,45,.28);
  font-size: 22px;
}
.help-card-v0311 h3 { margin: 0 0 6px; }
.help-card-v0311 p { margin: 0; }
.help-card-actions-v0311 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.help-article-item-v0311,
.help-ticket-item-v0311 {
  padding: 12px 14px;
}
.help-article-item-v0311 p { margin: 6px 0 0; }
.help-ticket-item-v0311 {
  display: grid;
  gap: 6px;
}
.ticket-category-hints-v0311 { margin-top: -4px; }
.ticket-category-hint-v0311 {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(225,25,45,.25);
  border-radius: 14px;
  background: rgba(225,25,45,.07);
  color: var(--muted);
}
.ticket-category-hint-v0311.is-active { display: block; }
.ticket-category-hint-v0311 strong { color: #fff; }
.ticket-category-hint-v0311 ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.form-actions-row-v0311 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1100px) {
  .help-hero-v0311,
  .help-layout-v0311 {
    grid-template-columns: 1fr;
  }
  .help-check-grid-v0311 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .help-check-grid-v0311,
  .help-card-grid-v0311 {
    grid-template-columns: 1fr;
  }
  .help-card-v0311 {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .help-card-icon-v0311 {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* v0.3.12: tickets 2.0 */
.ticket-plain-textarea-v0312 {
  font-family: Manrope, "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
}
.ticket-plain-textarea-v0312::placeholder {
  color: rgba(244, 244, 245, .58);
  font-weight: 600;
}
.ticket-tabs-v0312 { margin-bottom: 14px; }
.ticket-filter-panel-v0312,
.admin-ticket-filter-panel-v0312 { margin-bottom: 16px; }
.ticket-meta-v0312 {
  min-width: 130px;
  align-items: flex-end;
}
.ticket-head-tags-v0312 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ticket-close-reason-panel-v0312 {
  border-color: rgba(234, 179, 8, .25);
  background: rgba(234, 179, 8, .06);
}
.ticket-close-reason-panel-v0312 p { margin: 8px 0 0; color: var(--muted); }
.ticket-admin-control-panel-v0312 { display: grid; gap: 14px; }
.ticket-admin-control-panel-v0312 .section-head { margin-bottom: 0; }
.ticket-status-form-v0312 {
  align-items: end;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.ticket-status-form-v0312 label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 13px;
}
.ticket-admin-meta-form-v0312,
.ticket-internal-note-form-v0312 {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.ticket-internal-note-text-v0312 {
  margin: 6px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  white-space: pre-wrap;
}
.admin-tickets-table-panel-v0312 table { min-width: 1120px; }
.ticket-admin-inline-meta-v0312 {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 330px;
}
.ticket-admin-inline-meta-v0312 select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #101015;
  color: var(--text);
}
.tag:empty { display: none; }
@media (max-width: 900px) {
  .ticket-admin-inline-meta-v0312 { grid-template-columns: 1fr; min-width: 0; }
  .ticket-meta-v0312 { align-items: flex-start; }
}

/* v0.3.14 — Events search toolbar aligned with Knowledge Base */
.events-toolbar-v0314 {
  margin-bottom: 18px;
}
.events-filter-form-v0314 {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
  gap: 12px;
  align-items: end;
}
.events-filter-form-v0314 label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.events-toolbar-v0314 input,
.events-toolbar-v0314 select {
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(255,255,255,.14);
  background: rgba(10,10,14,.94);
  color: #f4f4f6;
}
.events-toolbar-v0314 input:focus,
.events-toolbar-v0314 select:focus {
  border-color: rgba(225,25,45,.62);
  box-shadow: 0 0 0 3px rgba(225,25,45,.14);
  outline: none;
}
.events-toolbar-v0314 select option {
  background: #101015;
  color: #f4f4f6;
}
@media (max-width: 980px) {
  .events-filter-form-v0314 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .events-filter-form-v0314 {
    grid-template-columns: 1fr;
  }
  .events-filter-actions-v0395 .btn {
    width: 100%;
  }
}

/* v0.3.15 — обращение: управление перенесено в боковую панель */
.ticket-detail-layout-v0315 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.ticket-detail-layout-public-v0315,
.ticket-detail-main-v0315 {
  min-width: 0;
}

.ticket-admin-sidebar-v0315 {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ticket-admin-sidebar-v0315 .ticket-admin-control-panel-v0312 {
  gap: 12px;
  padding: 16px;
}

.ticket-admin-sidebar-v0315 .section-head {
  margin-bottom: 0;
}

.ticket-admin-sidebar-v0315 .section-head h2 {
  font-size: 1.05rem;
}

.ticket-admin-sidebar-v0315 .section-head p {
  font-size: 0.84rem;
}

.ticket-admin-sidebar-v0315 .ticket-status-form-v0312,
.ticket-admin-sidebar-v0315 .ticket-admin-meta-form-v0312,
.ticket-admin-sidebar-v0315 .ticket-internal-note-form-v0312 {
  display: grid;
  gap: 10px;
}

.ticket-admin-sidebar-v0315 .form-grid-tight,
.ticket-admin-sidebar-v0315 .grid.two.form-grid-tight {
  grid-template-columns: 1fr;
  gap: 10px;
}

.ticket-admin-sidebar-v0315 textarea {
  min-height: 82px;
}

.ticket-admin-sidebar-v0315 .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1180px) {
  .ticket-detail-layout-v0315 {
    grid-template-columns: 1fr;
  }

  .ticket-admin-sidebar-v0315 {
    position: static;
    order: -1;
  }
}

/* v0.3.17 — юридические документы */
.legal-info-panel,
.legal-admin-intro-v0317 {
  margin-bottom: 18px;
}

.legal-documents-list {
  align-items: stretch;
}

.legal-doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
}

.legal-layout-v0317 .meta-box {
  display: grid;
  gap: 6px;
}

.legal-review-notice,
.legal-editor-note-v0317 {
  margin: 14px 0;
}

.legal-table-panel-v0317 {
  overflow-x: auto;
}

.legal-table-panel-v0317 table {
  min-width: 980px;
}

.legal-form-panel-v0317 textarea[name="excerpt"] {
  min-height: 82px;
}

@media (max-width: 780px) {
  .legal-card-meta {
    flex-direction: column;
    gap: 4px;
  }

  .legal-layout-v0317 {
    grid-template-columns: 1fr;
  }
}

/* v0.3.18 — расширение центральных панелей сайта без изменения логики страниц. */
:root {
  --page-max-v0318: 1360px;
  --page-wide-max-v0318: 1440px;
  --page-gutter-v0318: clamp(16px, 3vw, 48px);
}

.page,
.footer {
  width: min(var(--page-max-v0318), calc(100vw - 32px));
}

@media (min-width: 1280px) {
  .page,
  .footer {
    width: min(var(--page-max-v0318), calc(100vw - var(--page-gutter-v0318)));
  }

  .hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .85fr);
  }

  .home-hero-v039 {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .58fr);
  }

  .article-layout,
  .article-layout-v029,
  .legal-layout-v0317 {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 24px;
  }

  .channel-layout-v029,
  .rules-layout-v0391 {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    gap: 24px;
  }

  .help-layout-v0311 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 22px;
  }

  .ticket-detail-layout-v0315 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 22px;
  }

  .home-server-grid-v039,
  .home-content-grid-v039,
  .article-grid-v029,
  .news-grid-v029,
  .v029-forum-grid,
  .events-grid-v0395,
  .legal-documents-list {
    gap: 18px;
  }

  .help-card-grid-v0311 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel,
  .home-section-v039,
  .article-panel-v029 {
    padding-left: clamp(24px, 2.2vw, 38px);
    padding-right: clamp(24px, 2.2vw, 38px);
  }

}

@media (min-width: 1600px) {
  .page,
  .footer {
    width: min(var(--page-wide-max-v0318), calc(100vw - 72px));
  }

  .home-hero-v039 {
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, .55fr);
  }

  .channel-layout-v029,
  .rules-layout-v0391 {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .article-layout,
  .article-layout-v029,
  .legal-layout-v0317 {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .page,
  .footer {
    width: min(1180px, calc(100% - 32px));
  }
}

@media (max-width: 720px) {
  .page,
  .footer {
    width: min(1180px, calc(100% - 24px));
  }

  .panel,
  .home-section-v039,
  .article-panel-v029 {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* v0.3.18.1 — База знаний: навигация вынесена из колонки, незакреплённые публикации расширены. */
@media (min-width: 981px) {
  .articles-layout-v0396 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .articles-side-v0396 {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 18px 22px;
  }

  .articles-side-v0396 .eyebrow {
    flex: 0 0 auto;
    margin-right: 2px;
  }

  .articles-side-v0396 h3 {
    margin: 0;
    flex: 0 0 auto;
  }

  .articles-side-v0396 .side-chip-list {
    flex: 1 1 320px;
    margin: 0;
  }

  .articles-side-v0396 .compact-tags-v0396 {
    flex: 1 1 280px;
  }

  .articles-grid-v0396 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
  }

  .article-card-v0396 {
    min-width: 0;
  }

  .article-card-v0396 .card-cover {
    height: 190px;
  }
}

@media (min-width: 1480px) {
  .articles-grid-v0396 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .articles-side-v0396 {
    position: static;
  }
}


